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
@@ -18,14 +18,20 @@ module PulpDebClient
18
18
  # Name of the architecture.
19
19
  attr_accessor :architecture
20
20
 
21
- # Release this architecture is contained in.
22
- attr_accessor :release
21
+ # Name of the distribution.
22
+ attr_accessor :distribution
23
+
24
+ attr_accessor :codename
25
+
26
+ attr_accessor :suite
23
27
 
24
28
  # Attribute mapping from ruby-style variable name to JSON key.
25
29
  def self.attribute_map
26
30
  {
27
31
  :'architecture' => :'architecture',
28
- :'release' => :'release'
32
+ :'distribution' => :'distribution',
33
+ :'codename' => :'codename',
34
+ :'suite' => :'suite'
29
35
  }
30
36
  end
31
37
 
@@ -33,7 +39,9 @@ module PulpDebClient
33
39
  def self.openapi_types
34
40
  {
35
41
  :'architecture' => :'String',
36
- :'release' => :'String'
42
+ :'distribution' => :'String',
43
+ :'codename' => :'String',
44
+ :'suite' => :'String'
37
45
  }
38
46
  end
39
47
 
@@ -62,8 +70,16 @@ module PulpDebClient
62
70
  self.architecture = attributes[:'architecture']
63
71
  end
64
72
 
65
- if attributes.key?(:'release')
66
- self.release = attributes[:'release']
73
+ if attributes.key?(:'distribution')
74
+ self.distribution = attributes[:'distribution']
75
+ end
76
+
77
+ if attributes.key?(:'codename')
78
+ self.codename = attributes[:'codename']
79
+ end
80
+
81
+ if attributes.key?(:'suite')
82
+ self.suite = attributes[:'suite']
67
83
  end
68
84
  end
69
85
 
@@ -79,8 +95,28 @@ module PulpDebClient
79
95
  invalid_properties.push('invalid value for "architecture", the character length must be great than or equal to 1.')
80
96
  end
81
97
 
82
- if @release.nil?
83
- invalid_properties.push('invalid value for "release", release cannot be nil.')
98
+ if @distribution.nil?
99
+ invalid_properties.push('invalid value for "distribution", distribution cannot be nil.')
100
+ end
101
+
102
+ if @distribution.to_s.length < 1
103
+ invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
104
+ end
105
+
106
+ if @codename.nil?
107
+ invalid_properties.push('invalid value for "codename", codename cannot be nil.')
108
+ end
109
+
110
+ if @codename.to_s.length < 1
111
+ invalid_properties.push('invalid value for "codename", the character length must be great than or equal to 1.')
112
+ end
113
+
114
+ if @suite.nil?
115
+ invalid_properties.push('invalid value for "suite", suite cannot be nil.')
116
+ end
117
+
118
+ if @suite.to_s.length < 1
119
+ invalid_properties.push('invalid value for "suite", the character length must be great than or equal to 1.')
84
120
  end
85
121
 
86
122
  invalid_properties
@@ -91,7 +127,12 @@ module PulpDebClient
91
127
  def valid?
92
128
  return false if @architecture.nil?
93
129
  return false if @architecture.to_s.length < 1
94
- return false if @release.nil?
130
+ return false if @distribution.nil?
131
+ return false if @distribution.to_s.length < 1
132
+ return false if @codename.nil?
133
+ return false if @codename.to_s.length < 1
134
+ return false if @suite.nil?
135
+ return false if @suite.to_s.length < 1
95
136
  true
96
137
  end
97
138
 
@@ -109,13 +150,57 @@ module PulpDebClient
109
150
  @architecture = architecture
110
151
  end
111
152
 
153
+ # Custom attribute writer method with validation
154
+ # @param [Object] distribution Value to be assigned
155
+ def distribution=(distribution)
156
+ if distribution.nil?
157
+ fail ArgumentError, 'distribution cannot be nil'
158
+ end
159
+
160
+ if distribution.to_s.length < 1
161
+ fail ArgumentError, 'invalid value for "distribution", the character length must be great than or equal to 1.'
162
+ end
163
+
164
+ @distribution = distribution
165
+ end
166
+
167
+ # Custom attribute writer method with validation
168
+ # @param [Object] codename Value to be assigned
169
+ def codename=(codename)
170
+ if codename.nil?
171
+ fail ArgumentError, 'codename cannot be nil'
172
+ end
173
+
174
+ if codename.to_s.length < 1
175
+ fail ArgumentError, 'invalid value for "codename", the character length must be great than or equal to 1.'
176
+ end
177
+
178
+ @codename = codename
179
+ end
180
+
181
+ # Custom attribute writer method with validation
182
+ # @param [Object] suite Value to be assigned
183
+ def suite=(suite)
184
+ if suite.nil?
185
+ fail ArgumentError, 'suite cannot be nil'
186
+ end
187
+
188
+ if suite.to_s.length < 1
189
+ fail ArgumentError, 'invalid value for "suite", the character length must be great than or equal to 1.'
190
+ end
191
+
192
+ @suite = suite
193
+ end
194
+
112
195
  # Checks equality by comparing each attribute.
