pulp_container_client 2.24.0 → 2.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -5
  3. data/docs/ContainerBlobResponse.md +2 -0
  4. data/docs/ContainerContainerDistribution.md +2 -2
  5. data/docs/ContainerContainerDistributionResponse.md +10 -10
  6. data/docs/ContainerContainerPullThroughDistribution.md +2 -2
  7. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  8. data/docs/ContainerContainerPushRepository.md +7 -7
  9. data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
  10. data/docs/ContainerManifestResponse.md +2 -0
  11. data/docs/ContainerManifestSignatureResponse.md +2 -0
  12. data/docs/ContainerTagResponse.md +2 -0
  13. data/docs/ContentBlobsApi.md +150 -2
  14. data/docs/ContentManifestsApi.md +150 -2
  15. data/docs/ContentSignaturesApi.md +150 -2
  16. data/docs/ContentTagsApi.md +150 -2
  17. data/docs/DistributionsContainerApi.md +4 -2
  18. data/docs/DistributionsPullThroughApi.md +4 -2
  19. data/docs/PatchedcontainerContainerDistribution.md +2 -2
  20. data/docs/PatchedcontainerContainerPullThroughDistribution.md +2 -2
  21. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  22. data/lib/pulp_container_client/api/content_blobs_api.rb +154 -3
  23. data/lib/pulp_container_client/api/content_manifests_api.rb +154 -3
  24. data/lib/pulp_container_client/api/content_signatures_api.rb +154 -3
  25. data/lib/pulp_container_client/api/content_tags_api.rb +154 -3
  26. data/lib/pulp_container_client/api/distributions_container_api.rb +6 -3
  27. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +6 -3
  28. data/lib/pulp_container_client/models/container_blob_response.rb +13 -1
  29. data/lib/pulp_container_client/models/container_container_distribution.rb +12 -12
  30. data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -39
  31. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +12 -12
  32. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +39 -39
  33. data/lib/pulp_container_client/models/container_container_push_repository.rb +48 -48
  34. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +65 -65
  35. data/lib/pulp_container_client/models/container_manifest_response.rb +13 -1
  36. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +13 -1
  37. data/lib/pulp_container_client/models/container_tag_response.rb +13 -1
  38. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +12 -12
  39. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +12 -12
  40. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +48 -48
  41. data/lib/pulp_container_client/models/unset_label.rb +1 -1
  42. data/lib/pulp_container_client/models/unset_label_response.rb +1 -1
  43. data/lib/pulp_container_client/version.rb +1 -1
  44. data/spec/api/content_blobs_api_spec.rb +28 -1
  45. data/spec/api/content_manifests_api_spec.rb +28 -1
  46. data/spec/api/content_signatures_api_spec.rb +28 -1
  47. data/spec/api/content_tags_api_spec.rb +28 -1
  48. data/spec/api/distributions_container_api_spec.rb +2 -1
  49. data/spec/api/distributions_pull_through_api_spec.rb +2 -1
  50. data/spec/models/container_blob_response_spec.rb +6 -0
  51. data/spec/models/container_container_distribution_response_spec.rb +8 -8
  52. data/spec/models/container_container_distribution_spec.rb +6 -6
  53. data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
  54. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  55. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  56. data/spec/models/container_container_push_repository_spec.rb +4 -4
  57. data/spec/models/container_manifest_response_spec.rb +6 -0
  58. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  59. data/spec/models/container_tag_response_spec.rb +6 -0
  60. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  61. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  62. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  63. metadata +63 -63
@@ -16,28 +16,28 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepository
19
- attr_accessor :pulp_labels
19
+ # Retain X versions of the repository. Default is null which retains all versions.
20
+ attr_accessor :retain_repo_versions
20
21
 
21
- # An optional description.
22
- attr_accessor :description
22
+ # A reference to an associated signing service.
23
+ attr_accessor :manifest_signing_service
23
24
 
24
25
  # A unique name for this repository.
25
26
  attr_accessor :name
26
27
 
27
- # Retain X versions of the repository. Default is null which retains all versions.
28
- attr_accessor :retain_repo_versions
28
+ # An optional description.
29
+ attr_accessor :description
29
30
 
30
- # A reference to an associated signing service.
31
- attr_accessor :manifest_signing_service
31
+ attr_accessor :pulp_labels
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'pulp_labels' => :'pulp_labels',
37
- :'description' => :'description',
38
- :'name' => :'name',
39
36
  :'retain_repo_versions' => :'retain_repo_versions',
