pulp_python_client 3.0.0b9 → 3.0.0b10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -13
  3. data/docs/ContentPackagesApi.md +4 -6
  4. data/docs/DistributionsPypiApi.md +2 -2
  5. data/docs/InlineResponse200.md +1 -1
  6. data/docs/InlineResponse2001.md +1 -1
  7. data/docs/InlineResponse2002.md +1 -1
  8. data/docs/InlineResponse2003.md +1 -1
  9. data/docs/InlineResponse2004.md +1 -1
  10. data/docs/InlineResponse2005.md +1 -1
  11. data/docs/PublicationsPypiApi.md +2 -2
  12. data/docs/{PythonPythonPackageContentRead.md → PythonPythonPackageContent.md} +3 -3
  13. data/docs/PythonPythonRemote.md +2 -2
  14. data/docs/RemotesPythonApi.md +60 -4
  15. data/docs/RepositoriesPythonApi.md +4 -4
  16. data/docs/RepositoriesPythonVersionsApi.md +6 -4
  17. data/lib/pulp_python_client/api/content_packages_api.rb +6 -17
  18. data/lib/pulp_python_client/api/distributions_pypi_api.rb +3 -3
  19. data/lib/pulp_python_client/api/publications_pypi_api.rb +3 -3
  20. data/lib/pulp_python_client/api/remotes_python_api.rb +82 -6
  21. data/lib/pulp_python_client/api/repositories_python_api.rb +6 -6
  22. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +9 -6
  23. data/lib/pulp_python_client/models/inline_response200.rb +1 -1
  24. data/lib/pulp_python_client/models/inline_response2001.rb +1 -1
  25. data/lib/pulp_python_client/models/inline_response2002.rb +1 -1
  26. data/lib/pulp_python_client/models/inline_response2003.rb +1 -1
  27. data/lib/pulp_python_client/models/inline_response2004.rb +1 -1
  28. data/lib/pulp_python_client/models/inline_response2005.rb +1 -1
  29. data/lib/pulp_python_client/models/{python_python_package_content_read.rb → python_python_package_content.rb} +6 -15
  30. data/lib/pulp_python_client/models/python_python_remote.rb +6 -10
  31. data/lib/pulp_python_client/version.rb +1 -1
  32. data/lib/pulp_python_client.rb +1 -7
  33. data/spec/api/content_packages_api_spec.rb +1 -2
  34. data/spec/api/distributions_pypi_api_spec.rb +1 -1
  35. data/spec/api/publications_pypi_api_spec.rb +1 -1
  36. data/spec/api/remotes_python_api_spec.rb +15 -2
  37. data/spec/api/repositories_python_api_spec.rb +2 -2
  38. data/spec/api/repositories_python_versions_api_spec.rb +3 -2
  39. data/spec/models/{python_python_package_content_read_spec.rb → python_python_package_content_spec.rb} +6 -6
  40. metadata +20 -44
  41. data/docs/ProjectSpecifier.md +0 -19
  42. data/docs/PythonPythonDistributionRead.md +0 -29
  43. data/docs/PythonPythonPublicationRead.md +0 -25
  44. data/docs/PythonPythonRemoteRead.md +0 -49
  45. data/docs/PythonPythonRepositoryRead.md +0 -27
  46. data/docs/RepositoryVersionRead.md +0 -25
  47. data/lib/pulp_python_client/models/project_specifier.rb +0 -242
  48. data/lib/pulp_python_client/models/python_python_distribution_read.rb +0 -331
  49. data/lib/pulp_python_client/models/python_python_publication_read.rb +0 -247
  50. data/lib/pulp_python_client/models/python_python_remote_read.rb +0 -565
  51. data/lib/pulp_python_client/models/python_python_repository_read.rb +0 -294
  52. data/lib/pulp_python_client/models/repository_version_read.rb +0 -244
  53. data/spec/models/project_specifier_spec.rb +0 -47
  54. data/spec/models/python_python_distribution_read_spec.rb +0 -77
  55. data/spec/models/python_python_publication_read_spec.rb +0 -65
  56. data/spec/models/python_python_remote_read_spec.rb +0 -141
  57. data/spec/models/python_python_repository_read_spec.rb +0 -71
  58. data/spec/models/repository_version_read_spec.rb +0 -65
