Class: Google::Apis::BackupdrV1::DiskTargetEnvironment
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::DiskTargetEnvironment
- 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
DiskTargetEnvironment represents the target environment for the disk.
Instance Attribute Summary collapse
-
#project ⇒ String
Required.
-
#use_project_service_account ⇒ Boolean
(also: #use_project_service_account?)
Optional.
-
#zone ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskTargetEnvironment
constructor
A new instance of DiskTargetEnvironment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiskTargetEnvironment
Returns a new instance of DiskTargetEnvironment.
3258 3259 3260 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3258 def initialize(**args) update!(**args) end |
Instance Attribute Details
#project ⇒ String
Required. Target project for the disk.
Corresponds to the JSON property project
3245 3246 3247 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3245 def project @project 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
3250 3251 3252 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3250 def use_project_service_account @use_project_service_account end |
#zone ⇒ String
Required. Target zone for the disk.
Corresponds to the JSON property zone
3256 3257 3258 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3256 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3263 3264 3265 3266 3267 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3263 def update!(**args) @project = args[:project] if args.key?(:project) @use_project_service_account = args[:use_project_service_account] if args.key?(:use_project_service_account) @zone = args[:zone] if args.key?(:zone) end |