pulp_deb_client 2.21.2 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -7
  3. data/docs/ContentGenericContentsApi.md +7 -5
  4. data/docs/ContentInstallerFileIndicesApi.md +3 -1
  5. data/docs/ContentInstallerPackagesApi.md +7 -5
  6. data/docs/ContentPackageIndicesApi.md +3 -1
  7. data/docs/ContentPackageReleaseComponentsApi.md +3 -1
  8. data/docs/ContentPackagesApi.md +27 -5
  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/ContentSourceIndicesApi.md +204 -0
  14. data/docs/ContentSourcePackagesApi.md +258 -0
  15. data/docs/ContentSourceReleaseComponentsApi.md +202 -0
  16. data/docs/DebAptPublication.md +4 -2
  17. data/docs/DebAptPublicationResponse.md +4 -2
  18. data/docs/DebAptRepository.md +7 -1
  19. data/docs/DebAptRepositoryResponse.md +7 -1
  20. data/docs/DebCopyApi.md +1 -1
  21. data/docs/DebGenericContent.md +2 -2
  22. data/docs/DebInstallerPackage.md +2 -2
  23. data/docs/DebPackage.md +2 -2
  24. data/docs/DebRelease.md +9 -1
  25. data/docs/DebReleaseArchitecture.md +1 -5
  26. data/docs/DebReleaseArchitectureResponse.md +1 -5
  27. data/docs/DebReleaseComponent.md +1 -5
  28. data/docs/DebReleaseComponentResponse.md +1 -5
  29. data/docs/DebReleaseFile.md +3 -3
  30. data/docs/DebReleaseFileResponse.md +3 -3
  31. data/docs/DebReleaseResponse.md +9 -1
  32. data/docs/DebSourceIndex.md +25 -0
  33. data/docs/DebSourceIndexResponse.md +27 -0
  34. data/docs/DebSourcePackage.md +21 -0
  35. data/docs/DebSourcePackageReleaseComponent.md +21 -0
  36. data/docs/DebSourcePackageReleaseComponentResponse.md +23 -0
  37. data/docs/DebSourcePackageResponse.md +77 -0
  38. data/docs/DistributionsAptApi.md +123 -1
  39. data/docs/PaginateddebSourceIndexResponseList.md +23 -0
  40. data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +23 -0
  41. data/docs/PaginateddebSourcePackageResponseList.md +23 -0
  42. data/docs/PatcheddebAptRepository.md +7 -1
  43. data/docs/PublicationsAptApi.md +3 -1
  44. data/docs/PublicationsVerbatimApi.md +3 -1
  45. data/docs/RemotesAptApi.md +123 -1
  46. data/docs/RepositoriesAptApi.md +123 -1
  47. data/docs/RepositoriesAptVersionsApi.md +3 -1
  48. data/docs/SetLabel.md +19 -0
  49. data/docs/SetLabelResponse.md +19 -0
  50. data/docs/UnsetLabel.md +17 -0
  51. data/docs/UnsetLabelResponse.md +19 -0
  52. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +7 -4
  53. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +3 -0
  54. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +7 -4
  55. data/lib/pulp_deb_client/api/content_package_indices_api.rb +3 -0
  56. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +3 -0
  57. data/lib/pulp_deb_client/api/content_packages_api.rb +37 -4
  58. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +6 -9
  59. data/lib/pulp_deb_client/api/content_release_components_api.rb +9 -9
  60. data/lib/pulp_deb_client/api/content_release_files_api.rb +3 -0
  61. data/lib/pulp_deb_client/api/content_releases_api.rb +18 -3
  62. data/lib/pulp_deb_client/api/content_source_indices_api.rb +256 -0
  63. data/lib/pulp_deb_client/api/content_source_packages_api.rb +337 -0
  64. data/lib/pulp_deb_client/api/content_source_release_components_api.rb +253 -0
  65. data/lib/pulp_deb_client/api/distributions_apt_api.rb +155 -0
  66. data/lib/pulp_deb_client/api/publications_apt_api.rb +3 -0
  67. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +3 -0
  68. data/lib/pulp_deb_client/api/remotes_apt_api.rb +155 -0
  69. data/lib/pulp_deb_client/api/repositories_apt_api.rb +155 -0
  70. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +3 -0
  71. data/lib/pulp_deb_client/configuration.rb +2 -2
  72. data/lib/pulp_deb_client/models/deb_apt_publication.rb +14 -5
  73. data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +14 -5
  74. data/lib/pulp_deb_client/models/deb_apt_repository.rb +38 -5
  75. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +38 -5
  76. data/lib/pulp_deb_client/models/deb_generic_content.rb +2 -2
  77. data/lib/pulp_deb_client/models/deb_installer_package.rb +2 -2
  78. data/lib/pulp_deb_client/models/deb_package.rb +2 -2
  79. data/lib/pulp_deb_client/models/deb_release.rb +104 -4
  80. data/lib/pulp_deb_client/models/deb_release_architecture.rb +4 -70
  81. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +4 -32
  82. data/lib/pulp_deb_client/models/deb_release_component.rb +4 -70
  83. data/lib/pulp_deb_client/models/deb_release_component_response.rb +4 -32
  84. data/lib/pulp_deb_client/models/deb_release_file.rb +3 -3
  85. data/lib/pulp_deb_client/models/deb_release_file_response.rb +3 -3
  86. data/lib/pulp_deb_client/models/deb_release_response.rb +44 -4
  87. data/lib/pulp_deb_client/models/deb_source_index.rb +297 -0
  88. data/lib/pulp_deb_client/models/deb_source_index_response.rb +272 -0
  89. data/lib/pulp_deb_client/models/deb_source_package.rb +248 -0
  90. data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +238 -0
  91. data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +247 -0
  92. data/lib/pulp_deb_client/models/deb_source_package_response.rb +485 -0
  93. data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +237 -0
  94. data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +237 -0
  95. data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +237 -0
  96. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +38 -5
  97. data/lib/pulp_deb_client/models/set_label.rb +252 -0
  98. data/lib/pulp_deb_client/models/set_label_response.rb +243 -0
  99. data/lib/pulp_deb_client/models/unset_label.rb +242 -0
  100. data/lib/pulp_deb_client/models/unset_label_response.rb +242 -0
  101. data/lib/pulp_deb_client/version.rb +1 -1
  102. data/lib/pulp_deb_client.rb +16 -0
  103. data/spec/api/content_generic_contents_api_spec.rb +3 -2
  104. data/spec/api/content_installer_file_indices_api_spec.rb +1 -0
  105. data/spec/api/content_installer_packages_api_spec.rb +3 -2
  106. data/spec/api/content_package_indices_api_spec.rb +1 -0
  107. data/spec/api/content_package_release_components_api_spec.rb +1 -0
  108. data/spec/api/content_packages_api_spec.rb +13 -2
  109. data/spec/api/content_release_architectures_api_spec.rb +2 -3
  110. data/spec/api/content_release_components_api_spec.rb +3 -3
  111. data/spec/api/content_release_files_api_spec.rb +1 -0
  112. data/spec/api/content_releases_api_spec.rb +6 -1
  113. data/spec/api/content_source_indices_api_spec.rb +86 -0
  114. data/spec/api/content_source_packages_api_spec.rb +113 -0
  115. data/spec/api/content_source_release_components_api_spec.rb +85 -0
  116. data/spec/api/distributions_apt_api_spec.rb +31 -0
  117. data/spec/api/publications_apt_api_spec.rb +1 -0
  118. data/spec/api/publications_verbatim_api_spec.rb +1 -0
  119. data/spec/api/remotes_apt_api_spec.rb +31 -0
  120. data/spec/api/repositories_apt_api_spec.rb +31 -0
  121. data/spec/api/repositories_apt_versions_api_spec.rb +1 -0
  122. data/spec/configuration_spec.rb +3 -3
  123. data/spec/models/deb_apt_publication_response_spec.rb +6 -0
  124. data/spec/models/deb_apt_publication_spec.rb +6 -0
  125. data/spec/models/deb_apt_repository_response_spec.rb +18 -0
  126. data/spec/models/deb_apt_repository_spec.rb +18 -0
  127. data/spec/models/deb_release_architecture_response_spec.rb +0 -12
  128. data/spec/models/deb_release_architecture_spec.rb +0 -12
  129. data/spec/models/deb_release_component_response_spec.rb +0 -12
  130. data/spec/models/deb_release_component_spec.rb +0 -12
  131. data/spec/models/deb_release_response_spec.rb +24 -0
  132. data/spec/models/deb_release_spec.rb +24 -0
  133. data/spec/models/deb_source_index_response_spec.rb +71 -0
  134. data/spec/models/deb_source_index_spec.rb +65 -0
  135. data/spec/models/deb_source_package_release_component_response_spec.rb +59 -0
  136. data/spec/models/deb_source_package_release_component_spec.rb +53 -0
  137. data/spec/models/deb_source_package_response_spec.rb +221 -0
  138. data/spec/models/deb_source_package_spec.rb +53 -0
  139. data/spec/models/paginateddeb_source_index_response_list_spec.rb +59 -0
  140. data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +59 -0
  141. data/spec/models/paginateddeb_source_package_response_list_spec.rb +59 -0
  142. data/spec/models/patcheddeb_apt_repository_spec.rb +18 -0
  143. data/spec/models/set_label_response_spec.rb +47 -0
  144. data/spec/models/set_label_spec.rb +47 -0
  145. data/spec/models/unset_label_response_spec.rb +47 -0
  146. data/spec/models/unset_label_spec.rb +41 -0
  147. metadata +122 -58
