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 AuthConfig.

AuthConfig represents the authentication information.

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

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ google_service_account_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.GoogleServiceAccountConfig` Google Service Account. |
| `↳ user_password_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.AuthConfig.UserPasswordConfig` User Password. |
| `↳ api_key_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.AuthConfig.ApiKeyConfig` Api Key Config. |
| `↳ oauth2_client_credentials_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.AuthConfig.Oauth2ClientCredentialsConfig` Oauth2.0 Client Credentials. |
| `↳ auth_type` | `int` Required. The authentication type. |

### getGoogleServiceAccountConfig

Google Service Account.

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

### hasGoogleServiceAccountConfig

### setGoogleServiceAccountConfig

Google Service Account.

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

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

### getUserPasswordConfig

User Password.

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

### hasUserPasswordConfig

### setUserPasswordConfig

User Password.

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

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

### getApiKeyConfig

Api Key Config.

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

### hasApiKeyConfig

### setApiKeyConfig

Api Key Config.

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

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

### getOauth2ClientCredentialsConfig

Oauth2.0 Client Credentials.

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

### hasOauth2ClientCredentialsConfig

### setOauth2ClientCredentialsConfig

Oauth2.0 Client Credentials.

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

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

### getAuthType

Required. The authentication type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AuthType](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.AuthType). |

### setAuthType

Required. The authentication type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AuthType](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.AuthType). |

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

### getConfig

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