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.



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

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

Instance Attribute Details

#projectString

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

Returns:

  • (String)


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

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)


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

def 
  @use_project_service_account
end

#zoneString

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

Returns:

  • (String)


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