Class: Google::Apis::WorkloadmanagerV1::CloudResource
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::CloudResource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
The resource on GCP
Instance Attribute Summary collapse
-
#instance_properties ⇒ Google::Apis::WorkloadmanagerV1::InstanceProperties
Instance Properties.
-
#kind ⇒ String
Output only.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudResource
constructor
A new instance of CloudResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudResource
Returns a new instance of CloudResource.
698 699 700 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 698 def initialize(**args) update!(**args) end |
Instance Attribute Details
#instance_properties ⇒ Google::Apis::WorkloadmanagerV1::InstanceProperties
Instance Properties.
Corresponds to the JSON property instanceProperties
685 686 687 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 685 def instance_properties @instance_properties end |
#kind ⇒ String
Output only.
Corresponds to the JSON property kind
690 691 692 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 690 def kind @kind end |
#name ⇒ String
Output only. resource name Example: compute.googleapis.com/projects/wlm-obs-
dev/zones/us-central1-a/instances/sap-pri
Corresponds to the JSON property name
696 697 698 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 696 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
703 704 705 706 707 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 703 def update!(**args) @instance_properties = args[:instance_properties] if args.key?(:instance_properties) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) end |