pulp_deb_client 2.20.4 → 2.21.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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -7
  3. data/docs/ContentInstallerPackagesApi.md +4 -4
  4. data/docs/ContentPackagesApi.md +9 -5
  5. data/docs/ContentReleaseArchitecturesApi.md +8 -4
  6. data/docs/ContentReleaseComponentsApi.md +11 -7
  7. data/docs/ContentReleasesApi.md +3 -3
  8. data/docs/{DebBasePackage.md → DebInstallerPackage.md} +2 -2
  9. data/docs/{DebBasePackageResponse.md → DebInstallerPackageResponse.md} +2 -2
  10. data/docs/DebPackage.md +29 -0
  11. data/docs/DebPackageResponse.md +97 -0
  12. data/docs/DebReleaseArchitecture.md +6 -2
  13. data/docs/DebReleaseArchitectureResponse.md +6 -2
  14. data/docs/DebReleaseComponent.md +6 -2
  15. data/docs/DebReleaseComponentResponse.md +6 -2
  16. data/docs/PaginateddebInstallerPackageResponseList.md +23 -0
  17. data/docs/{PaginateddebBasePackageResponseList.md → PaginateddebPackageResponseList.md} +3 -3
  18. data/docs/RepositoriesAptApi.md +4 -0
  19. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +6 -6
  20. data/lib/pulp_deb_client/api/content_packages_api.rb +20 -6
  21. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +12 -6
  22. data/lib/pulp_deb_client/api/content_release_components_api.rb +18 -12
  23. data/lib/pulp_deb_client/api/content_releases_api.rb +6 -6
  24. data/lib/pulp_deb_client/api/repositories_apt_api.rb +6 -0
  25. data/lib/pulp_deb_client/models/{deb_base_package.rb → deb_installer_package.rb} +3 -3
  26. data/lib/pulp_deb_client/models/{deb_base_package_response.rb → deb_installer_package_response.rb} +3 -3
  27. data/lib/pulp_deb_client/models/deb_package.rb +313 -0
  28. data/lib/pulp_deb_client/models/deb_package_response.rb +578 -0
  29. data/lib/pulp_deb_client/models/deb_release_architecture.rb +96 -11
  30. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +39 -11
  31. data/lib/pulp_deb_client/models/deb_release_component.rb +96 -11
  32. data/lib/pulp_deb_client/models/deb_release_component_response.rb +39 -11
  33. data/lib/pulp_deb_client/models/paginateddeb_installer_package_response_list.rb +237 -0
  34. data/lib/pulp_deb_client/models/{paginateddeb_base_package_response_list.rb → paginateddeb_package_response_list.rb} +4 -4
  35. data/lib/pulp_deb_client/version.rb +1 -1
  36. data/lib/pulp_deb_client.rb +6 -3
  37. data/spec/api/content_installer_packages_api_spec.rb +2 -2
  38. data/spec/api/content_packages_api_spec.rb +4 -2
  39. data/spec/api/content_release_architectures_api_spec.rb +4 -2
  40. data/spec/api/content_release_components_api_spec.rb +7 -5
  41. data/spec/api/content_releases_api_spec.rb +3 -3
  42. data/spec/api/repositories_apt_api_spec.rb +2 -0
  43. data/spec/models/{deb_base_package_response_spec.rb → deb_installer_package_response_spec.rb} +6 -6
  44. data/spec/models/{deb_base_package_spec.rb → deb_installer_package_spec.rb} +6 -6
  45. data/spec/models/deb_package_response_spec.rb +281 -0
  46. data/spec/models/deb_package_spec.rb +77 -0
  47. data/spec/models/deb_release_architecture_response_spec.rb +13 -1
  48. data/spec/models/deb_release_architecture_spec.rb +13 -1
  49. data/spec/models/deb_release_component_response_spec.rb +13 -1
  50. data/spec/models/deb_release_component_spec.rb +13 -1
  51. data/spec/models/paginateddeb_installer_package_response_list_spec.rb +59 -0
  52. data/spec/models/{paginateddeb_base_package_response_list_spec.rb → paginateddeb_package_response_list_spec.rb} +6 -6
  53. metadata +80 -68
