pulp_deb_client 3.6.0 → 3.8.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 (112) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -16
  3. data/docs/AcsDebApi.md +886 -0
  4. data/docs/ContentInstallerPackagesApi.md +2 -2
  5. data/docs/ContentPackagesApi.md +2 -2
  6. data/docs/Copy.md +1 -1
  7. data/docs/DebAptAlternateContentSource.md +24 -0
  8. data/docs/DebAptAlternateContentSourceResponse.md +32 -0
  9. data/docs/DebAptRemoteResponse.md +1 -1
  10. data/docs/DebAptRepository.md +2 -0
  11. data/docs/DebAptRepositoryResponse.md +2 -0
  12. data/docs/DebGenericContentResponse.md +2 -0
  13. data/docs/DebInstallerFileIndexResponse.md +2 -0
  14. data/docs/DebInstallerPackageResponse.md +2 -0
  15. data/docs/DebPackageIndexResponse.md +2 -0
  16. data/docs/DebPackageReleaseComponentResponse.md +2 -0
  17. data/docs/DebPackageResponse.md +2 -0
  18. data/docs/DebReleaseArchitectureResponse.md +2 -0
  19. data/docs/DebReleaseComponentResponse.md +2 -0
  20. data/docs/DebReleaseFileResponse.md +2 -0
  21. data/docs/DebReleaseResponse.md +2 -0
  22. data/docs/DebSourceIndexResponse.md +2 -0
  23. data/docs/DebSourcePackageReleaseComponentResponse.md +2 -0
  24. data/docs/DebSourcePackageResponse.md +2 -0
  25. data/docs/DistributionsAptApi.md +10 -10
  26. data/docs/PaginateddebAptAlternateContentSourceResponseList.md +24 -0
  27. data/docs/PatcheddebAptAlternateContentSource.md +24 -0
  28. data/docs/PatcheddebAptRepository.md +2 -0
  29. data/docs/RemotesAptApi.md +10 -10
  30. data/docs/RepositoriesAptApi.md +10 -10
  31. data/docs/RepositoryVersionResponse.md +3 -1
  32. data/docs/TaskGroupOperationResponse.md +18 -0
  33. data/lib/pulp_deb_client/api/acs_deb_api.rb +865 -0
  34. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +8 -0
  35. data/lib/pulp_deb_client/api/content_packages_api.rb +8 -0
  36. data/lib/pulp_deb_client/api/distributions_apt_api.rb +10 -10
  37. data/lib/pulp_deb_client/api/remotes_apt_api.rb +10 -10
  38. data/lib/pulp_deb_client/api/repositories_apt_api.rb +10 -10
  39. data/lib/pulp_deb_client/models/copy.rb +0 -1
  40. data/lib/pulp_deb_client/models/deb_apt_alternate_content_source.rb +282 -0
  41. data/lib/pulp_deb_client/models/deb_apt_alternate_content_source_response.rb +302 -0
  42. data/lib/pulp_deb_client/models/deb_apt_remote.rb +0 -15
  43. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +0 -15
  44. data/lib/pulp_deb_client/models/deb_apt_repository.rb +13 -16
  45. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +13 -16
  46. data/lib/pulp_deb_client/models/deb_generic_content_response.rb +10 -1
  47. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +10 -1
  48. data/lib/pulp_deb_client/models/deb_installer_package_response.rb +10 -1
  49. data/lib/pulp_deb_client/models/deb_package_index_response.rb +10 -1
  50. data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +10 -1
  51. data/lib/pulp_deb_client/models/deb_package_response.rb +10 -1
  52. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +10 -1
  53. data/lib/pulp_deb_client/models/deb_release_component_response.rb +10 -1
  54. data/lib/pulp_deb_client/models/deb_release_file_response.rb +10 -1
  55. data/lib/pulp_deb_client/models/deb_release_response.rb +10 -1
  56. data/lib/pulp_deb_client/models/deb_source_index_response.rb +10 -1
  57. data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +10 -1
  58. data/lib/pulp_deb_client/models/deb_source_package_response.rb +10 -1
  59. data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +0 -2
  60. data/lib/pulp_deb_client/models/paginateddeb_apt_alternate_content_source_response_list.rb +257 -0
  61. data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +0 -2
  62. data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +0 -2
  63. data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +0 -2
  64. data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +0 -2
  65. data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +0 -2
  66. data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +0 -2
  67. data/lib/pulp_deb_client/models/paginateddeb_installer_package_response_list.rb +0 -2
  68. data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +0 -2
  69. data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +0 -2
  70. data/lib/pulp_deb_client/models/paginateddeb_package_response_list.rb +0 -2
  71. data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +0 -2
  72. data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +0 -2
  73. data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +0 -2
  74. data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +0 -2
  75. data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +0 -2
  76. data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +0 -2
  77. data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +0 -2
  78. data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +0 -2
  79. data/lib/pulp_deb_client/models/patcheddeb_apt_alternate_content_source.rb +268 -0
  80. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +0 -15
  81. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +13 -16
  82. data/lib/pulp_deb_client/models/repository_version_response.rb +13 -4
  83. data/lib/pulp_deb_client/models/task_group_operation_response.rb +223 -0
  84. data/lib/pulp_deb_client/version.rb +1 -1
  85. data/lib/pulp_deb_client.rb +6 -0
  86. data/spec/api/acs_deb_api_spec.rb +204 -0
  87. data/spec/api/distributions_apt_api_spec.rb +4 -4
  88. data/spec/api/remotes_apt_api_spec.rb +4 -4
  89. data/spec/api/repositories_apt_api_spec.rb +4 -4
  90. data/spec/models/deb_apt_alternate_content_source_response_spec.rb +78 -0
  91. data/spec/models/deb_apt_alternate_content_source_spec.rb +54 -0
  92. data/spec/models/deb_apt_repository_response_spec.rb +6 -0
  93. data/spec/models/deb_apt_repository_spec.rb +6 -0
  94. data/spec/models/deb_generic_content_response_spec.rb +6 -0
  95. data/spec/models/deb_installer_file_index_response_spec.rb +6 -0
  96. data/spec/models/deb_installer_package_response_spec.rb +6 -0
  97. data/spec/models/deb_package_index_response_spec.rb +6 -0
  98. data/spec/models/deb_package_release_component_response_spec.rb +6 -0
  99. data/spec/models/deb_package_response_spec.rb +6 -0
  100. data/spec/models/deb_release_architecture_response_spec.rb +6 -0
  101. data/spec/models/deb_release_component_response_spec.rb +6 -0
  102. data/spec/models/deb_release_file_response_spec.rb +6 -0
  103. data/spec/models/deb_release_response_spec.rb +6 -0
  104. data/spec/models/deb_source_index_response_spec.rb +6 -0
  105. data/spec/models/deb_source_package_release_component_response_spec.rb +6 -0
  106. data/spec/models/deb_source_package_response_spec.rb +6 -0
  107. data/spec/models/paginateddeb_apt_alternate_content_source_response_list_spec.rb +54 -0
  108. data/spec/models/patcheddeb_apt_alternate_content_source_spec.rb +54 -0
  109. data/spec/models/patcheddeb_apt_repository_spec.rb +6 -0
  110. data/spec/models/repository_version_response_spec.rb +6 -0
  111. data/spec/models/task_group_operation_response_spec.rb +36 -0
  112. metadata +99 -75
