Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RaySpec

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

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RaySpec

Returns a new instance of GoogleCloudAiplatformV1beta1RaySpec.



14523
14524
14525
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14523

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

Instance Attribute Details

#head_machine_specGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MachineSpec

Specification of a single machine. Corresponds to the JSON property headMachineSpec



14511
14512
14513
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14511

def head_machine_spec
  @head_machine_spec
end

#image_uriString

Optional. Default image for user to choose a preferred ML framework(e.g. tensorflow or Pytorch) by choosing from Vertex prebuild images(https://cloud. google.com/vertex-ai/docs/training/pre-built-containers). Either this or the resource_pool_images is required. Use this field if you need all the resource pools to have the same Ray image, Otherwise, use the @code resource_pool_images field. Corresponds to the JSON property imageUri

Returns:

  • (String)


14521
14522
14523
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14521

def image_uri
  @image_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14528
14529
14530
14531
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14528

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