Class: Google::Apis::BackupdrV1::DiskTargetEnvironment

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

DiskTargetEnvironment represents the target environment for the disk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskTargetEnvironment

Returns a new instance of DiskTargetEnvironment.



3252
3253
3254
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3252

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

Instance Attribute Details

#projectString

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

Returns:

  • (String)


3239
3240
3241
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3239

def project
  @project
end

#use_project_service_accountBoolean 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

Returns:

  • (Boolean)


3244
3245
3246
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3244

def 
  @use_project_service_account
end

#zoneString

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

Returns:

  • (String)


3250
3251
3252
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3250

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3257
3258
3259
3260
3261
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3257

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