113
196
  # @param [Object] Object to be compared
114
197
  def ==(o)
115
198
  return true if self.equal?(o)
116
199
  self.class == o.class &&
117
200
  architecture == o.architecture &&
118
- release == o.release
201
+ distribution == o.distribution &&
202
+ codename == o.codename &&
203
+ suite == o.suite
119
204
  end
120
205
 
121
206
  # @see the `==` method
@@ -127,7 +212,7 @@ module PulpDebClient
127
212
  # Calculates hash code according to all attributes.
128
213
  # @return [Integer] Hash code
129
214
  def hash
130
- [architecture, release].hash
215
+ [architecture, distribution, codename, suite].hash
131
216
  end
132
217
 
133
218
  # Builds the object from hash
@@ -23,8 +23,12 @@ module PulpDebClient
23
23
  # Name of the architecture.
24
24
  attr_accessor :architecture
25
25
 
26
- # Release this architecture is contained in.
27
- attr_accessor :release
26
+ # Name of the distribution.
27
+ attr_accessor :distribution
28
+
29
+ attr_accessor :codename
30
+
31
+ attr_accessor :suite
28
32
 
29
33
  # Attribute mapping from ruby-style variable name to JSON key.
30
34
  def self.attribute_map
@@ -32,7 +36,9 @@ module PulpDebClient
32
36
  :'pulp_href' => :'pulp_href',
33
37
  :'pulp_created' => :'pulp_created',
34
38
  :'architecture' => :'architecture',
35
- :'release' => :'release'
39
+ :'distribution' => :'distribution',
40
+ :'codename' => :'codename',
41
+ :'suite' => :'suite'
36
42
  }
37
43
  end
38
44
 
@@ -42,7 +48,9 @@ module PulpDebClient
42
48
  :'pulp_href' => :'String',
43
49
  :'pulp_created' => :'DateTime',
44
50
  :'architecture' => :'String',
45
- :'release' => :'String'
51
+ :'distribution' => :'String',
52
+ :'codename' => :'String',
53
+ :'suite' => :'String'
46
54
  }
47
55
  end
48
56
 
@@ -79,8 +87,16 @@ module PulpDebClient
79
87
  self.architecture = attributes[:'architecture']
80
88
  end
81
89
 
82
- if attributes.key?(:'release')
83
- self.release = attributes[:'release']
90
+ if attributes.key?(:'distribution')
91
+ self.distribution = attributes[:'distribution']
92
+ end
93
+
94
+ if attributes.key?(:'codename')
95
+ self.codename = attributes[:'codename']
96
+ end
97
+
98
+ if attributes.key?(:'suite')
99
+ self.suite = attributes[:'suite']
84
100
  end
85
101
  end
86
102
 
@@ -92,8 +108,16 @@ module PulpDebClient
92
108
  invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
93
109
  end
94
110
 
95
- if @release.nil?
96
- invalid_properties.push('invalid value for "release", release cannot be nil.')
111
+ if @distribution.nil?
112
+ invalid_properties.push('invalid value for "distribution", distribution cannot be nil.')
113
+ end
114
+
115
+ if @codename.nil?
116
+ invalid_properties.push('invalid value for "codename", codename cannot be nil.')
117
+ end
118
+
119
+ if @suite.nil?
120
+ invalid_properties.push('invalid value for "suite", suite cannot be nil.')
97
121
  end
98
122
 
99
123
  invalid_properties
@@ -103,7 +127,9 @@ module PulpDebClient
103
127
  # @return true if the model is valid
104
128
  def valid?
105
129
  return false if @architecture.nil?
106
- return false if @release.nil?
130
+ return false if @distribution.nil?
131
+ return false if @codename.nil?
132
+ return false if @suite.nil?
107
133
  true
108
134
  end
109
135
 
@@ -115,7 +141,9 @@ module PulpDebClient
115
141
  pulp_href == o.pulp_href &&
116
142
  pulp_created == o.pulp_created &&
117
143
  architecture == o.architecture &&
118
- release == o.release
144
+ distribution == o.distribution &&
145
+ codename == o.codename &&
146
+ suite == o.suite
119
147
  end
120
148
 
121
149
  # @see the `==` method
@@ -127,7 +155,7 @@ module PulpDebClient
127
155
  # Calculates hash code according to all attributes.
128
156
  # @return [Integer] Hash code
129
157
  def hash
130
- [pulp_href, pulp_created, architecture, release].hash
158
+ [pulp_href, pulp_created, architecture, distribution, codename, suite].hash
131
159
  end
