1.2.0 (latest) 1.1.0 1.0.3 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the API hub V1 API class Google::Cloud::ApiHub::V1::Plugin::ConfigTemplate::AuthConfigTemplate.

AuthConfigTemplate represents the authentication template for a plugin.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #service_account

    def service_account() -> ::Google::Cloud::ApiHub::V1::GoogleServiceAccountConfig

**Returns**

- ([::Google::Cloud::ApiHub::V1::GoogleServiceAccountConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-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.

### #service_account=

    def service_account=(value) -> ::Google::Cloud::ApiHub::V1::GoogleServiceAccountConfig

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::GoogleServiceAccountConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-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.
**Returns**

- ([::Google::Cloud::ApiHub::V1::GoogleServiceAccountConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-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.

### #supported_auth_types

    def supported_auth_types() -> ::Array<::Google::Cloud::ApiHub::V1::AuthType>

**Returns**

- (::Array\<[::Google::Cloud::ApiHub::V1::AuthType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AuthType)\>) --- Required. The list of authentication types supported by the plugin.

### #supported_auth_types=

    def supported_auth_types=(value) -> ::Array<::Google::Cloud::ApiHub::V1::AuthType>

**Parameter**

- **value** (::Array\<[::Google::Cloud::ApiHub::V1::AuthType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AuthType)\>) --- Required. The list of authentication types supported by the plugin.
**Returns**

- (::Array\<[::Google::Cloud::ApiHub::V1::AuthType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AuthType)\>) --- Required. The list of authentication types supported by the plugin.