Google Cloud Deploy V1 Client - Class PolicyRule (2.0.0)

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

Rule to apply.

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.

↳ restrict_rollouts Google\Cloud\Deploy\V1\RestrictRollout

Rollout restrictions.

getRestrictRollouts

Rollout restrictions.

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

hasRestrictRollouts

setRestrictRollouts

Rollout restrictions.

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

getRule

Returns
Type Description
string