Class: Google::Apis::BackupdrV1::InitializeParams

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InitializeParams

Returns a new instance of InitializeParams.



2328
2329
2330
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2328

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

Instance Attribute Details

#disk_nameString

Optional. Specifies the disk name. If not specified, the default is to use the name of the instance. Corresponds to the JSON property diskName

Returns:

  • (String)


2320
2321
2322
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2320

def disk_name
  @disk_name
end

#replica_zonesArray<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

Returns:

  • (Array<String>)


2326
2327
2328
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2326

def replica_zones
  @replica_zones
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2333
2334
2335
2336
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2333

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