@@ -23,7 +23,7 @@ module PulpPythonClient
23
23
  # Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
24
24
  # @param data [PythonPythonRemote]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [PythonPythonRemoteRead]
26
+ # @return [PythonPythonRemote]
27
27
  def create(data, opts = {})
28
28
  data, _status_code, _headers = create_with_http_info(data, opts)
29
29
  data
@@ -33,7 +33,7 @@ module PulpPythonClient
33
33
  # Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
34
34
  # @param data [PythonPythonRemote]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(PythonPythonRemoteRead, Integer, Hash)>] PythonPythonRemoteRead data, response status code and response headers
36
+ # @return [Array<(PythonPythonRemote, Integer, Hash)>] PythonPythonRemote data, response status code and response headers
37
37
  def create_with_http_info(data, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: RemotesPythonApi.create ...'
@@ -62,7 +62,7 @@ module PulpPythonClient
62
62
  post_body = opts[:body] || @api_client.object_to_http_body(data)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'PythonPythonRemoteRead'
65
+ return_type = opts[:return_type] || 'PythonPythonRemote'
66
66
 
67
67
  # auth_names
68
68
  auth_names = opts[:auth_names] || ['Basic']
@@ -145,6 +145,82 @@ module PulpPythonClient
145
145
  return data, status_code, headers
146
146
  end
147
147
 
148
+ # Create from Bandersnatch
149
+ # Create a remote from a Bandersnatch config
150
+ # @param config [File] A Bandersnatch config that may be used to construct a Python Remote.
151
+ # @param name [String] A unique name for this remote
152
+ # @param [Hash] opts the optional parameters
153
+ # @return [PythonPythonRemote]
154
+ def from_bandersnatch(config, name, opts = {})
155
+ data, _status_code, _headers = from_bandersnatch_with_http_info(config, name, opts)
156
+ data
157
+ end
158
+
159
+ # Create from Bandersnatch
160
+ # Create a remote from a Bandersnatch config
161
+ # @param config [File] A Bandersnatch config that may be used to construct a Python Remote.
162
+ # @param name [String] A unique name for this remote
163
+ # @param [Hash] opts the optional parameters
164
+ # @return [Array<(PythonPythonRemote, Integer, Hash)>] PythonPythonRemote data, response status code and response headers
165
+ def from_bandersnatch_with_http_info(config, name, opts = {})
166
+ if @api_client.config.debugging
167
+ @api_client.config.logger.debug 'Calling API: RemotesPythonApi.from_bandersnatch ...'
168
+ end
169
+ # verify the required parameter 'config' is set
170
+ if @api_client.config.client_side_validation && config.nil?
171
+ fail ArgumentError, "Missing the required parameter 'config' when calling RemotesPythonApi.from_bandersnatch"
172
+ end
173
+ # verify the required parameter 'name' is set
174
+ if @api_client.config.client_side_validation && name.nil?
175
+ fail ArgumentError, "Missing the required parameter 'name' when calling RemotesPythonApi.from_bandersnatch"
176
+ end
177
+ if @api_client.config.client_side_validation && name.to_s.length < 1
178
+ fail ArgumentError, 'invalid value for "name" when calling RemotesPythonApi.from_bandersnatch, the character length must be great than or equal to 1.'
179
+ end
180
+
181
+ # resource path
182
+ local_var_path = '/pulp/api/v3/remotes/python/python/from_bandersnatch/'
183
+
184
+ # query parameters
185
+ query_params = opts[:query_params] || {}
186
+
187
+ # header parameters
188
+ header_params = opts[:header_params] || {}
189
+ # HTTP header 'Accept' (if needed)
190
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
191
+ # HTTP header 'Content-Type'
192
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
193
+
194
+ # form parameters
195
+ form_params = opts[:form_params] || {}
196
+ form_params['config'] = config
197
+ form_params['name'] = name
198
+
199
+ # http body (model)
200
+ post_body = opts[:body]
201
+
202
+ # return_type
203
+ return_type = opts[:return_type] || 'PythonPythonRemote'
204
+
205
+ # auth_names
206
+ auth_names = opts[:auth_names] || ['Basic']
207
+
208
+ new_options = opts.merge(
209
+ :header_params => header_params,
210
+ :query_params => query_params,
211
+ :form_params => form_params,
212
+ :body => post_body,
213
+ :auth_names => auth_names,
214
+ :return_type => return_type
215
+ )
216
+
217
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
218
+ if @api_client.config.debugging
219
+ @api_client.config.logger.debug "API called: RemotesPythonApi#from_bandersnatch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
220
+ end
221
+ return data, status_code, headers
222
+ end
223
+
148
224
  # List python remotes
149
225
  # Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to `sync` from upstream repositories, and contains sync settings.
150
226
  # @param [Hash] opts the optional parameters
@@ -316,7 +392,7 @@ module PulpPythonClient
316
392
  # @param [Hash] opts the optional parameters
317
393
  # @option opts [String] :fields A list of fields to include in the response.
318
394
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
319
- # @return [PythonPythonRemoteRead]
395
+ # @return [PythonPythonRemote]
320
396
  def read(python_remote_href, opts = {})
321
397
  data, _status_code, _headers = read_with_http_info(python_remote_href, opts)
322
398
  data
@@ -328,7 +404,7 @@ module PulpPythonClient
328
404
  # @param [Hash] opts the optional parameters
329
405
  # @option opts [String] :fields A list of fields to include in the response.
330
406
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
331
- # @return [Array<(PythonPythonRemoteRead, Integer, Hash)>] PythonPythonRemoteRead data, response status code and response headers
407
+ # @return [Array<(PythonPythonRemote, Integer, Hash)>] PythonPythonRemote data, response status code and response headers
332
408
  def read_with_http_info(python_remote_href, opts = {})
333
409
  if @api_client.config.debugging
334
410
  @api_client.config.logger.debug 'Calling API: RemotesPythonApi.read ...'
@@ -357,7 +433,7 @@ module PulpPythonClient
357
433
  post_body = opts[:body]
358
434
 
359
435
  # return_type
360
- return_type = opts[:return_type] || 'PythonPythonRemoteRead'
436
+ return_type = opts[:return_type] || 'PythonPythonRemote'
361
437
 
362
438
  # auth_names
363
439
  auth_names = opts[:auth_names] || ['Basic']
@@ -23,7 +23,7 @@ module PulpPythonClient
23
23
  # A ViewSet for PythonRepository.
24
24
  # @param data [PythonPythonRepository]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [PythonPythonRepositoryRead]
26
+ # @return [PythonPythonRepository]
27
27
  def create(data, opts = {})
28
28
  data, _status_code, _headers = create_with_http_info(data, opts)
29
29
  data
@@ -33,7 +33,7 @@ module PulpPythonClient
33
33
  # A ViewSet for PythonRepository.
34
34
  # @param data [PythonPythonRepository]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(PythonPythonRepositoryRead, Integer, Hash)>] PythonPythonRepositoryRead data, response status code and response headers
36
+ # @return [Array<(PythonPythonRepository, Integer, Hash)>] PythonPythonRepository data, response status code and response headers
37
37
  def create_with_http_info(data, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.create ...'
@@ -62,7 +62,7 @@ module PulpPythonClient
62
62
  post_body = opts[:body] || @api_client.object_to_http_body(data)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'PythonPythonRepositoryRead'
65
+ return_type = opts[:return_type] || 'PythonPythonRepository'
66
66
 
67
67
  # auth_names
68
68
  auth_names = opts[:auth_names] || ['Basic']
@@ -368,7 +368,7 @@ module PulpPythonClient
368
368
  # @param [Hash] opts the optional parameters
369
369
  # @option opts [String] :fields A list of fields to include in the response.
370
370
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
371
- # @return [PythonPythonRepositoryRead]
371
+ # @return [PythonPythonRepository]
372
372
  def read(python_repository_href, opts = {})
373
373
  data, _status_code, _headers = read_with_http_info(python_repository_href, opts)
374
374
  data
@@ -380,7 +380,7 @@ module PulpPythonClient
380
380
  # @param [Hash] opts the optional parameters
381
381
  # @option opts [String] :fields A list of fields to include in the response.
382
382
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
383
- # @return [Array<(PythonPythonRepositoryRead, Integer, Hash)>] PythonPythonRepositoryRead data, response status code and response headers
383
+ # @return [Array<(PythonPythonRepository, Integer, Hash)>] PythonPythonRepository data, response status code and response headers
384
384
  def read_with_http_info(python_repository_href, opts = {})
385
385
  if @api_client.config.debugging
386
386
  @api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.read ...'
@@ -409,7 +409,7 @@ module PulpPythonClient
409
409
  post_body = opts[:body]
410
410
 
411
411
  # return_type
412
- return_type = opts[:return_type] || 'PythonPythonRepositoryRead'
412
+ return_type = opts[:return_type] || 'PythonPythonRepository'
413
413
 
414
414
  # auth_names
415
415
  auth_names = opts[:auth_names] || ['Basic']
@@ -97,8 +97,9 @@ module PulpPythonClient
97
97
  # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
98
98
  # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
99
99
  # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
100
- # @option opts [String] :content Content Unit referenced by HREF
101
100
  # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
101
+ # @option opts [String] :content Content Unit referenced by HREF
102
+ # @option opts [String] :content__in Content Unit referenced by HREF
102
103
  # @option opts [Integer] :limit Number of results to return per page.
103
104
  # @option opts [Integer] :offset The initial index from which to return the results.
104
105
  # @option opts [String] :fields A list of fields to include in the response.
@@ -125,8 +126,9 @@ module PulpPythonClient
125
126
  # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
126
127
  # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
127
128
  # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
128
- # @option opts [String] :content Content Unit referenced by HREF
129
129
  # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
130
+ # @option opts [String] :content Content Unit referenced by HREF
131
+ # @option opts [String] :content__in Content Unit referenced by HREF
130
132
  # @option opts [Integer] :limit Number of results to return per page.
131
133
  # @option opts [Integer] :offset The initial index from which to return the results.
132
134
  # @option opts [String] :fields A list of fields to include in the response.
@@ -157,8 +159,9 @@ module PulpPythonClient
157
159
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
158
160
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
159
161
  query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
160
- query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
161
162
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
163
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
164
+ query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
162
165
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
163
166
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
164
167
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
@@ -203,7 +206,7 @@ module PulpPythonClient
203
206
  # @param [Hash] opts the optional parameters
204
207
  # @option opts [String] :fields A list of fields to include in the response.
205
208
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
206
- # @return [RepositoryVersionRead]
209
+ # @return [RepositoryVersion]
207
210
  def read(python_repository_version_href, opts = {})
208
211
  data, _status_code, _headers = read_with_http_info(python_repository_version_href, opts)
209
212
  data
@@ -215,7 +218,7 @@ module PulpPythonClient
215
218
  # @param [Hash] opts the optional parameters
216
219
  # @option opts [String] :fields A list of fields to include in the response.
217
220
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
218
- # @return [Array<(RepositoryVersionRead, Integer, Hash)>] RepositoryVersionRead data, response status code and response headers
221
+ # @return [Array<(RepositoryVersion, Integer, Hash)>] RepositoryVersion data, response status code and response headers
219
222
  def read_with_http_info(python_repository_version_href, opts = {})
220
223
  if @api_client.config.debugging
221
224
  @api_client.config.logger.debug 'Calling API: RepositoriesPythonVersionsApi.read ...'
@@ -244,7 +247,7 @@ module PulpPythonClient
244
247
  post_body = opts[:body]
245
248
 
246
249
  # return_type
247
- return_type = opts[:return_type] || 'RepositoryVersionRead'
250
+ return_type = opts[:return_type] || 'RepositoryVersion'
248
251
 
249
252
  # auth_names
250
253
  auth_names = opts[:auth_names] || ['Basic']
@@ -38,7 +38,7 @@ module PulpPythonClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<PythonPythonPackageContentRead>'
41
+ :'results' => :'Array<PythonPythonPackageContent>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpPythonClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<PythonPythonDistributionRead>'
41
+ :'results' => :'Array<PythonPythonDistribution>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpPythonClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<PythonPythonPublicationRead>'
41
+ :'results' => :'Array<PythonPythonPublication>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpPythonClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<PythonPythonRemoteRead>'
41
+ :'results' => :'Array<PythonPythonRemote>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpPythonClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<PythonPythonRepositoryRead>'
41
+ :'results' => :'Array<PythonPythonRepository>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpPythonClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<RepositoryVersionRead>'
41
+ :'results' => :'Array<RepositoryVersion>'
42
42
  }
43
43
  end
44
44
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpPythonClient
16
- class PythonPythonPackageContentRead
16
+ class PythonPythonPackageContent
17
17
  attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
@@ -170,13 +170,13 @@ module PulpPythonClient
170
170
  # @param [Hash] attributes Model attributes in the form of hash
171
171
  def initialize(attributes = {})
172
172
  if (!attributes.is_a?(Hash))
173
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PythonPythonPackageContentRead` initialize method"
173
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PythonPythonPackageContent` initialize method"
174
174
  end
175
175
 
176
176
  # check to see if the attribute exists and convert string to symbol for hash key
177
177
  attributes = attributes.each_with_object({}) { |(k, v), h|
178
178
  if (!self.class.attribute_map.key?(k.to_sym))
179
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::PythonPythonPackageContentRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
179
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::PythonPythonPackageContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
180
180
  end
181
181
  h[k.to_sym] = v
182
182
  }
@@ -294,11 +294,7 @@ module PulpPythonClient
294
294
  # @return Array for valid properties with the reasons
295
295
  def list_invalid_properties
296
296
  invalid_properties = Array.new
297
- if @filename.nil?
298
- invalid_properties.push('invalid value for "filename", filename cannot be nil.')
299
- end
300
-
301
- if @filename.to_s.length < 1
297
+ if !@filename.nil? && @filename.to_s.length < 1
302
298
  invalid_properties.push('invalid value for "filename", the character length must be great than or equal to 1.')
303
299
  end
304
300
 
@@ -324,8 +320,7 @@ module PulpPythonClient
324
320
  # Check to see if the all the properties in the model are valid
325
321
  # @return true if the model is valid
326
322
  def valid?
327
- return false if @filename.nil?
328
- return false if @filename.to_s.length < 1
323
+ return false if !@filename.nil? && @filename.to_s.length < 1
329
324
  return false if !@packagetype.nil? && @packagetype.to_s.length < 1
330
325
  return false if !@name.nil? && @name.to_s.length < 1
331
326
  return false if !@version.nil? && @version.to_s.length < 1
@@ -336,11 +331,7 @@ module PulpPythonClient
336
331
  # Custom attribute writer method with validation
337
332
  # @param [Object] filename Value to be assigned
338
333
  def filename=(filename)
339
- if filename.nil?
340
- fail ArgumentError, 'filename cannot be nil'
341
- end
342
-
343
- if filename.to_s.length < 1
334
+ if !filename.nil? && filename.to_s.length < 1
344
335
  fail ArgumentError, 'invalid value for "filename", the character length must be great than or equal to 1.'
345
336
  end
346
337
 
@@ -55,10 +55,10 @@ module PulpPythonClient
55
55
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'cache_only'. 'immediate' is the default.
56
56
  attr_accessor :policy
57
57
 
58
- # AKA \"Whitelist\". A list of dictionaries, expand for more information. Example: [{\"name\": \"django\", \"version_specifier\":\"~=2.0\"}]
58
+ # A JSON list containing project specifiers for Python packages to include.
59
59
  attr_accessor :includes
60
60
 
61
- # \"AKA \"Blacklist\". A list of dictionaries, expand for more information. Example: [{\"name\": \"django\", \"version_specifier\":\"~=2.0\"}]
61
+ # A JSON list containing project specifiers for Python packages to exclude.
62
62
  attr_accessor :excludes
63
63
 
64
64
  # Whether or not to include pre-release packages in the sync.
@@ -126,8 +126,8 @@ module PulpPythonClient
126
126
  :'pulp_last_updated' => :'DateTime',
127
127
  :'download_concurrency' => :'Integer',
128
128
  :'policy' => :'String',
129
- :'includes' => :'Array<ProjectSpecifier>',
130
- :'excludes' => :'Array<ProjectSpecifier>',
129
+ :'includes' => :'Object',
130
+ :'excludes' => :'Object',
131
131
  :'prereleases' => :'Boolean'
132
132
  }
