Class: Google::Apis::BackupdrV1::RegionDiskTargetEnvironment

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

RegionDiskTargetEnvironment represents the target environment for the disk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RegionDiskTargetEnvironment

Returns a new instance of RegionDiskTargetEnvironment.



5133
5134
5135
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5133

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

Instance Attribute Details

#projectString

Required. Target project for the disk. Corresponds to the JSON property project

Returns:

  • (String)


5121
5122
5123
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5121

def project
  @project
end

#regionString

Required. Target region for the disk. Corresponds to the JSON property region

Returns:

  • (String)


5126
5127
5128
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5126

def region
  @region
end

#replica_zonesArray<String>

Required. Target URLs of the replica zones for the disk. Corresponds to the JSON property replicaZones

Returns:

  • (Array<String>)


5131
5132
5133
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5131

def replica_zones
  @replica_zones
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5138
5139
5140
5141
5142
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5138

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