Class: Google::Apis::ComputeV1::DiskResourceStatus

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskResourceStatus

Returns a new instance of DiskResourceStatus.



10710
10711
10712
# File 'lib/google/apis/compute_v1/classes.rb', line 10710

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

Instance Attribute Details

#async_primary_diskGoogle::Apis::ComputeV1::DiskResourceStatusAsyncReplicationStatus

Corresponds to the JSON property asyncPrimaryDisk



10703
10704
10705
# File 'lib/google/apis/compute_v1/classes.rb', line 10703

def async_primary_disk
  @async_primary_disk
end

#async_secondary_disksHash<String,Google::Apis::ComputeV1::DiskResourceStatusAsyncReplicationStatus>

Key: disk, value: AsyncReplicationStatus message Corresponds to the JSON property asyncSecondaryDisks



10708
10709
10710
# File 'lib/google/apis/compute_v1/classes.rb', line 10708

def async_secondary_disks
  @async_secondary_disks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10715
10716
10717
10718
# File 'lib/google/apis/compute_v1/classes.rb', line 10715

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)
end