Class: Google::Apis::BackupdrV1::TargetResource

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

Details of the target resource created/modified as part of restore.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetResource

Returns a new instance of TargetResource.



3832
3833
3834
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3832

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

Instance Attribute Details

#gcp_resourceGoogle::Apis::BackupdrV1::GcpResource

Minimum details to identify a Google Cloud resource Corresponds to the JSON property gcpResource



3830
3831
3832
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3830

def gcp_resource
  @gcp_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3837
3838
3839
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3837

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