pulp_python_client 3.0.0b9 → 3.0.0b11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +49 -42
  3. data/docs/ContentPackagesApi.md +54 -56
  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/{PythonPythonDistributionRead.md → PythonPythonDistributionResponse.md} +2 -2
  21. data/docs/PythonPythonPackageContent.md +61 -0
  22. data/docs/{PythonPythonPackageContentRead.md → PythonPythonPackageContentResponse.md} +3 -3
  23. data/docs/PythonPythonPublication.md +2 -8
  24. data/docs/{PythonPythonPublicationRead.md → PythonPythonPublicationResponse.md} +2 -2
  25. data/docs/PythonPythonRemote.md +6 -12
  26. data/docs/{PythonPythonRemoteRead.md → PythonPythonRemoteResponse.md} +7 -7
  27. data/docs/PythonPythonRepository.md +4 -10
  28. data/docs/{PythonPythonRepositoryRead.md → PythonPythonRepositoryResponse.md} +5 -3
  29. data/docs/RemotesPythonApi.md +181 -65
  30. data/docs/RepositoriesPythonApi.md +97 -73
  31. data/docs/RepositoriesPythonVersionsApi.md +94 -60
  32. data/docs/RepositoryAddRemoveContent.md +2 -2
  33. data/docs/RepositorySyncURL.md +1 -1
  34. data/docs/RepositoryVersion.md +1 -9
  35. data/docs/{RepositoryVersionRead.md → RepositoryVersionResponse.md} +3 -3
  36. data/lib/pulp_python_client.rb +15 -9
  37. data/lib/pulp_python_client/api/content_packages_api.rb +73 -84
  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 +253 -100
  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 -89
  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/{project_specifier.rb → python_bander_remote.rb} +26 -40
  60. data/lib/pulp_python_client/models/python_python_distribution.rb +4 -85
  61. data/lib/pulp_python_client/models/{python_python_distribution_read.rb → python_python_distribution_response.rb} +6 -58
  62. data/lib/pulp_python_client/models/python_python_package_content.rb +433 -0
  63. data/lib/pulp_python_client/models/{python_python_package_content_read.rb → python_python_package_content_response.rb} +6 -89
  64. data/lib/pulp_python_client/models/python_python_publication.rb +7 -37
  65. data/lib/pulp_python_client/models/{python_python_publication_read.rb → python_python_publication_response.rb} +6 -5
  66. data/lib/pulp_python_client/models/python_python_remote.rb +13 -209
  67. data/lib/pulp_python_client/models/{python_python_remote_read.rb → python_python_remote_response.rb} +15 -182
  68. data/lib/pulp_python_client/models/python_python_repository.rb +18 -78
  69. data/lib/pulp_python_client/models/{python_python_repository_read.rb → python_python_repository_response.rb} +21 -44
  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_read.rb → repository_version_response.rb} +8 -6
  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 -25
  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 +61 -21
  80. data/spec/api/repositories_python_api_spec.rb +28 -19
  81. data/spec/api/repositories_python_versions_api_spec.rb +38 -22
  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/{project_specifier_spec.rb → python_bander_remote_spec.rb} +10 -10
  98. data/spec/models/{python_python_distribution_read_spec.rb → python_python_distribution_response_spec.rb} +8 -8
  99. data/spec/models/python_python_distribution_spec.rb +2 -20
  100. data/spec/models/{python_python_package_content_read_spec.rb → python_python_package_content_response_spec.rb} +8 -8
  101. data/spec/models/python_python_package_content_spec.rb +173 -0
  102. data/spec/models/{python_python_publication_read_spec.rb → python_python_publication_response_spec.rb} +8 -8
  103. data/spec/models/python_python_publication_spec.rb +2 -20
  104. data/spec/models/{python_python_remote_read_spec.rb → python_python_remote_response_spec.rb} +8 -12
  105. data/spec/models/python_python_remote_spec.rb +2 -24
  106. data/spec/models/{python_python_repository_read_spec.rb → python_python_repository_response_spec.rb} +14 -8
  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_read_spec.rb → repository_version_response_spec.rb} +8 -8
  111. data/spec/models/repository_version_spec.rb +2 -26
  112. data/spec/spec_helper.rb +2 -2
  113. metadata +70 -46
  114. data/docs/ProjectSpecifier.md +0 -19
