Google Cloud Deploy V1 Client - Class DeployPolicyResourceSelector (1.2.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 Google\Cloud\Deploy\V1\DeliveryPipelineAttribute

Optional. Contains attributes about a delivery pipeline.

↳ target Google\Cloud\Deploy\V1\TargetAttribute

Optional. Contains attributes about a target.

getDeliveryPipeline

Optional. Contains attributes about a delivery pipeline.

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

hasDeliveryPipeline

clearDeliveryPipeline

setDeliveryPipeline

Optional. Contains attributes about a delivery pipeline.

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

getTarget

Optional. Contains attributes about a target.

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

hasTarget

clearTarget

setTarget

Optional. Contains attributes about a target.

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