Google Cloud Network Security V1 Client - Class AuthzRule (1.3.0)

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 \ AuthzPolicy

Methods

__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

hasFrom

clearFrom

setFrom

Optional. Describes properties of a source of a request.

Parameter
Name
Description
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
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
Design a Mobile Site
View Site in Mobile | Classic
Share by: