Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ResourceRuntimeSpec

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 runtime on a PersistentResource instance, including but not limited to: * Service accounts used to run the workloads. * Whether to make it a dedicated Ray Cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1ResourceRuntimeSpec

Returns a new instance of GoogleCloudAiplatformV1ResourceRuntimeSpec.



21152
21153
21154
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21152

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

Instance Attribute Details

#ray_specGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1RaySpec

Configuration information for the Ray cluster. For experimental launch, Ray cluster creation and Persistent cluster creation are 1:1 mapping: We will provision all the nodes within the Persistent cluster as Ray nodes. Corresponds to the JSON property raySpec



21145
21146
21147
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21145

def ray_spec
  @ray_spec
end

#service_account_specGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1ServiceAccountSpec

Configuration for the use of custom service account to run the workloads. Corresponds to the JSON property serviceAccountSpec



21150
21151
21152
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21150

def 
  @service_account_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21157
21158
21159
21160
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21157

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