40
- :'manifest_signing_service' => :'manifest_signing_service'
37
+ :'manifest_signing_service' => :'manifest_signing_service',
38
+ :'name' => :'name',
39
+ :'description' => :'description',
40
+ :'pulp_labels' => :'pulp_labels'
41
41
  }
42
42
  end
43
43
 
@@ -49,20 +49,20 @@ module PulpContainerClient
49
49
  # Attribute type mapping.
50
50
  def self.openapi_types
51
51
  {
52
- :'pulp_labels' => :'Hash<String, String>',
53
- :'description' => :'String',
54
- :'name' => :'String',
55
52
  :'retain_repo_versions' => :'Integer',
56
- :'manifest_signing_service' => :'String'
53
+ :'manifest_signing_service' => :'String',
54
+ :'name' => :'String',
55
+ :'description' => :'String',
56
+ :'pulp_labels' => :'Hash<String, String>'
57
57
  }
58
58
  end
59
59
 
60
60
  # List of attributes with nullable: true
61
61
  def self.openapi_nullable
62
62
  Set.new([
63
- :'description',
64
63
  :'retain_repo_versions',
65
- :'manifest_signing_service'
64
+ :'manifest_signing_service',
65
+ :'description',
66
66
  ])
67
67
  end
68
68
 
@@ -81,14 +81,12 @@ module PulpContainerClient
81
81
  h[k.to_sym] = v
82
82
  }
83
83
 
84
- if attributes.key?(:'pulp_labels')
85
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
86
- self.pulp_labels = value
87
- end
84
+ if attributes.key?(:'retain_repo_versions')
85
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
88
86
  end
89
87
 
90
- if attributes.key?(:'description')
91
- self.description = attributes[:'description']
88
+ if attributes.key?(:'manifest_signing_service')
89
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
92
90
  end
93
91
 
94
92
  if attributes.key?(:'name')
@@ -97,12 +95,14 @@ module PulpContainerClient
97
95
  self.name = nil
98
96
  end
99
97
 
100
- if attributes.key?(:'retain_repo_versions')
101
- self.retain_repo_versions = attributes[:'retain_repo_versions']
98
+ if attributes.key?(:'description')
99
+ self.description = attributes[:'description']
102
100
  end
103
101
 
104
- if attributes.key?(:'manifest_signing_service')
105
- self.manifest_signing_service = attributes[:'manifest_signing_service']
102
+ if attributes.key?(:'pulp_labels')
103
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
+ self.pulp_labels = value
105
+ end
106
106
  end
107
107
  end
108
108
 
@@ -111,8 +111,8 @@ module PulpContainerClient
111
111
  def list_invalid_properties
112
112
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
113
113
  invalid_properties = Array.new
114
- if !@description.nil? && @description.to_s.length < 1
115
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
114
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
115
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
116
116
  end
117
117
 
118
118
  if @name.nil?
@@ -123,8 +123,8 @@ module PulpContainerClient
123
123
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
124
124
  end
125
125
 
126
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
127
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
126
+ if !@description.nil? && @description.to_s.length < 1
127
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
128
128
  end
129
129
 
130
130
  invalid_properties
@@ -134,21 +134,21 @@ module PulpContainerClient
134
134
  # @return true if the model is valid
135
135
  def valid?
136
136
  warn '[DEPRECATED] the `valid?` method is obsolete'
137
- return false if !@description.nil? && @description.to_s.length < 1
137
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
138
138
  return false if @name.nil?
139
139
  return false if @name.to_s.length < 1
140
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
140
+ return false if !@description.nil? && @description.to_s.length < 1
141
141
  true
142
142
  end
143
143
 
144
144
  # Custom attribute writer method with validation
145
- # @param [Object] description Value to be assigned
146
- def description=(description)
147
- if !description.nil? && description.to_s.length < 1
148
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
145
+ # @param [Object] retain_repo_versions Value to be assigned
146
+ def retain_repo_versions=(retain_repo_versions)
147
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
148
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
149
149
  end
150
150
 
151
- @description = description
151
+ @retain_repo_versions = retain_repo_versions
152
152
  end
153
153
 
154
154
  # Custom attribute writer method with validation
@@ -166,13 +166,13 @@ module PulpContainerClient
166
166
  end
167
167
 
