Class: Google::Apis::ContainerV1::SetLabelsRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::SetLabelsRequest
- Defined in:
- generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb
Overview
SetLabelsRequest sets the Google Cloud Platform labels on a Google Container Engine cluster, which will in turn set them for Google Compute Engine resources used by that cluster
Instance Attribute Summary collapse
-
#label_fingerprint ⇒ String
The fingerprint of the previous set of labels for this resource, used to detect conflicts.
-
#resource_labels ⇒ Hash<String,String>
The labels to set for that cluster.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SetLabelsRequest
constructor
A new instance of SetLabelsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SetLabelsRequest
Returns a new instance of SetLabelsRequest
1503 1504 1505 |
# File 'generated/google/apis/container_v1/classes.rb', line 1503 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label_fingerprint ⇒ String
The fingerprint of the previous set of labels for this resource,
used to detect conflicts. The fingerprint is initially generated by
Container Engine and changes after every request to modify or update
labels. You must always provide an up-to-date fingerprint hash when
updating or changing labels. Make a get()
request to the
resource to get the latest fingerprint.
Corresponds to the JSON property labelFingerprint
1496 1497 1498 |
# File 'generated/google/apis/container_v1/classes.rb', line 1496 def label_fingerprint @label_fingerprint end |
#resource_labels ⇒ Hash<String,String>
The labels to set for that cluster.
Corresponds to the JSON property resourceLabels
1501 1502 1503 |
# File 'generated/google/apis/container_v1/classes.rb', line 1501 def resource_labels @resource_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1508 1509 1510 1511 |
# File 'generated/google/apis/container_v1/classes.rb', line 1508 def update!(**args) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @resource_labels = args[:resource_labels] if args.key?(:resource_labels) end |