pulp_deb_client 2.21.2 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -5
  3. data/docs/ContentGenericContentsApi.md +3 -1
  4. data/docs/ContentInstallerFileIndicesApi.md +3 -1
  5. data/docs/ContentInstallerPackagesApi.md +3 -1
  6. data/docs/ContentPackageIndicesApi.md +3 -1
  7. data/docs/ContentPackageReleaseComponentsApi.md +3 -1
  8. data/docs/ContentPackagesApi.md +7 -1
  9. data/docs/ContentReleaseArchitecturesApi.md +5 -7
  10. data/docs/ContentReleaseComponentsApi.md +7 -7
  11. data/docs/ContentReleaseFilesApi.md +3 -1
  12. data/docs/ContentReleasesApi.md +13 -3
  13. data/docs/DebAptPublication.md +4 -2
  14. data/docs/DebAptPublicationResponse.md +4 -2
  15. data/docs/DebAptRepository.md +7 -1
  16. data/docs/DebAptRepositoryResponse.md +7 -1
  17. data/docs/DebCopyApi.md +1 -1
  18. data/docs/DebRelease.md +9 -1
  19. data/docs/DebReleaseArchitecture.md +1 -5
  20. data/docs/DebReleaseArchitectureResponse.md +1 -5
  21. data/docs/DebReleaseComponent.md +1 -5
  22. data/docs/DebReleaseComponentResponse.md +1 -5
  23. data/docs/DebReleaseFile.md +3 -3
  24. data/docs/DebReleaseFileResponse.md +3 -3
  25. data/docs/DebReleaseResponse.md +9 -1
  26. data/docs/DistributionsAptApi.md +123 -1
  27. data/docs/PatcheddebAptRepository.md +7 -1
  28. data/docs/PublicationsAptApi.md +3 -1
  29. data/docs/PublicationsVerbatimApi.md +3 -1
  30. data/docs/RemotesAptApi.md +123 -1
  31. data/docs/RepositoriesAptApi.md +123 -1
  32. data/docs/RepositoriesAptVersionsApi.md +3 -1
  33. data/docs/SetLabel.md +19 -0
  34. data/docs/SetLabelResponse.md +19 -0
  35. data/docs/UnsetLabel.md +17 -0
  36. data/docs/UnsetLabelResponse.md +19 -0
  37. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +3 -0
  38. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +3 -0
  39. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +3 -0
  40. data/lib/pulp_deb_client/api/content_package_indices_api.rb +3 -0
  41. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +3 -0
  42. data/lib/pulp_deb_client/api/content_packages_api.rb +9 -0
  43. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +6 -9
  44. data/lib/pulp_deb_client/api/content_release_components_api.rb +9 -9
  45. data/lib/pulp_deb_client/api/content_release_files_api.rb +3 -0
  46. data/lib/pulp_deb_client/api/content_releases_api.rb +18 -3
  47. data/lib/pulp_deb_client/api/distributions_apt_api.rb +155 -0
  48. data/lib/pulp_deb_client/api/publications_apt_api.rb +3 -0
  49. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +3 -0
  50. data/lib/pulp_deb_client/api/remotes_apt_api.rb +155 -0
  51. data/lib/pulp_deb_client/api/repositories_apt_api.rb +155 -0
  52. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +3 -0
  53. data/lib/pulp_deb_client/configuration.rb +2 -2
  54. data/lib/pulp_deb_client/models/deb_apt_publication.rb +14 -5
  55. data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +14 -5
  56. data/lib/pulp_deb_client/models/deb_apt_repository.rb +38 -5
  57. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +38 -5
  58. data/lib/pulp_deb_client/models/deb_release.rb +104 -4
  59. data/lib/pulp_deb_client/models/deb_release_architecture.rb +4 -70
  60. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +4 -32
  61. data/lib/pulp_deb_client/models/deb_release_component.rb +4 -70
  62. data/lib/pulp_deb_client/models/deb_release_component_response.rb +4 -32
  63. data/lib/pulp_deb_client/models/deb_release_file.rb +3 -3
  64. data/lib/pulp_deb_client/models/deb_release_file_response.rb +3 -3
  65. data/lib/pulp_deb_client/models/deb_release_response.rb +44 -4
  66. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +38 -5
  67. data/lib/pulp_deb_client/models/set_label.rb +252 -0
  68. data/lib/pulp_deb_client/models/set_label_response.rb +243 -0
  69. data/lib/pulp_deb_client/models/unset_label.rb +242 -0
  70. data/lib/pulp_deb_client/models/unset_label_response.rb +242 -0
  71. data/lib/pulp_deb_client/version.rb +1 -1
  72. data/lib/pulp_deb_client.rb +4 -0
  73. data/spec/api/content_generic_contents_api_spec.rb +1 -0
  74. data/spec/api/content_installer_file_indices_api_spec.rb +1 -0
  75. data/spec/api/content_installer_packages_api_spec.rb +1 -0
  76. data/spec/api/content_package_indices_api_spec.rb +1 -0
  77. data/spec/api/content_package_release_components_api_spec.rb +1 -0
  78. data/spec/api/content_packages_api_spec.rb +3 -0
  79. data/spec/api/content_release_architectures_api_spec.rb +2 -3
  80. data/spec/api/content_release_components_api_spec.rb +3 -3
  81. data/spec/api/content_release_files_api_spec.rb +1 -0
  82. data/spec/api/content_releases_api_spec.rb +6 -1
  83. data/spec/api/distributions_apt_api_spec.rb +31 -0
  84. data/spec/api/publications_apt_api_spec.rb +1 -0
  85. data/spec/api/publications_verbatim_api_spec.rb +1 -0
  86. data/spec/api/remotes_apt_api_spec.rb +31 -0
  87. data/spec/api/repositories_apt_api_spec.rb +31 -0
  88. data/spec/api/repositories_apt_versions_api_spec.rb +1 -0
  89. data/spec/configuration_spec.rb +3 -3
  90. data/spec/models/deb_apt_publication_response_spec.rb +6 -0
  91. data/spec/models/deb_apt_publication_spec.rb +6 -0
  92. data/spec/models/deb_apt_repository_response_spec.rb +18 -0
  93. data/spec/models/deb_apt_repository_spec.rb +18 -0
  94. data/spec/models/deb_release_architecture_response_spec.rb +0 -12
  95. data/spec/models/deb_release_architecture_spec.rb +0 -12
  96. data/spec/models/deb_release_component_response_spec.rb +0 -12
  97. data/spec/models/deb_release_component_spec.rb +0 -12
  98. data/spec/models/deb_release_response_spec.rb +24 -0
  99. data/spec/models/deb_release_spec.rb +24 -0
  100. data/spec/models/patcheddeb_apt_repository_spec.rb +18 -0
  101. data/spec/models/set_label_response_spec.rb +47 -0
  102. data/spec/models/set_label_spec.rb +47 -0
  103. data/spec/models/unset_label_response_spec.rb +47 -0
  104. data/spec/models/unset_label_spec.rb +41 -0
  105. metadata +72 -56
