Class: Google::Apis::MigrationcenterV1alpha1::ComputeStorageDescriptor
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::ComputeStorageDescriptor
- 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
-
#size_gb ⇒ Fixnum
Disk size in GiB.
-
#type ⇒ String
Disk type backing the storage.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeStorageDescriptor
constructor
A new instance of ComputeStorageDescriptor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeStorageDescriptor
Returns a new instance of ComputeStorageDescriptor.
1316 1317 1318 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1316 def initialize(**args) update!(**args) end |
Instance Attribute Details
#size_gb ⇒ Fixnum
Disk size in GiB.
Corresponds to the JSON property sizeGb
1309 1310 1311 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1309 def size_gb @size_gb end |
#type ⇒ String
Disk type backing the storage.
Corresponds to the JSON property type
1314 1315 1316 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1314 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1321 1322 1323 1324 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1321 def update!(**args) @size_gb = args[:size_gb] if args.key?(:size_gb) @type = args[:type] if args.key?(:type) end |