Google Cloud Deploy V1 Client - Class AutomationRule (1.1.1)

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

AutomationRule defines the automation activities.

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

Namespace

Google \ Cloud \ Deploy \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ promote_release_rule Google\Cloud\Deploy\V1\PromoteReleaseRule

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

↳ advance_rollout_rule Google\Cloud\Deploy\V1\AdvanceRolloutRule

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

↳ repair_rollout_rule Google\Cloud\Deploy\V1\RepairRolloutRule

Optional. The RepairRolloutRule will automatically repair a failed rollout.

getPromoteReleaseRule

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

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

hasPromoteReleaseRule

setPromoteReleaseRule

Optional. PromoteReleaseRule will automatically promote a release from the current target to a specified target.

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

getAdvanceRolloutRule

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

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

hasAdvanceRolloutRule

setAdvanceRolloutRule

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

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

getRepairRolloutRule

Optional. The RepairRolloutRule will automatically repair a failed rollout.

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

hasRepairRolloutRule

setRepairRolloutRule

Optional. The RepairRolloutRule will automatically repair a failed rollout.

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

getRule

Returns
Type Description
string