@@ -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 [PythonPythonPublicationRead]
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<(PythonPythonPublicationRead, Integer, Hash)>] PythonPythonPublicationRead 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] || 'PythonPythonPublicationRead'
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 [PythonPythonRemoteRead]
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<(PythonPythonRemoteRead, Integer, Hash)>] PythonPythonRemoteRead 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] || 'PythonPythonRemoteRead'
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,
@@ -145,20 +172,92 @@ module PulpPythonClient
145
172
  return data, status_code, headers
146
173
  end
147
174
 
175
+ # Create from Bandersnatch
176
+ # Create a remote from a Bandersnatch config
177
+ # @param config [File] A Bandersnatch config that may be used to construct a Python Remote.
178
+ # @param name [String] A unique name for this remote
179
+ # @param [Hash] opts the optional parameters
180
+ # @return [PythonPythonRemoteResponse]
181
+ def from_bandersnatch(config, name, opts = {})
182
+ data, _status_code, _headers = from_bandersnatch_with_http_info(config, name, opts)
183
+ data
184
+ end
185
+
186
+ # Create from Bandersnatch
187
+ # Create a remote from a Bandersnatch config
188
+ # @param config [File] A Bandersnatch config that may be used to construct a Python Remote.
189
+ # @param name [String] A unique name for this remote
190
+ # @param [Hash] opts the optional parameters
191
+ # @return [Array<(PythonPythonRemoteResponse, Integer, Hash)>] PythonPythonRemoteResponse data, response status code and response headers
192
+ def from_bandersnatch_with_http_info(config, name, opts = {})
193
+ if @api_client.config.debugging
194
+ @api_client.config.logger.debug 'Calling API: RemotesPythonApi.from_bandersnatch ...'
195
+ end
196
+ # verify the required parameter 'config' is set
197
+ if @api_client.config.client_side_validation && config.nil?
198
+ fail ArgumentError, "Missing the required parameter 'config' when calling RemotesPythonApi.from_bandersnatch"
199
+ end
200
+ # verify the required parameter 'name' is set
201
+ if @api_client.config.client_side_validation && name.nil?
202
+ fail ArgumentError, "Missing the required parameter 'name' when calling RemotesPythonApi.from_bandersnatch"
203
+ end
204
+ # resource path
205
+ local_var_path = '/pulp/api/v3/remotes/python/python/from_bandersnatch/'
206
+
207
+ # query parameters
208
+ query_params = opts[:query_params] || {}
209
+
210
+ # header parameters
211
+ header_params = opts[:header_params] || {}
212
+ # HTTP header 'Accept' (if needed)
213
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
214
+ # HTTP header 'Content-Type'
215
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
216
+
217
+ # form parameters
218
+ form_params = opts[:form_params] || {}
219
+ form_params['config'] = config
220
+ form_params['name'] = name
221
+
222
+ # http body (model)
223
+ post_body = opts[:body]
224
+
225
+ # return_type
226
+ return_type = opts[:return_type] || 'PythonPythonRemoteResponse'
227
+
228
+ # auth_names
229
+ auth_names = opts[:auth_names] || ['basicAuth']
230
+
231
+ new_options = opts.merge(
232
+ :header_params => header_params,
233
+ :query_params => query_params,
234
+ :form_params => form_params,
235
+ :body => post_body,
236
+ :auth_names => auth_names,
237
+ :return_type => return_type
238
+ )
239
+
240
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
241
+ if @api_client.config.debugging
242
+ @api_client.config.logger.debug "API called: RemotesPythonApi#from_bandersnatch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
243
+ end
244
+ return data, status_code, headers
245
+ end
246
+
148
247
  # List python remotes
149
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.
150
249
  # @param [Hash] opts the optional parameters