@@ -0,0 +1,242 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpDebClient
16
+ # Serializer for synchronously setting a label.
17
+ class UnsetLabel
18
+ attr_accessor :key
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'key' => :'key'
24
+ }
25
+ end
26
+
27
+ # Attribute type mapping.
28
+ def self.openapi_types
29
+ {
30
+ :'key' => :'String'
31
+ }
32
+ end
33
+
34
+ # List of attributes with nullable: true
35
+ def self.openapi_nullable
36
+ Set.new([
37
+ ])
38
+ end
39
+
40
+ # Initializes the object
41
+ # @param [Hash] attributes Model attributes in the form of hash
42
+ def initialize(attributes = {})
43
+ if (!attributes.is_a?(Hash))
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::UnsetLabel` initialize method"
45
+ end
46
+
47
+ # check to see if the attribute exists and convert string to symbol for hash key
48
+ attributes = attributes.each_with_object({}) { |(k, v), h|
49
+ if (!self.class.attribute_map.key?(k.to_sym))
50
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::UnsetLabel`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
51
+ end
52
+ h[k.to_sym] = v
53
+ }
54
+
55
+ if attributes.key?(:'key')
56
+ self.key = attributes[:'key']
57
+ end
58
+ end
59
+
60
+ # Show invalid properties with the reasons. Usually used together with valid?
61
+ # @return Array for valid properties with the reasons
62
+ def list_invalid_properties
63
+ invalid_properties = Array.new
64
+ if @key.nil?
65
+ invalid_properties.push('invalid value for "key", key cannot be nil.')
66
+ end
67
+
68
+ if @key.to_s.length < 1
69
+ invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
70
+ end
71
+
72
+ pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
73
+ if @key !~ pattern
74
+ invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
75
+ end
76
+
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ return false if @key.nil?
84
+ return false if @key.to_s.length < 1
85
+ return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
86
+ true
87
+ end
88
+
89
+ # Custom attribute writer method with validation
90
+ # @param [Object] key Value to be assigned
91
+ def key=(key)
92
+ if key.nil?
93
+ fail ArgumentError, 'key cannot be nil'
94
+ end
95
+
96
+ if key.to_s.length < 1
97
+ fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
98
+ end
99
+
100
+ pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
101
+ if key !~ pattern
102
+ fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
103
+ end
104
+
105
+ @key = key
106
+ end
107
+
108
+ # Checks equality by comparing each attribute.
109
+ # @param [Object] Object to be compared
110
+ def ==(o)
111
+ return true if self.equal?(o)
112
+ self.class == o.class &&
113
+ key == o.key
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Integer] Hash code
124
+ def hash
125
+ [key].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def self.build_from_hash(attributes)
132
+ new.build_from_hash(attributes)
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def build_from_hash(attributes)
139
+ return nil unless attributes.is_a?(Hash)
140
+ self.class.openapi_types.each_pair do |key, type|
141
+ if type =~ /\AArray<(.*)>/i
142
+ # check to ensure the input is an array given that the attribute
143
+ # is documented as an array but the input is not
144
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
145
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
146
+ end
147
+ elsif !attributes[self.class.attribute_map[key]].nil?
148
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
149
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
150
+ end
151
+
152
+ self
153
+ end
154
+
155
+ # Deserializes the data based on type
156
+ # @param string type Data type
157
+ # @param string value Value to be deserialized
158
+ # @return [Object] Deserialized data
159
+ def _deserialize(type, value)
160
+ case type.to_sym
161
+ when :DateTime
162
+ DateTime.parse(value)
163
+ when :Date
164
+ Date.parse(value)
165
+ when :String
166
+ value.to_s
167
+ when :Integer
168
+ value.to_i
169
+ when :Float
170
+ value.to_f
171
+ when :Boolean
172
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
173
+ true
174
+ else
175
+ false
176
+ end
177
+ when :Object
178
+ # generic object (usually a Hash), return directly
179
+ value
180
+ when /\AArray<(?<inner_type>.+)>\z/
181
+ inner_type = Regexp.last_match[:inner_type]
182
+ value.map { |v| _deserialize(inner_type, v) }
183
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
184
+ k_type = Regexp.last_match[:k_type]
185
+ v_type = Regexp.last_match[:v_type]
186
+ {}.tap do |hash|
187
+ value.each do |k, v|
188
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
189
+ end
190
+ end
191
+ else # model
192
+ PulpDebClient.const_get(type).build_from_hash(value)
193
+ end
194
+ end
195
+
196
+ # Returns the string representation of the object
197
+ # @return [String] String presentation of the object
198
+ def to_s
199
+ to_hash.to_s
200
+ end
201
+
202
+ # to_body is an alias to to_hash (backward compatibility)
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_body
205
+ to_hash
206
+ end
207
+
208
+ # Returns the object in the form of hash
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_hash
211
+ hash = {}
212
+ self.class.attribute_map.each_pair do |attr, param|
213
+ value = self.send(attr)
214
+ if value.nil?
215
+ is_nullable = self.class.openapi_nullable.include?(attr)
216
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
217
+ end
218
+
219
+ hash[param] = _to_hash(value)
220
+ end
221
+ hash
222
+ end
223
+
224
+ # Outputs non-array value in the form of hash
225
+ # For object, use to_hash. Otherwise, just return the value
226
+ # @param [Object] value Any valid value
227
+ # @return [Hash] Returns the value in the form of hash
228
+ def _to_hash(value)
229
+ if value.is_a?(Array)
230
+ value.compact.map { |v| _to_hash(v) }
231
+ elsif value.is_a?(Hash)
232
+ {}.tap do |hash|
233
+ value.each { |k, v| hash[k] = _to_hash(v) }
234
+ end
235
+ elsif value.respond_to? :to_hash
236
+ value.to_hash
237
+ else
238
+ value
239
+ end
240
+ end
241
+ end
242
+ end
@@ -0,0 +1,242 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpDebClient
16
+ # Serializer for synchronously setting a label.
17
+ class UnsetLabelResponse
18
+ attr_accessor :key
19
+
20
+ attr_accessor :value
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'key' => :'key',
26
+ :'value' => :'value'
27
+ }
28
+ end
29
+
30
+ # Attribute type mapping.
31
+ def self.openapi_types
32
+ {
33
+ :'key' => :'String',
34
+ :'value' => :'String'
35
+ }
36
+ end
37
+
38
+ # List of attributes with nullable: true
39
+ def self.openapi_nullable
40
+ Set.new([
41
+ ])
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::UnsetLabelResponse` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::UnsetLabelResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'key')
60
+ self.key = attributes[:'key']
61
+ end
62
+
63
+ if attributes.key?(:'value')
64
+ self.value = attributes[:'value']
65
+ end
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ invalid_properties = Array.new
72
+ if @key.nil?
73
+ invalid_properties.push('invalid value for "key", key cannot be nil.')
74
+ end
75
+
76
+ pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
77
+ if @key !~ pattern
78
+ invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
79
+ end
80
+
81
+ invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ return false if @key.nil?
88
+ return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
89
+ true
90
+ end
91
+
92
+ # Custom attribute writer method with validation
93
+ # @param [Object] key Value to be assigned
94
+ def key=(key)
95
+ if key.nil?
96
+ fail ArgumentError, 'key cannot be nil'
97
+ end
98
+
99
+ pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
100
+ if key !~ pattern
101
+ fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
102
+ end
103
+
104
+ @key = key
105
+ end
106
+
107
+ # Checks equality by comparing each attribute.
108
+ # @param [Object] Object to be compared
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ key == o.key &&
113
+ value == o.value
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Integer] Hash code
124
+ def hash
125
+ [key, value].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def self.build_from_hash(attributes)
132
+ new.build_from_hash(attributes)
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def build_from_hash(attributes)
139
+ return nil unless attributes.is_a?(Hash)
140
+ self.class.openapi_types.each_pair do |key, type|
141
+ if type =~ /\AArray<(.*)>/i
142
+ # check to ensure the input is an array given that the attribute
143
+ # is documented as an array but the input is not
144
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
145
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
146
+ end
147
+ elsif !attributes[self.class.attribute_map[key]].nil?
148
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
149
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
150
+ end
151
+
152
+ self
153
+ end
154
+
155
+ # Deserializes the data based on type
156
+ # @param string type Data type
157
+ # @param string value Value to be deserialized
158
+ # @return [Object] Deserialized data
159
+ def _deserialize(type, value)
160
+ case type.to_sym
161
+ when :DateTime
162
+ DateTime.parse(value)
163
+ when :Date
164
+ Date.parse(value)
165
+ when :String
166
+ value.to_s
167
+ when :Integer
168
+ value.to_i
169
+ when :Float
170
+ value.to_f
171
+ when :Boolean
172
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
173
+ true
174
+ else
175
+ false
176
+ end
177
+ when :Object
178
+ # generic object (usually a Hash), return directly
179
+ value
180
+ when /\AArray<(?<inner_type>.+)>\z/
181
+ inner_type = Regexp.last_match[:inner_type]
182
+ value.map { |v| _deserialize(inner_type, v) }
183
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
184
+ k_type = Regexp.last_match[:k_type]
185
+ v_type = Regexp.last_match[:v_type]
186
+ {}.tap do |hash|
187
+ value.each do |k, v|
188
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
189
+ end
190
+ end
191
+ else # model
192
+ PulpDebClient.const_get(type).build_from_hash(value)
193
+ end
194
+ end
195
+
196
+ # Returns the string representation of the object
197
+ # @return [String] String presentation of the object
198
+ def to_s
199
+ to_hash.to_s
200
+ end
201
+
202
+ # to_body is an alias to to_hash (backward compatibility)
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_body
205
+ to_hash
206
+ end
207
+
208
+ # Returns the object in the form of hash
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_hash
211
+ hash = {}
212
+ self.class.attribute_map.each_pair do |attr, param|
213
+ value = self.send(attr)
214
+ if value.nil?
215
+ is_nullable = self.class.openapi_nullable.include?(attr)
216
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
217
+ end
218
+
219
+ hash[param] = _to_hash(value)
220
+ end
221
+ hash
222
+ end
223
+
224
+ # Outputs non-array value in the form of hash
225
+ # For object, use to_hash. Otherwise, just return the value
226
+ # @param [Object] value Any valid value
227
+ # @return [Hash] Returns the value in the form of hash
228
+ def _to_hash(value)
229
+ if value.is_a?(Array)
230
+ value.compact.map { |v| _to_hash(v) }
231
+ elsif value.is_a?(Hash)
232
+ {}.tap do |hash|
233
+ value.each { |k, v| hash[k] = _to_hash(v) }
234
+ end
235
+ elsif value.respond_to? :to_hash
236
+ value.to_hash
237
+ else
238
+ value
239
+ end
240
+ end
241
+ end
242
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpDebClient
14
- VERSION = '2.21.2'
14
+ VERSION = '3.0.1'
15
15
  end
@@ -75,6 +75,10 @@ require 'pulp_deb_client/models/policy_enum'
75
75
  require 'pulp_deb_client/models/repair'
76
76
  require 'pulp_deb_client/models/repository_add_remove_content'
77
77
  require 'pulp_deb_client/models/repository_version_response'
78
+ require 'pulp_deb_client/models/set_label'
79
+ require 'pulp_deb_client/models/set_label_response'
80
+ require 'pulp_deb_client/models/unset_label'
81
+ require 'pulp_deb_client/models/unset_label_response'
78
82
 
79
83
  # APIs
80
84
  require 'pulp_deb_client/api/content_generic_contents_api'
@@ -57,6 +57,7 @@ describe 'ContentGenericContentsApi' do
57
57
  # @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;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
58
58
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
59
59
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
60
+ # @option opts [String] :q
60
61
  # @option opts [String] :relative_path Filter results where relative_path matches value
61
62
  # @option opts [String] :repository_version Repository Version referenced by HREF
62
63
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -55,6 +55,7 @@ describe 'ContentInstallerFileIndicesApi' do
55
55
  # @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;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
56
56
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
57
57
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
58
+ # @option opts [String] :q
58
59
  # @option opts [String] :relative_path Filter results where relative_path matches value
59
60
  # @option opts [String] :repository_version Repository Version referenced by HREF
60
61
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -69,6 +69,7 @@ describe 'ContentInstallerPackagesApi' do
69
69
  # @option opts [String] :priority Filter results where priority matches value
70
70
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
71
71
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
72
+ # @option opts [String] :q
72
73
  # @option opts [String] :repository_version Repository Version referenced by HREF
73
74
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
74
75
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -55,6 +55,7 @@ describe 'ContentPackageIndicesApi' do
55
55
  # @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;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
56
56
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
57
57
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
58
+ # @option opts [String] :q
58
59
  # @option opts [String] :relative_path Filter results where relative_path matches value
59
60
  # @option opts [String] :repository_version Repository Version referenced by HREF
60
61
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -54,6 +54,7 @@ describe 'ContentPackageReleaseComponentsApi' do
54
54
  # @option opts [String] :package Filter results where package matches value
55
55
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
56
56
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
57
+ # @option opts [String] :q
57
58
  # @option opts [String] :release_component Filter results where release_component matches value
58
59
  # @option opts [String] :repository_version Repository Version referenced by HREF
59
60
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -71,7 +71,10 @@ describe 'ContentPackagesApi' do
71
71
  # @option opts [String] :priority Filter results where priority matches value
72
72
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
73
73
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
74
+ # @option opts [String] :q
74
75
  # @option opts [String] :relative_path Filter results where relative_path matches value
76
+ # @option opts [String] :release Must be a comma-separated string: \&quot;release_href,repository_or_repository_version_href\&quot; release_href: Filter results where Package in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
77
+ # @option opts [String] :release_component Must be a comma-separated string: \&quot;release_component_href,repository_or_repository_version_href\&quot; release_component_href: Filter results where Package in ReleaseComponent repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
75
78
  # @option opts [String] :repository_version Repository Version referenced by HREF
76
79
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
77
80
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
@@ -49,17 +49,16 @@ describe 'ContentReleaseArchitecturesApi' do
49
49
  # A ReleaseArchitecture represents a single dpkg architecture string. Associated artifacts: None; contains only metadata. Every ReleaseArchitecture is always associated with exactly one Release. This indicates that the release/distribution in question supports this architecture.
50
50
  # @param [Hash] opts the optional parameters
51
51
  # @option opts [String] :architecture Filter results where architecture matches value
52
- # @option opts [String] :codename Filter results where codename matches value
53
52
  # @option opts [String] :distribution Filter results where distribution matches value
54
53
  # @option opts [Integer] :limit Number of results to return per page.
55
54
  # @option opts [Integer] :offset The initial index from which to return the results.
56
- # @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;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
55
+ # @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;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
57
56
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
58
57
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
58
+ # @option opts [String] :q
59
59
  # @option opts [String] :repository_version Repository Version referenced by HREF
60
60
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
61
61
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
62
- # @option opts [String] :suite Filter results where suite matches value
63
62
  # @option opts [Array<String>] :fields A list of fields to include in the response.
64
63
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
65
64
  # @return [PaginateddebReleaseArchitectureResponseList]
@@ -48,18 +48,18 @@ describe 'ContentReleaseComponentsApi' do
48
48
  # List release components
49
49
  # A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata.
50
50
  # @param [Hash] opts the optional parameters
51
- # @option opts [String] :codename Filter results where codename matches value
52
51
  # @option opts [String] :component Filter results where component matches value
53
52
  # @option opts [String] :distribution Filter results where distribution matches value
54
53
  # @option opts [Integer] :limit Number of results to return per page.
55
54
  # @option opts [Integer] :offset The initial index from which to return the results.
56
- # @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;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
55
+ # @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;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
56
+ # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; package_href: Filter results where ReleaseComponent contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
57
57
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
58
58
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
59
+ # @option opts [String] :q
59
60
  # @option opts [String] :repository_version Repository Version referenced by HREF
60
61
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
61
62
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
62
- # @option opts [String] :suite Filter results where suite matches value
63
63
  # @option opts [Array<String>] :fields A list of fields to include in the response.
64
64
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
65
65
  # @return [PaginateddebReleaseComponentResponseList]
@@ -54,6 +54,7 @@ describe 'ContentReleaseFilesApi' do
54
54
  # @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;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;components&#x60; - Components * &#x60;-components&#x60; - Components (descending) * &#x60;architectures&#x60; - Architectures * &#x60;-architectures&#x60; - Architectures (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;artifact_set_sha256&#x60; - Artifact set sha256 * &#x60;-artifact_set_sha256&#x60; - Artifact set sha256 (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
55
55
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
56
56
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
57
+ # @option opts [String] :q
57
58
  # @option opts [String] :relative_path Filter results where relative_path matches value
58
59
  # @option opts [String] :repository_version Repository Version referenced by HREF
59
60
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
@@ -50,15 +50,20 @@ describe 'ContentReleasesApi' do
50
50
  # @param [Hash] opts the optional parameters
51
51
  # @option opts [String] :codename Filter results where codename matches value
52
52
  # @option opts [String] :distribution Filter results where distribution matches value
53
+ # @option opts [String] :label Filter results where label matches value
53
54
  # @option opts [Integer] :limit Number of results to return per page.
54
55
  # @option opts [Integer] :offset The initial index from which to return the results.
55
- # @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;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
56
+ # @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;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;label&#x60; - Label * &#x60;-label&#x60; - Label (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
57
+ # @option opts [String] :origin Filter results where origin matches value
58
+ # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
56
59
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
57
60
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
61
+ # @option opts [String] :q
58
62
  # @option opts [String] :repository_version Repository Version referenced by HREF
59
63
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
60
64
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
61
65
  # @option opts [String] :suite Filter results where suite matches value
66
+ # @option opts [String] :version Filter results where version matches value
62
67
  # @option opts [Array<String>] :fields A list of fields to include in the response.
63
68
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
64
69
  # @return [PaginateddebReleaseResponseList]