133
133
  end
@@ -218,15 +218,11 @@ module PulpPythonClient
218
218
  end
219
219
 
220
220
  if attributes.key?(:'includes')
221
- if (value = attributes[:'includes']).is_a?(Array)
222
- self.includes = value
223
- end
221
+ self.includes = attributes[:'includes']
224
222
  end
225
223
 
226
224
  if attributes.key?(:'excludes')
227
- if (value = attributes[:'excludes']).is_a?(Array)
228
- self.excludes = value
229
- end
225
+ self.excludes = attributes[:'excludes']
230
226
  end
231
227
 
232
228
  if attributes.key?(:'prereleases')
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpPythonClient
14
- VERSION = '3.0.0b9'
14
+ VERSION = '3.0.0b10'
15
15
  end
@@ -25,20 +25,14 @@ require 'pulp_python_client/models/inline_response2002'
25
25
  require 'pulp_python_client/models/inline_response2003'
26
26
  require 'pulp_python_client/models/inline_response2004'
27
27
  require 'pulp_python_client/models/inline_response2005'
28
- require 'pulp_python_client/models/project_specifier'
29
28
  require 'pulp_python_client/models/python_python_distribution'
30
- require 'pulp_python_client/models/python_python_distribution_read'
31
- require 'pulp_python_client/models/python_python_package_content_read'
29
+ require 'pulp_python_client/models/python_python_package_content'
32
30
  require 'pulp_python_client/models/python_python_publication'
