Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PersistentDiskSpec

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

Represents the spec of persistent disk and hyperdisk options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1PersistentDiskSpec

Returns a new instance of GoogleCloudAiplatformV1PersistentDiskSpec.



27548
27549
27550
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 27548

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

Instance Attribute Details

#disk_size_gbFixnum

Size in GB of the disk (default is 100GB). Corresponds to the JSON property diskSizeGb

Returns:

  • (Fixnum)


27535
27536
27537
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 27535

def disk_size_gb
  @disk_size_gb
end

#disk_typeString

Type of the disk (default is "pd-standard"). Valid values: "pd-ssd" ( Persistent Disk Solid State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent Disk) "pd-extreme" (Extreme Persistent Disk) "hyperdisk-balanced" (Hyperdisk Balanced) "hyperdisk-extreme" (Hyperdisk Extreme) "hyperdisk-balanced-high-availability" (Hyperdisk Balanced High Availability) "hyperdisk-ml" (Hyperdisk ML) "hyperdisk-throughput" ( Hyperdisk Throughput) Corresponds to the JSON property diskType

Returns:

  • (String)


27546
27547
27548
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 27546

def disk_type
  @disk_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



27553
27554
27555
27556
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 27553

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