Class: Google::Apis::ComputeAlpha::LocalDisk

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocalDisk

Returns a new instance of LocalDisk.



20403
20404
20405
# File 'lib/google/apis/compute_alpha/classes.rb', line 20403

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)


20389
20390
20391
# File 'lib/google/apis/compute_alpha/classes.rb', line 20389

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)


20394
20395
20396
# File 'lib/google/apis/compute_alpha/classes.rb', line 20394

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)


20401
20402
20403
# File 'lib/google/apis/compute_alpha/classes.rb', line 20401

def disk_type
  @disk_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20408
20409
20410
20411
20412
# File 'lib/google/apis/compute_alpha/classes.rb', line 20408

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