Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec

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

Compute configuration to use for an execution job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec

Returns a new instance of GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec.



27591
27592
27593
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 27591

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

Instance Attribute Details

#machine_specGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1MachineSpec

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



27579
27580
27581
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 27579

def machine_spec
  @machine_spec
end

#network_specGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1NetworkSpec

Network spec. Corresponds to the JSON property networkSpec



27584
27585
27586
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 27584

def network_spec
  @network_spec
end

#persistent_disk_specGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1PersistentDiskSpec

Represents the spec of persistent disk and hyperdisk options. Corresponds to the JSON property persistentDiskSpec



27589
27590
27591
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 27589

def persistent_disk_spec
  @persistent_disk_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



27596
27597
27598
27599
27600
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 27596

def update!(**args)
  @machine_spec = args[:machine_spec] if args.key?(:machine_spec)
  @network_spec = args[:network_spec] if args.key?(:network_spec)
  @persistent_disk_spec = args[:persistent_disk_spec] if args.key?(:persistent_disk_spec)
end