Class: Google::Apis::ComputeBeta::LocalDisk

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocalDisk

Returns a new instance of LocalDisk.



17474
17475
17476
# File 'generated/google/apis/compute_beta/classes.rb', line 17474

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

Instance Attribute Details

#disk_countFixnum

Specifies the number of such disks. Corresponds to the JSON property diskCount

Returns:

  • (Fixnum)


17460
17461
17462
# File 'generated/google/apis/compute_beta/classes.rb', line 17460

def disk_count
  @disk_count
end

#disk_size_gbFixnum

Specifies the size of the disk in base-2 GB. Corresponds to the JSON property diskSizeGb

Returns:

  • (Fixnum)


17465
17466
17467
# File 'generated/google/apis/compute_beta/classes.rb', line 17465

def disk_size_gb
  @disk_size_gb
end

#disk_typeString

Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL. Corresponds to the JSON property diskType

Returns:

  • (String)


17472
17473
17474
# File 'generated/google/apis/compute_beta/classes.rb', line 17472

def disk_type
  @disk_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17479
17480
17481
17482
17483
# File 'generated/google/apis/compute_beta/classes.rb', line 17479

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