Google Cloud Deploy V1 Client - Class AutomationRule (1.5.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
Name Description
data array

Optional. Data for populating the Message object.

↳ promote_release_rule PromoteReleaseRule

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

↳ advance_rollout_rule AdvanceRolloutRule

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

↳ repair_rollout_rule RepairRolloutRule

Optional. The RepairRolloutRule will automatically repair a failed rollout.

↳ timed_promote_release_rule TimedPromoteReleaseRule

Optional. The TimedPromoteReleaseRule will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.

getPromoteReleaseRule

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

Returns
Type Description
PromoteReleaseRule|null

hasPromoteReleaseRule

setPromoteReleaseRule

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

Parameter
Name Description
var PromoteReleaseRule
Returns
Type Description
$this

getAdvanceRolloutRule

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

Returns
Type Description
AdvanceRolloutRule|null

hasAdvanceRolloutRule

setAdvanceRolloutRule

Optional. The AdvanceRolloutRule will automatically advance a successful Rollout.

Parameter
Name Description
var AdvanceRolloutRule
Returns
Type Description
$this

getRepairRolloutRule

Optional. The RepairRolloutRule will automatically repair a failed rollout.

Returns
Type Description
RepairRolloutRule|null

hasRepairRolloutRule

setRepairRolloutRule

Optional. The RepairRolloutRule will automatically repair a failed rollout.

Parameter
Name Description
var RepairRolloutRule
Returns
Type Description
$this

getTimedPromoteReleaseRule

Optional. The TimedPromoteReleaseRule will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.

Returns
Type Description
TimedPromoteReleaseRule|null

hasTimedPromoteReleaseRule

setTimedPromoteReleaseRule

Optional. The TimedPromoteReleaseRule will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.

Parameter
Name Description
var TimedPromoteReleaseRule
Returns
Type Description
$this

getRule

Returns
Type Description
string