Class: Google::Apis::GkebackupV1::ResourceLabels

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(**args) ⇒ ResourceLabels

Returns a new instance of ResourceLabels.



2595
2596
2597
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2595

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#resource_labelsArray<Google::Apis::GkebackupV1::Label>

Optional. A list of Kubernetes label-value pairs. Corresponds to the JSON property resourceLabels



2593
2594
2595
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2593

def resource_labels
  @resource_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2600
2601
2602
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2600

def update!(**args)
  @resource_labels = args[:resource_labels] if args.key?(:resource_labels)
end