pulp_rpm_client 3.28.0 → 3.28.1

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 (78) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -4
  3. data/docs/ContentAdvisoriesApi.md +152 -2
  4. data/docs/ContentDistributionTreesApi.md +148 -0
  5. data/docs/ContentModulemdDefaultsApi.md +150 -2
  6. data/docs/ContentModulemdObsoletesApi.md +148 -0
  7. data/docs/ContentModulemdsApi.md +150 -2
  8. data/docs/ContentPackagecategoriesApi.md +148 -0
  9. data/docs/ContentPackageenvironmentsApi.md +148 -0
  10. data/docs/ContentPackagegroupsApi.md +148 -0
  11. data/docs/ContentPackagelangpacksApi.md +148 -0
  12. data/docs/ContentPackagesApi.md +152 -2
  13. data/docs/ContentRepoMetadataFilesApi.md +148 -0
  14. data/docs/RpmModulemd.md +2 -0
  15. data/docs/RpmModulemdDefaults.md +2 -0
  16. data/docs/RpmModulemdDefaultsResponse.md +2 -0
  17. data/docs/RpmModulemdObsolete.md +2 -0
  18. data/docs/RpmModulemdObsoleteResponse.md +2 -0
  19. data/docs/RpmModulemdResponse.md +2 -0
  20. data/docs/RpmPackageCategoryResponse.md +2 -0
  21. data/docs/RpmPackageEnvironmentResponse.md +2 -0
  22. data/docs/RpmPackageGroupResponse.md +2 -0
  23. data/docs/RpmPackageLangpacksResponse.md +2 -0
  24. data/docs/RpmPackageResponse.md +2 -0
  25. data/docs/RpmRepoMetadataFileResponse.md +2 -0
  26. data/docs/RpmUpdateRecordResponse.md +2 -0
  27. data/lib/pulp_rpm_client/api/content_advisories_api.rb +157 -3
  28. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +151 -0
  29. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +154 -3
  30. data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +151 -0
  31. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +154 -3
  32. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +151 -0
  33. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +151 -0
  34. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +151 -0
  35. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +151 -0
  36. data/lib/pulp_rpm_client/api/content_packages_api.rb +157 -3
  37. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +151 -0
  38. data/lib/pulp_rpm_client/models/rpm_modulemd.rb +13 -1
  39. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +13 -1
  40. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +13 -1
  41. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +13 -1
  42. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +13 -1
  43. data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +13 -1
  44. data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +13 -1
  45. data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +13 -1
  46. data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +13 -1
  47. data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +13 -1
  48. data/lib/pulp_rpm_client/models/rpm_package_response.rb +13 -1
  49. data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +13 -1
  50. data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +13 -1
  51. data/lib/pulp_rpm_client/models/unset_label.rb +1 -1
  52. data/lib/pulp_rpm_client/models/unset_label_response.rb +1 -1
  53. data/lib/pulp_rpm_client/version.rb +1 -1
  54. data/spec/api/content_advisories_api_spec.rb +29 -1
  55. data/spec/api/content_distribution_trees_api_spec.rb +27 -0
  56. data/spec/api/content_modulemd_defaults_api_spec.rb +28 -1
  57. data/spec/api/content_modulemd_obsoletes_api_spec.rb +27 -0
  58. data/spec/api/content_modulemds_api_spec.rb +28 -1
  59. data/spec/api/content_packagecategories_api_spec.rb +27 -0
  60. data/spec/api/content_packageenvironments_api_spec.rb +27 -0
  61. data/spec/api/content_packagegroups_api_spec.rb +27 -0
  62. data/spec/api/content_packagelangpacks_api_spec.rb +27 -0
  63. data/spec/api/content_packages_api_spec.rb +29 -1
  64. data/spec/api/content_repo_metadata_files_api_spec.rb +27 -0
  65. data/spec/models/rpm_modulemd_defaults_response_spec.rb +6 -0
  66. data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
  67. data/spec/models/rpm_modulemd_obsolete_response_spec.rb +6 -0
  68. data/spec/models/rpm_modulemd_obsolete_spec.rb +6 -0
  69. data/spec/models/rpm_modulemd_response_spec.rb +6 -0
  70. data/spec/models/rpm_modulemd_spec.rb +6 -0
  71. data/spec/models/rpm_package_category_response_spec.rb +6 -0
  72. data/spec/models/rpm_package_environment_response_spec.rb +6 -0
  73. data/spec/models/rpm_package_group_response_spec.rb +6 -0
  74. data/spec/models/rpm_package_langpacks_response_spec.rb +6 -0
  75. data/spec/models/rpm_package_response_spec.rb +6 -0
  76. data/spec/models/rpm_repo_metadata_file_response_spec.rb +6 -0
  77. data/spec/models/rpm_update_record_response_spec.rb +6 -0
  78. metadata +79 -79
