pulp_python_client 3.0.0b10 → 3.0.0b11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +46 -33
  3. data/docs/ContentPackagesApi.md +52 -52
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsPypiApi.md +108 -60
  7. data/docs/InlineResponse200.md +3 -3
  8. data/docs/InlineResponse2001.md +3 -3
  9. data/docs/InlineResponse2002.md +3 -3
  10. data/docs/InlineResponse2003.md +3 -3
  11. data/docs/InlineResponse2004.md +3 -3
  12. data/docs/InlineResponse2005.md +3 -3
  13. data/docs/PatchedpythonPythonDistribution.md +23 -0
  14. data/docs/PatchedpythonPythonRemote.md +43 -0
  15. data/docs/PatchedpythonPythonRepository.md +21 -0
  16. data/docs/PolicyEnum.md +16 -0
  17. data/docs/PublicationsPypiApi.md +40 -40
  18. data/docs/PythonBanderRemote.md +19 -0
  19. data/docs/PythonPythonDistribution.md +1 -7
  20. data/docs/PythonPythonDistributionResponse.md +29 -0
  21. data/docs/PythonPythonPackageContent.md +7 -15
  22. data/docs/PythonPythonPackageContentResponse.md +69 -0
  23. data/docs/PythonPythonPublication.md +2 -8
  24. data/docs/PythonPythonPublicationResponse.md +25 -0
  25. data/docs/PythonPythonRemote.md +4 -10
  26. data/docs/PythonPythonRemoteResponse.md +49 -0
  27. data/docs/PythonPythonRepository.md +4 -10
  28. data/docs/PythonPythonRepositoryResponse.md +29 -0
  29. data/docs/RemotesPythonApi.md +129 -69
  30. data/docs/RepositoriesPythonApi.md +97 -73
  31. data/docs/RepositoriesPythonVersionsApi.md +94 -62
  32. data/docs/RepositoryAddRemoveContent.md +2 -2
  33. data/docs/RepositorySyncURL.md +1 -1
  34. data/docs/RepositoryVersion.md +1 -9
  35. data/docs/RepositoryVersionResponse.md +25 -0
  36. data/lib/pulp_python_client.rb +14 -2
  37. data/lib/pulp_python_client/api/content_packages_api.rb +70 -70
  38. data/lib/pulp_python_client/api/distributions_pypi_api.rb +153 -90
  39. data/lib/pulp_python_client/api/publications_pypi_api.rb +59 -59
  40. data/lib/pulp_python_client/api/remotes_python_api.rb +185 -108
  41. data/lib/pulp_python_client/api/repositories_python_api.rb +145 -118
  42. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +137 -92
  43. data/lib/pulp_python_client/api_client.rb +2 -2
  44. data/lib/pulp_python_client/api_error.rb +2 -2
  45. data/lib/pulp_python_client/configuration.rb +3 -3
  46. data/lib/pulp_python_client/models/async_operation_response.rb +3 -2
  47. data/lib/pulp_python_client/models/content_summary.rb +9 -15
  48. data/lib/pulp_python_client/models/content_summary_response.rb +240 -0
  49. data/lib/pulp_python_client/models/inline_response200.rb +3 -13
  50. data/lib/pulp_python_client/models/inline_response2001.rb +3 -13
  51. data/lib/pulp_python_client/models/inline_response2002.rb +3 -13
  52. data/lib/pulp_python_client/models/inline_response2003.rb +3 -13
  53. data/lib/pulp_python_client/models/inline_response2004.rb +3 -13
  54. data/lib/pulp_python_client/models/inline_response2005.rb +3 -13
  55. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +240 -0
  56. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +359 -0
  57. data/lib/pulp_python_client/models/patchedpython_python_repository.rb +229 -0
  58. data/lib/pulp_python_client/models/policy_enum.rb +37 -0
  59. data/lib/pulp_python_client/models/python_bander_remote.rb +228 -0
  60. data/lib/pulp_python_client/models/python_python_distribution.rb +4 -85
  61. data/lib/pulp_python_client/models/python_python_distribution_response.rb +279 -0
  62. data/lib/pulp_python_client/models/python_python_package_content.rb +28 -136
  63. data/lib/pulp_python_client/models/python_python_package_content_response.rb +467 -0
  64. data/lib/pulp_python_client/models/python_python_publication.rb +7 -37
  65. data/lib/pulp_python_client/models/python_python_publication_response.rb +248 -0
  66. data/lib/pulp_python_client/models/python_python_remote.rb +7 -199
  67. data/lib/pulp_python_client/models/python_python_remote_response.rb +398 -0
  68. data/lib/pulp_python_client/models/python_python_repository.rb +18 -78
  69. data/lib/pulp_python_client/models/python_python_repository_response.rb +271 -0
  70. data/lib/pulp_python_client/models/repository_add_remove_content.rb +5 -4
  71. data/lib/pulp_python_client/models/repository_sync_url.rb +3 -8
  72. data/lib/pulp_python_client/models/repository_version.rb +7 -43
  73. data/lib/pulp_python_client/models/repository_version_response.rb +246 -0
  74. data/lib/pulp_python_client/version.rb +3 -3
  75. data/pulp_python_client.gemspec +4 -4
  76. data/spec/api/content_packages_api_spec.rb +24 -24
  77. data/spec/api/distributions_pypi_api_spec.rb +39 -18
  78. data/spec/api/publications_pypi_api_spec.rb +14 -14
  79. data/spec/api/remotes_python_api_spec.rb +49 -22
  80. data/spec/api/repositories_python_api_spec.rb +28 -19
  81. data/spec/api/repositories_python_versions_api_spec.rb +38 -23
  82. data/spec/api_client_spec.rb +2 -2
  83. data/spec/configuration_spec.rb +2 -2
  84. data/spec/models/async_operation_response_spec.rb +2 -2
  85. data/spec/models/content_summary_response_spec.rb +53 -0
  86. data/spec/models/content_summary_spec.rb +2 -2
  87. data/spec/models/inline_response2001_spec.rb +2 -2
  88. data/spec/models/inline_response2002_spec.rb +2 -2
  89. data/spec/models/inline_response2003_spec.rb +2 -2
  90. data/spec/models/inline_response2004_spec.rb +2 -2
  91. data/spec/models/inline_response2005_spec.rb +2 -2
  92. data/spec/models/inline_response200_spec.rb +2 -2
  93. data/spec/models/patchedpython_python_distribution_spec.rb +59 -0
  94. data/spec/models/patchedpython_python_remote_spec.rb +119 -0
  95. data/spec/models/patchedpython_python_repository_spec.rb +53 -0
  96. data/spec/models/policy_enum_spec.rb +35 -0
  97. data/spec/models/python_bander_remote_spec.rb +47 -0
  98. data/spec/models/python_python_distribution_response_spec.rb +77 -0
  99. data/spec/models/python_python_distribution_spec.rb +2 -20
  100. data/spec/models/python_python_package_content_response_spec.rb +197 -0
  101. data/spec/models/python_python_package_content_spec.rb +5 -29
  102. data/spec/models/python_python_publication_response_spec.rb +65 -0
  103. data/spec/models/python_python_publication_spec.rb +2 -20
  104. data/spec/models/python_python_remote_response_spec.rb +137 -0
  105. data/spec/models/python_python_remote_spec.rb +2 -24
  106. data/spec/models/python_python_repository_response_spec.rb +77 -0
  107. data/spec/models/python_python_repository_spec.rb +5 -23
  108. data/spec/models/repository_add_remove_content_spec.rb +2 -2
  109. data/spec/models/repository_sync_url_spec.rb +2 -2
  110. data/spec/models/repository_version_response_spec.rb +65 -0
  111. data/spec/models/repository_version_spec.rb +2 -26
  112. data/spec/spec_helper.rb +2 -2
  113. metadata +52 -4
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -21,26 +21,26 @@ module PulpPythonClient
21
21
  end
