Class: Google::Apis::ComputeAlpha::InstancePropertiesPatch
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::InstancePropertiesPatch
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Represents the change that you want to make to the instance properties.
Instance Attribute Summary collapse
-
#labels ⇒ Hash<String,String>
The label key-value pairs that you want to patch onto the instance.
-
#metadata ⇒ Hash<String,String>
The metadata key-value pairs that you want to patch onto the instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstancePropertiesPatch
constructor
A new instance of InstancePropertiesPatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstancePropertiesPatch
Returns a new instance of InstancePropertiesPatch.
19759 19760 19761 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 19759 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Hash<String,String>
The label key-value pairs that you want to patch onto the instance.
Corresponds to the JSON property labels
19751 19752 19753 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 19751 def labels @labels end |
#metadata ⇒ Hash<String,String>
The metadata key-value pairs that you want to patch onto the instance. For
more information, see Project and instance metadata.
Corresponds to the JSON property metadata
19757 19758 19759 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 19757 def @metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19764 19765 19766 19767 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 19764 def update!(**args) @labels = args[:labels] if args.key?(:labels) @metadata = args[:metadata] if args.key?(:metadata) end |