Package com.google.cloud.apihub.v1
Interface Plugin.ConfigTemplate.AuthConfigTemplateOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Plugin.ConfigTemplate.AuthConfigTemplate,Plugin.ConfigTemplate.AuthConfigTemplate.Builder
- Enclosing class:
- Plugin.ConfigTemplate
public static interface Plugin.ConfigTemplate.AuthConfigTemplateOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.Optional.getSupportedAuthTypes(int index) Required.intRequired.Required.intgetSupportedAuthTypesValue(int index) Required.Required.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getSupportedAuthTypesList
Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- A list containing the supportedAuthTypes.
-
getSupportedAuthTypesCount
int getSupportedAuthTypesCount()Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The count of supportedAuthTypes.
-
getSupportedAuthTypes
Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index of the element to return.- Returns:
- The supportedAuthTypes at the given index.
-
getSupportedAuthTypesValueList
Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- A list containing the enum numeric values on the wire for supportedAuthTypes.
-
getSupportedAuthTypesValue
int getSupportedAuthTypesValue(int index) Required. The list of authentication types supported by the plugin.
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of supportedAuthTypes at the given index.
-
hasServiceAccount
boolean hasServiceAccount()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 service_account = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the serviceAccount field is set.
-
getServiceAccount
GoogleServiceAccountConfig 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.
.google.cloud.apihub.v1.GoogleServiceAccountConfig service_account = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The serviceAccount.
-
getServiceAccountOrBuilder
GoogleServiceAccountConfigOrBuilder getServiceAccountOrBuilder()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 service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
-