# Google Cloud Deploy V1 Client - Class DeployPolicyResourceSelector (2.0.0)

2.0.0 (latest) 1.6.3 1.5.7 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.19.1 0.18.1 0.17.0 0.16.0 0.15.0 0.14.0 0.13.1 0.12.1 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.4 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` | `https://docs.cloud.google.com/php/docs/reference/cloud-deploy/latest/V1.DeliveryPipelineAttribute` Optional. Contains attributes about a delivery pipeline. |
| `↳ target` | `https://docs.cloud.google.com/php/docs/reference/cloud-deploy/latest/V1.TargetAttribute` Optional. Contains attributes about a target. |

### getDeliveryPipeline

Optional. Contains attributes about a delivery pipeline.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-deploy/latest/V1.DeliveryPipelineAttribute|null` |   |

### hasDeliveryPipeline

### clearDeliveryPipeline

### setDeliveryPipeline

Optional. Contains attributes about a delivery pipeline.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-deploy/latest/V1.DeliveryPipelineAttribute` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTarget

Optional. Contains attributes about a target.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-deploy/latest/V1.TargetAttribute|null` |   |

### hasTarget

### clearTarget

### setTarget

Optional. Contains attributes about a target.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-deploy/latest/V1.TargetAttribute` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |