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
-
(::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
-
value (::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.
-
(::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>
- (::Array<::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>
- value (::Array<::Google::Cloud::ApiHub::V1::AuthType>) — Required. The list of authentication types supported by the plugin.
- (::Array<::Google::Cloud::ApiHub::V1::AuthType>) — Required. The list of authentication types supported by the plugin.