0.5.3 (latest) 0.4.4 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Api Hub V1 Client class Oauth2ClientCredentialsConfig.

Parameters to support Oauth 2.0 client credentials grant authentication.

See <https://tools.ietf.org/html/rfc6749#section-1.3.4> for more details.

Generated from protobuf message `google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig`

## Namespace

Google \\ Cloud \\ ApiHub \\ V1 \\ AuthConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ client_id` | `string` Required. The client identifier. |
| `↳ client_secret` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Secret` Required. Secret version reference containing the client secret. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret. |

### getClientId

Required. The client identifier.

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

### setClientId

Required. The client identifier.

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

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

### getClientSecret

Required. Secret version reference containing the client secret.

The `secretmanager.versions.access` permission should be
granted to the service account accessing the secret.

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

### hasClientSecret

### clearClientSecret

### setClientSecret

Required. Secret version reference containing the client secret.

The `secretmanager.versions.access` permission should be
granted to the service account accessing the secret.

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

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