33
- require 'pulp_python_client/models/python_python_publication_read'
34
31
  require 'pulp_python_client/models/python_python_remote'
35
- require 'pulp_python_client/models/python_python_remote_read'
36
32
  require 'pulp_python_client/models/python_python_repository'
37
- require 'pulp_python_client/models/python_python_repository_read'
38
33
  require 'pulp_python_client/models/repository_add_remove_content'
39
34
  require 'pulp_python_client/models/repository_sync_url'
40
35
  require 'pulp_python_client/models/repository_version'
41
- require 'pulp_python_client/models/repository_version_read'
42
36
 
43
37
  # APIs
44
38
  require 'pulp_python_client/api/content_packages_api'
@@ -36,7 +36,6 @@ describe 'ContentPackagesApi' do
36
36
  # Create a python package content
37
37
  # Trigger an asynchronous task to create content,optionally create new repository version.
38
38
  # @param relative_path Path where the artifact is located relative to distributions base_path
39
- # @param filename The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype}
40
39
  # @param [Hash] opts the optional parameters
41
40
  # @option opts [String] :artifact Artifact file representing the physical content
42
41
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
@@ -104,7 +103,7 @@ describe 'ContentPackagesApi' do
104
103
  # @param [Hash] opts the optional parameters
105
104
  # @option opts [String] :fields A list of fields to include in the response.