132
160
 
133
161
  # Builds the object from hash
@@ -18,14 +18,20 @@ module PulpDebClient
18
18
  # Name of the component.
19
19
  attr_accessor :component
20
20
 
21
- # Release this component is contained in.
22
- attr_accessor :release
21
+ # Name of the distribution.
22
+ attr_accessor :distribution
23
+
24
+ attr_accessor :codename
25
+
26
+ attr_accessor :suite
23
27
 
24
28
  # Attribute mapping from ruby-style variable name to JSON key.
25
29
  def self.attribute_map
26
30
  {
27
31
  :'component' => :'component',
28
- :'release' => :'release'
32
+ :'distribution' => :'distribution',
33
+ :'codename' => :'codename',
34
+ :'suite' => :'suite'
29
35
  }
30
36
  end
31
37
 
@@ -33,7 +39,9 @@ module PulpDebClient
33
39
  def self.openapi_types
34
40
  {
35
41
  :'component' => :'String',
36
- :'release' => :'String'
42
+ :'distribution' => :'String',
43
+ :'codename' => :'String',
44
+ :'suite' => :'String'
37
45
  }
38
46
  end
39
47
 
@@ -62,8 +70,16 @@ module PulpDebClient
62
70
  self.component = attributes[:'component']
63
71
  end
64
72
 
65
- if attributes.key?(:'release')
66
- self.release = attributes[:'release']
73
+ if attributes.key?(:'distribution')
74
+ self.distribution = attributes[:'distribution']
75
+ end
76
+
77
+ if attributes.key?(:'codename')
78
+ self.codename = attributes[:'codename']
79
+ end
80
+
81
+ if attributes.key?(:'suite')
82
+ self.suite = attributes[:'suite']
67
83
  end
68
84
  end
69
85
 
@@ -79,8 +95,28 @@ module PulpDebClient
79
95
  invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
80
96
  end
81
97
 
82
- if @release.nil?
83
- invalid_properties.push('invalid value for "release", release cannot be nil.')
98
+ if @distribution.nil?
99
+ invalid_properties.push('invalid value for "distribution", distribution cannot be nil.')
100
+ end
101
+
102
+ if @distribution.to_s.length < 1
103
+ invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
104
+ end
105
+
106
+ if @codename.nil?
107
+ invalid_properties.push('invalid value for "codename", codename cannot be nil.')
108
+ end
109
+
110
+ if @codename.to_s.length < 1
111
+ invalid_properties.push('invalid value for "codename", the character length must be great than or equal to 1.')
112
+ end
113
+
114
+ if @suite.nil?
115
+ invalid_properties.push('invalid value for "suite", suite cannot be nil.')
116
+ end
117
+
118
+ if @suite.to_s.length < 1
119
+ invalid_properties.push('invalid value for "suite", the character length must be great than or equal to 1.')
84
120
  end
85
121
 
86
122
  invalid_properties
@@ -91,7 +127,12 @@ module PulpDebClient
91
127
  def valid?
92
128
  return false if @component.nil?
93
129
  return false if @component.to_s.length < 1
94
- return false if @release.nil?
130
+ return false if @distribution.nil?
131
+ return false if @distribution.to_s.length < 1
132
+ return false if @codename.nil?
133
+ return false if @codename.to_s.length < 1
134
+ return false if @suite.nil?
135
+ return false if @suite.to_s.length < 1
95
136
  true
96
137
  end
97
138
 
@@ -109,13 +150,57 @@ module PulpDebClient
109
150
  @component = component
110
151
  end
111
152
 
153
+ # Custom attribute writer method with validation
154
+ # @param [Object] distribution Value to be assigned
155
+ def distribution=(distribution)
156
+ if distribution.nil?
157
+ fail ArgumentError, 'distribution cannot be nil'
158
+ end
159
+
160
+ if distribution.to_s.length < 1
161
+ fail ArgumentError, 'invalid value for "distribution", the character length must be great than or equal to 1.'
162
+ end
163
+
164
+ @distribution = distribution
165
+ end
166
+
167
+ # Custom attribute writer method with validation
168
+ # @param [Object] codename Value to be assigned
169
+ def codename=(codename)
170
+ if codename.nil?
171
+ fail ArgumentError, 'codename cannot be nil'
172
+ end
173
+
174
+ if codename.to_s.length < 1
175
+ fail ArgumentError, 'invalid value for "codename", the character length must be great than or equal to 1.'
176
+ end
177
+
178
+ @codename = codename
179
+ end
180
+
181
+ # Custom attribute writer method with validation
182
+ # @param [Object] suite Value to be assigned
183
+ def suite=(suite)
184
+ if suite.nil?
185
+ fail ArgumentError, 'suite cannot be nil'
186
+ end
187
+
188
+ if suite.to_s.length < 1
189
+ fail ArgumentError, 'invalid value for "suite", the character length must be great than or equal to 1.'
190
+ end
191
+
192
+ @suite = suite
193
+ end
194
+
112
195
  # Checks equality by comparing each attribute.
