Class: Google::Apis::BackupdrV1::GcpResource
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::GcpResource
- 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
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) ⇒ GcpResource
constructor
A new instance of GcpResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GcpResource
Returns a new instance of GcpResource.
2264 2265 2266 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2264 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcp_resourcename ⇒ String
Name of the Google Cloud resource.
Corresponds to the JSON property gcpResourcename
2251 2252 2253 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2251 def gcp_resourcename @gcp_resourcename end |
#location ⇒ String
Location of the resource: //"global"/"unspecified".
Corresponds to the JSON property location
2256 2257 2258 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2256 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
2262 2263 2264 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2262 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2269 2270 2271 2272 2273 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2269 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 |