Class: Google::Apis::GkebackupV1::ResourceLabels
- Inherits:
-
Object
- Object
- Google::Apis::GkebackupV1::ResourceLabels
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkebackup_v1/classes.rb,
lib/google/apis/gkebackup_v1/representations.rb,
lib/google/apis/gkebackup_v1/representations.rb
Overview
A list of Kubernetes labels.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceLabels
constructor
A new instance of ResourceLabels.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceLabels
Returns a new instance of ResourceLabels.
2205 2206 2207 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2205 def initialize(**args) update!(**args) end |
Instance Attribute Details
#resource_labels ⇒ Array<Google::Apis::GkebackupV1::Label>
Optional. A list of Kubernetes label-value pairs.
Corresponds to the JSON property resourceLabels
2203 2204 2205 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2203 def resource_labels @resource_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2210 2211 2212 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2210 def update!(**args) @resource_labels = args[:resource_labels] if args.key?(:resource_labels) end |