pulp_npm_client 0.1.0a1.dev01595813316 → 0.1.0a1.dev01596158992

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_npm_client might be problematic. Click here for more details.

Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -11
  3. data/docs/ContentPackagesApi.md +27 -27
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsNpmApi.md +104 -56
  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/NpmNpmDistribution.md +1 -7
  13. data/docs/NpmNpmDistributionResponse.md +31 -0
  14. data/docs/NpmNpmRemote.md +4 -10
  15. data/docs/NpmNpmRemoteResponse.md +43 -0
  16. data/docs/NpmNpmRepository.md +4 -10
  17. data/docs/NpmNpmRepositoryResponse.md +29 -0
  18. data/docs/NpmPackage.md +5 -5
  19. data/docs/NpmPackageResponse.md +27 -0
  20. data/docs/PatchednpmNpmDistribution.md +25 -0
  21. data/docs/PatchednpmNpmRemote.md +37 -0
  22. data/docs/PatchednpmNpmRepository.md +21 -0
  23. data/docs/PolicyEnum.md +16 -0
  24. data/docs/RemotesNpmApi.md +124 -64
  25. data/docs/RepositoriesNpmApi.md +94 -70
  26. data/docs/RepositoriesNpmVersionsApi.md +90 -58
  27. data/docs/RepositoryAddRemoveContent.md +2 -2
  28. data/docs/RepositorySyncURL.md +1 -1
  29. data/docs/RepositoryVersion.md +1 -9
  30. data/docs/RepositoryVersionResponse.md +25 -0
  31. data/lib/pulp_npm_client.rb +12 -2
  32. data/lib/pulp_npm_client/api/content_packages_api.rb +34 -46
  33. data/lib/pulp_npm_client/api/distributions_npm_api.rb +131 -68
  34. data/lib/pulp_npm_client/api/remotes_npm_api.rb +165 -84
  35. data/lib/pulp_npm_client/api/repositories_npm_api.rb +121 -94
  36. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +119 -74
  37. data/lib/pulp_npm_client/api_client.rb +2 -2
  38. data/lib/pulp_npm_client/api_error.rb +2 -2
  39. data/lib/pulp_npm_client/configuration.rb +3 -3
  40. data/lib/pulp_npm_client/models/async_operation_response.rb +3 -2
  41. data/lib/pulp_npm_client/models/content_summary.rb +9 -15
  42. data/lib/pulp_npm_client/models/content_summary_response.rb +240 -0
  43. data/lib/pulp_npm_client/models/inline_response200.rb +3 -13
  44. data/lib/pulp_npm_client/models/inline_response2001.rb +3 -13
  45. data/lib/pulp_npm_client/models/inline_response2002.rb +3 -13
  46. data/lib/pulp_npm_client/models/inline_response2003.rb +3 -13
  47. data/lib/pulp_npm_client/models/inline_response2004.rb +3 -13
  48. data/lib/pulp_npm_client/models/npm_npm_distribution.rb +4 -85
  49. data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +290 -0
  50. data/lib/pulp_npm_client/models/npm_npm_remote.rb +7 -199
  51. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +368 -0
  52. data/lib/pulp_npm_client/models/npm_npm_repository.rb +18 -78
  53. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +271 -0
  54. data/lib/pulp_npm_client/models/npm_package.rb +24 -79
  55. data/lib/pulp_npm_client/models/npm_package_response.rb +269 -0
  56. data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +251 -0
  57. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +329 -0
  58. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +229 -0
  59. data/lib/pulp_npm_client/models/policy_enum.rb +37 -0
  60. data/lib/pulp_npm_client/models/repository_add_remove_content.rb +5 -4
  61. data/lib/pulp_npm_client/models/repository_sync_url.rb +3 -8
  62. data/lib/pulp_npm_client/models/repository_version.rb +7 -43
  63. data/lib/pulp_npm_client/models/repository_version_response.rb +246 -0
  64. data/lib/pulp_npm_client/version.rb +3 -3
  65. data/pulp_npm_client.gemspec +4 -4
  66. data/spec/api/content_packages_api_spec.rb +14 -14
  67. data/spec/api/distributions_npm_api_spec.rb +39 -18
  68. data/spec/api/remotes_npm_api_spec.rb +51 -24
  69. data/spec/api/repositories_npm_api_spec.rb +31 -22
  70. data/spec/api/repositories_npm_versions_api_spec.rb +38 -23
  71. data/spec/api_client_spec.rb +2 -2
  72. data/spec/configuration_spec.rb +2 -2
  73. data/spec/models/async_operation_response_spec.rb +2 -2
  74. data/spec/models/content_summary_response_spec.rb +53 -0
  75. data/spec/models/content_summary_spec.rb +2 -2
  76. data/spec/models/inline_response2001_spec.rb +2 -2
  77. data/spec/models/inline_response2002_spec.rb +2 -2
  78. data/spec/models/inline_response2003_spec.rb +2 -2
  79. data/spec/models/inline_response2004_spec.rb +2 -2
  80. data/spec/models/inline_response200_spec.rb +2 -2
  81. data/spec/models/npm_npm_distribution_response_spec.rb +83 -0
  82. data/spec/models/npm_npm_distribution_spec.rb +2 -20
  83. data/spec/models/npm_npm_remote_response_spec.rb +119 -0
  84. data/spec/models/npm_npm_remote_spec.rb +2 -24
  85. data/spec/models/npm_npm_repository_response_spec.rb +77 -0
  86. data/spec/models/npm_npm_repository_spec.rb +5 -23
  87. data/spec/models/npm_package_response_spec.rb +71 -0
  88. data/spec/models/npm_package_spec.rb +6 -6
  89. data/spec/models/patchednpm_npm_distribution_spec.rb +65 -0
  90. data/spec/models/patchednpm_npm_remote_spec.rb +101 -0
  91. data/spec/models/patchednpm_npm_repository_spec.rb +53 -0
  92. data/spec/models/policy_enum_spec.rb +35 -0
  93. data/spec/models/repository_add_remove_content_spec.rb +2 -2
  94. data/spec/models/repository_sync_url_spec.rb +2 -2
  95. data/spec/models/repository_version_response_spec.rb +65 -0
  96. data/spec/models/repository_version_spec.rb +2 -26
  97. data/spec/spec_helper.rb +2 -2
  98. metadata +54 -14
