Class: Google::Apis::MigrationcenterV1alpha1::ComputeStorageDescriptor

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

Overview

Compute Engine storage option descriptor.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeStorageDescriptor

Returns a new instance of ComputeStorageDescriptor.



1928
1929
1930
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1928

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

Instance Attribute Details

#size_gbFixnum

Disk size in GiB. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


1921
1922
1923
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1921

def size_gb
  @size_gb
end

#typeString

Output only. Disk type backing the storage. Corresponds to the JSON property type

Returns:

  • (String)


1926
1927
1928
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1926

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1933
1934
1935
1936
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1933

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