Reference documentation and code samples for the Google Cloud Network Security V1 Client class AuthorizationPolicy.
AuthorizationPolicy is a resource that specifies how a server should authorize incoming connections. This resource in itself does not change the configuration unless it's attached to a target https proxy or endpoint config selector resource.
Generated from protobuf message google.cloud.networksecurity.v1.AuthorizationPolicy
Namespace
Google \ Cloud \ NetworkSecurity \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Name of the AuthorizationPolicy resource. It matches pattern projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>
.
↳ description
string
Optional. Free-text description of the resource.
↳ create_time
↳ update_time
↳ labels
array| Google\Protobuf\Internal\MapField
Optional. Set of label tags associated with the AuthorizationPolicy resource.
↳ action
int
Required. The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".
↳ rules
array< Google\Cloud\NetworkSecurity\V1\AuthorizationPolicy\Rule
>
Optional. List of rules to match. Note that at least one of the rules must match in order for the action specified in the 'action' field to be taken. A rule is a match if there is a matching source and destination. If left blank, the action specified in the action
field will be applied on every request.
getName
Required. Name of the AuthorizationPolicy resource. It matches pattern projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>
.
string
setName
Required. Name of the AuthorizationPolicy resource. It matches pattern projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>
.
var
string
$this
getDescription
Optional. Free-text description of the resource.
string
setDescription
Optional. Free-text description of the resource.
var
string
$this
getCreateTime
Output only. The timestamp when the resource was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when the resource was created.
$this
getUpdateTime
Output only. The timestamp when the resource was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when the resource was updated.
$this
getLabels
Optional. Set of label tags associated with the AuthorizationPolicy resource.
setLabels
Optional. Set of label tags associated with the AuthorizationPolicy resource.
$this
getAction
Required. The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".
int
setAction
Required. The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".
var
int
$this
getRules
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
setRules
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
$this