@@ -24,13 +24,25 @@ module PulpDebClient
24
24
 
25
25
  attr_accessor :distribution
26
26
 
27
+ attr_accessor :version
28
+
29
+ attr_accessor :origin
30
+
31
+ attr_accessor :label
32
+
33
+ attr_accessor :description
34
+
27
35
  # Attribute mapping from ruby-style variable name to JSON key.
28
36
  def self.attribute_map
29
37
  {
30
38
  :'repository' => :'repository',
31
39
  :'codename' => :'codename',
32
40
  :'suite' => :'suite',
33
- :'distribution' => :'distribution'
41
+ :'distribution' => :'distribution',
42
+ :'version' => :'version',
43
+ :'origin' => :'origin',
44
+ :'label' => :'label',
45
+ :'description' => :'description'
34
46
  }
35
47
  end
36
48
 
@@ -40,13 +52,21 @@ module PulpDebClient
40
52
  :'repository' => :'String',
41
53
  :'codename' => :'String',
42
54
  :'suite' => :'String',
43
- :'distribution' => :'String'
55
+ :'distribution' => :'String',
56
+ :'version' => :'String',
57
+ :'origin' => :'String',
58
+ :'label' => :'String',
59
+ :'description' => :'String'
44
60
  }
45
61
  end
46
62
 