@@ -19,6 +19,9 @@ module PulpRpmClient
19
19
  # A URI of a repository the new content unit should be associated with.
20
20
  attr_accessor :repository
21
21
 
22
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
+ attr_accessor :pulp_labels
24
+
22
25
  # Obsolete modified time.
23
26
  attr_accessor :modified
24
27
 
@@ -53,6 +56,7 @@ module PulpRpmClient
53
56
  def self.attribute_map
54
57
  {
55
58
  :'repository' => :'repository',
59
+ :'pulp_labels' => :'pulp_labels',
56
60
  :'modified' => :'modified',
57
61
  :'module_name' => :'module_name',
58
62
  :'module_stream' => :'module_stream',
@@ -75,6 +79,7 @@ module PulpRpmClient
75
79
  def self.openapi_types
76
80
  {
77
81
  :'repository' => :'String',
82
+ :'pulp_labels' => :'Hash<String, String>',
78
83
  :'modified' => :'String',
79
84
  :'module_name' => :'String',
80
85
  :'module_stream' => :'String',
@@ -118,6 +123,12 @@ module PulpRpmClient
118
123
  self.repository = attributes[:'repository']
119
124
  end
120
125
 
126
+ if attributes.key?(:'pulp_labels')
127
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
128
+ self.pulp_labels = value
129
+ end
130
+ end
131
+
121
132
  if attributes.key?(:'modified')
122
133
  self.modified = attributes[:'modified']
123
134
  else
@@ -395,6 +406,7 @@ module PulpRpmClient
395
406
  return true if self.equal?(o)
396
407
  self.class == o.class &&
397
408
  repository == o.repository &&
409
+ pulp_labels == o.pulp_labels &&
398
410
  modified == o.modified &&
399
411
  module_name == o.module_name &&
400
412
  module_stream == o.module_stream &&
@@ -416,7 +428,7 @@ module PulpRpmClient
416
428
  # Calculates hash code according to all attributes.
417
429
  # @return [Integer] Hash code
418
430
  def hash
419
- [repository, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream, snippet].hash
431
+ [repository, pulp_labels, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream, snippet].hash
420
432
  end
421
433
 
422
434
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpRpmClient
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
  # Obsolete modified time.
31
34
  attr_accessor :modified
32
35
 
@@ -61,6 +64,7 @@ module PulpRpmClient
61
64
  :'prn' => :'prn',
62
65
  :'pulp_created' => :'pulp_created',
63
66
  :'pulp_last_updated' => :'pulp_last_updated',
67
+ :'pulp_labels' => :'pulp_labels',
64
68
  :'modified' => :'modified',
65
69
  :'module_name' => :'module_name',
66
70
  :'module_stream' => :'module_stream',
@@ -85,6 +89,7 @@ module PulpRpmClient
85
89
  :'prn' => :'String',
86
90
  :'pulp_created' => :'Time',
87
91
  :'pulp_last_updated' => :'Time',
92
+ :'pulp_labels' => :'Hash<String, String>',
88
93
  :'modified' => :'String',
89
94
  :'module_name' => :'String',
90
95
  :'module_stream' => :'String',
@@ -139,6 +144,12 @@ module PulpRpmClient
139
144
  self.pulp_last_updated = attributes[:'pulp_last_updated']
140
145
  end
141
146
 
147
+ if attributes.key?(:'pulp_labels')
148
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
149
+ self.pulp_labels = value
150
+ end
151
+ end
152
+
142
153
  if attributes.key?(:'modified')
143
154
  self.modified = attributes[:'modified']
144
155
  else
@@ -238,6 +249,7 @@ module PulpRpmClient
238
249
  prn == o.prn &&
239
250
  pulp_created == o.pulp_created &&
240
251
  pulp_last_updated == o.pulp_last_updated &&
252
+ pulp_labels == o.pulp_labels &&
241
253
  modified == o.modified &&
242
254
  module_name == o.module_name &&
243
255
  module_stream == o.module_stream &&
@@ -258,7 +270,7 @@ module PulpRpmClient
258
270
  # Calculates hash code according to all attributes.
259
271
  # @return [Integer] Hash code
260
272
  def hash
261
- [pulp_href, prn, pulp_created, pulp_last_updated, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream].hash
273
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream].hash
262
274
  end
263
275
 
264
276
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpRpmClient
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
  # Modulemd name.
31
34
  attr_accessor :name
32
35
 
@@ -67,6 +70,7 @@ module PulpRpmClient
67
70
  :'prn' => :'prn',
68
71
  :'pulp_created' => :'pulp_created',
69
72
  :'pulp_last_updated' => :'pulp_last_updated',
73
+ :'pulp_labels' => :'pulp_labels',
70
74
  :'name' => :'name',
71
75
  :'stream' => :'stream',
72
76
  :'version' => :'version',
@@ -93,6 +97,7 @@ module PulpRpmClient
93
97
  :'prn' => :'String',
94
98
  :'pulp_created' => :'Time',
95
99
  :'pulp_last_updated' => :'Time',
100
+ :'pulp_labels' => :'Hash<String, String>',
96
101
  :'name' => :'String',
97
102
  :'stream' => :'String',
98
103
  :'version' => :'String',
@@ -147,6 +152,12 @@ module PulpRpmClient
147
152
  self.pulp_last_updated = attributes[:'pulp_last_updated']
148
153
  end
149
154
 
155
+ if attributes.key?(:'pulp_labels')
156
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
157
+ self.pulp_labels = value
158
+ end
159
+ end
160
+
150
161
  if attributes.key?(:'name')
151
162
  self.name = attributes[:'name']
152
163
  else
@@ -266,6 +277,7 @@ module PulpRpmClient
266
277
  prn == o.prn &&
267
278
  pulp_created == o.pulp_created &&
268
279
  pulp_last_updated == o.pulp_last_updated &&
280
+ pulp_labels == o.pulp_labels &&
269
281
  name == o.name &&
270
282
  stream == o.stream &&
271
283
  version == o.version &&
@@ -288,7 +300,7 @@ module PulpRpmClient
288
300
  # Calculates hash code according to all attributes.
289
301
  # @return [Integer] Hash code
290
302
  def hash
291
- [pulp_href, prn, pulp_created, pulp_last_updated, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, profiles, description].hash
303
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, profiles, description].hash
292
304
  end
