pulp_npm_client 0.1.0a1.dev01595640515 → 0.1.0a1.dev01595986114

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 +42 -32
  3. data/docs/ContentPackagesApi.md +33 -36
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsNpmApi.md +113 -71
  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 +133 -79
  25. data/docs/RepositoriesNpmApi.md +103 -85
  26. data/docs/RepositoriesNpmVersionsApi.md +95 -66
  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 -52
  33. data/lib/pulp_npm_client/api/distributions_npm_api.rb +129 -78
  34. data/lib/pulp_npm_client/api/remotes_npm_api.rb +163 -94
  35. data/lib/pulp_npm_client/api/repositories_npm_api.rb +119 -104
  36. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +119 -80
  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 -17
  67. data/spec/api/distributions_npm_api_spec.rb +38 -23
  68. data/spec/api/remotes_npm_api_spec.rb +50 -29
  69. data/spec/api/repositories_npm_api_spec.rb +30 -27
  70. data/spec/api/repositories_npm_versions_api_spec.rb +38 -26
  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 +44 -4
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -19,28 +19,26 @@ module PulpNpmClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Create a npm repository
23
- # Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
24
- # @param data [NpmNpmRepository]
22
+ # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
23
+ # @param npm_npm_repository [NpmNpmRepository]
25
24
  # @param [Hash] opts the optional parameters
26
- # @return [NpmNpmRepository]
27
- def create(data, opts = {})
28
- data, _status_code, _headers = create_with_http_info(data, opts)
25
+ # @return [NpmNpmRepositoryResponse]
26
+ def create(npm_npm_repository, opts = {})
27
+ data, _status_code, _headers = create_with_http_info(npm_npm_repository, opts)
29
28
  data
30
29
  end
31
30
 
32
- # Create a npm repository
33
- # Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
34
- # @param data [NpmNpmRepository]
31
+ # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
32
+ # @param npm_npm_repository [NpmNpmRepository]
35
33
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(NpmNpmRepository, Integer, Hash)>] NpmNpmRepository data, response status code and response headers
37
- def create_with_http_info(data, opts = {})
34
+ # @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
35
+ def create_with_http_info(npm_npm_repository, opts = {})
38
36
  if @api_client.config.debugging
39
37
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.create ...'
40
38
  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 RepositoriesNpmApi.create"
39
+ # verify the required parameter 'npm_npm_repository' is set
40
+ if @api_client.config.client_side_validation && npm_npm_repository.nil?
41
+ fail ArgumentError, "Missing the required parameter 'npm_npm_repository' when calling RepositoriesNpmApi.create"
44
42
  end
45
43
  # resource path
46
44
  local_var_path = '/pulp/api/v3/repositories/npm/npm/'
@@ -53,19 +51,19 @@ module PulpNpmClient
53
51
  # HTTP header 'Accept' (if needed)
54
52
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
53
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
54
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
55
 
58
56
  # form parameters
59
57
  form_params = opts[:form_params] || {}
60
58
 
61
59
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(data)
60
+ post_body = opts[:body] || @api_client.object_to_http_body(npm_npm_repository)
63
61
 
64
62
  # return_type
65
- return_type = opts[:return_type] || 'NpmNpmRepository'
63
+ return_type = opts[:return_type] || 'NpmNpmRepositoryResponse'
66
64
 
67
65
  # auth_names
68
- auth_names = opts[:auth_names] || ['Basic']
66
+ auth_names = opts[:auth_names] || ['basicAuth']
69
67
 
