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.



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

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

Instance Attribute Details

#projectString

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

Returns:

  • (String)


3186
3187
3188
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3186

def project
  @project
end

#zoneString

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

Returns:

  • (String)


3191
3192
3193
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3191

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @project = args[:project] if args.key?(:project)
  @zone = args[:zone] if args.key?(:zone)
end