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.



5890
5891
5892
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5890

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



5888
5889
5890
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5888

def gcp_resource
  @gcp_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5895
5896
5897
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5895

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