@@ -0,0 +1,237 @@
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
+ class PaginateddebInstallerPackageResponseList
17
+ attr_accessor :count
18
+
19
+ attr_accessor :_next
20
+
21
+ attr_accessor :previous
22
+
23
+ attr_accessor :results
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'count' => :'count',
29
+ :'_next' => :'next',
30
+ :'previous' => :'previous',
31
+ :'results' => :'results'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'count' => :'Integer',
39
+ :'_next' => :'String',
40
+ :'previous' => :'String',
41
+ :'results' => :'Array<DebInstallerPackageResponse>'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ :'_next',
49
+ :'previous',
50
+ ])
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ if (!attributes.is_a?(Hash))
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::PaginateddebInstallerPackageResponseList` initialize method"
58
+ end
59
+
60
+ # check to see if the attribute exists and convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!self.class.attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::PaginateddebInstallerPackageResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'count')
69
+ self.count = attributes[:'count']
70
+ end
71
+
72
+ if attributes.key?(:'_next')
73
+ self._next = attributes[:'_next']
74
+ end
75
+
76
+ if attributes.key?(:'previous')
77
+ self.previous = attributes[:'previous']
78
+ end
79
+
80
+ if attributes.key?(:'results')
81
+ if (value = attributes[:'results']).is_a?(Array)
82
+ self.results = value
83
+ end
84
+ end
85
+ end
86
+
87
+ # Show invalid properties with the reasons. Usually used together with valid?
88
+ # @return Array for valid properties with the reasons
89
+ def list_invalid_properties
90
+ invalid_properties = Array.new
91
+ invalid_properties
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ true
98
+ end
99
+
100
+ # Checks equality by comparing each attribute.
101
+ # @param [Object] Object to be compared
102
+ def ==(o)
103
+ return true if self.equal?(o)
104
+ self.class == o.class &&
105
+ count == o.count &&
106
+ _next == o._next &&
107
+ previous == o.previous &&
108
+ results == o.results
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Integer] Hash code
119
+ def hash
120
+ [count, _next, previous, results].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def self.build_from_hash(attributes)
127
+ new.build_from_hash(attributes)
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def build_from_hash(attributes)
134
+ return nil unless attributes.is_a?(Hash)
135
+ self.class.openapi_types.each_pair do |key, type|
136
+ if type =~ /\AArray<(.*)>/i
137
+ # check to ensure the input is an array given that the attribute
138
+ # is documented as an array but the input is not
139
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
140
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
141
+ end
142
+ elsif !attributes[self.class.attribute_map[key]].nil?
143
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
144
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
145
+ end
146
+
147
+ self
148
+ end
149
+
150
+ # Deserializes the data based on type
151
+ # @param string type Data type
152
+ # @param string value Value to be deserialized
153
+ # @return [Object] Deserialized data
154
+ def _deserialize(type, value)
155
+ case type.to_sym
156
+ when :DateTime
157
+ DateTime.parse(value)
158
+ when :Date
159
+ Date.parse(value)
160
+ when :String
161
+ value.to_s
162
+ when :Integer
163
+ value.to_i
164
+ when :Float
165
+ value.to_f
166
+ when :Boolean
167
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
168
+ true
169
+ else
170
+ false
171
+ end
172
+ when :Object
173
+ # generic object (usually a Hash), return directly
174
+ value
175
+ when /\AArray<(?<inner_type>.+)>\z/
176
+ inner_type = Regexp.last_match[:inner_type]
177
+ value.map { |v| _deserialize(inner_type, v) }
178
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
179
+ k_type = Regexp.last_match[:k_type]
180
+ v_type = Regexp.last_match[:v_type]
181
+ {}.tap do |hash|
182
+ value.each do |k, v|
183
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
184
+ end
185
+ end
186
+ else # model
187
+ PulpDebClient.const_get(type).build_from_hash(value)
188
+ end
189
+ end
190
+
191
+ # Returns the string representation of the object
192
+ # @return [String] String presentation of the object
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # to_body is an alias to to_hash (backward compatibility)
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_body
200
+ to_hash
201
+ end
202
+
203
+ # Returns the object in the form of hash
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_hash
206
+ hash = {}
207
+ self.class.attribute_map.each_pair do |attr, param|
208
+ value = self.send(attr)
209
+ if value.nil?
210
+ is_nullable = self.class.openapi_nullable.include?(attr)
211
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
212
+ end
213
+
214
+ hash[param] = _to_hash(value)
215
+ end
216
+ hash
217
+ end
218
+
219
+ # Outputs non-array value in the form of hash
220
+ # For object, use to_hash. Otherwise, just return the value
221
+ # @param [Object] value Any valid value
222
+ # @return [Hash] Returns the value in the form of hash
223
+ def _to_hash(value)
224
+ if value.is_a?(Array)
225
+ value.compact.map { |v| _to_hash(v) }
226
+ elsif value.is_a?(Hash)
227
+ {}.tap do |hash|
228
+ value.each { |k, v| hash[k] = _to_hash(v) }
229
+ end
230
+ elsif value.respond_to? :to_hash
231
+ value.to_hash
232
+ else
233
+ value
234
+ end
235
+ end
236
+ end
237
+ end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpDebClient
16
- class PaginateddebBasePackageResponseList
16
+ class PaginateddebPackageResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -38,7 +38,7 @@ module PulpDebClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<DebBasePackageResponse>'
41
+ :'results' => :'Array<DebPackageResponse>'
42
42
  }
43
43
  end
44
44
 
@@ -54,13 +54,13 @@ module PulpDebClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::PaginateddebBasePackageResponseList` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::PaginateddebPackageResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::PaginateddebBasePackageResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::PaginateddebPackageResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpDebClient
14
- VERSION = '2.20.4'
14
+ VERSION = '2.21.0'
15
15
  end
