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.
1205 1206 1207 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1205 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
1194 1195 1196 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1194 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. getAccessToken
permission 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
1203 1204 1205 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1203 def service_account @service_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1210 1211 1212 1213 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1210 def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @service_account = args[:service_account] if args.key?(:service_account) end |