Google Cloud Deploy V1 Client - Class PolicyRule (1.2.0)

Reference documentation and code samples for the Google Cloud Deploy V1 Client class PolicyRule.

Deploy Policy rule.

Generated from protobuf message google.cloud.deploy.v1.PolicyRule

Namespace

Google \ Cloud \ Deploy \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ rollout_restriction Google\Cloud\Deploy\V1\RolloutRestriction

Rollout restrictions.

getRolloutRestriction

Rollout restrictions.

Returns
Type Description
Google\Cloud\Deploy\V1\RolloutRestriction|null

hasRolloutRestriction

setRolloutRestriction

Rollout restrictions.

Parameter
Name Description
var Google\Cloud\Deploy\V1\RolloutRestriction
Returns
Type Description
$this

getRule

Returns
Type Description
string