@@ -30,16 +30,18 @@ require 'pulp_deb_client/models/deb_apt_remote_response'
30
30
  require 'pulp_deb_client/models/deb_apt_remote_response_hidden_fields'
31
31
  require 'pulp_deb_client/models/deb_apt_repository'
32
32
  require 'pulp_deb_client/models/deb_apt_repository_response'
33
- require 'pulp_deb_client/models/deb_base_package'
34
- require 'pulp_deb_client/models/deb_base_package_response'
35
33
  require 'pulp_deb_client/models/deb_generic_content'
36
34
  require 'pulp_deb_client/models/deb_generic_content_response'
37
35
  require 'pulp_deb_client/models/deb_installer_file_index'
38
36
  require 'pulp_deb_client/models/deb_installer_file_index_response'
37
+ require 'pulp_deb_client/models/deb_installer_package'
38
+ require 'pulp_deb_client/models/deb_installer_package_response'
39
+ require 'pulp_deb_client/models/deb_package'
39
40
  require 'pulp_deb_client/models/deb_package_index'
40
41
  require 'pulp_deb_client/models/deb_package_index_response'
41
42
  require 'pulp_deb_client/models/deb_package_release_component'
42
43
  require 'pulp_deb_client/models/deb_package_release_component_response'
44
+ require 'pulp_deb_client/models/deb_package_response'
43
45
  require 'pulp_deb_client/models/deb_release'
44
46
  require 'pulp_deb_client/models/deb_release_architecture'
45
47
  require 'pulp_deb_client/models/deb_release_architecture_response'
@@ -55,11 +57,12 @@ require 'pulp_deb_client/models/paginateddeb_apt_distribution_response_list'
55
57
  require 'pulp_deb_client/models/paginateddeb_apt_publication_response_list'
56
58
  require 'pulp_deb_client/models/paginateddeb_apt_remote_response_list'
57
59
  require 'pulp_deb_client/models/paginateddeb_apt_repository_response_list'
58
- require 'pulp_deb_client/models/paginateddeb_base_package_response_list'
59
60
  require 'pulp_deb_client/models/paginateddeb_generic_content_response_list'