168
168
  # Custom attribute writer method with validation
169
- # @param [Object] retain_repo_versions Value to be assigned
170
- def retain_repo_versions=(retain_repo_versions)
171
- if !retain_repo_versions.nil? && retain_repo_versions < 1
172
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
169
+ # @param [Object] description Value to be assigned
170
+ def description=(description)
171
+ if !description.nil? && description.to_s.length < 1
172
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
173
173
  end
174
174
 
175
- @retain_repo_versions = retain_repo_versions
175
+ @description = description
176
176
  end
177
177
 
178
178
  # Checks equality by comparing each attribute.
@@ -180,11 +180,11 @@ module PulpContainerClient
180
180
  def ==(o)
181
181
  return true if self.equal?(o)
182
182
  self.class == o.class &&
183
- pulp_labels == o.pulp_labels &&
184
- description == o.description &&
185
- name == o.name &&
186
183
  retain_repo_versions == o.retain_repo_versions &&
187
- manifest_signing_service == o.manifest_signing_service
184
+ manifest_signing_service == o.manifest_signing_service &&
185
+ name == o.name &&
186
+ description == o.description &&
187
+ pulp_labels == o.pulp_labels
188
188
  end
189
189
 
190
190
  # @see the `==` method
@@ -196,7 +196,7 @@ module PulpContainerClient
196
196
  # Calculates hash code according to all attributes.
197
197
  # @return [Integer] Hash code
198
198
  def hash
199
- [pulp_labels, description, name, retain_repo_versions, manifest_signing_service].hash
199
+ [retain_repo_versions, manifest_signing_service, name, description, pulp_labels].hash
200
200
  end
201
201
 
202
202
  # Builds the object from hash
@@ -16,49 +16,49 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepositoryResponse
19
- attr_accessor :pulp_labels
19
+ attr_accessor :versions_href
20
+
21
+ # Retain X versions of the repository. Default is null which retains all versions.
22
+ attr_accessor :retain_repo_versions
23
+
24
+ attr_accessor :pulp_href
20
25
 
21
26
  # Timestamp of creation.
22
27
  attr_accessor :pulp_created
23
28
 
29
+ # A reference to an associated signing service.
30
+ attr_accessor :manifest_signing_service
31
+
24
32
  # The Pulp Resource Name (PRN).
25
33
  attr_accessor :prn
26
34
 
27
- # An optional description.
28
- attr_accessor :description
29
-
30
- attr_accessor :latest_version_href
31
-
32
- attr_accessor :versions_href
33
-
34
- attr_accessor :pulp_href
35
-
36
35
  # A unique name for this repository.
37
36
  attr_accessor :name
38
37
 
39
- # Retain X versions of the repository. Default is null which retains all versions.
40
- attr_accessor :retain_repo_versions
38
+ # An optional description.
39
+ attr_accessor :description
41
40
 
42
41
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
43
42
  attr_accessor :pulp_last_updated
44
43
 
45
- # A reference to an associated signing service.
46
- attr_accessor :manifest_signing_service
44
+ attr_accessor :latest_version_href
45
+
46
+ attr_accessor :pulp_labels
47
47
 
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
- :'pulp_labels' => :'pulp_labels',
52
- :'pulp_created' => :'pulp_created',
53
- :'prn' => :'prn',
54
- :'description' => :'description',
55
- :'latest_version_href' => :'latest_version_href',
56
51
  :'versions_href' => :'versions_href',
52
+ :'retain_repo_versions' => :'retain_repo_versions',
57
53
  :'pulp_href' => :'pulp_href',
54
+ :'pulp_created' => :'pulp_created',
55
+ :'manifest_signing_service' => :'manifest_signing_service',
56
+ :'prn' => :'prn',
58
57
  :'name' => :'name',
59
- :'retain_repo_versions' => :'retain_repo_versions',
58
+ :'description' => :'description',
60
59
  :'pulp_last_updated' => :'pulp_last_updated',
61
- :'manifest_signing_service' => :'manifest_signing_service'
60
+ :'latest_version_href' => :'latest_version_href',
61
+ :'pulp_labels' => :'pulp_labels'
62
62
  }
63
63
  end
64
64
 
@@ -70,26 +70,26 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'pulp_labels' => :'Hash<String, String>',
74
- :'pulp_created' => :'Time',
75
- :'prn' => :'String',
76
- :'description' => :'String',
77
- :'latest_version_href' => :'String',
78
73
  :'versions_href' => :'String',