106
105
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
107
- # @return [PythonPythonPackageContentRead]
106
+ # @return [PythonPythonPackageContent]
108
107
  describe 'read test' do
109
108
  it 'should work' do
110
109
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -98,7 +98,7 @@ describe 'DistributionsPypiApi' do
98
98
  # @param [Hash] opts the optional parameters
99
99
  # @option opts [String] :fields A list of fields to include in the response.
100
100
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
101
- # @return [PythonPythonDistributionRead]
101
+ # @return [PythonPythonDistribution]
102
102
  describe 'read test' do
103
103
  it 'should work' do
104
104
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -86,7 +86,7 @@ describe 'PublicationsPypiApi' do
86
86
  # @param [Hash] opts the optional parameters
87
87
  # @option opts [String] :fields A list of fields to include in the response.
88
88
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
89
- # @return [PythonPythonPublicationRead]
89
+ # @return [PythonPythonPublication]
90
90
  describe 'read test' do
91
91
  it 'should work' do
92
92
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -37,7 +37,7 @@ describe 'RemotesPythonApi' do
37
37
  # Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to &#x60;sync&#x60; from upstream repositories, and contains sync settings.
38
38
  # @param data
39
39
  # @param [Hash] opts the optional parameters
40
- # @return [PythonPythonRemoteRead]
40
+ # @return [PythonPythonRemote]
41
41
  describe 'create test' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -56,6 +56,19 @@ describe 'RemotesPythonApi' do
