Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigOauthConfig

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 oauth.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AuthConfigOauthConfig

Returns a new instance of GoogleCloudAiplatformV1beta1AuthConfigOauthConfig.



2018
2019
2020
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2018

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

Instance Attribute Details

#access_tokenString

Access token for extension endpoint. Only used to propagate token from [[ ExecuteExtensionRequest.runtime_auth_config]] at request time. Corresponds to the JSON property accessToken

Returns:

  • (String)


2007
2008
2009
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2007

def access_token
  @access_token
end

#service_accountString

The service account used to generate access tokens for executing the Extension.

Returns:

  • (String)


2016
2017
2018
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2016

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2023
2024
2025
2026
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2023

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