74
+ :'retain_repo_versions' => :'Integer',
79
75
  :'pulp_href' => :'String',
76
+ :'pulp_created' => :'Time',
77
+ :'manifest_signing_service' => :'String',
78
+ :'prn' => :'String',
80
79
  :'name' => :'String',
81
- :'retain_repo_versions' => :'Integer',
80
+ :'description' => :'String',
82
81
  :'pulp_last_updated' => :'Time',
83
- :'manifest_signing_service' => :'String'
82
+ :'latest_version_href' => :'String',
83
+ :'pulp_labels' => :'Hash<String, String>'
84
84
  }
85
85
  end
86
86
 
87
87
  # List of attributes with nullable: true
88
88
  def self.openapi_nullable
89
89
  Set.new([
90
- :'description',
91
90
  :'retain_repo_versions',
92
- :'manifest_signing_service'
91
+ :'manifest_signing_service',
92
+ :'description',
93
93
  ])
94
94
  end
95
95
 
@@ -108,34 +108,28 @@ module PulpContainerClient
108
108
  h[k.to_sym] = v
109
109
  }
110
110
 
111
- if attributes.key?(:'pulp_labels')
112
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
113
- self.pulp_labels = value
114
- end
115
- end
116
-
117
- if attributes.key?(:'pulp_created')
118
- self.pulp_created = attributes[:'pulp_created']
111
+ if attributes.key?(:'versions_href')
112
+ self.versions_href = attributes[:'versions_href']
119
113
  end
120
114
 
121
- if attributes.key?(:'prn')
122
- self.prn = attributes[:'prn']
115
+ if attributes.key?(:'retain_repo_versions')
116
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
123
117
  end
124
118
 
125
- if attributes.key?(:'description')
126
- self.description = attributes[:'description']
119
+ if attributes.key?(:'pulp_href')
120
+ self.pulp_href = attributes[:'pulp_href']
127
121
  end
128
122
 
129
- if attributes.key?(:'latest_version_href')
130
- self.latest_version_href = attributes[:'latest_version_href']
123
+ if attributes.key?(:'pulp_created')
124
+ self.pulp_created = attributes[:'pulp_created']
131
125
  end
132
126
 
133
- if attributes.key?(:'versions_href')
134
- self.versions_href = attributes[:'versions_href']
127
+ if attributes.key?(:'manifest_signing_service')
128
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
135
129
  end
136
130
 
137
- if attributes.key?(:'pulp_href')
138
- self.pulp_href = attributes[:'pulp_href']
131
+ if attributes.key?(:'prn')
132
+ self.prn = attributes[:'prn']
139
133
  end
140
134
 
141
135
  if attributes.key?(:'name')
@@ -144,16 +138,22 @@ module PulpContainerClient
144
138
  self.name = nil
145
139
  end
146
140
 
147
- if attributes.key?(:'retain_repo_versions')
148
- self.retain_repo_versions = attributes[:'retain_repo_versions']
141
+ if attributes.key?(:'description')
142
+ self.description = attributes[:'description']
149
143
  end
150
144
 
151
145
  if attributes.key?(:'pulp_last_updated')
152
146
  self.pulp_last_updated = attributes[:'pulp_last_updated']
153
147
  end
154
148
 
155
- if attributes.key?(:'manifest_signing_service')
156
- self.manifest_signing_service = attributes[:'manifest_signing_service']
149
+ if attributes.key?(:'latest_version_href')
150
+ self.latest_version_href = attributes[:'latest_version_href']
151
+ end
152
+
153
+ if attributes.key?(:'pulp_labels')
154
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
155
+ self.pulp_labels = value
156
+ end
157
157
  end
158
158
  end
159
159
 
@@ -162,14 +162,14 @@ module PulpContainerClient
162
162
  def list_invalid_properties
163
163
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
164
164
  invalid_properties = Array.new
165
- if @name.nil?
166
- invalid_properties.push('invalid value for "name", name cannot be nil.')
167
- end
168
-
169
165
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
170
166
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
171
167
  end
172
168
 
169
+ if @name.nil?
170
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
171
+ end
172
+
173
173
  invalid_properties
174
174
  end
175
175
 
@@ -177,8 +177,8 @@ module PulpContainerClient
177
177
  # @return true if the model is valid
