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.



3207
3208
3209
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3207

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

Instance Attribute Details

#projectString

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

Returns:

  • (String)


3194
3195
3196
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3194

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. Corresponds to the JSON property useProjectServiceAccount

Returns:

  • (Boolean)


3199
3200
3201
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3199

def 
  @use_project_service_account
end

#zoneString

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

Returns:

  • (String)


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