Reference documentation and code samples for the Google Cloud Network Security V1 Client class AuthzRule.
Conditions to match against the incoming request.
Generated from protobuf message google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule
Namespace
Google \ Cloud \ NetworkSecurity \ V1 \ AuthzPolicyMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ from |
AuthzRule\From
Optional. Describes properties of a source of a request. |
↳ to |
AuthzRule\To
Optional. Describes properties of a target of a request. |
↳ when |
string
Optional. CEL expression that describes the conditions to be satisfied for the action. The result of the CEL expression is ANDed with the from and to. Refer to the CEL language reference for a list of available attributes. |
getFrom
Optional. Describes properties of a source of a request.
| Returns | |
|---|---|
| Type | Description |
AuthzRule\From|null |
|
hasFrom
clearFrom
setFrom
Optional. Describes properties of a source of a request.
| Parameter | |
|---|---|
| Name | Description |
var |
AuthzRule\From
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTo
Optional. Describes properties of a target of a request.
| Returns | |
|---|---|
| Type | Description |
AuthzRule\To|null |
|
hasTo
clearTo
setTo
Optional. Describes properties of a target of a request.
| Parameter | |
|---|---|
| Name | Description |
var |
AuthzRule\To
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getWhen
Optional. CEL expression that describes the conditions to be satisfied for the action. The result of the CEL expression is ANDed with the from and to. Refer to the CEL language reference for a list of available attributes.
| Returns | |
|---|---|
| Type | Description |
string |
|
setWhen
Optional. CEL expression that describes the conditions to be satisfied for the action. The result of the CEL expression is ANDed with the from and to. Refer to the CEL language reference for a list of available attributes.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|