178
178
  def valid?
179
179
  warn '[DEPRECATED] the `valid?` method is obsolete'
180
- return false if @name.nil?
181
180
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
181
+ return false if @name.nil?
182
182
  true
183
183
  end
184
184
 
@@ -197,17 +197,17 @@ module PulpContainerClient
197
197
  def ==(o)
198
198
  return true if self.equal?(o)
199
199
  self.class == o.class &&
200
- pulp_labels == o.pulp_labels &&
201
- pulp_created == o.pulp_created &&
202
- prn == o.prn &&
203
- description == o.description &&
204
- latest_version_href == o.latest_version_href &&
205
200
  versions_href == o.versions_href &&
201
+ retain_repo_versions == o.retain_repo_versions &&
206
202
  pulp_href == o.pulp_href &&
203
+ pulp_created == o.pulp_created &&
204
+ manifest_signing_service == o.manifest_signing_service &&
205
+ prn == o.prn &&
207
206
  name == o.name &&
208
- retain_repo_versions == o.retain_repo_versions &&
207
+ description == o.description &&
209
208
  pulp_last_updated == o.pulp_last_updated &&
210
- manifest_signing_service == o.manifest_signing_service
209
+ latest_version_href == o.latest_version_href &&
210
+ pulp_labels == o.pulp_labels
211
211
  end
212
212
 
213
213
  # @see the `==` method
@@ -219,7 +219,7 @@ module PulpContainerClient
219
219
  # Calculates hash code according to all attributes.
220
220
  # @return [Integer] Hash code
221
221
  def hash
222
- [pulp_labels, pulp_created, prn, description, latest_version_href, versions_href, pulp_href, name, retain_repo_versions, pulp_last_updated, manifest_signing_service].hash
222
+ [versions_href, retain_repo_versions, pulp_href, pulp_created, manifest_signing_service, prn, name, description, pulp_last_updated, latest_version_href, pulp_labels].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpContainerClient
27
27
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  # sha256 of the Manifest file
31
34
  attr_accessor :digest
32
35
 
@@ -76,6 +79,7 @@ module PulpContainerClient
76
79
  :'prn' => :'prn',
77
80
  :'pulp_created' => :'pulp_created',
78
81
  :'pulp_last_updated' => :'pulp_last_updated',
82
+ :'pulp_labels' => :'pulp_labels',
79
83
  :'digest' => :'digest',
80
84
  :'schema_version' => :'schema_version',
81
85
  :'media_type' => :'media_type',
@@ -105,6 +109,7 @@ module PulpContainerClient
105
109
  :'prn' => :'String',
106
110
  :'pulp_created' => :'Time',
107
111
  :'pulp_last_updated' => :'Time',
112
+ :'pulp_labels' => :'Hash<String, String>',
108
113
  :'digest' => :'String',
109
114
  :'schema_version' => :'Integer',
110
115
  :'media_type' => :'String',
@@ -159,6 +164,12 @@ module PulpContainerClient
159
164
  self.pulp_last_updated = attributes[:'pulp_last_updated']
160
165
  end
161
166
 
167
+ if attributes.key?(:'pulp_labels')
168
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
169
+ self.pulp_labels = value
170
+ end
171
+ end
172
+
162
173
  if attributes.key?(:'digest')
163
174
  self.digest = attributes[:'digest']
164
175
  else
@@ -283,6 +294,7 @@ module PulpContainerClient
283
294
  prn == o.prn &&
284
295
  pulp_created == o.pulp_created &&
285
296
  pulp_last_updated == o.pulp_last_updated &&
297
+ pulp_labels == o.pulp_labels &&
286
298
  digest == o.digest &&
287
299
  schema_version == o.schema_version &&
288
300
  media_type == o.media_type &&
@@ -308,7 +320,7 @@ module PulpContainerClient
308
320
  # Calculates hash code according to all attributes.
309
321
  # @return [Integer] Hash code
310
322
  def hash
311
- [pulp_href, prn, pulp_created, pulp_last_updated, digest, schema_version, media_type, listed_manifests, config_blob, blobs, annotations, labels, is_bootable, is_flatpak, type, architecture, os, compressed_image_size].hash
323
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, digest, schema_version, media_type, listed_manifests, config_blob, blobs, annotations, labels, is_bootable, is_flatpak, type, architecture, os, compressed_image_size].hash
312
324
  end
313
325
 
