Google Cloud Deploy V1 Client - Class AutomationRule (0.14.0)

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
NameDescription
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
TypeDescription
Google\Cloud\Deploy\V1\PromoteReleaseRule|null

hasPromoteReleaseRule

setPromoteReleaseRule

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

Parameter
NameDescription
var Google\Cloud\Deploy\V1\PromoteReleaseRule
Returns
TypeDescription
$this

getAdvanceRolloutRule

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

Returns
TypeDescription
Google\Cloud\Deploy\V1\AdvanceRolloutRule|null

hasAdvanceRolloutRule

setAdvanceRolloutRule

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

Parameter
NameDescription
var Google\Cloud\Deploy\V1\AdvanceRolloutRule
Returns
TypeDescription
$this

getRepairRolloutRule

Optional. The RepairRolloutRule will automatically repair a failed rollout.

Returns
TypeDescription
Google\Cloud\Deploy\V1\RepairRolloutRule|null

hasRepairRolloutRule

setRepairRolloutRule

Optional. The RepairRolloutRule will automatically repair a failed rollout.

Parameter
NameDescription
var Google\Cloud\Deploy\V1\RepairRolloutRule
Returns
TypeDescription
$this

getRule

Returns
TypeDescription
string