Class: Google::Apis::ReplicapoolV1beta1::ExistingDisk

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/replicapool_v1beta1/classes.rb,
generated/google/apis/replicapool_v1beta1/representations.rb,
generated/google/apis/replicapool_v1beta1/representations.rb

Overview

A pre-existing persistent disk that will be attached to every Replica in the Pool in READ_ONLY mode.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ExistingDisk

Returns a new instance of ExistingDisk



169
170
171
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 169

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

Instance Attribute Details

#attachmentGoogle::Apis::ReplicapoolV1beta1::DiskAttachment

Specifies how to attach a disk to a Replica. Corresponds to the JSON property attachment



161
162
163
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 161

def attachment
  @attachment
end

#sourceString

The name of the Persistent Disk resource. The Persistent Disk resource must be in the same zone as the Pool. Corresponds to the JSON property source

Returns:

  • (String)


167
168
169
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 167

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



174
175
176
177
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 174

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