151
- # @option opts [String] :ordering Which field to use when ordering the results.
152
- # @option opts [String] :name
153
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
154
- # @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
155
- # @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
156
- # @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
157
- # @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
158
- # @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
159
- # @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
160
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
161
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
162
261
  # @option opts [String] :fields A list of fields to include in the response.
163
262
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
164
263
  # @return [InlineResponse2003]
@@ -170,17 +269,17 @@ module PulpPythonClient
170
269
  # List python remotes
171
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.
172
271
  # @param [Hash] opts the optional parameters
173
- # @option opts [String] :ordering Which field to use when ordering the results.
174
- # @option opts [String] :name
175
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
176
- # @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
177
- # @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
178
- # @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
179
- # @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
180
- # @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
181
- # @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
182
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
183
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
184
283
  # @option opts [String] :fields A list of fields to include in the response.
185
284
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
186
285
  # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
@@ -193,17 +292,17 @@ module PulpPythonClient
193
292
 
194
293
  # query parameters
195
294
  query_params = opts[:query_params] || {}
196
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
295
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
197
296
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
198
297
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
199
- query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
200
- 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?
201
301
  query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
202
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?
203
305
  query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
204
- query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
205
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
206
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
207
306
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
208
307
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
209
308
 
@@ -222,7 +321,7 @@ module PulpPythonClient
222
321
  return_type = opts[:return_type] || 'InlineResponse2003'
223
322
 
224
323
  # auth_names
225
- auth_names = opts[:auth_names] || ['Basic']
324
+ auth_names = opts[:auth_names] || ['basicAuth']
226
325
 
227
326
  new_options = opts.merge(
228
327
  :header_params => header_params,
@@ -240,59 +339,86 @@ module PulpPythonClient
240
339
  return data, status_code, headers
241
340
  end
242
341
 
243
- # Partially update a python remote
342
+ # Update a python remote
244
343
  # Trigger an asynchronous partial update task
245
- # @param python_remote_href [String] URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
246
- # @param data [PythonPythonRemote]
344
+ # @param python_python_remote_href [String]
345
+ # @param patchedpython_python_remote [PatchedpythonPythonRemote]
247
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
248
356
  # @return [AsyncOperationResponse]
249
- def partial_update(python_remote_href, data, opts = {})
250
- 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)
251
359
  data
252
360
  end
253
361
 
254
- # Partially update a python remote
362
+ # Update a python remote
255
363
  # Trigger an asynchronous partial update task
256
- # @param python_remote_href [String] URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
257
- # @param data [PythonPythonRemote]
364
+ # @param python_python_remote_href [String]
365
+ # @param patchedpython_python_remote [PatchedpythonPythonRemote]
258
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
259
376
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
260
- 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 = {})
261
378
  if @api_client.config.debugging
262
379
  @api_client.config.logger.debug 'Calling API: RemotesPythonApi.partial_update ...'
263
380
  end
264
- # verify the required parameter 'python_remote_href' is set
265
- if @api_client.config.client_side_validation && python_remote_href.nil?
266
- 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"
267
384
  end
268
- # verify the required parameter 'data' is set
269
- if @api_client.config.client_side_validation && data.nil?
270
- 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"
271
388
  end
272
389
  # resource path
273
- 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', '/'))
274
391
 
275
392
  # query parameters
276
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?
277
403
 
278
404
  # header parameters
279
405
  header_params = opts[:header_params] || {}
280
406
  # HTTP header 'Accept' (if needed)
281
407
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
282
408
  # HTTP header 'Content-Type'
283
- 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'])
284
410
 
285
411
  # form parameters
286
412
  form_params = opts[:form_params] || {}
287
413
 
288
414
  # http body (model)
289
- 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)
290
416
 
291
417
  # return_type
292
418
  return_type = opts[:return_type] || 'AsyncOperationResponse'
293
419
 
294
420
  # auth_names
295
- auth_names = opts[:auth_names] || ['Basic']
421
+ auth_names = opts[:auth_names] || ['basicAuth']
296
422
 