293
305
 
294
306
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpRpmClient
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
  # Category id.
31
34
  attr_accessor :id
32
35
 
@@ -58,6 +61,7 @@ module PulpRpmClient
58
61
  :'prn' => :'prn',
59
62
  :'pulp_created' => :'pulp_created',
60
63
  :'pulp_last_updated' => :'pulp_last_updated',
64
+ :'pulp_labels' => :'pulp_labels',
61
65
  :'id' => :'id',
62
66
  :'name' => :'name',
63
67
  :'description' => :'description',
@@ -81,6 +85,7 @@ module PulpRpmClient
81
85
  :'prn' => :'String',
82
86
  :'pulp_created' => :'Time',
83
87
  :'pulp_last_updated' => :'Time',
88
+ :'pulp_labels' => :'Hash<String, String>',
84
89
  :'id' => :'String',
85
90
  :'name' => :'String',
86
91
  :'description' => :'String',
@@ -133,6 +138,12 @@ module PulpRpmClient
133
138
  self.pulp_last_updated = attributes[:'pulp_last_updated']
134
139
  end
135
140
 
141
+ if attributes.key?(:'pulp_labels')
142
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
143
+ self.pulp_labels = value
144
+ end
145
+ end
146
+
136
147
  if attributes.key?(:'id')
