Class: Google::Apis::ComputeAlpha::ReplicationDiskPair
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ReplicationDiskPair
- 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
-
#primary_disk ⇒ String
Output only.
-
#secondary_disk ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReplicationDiskPair
constructor
A new instance of ReplicationDiskPair.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReplicationDiskPair
Returns a new instance of ReplicationDiskPair.
57651 57652 57653 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57651 def initialize(**args) update!(**args) end |
Instance Attribute Details
#primary_disk ⇒ String
Output only. URL of the primary disk.
Corresponds to the JSON property primaryDisk
57644 57645 57646 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57644 def primary_disk @primary_disk end |
#secondary_disk ⇒ String
Output only. URL of the secondary disk.
Corresponds to the JSON property secondaryDisk
57649 57650 57651 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57649 def secondary_disk @secondary_disk end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
57656 57657 57658 57659 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57656 def update!(**args) @primary_disk = args[:primary_disk] if args.key?(:primary_disk) @secondary_disk = args[:secondary_disk] if args.key?(:secondary_disk) end |