47
63
  # List of attributes with nullable: true
48
64
  def self.openapi_nullable
49
65
  Set.new([
66
+ :'version',
67
+ :'origin',
68
+ :'label',
69
+ :'description'
50
70
  ])
51
71
  end
52
72
 
@@ -80,6 +100,22 @@ module PulpDebClient
80
100
  if attributes.key?(:'distribution')
81
101
  self.distribution = attributes[:'distribution']
82
102
  end
103
+
104
+ if attributes.key?(:'version')
105
+ self.version = attributes[:'version']
106
+ end
107
+
108
+ if attributes.key?(:'origin')
109
+ self.origin = attributes[:'origin']
110
+ end
111
+
112
+ if attributes.key?(:'label')
113
+ self.label = attributes[:'label']
114
+ end
115
+
116
+ if attributes.key?(:'description')
117
+ self.description = attributes[:'description']
118
+ end
83
119
  end
84
120
 
85
121
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -110,6 +146,22 @@ module PulpDebClient
110
146
  invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
111
147
  end
112
148
 
149
+ if !@version.nil? && @version.to_s.length < 1
150
+ invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
151
+ end
152
+
153
+ if !@origin.nil? && @origin.to_s.length < 1
154
+ invalid_properties.push('invalid value for "origin", the character length must be great than or equal to 1.')
155
+ end
156
+
157
+ if !@label.nil? && @label.to_s.length < 1
158
+ invalid_properties.push('invalid value for "label", the character length must be great than or equal to 1.')
159
+ end
160
+
161
+ if !@description.nil? && @description.to_s.length < 1
162
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
163
+ end
164
+
113
165
  invalid_properties