137
148
  self.id = attributes[:'id']
138
149
  else
@@ -226,6 +237,7 @@ module PulpRpmClient
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
  id == o.id &&
230
242
  name == o.name &&
231
243
  description == o.description &&
@@ -245,7 +257,7 @@ module PulpRpmClient
245
257
  # Calculates hash code according to all attributes.
246
258
  # @return [Integer] Hash code
247
259
  def hash
248
- [pulp_href, prn, pulp_created, pulp_last_updated, id, name, description, display_order, group_ids, desc_by_lang, name_by_lang, digest].hash
260
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, id, name, description, display_order, group_ids, desc_by_lang, name_by_lang, digest].hash
249
261
  end
250
262
 
251
263
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpRpmClient
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
  # Environment id.
31
34
  attr_accessor :id
32
35
 
@@ -61,6 +64,7 @@ module PulpRpmClient
61
64
  :'prn' => :'prn',
62
65
  :'pulp_created' => :'pulp_created',
63
66
  :'pulp_last_updated' => :'pulp_last_updated',
67
+ :'pulp_labels' => :'pulp_labels',
64
68
  :'id' => :'id',
65
69
  :'name' => :'name',
66
70
  :'description' => :'description',
@@ -85,6 +89,7 @@ module PulpRpmClient
85
89
  :'prn' => :'String',
86
90
  :'pulp_created' => :'Time',
87
91
  :'pulp_last_updated' => :'Time',
92
+ :'pulp_labels' => :'Hash<String, String>',
88
93
  :'id' => :'String',
89
94
  :'name' => :'String',
90
95
  :'description' => :'String',
@@ -139,6 +144,12 @@ module PulpRpmClient
139
144
  self.pulp_last_updated = attributes[:'pulp_last_updated']
140
145
  end
141
146
 
147
+ if attributes.key?(:'pulp_labels')
148
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
149
+ self.pulp_labels = value
150
+ end
151
+ end
152
+
142
153
  if attributes.key?(:'id')
143
154
  self.id = attributes[:'id']
144
155
  else
@@ -238,6 +249,7 @@ module PulpRpmClient
238
249
  prn == o.prn &&
239
250
  pulp_created == o.pulp_created &&
240
251
  pulp_last_updated == o.pulp_last_updated &&
252
+ pulp_labels == o.pulp_labels &&
241
253
  id == o.id &&
242
254
  name == o.name &&
243
255
  description == o.description &&
@@ -258,7 +270,7 @@ module PulpRpmClient
258
270
  # Calculates hash code according to all attributes.
259
271
  # @return [Integer] Hash code
260
272
  def hash
261
- [pulp_href, prn, pulp_created, pulp_last_updated, id, name, description, display_order, group_ids, option_ids, desc_by_lang, name_by_lang, digest].hash
273
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, id, name, description, display_order, group_ids, option_ids, desc_by_lang, name_by_lang, digest].hash
262
274
  end
263
275
 
264
276
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpRpmClient
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
  # PackageGroup id.
31
34
  attr_accessor :id
32
35
 
@@ -67,6 +70,7 @@ module PulpRpmClient
67
70
  :'prn' => :'prn',
68
71
  :'pulp_created' => :'pulp_created',
69
72
  :'pulp_last_updated' => :'pulp_last_updated',
73
+ :'pulp_labels' => :'pulp_labels',
70
74
  :'id' => :'id',
71
75
  :'default' => :'default',
72
76
  :'user_visible' => :'user_visible',
@@ -93,6 +97,7 @@ module PulpRpmClient
93
97
  :'prn' => :'String',
94
98
  :'pulp_created' => :'Time',
95
99
  :'pulp_last_updated' => :'Time',
100
+ :'pulp_labels' => :'Hash<String, String>',
96
101
  :'id' => :'String',