@@ -0,0 +1,257 @@
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
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module PulpDebClient
17
+ class PaginateddebAptAlternateContentSourceResponseList
18
+ attr_accessor :count
19
+
20
+ attr_accessor :_next
21
+
22
+ attr_accessor :previous
23
+
24
+ attr_accessor :results
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'count' => :'count',
30
+ :'_next' => :'next',
31
+ :'previous' => :'previous',
32
+ :'results' => :'results'
33
+ }
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'count' => :'Integer',
45
+ :'_next' => :'String',
46
+ :'previous' => :'String',
47
+ :'results' => :'Array<DebAptAlternateContentSourceResponse>'
48
+ }
49
+ end
50
+
51
+ # List of attributes with nullable: true
52
+ def self.openapi_nullable
53
+ Set.new([
54
+ ])
55
+ end
56
+
57
+ # Initializes the object
58
+ # @param [Hash] attributes Model attributes in the form of hash
59
+ def initialize(attributes = {})
60
+ if (!attributes.is_a?(Hash))
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::PaginateddebAptAlternateContentSourceResponseList` initialize method"
62
+ end
63
+
64
+ # check to see if the attribute exists and convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::PaginateddebAptAlternateContentSourceResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
71
+
72
+ if attributes.key?(:'count')
73
+ self.count = attributes[:'count']
74
+ else
75
+ self.count = nil
76
+ end
77
+
78
+ if attributes.key?(:'_next')
79
+ self._next = attributes[:'_next']
80
+ end
81
+
82
+ if attributes.key?(:'previous')
83
+ self.previous = attributes[:'previous']
84
+ end
85
+
86
+ if attributes.key?(:'results')
87
+ if (value = attributes[:'results']).is_a?(Array)
88
+ self.results = value
89
+ end
90
+ else
91
+ self.results = nil
92
+ end
93
+ end
94
+
95
+ # Show invalid properties with the reasons. Usually used together with valid?
96
+ # @return Array for valid properties with the reasons
97
+ def list_invalid_properties
98
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
99
+ invalid_properties = Array.new
100
+ if @count.nil?
101
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
102
+ end
103
+
104
+ if @results.nil?
105
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
106
+ end
107
+
108
+ invalid_properties
109
+ end
110
+
111
+ # Check to see if the all the properties in the model are valid
112
+ # @return true if the model is valid
113
+ def valid?
114
+ warn '[DEPRECATED] the `valid?` method is obsolete'
115
+ return false if @count.nil?
116
+ return false if @results.nil?
117
+ true
118
+ end
119
+
120
+ # Checks equality by comparing each attribute.
121
+ # @param [Object] Object to be compared
122
+ def ==(o)
123
+ return true if self.equal?(o)
124
+ self.class == o.class &&
125
+ count == o.count &&
126
+ _next == o._next &&
127
+ previous == o.previous &&
128
+ results == o.results
129
+ end
130
+
131
+ # @see the `==` method
132
+ # @param [Object] Object to be compared
133
+ def eql?(o)
134
+ self == o
135
+ end
136
+
137
+ # Calculates hash code according to all attributes.
138
+ # @return [Integer] Hash code
139
+ def hash
140
+ [count, _next, previous, results].hash
141
+ end
142
+
143
+ # Builds the object from hash
144
+ # @param [Hash] attributes Model attributes in the form of hash
145
+ # @return [Object] Returns the model itself
146
+ def self.build_from_hash(attributes)
147
+ return nil unless attributes.is_a?(Hash)
148
+ attributes = attributes.transform_keys(&:to_sym)
149
+ transformed_hash = {}
150
+ openapi_types.each_pair do |key, type|
151
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
152
+ transformed_hash["#{key}"] = nil
153
+ elsif type =~ /\AArray<(.*)>/i
154
+ # check to ensure the input is an array given that the attribute
155
+ # is documented as an array but the input is not
156
+ if attributes[attribute_map[key]].is_a?(Array)
157
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
158
+ end
159
+ elsif !attributes[attribute_map[key]].nil?
160
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
161
+ end
162
+ end
163
+ new(transformed_hash)
164
+ end
165
+
166
+ # Deserializes the data based on type
167
+ # @param string type Data type
168
+ # @param string value Value to be deserialized
169
+ # @return [Object] Deserialized data
170
+ def self._deserialize(type, value)
171
+ case type.to_sym
172
+ when :Time
173
+ Time.parse(value)
174
+ when :Date
175
+ Date.parse(value)
176
+ when :String
177
+ value.to_s
178
+ when :Integer
179
+ value.to_i
180
+ when :Float
181
+ value.to_f
182
+ when :Boolean
183
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
184
+ true
185
+ else
186
+ false
187
+ end
188
+ when :Object
189
+ # generic object (usually a Hash), return directly
190
+ value
191
+ when /\AArray<(?<inner_type>.+)>\z/
192
+ inner_type = Regexp.last_match[:inner_type]
193
+ value.map { |v| _deserialize(inner_type, v) }
194
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
195
+ k_type = Regexp.last_match[:k_type]
196
+ v_type = Regexp.last_match[:v_type]
197
+ {}.tap do |hash|
198
+ value.each do |k, v|
199
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
200
+ end
201
+ end
202
+ else # model
203
+ # models (e.g. Pet) or oneOf
204
+ klass = PulpDebClient.const_get(type)
205
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
206
+ end
207
+ end
208
+
209
+ # Returns the string representation of the object
210
+ # @return [String] String presentation of the object
211
+ def to_s
212
+ to_hash.to_s
213
+ end
214
+
215
+ # to_body is an alias to to_hash (backward compatibility)
216
+ # @return [Hash] Returns the object in the form of hash
217
+ def to_body
218
+ to_hash
219
+ end
220
+
221
+ # Returns the object in the form of hash
222
+ # @return [Hash] Returns the object in the form of hash
223
+ def to_hash
224
+ hash = {}
225
+ self.class.attribute_map.each_pair do |attr, param|
226
+ value = self.send(attr)
227
+ if value.nil?
228
+ is_nullable = self.class.openapi_nullable.include?(attr)
229
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
230
+ end
231
+
232
+ hash[param] = _to_hash(value)
233
+ end
234
+ hash
235
+ end
236
+
237
+ # Outputs non-array value in the form of hash
238
+ # For object, use to_hash. Otherwise, just return the value
239
+ # @param [Object] value Any valid value
240
+ # @return [Hash] Returns the value in the form of hash
241
+ def _to_hash(value)
242
+ if value.is_a?(Array)
243
+ value.compact.map { |v| _to_hash(v) }
244
+ elsif value.is_a?(Hash)
245
+ {}.tap do |hash|
246
+ value.each { |k, v| hash[k] = _to_hash(v) }
247
+ end
248
+ elsif value.respond_to? :to_hash
249
+ value.to_hash
250
+ else
251
+ value
252
+ end
253
+ end
254
+
255
+ end
256
+
257
+ end
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpDebClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56