113
196
  # @param [Object] Object to be compared
114
197
  def ==(o)
115
198
  return true if self.equal?(o)
116
199
  self.class == o.class &&
117
200
  component == o.component &&
118
- release == o.release
201
+ distribution == o.distribution &&
202
+ codename == o.codename &&
203
+ suite == o.suite
119
204
  end
120
205
 
121
206
  # @see the `==` method
@@ -127,7 +212,7 @@ module PulpDebClient
127
212
  # Calculates hash code according to all attributes.
128
213
  # @return [Integer] Hash code
129
214
  def hash
130
- [component, release].hash
215
+ [component, distribution, codename, suite].hash
131
216
  end
132
217
 
133
218
  # Builds the object from hash
@@ -23,8 +23,12 @@ module PulpDebClient
23
23
  # Name of the component.
24
24
  attr_accessor :component
25
25
 
26
- # Release this component is contained in.
27
- attr_accessor :release
26
+ # Name of the distribution.
27
+ attr_accessor :distribution
28
+
29
+ attr_accessor :codename
30
+
31
+ attr_accessor :suite
28
32
 
29
33
  # Attribute mapping from ruby-style variable name to JSON key.
30
34
  def self.attribute_map
@@ -32,7 +36,9 @@ module PulpDebClient
32
36
  :'pulp_href' => :'pulp_href',
33
37
  :'pulp_created' => :'pulp_created',
34
38
  :'component' => :'component',
35
- :'release' => :'release'
39
+ :'distribution' => :'distribution',
40
+ :'codename' => :'codename',
41
+ :'suite' => :'suite'
36
42
  }
37
43
  end
38
44
 
@@ -42,7 +48,9 @@ module PulpDebClient
42
48
  :'pulp_href' => :'String',
43
49
  :'pulp_created' => :'DateTime',
44
50
  :'component' => :'String',
45
- :'release' => :'String'
51
+ :'distribution' => :'String',
52
+ :'codename' => :'String',
53
+ :'suite' => :'String'
46
54
  }
47
55
  end
48
56
 
@@ -79,8 +87,16 @@ module PulpDebClient
79
87
  self.component = attributes[:'component']
80
88
  end
81
89
 
82
- if attributes.key?(:'release')
83
- self.release = attributes[:'release']
90
+ if attributes.key?(:'distribution')
91
+ self.distribution = attributes[:'distribution']
92
+ end
93
+
94
+ if attributes.key?(:'codename')
95
+ self.codename = attributes[:'codename']
96
+ end
97
+
98
+ if attributes.key?(:'suite')
99
+ self.suite = attributes[:'suite']
84
100
  end
85
101
  end
86
102
 
@@ -92,8 +108,16 @@ module PulpDebClient
92
108
  invalid_properties.push('invalid value for "component", component cannot be nil.')
93
109
  end
94
110
 
95
- if @release.nil?
96
- invalid_properties.push('invalid value for "release", release cannot be nil.')
111
+ if @distribution.nil?
112
+ invalid_properties.push('invalid value for "distribution", distribution cannot be nil.')
113
+ end
114
+
115
+ if @codename.nil?
116
+ invalid_properties.push('invalid value for "codename", codename cannot be nil.')
117
+ end
118
+
119
+ if @suite.nil?
120
+ invalid_properties.push('invalid value for "suite", suite cannot be nil.')
97
121
  end
98
122
 
99
123
  invalid_properties
@@ -103,7 +127,9 @@ module PulpDebClient
103
127
  # @return true if the model is valid
104
128
  def valid?
105
129
  return false if @component.nil?
106
- return false if @release.nil?
130
+ return false if @distribution.nil?
131
+ return false if @codename.nil?
132
+ return false if @suite.nil?
107
133
  true
108
134
  end
109
135
 
@@ -115,7 +141,9 @@ module PulpDebClient
115
141
  pulp_href == o.pulp_href &&
116
142
  pulp_created == o.pulp_created &&
117
143
  component == o.component &&
118
- release == o.release
144
+ distribution == o.distribution &&
145
+ codename == o.codename &&
146
+ suite == o.suite
119
147
  end
120
148
 
121
149
  # @see the `==` method
@@ -127,7 +155,7 @@ module PulpDebClient
127
155
  # Calculates hash code according to all attributes.
128
156
  # @return [Integer] Hash code
129
157
  def hash
130
- [pulp_href, pulp_created, component, release].hash
158
+ [pulp_href, pulp_created, component, distribution, codename, suite].hash
131
159
  end
132
160
 
133
161
  # Builds the object from hash