97
102
  :'default' => :'Boolean',
98
103
  :'user_visible' => :'Boolean',
@@ -148,6 +153,12 @@ module PulpRpmClient
148
153
  self.pulp_last_updated = attributes[:'pulp_last_updated']
149
154
  end
150
155
 
156
+ if attributes.key?(:'pulp_labels')
157
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
158
+ self.pulp_labels = value
159
+ end
160
+ end
161
+
151
162
  if attributes.key?(:'id')
152
163
  self.id = attributes[:'id']
153
164
  else
@@ -253,6 +264,7 @@ module PulpRpmClient
253
264
  prn == o.prn &&
254
265
  pulp_created == o.pulp_created &&
255
266
  pulp_last_updated == o.pulp_last_updated &&
267
+ pulp_labels == o.pulp_labels &&
256
268
  id == o.id &&
257
269
  default == o.default &&
258
270
  user_visible == o.user_visible &&
@@ -275,7 +287,7 @@ module PulpRpmClient
275
287
  # Calculates hash code according to all attributes.
276
288
  # @return [Integer] Hash code
277
289
  def hash
278
- [pulp_href, prn, pulp_created, pulp_last_updated, id, default, user_visible, display_order, name, description, packages, biarch_only, desc_by_lang, name_by_lang, digest].hash
290
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, id, default, user_visible, display_order, name, description, packages, biarch_only, desc_by_lang, name_by_lang, digest].hash
279
291
  end
280
292
 
281
293
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpRpmClient
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
  # Langpacks matches.
31
34
  attr_accessor :matches
32
35
 
@@ -40,6 +43,7 @@ module PulpRpmClient
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
  :'matches' => :'matches',
44
48
  :'digest' => :'digest'
45
49
  }
@@ -57,6 +61,7 @@ module PulpRpmClient
57
61
  :'prn' => :'String',
58
62
  :'pulp_created' => :'Time',
59
63
  :'pulp_last_updated' => :'Time',
64
+ :'pulp_labels' => :'Hash<String, String>',
60
65
  :'matches' => :'Object',
61
66
  :'digest' => :'String'
62
67
  }
@@ -101,6 +106,12 @@ module PulpRpmClient
101
106
  self.pulp_last_updated = attributes[:'pulp_last_updated']
102
107
  end
103
108
 
109
+ if attributes.key?(:'pulp_labels')
110
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
111
+ self.pulp_labels = value
112
+ end
113
+ end
114
+
104
115
  if attributes.key?(:'matches')
105
116
  self.matches = attributes[:'matches']
106
117
  else
@@ -138,6 +149,7 @@ module PulpRpmClient
138
149
  prn == o.prn &&
139
150
  pulp_created == o.pulp_created &&
140
151
  pulp_last_updated == o.pulp_last_updated &&
152
+ pulp_labels == o.pulp_labels &&
141
153
  matches == o.matches &&
142
154
  digest == o.digest
143
155
  end
@@ -151,7 +163,7 @@ module PulpRpmClient
151
163
  # Calculates hash code according to all attributes.
152
164
  # @return [Integer] Hash code
153
165
  def hash
154
- [pulp_href, prn, pulp_created, pulp_last_updated, matches, digest].hash
166
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, matches, digest].hash
155
167
  end
156
168
 
157
169
  # Builds the object from hash
@@ -45,6 +45,9 @@ module PulpRpmClient
45
45
  # The SHA-512 checksum if available.
46
46
  attr_accessor :sha512
47
47
 
48
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
49
+ attr_accessor :pulp_labels
50
+
48
51
  # Artifact file representing the physical content
49
52
  attr_accessor :artifact
50
53
 
@@ -169,6 +172,7 @@ module PulpRpmClient
169
172
  :'sha256' => :'sha256',
170
173
  :'sha384' => :'sha384',
171
174
  :'sha512' => :'sha512',
175
+ :'pulp_labels' => :'pulp_labels',
172
176
  :'artifact' => :'artifact',
173
177
  :'name' => :'name',
174
178
  :'epoch' => :'epoch',