314
326
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpContainerClient
27
27
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  # Signature name in the format of `digest_algo:manifest_digest@random_32_chars`
31
34
  attr_accessor :name
32
35
 
@@ -55,6 +58,7 @@ module PulpContainerClient
55
58
  :'prn' => :'prn',
56
59
  :'pulp_created' => :'pulp_created',
57
60
  :'pulp_last_updated' => :'pulp_last_updated',
61
+ :'pulp_labels' => :'pulp_labels',
58
62
  :'name' => :'name',
59
63
  :'digest' => :'digest',
60
64
  :'type' => :'type',
@@ -77,6 +81,7 @@ module PulpContainerClient
77
81
  :'prn' => :'String',
78
82
  :'pulp_created' => :'Time',
79
83
  :'pulp_last_updated' => :'Time',
84
+ :'pulp_labels' => :'Hash<String, String>',
80
85
  :'name' => :'String',
81
86
  :'digest' => :'String',
82
87
  :'type' => :'String',
@@ -124,6 +129,12 @@ module PulpContainerClient
124
129
  self.pulp_last_updated = attributes[:'pulp_last_updated']
125
130
  end
126
131
 
132
+ if attributes.key?(:'pulp_labels')
133
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
134
+ self.pulp_labels = value
135
+ end
136
+ end
137
+
127
138
  if attributes.key?(:'name')
128
139
  self.name = attributes[:'name']
129
140
  else
@@ -226,6 +237,7 @@ module PulpContainerClient
226
237
  prn == o.prn &&
227
238
  pulp_created == o.pulp_created &&
228
239
  pulp_last_updated == o.pulp_last_updated &&
240
+ pulp_labels == o.pulp_labels &&
229
241
  name == o.name &&
230
242
  digest == o.digest &&
231
243
  type == o.type &&
@@ -244,7 +256,7 @@ module PulpContainerClient
244
256
  # Calculates hash code according to all attributes.
245
257
  # @return [Integer] Hash code
246
258
  def hash
247
- [pulp_href, prn, pulp_created, pulp_last_updated, name, digest, type, key_id, timestamp, creator, signed_manifest].hash
259
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, name, digest, type, key_id, timestamp, creator, signed_manifest].hash
248
260
  end
249
261
 
250
262
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpContainerClient
27
27
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  # Tag name
31
34
  attr_accessor :name
32
35
 
@@ -40,6 +43,7 @@ module PulpContainerClient
40
43
  :'prn' => :'prn',
41
44
  :'pulp_created' => :'pulp_created',
42
45
  :'pulp_last_updated' => :'pulp_last_updated',
46
+ :'pulp_labels' => :'pulp_labels',
43
47
  :'name' => :'name',
44
48
  :'tagged_manifest' => :'tagged_manifest'
45
49
  }
@@ -57,6 +61,7 @@ module PulpContainerClient
57
61
  :'prn' => :'String',
58
62
  :'pulp_created' => :'Time',
59
63
  :'pulp_last_updated' => :'Time',
64
+ :'pulp_labels' => :'Hash<String, String>',
60
65
  :'name' => :'String',
61
66
  :'tagged_manifest' => :'String'
62
67
  }
@@ -99,6 +104,12 @@ module PulpContainerClient
99
104
  self.pulp_last_updated = attributes[:'pulp_last_updated']
100
105
  end
101
106
 
107
+ if attributes.key?(:'pulp_labels')
108
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
109
+ self.pulp_labels = value
110
+ end
111
+ end
112
+
102
113
  if attributes.key?(:'name')
103
114
  self.name = attributes[:'name']
104
115
  else
@@ -146,6 +157,7 @@ module PulpContainerClient
146
157
  prn == o.prn &&
147
158
  pulp_created == o.pulp_created &&
148
159
  pulp_last_updated == o.pulp_last_updated &&
160
+ pulp_labels == o.pulp_labels &&
149
161
  name == o.name &&
150
162
  tagged_manifest == o.tagged_manifest
151
163
  end
@@ -159,7 +171,7 @@ module PulpContainerClient
159
171
  # Calculates hash code according to all attributes.
160
172
  # @return [Integer] Hash code
161
173
  def hash
162
- [pulp_href, prn, pulp_created, pulp_last_updated, name, tagged_manifest].hash
174
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, name, tagged_manifest].hash
163
175
  end
164
176
 
165
177
  # Builds the object from hash