# Google Workspace Add-ons V1 Client - Class Deployment (1.1.3)

1.1.3 (latest) 1.1.2 1.0.4 0.3.5 0.2.3 0.1.6 Reference documentation and code samples for the Google Workspace Add-ons V1 Client class Deployment.

A Google Workspace add-on deployment

Generated from protobuf message `google.cloud.gsuiteaddons.v1.Deployment`

## Namespace

Google \\ Cloud \\ GSuiteAddOns \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The deployment resource name. Example: projects/123/deployments/my_deployment. |
| `↳ oauth_scopes` | `string[]` The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint. |
| `↳ add_ons` | `https://docs.cloud.google.com/php/docs/reference/cloud-gsuite-addons/latest/V1.AddOns` The Google Workspace add-on configuration. |
| `↳ etag` | `string` This value is computed by the server based on the version of the deployment in storage, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |

### getName

The deployment resource name.

Example: projects/123/deployments/my_deployment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

The deployment resource name.

Example: projects/123/deployments/my_deployment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getOauthScopes

The list of Google OAuth scopes for which to request consent from the end
user before executing an add-on endpoint.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setOauthScopes

The list of Google OAuth scopes for which to request consent from the end
user before executing an add-on endpoint.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

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

### getAddOns

The Google Workspace add-on configuration.

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

### hasAddOns

### clearAddOns

### setAddOns

The Google Workspace add-on configuration.

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

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

### getEtag

This value is computed by the server based on the version of the
deployment in storage, and may be sent on update and delete requests to
ensure the client has an up-to-date value before proceeding.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEtag

This value is computed by the server based on the version of the
deployment in storage, and may be sent on update and delete requests to
ensure the client has an up-to-date value before proceeding.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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