Class: Google::Apis::BackupdrV1::ComputeInstanceTargetEnvironment

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

ComputeInstanceTargetEnvironment represents Compute Engine target environment to be used during restore.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeInstanceTargetEnvironment

Returns a new instance of ComputeInstanceTargetEnvironment.



1745
1746
1747
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1745

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

Instance Attribute Details

#projectString

Required. Target project for the Compute Engine instance. Corresponds to the JSON property project

Returns:

  • (String)


1738
1739
1740
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1738

def project
  @project
end

#zoneString

Required. The zone of the Compute Engine instance. Corresponds to the JSON property zone

Returns:

  • (String)


1743
1744
1745
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1743

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1750
1751
1752
1753
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1750

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