Google Cloud Iam V2 Client - Class PolicyRule (0.3.1)

Reference documentation and code samples for the Google Cloud Iam V2 Client class PolicyRule.

A single rule in a Policy.

Generated from protobuf message google.iam.v2.PolicyRule

Namespace

Google \ Cloud \ Iam \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ deny_rule Google\Cloud\Iam\V2\DenyRule

A rule for a deny policy.

↳ description string

A user-specified description of the rule. This value can be up to 256 characters.

getDenyRule

A rule for a deny policy.

Returns
TypeDescription
Google\Cloud\Iam\V2\DenyRule|null

hasDenyRule

setDenyRule

A rule for a deny policy.

Parameter
NameDescription
var Google\Cloud\Iam\V2\DenyRule
Returns
TypeDescription
$this

getDescription

A user-specified description of the rule. This value can be up to 256 characters.

Returns
TypeDescription
string

setDescription

A user-specified description of the rule. This value can be up to 256 characters.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getKind

Returns
TypeDescription
string