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.



5220
5221
5222
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5220

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

Instance Attribute Details

#projectString

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

Returns:

  • (String)


5202
5203
5204
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5202

def project
  @project
end

#regionString

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

Returns:

  • (String)


5207
5208
5209
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5207

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>)


5212
5213
5214
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5212

def replica_zones
  @replica_zones
end

#use_project_service_accountBoolean Also known as: use_project_service_account?

Optional. Whether to use the project service account for the disk. Corresponds to the JSON property useProjectServiceAccount

Returns:

  • (Boolean)


5217
5218
5219
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5217

def 
  @use_project_service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5225
5226
5227
5228
5229
5230
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5225

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)
  @use_project_service_account = args[:use_project_service_account] if args.key?(:use_project_service_account)
end