114
166
  end
115
167
 
@@ -122,6 +174,10 @@ module PulpDebClient
122
174
  return false if @suite.to_s.length < 1
123
175
  return false if @distribution.nil?
124
176
  return false if @distribution.to_s.length < 1
177
+ return false if !@version.nil? && @version.to_s.length < 1
178
+ return false if !@origin.nil? && @origin.to_s.length < 1
179
+ return false if !@label.nil? && @label.to_s.length < 1
180
+ return false if !@description.nil? && @description.to_s.length < 1
125
181
  true
126
182
  end
127
183
 
@@ -167,6 +223,46 @@ module PulpDebClient
167
223
  @distribution = distribution
168
224
  end
169
225
 
226
+ # Custom attribute writer method with validation
227
+ # @param [Object] version Value to be assigned
228
+ def version=(version)
229
+ if !version.nil? && version.to_s.length < 1
230
+ fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
231
+ end
232
+
233
+ @version = version
234
+ end
235
+
236
+ # Custom attribute writer method with validation
237
+ # @param [Object] origin Value to be assigned
238
+ def origin=(origin)
239
+ if !origin.nil? && origin.to_s.length < 1
240
+ fail ArgumentError, 'invalid value for "origin", the character length must be great than or equal to 1.'
241
+ end
242
+
243
+ @origin = origin
244
+ end
245
+
246
+ # Custom attribute writer method with validation
247
+ # @param [Object] label Value to be assigned
248
+ def label=(label)
249
+ if !label.nil? && label.to_s.length < 1
250
+ fail ArgumentError, 'invalid value for "label", the character length must be great than or equal to 1.'
251
+ end
252
+
253
+ @label = label
254
+ end
255
+
256
+ # Custom attribute writer method with validation
257
+ # @param [Object] description Value to be assigned
258
+ def description=(description)
259
+ if !description.nil? && description.to_s.length < 1
260
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
261
+ end
262
+
263
+ @description = description
264
+ end
265
+
170
266
  # Checks equality by comparing each attribute.
171
267
  # @param [Object] Object to be compared
172
268
  def ==(o)
@@ -175,7 +271,11 @@ module PulpDebClient
175
271
  repository == o.repository &&
176
272
  codename == o.codename &&
177
273
  suite == o.suite &&
178
- distribution == o.distribution
274
+ distribution == o.distribution &&
275
+ version == o.version &&
276
+ origin == o.origin &&
277
+ label == o.label &&
278
+ description == o.description
179
279
  end
180
280
 
181
281
  # @see the `==` method
@@ -187,7 +287,7 @@ module PulpDebClient
187
287
  # Calculates hash code according to all attributes.
188
288
  # @return [Integer] Hash code
189
289
  def hash
190
- [repository, codename, suite, distribution].hash
290
+ [repository, codename, suite, distribution, version, origin, label, description].hash
191
291
  end
192
292
 
193
293
  # Builds the object from hash
@@ -24,18 +24,12 @@ module PulpDebClient
24
24
  # Name of the distribution.
25
25
  attr_accessor :distribution
26
26
 