70
68
  new_options = opts.merge(
71
69
  :header_params => header_params,
@@ -83,20 +81,24 @@ module PulpNpmClient
83
81
  return data, status_code, headers
84
82
  end
85
83
 
86
- # Delete a npm repository
87
84
  # Trigger an asynchronous delete task
88
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
85
+ # @param npm_repository_href [String]
89
86
  # @param [Hash] opts the optional parameters
87
+ # @option opts [String] :name name
88
+ # @option opts [String] :name__in name__in
89
+ # @option opts [String] :ordering Which field to use when ordering the results.
90
90
  # @return [AsyncOperationResponse]
91
91
  def delete(npm_repository_href, opts = {})
92
92
  data, _status_code, _headers = delete_with_http_info(npm_repository_href, opts)
93
93
  data
94
94
  end
95
95
 
96
- # Delete a npm repository
97
96
  # Trigger an asynchronous delete task
98
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
97
+ # @param npm_repository_href [String]
99
98
  # @param [Hash] opts the optional parameters
99
+ # @option opts [String] :name name
100
+ # @option opts [String] :name__in name__in
101
+ # @option opts [String] :ordering Which field to use when ordering the results.
100
102
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
103
  def delete_with_http_info(npm_repository_href, opts = {})
102
104
  if @api_client.config.debugging
@@ -111,6 +113,9 @@ module PulpNpmClient
111
113
 
112
114
  # query parameters
113
115
  query_params = opts[:query_params] || {}
116
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
117
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
118
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
114
119
 
115
120
  # header parameters
116
121
  header_params = opts[:header_params] || {}
@@ -127,7 +132,7 @@ module PulpNpmClient
127
132
  return_type = opts[:return_type] || 'AsyncOperationResponse'
128
133
 
129
134
  # auth_names
130
- auth_names = opts[:auth_names] || ['Basic']
135
+ auth_names = opts[:auth_names] || ['basicAuth']
131
136
 
132
137
  new_options = opts.merge(
133
138
  :header_params => header_params,
@@ -145,14 +150,13 @@ module PulpNpmClient
145
150
  return data, status_code, headers
146
151
  end
147
152
 
148
- # List npm repositorys
149
- # Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
153
+ # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
150
154
  # @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
155
  # @option opts [Integer] :limit Number of results to return per page.
156
+ # @option opts [String] :name name
157
+ # @option opts [String] :name__in name__in
155
158
  # @option opts [Integer] :offset The initial index from which to return the results.
159
+ # @option opts [String] :ordering Which field to use when ordering the results.
156
160
  # @option opts [String] :fields A list of fields to include in the response.
157
161
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
158
162
  # @return [InlineResponse2003]
@@ -161,14 +165,13 @@ module PulpNpmClient
161
165
  data
162
166
  end
163
167
 
164
- # List npm repositorys
165
- # Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
168
+ # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
166
169
  # @param [Hash] opts the optional parameters
167
- # @option opts [String] :ordering Which field to use when ordering the results.
168
- # @option opts [String] :name
169
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
170
170
  # @option opts [Integer] :limit Number of results to return per page.
171
+ # @option opts [String] :name name
172
+ # @option opts [String] :name__in name__in
171
173
  # @option opts [Integer] :offset The initial index from which to return the results.
174
+ # @option opts [String] :ordering Which field to use when ordering the results.
172
175
  # @option opts [String] :fields A list of fields to include in the response.
173
176
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
174
177
  # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
@@ -181,11 +184,11 @@ module PulpNpmClient
181
184
 
182
185
  # query parameters
183
186
  query_params = opts[:query_params] || {}
184
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
187
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
185
188
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
186
189
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
187
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
188
190
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
191
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
189
192
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
190
193
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
191
194
 
@@ -204,7 +207,7 @@ module PulpNpmClient
204
207
  return_type = opts[:return_type] || 'InlineResponse2003'
205
208
 
206
209
  # auth_names
207
- auth_names = opts[:auth_names] || ['Basic']
210
+ auth_names = opts[:auth_names] || ['basicAuth']
208
211
 
209
212
  new_options = opts.merge(
210
213
  :header_params => header_params,
@@ -224,22 +227,22 @@ module PulpNpmClient
224
227
 
225
228
  # Modify Repository Content
226
229
  # Trigger an asynchronous task to create a new repository version.
227
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
228
- # @param data [RepositoryAddRemoveContent]
230
+ # @param npm_repository_href [String]
231
+ # @param repository_add_remove_content [RepositoryAddRemoveContent]
229
232
  # @param [Hash] opts the optional parameters
230
233
  # @return [AsyncOperationResponse]
231
- def modify(npm_repository_href, data, opts = {})
232
- data, _status_code, _headers = modify_with_http_info(npm_repository_href, data, opts)
234
+ def modify(npm_repository_href, repository_add_remove_content, opts = {})
235
+ data, _status_code, _headers = modify_with_http_info(npm_repository_href, repository_add_remove_content, opts)
233
236
  data
234
237
  end
235
238
 
236
239
  # Modify Repository Content
237
240
  # Trigger an asynchronous task to create a new repository version.
238
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
239
- # @param data [RepositoryAddRemoveContent]
241
+ # @param npm_repository_href [String]
242
+ # @param repository_add_remove_content [RepositoryAddRemoveContent]
240
243
  # @param [Hash] opts the optional parameters
241
244
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
242
- def modify_with_http_info(npm_repository_href, data, opts = {})
245
+ def modify_with_http_info(npm_repository_href, repository_add_remove_content, opts = {})
243
246
  if @api_client.config.debugging
244
247
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.modify ...'
245
248
  end
@@ -247,9 +250,9 @@ module PulpNpmClient
247
250
  if @api_client.config.client_side_validation && npm_repository_href.nil?
248
251
  fail ArgumentError, "Missing the required parameter 'npm_repository_href' when calling RepositoriesNpmApi.modify"
249
252
  end
250
- # verify the required parameter 'data' is set
251
- if @api_client.config.client_side_validation && data.nil?
252
- fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesNpmApi.modify"
253
+ # verify the required parameter 'repository_add_remove_content' is set
254
+ if @api_client.config.client_side_validation && repository_add_remove_content.nil?
255
+ fail ArgumentError, "Missing the required parameter 'repository_add_remove_content' when calling RepositoriesNpmApi.modify"
253
256
  end
254
257
  # resource path
255
258
  local_var_path = '{npm_repository_href}modify/'.sub('{' + 'npm_repository_href' + '}', CGI.escape(npm_repository_href.to_s).gsub('%2F', '/'))
@@ -262,19 +265,19 @@ module PulpNpmClient
262
265
  # HTTP header 'Accept' (if needed)
263
266
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
264
267
  # HTTP header 'Content-Type'
265
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
268
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
266
269
 
267
270
  # form parameters
268
271
  form_params = opts[:form_params] || {}
269
272
 
270
273
  # http body (model)
271
- post_body = opts[:body] || @api_client.object_to_http_body(data)
274
+ post_body = opts[:body] || @api_client.object_to_http_body(repository_add_remove_content)
272
275
 
273
276
  # return_type
274
277
  return_type = opts[:return_type] || 'AsyncOperationResponse'
275
278
 
276
279
  # auth_names
277
- auth_names = opts[:auth_names] || ['Basic']
280
+ auth_names = opts[:auth_names] || ['basicAuth']
278
281
 
279
282
  new_options = opts.merge(
280
283
  :header_params => header_params,
@@ -292,24 +295,28 @@ module PulpNpmClient
292
295
  return data, status_code, headers
293
296
  end
294
297
 
295
- # Partially update a npm repository
296
298
  # Trigger an asynchronous partial update task
297
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
298
- # @param data [NpmNpmRepository]
299
+ # @param npm_repository_href [String]
300
+ # @param patchednpm_npm_repository [PatchednpmNpmRepository]
299
301
  # @param [Hash] opts the optional parameters
302
+ # @option opts [String] :name name
303
+ # @option opts [String] :name__in name__in
304
+ # @option opts [String] :ordering Which field to use when ordering the results.
300
305
  # @return [AsyncOperationResponse]
301
- def partial_update(npm_repository_href, data, opts = {})
302
- data, _status_code, _headers = partial_update_with_http_info(npm_repository_href, data, opts)
306
+ def partial_update(npm_repository_href, patchednpm_npm_repository, opts = {})
307
+ data, _status_code, _headers = partial_update_with_http_info(npm_repository_href, patchednpm_npm_repository, opts)
303
308
  data
304
309
  end
305
310
 
306
- # Partially update a npm repository
307
311
  # Trigger an asynchronous partial update task
308
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
309
- # @param data [NpmNpmRepository]
312
+ # @param npm_repository_href [String]
313
+ # @param patchednpm_npm_repository [PatchednpmNpmRepository]
310
314
  # @param [Hash] opts the optional parameters
315
+ # @option opts [String] :name name
316
+ # @option opts [String] :name__in name__in
317
+ # @option opts [String] :ordering Which field to use when ordering the results.
311
318
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
312
- def partial_update_with_http_info(npm_repository_href, data, opts = {})
319
+ def partial_update_with_http_info(npm_repository_href, patchednpm_npm_repository, opts = {})
313
320
  if @api_client.config.debugging
314
321
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.partial_update ...'
315
322
  end
@@ -317,34 +324,37 @@ module PulpNpmClient
317
324
  if @api_client.config.client_side_validation && npm_repository_href.nil?
318
325
  fail ArgumentError, "Missing the required parameter 'npm_repository_href' when calling RepositoriesNpmApi.partial_update"
319
326
  end
320
- # verify the required parameter 'data' is set
321
- if @api_client.config.client_side_validation && data.nil?
322
- fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesNpmApi.partial_update"
327
+ # verify the required parameter 'patchednpm_npm_repository' is set
328
+ if @api_client.config.client_side_validation && patchednpm_npm_repository.nil?
329
+ fail ArgumentError, "Missing the required parameter 'patchednpm_npm_repository' when calling RepositoriesNpmApi.partial_update"
323
330
  end
324
331
  # resource path
325
332
  local_var_path = '{npm_repository_href}'.sub('{' + 'npm_repository_href' + '}', CGI.escape(npm_repository_href.to_s).gsub('%2F', '/'))
326
333
 
327
334
  # query parameters
328
335
  query_params = opts[:query_params] || {}
336
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
337
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
338
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
329
339
 
330
340
  # header parameters
331
341
  header_params = opts[:header_params] || {}
332
342
  # HTTP header 'Accept' (if needed)
333
343
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
334
344
  # HTTP header 'Content-Type'
335
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
345
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
336
346
 
337
347
  # form parameters
338
348
  form_params = opts[:form_params] || {}
339
349
 
340
350
  # http body (model)
341
- post_body = opts[:body] || @api_client.object_to_http_body(data)
351
+ post_body = opts[:body] || @api_client.object_to_http_body(patchednpm_npm_repository)
342
352
 
343
353
  # return_type
344
354
  return_type = opts[:return_type] || 'AsyncOperationResponse'
345
355
 
346
356
  # auth_names
347
- auth_names = opts[:auth_names] || ['Basic']
357
+ auth_names = opts[:auth_names] || ['basicAuth']
348
358
 
349
359
  new_options = opts.merge(
350
360
  :header_params => header_params,
@@ -362,25 +372,23 @@ module PulpNpmClient
362
372
  return data, status_code, headers
363
373
  end
364
374
 
365
- # Inspect a npm repository
366
- # Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
367
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
375
+ # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
376
+ # @param npm_repository_href [String]
368
377
  # @param [Hash] opts the optional parameters
369
378
  # @option opts [String] :fields A list of fields to include in the response.
370
379
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
371
- # @return [NpmNpmRepository]
380
+ # @return [NpmNpmRepositoryResponse]
372
381
  def read(npm_repository_href, opts = {})
373
382
  data, _status_code, _headers = read_with_http_info(npm_repository_href, opts)
374
383
  data
375
384
  end
376
385
 
377
- # Inspect a npm repository
378
- # Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
379
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
386
+ # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
387
+ # @param npm_repository_href [String]
380
388
  # @param [Hash] opts the optional parameters
381
389
  # @option opts [String] :fields A list of fields to include in the response.
382
390
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
383
- # @return [Array<(NpmNpmRepository, Integer, Hash)>] NpmNpmRepository data, response status code and response headers
391
+ # @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
384
392
  def read_with_http_info(npm_repository_href, opts = {})
385
393
  if @api_client.config.debugging
386
394
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.read ...'
@@ -409,10 +417,10 @@ module PulpNpmClient
409
417
  post_body = opts[:body]
410
418
 
411
419
  # return_type
412
- return_type = opts[:return_type] || 'NpmNpmRepository'
420
+ return_type = opts[:return_type] || 'NpmNpmRepositoryResponse'
413
421
 
414
422
  # auth_names
415
- auth_names = opts[:auth_names] || ['Basic']
423
+ auth_names = opts[:auth_names] || ['basicAuth']
416
424
 
417
425
  new_options = opts.merge(
418
426
  :header_params => header_params,
@@ -432,22 +440,22 @@ module PulpNpmClient
432
440
 
433
441
  # Sync from remote
434
442
  # Trigger an asynchronous task to sync content.
435
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
436
- # @param data [RepositorySyncURL]
443
+ # @param npm_repository_href [String]
444
+ # @param repository_sync_url [RepositorySyncURL]
437
445
  # @param [Hash] opts the optional parameters
438
446
  # @return [AsyncOperationResponse]
439
- def sync(npm_repository_href, data, opts = {})
440
- data, _status_code, _headers = sync_with_http_info(npm_repository_href, data, opts)
447
+ def sync(npm_repository_href, repository_sync_url, opts = {})
448
+ data, _status_code, _headers = sync_with_http_info(npm_repository_href, repository_sync_url, opts)
441
449
  data
442
450
  end
443
451
 
444
452
  # Sync from remote
445
453
  # Trigger an asynchronous task to sync content.
446
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
447
- # @param data [RepositorySyncURL]
454
+ # @param npm_repository_href [String]
455
+ # @param repository_sync_url [RepositorySyncURL]
448
456
  # @param [Hash] opts the optional parameters
449
457
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
450
- def sync_with_http_info(npm_repository_href, data, opts = {})
458
+ def sync_with_http_info(npm_repository_href, repository_sync_url, opts = {})
451
459
  if @api_client.config.debugging
452
460
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.sync ...'
453
461
  end
@@ -455,9 +463,9 @@ module PulpNpmClient
455
463
  if @api_client.config.client_side_validation && npm_repository_href.nil?
456
464
  fail ArgumentError, "Missing the required parameter 'npm_repository_href' when calling RepositoriesNpmApi.sync"
457
465
  end
458
- # verify the required parameter 'data' is set
459
- if @api_client.config.client_side_validation && data.nil?
460
- fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesNpmApi.sync"
466
+ # verify the required parameter 'repository_sync_url' is set
467
+ if @api_client.config.client_side_validation && repository_sync_url.nil?
468
+ fail ArgumentError, "Missing the required parameter 'repository_sync_url' when calling RepositoriesNpmApi.sync"
461
469
  end
462
470
  # resource path
463
471
  local_var_path = '{npm_repository_href}sync/'.sub('{' + 'npm_repository_href' + '}', CGI.escape(npm_repository_href.to_s).gsub('%2F', '/'))
@@ -470,19 +478,19 @@ module PulpNpmClient
470
478
  # HTTP header 'Accept' (if needed)
471
479
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
472
480
  # HTTP header 'Content-Type'
473
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
481
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
474
482
 
475
483
  # form parameters
476
484
  form_params = opts[:form_params] || {}
477
485
 
478
486
  # http body (model)
479
- post_body = opts[:body] || @api_client.object_to_http_body(data)
487
+ post_body = opts[:body] || @api_client.object_to_http_body(repository_sync_url)
480
488
 
481
489
  # return_type
482
490
  return_type = opts[:return_type] || 'AsyncOperationResponse'
483
491
 
484
492
  # auth_names
485
- auth_names = opts[:auth_names] || ['Basic']
493
+ auth_names = opts[:auth_names] || ['basicAuth']
486
494
 
487
495
  new_options = opts.merge(
488
496
  :header_params => header_params,
@@ -500,24 +508,28 @@ module PulpNpmClient
500
508
  return data, status_code, headers
501
509
  end
502
510
 
503
- # Update a npm repository
504
511
  # Trigger an asynchronous update task
505
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
506
- # @param data [NpmNpmRepository]
512
+ # @param npm_repository_href [String]
513
+ # @param npm_npm_repository [NpmNpmRepository]
507
514
  # @param [Hash] opts the optional parameters
515
+ # @option opts [String] :name name
516
+ # @option opts [String] :name__in name__in
517
+ # @option opts [String] :ordering Which field to use when ordering the results.
508
518
  # @return [AsyncOperationResponse]
509
- def update(npm_repository_href, data, opts = {})
510
- data, _status_code, _headers = update_with_http_info(npm_repository_href, data, opts)
519
+ def update(npm_repository_href, npm_npm_repository, opts = {})
520
+ data, _status_code, _headers = update_with_http_info(npm_repository_href, npm_npm_repository, opts)
511
521
  data
512
522
  end
513
523
 
514
- # Update a npm repository
515
524
  # Trigger an asynchronous update task
516
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
517
- # @param data [NpmNpmRepository]
525
+ # @param npm_repository_href [String]
526
+ # @param npm_npm_repository [NpmNpmRepository]
518
527
  # @param [Hash] opts the optional parameters
528
+ # @option opts [String] :name name
529
+ # @option opts [String] :name__in name__in
530
+ # @option opts [String] :ordering Which field to use when ordering the results.
519
531
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
520
- def update_with_http_info(npm_repository_href, data, opts = {})
532
+ def update_with_http_info(npm_repository_href, npm_npm_repository, opts = {})
521
533
  if @api_client.config.debugging
522
534
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.update ...'
523
535
  end
@@ -525,34 +537,37 @@ module PulpNpmClient
525
537
  if @api_client.config.client_side_validation && npm_repository_href.nil?
526
538
  fail ArgumentError, "Missing the required parameter 'npm_repository_href' when calling RepositoriesNpmApi.update"
527
539
  end
528
- # verify the required parameter 'data' is set
529
- if @api_client.config.client_side_validation && data.nil?
530
- fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesNpmApi.update"
540
+ # verify the required parameter 'npm_npm_repository' is set
541
+ if @api_client.config.client_side_validation && npm_npm_repository.nil?
542
+ fail ArgumentError, "Missing the required parameter 'npm_npm_repository' when calling RepositoriesNpmApi.update"
531
543
  end
532
544
  # resource path
533
545
  local_var_path = '{npm_repository_href}'.sub('{' + 'npm_repository_href' + '}', CGI.escape(npm_repository_href.to_s).gsub('%2F', '/'))
534
546
 
535
547
  # query parameters
536
548
  query_params = opts[:query_params] || {}
549
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
550
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
551
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
537
552
 
538
553
  # header parameters
539
554
  header_params = opts[:header_params] || {}
540
555
  # HTTP header 'Accept' (if needed)
541
556
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
542
557
  # HTTP header 'Content-Type'
543
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
558
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
544
559
 
545
560
  # form parameters
546
561
  form_params = opts[:form_params] || {}
547
562
 
548
563
  # http body (model)
549
- post_body = opts[:body] || @api_client.object_to_http_body(data)
564
+ post_body = opts[:body] || @api_client.object_to_http_body(npm_npm_repository)
550
565
 
551
566
  # return_type
552
567
  return_type = opts[:return_type] || 'AsyncOperationResponse'
553
568
 
554
569
  # auth_names
555
- auth_names = opts[:auth_names] || ['Basic']
570
+ auth_names = opts[:auth_names] || ['basicAuth']
556
571
 
557
572
  new_options = opts.merge(
558
573
  :header_params => header_params,