@@ -227,6 +231,7 @@ module PulpRpmClient
227
231
  :'sha256' => :'String',
228
232
  :'sha384' => :'String',
229
233
  :'sha512' => :'String',
234
+ :'pulp_labels' => :'Hash<String, String>',
230
235
  :'artifact' => :'String',
231
236
  :'name' => :'String',
232
237
  :'epoch' => :'String',
@@ -338,6 +343,12 @@ module PulpRpmClient
338
343
  self.sha512 = attributes[:'sha512']
339
344
  end
340
345
 
346
+ if attributes.key?(:'pulp_labels')
347
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
348
+ self.pulp_labels = value
349
+ end
350
+ end
351
+
341
352
  if attributes.key?(:'artifact')
342
353
  self.artifact = attributes[:'artifact']
343
354
  end
@@ -517,6 +528,7 @@ module PulpRpmClient
517
528
  sha256 == o.sha256 &&
518
529
  sha384 == o.sha384 &&
519
530
  sha512 == o.sha512 &&
531
+ pulp_labels == o.pulp_labels &&
520
532
  artifact == o.artifact &&
521
533
  name == o.name &&
522
534
  epoch == o.epoch &&
@@ -565,7 +577,7 @@ module PulpRpmClient
565
577
  # Calculates hash code according to all attributes.
566
578
  # @return [Integer] Hash code
567
579
  def hash
568
- [pulp_href, prn, pulp_created, pulp_last_updated, md5, sha1, sha224, sha256, sha384, sha512, artifact, name, epoch, version, release, arch, pkg_id, checksum_type, summary, description, url, changelogs, files, requires, provides, conflicts, obsoletes, suggests, enhances, recommends, supplements, location_base, location_href, rpm_buildhost, rpm_group, rpm_license, rpm_packager, rpm_sourcerpm, rpm_vendor, rpm_header_start, rpm_header_end, is_modular, size_archive, size_installed, size_package, time_build, time_file].hash
580
+ [pulp_href, prn, pulp_created, pulp_last_updated, md5, sha1, sha224, sha256, sha384, sha512, pulp_labels, artifact, name, epoch, version, release, arch, pkg_id, checksum_type, summary, description, url, changelogs, files, requires, provides, conflicts, obsoletes, suggests, enhances, recommends, supplements, location_base, location_href, rpm_buildhost, rpm_group, rpm_license, rpm_packager, rpm_sourcerpm, rpm_vendor, rpm_header_start, rpm_header_end, is_modular, size_archive, size_installed, size_package, time_build, time_file].hash
569
581
  end
570
582
 
571
583
  # Builds the object from hash
@@ -45,6 +45,9 @@ module PulpRpmClient
45
45
  # The SHA-512 checksum if available.
46
46
  attr_accessor :sha512
47
47
 
48
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
49
+ attr_accessor :pulp_labels
50
+
48
51
  # Artifact file representing the physical content
49
52
  attr_accessor :artifact
50
53
 
@@ -73,6 +76,7 @@ module PulpRpmClient
73
76
  :'sha256' => :'sha256',
74
77
  :'sha384' => :'sha384',
75
78
  :'sha512' => :'sha512',
79
+ :'pulp_labels' => :'pulp_labels',
76
80
  :'artifact' => :'artifact',
77
81
  :'relative_path' => :'relative_path',
78
82
  :'data_type' => :'data_type',
@@ -99,6 +103,7 @@ module PulpRpmClient
99
103
  :'sha256' => :'String',
100
104
  :'sha384' => :'String',
101
105
  :'sha512' => :'String',
106
+ :'pulp_labels' => :'Hash<String, String>',
102
107
  :'artifact' => :'String',
103
108
  :'relative_path' => :'String',
104
109
  :'data_type' => :'String',
@@ -168,6 +173,12 @@ module PulpRpmClient
168
173
  self.sha512 = attributes[:'sha512']
169
174
  end
170
175
 
176
+ if attributes.key?(:'pulp_labels')
177
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
178
+ self.pulp_labels = value
179
+ end
180
+ end
181
+
171
182
  if attributes.key?(:'artifact')
