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.



1205
1206
1207
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1205

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)


1194
1195
1196
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1194

def access_token
  @access_token
end

#service_accountString

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

Returns:

  • (String)


1203
1204
1205
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1203

def 
  @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