27
- attr_accessor :codename
28
-
29
- attr_accessor :suite
30
-
31
27
  # Attribute mapping from ruby-style variable name to JSON key.
32
28
  def self.attribute_map
33
29
  {
34
30
  :'repository' => :'repository',
35
31
  :'architecture' => :'architecture',
36
- :'distribution' => :'distribution',
37
- :'codename' => :'codename',
38
- :'suite' => :'suite'
32
+ :'distribution' => :'distribution'
39
33
  }
40
34
  end
41
35
 
@@ -44,9 +38,7 @@ module PulpDebClient
44
38
  {
45
39
  :'repository' => :'String',
46
40
  :'architecture' => :'String',
47
- :'distribution' => :'String',
48
- :'codename' => :'String',
49
- :'suite' => :'String'
41
+ :'distribution' => :'String'
50
42
  }
51
43
  end
52
44
 
@@ -82,14 +74,6 @@ module PulpDebClient
82
74
  if attributes.key?(:'distribution')
83
75
  self.distribution = attributes[:'distribution']
84
76
  end
85
-
86
- if attributes.key?(:'codename')
87
- self.codename = attributes[:'codename']
88
- end
89
-
90
- if attributes.key?(:'suite')
91
- self.suite = attributes[:'suite']
92
- end
93
77
  end
94
78
 
95
79
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -112,22 +96,6 @@ module PulpDebClient
112
96
  invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
113
97
  end
114
98
 
115
- if @codename.nil?
116
- invalid_properties.push('invalid value for "codename", codename cannot be nil.')
117
- end
118
-
119
- if @codename.to_s.length < 1
120
- invalid_properties.push('invalid value for "codename", the character length must be great than or equal to 1.')
121
- end
122
-
123
- if @suite.nil?
124
- invalid_properties.push('invalid value for "suite", suite cannot be nil.')
125
- end
126
-
127
- if @suite.to_s.length < 1
128
- invalid_properties.push('invalid value for "suite", the character length must be great than or equal to 1.')
129
- end
130
-
131
99
  invalid_properties
132
100
  end
133
101
 
@@ -138,10 +106,6 @@ module PulpDebClient
138
106
  return false if @architecture.to_s.length < 1
139
107
  return false if @distribution.nil?
140
108
  return false if @distribution.to_s.length < 1
141
- return false if @codename.nil?
142
- return false if @codename.to_s.length < 1
143
- return false if @suite.nil?
144
- return false if @suite.to_s.length < 1
145
109
  true
146
110
  end
147
111
 
@@ -173,34 +137,6 @@ module PulpDebClient
173
137
  @distribution = distribution
174
138
  end
175
139
 
176
- # Custom attribute writer method with validation
177
- # @param [Object] codename Value to be assigned
178
- def codename=(codename)
179
- if codename.nil?
180
- fail ArgumentError, 'codename cannot be nil'
181
- end
182
-
183
- if codename.to_s.length < 1
184
- fail ArgumentError, 'invalid value for "codename", the character length must be great than or equal to 1.'
185
- end
186
-
187
- @codename = codename
188
- end
189
-
190
- # Custom attribute writer method with validation
191
- # @param [Object] suite Value to be assigned
192
- def suite=(suite)
193
- if suite.nil?
194
- fail ArgumentError, 'suite cannot be nil'
195
- end
196
-
197
- if suite.to_s.length < 1
198
- fail ArgumentError, 'invalid value for "suite", the character length must be great than or equal to 1.'
199
- end
200
-
201
- @suite = suite
202
- end
203
-
204
140
  # Checks equality by comparing each attribute.
205
141
  # @param [Object] Object to be compared
206
142
  def ==(o)
@@ -208,9 +144,7 @@ module PulpDebClient
208
144
  self.class == o.class &&
209
145
  repository == o.repository &&
210
146
  architecture == o.architecture &&
211
- distribution == o.distribution &&
212
- codename == o.codename &&
213
- suite == o.suite
147
+ distribution == o.distribution
214
148
  end