297
423
  new_options = opts.merge(
298
424
  :header_params => header_params,
@@ -312,33 +438,33 @@ module PulpPythonClient
312
438
 
313
439
  # Inspect a python remote
314
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.
315
- # @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]
316
442
  # @param [Hash] opts the optional parameters
317
443
  # @option opts [String] :fields A list of fields to include in the response.
318
444
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
319
- # @return [PythonPythonRemoteRead]
320
- def read(python_remote_href, opts = {})
321
- 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)
322
448
  data
323
449
  end
324
450
 
325
451
  # Inspect a python remote
326
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.
327
- # @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]
328
454
  # @param [Hash] opts the optional parameters
329
455
  # @option opts [String] :fields A list of fields to include in the response.
330
456
  # @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
332
- 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 = {})
333
459
  if @api_client.config.debugging
334
460
  @api_client.config.logger.debug 'Calling API: RemotesPythonApi.read ...'
335
461
  end
336
- # verify the required parameter 'python_remote_href' is set
337
- if @api_client.config.client_side_validation && python_remote_href.nil?
338
- 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"
339
465
  end
340
466
  # resource path
341
- 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', '/'))
342
468
 
343
469
  # query parameters
344
470
  query_params = opts[:query_params] || {}
@@ -357,10 +483,10 @@ module PulpPythonClient
357
483
  post_body = opts[:body]
358
484
 
359
485
  # return_type
360
- return_type = opts[:return_type] || 'PythonPythonRemoteRead'
486
+ return_type = opts[:return_type] || 'PythonPythonRemoteResponse'
361
487
 
362
488
  # auth_names
363
- auth_names = opts[:auth_names] || ['Basic']
489
+ auth_names = opts[:auth_names] || ['basicAuth']
364
490
 
365
491
  new_options = opts.merge(
366
492
  :header_params => header_params,
@@ -380,57 +506,84 @@ module PulpPythonClient
380
506
 
381
507
  # Update a python remote
382
508
  # Trigger an asynchronous update task
383
- # @param python_remote_href [String] URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
384
- # @param data [PythonPythonRemote]
509
+ # @param python_python_remote_href [String]
510
+ # @param python_python_remote [PythonPythonRemote]
385
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
386
521
  # @return [AsyncOperationResponse]
387
- def update(python_remote_href, data, opts = {})
388
- 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)
389
524
  data
390
525
  end
391
526
 
392
527
  # Update a python remote
393
528
  # Trigger an asynchronous update task
394
- # @param python_remote_href [String] URI of Python Remote. e.g.: /pulp/api/v3/remotes/python/python/1/
395
- # @param data [PythonPythonRemote]
529
+ # @param python_python_remote_href [String]
530
+ # @param python_python_remote [PythonPythonRemote]
396
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
397
541
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
398
- def update_with_http_info(python_remote_href, data, opts = {})
542
+ def update_with_http_info(python_python_remote_href, python_python_remote, opts = {})
399
543
  if @api_client.config.debugging
400
544
  @api_client.config.logger.debug 'Calling API: RemotesPythonApi.update ...'
401
545
  end
402
- # verify the required parameter 'python_remote_href' is set
403
- if @api_client.config.client_side_validation && python_remote_href.nil?
404
- 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"
405
549
  end
406
- # verify the required parameter 'data' is set
407
- if @api_client.config.client_side_validation && data.nil?
408
- 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"
409
553
  end
410
554
  # resource path
411
- 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', '/'))
412
556
 
413
557
  # query parameters
414
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?
415
568
 
416
569
  # header parameters
417
570
  header_params = opts[:header_params] || {}
418
571
  # HTTP header 'Accept' (if needed)
419
572
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
420
573
  # HTTP header 'Content-Type'
421
- 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'])
422
575
 
423
576
  # form parameters
424
577
  form_params = opts[:form_params] || {}
425
578
 
426
579
  # http body (model)
427
- 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)
428
581
 
429
582
  # return_type
430
583
  return_type = opts[:return_type] || 'AsyncOperationResponse'
431
584
 
432
585
  # auth_names
433
- auth_names = opts[:auth_names] || ['Basic']
586
+ auth_names = opts[:auth_names] || ['basicAuth']
434
587
 
435
588
  new_options = opts.merge(
436
589
  :header_params => header_params,