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.



21739
21740
21741
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21739

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



21732
21733
21734
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21732

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



21737
21738
21739
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21737

def 
  @service_account_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21744
21745
21746
21747
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 21744

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