Class: Google::Apis::ComputeAlpha::DiskAsyncReplication
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::DiskAsyncReplication
- 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
-
#disk ⇒ String
The other disk asynchronously replicated to or from the current disk.
-
#disk_id ⇒ String
[Output Only] The unique ID of the other disk asynchronously replicated to or from the current disk.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskAsyncReplication
constructor
A new instance of DiskAsyncReplication.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiskAsyncReplication
Returns a new instance of DiskAsyncReplication.
6805 6806 6807 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 6805 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk ⇒ String
The other disk asynchronously replicated to or from the current disk. You can
provide this as a partial or full URL to the resource. For example, the
following are valid values: - https://www.googleapis.com/compute/v1/projects/
project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk -
zones/zone/disks/disk
Corresponds to the JSON property disk
6793 6794 6795 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 6793 def disk @disk end |
#disk_id ⇒ String
[Output Only] The unique ID of the other disk asynchronously replicated to or
from the current disk. This value identifies the exact disk that was used to
create this replication. For example, if you started replicating the
persistent disk from a disk that was later deleted and recreated under the
same name, the disk ID would identify the exact version of the disk that was
used.
Corresponds to the JSON property diskId
6803 6804 6805 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 6803 def disk_id @disk_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6810 6811 6812 6813 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 6810 def update!(**args) @disk = args[:disk] if args.key?(:disk) @disk_id = args[:disk_id] if args.key?(:disk_id) end |