215
149
 
216
150
  # @see the `==` method
@@ -222,7 +156,7 @@ module PulpDebClient
222
156
  # Calculates hash code according to all attributes.
223
157
  # @return [Integer] Hash code
224
158
  def hash
225
- [repository, architecture, distribution, codename, suite].hash
159
+ [repository, architecture, distribution].hash
226
160
  end
227
161
 
228
162
  # Builds the object from hash
@@ -26,19 +26,13 @@ module PulpDebClient
26
26
  # Name of the distribution.
27
27
  attr_accessor :distribution
28
28
 
29
- attr_accessor :codename
30
-
31
- attr_accessor :suite
32
-
33
29
  # Attribute mapping from ruby-style variable name to JSON key.
34
30
  def self.attribute_map
35
31
  {
36
32
  :'pulp_href' => :'pulp_href',
37
33
  :'pulp_created' => :'pulp_created',
38
34
  :'architecture' => :'architecture',
39
- :'distribution' => :'distribution',
40
- :'codename' => :'codename',
41
- :'suite' => :'suite'
35
+ :'distribution' => :'distribution'
42
36
  }
43
37
  end
44
38
 
@@ -48,9 +42,7 @@ module PulpDebClient
48
42
  :'pulp_href' => :'String',
49
43
  :'pulp_created' => :'DateTime',
50
44
  :'architecture' => :'String',
51
- :'distribution' => :'String',
52
- :'codename' => :'String',
53
- :'suite' => :'String'
45
+ :'distribution' => :'String'
54
46
  }
55
47
  end
56
48
 
@@ -90,14 +82,6 @@ module PulpDebClient
90
82
  if attributes.key?(:'distribution')
91
83
  self.distribution = attributes[:'distribution']
92
84
  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']
100
- end
101
85
  end
102
86
 
103
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -112,14 +96,6 @@ module PulpDebClient
112
96
  invalid_properties.push('invalid value for "distribution", distribution cannot be nil.')
113
97
  end
114
98
 
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.')
121
- end
122
-
123
99
  invalid_properties
124
100
  end
125
101
 
@@ -128,8 +104,6 @@ module PulpDebClient
128
104
  def valid?
129
105
  return false if @architecture.nil?
130
106
  return false if @distribution.nil?
131
- return false if @codename.nil?
132
- return false if @suite.nil?
133
107
  true
134
108
  end
135
109
 
@@ -141,9 +115,7 @@ module PulpDebClient
141
115
  pulp_href == o.pulp_href &&
142
116
  pulp_created == o.pulp_created &&
143
117
  architecture == o.architecture &&
144
- distribution == o.distribution &&
145
- codename == o.codename &&
146
- suite == o.suite
118
+ distribution == o.distribution
147
119
  end
148
120
 
149
121
  # @see the `==` method
@@ -155,7 +127,7 @@ module PulpDebClient
155
127
  # Calculates hash code according to all attributes.
156
128
  # @return [Integer] Hash code
157
129
  def hash
158
- [pulp_href, pulp_created, architecture, distribution, codename, suite].hash
130
+ [pulp_href, pulp_created, architecture, distribution].hash
159
131
  end
160
132
 
161
133
  # Builds the object from hash
@@ -24,18 +24,12 @@ module PulpDebClient
24
24
  # Name of the distribution.
25
25
  attr_accessor :distribution
26
26
 
27
- attr_accessor :codename
28
-
29
- attr_accessor :suite
30
-
31
27
  # Attribute mapping from ruby-style variable name to JSON key.
32
28
  def self.attribute_map
33
29
  {
34
30
  :'repository' => :'repository',
35
31
  :'component' => :'component',
36
- :'distribution' => :'distribution',
37
- :'codename' => :'codename',
38
- :'suite' => :'suite'
32
+ :'distribution' => :'distribution'
39
33
  }
40
34
  end
41
35
 