56
56
  end
57
57
  end
58
58
 
59
+ # unit tests for from_bandersnatch
60
+ # Create from Bandersnatch
61
+ # Create a remote from a Bandersnatch config
62
+ # @param config A Bandersnatch config that may be used to construct a Python Remote.
63
+ # @param name A unique name for this remote
64
+ # @param [Hash] opts the optional parameters
65
+ # @return [PythonPythonRemote]
66
+ describe 'from_bandersnatch test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
69
+ end
70
+ end
71
+
59
72
  # unit tests for list
60
73
  # List python remotes
61
74
  # Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to &#x60;sync&#x60; from upstream repositories, and contains sync settings.
@@ -100,7 +113,7 @@ describe 'RemotesPythonApi' do
100
113
  # @param [Hash] opts the optional parameters
101
114
  # @option opts [String] :fields A list of fields to include in the response.
102
115
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
103
- # @return [PythonPythonRemoteRead]
116
+ # @return [PythonPythonRemote]
104
117
  describe 'read test' do
105
118
  it 'should work' do
106
119
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -37,7 +37,7 @@ describe 'RepositoriesPythonApi' do
37
37
  # A ViewSet for PythonRepository.
38
38
  # @param data
39
39
  # @param [Hash] opts the optional parameters
40
- # @return [PythonPythonRepositoryRead]
40
+ # @return [PythonPythonRepository]
41
41
  describe 'create test' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -107,7 +107,7 @@ describe 'RepositoriesPythonApi' do
