Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ServiceAccountSpec

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

Configuration for the use of custom service account to run the workloads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1ServiceAccountSpec

Returns a new instance of GoogleCloudAiplatformV1ServiceAccountSpec.



26083
26084
26085
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 26083

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

Instance Attribute Details

#enable_custom_service_accountBoolean Also known as: enable_custom_service_account?

Required. If true, custom user-managed service account is enforced to run any workloads (for example, Vertex Jobs) on the resource. Otherwise, uses the Vertex AI Custom Code Service Agent. Corresponds to the JSON property enableCustomServiceAccount

Returns:

  • (Boolean)


26069
26070
26071
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 26069

def 
  @enable_custom_service_account
end

#service_accountString

Optional. Default service account that this PersistentResource's workloads run as. The workloads include: * Any runtime specified via ResourceRuntimeSpec on creation time, for example, Ray. * Jobs submitted to PersistentResource, if no other service account specified in the job specs. Only works when custom service account is enabled and users have the iam.serviceAccounts.actAs permission on this service account. Required if any containers are specified in ResourceRuntimeSpec. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


26081
26082
26083
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 26081

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



26088
26089
26090
26091
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 26088

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