Class: Google::Apis::ComputeAlpha::DiskResourceStatus
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::DiskResourceStatus
- 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
-
#async_primary_disk ⇒ Google::Apis::ComputeAlpha::DiskResourceStatusAsyncReplicationStatus
Corresponds to the JSON property
asyncPrimaryDisk. -
#async_secondary_disks ⇒ Hash<String,Google::Apis::ComputeAlpha::DiskResourceStatusAsyncReplicationStatus>
Key: disk, value: AsyncReplicationStatus message Corresponds to the JSON property
asyncSecondaryDisks. -
#used_bytes ⇒ Fixnum
[Output Only] Space used by data stored in the disk (in bytes).
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskResourceStatus
constructor
A new instance of DiskResourceStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiskResourceStatus
Returns a new instance of DiskResourceStatus.
8194 8195 8196 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8194 def initialize(**args) update!(**args) end |
Instance Attribute Details
#async_primary_disk ⇒ Google::Apis::ComputeAlpha::DiskResourceStatusAsyncReplicationStatus
Corresponds to the JSON property asyncPrimaryDisk
8181 8182 8183 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8181 def async_primary_disk @async_primary_disk end |
#async_secondary_disks ⇒ Hash<String,Google::Apis::ComputeAlpha::DiskResourceStatusAsyncReplicationStatus>
Key: disk, value: AsyncReplicationStatus message
Corresponds to the JSON property asyncSecondaryDisks
8186 8187 8188 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8186 def async_secondary_disks @async_secondary_disks end |
#used_bytes ⇒ Fixnum
[Output Only] Space used by data stored in the disk (in bytes). Note that this
field is set only when the disk is in a storage pool.
Corresponds to the JSON property usedBytes
8192 8193 8194 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8192 def used_bytes @used_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8199 8200 8201 8202 8203 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8199 def update!(**args) @async_primary_disk = args[:async_primary_disk] if args.key?(:async_primary_disk) @async_secondary_disks = args[:async_secondary_disks] if args.key?(:async_secondary_disks) @used_bytes = args[:used_bytes] if args.key?(:used_bytes) end |