Google Cloud Deploy V1 Client - Class DeployPolicyResourceSelector (1.5.0)

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

Contains information on the resources to select for a deploy policy.

Attributes provided must all match the resource in order for policy restrictions to apply. For example, if delivery pipelines attributes given are an id "prod" and labels "foo: bar", a delivery pipeline resource must match both that id and have that label in order to be subject to the policy.

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

Namespace

Google \ Cloud \ Deploy \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ delivery_pipeline DeliveryPipelineAttribute

Optional. Contains attributes about a delivery pipeline.

↳ target TargetAttribute

Optional. Contains attributes about a target.

getDeliveryPipeline

Optional. Contains attributes about a delivery pipeline.

Returns
Type Description
DeliveryPipelineAttribute|null

hasDeliveryPipeline

clearDeliveryPipeline

setDeliveryPipeline

Optional. Contains attributes about a delivery pipeline.

Parameter
Name Description
var DeliveryPipelineAttribute
Returns
Type Description
$this

getTarget

Optional. Contains attributes about a target.

Returns
Type Description
TargetAttribute|null

hasTarget

clearTarget

setTarget

Optional. Contains attributes about a target.

Parameter
Name Description
var TargetAttribute
Returns
Type Description
$this