Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigOauthConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigOauthConfig
- 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 oauth.
Instance Attribute Summary collapse
-
#access_token ⇒ String
Access token for extension endpoint.
-
#service_account ⇒ String
The service account used to generate access tokens for executing the Extension.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AuthConfigOauthConfig
constructor
A new instance of GoogleCloudAiplatformV1beta1AuthConfigOauthConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AuthConfigOauthConfig
Returns a new instance of GoogleCloudAiplatformV1beta1AuthConfigOauthConfig.
1191 1192 1193 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1191 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_token ⇒ String
Access token for extension endpoint. Only used to propagate token from [[
ExecuteExtensionRequest.runtime_auth_config]] at request time.
Corresponds to the JSON property accessToken
1180 1181 1182 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1180 def access_token @access_token end |
#service_account ⇒ String
The service account used to generate access tokens for executing the Extension.
- If the service account is specified, the
iam.serviceAccounts. getAccessTokenpermission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service- agents) on the provided service account. Corresponds to the JSON propertyserviceAccount
1189 1190 1191 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1189 def service_account @service_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1196 1197 1198 1199 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1196 def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @service_account = args[:service_account] if args.key?(:service_account) end |