Class: Google::Apis::BackupdrV1::RegionDiskTargetEnvironment
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::RegionDiskTargetEnvironment
- 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
-
#project ⇒ String
Required.
-
#region ⇒ String
Required.
-
#replica_zones ⇒ Array<String>
Required.
-
#use_project_service_account ⇒ Boolean
(also: #use_project_service_account?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RegionDiskTargetEnvironment
constructor
A new instance of RegionDiskTargetEnvironment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RegionDiskTargetEnvironment
Returns a new instance of RegionDiskTargetEnvironment.
5297 5298 5299 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5297 def initialize(**args) update!(**args) end |
Instance Attribute Details
#project ⇒ String
Required. Target project for the disk.
Corresponds to the JSON property project
5279 5280 5281 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5279 def project @project end |
#region ⇒ String
Required. Target region for the disk.
Corresponds to the JSON property region
5284 5285 5286 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5284 def region @region end |
#replica_zones ⇒ Array<String>
Required. Target URLs of the replica zones for the disk.
Corresponds to the JSON property replicaZones
5289 5290 5291 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5289 def replica_zones @replica_zones end |
#use_project_service_account ⇒ Boolean Also known as: use_project_service_account?
Optional. Whether to use the project service account for the disk restore.
Corresponds to the JSON property useProjectServiceAccount
5294 5295 5296 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5294 def use_project_service_account @use_project_service_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5302 5303 5304 5305 5306 5307 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5302 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 |