@@ -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 PulpNpmClient
21
21
  end
22
22
  # Create a npm distribution
23
23
  # Trigger an asynchronous create task
24
- # @param data [NpmNpmDistribution]
24
+ # @param npm_npm_distribution [NpmNpmDistribution]
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(npm_npm_distribution, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(npm_npm_distribution, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Create a npm distribution
33
33
  # Trigger an asynchronous create task
34
- # @param data [NpmNpmDistribution]
34
+ # @param npm_npm_distribution [NpmNpmDistribution]
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(npm_npm_distribution, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.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 DistributionsNpmApi.create"
41
+ # verify the required parameter 'npm_npm_distribution' is set
42
+ if @api_client.config.client_side_validation && npm_npm_distribution.nil?
43
+ fail ArgumentError, "Missing the required parameter 'npm_npm_distribution' when calling DistributionsNpmApi.create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/pulp/api/v3/distributions/npm/npm/'
@@ -53,19 +53,19 @@ module PulpNpmClient
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(npm_npm_distribution)
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,8 +85,15 @@ module PulpNpmClient
85
85
 
86
86
  # Delete a npm distribution
87
87
  # Trigger an asynchronous delete task
88
- # @param npm_distribution_href [String] URI of Npm Distribution. e.g.: /pulp/api/v3/distributions/npm/npm/1/
88
+ # @param npm_distribution_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
+ # @option opts [String] :base_path base_path
91
+ # @option opts [String] :base_path__contains base_path__contains
92
+ # @option opts [String] :base_path__icontains base_path__icontains
93
+ # @option opts [String] :base_path__in base_path__in
94
+ # @option opts [String] :name name
95
+ # @option opts [String] :name__in name__in
96
+ # @option opts [String] :ordering Which field to use when ordering the results.
90
97
  # @return [AsyncOperationResponse]
91
98
  def delete(npm_distribution_href, opts = {})
92
99
  data, _status_code, _headers = delete_with_http_info(npm_distribution_href, opts)
@@ -95,8 +102,15 @@ module PulpNpmClient
95
102
 
96
103
  # Delete a npm distribution
97
104
  # Trigger an asynchronous delete task
98
- # @param npm_distribution_href [String] URI of Npm Distribution. e.g.: /pulp/api/v3/distributions/npm/npm/1/
105
+ # @param npm_distribution_href [String]
99
106
  # @param [Hash] opts the optional parameters
107
+ # @option opts [String] :base_path base_path
108
+ # @option opts [String] :base_path__contains base_path__contains
109
+ # @option opts [String] :base_path__icontains base_path__icontains
110
+ # @option opts [String] :base_path__in base_path__in
111
+ # @option opts [String] :name name
112
+ # @option opts [String] :name__in name__in
113
+ # @option opts [String] :ordering Which field to use when ordering the results.
100
114
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
115
  def delete_with_http_info(npm_distribution_href, opts = {})
102
116
  if @api_client.config.debugging
@@ -111,6 +125,13 @@ module PulpNpmClient
111
125
 
112
126
  # query parameters
113
127
  query_params = opts[:query_params] || {}
128
+ query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
129
+ query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
130
+ query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
131
+ query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
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?
114
135
 
115
136
  # header parameters
116
137
  header_params = opts[:header_params] || {}
@@ -127,7 +148,7 @@ module PulpNpmClient
127
148
  return_type = opts[:return_type] || 'AsyncOperationResponse'
128
149
 
129
150
  # auth_names
130
- auth_names = opts[:auth_names] || ['Basic']
151
+ auth_names = opts[:auth_names] || ['basicAuth']
131
152
 
132
153
  new_options = opts.merge(
133
154
  :header_params => header_params,
@@ -148,15 +169,15 @@ module PulpNpmClient
148
169
  # List npm distributions
149
170
  # ViewSet for NPM Distributions.
150
171
  # @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] :base_path
155
- # @option opts [String] :base_path__contains Filter results where base_path contains value
156
- # @option opts [String] :base_path__icontains Filter results where base_path contains value
157
- # @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
172
+ # @option opts [String] :base_path base_path
173
+ # @option opts [String] :base_path__contains base_path__contains
174
+ # @option opts [String] :base_path__icontains base_path__icontains
175
+ # @option opts [String] :base_path__in base_path__in
158
176
  # @option opts [Integer] :limit Number of results to return per page.
177
+ # @option opts [String] :name name
178
+ # @option opts [String] :name__in name__in
159
179
  # @option opts [Integer] :offset The initial index from which to return the results.
180
+ # @option opts [String] :ordering Which field to use when ordering the results.
160
181
  # @option opts [String] :fields A list of fields to include in the response.
161
182
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
162
183
  # @return [InlineResponse2001]
@@ -168,15 +189,15 @@ module PulpNpmClient
168
189
  # List npm distributions
169
190
  # ViewSet for NPM Distributions.
170
191
  # @param [Hash] opts the optional parameters
171
- # @option opts [String] :ordering Which field to use when ordering the results.
172
- # @option opts [String] :name
173
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
174
- # @option opts [String] :base_path
175
- # @option opts [String] :base_path__contains Filter results where base_path contains value
176
- # @option opts [String] :base_path__icontains Filter results where base_path contains value
177
- # @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
192
+ # @option opts [String] :base_path base_path
193
+ # @option opts [String] :base_path__contains base_path__contains
194
+ # @option opts [String] :base_path__icontains base_path__icontains
195
+ # @option opts [String] :base_path__in base_path__in
178
196
  # @option opts [Integer] :limit Number of results to return per page.
197
+ # @option opts [String] :name name
198
+ # @option opts [String] :name__in name__in
179
199
  # @option opts [Integer] :offset The initial index from which to return the results.
200
+ # @option opts [String] :ordering Which field to use when ordering the results.
180
201
  # @option opts [String] :fields A list of fields to include in the response.
181
202
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
203
  # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
@@ -189,15 +210,15 @@ module PulpNpmClient
189
210
 
190
211
  # query parameters
191
212
  query_params = opts[:query_params] || {}
192
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
193
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
194
- query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
195
213
  query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
196
214
  query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
197
215
  query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
198
216
  query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
199
217
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
218
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
219
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
200
220
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
221
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
201
222
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
202
223
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
203
224
 
@@ -216,7 +237,7 @@ module PulpNpmClient
216
237
  return_type = opts[:return_type] || 'InlineResponse2001'
217
238
 
218
239
  # auth_names
219
- auth_names = opts[:auth_names] || ['Basic']
240
+ auth_names = opts[:auth_names] || ['basicAuth']
220
241
 
221
242
  new_options = opts.merge(
222
243
  :header_params => header_params,
@@ -234,24 +255,38 @@ module PulpNpmClient
234
255
  return data, status_code, headers
235
256
  end
236
257
 
237
- # Partially update a npm distribution
258
+ # Update a npm distribution
238
259
  # Trigger an asynchronous partial update task
239
- # @param npm_distribution_href [String] URI of Npm Distribution. e.g.: /pulp/api/v3/distributions/npm/npm/1/
240
- # @param data [NpmNpmDistribution]
260
+ # @param npm_distribution_href [String]
261
+ # @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
241
262
  # @param [Hash] opts the optional parameters
263
+ # @option opts [String] :base_path base_path
264
+ # @option opts [String] :base_path__contains base_path__contains
265
+ # @option opts [String] :base_path__icontains base_path__icontains
266
+ # @option opts [String] :base_path__in base_path__in
267
+ # @option opts [String] :name name
268
+ # @option opts [String] :name__in name__in
269
+ # @option opts [String] :ordering Which field to use when ordering the results.
242
270
  # @return [AsyncOperationResponse]
243
- def partial_update(npm_distribution_href, data, opts = {})
244
- data, _status_code, _headers = partial_update_with_http_info(npm_distribution_href, data, opts)
271
+ def partial_update(npm_distribution_href, patchednpm_npm_distribution, opts = {})
272
+ data, _status_code, _headers = partial_update_with_http_info(npm_distribution_href, patchednpm_npm_distribution, opts)
245
273
  data
246
274
  end
247
275
 
248
- # Partially update a npm distribution
276
+ # Update a npm distribution
249
277
  # Trigger an asynchronous partial update task
250
- # @param npm_distribution_href [String] URI of Npm Distribution. e.g.: /pulp/api/v3/distributions/npm/npm/1/
251
- # @param data [NpmNpmDistribution]
278
+ # @param npm_distribution_href [String]
279
+ # @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
252
280
  # @param [Hash] opts the optional parameters
281
+ # @option opts [String] :base_path base_path
282
+ # @option opts [String] :base_path__contains base_path__contains
283
+ # @option opts [String] :base_path__icontains base_path__icontains
284
+ # @option opts [String] :base_path__in base_path__in
285
+ # @option opts [String] :name name
286
+ # @option opts [String] :name__in name__in
287
+ # @option opts [String] :ordering Which field to use when ordering the results.
253
288
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
254
- def partial_update_with_http_info(npm_distribution_href, data, opts = {})
289
+ def partial_update_with_http_info(npm_distribution_href, patchednpm_npm_distribution, opts = {})
255
290
  if @api_client.config.debugging
256
291
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.partial_update ...'
257
292
  end
@@ -259,34 +294,41 @@ module PulpNpmClient
259
294
  if @api_client.config.client_side_validation && npm_distribution_href.nil?
260
295
  fail ArgumentError, "Missing the required parameter 'npm_distribution_href' when calling DistributionsNpmApi.partial_update"
261
296
  end
262
- # verify the required parameter 'data' is set
263
- if @api_client.config.client_side_validation && data.nil?
264
- fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsNpmApi.partial_update"
297
+ # verify the required parameter 'patchednpm_npm_distribution' is set
298
+ if @api_client.config.client_side_validation && patchednpm_npm_distribution.nil?
299
+ fail ArgumentError, "Missing the required parameter 'patchednpm_npm_distribution' when calling DistributionsNpmApi.partial_update"
265
300
  end
266
301
  # resource path
267
302
  local_var_path = '{npm_distribution_href}'.sub('{' + 'npm_distribution_href' + '}', CGI.escape(npm_distribution_href.to_s).gsub('%2F', '/'))
268
303
 
269
304
  # query parameters
270
305
  query_params = opts[:query_params] || {}
306
+ query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
307
+ query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
308
+ query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
309
+ query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
310
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
311
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
312
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
271
313
 
272
314
  # header parameters
273
315
  header_params = opts[:header_params] || {}
274
316
  # HTTP header 'Accept' (if needed)
275
317
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
276
318
  # HTTP header 'Content-Type'
277
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
319
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
278
320
 
279
321
  # form parameters
280
322
  form_params = opts[:form_params] || {}
281
323
 
282
324
  # http body (model)
283
- post_body = opts[:body] || @api_client.object_to_http_body(data)
325
+ post_body = opts[:body] || @api_client.object_to_http_body(patchednpm_npm_distribution)
284
326
 
285
327
  # return_type
286
328
  return_type = opts[:return_type] || 'AsyncOperationResponse'
287
329
 
288
330
  # auth_names
289
- auth_names = opts[:auth_names] || ['Basic']
331
+ auth_names = opts[:auth_names] || ['basicAuth']
290
332
 
291
333
  new_options = opts.merge(
292
334
  :header_params => header_params,
@@ -306,11 +348,11 @@ module PulpNpmClient
306
348
 
307
349
  # Inspect a npm distribution
308
350
  # ViewSet for NPM Distributions.
309
- # @param npm_distribution_href [String] URI of Npm Distribution. e.g.: /pulp/api/v3/distributions/npm/npm/1/
351
+ # @param npm_distribution_href [String]
310
352
  # @param [Hash] opts the optional parameters
311
353
  # @option opts [String] :fields A list of fields to include in the response.
312
354
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
313
- # @return [NpmNpmDistribution]
355
+ # @return [NpmNpmDistributionResponse]
314
356
  def read(npm_distribution_href, opts = {})
315
357
  data, _status_code, _headers = read_with_http_info(npm_distribution_href, opts)
316
358
  data
@@ -318,11 +360,11 @@ module PulpNpmClient
318
360
 
319
361
  # Inspect a npm distribution
320
362
  # ViewSet for NPM Distributions.
321
- # @param npm_distribution_href [String] URI of Npm Distribution. e.g.: /pulp/api/v3/distributions/npm/npm/1/
363
+ # @param npm_distribution_href [String]
322
364
  # @param [Hash] opts the optional parameters
323
365
  # @option opts [String] :fields A list of fields to include in the response.
324
366
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
325
- # @return [Array<(NpmNpmDistribution, Integer, Hash)>] NpmNpmDistribution data, response status code and response headers
367
+ # @return [Array<(NpmNpmDistributionResponse, Integer, Hash)>] NpmNpmDistributionResponse data, response status code and response headers
326
368
  def read_with_http_info(npm_distribution_href, opts = {})
327
369
  if @api_client.config.debugging
328
370
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.read ...'
@@ -351,10 +393,10 @@ module PulpNpmClient
351
393
  post_body = opts[:body]
352
394
 
353
395
  # return_type
354
- return_type = opts[:return_type] || 'NpmNpmDistribution'
396
+ return_type = opts[:return_type] || 'NpmNpmDistributionResponse'
355
397
 
356
398
  # auth_names
357
- auth_names = opts[:auth_names] || ['Basic']
399
+ auth_names = opts[:auth_names] || ['basicAuth']
358
400
 
359
401
  new_options = opts.merge(
360
402
  :header_params => header_params,
@@ -374,22 +416,36 @@ module PulpNpmClient
374
416
 
375
417
  # Update a npm distribution
376
418
  # Trigger an asynchronous update task
377
- # @param npm_distribution_href [String] URI of Npm Distribution. e.g.: /pulp/api/v3/distributions/npm/npm/1/
378
- # @param data [NpmNpmDistribution]
419
+ # @param npm_distribution_href [String]
420
+ # @param npm_npm_distribution [NpmNpmDistribution]
379
421
  # @param [Hash] opts the optional parameters
422
+ # @option opts [String] :base_path base_path
423
+ # @option opts [String] :base_path__contains base_path__contains
424
+ # @option opts [String] :base_path__icontains base_path__icontains
425
+ # @option opts [String] :base_path__in base_path__in
426
+ # @option opts [String] :name name
427
+ # @option opts [String] :name__in name__in
428
+ # @option opts [String] :ordering Which field to use when ordering the results.
380
429
  # @return [AsyncOperationResponse]
381
- def update(npm_distribution_href, data, opts = {})
382
- data, _status_code, _headers = update_with_http_info(npm_distribution_href, data, opts)
430
+ def update(npm_distribution_href, npm_npm_distribution, opts = {})
431
+ data, _status_code, _headers = update_with_http_info(npm_distribution_href, npm_npm_distribution, opts)
383
432
  data
384
433
  end
385
434
 
386
435
  # Update a npm distribution
387
436
  # Trigger an asynchronous update task
388
- # @param npm_distribution_href [String] URI of Npm Distribution. e.g.: /pulp/api/v3/distributions/npm/npm/1/
389
- # @param data [NpmNpmDistribution]
437
+ # @param npm_distribution_href [String]
438
+ # @param npm_npm_distribution [NpmNpmDistribution]
390
439
  # @param [Hash] opts the optional parameters
440
+ # @option opts [String] :base_path base_path
441
+ # @option opts [String] :base_path__contains base_path__contains
442
+ # @option opts [String] :base_path__icontains base_path__icontains
443
+ # @option opts [String] :base_path__in base_path__in
444
+ # @option opts [String] :name name
445
+ # @option opts [String] :name__in name__in
446
+ # @option opts [String] :ordering Which field to use when ordering the results.
391
447
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
392
- def update_with_http_info(npm_distribution_href, data, opts = {})
448
+ def update_with_http_info(npm_distribution_href, npm_npm_distribution, opts = {})
393
449
  if @api_client.config.debugging
394
450
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.update ...'
395
451
  end
@@ -397,34 +453,41 @@ module PulpNpmClient
397
453
  if @api_client.config.client_side_validation && npm_distribution_href.nil?
398
454
  fail ArgumentError, "Missing the required parameter 'npm_distribution_href' when calling DistributionsNpmApi.update"
399
455
  end
400
- # verify the required parameter 'data' is set
401
- if @api_client.config.client_side_validation && data.nil?
402
- fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsNpmApi.update"
456
+ # verify the required parameter 'npm_npm_distribution' is set
457
+ if @api_client.config.client_side_validation && npm_npm_distribution.nil?
458
+ fail ArgumentError, "Missing the required parameter 'npm_npm_distribution' when calling DistributionsNpmApi.update"
403
459
  end
404
460
  # resource path
405
461
  local_var_path = '{npm_distribution_href}'.sub('{' + 'npm_distribution_href' + '}', CGI.escape(npm_distribution_href.to_s).gsub('%2F', '/'))
406
462
 
407
463
  # query parameters
408
464
  query_params = opts[:query_params] || {}
465
+ query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
466
+ query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
467
+ query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
468
+ query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
469
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
470
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
471
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
409
472
 
410
473
  # header parameters
411
474
  header_params = opts[:header_params] || {}
412
475
  # HTTP header 'Accept' (if needed)
413
476
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
414
477
  # HTTP header 'Content-Type'
415
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
478
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
416
479
 
417
480
  # form parameters
418
481
  form_params = opts[:form_params] || {}
419
482
 
420
483
  # http body (model)
421
- post_body = opts[:body] || @api_client.object_to_http_body(data)
484
+ post_body = opts[:body] || @api_client.object_to_http_body(npm_npm_distribution)
422
485
 
423
486
  # return_type
424
487
  return_type = opts[:return_type] || 'AsyncOperationResponse'
425
488
 
426
489
  # auth_names
427
- auth_names = opts[:auth_names] || ['Basic']
490
+ auth_names = opts[:auth_names] || ['basicAuth']
428
491
 
429
492
  new_options = opts.merge(
430
493
  :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
 
@@ -20,27 +20,27 @@ module PulpNpmClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create a npm remote
23
- # Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
24
- # @param data [NpmNpmRemote]
23
+ # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
24
+ # @param npm_npm_remote [NpmNpmRemote]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [NpmNpmRemote]
27
- def create(data, opts = {})
28
- data, _status_code, _headers = create_with_http_info(data, opts)
26
+ # @return [NpmNpmRemoteResponse]
27
+ def create(npm_npm_remote, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(npm_npm_remote, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Create a npm remote
33
- # Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
34
- # @param data [NpmNpmRemote]
33
+ # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
34
+ # @param npm_npm_remote [NpmNpmRemote]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(NpmNpmRemote, Integer, Hash)>] NpmNpmRemote data, response status code and response headers
37
- def create_with_http_info(data, opts = {})
36
+ # @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
37
+ def create_with_http_info(npm_npm_remote, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.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 RemotesNpmApi.create"
41
+ # verify the required parameter 'npm_npm_remote' is set
42
+ if @api_client.config.client_side_validation && npm_npm_remote.nil?
43
+ fail ArgumentError, "Missing the required parameter 'npm_npm_remote' when calling RemotesNpmApi.create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/pulp/api/v3/remotes/npm/npm/'
@@ -53,19 +53,19 @@ module PulpNpmClient
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(npm_npm_remote)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'NpmNpmRemote'
65
+ return_type = opts[:return_type] || 'NpmNpmRemoteResponse'
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,8 +85,17 @@ module PulpNpmClient
85
85
 
86
86
  # Delete a npm remote
87
87
  # Trigger an asynchronous delete task
88
- # @param npm_remote_href [String] URI of Npm Remote. e.g.: /pulp/api/v3/remotes/npm/npm/1/
88
+ # @param npm_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
100
  def delete(npm_remote_href, opts = {})
92
101
  data, _status_code, _headers = delete_with_http_info(npm_remote_href, opts)
@@ -95,8 +104,17 @@ module PulpNpmClient
95
104
 
96
105
  # Delete a npm remote
97
106
  # Trigger an asynchronous delete task
98
- # @param npm_remote_href [String] URI of Npm Remote. e.g.: /pulp/api/v3/remotes/npm/npm/1/
107
+ # @param npm_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
119
  def delete_with_http_info(npm_remote_href, opts = {})
102
120
  if @api_client.config.debugging
@@ -111,6 +129,15 @@ module PulpNpmClient
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 PulpNpmClient
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,
@@ -146,19 +173,19 @@ module PulpNpmClient
146
173
  end
147
174
 
148
175
  # List npm remotes
149
- # Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
176
+ # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
150
177
  # @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
178
  # @option opts [Integer] :limit Number of results to return per page.
179
+ # @option opts [String] :name name
180
+ # @option opts [String] :name__in name__in
161
181
  # @option opts [Integer] :offset The initial index from which to return the results.
182
+ # @option opts [String] :ordering Which field to use when ordering the results.
183
+ # @option opts [String] :pulp_last_updated pulp_last_updated
184
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
185
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
186
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
187
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
188
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
162
189
  # @option opts [String] :fields A list of fields to include in the response.
163
190
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
164
191
  # @return [InlineResponse2002]
@@ -168,19 +195,19 @@ module PulpNpmClient
168
195
  end
169
196
 
170
197
  # List npm remotes
171
- # Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
198
+ # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
172
199
  # @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
200
  # @option opts [Integer] :limit Number of results to return per page.
201
+ # @option opts [String] :name name
202
+ # @option opts [String] :name__in name__in
183
203
  # @option opts [Integer] :offset The initial index from which to return the results.
204
+ # @option opts [String] :ordering Which field to use when ordering the results.
205
+ # @option opts [String] :pulp_last_updated pulp_last_updated
206
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
207
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
208
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
209
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
210
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
184
211
  # @option opts [String] :fields A list of fields to include in the response.
185
212
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
186
213
  # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
@@ -193,17 +220,17 @@ module PulpNpmClient
193
220
 
194
221
  # query parameters
195
222
  query_params = opts[:query_params] || {}
196
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
223
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
197
224
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
198
225
  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?
226
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
227
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
228
+ query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
201
229
  query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
202
230
  query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
231
+ query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
232
+ query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
203
233
  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
234
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
208
235
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
209
236
 
@@ -222,7 +249,7 @@ module PulpNpmClient
222
249
  return_type = opts[:return_type] || 'InlineResponse2002'
223
250
 
224
251
  # auth_names
225
- auth_names = opts[:auth_names] || ['Basic']
252
+ auth_names = opts[:auth_names] || ['basicAuth']
226
253
 
227
254
  new_options = opts.merge(
228
255
  :header_params => header_params,
@@ -240,24 +267,42 @@ module PulpNpmClient
240
267
  return data, status_code, headers
241
268
  end
242
269
 
243
- # Partially update a npm remote
270
+ # Update a npm remote
244
271
  # Trigger an asynchronous partial update task
245
- # @param npm_remote_href [String] URI of Npm Remote. e.g.: /pulp/api/v3/remotes/npm/npm/1/
246
- # @param data [NpmNpmRemote]
272
+ # @param npm_remote_href [String]
273
+ # @param patchednpm_npm_remote [PatchednpmNpmRemote]
247
274
  # @param [Hash] opts the optional parameters
275
+ # @option opts [String] :name name
276
+ # @option opts [String] :name__in name__in
277
+ # @option opts [String] :ordering Which field to use when ordering the results.
278
+ # @option opts [String] :pulp_last_updated pulp_last_updated
279
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
280
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
281
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
282
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
283
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
248
284
  # @return [AsyncOperationResponse]
249
- def partial_update(npm_remote_href, data, opts = {})
250
- data, _status_code, _headers = partial_update_with_http_info(npm_remote_href, data, opts)
285
+ def partial_update(npm_remote_href, patchednpm_npm_remote, opts = {})
286
+ data, _status_code, _headers = partial_update_with_http_info(npm_remote_href, patchednpm_npm_remote, opts)
251
287
  data
252
288
  end
253
289
 
254
- # Partially update a npm remote
290
+ # Update a npm remote
255
291
  # Trigger an asynchronous partial update task
256
- # @param npm_remote_href [String] URI of Npm Remote. e.g.: /pulp/api/v3/remotes/npm/npm/1/
257
- # @param data [NpmNpmRemote]
292
+ # @param npm_remote_href [String]
293
+ # @param patchednpm_npm_remote [PatchednpmNpmRemote]
258
294
  # @param [Hash] opts the optional parameters
295
+ # @option opts [String] :name name
296
+ # @option opts [String] :name__in name__in
297
+ # @option opts [String] :ordering Which field to use when ordering the results.
298
+ # @option opts [String] :pulp_last_updated pulp_last_updated
299
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
300
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
301
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
302
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
303
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
259
304
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
260
- def partial_update_with_http_info(npm_remote_href, data, opts = {})
305
+ def partial_update_with_http_info(npm_remote_href, patchednpm_npm_remote, opts = {})
261
306
  if @api_client.config.debugging
262
307
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.partial_update ...'
263
308
  end
@@ -265,34 +310,43 @@ module PulpNpmClient
265
310
  if @api_client.config.client_side_validation && npm_remote_href.nil?
266
311
  fail ArgumentError, "Missing the required parameter 'npm_remote_href' when calling RemotesNpmApi.partial_update"
267
312
  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 RemotesNpmApi.partial_update"
313
+ # verify the required parameter 'patchednpm_npm_remote' is set
314
+ if @api_client.config.client_side_validation && patchednpm_npm_remote.nil?
315
+ fail ArgumentError, "Missing the required parameter 'patchednpm_npm_remote' when calling RemotesNpmApi.partial_update"
271
316
  end
272
317
  # resource path
273
318
  local_var_path = '{npm_remote_href}'.sub('{' + 'npm_remote_href' + '}', CGI.escape(npm_remote_href.to_s).gsub('%2F', '/'))
274
319
 
275
320
  # query parameters
276
321
  query_params = opts[:query_params] || {}
322
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
323
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
324
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
325
+ query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
326
+ query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
327
+ query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
328
+ query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
329
+ query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
330
+ query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
277
331
 
278
332
  # header parameters
279
333
  header_params = opts[:header_params] || {}
280
334
  # HTTP header 'Accept' (if needed)
281
335
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
282
336
  # HTTP header 'Content-Type'
283
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
337
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
284
338
 
285
339
  # form parameters
286
340
  form_params = opts[:form_params] || {}
287
341
 
288
342
  # http body (model)
289
- post_body = opts[:body] || @api_client.object_to_http_body(data)
343
+ post_body = opts[:body] || @api_client.object_to_http_body(patchednpm_npm_remote)
290
344
 
291
345
  # return_type
292
346
  return_type = opts[:return_type] || 'AsyncOperationResponse'
293
347
 
294
348
  # auth_names
295
- auth_names = opts[:auth_names] || ['Basic']
349
+ auth_names = opts[:auth_names] || ['basicAuth']
296
350
 
297
351
  new_options = opts.merge(
298
352
  :header_params => header_params,
@@ -311,24 +365,24 @@ module PulpNpmClient
311
365
  end
312
366
 
313
367
  # Inspect a npm remote
314
- # Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
315
- # @param npm_remote_href [String] URI of Npm Remote. e.g.: /pulp/api/v3/remotes/npm/npm/1/
368
+ # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
369
+ # @param npm_remote_href [String]
316
370
  # @param [Hash] opts the optional parameters
317
371
  # @option opts [String] :fields A list of fields to include in the response.
318
372
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
319
- # @return [NpmNpmRemote]
373
+ # @return [NpmNpmRemoteResponse]
320
374
  def read(npm_remote_href, opts = {})
321
375
  data, _status_code, _headers = read_with_http_info(npm_remote_href, opts)
322
376
  data
323
377
  end
324
378
 
325
379
  # Inspect a npm remote
326
- # Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
327
- # @param npm_remote_href [String] URI of Npm Remote. e.g.: /pulp/api/v3/remotes/npm/npm/1/
380
+ # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
381
+ # @param npm_remote_href [String]
328
382
  # @param [Hash] opts the optional parameters
329
383
  # @option opts [String] :fields A list of fields to include in the response.
330
384
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
331
- # @return [Array<(NpmNpmRemote, Integer, Hash)>] NpmNpmRemote data, response status code and response headers
385
+ # @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
332
386
  def read_with_http_info(npm_remote_href, opts = {})
333
387
  if @api_client.config.debugging
334
388
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.read ...'
@@ -357,10 +411,10 @@ module PulpNpmClient
357
411
  post_body = opts[:body]
358
412
 
359
413
  # return_type
360
- return_type = opts[:return_type] || 'NpmNpmRemote'
414
+ return_type = opts[:return_type] || 'NpmNpmRemoteResponse'
361
415
 
362
416
  # auth_names
363
- auth_names = opts[:auth_names] || ['Basic']
417
+ auth_names = opts[:auth_names] || ['basicAuth']
364
418
 
365
419
  new_options = opts.merge(
366
420
  :header_params => header_params,
@@ -380,22 +434,40 @@ module PulpNpmClient
380
434
 
381
435
  # Update a npm remote
382
436
  # Trigger an asynchronous update task
383
- # @param npm_remote_href [String] URI of Npm Remote. e.g.: /pulp/api/v3/remotes/npm/npm/1/
384
- # @param data [NpmNpmRemote]
437
+ # @param npm_remote_href [String]
438
+ # @param npm_npm_remote [NpmNpmRemote]
385
439
  # @param [Hash] opts the optional parameters
440
+ # @option opts [String] :name name
441
+ # @option opts [String] :name__in name__in
442
+ # @option opts [String] :ordering Which field to use when ordering the results.
443
+ # @option opts [String] :pulp_last_updated pulp_last_updated
444
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
445
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
446
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
447
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
448
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
386
449
  # @return [AsyncOperationResponse]
387
- def update(npm_remote_href, data, opts = {})
388
- data, _status_code, _headers = update_with_http_info(npm_remote_href, data, opts)
450
+ def update(npm_remote_href, npm_npm_remote, opts = {})
451
+ data, _status_code, _headers = update_with_http_info(npm_remote_href, npm_npm_remote, opts)
389
452
  data
390
453
  end
391
454
 
392
455
  # Update a npm remote
393
456
  # Trigger an asynchronous update task
394
- # @param npm_remote_href [String] URI of Npm Remote. e.g.: /pulp/api/v3/remotes/npm/npm/1/
395
- # @param data [NpmNpmRemote]
457
+ # @param npm_remote_href [String]
458
+ # @param npm_npm_remote [NpmNpmRemote]
396
459
  # @param [Hash] opts the optional parameters
460
+ # @option opts [String] :name name
461
+ # @option opts [String] :name__in name__in
462
+ # @option opts [String] :ordering Which field to use when ordering the results.
463
+ # @option opts [String] :pulp_last_updated pulp_last_updated
464
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
465
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
466
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
467
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
468
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
397
469
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
398
- def update_with_http_info(npm_remote_href, data, opts = {})
470
+ def update_with_http_info(npm_remote_href, npm_npm_remote, opts = {})
399
471
  if @api_client.config.debugging
400
472
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.update ...'
401
473
  end
@@ -403,34 +475,43 @@ module PulpNpmClient
403
475
  if @api_client.config.client_side_validation && npm_remote_href.nil?
404
476
  fail ArgumentError, "Missing the required parameter 'npm_remote_href' when calling RemotesNpmApi.update"
405
477
  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 RemotesNpmApi.update"
478
+ # verify the required parameter 'npm_npm_remote' is set
479
+ if @api_client.config.client_side_validation && npm_npm_remote.nil?
480
+ fail ArgumentError, "Missing the required parameter 'npm_npm_remote' when calling RemotesNpmApi.update"
409
481
  end
410
482
  # resource path
411
483
  local_var_path = '{npm_remote_href}'.sub('{' + 'npm_remote_href' + '}', CGI.escape(npm_remote_href.to_s).gsub('%2F', '/'))
412
484
 
413
485
  # query parameters
414
486
  query_params = opts[:query_params] || {}
487
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
488
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
489
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
490
+ query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
491
+ query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
492
+ query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
493
+ query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
494
+ query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
495
+ query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
415
496
 
416
497
  # header parameters
417
498
  header_params = opts[:header_params] || {}
418
499
  # HTTP header 'Accept' (if needed)
419
500
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
420
501
  # HTTP header 'Content-Type'
421
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
502
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
422
503
 
423
504
  # form parameters
424
505
  form_params = opts[:form_params] || {}
425
506
 
426
507
  # http body (model)
427
- post_body = opts[:body] || @api_client.object_to_http_body(data)
508
+ post_body = opts[:body] || @api_client.object_to_http_body(npm_npm_remote)
428
509
 
429
510
  # return_type
430
511
  return_type = opts[:return_type] || 'AsyncOperationResponse'
431
512
 
432
513
  # auth_names
433
- auth_names = opts[:auth_names] || ['Basic']
514
+ auth_names = opts[:auth_names] || ['basicAuth']
434
515
 
435
516
  new_options = opts.merge(
436
517
  :header_params => header_params,