Class: Google::Apis::BackupdrV1::ComputeInstanceTargetEnvironment
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::ComputeInstanceTargetEnvironment
- 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
-
#project ⇒ String
Required.
-
#zone ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeInstanceTargetEnvironment
constructor
A new instance of ComputeInstanceTargetEnvironment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeInstanceTargetEnvironment
Returns a new instance of ComputeInstanceTargetEnvironment.
1633 1634 1635 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1633 def initialize(**args) update!(**args) end |
Instance Attribute Details
#project ⇒ String
Required. Target project for the Compute Engine instance.
Corresponds to the JSON property project
1626 1627 1628 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1626 def project @project end |
#zone ⇒ String
Required. The zone of the Compute Engine instance.
Corresponds to the JSON property zone
1631 1632 1633 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1631 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1638 1639 1640 1641 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1638 def update!(**args) @project = args[:project] if args.key?(:project) @zone = args[:zone] if args.key?(:zone) end |