Class: Google::Apis::ComputeAlpha::ReplicationDiskPair

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReplicationDiskPair

Returns a new instance of ReplicationDiskPair.



50109
50110
50111
# File 'lib/google/apis/compute_alpha/classes.rb', line 50109

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

Instance Attribute Details

#primary_diskString

URL of the primary disk. Corresponds to the JSON property primaryDisk

Returns:

  • (String)


50102
50103
50104
# File 'lib/google/apis/compute_alpha/classes.rb', line 50102

def primary_disk
  @primary_disk
end

#secondary_diskString

URL of the secondary disk. Corresponds to the JSON property secondaryDisk

Returns:

  • (String)


50107
50108
50109
# File 'lib/google/apis/compute_alpha/classes.rb', line 50107

def secondary_disk
  @secondary_disk
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



50114
50115
50116
50117
# File 'lib/google/apis/compute_alpha/classes.rb', line 50114

def update!(**args)
  @primary_disk = args[:primary_disk] if args.key?(:primary_disk)
  @secondary_disk = args[:secondary_disk] if args.key?(:secondary_disk)
end