172
183
  self.artifact = attributes[:'artifact']
173
184
  end
@@ -247,6 +258,7 @@ module PulpRpmClient
247
258
  sha256 == o.sha256 &&
248
259
  sha384 == o.sha384 &&
249
260
  sha512 == o.sha512 &&
261
+ pulp_labels == o.pulp_labels &&
250
262
  artifact == o.artifact &&
251
263
  relative_path == o.relative_path &&
252
264
  data_type == o.data_type &&
@@ -263,7 +275,7 @@ module PulpRpmClient
263
275
  # Calculates hash code according to all attributes.
264
276
  # @return [Integer] Hash code
265
277
  def hash
266
- [pulp_href, prn, pulp_created, pulp_last_updated, md5, sha1, sha224, sha256, sha384, sha512, artifact, relative_path, data_type, checksum_type, checksum].hash
278
+ [pulp_href, prn, pulp_created, pulp_last_updated, md5, sha1, sha224, sha256, sha384, sha512, pulp_labels, artifact, relative_path, data_type, checksum_type, checksum].hash
267
279
  end
268
280
 
269
281
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpRpmClient
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
  # Update id (short update name, e.g. RHEA-2013:1777)
31
34
  attr_accessor :id
32
35
 
@@ -88,6 +91,7 @@ module PulpRpmClient
88
91
  :'prn' => :'prn',
89
92
  :'pulp_created' => :'pulp_created',
90
93
  :'pulp_last_updated' => :'pulp_last_updated',
94
+ :'pulp_labels' => :'pulp_labels',
91
95
  :'id' => :'id',
92
96
  :'updated_date' => :'updated_date',
93
97
  :'description' => :'description',
@@ -121,6 +125,7 @@ module PulpRpmClient
121
125
  :'prn' => :'String',
122
126
  :'pulp_created' => :'Time',
123
127
  :'pulp_last_updated' => :'Time',
128
+ :'pulp_labels' => :'Hash<String, String>',
124
129
  :'id' => :'String',
125
130
  :'updated_date' => :'String',
126
131
  :'description' => :'String',
@@ -179,6 +184,12 @@ module PulpRpmClient
179
184
  self.pulp_last_updated = attributes[:'pulp_last_updated']
180
185
  end
181
186
 
187
+ if attributes.key?(:'pulp_labels')
188
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
189
+ self.pulp_labels = value
190
+ end
191
+ end
192
+
182
193
  if attributes.key?(:'id')
183
194
  self.id = attributes[:'id']
184
195
  end
@@ -280,6 +291,7 @@ module PulpRpmClient
280
291
  prn == o.prn &&
281
292
  pulp_created == o.pulp_created &&
282
293
  pulp_last_updated == o.pulp_last_updated &&
294
+ pulp_labels == o.pulp_labels &&
283
295
  id == o.id &&
284
296
  updated_date == o.updated_date &&
285
297
  description == o.description &&
@@ -309,7 +321,7 @@ module PulpRpmClient
309
321
  # Calculates hash code according to all attributes.
310
322
  # @return [Integer] Hash code
311
323
  def hash
312
- [pulp_href, prn, pulp_created, pulp_last_updated, id, updated_date, description, issued_date, fromstr, status, title, summary, version, type, severity, solution, release, rights, pushcount, pkglist, references, reboot_suggested].hash
324
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, id, updated_date, description, issued_date, fromstr, status, title, summary, version, type, severity, solution, release, rights, pushcount, pkglist, references, reboot_suggested].hash
313
325
  end
314
326
 
315
327
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpRpmClient
17
- # Serializer for synchronously setting a label.
17
+ # Serializer for synchronously UNsetting a label.
18
18
  class UnsetLabel
19
19
  attr_accessor :key
20
20
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpRpmClient
17
- # Serializer for synchronously setting a label.
17
+ # Serializer for synchronously UNsetting a label.
18
18
  class UnsetLabelResponse
19
19
  attr_accessor :key
20
20
 
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpRpmClient
14
- VERSION = '3.28.0'
14
+ VERSION = '3.28.1'
15
15
  end