@@ -44,9 +38,7 @@ module PulpDebClient
44
38
  {
45
39
  :'repository' => :'String',
46
40
  :'component' => :'String',
47
- :'distribution' => :'String',
48
- :'codename' => :'String',
49
- :'suite' => :'String'
41
+ :'distribution' => :'String'
50
42
  }
51
43
  end
52
44
 
@@ -82,14 +74,6 @@ module PulpDebClient
82
74
  if attributes.key?(:'distribution')
83
75
  self.distribution = attributes[:'distribution']
84
76
  end
85
-
86
- if attributes.key?(:'codename')
87
- self.codename = attributes[:'codename']
88
- end
89
-
90
- if attributes.key?(:'suite')
91
- self.suite = attributes[:'suite']
92
- end
93
77
  end
94
78
 
95
79
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -112,22 +96,6 @@ module PulpDebClient
112
96
  invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
113
97
  end
114
98
 
115
- if @codename.nil?
116
- invalid_properties.push('invalid value for "codename", codename cannot be nil.')
117
- end
118
-
119
- if @codename.to_s.length < 1
120
- invalid_properties.push('invalid value for "codename", the character length must be great than or equal to 1.')
121
- end
122
-
123
- if @suite.nil?
124
- invalid_properties.push('invalid value for "suite", suite cannot be nil.')
125
- end
126
-
127
- if @suite.to_s.length < 1
128
- invalid_properties.push('invalid value for "suite", the character length must be great than or equal to 1.')
129
- end
130
-
131
99
  invalid_properties
132
100
  end
133
101
 
@@ -138,10 +106,6 @@ module PulpDebClient
138
106
  return false if @component.to_s.length < 1
139
107
  return false if @distribution.nil?
140
108
  return false if @distribution.to_s.length < 1
141
- return false if @codename.nil?
142
- return false if @codename.to_s.length < 1
143
- return false if @suite.nil?
144
- return false if @suite.to_s.length < 1
145
109
  true
146
110
  end
147
111
 
@@ -173,34 +137,6 @@ module PulpDebClient
173
137
  @distribution = distribution
174
138
  end
175
139
 
176
- # Custom attribute writer method with validation
177
- # @param [Object] codename Value to be assigned
178
- def codename=(codename)
179
- if codename.nil?
180
- fail ArgumentError, 'codename cannot be nil'
181
- end
182
-
183
- if codename.to_s.length < 1
184
- fail ArgumentError, 'invalid value for "codename", the character length must be great than or equal to 1.'
185
- end
186
-
187
- @codename = codename
188
- end
189
-
190
- # Custom attribute writer method with validation
191
- # @param [Object] suite Value to be assigned
192
- def suite=(suite)
193
- if suite.nil?
194
- fail ArgumentError, 'suite cannot be nil'
195
- end
196
-
197
- if suite.to_s.length < 1
198
- fail ArgumentError, 'invalid value for "suite", the character length must be great than or equal to 1.'
199
- end
200
-
201
- @suite = suite
202
- end
203
-
204
140
  # Checks equality by comparing each attribute.
205
141
  # @param [Object] Object to be compared
206
142
  def ==(o)
@@ -208,9 +144,7 @@ module PulpDebClient
208
144
  self.class == o.class &&
209
145
  repository == o.repository &&
210
146
  component == o.component &&
211
- distribution == o.distribution &&
212
- codename == o.codename &&
213
- suite == o.suite
147
+ distribution == o.distribution
214
148
  end
215
149
 
216
150
  # @see the `==` method
@@ -222,7 +156,7 @@ module PulpDebClient
222
156
  # Calculates hash code according to all attributes.
223
157
  # @return [Integer] Hash code
224
158
  def hash
225
- [repository, component, distribution, codename, suite].hash
159
+ [repository, component, distribution].hash
226
160
  end
227
161
 
228
162
  # Builds the object from hash
@@ -26,19 +26,13 @@ module PulpDebClient
26
26
  # Name of the distribution.
27
27
  attr_accessor :distribution
28
28
 