107
107
  # @param [Hash] opts the optional parameters
108
108
  # @option opts [String] :fields A list of fields to include in the response.
109
109
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
110
- # @return [PythonPythonRepositoryRead]
110
+ # @return [PythonPythonRepository]
111
111
  describe 'read test' do
112
112
  it 'should work' do
113
113
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -61,8 +61,9 @@ describe 'RepositoriesPythonVersionsApi' do
61
61
  # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
62
62
  # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
63
63
  # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
64
- # @option opts [String] :content Content Unit referenced by HREF
65
64
  # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
65
+ # @option opts [String] :content Content Unit referenced by HREF
66
+ # @option opts [String] :content__in Content Unit referenced by HREF
66
67
  # @option opts [Integer] :limit Number of results to return per page.
67
68
  # @option opts [Integer] :offset The initial index from which to return the results.
68
69
  # @option opts [String] :fields A list of fields to include in the response.
@@ -81,7 +82,7 @@ describe 'RepositoriesPythonVersionsApi' do
81
82
  # @param [Hash] opts the optional parameters
82
83
  # @option opts [String] :fields A list of fields to include in the response.
83
84
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
84
- # @return [RepositoryVersionRead]
85
+ # @return [RepositoryVersion]
85
86
  describe 'read test' do
86
87
  it 'should work' do
87
88
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for PulpPythonClient::PythonPythonPackageContentRead
17
+ # Unit tests for PulpPythonClient::PythonPythonPackageContent
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'PythonPythonPackageContentRead' do
20
+ describe 'PythonPythonPackageContent' do
21
21
  before do
22
22
  # run before each test
23
- @instance = PulpPythonClient::PythonPythonPackageContentRead.new
23
+ @instance = PulpPythonClient::PythonPythonPackageContent.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 PythonPythonPackageContentRead' do
31
- it 'should create an instance of PythonPythonPackageContentRead' do
32
- expect(@instance).to be_instance_of(PulpPythonClient::PythonPythonPackageContentRead)
30
+ describe 'test an instance of PythonPythonPackageContent' do
31
+ it 'should create an instance of PythonPythonPackageContent' do
32
+ expect(@instance).to be_instance_of(PulpPythonClient::PythonPythonPackageContent)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "pulp_href"' do