60
61
  require 'pulp_deb_client/models/paginateddeb_installer_file_index_response_list'
62
+ require 'pulp_deb_client/models/paginateddeb_installer_package_response_list'
61
63
  require 'pulp_deb_client/models/paginateddeb_package_index_response_list'
62
64
  require 'pulp_deb_client/models/paginateddeb_package_release_component_response_list'
65
+ require 'pulp_deb_client/models/paginateddeb_package_response_list'
63
66
  require 'pulp_deb_client/models/paginateddeb_release_architecture_response_list'
64
67
  require 'pulp_deb_client/models/paginateddeb_release_component_response_list'
65
68
  require 'pulp_deb_client/models/paginateddeb_release_file_response_list'
@@ -79,7 +79,7 @@ describe 'ContentInstallerPackagesApi' do
79
79
  # @option opts [String] :version Filter results where version matches value
80
80
  # @option opts [Array<String>] :fields A list of fields to include in the response.
81
81
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
82
- # @return [PaginateddebBasePackageResponseList]
82
+ # @return [PaginateddebInstallerPackageResponseList]
83
83
  describe 'list test' do
84
84
  it 'should work' do
85
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -93,7 +93,7 @@ describe 'ContentInstallerPackagesApi' do
93
93
  # @param [Hash] opts the optional parameters
94
94
  # @option opts [Array<String>] :fields A list of fields to include in the response.
95
95
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
96
- # @return [DebBasePackageResponse]
96
+ # @return [DebInstallerPackageResponse]
97
97
  describe 'read test' do
98
98
  it 'should work' do
99
99
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -41,6 +41,8 @@ describe 'ContentPackagesApi' do
41
41
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
42
42
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
43
  # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
44
+ # @option opts [String] :distribution Name of the distribution.
45
+ # @option opts [String] :component Name of the component.
44
46
  # @return [AsyncOperationResponse]
45
47
  describe 'create test' do
46
48
  it 'should work' do
@@ -80,7 +82,7 @@ describe 'ContentPackagesApi' do
80
82
  # @option opts [String] :version Filter results where version matches value
81
83
  # @option opts [Array<String>] :fields A list of fields to include in the response.
82
84
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
83
- # @return [PaginateddebBasePackageResponseList]
85
+ # @return [PaginateddebPackageResponseList]
84
86
  describe 'list test' do
85
87
  it 'should work' do
86
88
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -94,7 +96,7 @@ describe 'ContentPackagesApi' do
94
96
  # @param [Hash] opts the optional parameters
95
97
  # @option opts [Array<String>] :fields A list of fields to include in the response.
96
98
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
97
- # @return [DebBasePackageResponse]
99
+ # @return [DebPackageResponse]
98
100
  describe 'read test' do
99
101
  it 'should work' do
100
102
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -49,15 +49,17 @@ 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
+ # @option opts [String] :distribution Filter results where distribution matches value
52
54
  # @option opts [Integer] :limit Number of results to return per page.
