Reference documentation and code samples for the Google Cloud Ces V1 Client class EndpointControlPolicy.
Defines project/location level endpoint control policy.
Generated from protobuf message google.cloud.ces.v1.EndpointControlPolicy
Namespace
Google \ Cloud \ Ces \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ enforcement_scope
int
Optional. The scope in which this policy's allowed_origins list is enforced.
↳ allowed_origins
string[]
Optional. The allowed HTTP(s) origins that tools in the App are able to directly call. The enforcement depends on the value of enforcement_scope and the VPC-SC status of the project. If a port number is not provided, all ports will be allowed. Otherwise, the port number must match exactly. For example, " https://example.com " will match " https://example.com:443 " and any other port. " https://example.com:443 " will only match " https://example.com:443 ".
getEnforcementScope
Optional. The scope in which this policy's allowed_origins list is enforced.
setEnforcementScope
Optional. The scope in which this policy's allowed_origins list is enforced.
$this
getAllowedOrigins
Optional. The allowed HTTP(s) origins that tools in the App are able to directly call. The enforcement depends on the value of enforcement_scope and the VPC-SC status of the project.
If a port number is not provided, all ports will be allowed. Otherwise, the port number must match exactly. For example, " https://example.com " will match " https://example.com:443 " and any other port. " https://example.com:443 " will only match " https://example.com:443 ".
setAllowedOrigins
Optional. The allowed HTTP(s) origins that tools in the App are able to directly call. The enforcement depends on the value of enforcement_scope and the VPC-SC status of the project.
If a port number is not provided, all ports will be allowed. Otherwise, the port number must match exactly. For example, " https://example.com " will match " https://example.com:443 " and any other port. " https://example.com:443 " will only match " https://example.com:443 ".
var
string[]
$this

