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.



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

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



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

def gcp_resource
  @gcp_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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