22
22
  # Create a python publication
23
23
  # Trigger an asynchronous task to publish python content.
24
- # @param data [PythonPythonPublication]
24
+ # @param python_python_publication [PythonPythonPublication]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [AsyncOperationResponse]
27
- def create(data, opts = {})
28
- data, _status_code, _headers = create_with_http_info(data, opts)
27
+ def create(python_python_publication, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(python_python_publication, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Create a python publication
33
33
  # Trigger an asynchronous task to publish python content.
34
- # @param data [PythonPythonPublication]
34
+ # @param python_python_publication [PythonPythonPublication]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
- def create_with_http_info(data, opts = {})
37
+ def create_with_http_info(python_python_publication, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: PublicationsPypiApi.create ...'
40
40
  end
41
- # verify the required parameter 'data' is set
42
- if @api_client.config.client_side_validation && data.nil?
43
- fail ArgumentError, "Missing the required parameter 'data' when calling PublicationsPypiApi.create"
41
+ # verify the required parameter 'python_python_publication' is set
42
+ if @api_client.config.client_side_validation && python_python_publication.nil?
43
+ fail ArgumentError, "Missing the required parameter 'python_python_publication' when calling PublicationsPypiApi.create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/pulp/api/v3/publications/python/pypi/'
@@ -53,19 +53,19 @@ module PulpPythonClient
53
53
  # HTTP header 'Accept' (if needed)
54
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
57
 
58
58
  # form parameters
59
59
  form_params = opts[:form_params] || {}
60
60
 
61
61
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(data)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(python_python_publication)
63
63
 
64
64
  # return_type
65
65
  return_type = opts[:return_type] || 'AsyncOperationResponse'
66
66
 
67
67
  # auth_names
68
- auth_names = opts[:auth_names] || ['Basic']
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
69
 
70
70
  new_options = opts.merge(
71
71
  :header_params => header_params,
@@ -85,29 +85,29 @@ module PulpPythonClient
85
85
 
86
86
  # Delete a python publication
87
87
  # Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
88
- # @param python_publication_href [String] URI of Python Publication. e.g.: /pulp/api/v3/publications/python/pypi/1/
88
+ # @param python_python_publication_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [nil]
91
- def delete(python_publication_href, opts = {})
92
- delete_with_http_info(python_publication_href, opts)
91
+ def delete(python_python_publication_href, opts = {})
92
+ delete_with_http_info(python_python_publication_href, opts)
93
93
  nil
94
94
  end
95
95
 
96
96
  # Delete a python publication
97
97
  # Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
98
- # @param python_publication_href [String] URI of Python Publication. e.g.: /pulp/api/v3/publications/python/pypi/1/
98
+ # @param python_python_publication_href [String]
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
101
- def delete_with_http_info(python_publication_href, opts = {})
101
+ def delete_with_http_info(python_python_publication_href, opts = {})
102
102
  if @api_client.config.debugging
103
103
  @api_client.config.logger.debug 'Calling API: PublicationsPypiApi.delete ...'
104
104
  end
105
- # verify the required parameter 'python_publication_href' is set
106
- if @api_client.config.client_side_validation && python_publication_href.nil?
107
- fail ArgumentError, "Missing the required parameter 'python_publication_href' when calling PublicationsPypiApi.delete"
105
+ # verify the required parameter 'python_python_publication_href' is set
106
+ if @api_client.config.client_side_validation && python_python_publication_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'python_python_publication_href' when calling PublicationsPypiApi.delete"
108
108
  end
109
109
  # resource path
110
- local_var_path = '{python_publication_href}'.sub('{' + 'python_publication_href' + '}', CGI.escape(python_publication_href.to_s).gsub('%2F', '/'))
110
+ local_var_path = '{python_python_publication_href}'.sub('{' + 'python_python_publication_href' + '}', CGI.escape(python_python_publication_href.to_s).gsub('%2F', '/'))
111
111
 
112
112
  # query parameters
113
113
  query_params = opts[:query_params] || {}
@@ -125,7 +125,7 @@ module PulpPythonClient
125
125
  return_type = opts[:return_type]
126
126
 
127
127
  # auth_names
128
- auth_names = opts[:auth_names] || ['Basic']
128
+ auth_names = opts[:auth_names] || ['basicAuth']
129
129
 
130
130
  new_options = opts.merge(
131
131
  :header_params => header_params,
@@ -146,16 +146,16 @@ module PulpPythonClient
146
146
  # List python publications
147
147
  # Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
148
148
  # @param [Hash] opts the optional parameters
149
- # @option opts [String] :ordering Which field to use when ordering the results.
150
- # @option opts [String] :repository_version Repository Version referenced by HREF
151
- # @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
152
- # @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
153
- # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
154
- # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
155
- # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
156
- # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
157
149
  # @option opts [Integer] :limit Number of results to return per page.
158
150
  # @option opts [Integer] :offset The initial index from which to return the results.
151
+ # @option opts [String] :ordering Which field to use when ordering the results.
152
+ # @option opts [String] :pulp_created pulp_created
153
+ # @option opts [String] :pulp_created__gt pulp_created__gt
154
+ # @option opts [String] :pulp_created__gte pulp_created__gte
155
+ # @option opts [String] :pulp_created__lt pulp_created__lt
156
+ # @option opts [String] :pulp_created__lte pulp_created__lte
157
+ # @option opts [String] :pulp_created__range pulp_created__range
158
+ # @option opts [String] :repository_version repository_version
159
159
  # @option opts [String] :fields A list of fields to include in the response.
160
160
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
161
161
  # @return [InlineResponse2002]
@@ -167,16 +167,16 @@ module PulpPythonClient
167
167
  # List python publications
168
168
  # Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
169
169
  # @param [Hash] opts the optional parameters
170
- # @option opts [String] :ordering Which field to use when ordering the results.
171
- # @option opts [String] :repository_version Repository Version referenced by HREF
172
- # @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
173
- # @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
174
- # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
175
- # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
176
- # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
177
- # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
178
170
  # @option opts [Integer] :limit Number of results to return per page.
179
171
  # @option opts [Integer] :offset The initial index from which to return the results.
172
+ # @option opts [String] :ordering Which field to use when ordering the results.
173
+ # @option opts [String] :pulp_created pulp_created
174
+ # @option opts [String] :pulp_created__gt pulp_created__gt
175
+ # @option opts [String] :pulp_created__gte pulp_created__gte
176
+ # @option opts [String] :pulp_created__lt pulp_created__lt
177
+ # @option opts [String] :pulp_created__lte pulp_created__lte
178
+ # @option opts [String] :pulp_created__range pulp_created__range
179
+ # @option opts [String] :repository_version repository_version
180
180
  # @option opts [String] :fields A list of fields to include in the response.
181
181
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
182
  # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
@@ -189,16 +189,16 @@ module PulpPythonClient
189
189
 
190
190
  # query parameters
191
191
  query_params = opts[:query_params] || {}
192
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
193
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
192
194
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
193
- query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
194
- query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
195
- query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
195
+ query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
196
196
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
197
197
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
198
+ query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
199
+ query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
198
200
  query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
199
- query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
200
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
201
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
201
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
202
202
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
203
203
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
204
204
 
@@ -217,7 +217,7 @@ module PulpPythonClient
217
217
  return_type = opts[:return_type] || 'InlineResponse2002'
218
218
 
219
219
  # auth_names
220
- auth_names = opts[:auth_names] || ['Basic']
220
+ auth_names = opts[:auth_names] || ['basicAuth']
221
221
 
222
222
  new_options = opts.merge(
223
223
  :header_params => header_params,
@@ -237,33 +237,33 @@ module PulpPythonClient
237
237
 
238
238
  # Inspect a python publication
239
239
  # Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
240
- # @param python_publication_href [String] URI of Python Publication. e.g.: /pulp/api/v3/publications/python/pypi/1/
240
+ # @param python_python_publication_href [String]
241
241
  # @param [Hash] opts the optional parameters
242
242
  # @option opts [String] :fields A list of fields to include in the response.
243
243
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
244
- # @return [PythonPythonPublication]
245
- def read(python_publication_href, opts = {})
246
- data, _status_code, _headers = read_with_http_info(python_publication_href, opts)
244
+ # @return [PythonPythonPublicationResponse]
245
+ def read(python_python_publication_href, opts = {})
246
+ data, _status_code, _headers = read_with_http_info(python_python_publication_href, opts)
247
247
  data
248
248
  end
249
249
 
250
250
  # Inspect a python publication
251
251
  # Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
252
- # @param python_publication_href [String] URI of Python Publication. e.g.: /pulp/api/v3/publications/python/pypi/1/
252
+ # @param python_python_publication_href [String]
253
253
  # @param [Hash] opts the optional parameters
254
254
  # @option opts [String] :fields A list of fields to include in the response.
255
255
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
256
- # @return [Array<(PythonPythonPublication, Integer, Hash)>] PythonPythonPublication data, response status code and response headers
257
- def read_with_http_info(python_publication_href, opts = {})
256
+ # @return [Array<(PythonPythonPublicationResponse, Integer, Hash)>] PythonPythonPublicationResponse data, response status code and response headers
257
+ def read_with_http_info(python_python_publication_href, opts = {})
258
258
  if @api_client.config.debugging
259
259
  @api_client.config.logger.debug 'Calling API: PublicationsPypiApi.read ...'
260
260
  end
261
- # verify the required parameter 'python_publication_href' is set
262
- if @api_client.config.client_side_validation && python_publication_href.nil?
263
- fail ArgumentError, "Missing the required parameter 'python_publication_href' when calling PublicationsPypiApi.read"
261
+ # verify the required parameter 'python_python_publication_href' is set
262
+ if @api_client.config.client_side_validation && python_python_publication_href.nil?
263
+ fail ArgumentError, "Missing the required parameter 'python_python_publication_href' when calling PublicationsPypiApi.read"
264
264
  end
265
265
  # resource path
266
- local_var_path = '{python_publication_href}'.sub('{' + 'python_publication_href' + '}', CGI.escape(python_publication_href.to_s).gsub('%2F', '/'))
266
+ local_var_path = '{python_python_publication_href}'.sub('{' + 'python_python_publication_href' + '}', CGI.escape(python_python_publication_href.to_s).gsub('%2F', '/'))
267
267
 
268
268
  # query parameters
269
269
  query_params = opts[:query_params] || {}
@@ -282,10 +282,10 @@ module PulpPythonClient
282
282
  post_body = opts[:body]
283
283
 
284
284
  # return_type
285
- return_type = opts[:return_type] || 'PythonPythonPublication'
285
+ return_type = opts[:return_type] || 'PythonPythonPublicationResponse'
286
286
 
287
287
  # auth_names
288
- auth_names = opts[:auth_names] || ['Basic']
288
+ auth_names = opts[:auth_names] || ['basicAuth']
289
289
 
290
290
  new_options = opts.merge(
291
291
  :header_params => header_params,
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -21,26 +21,26 @@ module PulpPythonClient
21
21
  end
22
22
  # Create a python remote
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
- # @param data [PythonPythonRemote]
24
+ # @param python_python_remote [PythonPythonRemote]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [PythonPythonRemote]
27
- def create(data, opts = {})
28
- data, _status_code, _headers = create_with_http_info(data, opts)
26
+ # @return [PythonPythonRemoteResponse]
27
+ def create(python_python_remote, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(python_python_remote, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Create a python remote
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 &#x60;sync&#x60; from upstream repositories, and contains sync settings.
34
- # @param data [PythonPythonRemote]
34
+ # @param python_python_remote [PythonPythonRemote]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(PythonPythonRemote, Integer, Hash)>] PythonPythonRemote data, response status code and response headers
37
- def create_with_http_info(data, opts = {})
36
+ # @return [Array<(PythonPythonRemoteResponse, Integer, Hash)>] PythonPythonRemoteResponse data, response status code and response headers
37
+ def create_with_http_info(python_python_remote, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: RemotesPythonApi.create ...'
40
40
  end
41
- # verify the required parameter 'data' is set
42
- if @api_client.config.client_side_validation && data.nil?
43
- fail ArgumentError, "Missing the required parameter 'data' when calling RemotesPythonApi.create"
41
+ # verify the required parameter 'python_python_remote' is set
42
+ if @api_client.config.client_side_validation && python_python_remote.nil?
43
+ fail ArgumentError, "Missing the required parameter 'python_python_remote' when calling RemotesPythonApi.create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/pulp/api/v3/remotes/python/python/'
@@ -53,19 +53,19 @@ module PulpPythonClient
53
53
  # HTTP header 'Accept' (if needed)
54
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
57
 
58
58
  # form parameters
59
59
  form_params = opts[:form_params] || {}
60
60
 
61
61
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(data)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(python_python_remote)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'PythonPythonRemote'
65
+ return_type = opts[:return_type] || 'PythonPythonRemoteResponse'
66
66
 
67
67
  # auth_names
68
- auth_names = opts[:auth_names] || ['Basic']
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
69
 
70
70
  new_options = opts.merge(
71
71
  :header_params => header_params,
@@ -85,32 +85,59 @@ module PulpPythonClient
85
85
 
86
86
  # Delete a python remote
87
87
  # Trigger an asynchronous delete task
88
- # @param python_remote_href [String] URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
88
+ # @param python_python_remote_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
+ # @option opts [String] :name name
91
+ # @option opts [String] :name__in name__in
92
+ # @option opts [String] :ordering Which field to use when ordering the results.
93
+ # @option opts [String] :pulp_last_updated pulp_last_updated
94
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
95
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
96
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
97
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
98
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
90
99
  # @return [AsyncOperationResponse]
91
- def delete(python_remote_href, opts = {})
92
- data, _status_code, _headers = delete_with_http_info(python_remote_href, opts)
100
+ def delete(python_python_remote_href, opts = {})
101
+ data, _status_code, _headers = delete_with_http_info(python_python_remote_href, opts)
93
102
  data
94
103
  end
95
104
 
96
105
  # Delete a python remote
97
106
  # Trigger an asynchronous delete task
98
- # @param python_remote_href [String] URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
107
+ # @param python_python_remote_href [String]
99
108
  # @param [Hash] opts the optional parameters
109
+ # @option opts [String] :name name
110
+ # @option opts [String] :name__in name__in
111
+ # @option opts [String] :ordering Which field to use when ordering the results.
112
+ # @option opts [String] :pulp_last_updated pulp_last_updated
113
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
114
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
115
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
116
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
117
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
100
118
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
- def delete_with_http_info(python_remote_href, opts = {})
119
+ def delete_with_http_info(python_python_remote_href, opts = {})
102
120
  if @api_client.config.debugging
103
121
  @api_client.config.logger.debug 'Calling API: RemotesPythonApi.delete ...'
104
122
  end
105
- # verify the required parameter 'python_remote_href' is set
106
- if @api_client.config.client_side_validation && python_remote_href.nil?
107
- fail ArgumentError, "Missing the required parameter 'python_remote_href' when calling RemotesPythonApi.delete"
123
+ # verify the required parameter 'python_python_remote_href' is set
124
+ if @api_client.config.client_side_validation && python_python_remote_href.nil?
125
+ fail ArgumentError, "Missing the required parameter 'python_python_remote_href' when calling RemotesPythonApi.delete"
108
126
  end
109
127
  # resource path
110
- local_var_path = '{python_remote_href}'.sub('{' + 'python_remote_href' + '}', CGI.escape(python_remote_href.to_s).gsub('%2F', '/'))
128
+ local_var_path = '{python_python_remote_href}'.sub('{' + 'python_python_remote_href' + '}', CGI.escape(python_python_remote_href.to_s).gsub('%2F', '/'))
111
129
 
112
130
  # query parameters
113
131
  query_params = opts[:query_params] || {}
132
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
133
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
134
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
135
+ query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
136
+ query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
137
+ query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
138
+ query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
139
+ query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
140
+ query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
114
141
 
115
142
  # header parameters
116
143
  header_params = opts[:header_params] || {}
@@ -127,7 +154,7 @@ module PulpPythonClient
127
154
  return_type = opts[:return_type] || 'AsyncOperationResponse'
128
155
 
129
156
  # auth_names
130
- auth_names = opts[:auth_names] || ['Basic']
157
+ auth_names = opts[:auth_names] || ['basicAuth']
131
158
 
132
159
  new_options = opts.merge(
133
160
  :header_params => header_params,
@@ -150,7 +177,7 @@ module PulpPythonClient
150
177
  # @param config [File] A Bandersnatch config that may be used to construct a Python Remote.
151
178
  # @param name [String] A unique name for this remote
152
179
  # @param [Hash] opts the optional parameters
153
- # @return [PythonPythonRemote]
180
+ # @return [PythonPythonRemoteResponse]
154
181
  def from_bandersnatch(config, name, opts = {})
155
182
  data, _status_code, _headers = from_bandersnatch_with_http_info(config, name, opts)
156
183
  data
@@ -161,7 +188,7 @@ module PulpPythonClient
161
188
  # @param config [File] A Bandersnatch config that may be used to construct a Python Remote.
162
189
  # @param name [String] A unique name for this remote
163
190
  # @param [Hash] opts the optional parameters
164
- # @return [Array<(PythonPythonRemote, Integer, Hash)>] PythonPythonRemote data, response status code and response headers
191
+ # @return [Array<(PythonPythonRemoteResponse, Integer, Hash)>] PythonPythonRemoteResponse data, response status code and response headers
165
192
  def from_bandersnatch_with_http_info(config, name, opts = {})
166
193
  if @api_client.config.debugging
167
194
  @api_client.config.logger.debug 'Calling API: RemotesPythonApi.from_bandersnatch ...'
@@ -174,10 +201,6 @@ module PulpPythonClient
174
201
  if @api_client.config.client_side_validation && name.nil?
175
202
  fail ArgumentError, "Missing the required parameter 'name' when calling RemotesPythonApi.from_bandersnatch"
176
203
  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
204
  # resource path
182
205
  local_var_path = '/pulp/api/v3/remotes/python/python/from_bandersnatch/'
183
206
 
@@ -200,10 +223,10 @@ module PulpPythonClient
200
223
  post_body = opts[:body]
201
224
 
202
225
  # return_type
203
- return_type = opts[:return_type] || 'PythonPythonRemote'
226
+ return_type = opts[:return_type] || 'PythonPythonRemoteResponse'
204
227
 
205
228
  # auth_names
206
- auth_names = opts[:auth_names] || ['Basic']
229
+ auth_names = opts[:auth_names] || ['basicAuth']
207
230
 
208
231
  new_options = opts.merge(
209
232
  :header_params => header_params,
@@ -224,17 +247,17 @@ module PulpPythonClient
224
247
  # List python remotes
225
248
  # 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.
226
249
  # @param [Hash] opts the optional parameters
227
- # @option opts [String] :ordering Which field to use when ordering the results.
228
- # @option opts [String] :name
229
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
230
- # @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
231
- # @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
232
- # @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
233
- # @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
234
- # @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
235
- # @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
236
250
  # @option opts [Integer] :limit Number of results to return per page.
251
+ # @option opts [String] :name name
252
+ # @option opts [String] :name__in name__in
237
253
  # @option opts [Integer] :offset The initial index from which to return the results.
254
+ # @option opts [String] :ordering Which field to use when ordering the results.
255
+ # @option opts [String] :pulp_last_updated pulp_last_updated
256
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
257
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
258
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
259
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
260
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
238
261
  # @option opts [String] :fields A list of fields to include in the response.
239
262
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
240
263
  # @return [InlineResponse2003]
@@ -246,17 +269,17 @@ module PulpPythonClient
246
269
  # List python remotes
247
270
  # 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.
248
271
  # @param [Hash] opts the optional parameters
249
- # @option opts [String] :ordering Which field to use when ordering the results.
250
- # @option opts [String] :name
251
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
252
- # @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
253
- # @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
254
- # @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
255
- # @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
256
- # @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
257
- # @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
258
272
  # @option opts [Integer] :limit Number of results to return per page.
273
+ # @option opts [String] :name name
274
+ # @option opts [String] :name__in name__in
259
275
  # @option opts [Integer] :offset The initial index from which to return the results.
276
+ # @option opts [String] :ordering Which field to use when ordering the results.
277
+ # @option opts [String] :pulp_last_updated pulp_last_updated
278
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
279
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
280
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
281
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
282
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
260
283
  # @option opts [String] :fields A list of fields to include in the response.
261
284
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
262
285
  # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
@@ -269,17 +292,17 @@ module PulpPythonClient
269
292
 
270
293
  # query parameters
271
294
  query_params = opts[:query_params] || {}
272
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
295
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
273
296
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
274
297
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
275
- query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
276
- query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
298
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
299
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
300
+ query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
277
301
  query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
278
302
  query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
303
+ query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
304
+ query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
279
305
  query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
280
- query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
281
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
282
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
283
306
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
284
307
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
285
308
 
@@ -298,7 +321,7 @@ module PulpPythonClient
298
321
  return_type = opts[:return_type] || 'InlineResponse2003'
299
322
 
300
323
  # auth_names
301
- auth_names = opts[:auth_names] || ['Basic']
324
+ auth_names = opts[:auth_names] || ['basicAuth']
302
325
 
303
326
  new_options = opts.merge(
304
327
  :header_params => header_params,
@@ -316,59 +339,86 @@ module PulpPythonClient
316
339
  return data, status_code, headers
317
340
  end
318
341
 
319
- # Partially update a python remote
342
+ # Update a python remote
320
343
  # Trigger an asynchronous partial update task
321
- # @param python_remote_href [String] URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
322
- # @param data [PythonPythonRemote]
344
+ # @param python_python_remote_href [String]
345
+ # @param patchedpython_python_remote [PatchedpythonPythonRemote]
323
346
  # @param [Hash] opts the optional parameters
347
+ # @option opts [String] :name name
348
+ # @option opts [String] :name__in name__in
349
+ # @option opts [String] :ordering Which field to use when ordering the results.
350
+ # @option opts [String] :pulp_last_updated pulp_last_updated
351
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
352
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
353
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
354
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
355
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
324
356
  # @return [AsyncOperationResponse]
325
- def partial_update(python_remote_href, data, opts = {})
326
- data, _status_code, _headers = partial_update_with_http_info(python_remote_href, data, opts)
357
+ def partial_update(python_python_remote_href, patchedpython_python_remote, opts = {})
358
+ data, _status_code, _headers = partial_update_with_http_info(python_python_remote_href, patchedpython_python_remote, opts)
327
359
  data
328
360
  end
329
361
 
330
- # Partially update a python remote
362
+ # Update a python remote
331
363
  # Trigger an asynchronous partial update task
332
- # @param python_remote_href [String] URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
333
- # @param data [PythonPythonRemote]
364
+ # @param python_python_remote_href [String]
365
+ # @param patchedpython_python_remote [PatchedpythonPythonRemote]
334
366
  # @param [Hash] opts the optional parameters
367
+ # @option opts [String] :name name
368
+ # @option opts [String] :name__in name__in
369
+ # @option opts [String] :ordering Which field to use when ordering the results.
370
+ # @option opts [String] :pulp_last_updated pulp_last_updated
371
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
372
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
373
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
374
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
375
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
335
376
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
336
- def partial_update_with_http_info(python_remote_href, data, opts = {})
377
+ def partial_update_with_http_info(python_python_remote_href, patchedpython_python_remote, opts = {})
337
378
  if @api_client.config.debugging
338
379
  @api_client.config.logger.debug 'Calling API: RemotesPythonApi.partial_update ...'
339
380
  end
340
- # verify the required parameter 'python_remote_href' is set
341
- if @api_client.config.client_side_validation && python_remote_href.nil?
342
- fail ArgumentError, "Missing the required parameter 'python_remote_href' when calling RemotesPythonApi.partial_update"
381
+ # verify the required parameter 'python_python_remote_href' is set
382
+ if @api_client.config.client_side_validation && python_python_remote_href.nil?
383
+ fail ArgumentError, "Missing the required parameter 'python_python_remote_href' when calling RemotesPythonApi.partial_update"
343
384
  end
344
- # verify the required parameter 'data' is set
345
- if @api_client.config.client_side_validation && data.nil?
346
- fail ArgumentError, "Missing the required parameter 'data' when calling RemotesPythonApi.partial_update"
385
+ # verify the required parameter 'patchedpython_python_remote' is set
386
+ if @api_client.config.client_side_validation && patchedpython_python_remote.nil?
387
+ fail ArgumentError, "Missing the required parameter 'patchedpython_python_remote' when calling RemotesPythonApi.partial_update"
347
388
  end
348
389
  # resource path
349
- local_var_path = '{python_remote_href}'.sub('{' + 'python_remote_href' + '}', CGI.escape(python_remote_href.to_s).gsub('%2F', '/'))
390
+ local_var_path = '{python_python_remote_href}'.sub('{' + 'python_python_remote_href' + '}', CGI.escape(python_python_remote_href.to_s).gsub('%2F', '/'))
350
391
 
351
392
  # query parameters
352
393
  query_params = opts[:query_params] || {}
394
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
395
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
396
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
397
+ query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
398
+ query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
399
+ query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
400
+ query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
401
+ query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
402
+ query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
353
403
 
354
404
  # header parameters
355
405
  header_params = opts[:header_params] || {}
356
406
  # HTTP header 'Accept' (if needed)
357
407
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
358
408
  # HTTP header 'Content-Type'
359
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
409
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
360
410
 
361
411
  # form parameters
362
412
  form_params = opts[:form_params] || {}
363
413
 
364
414
  # http body (model)
365
- post_body = opts[:body] || @api_client.object_to_http_body(data)
415
+ post_body = opts[:body] || @api_client.object_to_http_body(patchedpython_python_remote)
366
416
 
367
417
  # return_type
368
418
  return_type = opts[:return_type] || 'AsyncOperationResponse'
369
419
 
370
420
  # auth_names
371
- auth_names = opts[:auth_names] || ['Basic']
421
+ auth_names = opts[:auth_names] || ['basicAuth']
372
422
 
373
423
  new_options = opts.merge(
374
424
  :header_params => header_params,
@@ -388,33 +438,33 @@ module PulpPythonClient
388
438
 
389
439
  # Inspect a python remote
390
440
  # 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.
391
- # @param python_remote_href [String] URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
441
+ # @param python_python_remote_href [String]
392
442
  # @param [Hash] opts the optional parameters
393
443
  # @option opts [String] :fields A list of fields to include in the response.
394
444
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
395
- # @return [PythonPythonRemote]
396
- def read(python_remote_href, opts = {})
397
- data, _status_code, _headers = read_with_http_info(python_remote_href, opts)
445
+ # @return [PythonPythonRemoteResponse]
446
+ def read(python_python_remote_href, opts = {})
447
+ data, _status_code, _headers = read_with_http_info(python_python_remote_href, opts)
398
448
  data
399
449
  end
400
450
 
401
451
  # Inspect a python remote
402
452
  # 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.
403
- # @param python_remote_href [String] URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
453
+ # @param python_python_remote_href [String]
404
454
  # @param [Hash] opts the optional parameters
405
455
  # @option opts [String] :fields A list of fields to include in the response.
406
456
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
407
- # @return [Array<(PythonPythonRemote, Integer, Hash)>] PythonPythonRemote data, response status code and response headers
408
- def read_with_http_info(python_remote_href, opts = {})
457
+ # @return [Array<(PythonPythonRemoteResponse, Integer, Hash)>] PythonPythonRemoteResponse data, response status code and response headers
458
+ def read_with_http_info(python_python_remote_href, opts = {})
409
459
  if @api_client.config.debugging
410
460
  @api_client.config.logger.debug 'Calling API: RemotesPythonApi.read ...'
411
461
  end
412
- # verify the required parameter 'python_remote_href' is set
413
- if @api_client.config.client_side_validation && python_remote_href.nil?
414
- fail ArgumentError, "Missing the required parameter 'python_remote_href' when calling RemotesPythonApi.read"
462
+ # verify the required parameter 'python_python_remote_href' is set
463
+ if @api_client.config.client_side_validation && python_python_remote_href.nil?
464
+ fail ArgumentError, "Missing the required parameter 'python_python_remote_href' when calling RemotesPythonApi.read"
415
465
  end
416
466
  # resource path
417
- local_var_path = '{python_remote_href}'.sub('{' + 'python_remote_href' + '}', CGI.escape(python_remote_href.to_s).gsub('%2F', '/'))
467
+ local_var_path = '{python_python_remote_href}'.sub('{' + 'python_python_remote_href' + '}', CGI.escape(python_python_remote_href.to_s).gsub('%2F', '/'))
418
468
 
419
469
  # query parameters
420
470
  query_params = opts[:query_params] || {}
@@ -433,10 +483,10 @@ module PulpPythonClient
433
483
  post_body = opts[:body]
434
484
 
435
485
  # return_type
436
- return_type = opts[:return_type] || 'PythonPythonRemote'
486
+ return_type = opts[:return_type] || 'PythonPythonRemoteResponse'
437
487
 
438
488
  # auth_names
439
- auth_names = opts[:auth_names] || ['Basic']
489
+ auth_names = opts[:auth_names] || ['basicAuth']
440
490
 
441
491
  new_options = opts.merge(
442
492
  :header_params => header_params,
@@ -456,57 +506,84 @@ module PulpPythonClient
456
506
 
457
507
  # Update a python remote
458
508
  # Trigger an asynchronous update task
459
- # @param python_remote_href [String] URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
460
- # @param data [PythonPythonRemote]
509
+ # @param python_python_remote_href [String]
510
+ # @param python_python_remote [PythonPythonRemote]
461
511
  # @param [Hash] opts the optional parameters
512
+ # @option opts [String] :name name
513
+ # @option opts [String] :name__in name__in
514
+ # @option opts [String] :ordering Which field to use when ordering the results.
515
+ # @option opts [String] :pulp_last_updated pulp_last_updated
516
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
517
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
518
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
519
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
520
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
462
521
  # @return [AsyncOperationResponse]
463
- def update(python_remote_href, data, opts = {})
464
- data, _status_code, _headers = update_with_http_info(python_remote_href, data, opts)
522
+ def update(python_python_remote_href, python_python_remote, opts = {})
523
+ data, _status_code, _headers = update_with_http_info(python_python_remote_href, python_python_remote, opts)
465
524
  data
466
525
  end
467
526
 
468
527
  # Update a python remote
469
528
  # Trigger an asynchronous update task
470
- # @param python_remote_href [String] URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
471
- # @param data [PythonPythonRemote]
529
+ # @param python_python_remote_href [String]
530
+ # @param python_python_remote [PythonPythonRemote]
472
531
  # @param [Hash] opts the optional parameters
532
+ # @option opts [String] :name name
533
+ # @option opts [String] :name__in name__in
534
+ # @option opts [String] :ordering Which field to use when ordering the results.
535
+ # @option opts [String] :pulp_last_updated pulp_last_updated
536
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
537
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
538
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
539
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
540
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
473
541
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
474
- def update_with_http_info(python_remote_href, data, opts = {})
542
+ def update_with_http_info(python_python_remote_href, python_python_remote, opts = {})
475
543
  if @api_client.config.debugging
476
544
  @api_client.config.logger.debug 'Calling API: RemotesPythonApi.update ...'
477
545
  end
478
- # verify the required parameter 'python_remote_href' is set
479
- if @api_client.config.client_side_validation && python_remote_href.nil?
480
- fail ArgumentError, "Missing the required parameter 'python_remote_href' when calling RemotesPythonApi.update"
546
+ # verify the required parameter 'python_python_remote_href' is set
547
+ if @api_client.config.client_side_validation && python_python_remote_href.nil?
548
+ fail ArgumentError, "Missing the required parameter 'python_python_remote_href' when calling RemotesPythonApi.update"
481
549
  end
482
- # verify the required parameter 'data' is set
483
- if @api_client.config.client_side_validation && data.nil?
484
- fail ArgumentError, "Missing the required parameter 'data' when calling RemotesPythonApi.update"
550
+ # verify the required parameter 'python_python_remote' is set
551
+ if @api_client.config.client_side_validation && python_python_remote.nil?
552
+ fail ArgumentError, "Missing the required parameter 'python_python_remote' when calling RemotesPythonApi.update"
485
553
  end
486
554
  # resource path
487
- local_var_path = '{python_remote_href}'.sub('{' + 'python_remote_href' + '}', CGI.escape(python_remote_href.to_s).gsub('%2F', '/'))
555
+ local_var_path = '{python_python_remote_href}'.sub('{' + 'python_python_remote_href' + '}', CGI.escape(python_python_remote_href.to_s).gsub('%2F', '/'))
488
556
 
489
557
  # query parameters
490
558
  query_params = opts[:query_params] || {}
559
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
560
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
561
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
562
+ query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
563
+ query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
564
+ query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
565
+ query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
566
+ query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
567
+ query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
491
568
 
492
569
  # header parameters
493
570
  header_params = opts[:header_params] || {}
494
571
  # HTTP header 'Accept' (if needed)
495
572
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
496
573
  # HTTP header 'Content-Type'
497
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
574
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
498
575
 
499
576
  # form parameters
500
577
  form_params = opts[:form_params] || {}
501
578
 
502
579
  # http body (model)
503
- post_body = opts[:body] || @api_client.object_to_http_body(data)
580
+ post_body = opts[:body] || @api_client.object_to_http_body(python_python_remote)
504
581
 
505
582
  # return_type
506
583
  return_type = opts[:return_type] || 'AsyncOperationResponse'
507
584
 
508
585
  # auth_names
509
- auth_names = opts[:auth_names] || ['Basic']
586
+ auth_names = opts[:auth_names] || ['basicAuth']
510
587
 
511
588
  new_options = opts.merge(
512
589
  :header_params => header_params,