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

AuthConfigTemplate represents the authentication template for a plugin.

Generated from protobuf message `google.cloud.apihub.v1.Plugin.ConfigTemplate.AuthConfigTemplate`

## Namespace

Google \\ Cloud \\ ApiHub \\ V1 \\ Plugin \\ ConfigTemplate

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ supported_auth_types` | `int[]` Required. The list of authentication types supported by the plugin. |
| `↳ service_account` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.GoogleServiceAccountConfig` Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account. |

### getSupportedAuthTypes

Required. The list of authentication types supported by the plugin.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<int>` |   |

### setSupportedAuthTypes

Required. The list of authentication types supported by the plugin.

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

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

### getServiceAccount

Optional. The service account of the plugin hosting service.

This service account should be granted the required permissions on the
Auth Config parameters provided while creating the plugin instances
corresponding to this plugin.
For example, if the plugin instance auth config requires a secret
manager secret, the service account should be granted the
secretmanager.versions.access permission on the corresponding secret,
if the plugin instance auth config contains a service account, the
service account should be granted the
iam.serviceAccounts.getAccessToken permission on the corresponding
service account.

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

### hasServiceAccount

### clearServiceAccount

### setServiceAccount

Optional. The service account of the plugin hosting service.

This service account should be granted the required permissions on the
Auth Config parameters provided while creating the plugin instances
corresponding to this plugin.
For example, if the plugin instance auth config requires a secret
manager secret, the service account should be granted the
secretmanager.versions.access permission on the corresponding secret,
if the plugin instance auth config contains a service account, the
service account should be granted the
iam.serviceAccounts.getAccessToken permission on the corresponding
service account.

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

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