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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LocalDisk

Returns a new instance of LocalDisk



17036
17037
17038
# File 'generated/google/apis/compute_alpha/classes.rb', line 17036

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

Instance Attribute Details

#disk_countString

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

Returns:

  • (String)


17022
17023
17024
# File 'generated/google/apis/compute_alpha/classes.rb', line 17022

def disk_count
  @disk_count
end

#disk_size_gbString

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

Returns:

  • (String)


17027
17028
17029
# File 'generated/google/apis/compute_alpha/classes.rb', line 17027

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)


17034
17035
17036
# File 'generated/google/apis/compute_alpha/classes.rb', line 17034

def disk_type
  @disk_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17041
17042
17043
17044
17045
# File 'generated/google/apis/compute_alpha/classes.rb', line 17041

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