29
- attr_accessor :codename
30
-
31
- attr_accessor :suite
32
-
33
29
  # Attribute mapping from ruby-style variable name to JSON key.
34
30
  def self.attribute_map
35
31
  {
36
32
  :'pulp_href' => :'pulp_href',
37
33
  :'pulp_created' => :'pulp_created',
38
34
  :'component' => :'component',
39
- :'distribution' => :'distribution',
40
- :'codename' => :'codename',
41
- :'suite' => :'suite'
35
+ :'distribution' => :'distribution'
42
36
  }
43
37
  end
44
38
 
@@ -48,9 +42,7 @@ module PulpDebClient
48
42
  :'pulp_href' => :'String',
49
43
  :'pulp_created' => :'DateTime',
50
44
  :'component' => :'String',
51
- :'distribution' => :'String',
52
- :'codename' => :'String',
53
- :'suite' => :'String'
45
+ :'distribution' => :'String'
54
46
  }
55
47
  end
56
48
 
@@ -90,14 +82,6 @@ module PulpDebClient
90
82
  if attributes.key?(:'distribution')
91
83
  self.distribution = attributes[:'distribution']
92
84
  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']
100
- end
101
85
  end
102
86
 
103
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -112,14 +96,6 @@ module PulpDebClient
112
96
  invalid_properties.push('invalid value for "distribution", distribution cannot be nil.')
113
97
  end
114
98
 
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.')
121
- end
122
-
123
99
  invalid_properties
124
100
  end
125
101
 
@@ -128,8 +104,6 @@ module PulpDebClient
128
104
  def valid?
129
105
  return false if @component.nil?
130
106
  return false if @distribution.nil?
131
- return false if @codename.nil?
132
- return false if @suite.nil?
133
107
  true
134
108
  end
135
109
 
@@ -141,9 +115,7 @@ module PulpDebClient
141
115
  pulp_href == o.pulp_href &&
142
116
  pulp_created == o.pulp_created &&
143
117
  component == o.component &&
144
- distribution == o.distribution &&
145
- codename == o.codename &&
146
- suite == o.suite
118
+ distribution == o.distribution
147
119
  end
148
120
 
149
121
  # @see the `==` method
@@ -155,7 +127,7 @@ module PulpDebClient
155
127
  # Calculates hash code according to all attributes.
156
128
  # @return [Integer] Hash code
157
129
  def hash
158
- [pulp_href, pulp_created, component, distribution, codename, suite].hash
130
+ [pulp_href, pulp_created, component, distribution].hash
159
131
  end
160
132
 
161
133
  # Builds the object from hash
@@ -21,13 +21,13 @@ module PulpDebClient
21
21
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
22
22
  attr_accessor :artifacts
23
23
 
24
- # Codename of the release, i.e. \"buster\".
24
+ # Codename of the release, e.g. \"buster\".
25
25
  attr_accessor :codename
26
26
 
27
- # Suite of the release, i.e. \"stable\".
27
+ # Suite of the release, e.g. \"stable\".
28
28
  attr_accessor :suite
29
29
 
30
- # Distribution of the release, i.e. \"stable/updates\".
30
+ # Distribution of the release, e.g. \"stable/updates\".
31
31
  attr_accessor :distribution
32
32
 
33
33
  # Path of file relative to url.
@@ -23,13 +23,13 @@ module PulpDebClient
23
23
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
24
24
  attr_accessor :artifacts
25
25
 
26
- # Codename of the release, i.e. \"buster\".
26
+ # Codename of the release, e.g. \"buster\".
27
27
  attr_accessor :codename
28
28
 
29
- # Suite of the release, i.e. \"stable\".
29
+ # Suite of the release, e.g. \"stable\".
30
30
  attr_accessor :suite
31
31
 
32
- # Distribution of the release, i.e. \"stable/updates\".
32
+ # Distribution of the release, e.g. \"stable/updates\".
33
33
  attr_accessor :distribution
34
34
 
35
35
  # Path of file relative to url.