53
55
  # @option opts [Integer] :offset The initial index from which to return the results.
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;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (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;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
57
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
56
58
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
57
- # @option opts [String] :release Filter results where release 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
60
61
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
62
+ # @option opts [String] :suite Filter results where suite matches value
61
63
  # @option opts [Array<String>] :fields A list of fields to include in the response.
62
64
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
63
65
  # @return [PaginateddebReleaseArchitectureResponseList]
@@ -34,7 +34,7 @@ describe 'ContentReleaseComponentsApi' do
34
34
 
35
35
  # unit tests for create
36
36
  # Create a release component
37
- # A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata. Every ReleaseComponent is always associated with exactly one Release. This indicates that the release/distribution in question contains this component.
37
+ # A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata.
38
38
  # @param deb_release_component
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [DebReleaseComponentResponse]
@@ -46,18 +46,20 @@ describe 'ContentReleaseComponentsApi' do
46
46
 
47
47
  # unit tests for list
48
48
  # List release components
49
- # A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata. Every ReleaseComponent is always associated with exactly one Release. This indicates that the release/distribution in question contains this component.
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
51
52
  # @option opts [String] :component Filter results where component matches value
53
+ # @option opts [String] :distribution Filter results where distribution matches value
52
54
  # @option opts [Integer] :limit Number of results to return per page.
53
55
  # @option opts [Integer] :offset The initial index from which to return the results.
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;component&#x60; - Component * &#x60;-component&#x60; - Component (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;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
57
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
56
58
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
57
- # @option opts [String] :release Filter results where release 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
60
61
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
62
+ # @option opts [String] :suite Filter results where suite matches value
61
63
  # @option opts [Array<String>] :fields A list of fields to include in the response.
62
64
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
63
65
  # @return [PaginateddebReleaseComponentResponseList]
@@ -69,7 +71,7 @@ describe 'ContentReleaseComponentsApi' do
69
71
 
70
72
  # unit tests for read
71
73
  # Inspect a release component
72
- # A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata. Every ReleaseComponent is always associated with exactly one Release. This indicates that the release/distribution in question contains this component.
74
+ # A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata.
73
75
  # @param deb_release_component_href
74
76
  # @param [Hash] opts the optional parameters
75
77
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -34,7 +34,7 @@ describe 'ContentReleasesApi' do
34
34
 
35
35
  # unit tests for create
36
36
  # Create a release
37
- # A Release represents a single APT release/distribution. Associated artifacts: None; contains only metadata. Note that in the context of the \&quot;Release content\&quot;, the terms \&quot;distribution\&quot; and \&quot;release\&quot; are synonyms. An \&quot;APT repository release/distribution\&quot; is associated with a single &#39;Release&#39; file below the &#39;dists/&#39; folder. The \&quot;distribution\&quot; refers to the path between &#39;dists/&#39; and the &#39;Release&#39; file. The \&quot;distribution\&quot; could be considered the name of the \&quot;release\&quot;. It is often (but not always) equal to the \&quot;codename\&quot; or \&quot;suite\&quot;.
37
+ # The Release contains release file fields, that are not relevant to the APT repo structure. Associated artifacts: None; contains only metadata. By non-structure relevant release file fields, we mean anything other than the Components and Architectures fields. These are handled by their own models and are not part of this model. Note that the distribution field is part of this model, but is not added to any published release files. The \&quot;distribution\&quot; is defined as the path between &#39;dists/&#39; and some &#39;Release&#39; file. As such, it encodes the path to the relevant release file within the APT repository. It is often (but not always) equal to the \&quot;codename\&quot; or the \&quot;suite\&quot;.
38
38
  # @param deb_release
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [DebReleaseResponse]
@@ -46,7 +46,7 @@ describe 'ContentReleasesApi' do
46
46
 
47
47
  # unit tests for list
48
48
  # List releases
49
- # A Release represents a single APT release/distribution. Associated artifacts: None; contains only metadata. Note that in the context of the \&quot;Release content\&quot;, the terms \&quot;distribution\&quot; and \&quot;release\&quot; are synonyms. An \&quot;APT repository release/distribution\&quot; is associated with a single &#39;Release&#39; file below the &#39;dists/&#39; folder. The \&quot;distribution\&quot; refers to the path between &#39;dists/&#39; and the &#39;Release&#39; file. The \&quot;distribution\&quot; could be considered the name of the \&quot;release\&quot;. It is often (but not always) equal to the \&quot;codename\&quot; or \&quot;suite\&quot;.
49
+ # The Release contains release file fields, that are not relevant to the APT repo structure. Associated artifacts: None; contains only metadata. By non-structure relevant release file fields, we mean anything other than the Components and Architectures fields. These are handled by their own models and are not part of this model. Note that the distribution field is part of this model, but is not added to any published release files. The \&quot;distribution\&quot; is defined as the path between &#39;dists/&#39; and some &#39;Release&#39; file. As such, it encodes the path to the relevant release file within the APT repository. It is often (but not always) equal to the \&quot;codename\&quot; or the \&quot;suite\&quot;.
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
@@ -70,7 +70,7 @@ describe 'ContentReleasesApi' do
70
70
 
71
71
  # unit tests for read
72
72
  # Inspect a release
73
- # A Release represents a single APT release/distribution. Associated artifacts: None; contains only metadata. Note that in the context of the \&quot;Release content\&quot;, the terms \&quot;distribution\&quot; and \&quot;release\&quot; are synonyms. An \&quot;APT repository release/distribution\&quot; is associated with a single &#39;Release&#39; file below the &#39;dists/&#39; folder. The \&quot;distribution\&quot; refers to the path between &#39;dists/&#39; and the &#39;Release&#39; file. The \&quot;distribution\&quot; could be considered the name of the \&quot;release\&quot;. It is often (but not always) equal to the \&quot;codename\&quot; or \&quot;suite\&quot;.
73
+ # The Release contains release file fields, that are not relevant to the APT repo structure. Associated artifacts: None; contains only metadata. By non-structure relevant release file fields, we mean anything other than the Components and Architectures fields. These are handled by their own models and are not part of this model. Note that the distribution field is part of this model, but is not added to any published release files. The \&quot;distribution\&quot; is defined as the path between &#39;dists/&#39; and some &#39;Release&#39; file. As such, it encodes the path to the relevant release file within the APT repository. It is often (but not always) equal to the \&quot;codename\&quot; or the \&quot;suite\&quot;.
74
74
  # @param deb_release_href
75
75
  # @param [Hash] opts the optional parameters
76
76
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -60,6 +60,7 @@ describe 'RepositoriesAptApi' do
60
60
  # List apt repositorys
61
61
  # An AptRepository is the locally stored, Pulp-internal representation of a APT repository. It may be filled with content via synchronization or content upload to create an AptRepositoryVersion.
62
62
  # @param [Hash] opts the optional parameters
63
+ # @option opts [String] :latest_with_content Content Unit referenced by HREF
63
64
  # @option opts [Integer] :limit Number of results to return per page.
64
65
  # @option opts [String] :name Filter results where name matches value
65
66
  # @option opts [String] :name__contains Filter results where name contains value
@@ -80,6 +81,7 @@ describe 'RepositoriesAptApi' do
80
81
  # @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
81
82
  # @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
82
83
  # @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
84
+ # @option opts [String] :with_content Content Unit referenced by HREF
83
85
  # @option opts [Array<String>] :fields A list of fields to include in the response.
84
86
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
85
87
  # @return [PaginateddebAptRepositoryResponseList]
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for PulpDebClient::DebBasePackageResponse
17
+ # Unit tests for PulpDebClient::DebInstallerPackageResponse
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'DebBasePackageResponse' do
20
+ describe 'DebInstallerPackageResponse' do
21
21
  before do
22
22
  # run before each test
23
- @instance = PulpDebClient::DebBasePackageResponse.new
23
+ @instance = PulpDebClient::DebInstallerPackageResponse.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of DebBasePackageResponse' do
31
- it 'should create an instance of DebBasePackageResponse' do
32
- expect(@instance).to be_instance_of(PulpDebClient::DebBasePackageResponse)
30
+ describe 'test an instance of DebInstallerPackageResponse' do
31
+ it 'should create an instance of DebInstallerPackageResponse' do
32
+ expect(@instance).to be_instance_of(PulpDebClient::DebInstallerPackageResponse)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "pulp_href"' do
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for PulpDebClient::DebBasePackage
17
+ # Unit tests for PulpDebClient::DebInstallerPackage
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'DebBasePackage' do
20
+ describe 'DebInstallerPackage' do
21
21
  before do
22
22
  # run before each test
23
- @instance = PulpDebClient::DebBasePackage.new
23
+ @instance = PulpDebClient::DebInstallerPackage.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of DebBasePackage' do
31
- it 'should create an instance of DebBasePackage' do
32
- expect(@instance).to be_instance_of(PulpDebClient::DebBasePackage)
30
+ describe 'test an instance of DebInstallerPackage' do
31
+ it 'should create an instance of DebInstallerPackage' do
32
+ expect(@instance).to be_instance_of(PulpDebClient::DebInstallerPackage)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "artifact"' do