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.
2556 2557 2558 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2556 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
2554 2555 2556 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2554 def resource_labels @resource_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2561 2562 2563 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2561 def update!(**args) @resource_labels = args[:resource_labels] if args.key?(:resource_labels) end |