Class: Google::Apis::BackupdrV1::InitializeParams
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::InitializeParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Overview
Specifies the parameters to initialize this disk.
Instance Attribute Summary collapse
-
#disk_name ⇒ String
Optional.
-
#replica_zones ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InitializeParams
constructor
A new instance of InitializeParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InitializeParams
Returns a new instance of InitializeParams.
2311 2312 2313 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2311 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_name ⇒ String
Optional. Specifies the disk name. If not specified, the default is to use the
name of the instance.
Corresponds to the JSON property diskName
2303 2304 2305 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2303 def disk_name @disk_name end |
#replica_zones ⇒ Array<String>
Optional. URL of the zone where the disk should be created. Required for each
regional disk associated with the instance.
Corresponds to the JSON property replicaZones
2309 2310 2311 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2309 def replica_zones @replica_zones end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2316 2317 2318 2319 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2316 def update!(**args) @disk_name = args[:disk_name] if args.key?(:disk_name) @replica_zones = args[:replica_zones] if args.key?(:replica_zones) end |