Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigOauthConfig

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

Overview

Config for user oauth.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1AuthConfigOauthConfig

Returns a new instance of GoogleCloudAiplatformV1AuthConfigOauthConfig.



1429
1430
1431
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1429

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)


1418
1419
1420
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1418

def access_token
  @access_token
end

#service_accountString

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

Returns:

  • (String)


1427
1428
1429
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1427

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1434
1435
1436
1437
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1434

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