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.
3207 3208 3209 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3207 def initialize(**args) update!(**args) end |
Instance Attribute Details
#project ⇒ String
Required. Target project for the disk.
Corresponds to the JSON property project
3194 3195 3196 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3194 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.
Corresponds to the JSON property useProjectServiceAccount
3199 3200 3201 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3199 def use_project_service_account @use_project_service_account end |
#zone ⇒ String
Required. Target zone for the disk.
Corresponds to the JSON property zone
3205 3206 3207 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3205 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3212 3213 3214 3215 3216 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3212 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 |