@@ -37,6 +37,7 @@ describe 'ContentAdvisoriesApi' do
37
37
  # Trigger an asynchronous task to create content,optionally create new repository version.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
40
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
40
41
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
41
42
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
42
43
  # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
@@ -55,11 +56,12 @@ describe 'ContentAdvisoriesApi' do
55
56
  # @option opts [Array<String>] :id__in Filter results where id is in a comma-separated list of values
56
57
  # @option opts [Integer] :limit Number of results to return per page.
57
58
  # @option opts [Integer] :offset The initial index from which to return the results.
58
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;id&#x60; - Id * &#x60;-id&#x60; - Id (descending) * &#x60;updated_date&#x60; - Updated date * &#x60;-updated_date&#x60; - Updated date (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;issued_date&#x60; - Issued date * &#x60;-issued_date&#x60; - Issued date (descending) * &#x60;fromstr&#x60; - Fromstr * &#x60;-fromstr&#x60; - Fromstr (descending) * &#x60;status&#x60; - Status * &#x60;-status&#x60; - Status (descending) * &#x60;title&#x60; - Title * &#x60;-title&#x60; - Title (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;type&#x60; - Type * &#x60;-type&#x60; - Type (descending) * &#x60;severity&#x60; - Severity * &#x60;-severity&#x60; - Severity (descending) * &#x60;solution&#x60; - Solution * &#x60;-solution&#x60; - Solution (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;rights&#x60; - Rights * &#x60;-rights&#x60; - Rights (descending) * &#x60;reboot_suggested&#x60; - Reboot suggested * &#x60;-reboot_suggested&#x60; - Reboot suggested (descending) * &#x60;pushcount&#x60; - Pushcount * &#x60;-pushcount&#x60; - Pushcount (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
59
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;id&#x60; - Id * &#x60;-id&#x60; - Id (descending) * &#x60;updated_date&#x60; - Updated date * &#x60;-updated_date&#x60; - Updated date (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;issued_date&#x60; - Issued date * &#x60;-issued_date&#x60; - Issued date (descending) * &#x60;fromstr&#x60; - Fromstr * &#x60;-fromstr&#x60; - Fromstr (descending) * &#x60;status&#x60; - Status * &#x60;-status&#x60; - Status (descending) * &#x60;title&#x60; - Title * &#x60;-title&#x60; - Title (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;type&#x60; - Type * &#x60;-type&#x60; - Type (descending) * &#x60;severity&#x60; - Severity * &#x60;-severity&#x60; - Severity (descending) * &#x60;solution&#x60; - Solution * &#x60;-solution&#x60; - Solution (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;rights&#x60; - Rights * &#x60;-rights&#x60; - Rights (descending) * &#x60;reboot_suggested&#x60; - Reboot suggested * &#x60;-reboot_suggested&#x60; - Reboot suggested (descending) * &#x60;pushcount&#x60; - Pushcount * &#x60;-pushcount&#x60; - Pushcount (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
59
60
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
60
61
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
61
62
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
62
63
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
64
+ # @option opts [String] :pulp_label_select Filter labels by search string
63
65
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
64
66
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
65
67
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -96,4 +98,30 @@ describe 'ContentAdvisoriesApi' do
96
98
  end
97
99
  end
98
100
 
101
+ # unit tests for set_label
102
+ # Set a label
103
+ # Set a single pulp_label on the object to a specific value or null.
104
+ # @param rpm_update_record_href
105
+ # @param set_label
106
+ # @param [Hash] opts the optional parameters
107
+ # @return [SetLabelResponse]
108
+ describe 'set_label test' do
109
+ it 'should work' do
110
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
111
+ end
112
+ end
113
+
114
+ # unit tests for unset_label
115
+ # Unset a label
116
+ # Unset a single pulp_label on the object.
117
+ # @param rpm_update_record_href
118
+ # @param unset_label
119
+ # @param [Hash] opts the optional parameters
120
+ # @return [UnsetLabelResponse]
121
+ describe 'unset_label test' do
122
+ it 'should work' do
123
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
124
+ end
125
+ end
126
+
99
127
  end