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.



1633
1634
1635
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1633

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)


1626
1627
1628
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1626

def project
  @project
end

#zoneString

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

Returns:

  • (String)


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