Class: Google::Apis::BackupdrV1::BackupGcpResource
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::BackupGcpResource
- 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
Minimum details to identify a Google Cloud resource for a backup.
Instance Attribute Summary collapse
-
#gcp_resourcename ⇒ String
Name of the Google Cloud resource.
-
#location ⇒ String
Location of the resource: //"global"/"unspecified".
-
#type ⇒ String
Type of the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupGcpResource
constructor
A new instance of BackupGcpResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupGcpResource
Returns a new instance of BackupGcpResource.
1160 1161 1162 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1160 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcp_resourcename ⇒ String
Name of the Google Cloud resource.
Corresponds to the JSON property gcpResourcename
1147 1148 1149 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1147 def gcp_resourcename @gcp_resourcename end |
#location ⇒ String
Location of the resource: //"global"/"unspecified".
Corresponds to the JSON property location
1152 1153 1154 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1152 def location @location end |
#type ⇒ String
Type of the resource. Use the Unified Resource Type, eg. compute.googleapis.
com/Instance.
Corresponds to the JSON property type
1158 1159 1160 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1158 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1165 1166 1167 1168 1169 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1165 def update!(**args) @gcp_resourcename = args[:gcp_resourcename] if args.key?(:gcp_resourcename) @location = args[:location] if args.key?(:location) @type = args[:type] if args.key?(:type) end |