Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigOidcConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Config for user OIDC auth.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AuthConfigOidcConfig

Returns a new instance of GoogleCloudAiplatformV1beta1AuthConfigOidcConfig.



1121
1122
1123
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1121

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#id_tokenString

OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time. Corresponds to the JSON property idToken

Returns:

  • (String)


1107
1108
1109
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1107

def id_token
  @id_token
end

#service_accountString

The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials- direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant iam.serviceAccounts.getOpenIdToken permission to Vertex AI Extension Service Agent (https://cloud.google.com/ vertex-ai/docs/general/access-control#service-agents). Corresponds to the JSON property serviceAccount

Returns:

  • (String)


1119
1120
1121
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1119

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1126
1127
1128
1129
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1126

def update!(**args)
  @id_token = args[:id_token] if args.key?(:id_token)
  @service_account = args[:service_account] if args.key?(:service_account)
end