pulp_npm_client 0.1.0a4 → 0.1.0a5.dev1676862967

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContentPackagesApi.md +8 -8
  4. data/docs/DistributionsNpmApi.md +18 -12
  5. data/docs/NpmNpmDistribution.md +1 -1
  6. data/docs/NpmNpmDistributionResponse.md +1 -1
  7. data/docs/NpmNpmRemote.md +1 -1
  8. data/docs/NpmNpmRemoteResponse.md +4 -2
  9. data/docs/NpmNpmRemoteResponseHiddenFields.md +19 -0
  10. data/docs/NpmNpmRepository.md +1 -1
  11. data/docs/NpmNpmRepositoryResponse.md +1 -1
  12. data/docs/PatchednpmNpmDistribution.md +1 -1
  13. data/docs/PatchednpmNpmRemote.md +1 -1
  14. data/docs/PatchednpmNpmRepository.md +1 -1
  15. data/docs/PulpNpmPackagesApi.md +4 -4
  16. data/docs/RemotesNpmApi.md +12 -12
  17. data/docs/RepositoriesNpmApi.md +28 -10
  18. data/docs/RepositoriesNpmVersionsApi.md +12 -12
  19. data/lib/pulp_npm_client/api/content_packages_api.rb +13 -13
  20. data/lib/pulp_npm_client/api/distributions_npm_api.rb +26 -17
  21. data/lib/pulp_npm_client/api/pulp_npm_packages_api.rb +6 -6
  22. data/lib/pulp_npm_client/api/remotes_npm_api.rb +17 -17
  23. data/lib/pulp_npm_client/api/repositories_npm_api.rb +42 -15
  24. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +17 -17
  25. data/lib/pulp_npm_client/api_client.rb +1 -1
  26. data/lib/pulp_npm_client/models/npm_npm_distribution.rb +4 -2
  27. data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +4 -2
  28. data/lib/pulp_npm_client/models/npm_npm_remote.rb +4 -2
  29. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +21 -7
  30. data/lib/pulp_npm_client/models/npm_npm_remote_response_hidden_fields.rb +215 -0
  31. data/lib/pulp_npm_client/models/npm_npm_repository.rb +4 -2
  32. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +4 -2
  33. data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +4 -2
  34. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +4 -2
  35. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +4 -2
  36. data/lib/pulp_npm_client/version.rb +1 -1
  37. data/lib/pulp_npm_client.rb +1 -0
  38. data/pulp_npm_client.gemspec +3 -3
  39. data/spec/api/content_packages_api_spec.rb +4 -4
  40. data/spec/api/distributions_npm_api_spec.rb +9 -6
  41. data/spec/api/pulp_npm_packages_api_spec.rb +2 -2
  42. data/spec/api/remotes_npm_api_spec.rb +6 -6
  43. data/spec/api/repositories_npm_api_spec.rb +14 -5
  44. data/spec/api/repositories_npm_versions_api_spec.rb +6 -6
  45. data/spec/models/npm_npm_remote_response_hidden_fields_spec.rb +47 -0
  46. data/spec/models/npm_npm_remote_response_spec.rb +6 -0
  47. metadata +33 -30
  48. data/git_push.sh +0 -58
@@ -133,8 +133,8 @@ module PulpNpmClient
133
133
  # @option opts [String] :repository_version Repository Version referenced by HREF
134
134
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
135
135
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
136
- # @option opts [String] :fields A list of fields to include in the response.
137
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
136
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
137
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
138
138
  # @return [PaginatednpmPackageResponseList]
139
139
  def list(opts = {})
140
140
  data, _status_code, _headers = list_with_http_info(opts)
@@ -152,14 +152,14 @@ module PulpNpmClient
152
152
  # @option opts [String] :repository_version Repository Version referenced by HREF
153
153
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
154
154
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
155
- # @option opts [String] :fields A list of fields to include in the response.
156
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
155
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
156
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
157
157
  # @return [Array<(PaginatednpmPackageResponseList, Integer, Hash)>] PaginatednpmPackageResponseList data, response status code and response headers
158
158
  def list_with_http_info(opts = {})
159
159
  if @api_client.config.debugging
160
160
  @api_client.config.logger.debug 'Calling API: ContentPackagesApi.list ...'
161
161
  end
162
- allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
162
+ allowable_values = ["-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "-version", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id", "version"]
163
163
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
164
164
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
165
165
  end
@@ -176,8 +176,8 @@ module PulpNpmClient
176
176
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
177
177
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
178
178
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
179
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
180
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
179
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
180
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
181
181
 
182
182
  # header parameters
183
183
  header_params = opts[:header_params] || {}
@@ -216,8 +216,8 @@ module PulpNpmClient
216
216
  # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
217
217
  # @param npm_package_href [String]
218
218
  # @param [Hash] opts the optional parameters
219
- # @option opts [String] :fields A list of fields to include in the response.
220
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
219
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
220
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
221
221
  # @return [NpmPackageResponse]
222
222
  def read(npm_package_href, opts = {})
223
223
  data, _status_code, _headers = read_with_http_info(npm_package_href, opts)
@@ -228,8 +228,8 @@ module PulpNpmClient
228
228
  # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
229
229
  # @param npm_package_href [String]
230
230
  # @param [Hash] opts the optional parameters
231
- # @option opts [String] :fields A list of fields to include in the response.
232
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
231
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
232
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
233
233
  # @return [Array<(NpmPackageResponse, Integer, Hash)>] NpmPackageResponse data, response status code and response headers
234
234
  def read_with_http_info(npm_package_href, opts = {})
235
235
  if @api_client.config.debugging
@@ -244,8 +244,8 @@ module PulpNpmClient
244
244
 
245
245
  # query parameters
246
246
  query_params = opts[:query_params] || {}
247
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
248
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
247
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
248
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
249
249
 
250
250
  # header parameters
251
251
  header_params = opts[:header_params] || {}
@@ -148,12 +148,12 @@ module PulpNpmClient
148
148
  # List npm distributions
149
149
  # ViewSet for NPM Distributions.
150
150
  # @param [Hash] opts the optional parameters
151
- # @option opts [String] :base_path
151
+ # @option opts [String] :base_path Filter results where base_path matches value
152
152
  # @option opts [String] :base_path__contains Filter results where base_path contains value
153
153
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
154
154
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
155
155
  # @option opts [Integer] :limit Number of results to return per page.
156
- # @option opts [String] :name
156
+ # @option opts [String] :name Filter results where name matches value
157
157
  # @option opts [String] :name__contains Filter results where name contains value
158
158
  # @option opts [String] :name__icontains Filter results where name contains value
159
159
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -161,8 +161,11 @@ module PulpNpmClient
161
161
  # @option opts [Integer] :offset The initial index from which to return the results.
162
162
  # @option opts [Array<String>] :ordering Ordering
163
163
  # @option opts [String] :pulp_label_select Filter labels by search string
164
- # @option opts [String] :fields A list of fields to include in the response.
165
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
164
+ # @option opts [String] :repository Filter results where repository matches value
165
+ # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
166
+ # @option opts [String] :with_content Filter distributions based on the content served by them
167
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
168
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
166
169
  # @return [PaginatednpmNpmDistributionResponseList]
167
170
  def list(opts = {})
168
171
  data, _status_code, _headers = list_with_http_info(opts)
@@ -172,12 +175,12 @@ module PulpNpmClient
172
175
  # List npm distributions
173
176
  # ViewSet for NPM Distributions.
174
177
  # @param [Hash] opts the optional parameters
175
- # @option opts [String] :base_path
178
+ # @option opts [String] :base_path Filter results where base_path matches value
176
179
  # @option opts [String] :base_path__contains Filter results where base_path contains value
177
180
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
178
181
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
179
182
  # @option opts [Integer] :limit Number of results to return per page.
180
- # @option opts [String] :name
183
+ # @option opts [String] :name Filter results where name matches value
181
184
  # @option opts [String] :name__contains Filter results where name contains value
182
185
  # @option opts [String] :name__icontains Filter results where name contains value
183
186
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -185,14 +188,17 @@ module PulpNpmClient
185
188
  # @option opts [Integer] :offset The initial index from which to return the results.
186
189
  # @option opts [Array<String>] :ordering Ordering
187
190
  # @option opts [String] :pulp_label_select Filter labels by search string
188
- # @option opts [String] :fields A list of fields to include in the response.
189
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
191
+ # @option opts [String] :repository Filter results where repository matches value
192
+ # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
193
+ # @option opts [String] :with_content Filter distributions based on the content served by them
194
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
195
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
190
196
  # @return [Array<(PaginatednpmNpmDistributionResponseList, Integer, Hash)>] PaginatednpmNpmDistributionResponseList data, response status code and response headers
191
197
  def list_with_http_info(opts = {})
192
198
  if @api_client.config.debugging
193
199
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.list ...'
194
200
  end
195
- allowable_values = ["-base_path", "-content_guard", "-group_roles", "-name", "-npm_npmdistribution", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-remote", "-repository", "-repository_version", "-user_roles", "base_path", "content_guard", "group_roles", "name", "npm_npmdistribution", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "remote", "repository", "repository_version", "user_roles"]
201
+ allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
196
202
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
197
203
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
198
204
  end
@@ -214,8 +220,11 @@ module PulpNpmClient
214
220
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
215
221
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
216
222
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
217
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
218
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
223
+ query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
224
+ query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
225
+ query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
226
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
227
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
219
228
 
220
229
  # header parameters
221
230
  header_params = opts[:header_params] || {}
@@ -324,8 +333,8 @@ module PulpNpmClient
324
333
  # ViewSet for NPM Distributions.
325
334
  # @param npm_npm_distribution_href [String]
326
335
  # @param [Hash] opts the optional parameters
327
- # @option opts [String] :fields A list of fields to include in the response.
328
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
336
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
337
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
329
338
  # @return [NpmNpmDistributionResponse]
330
339
  def read(npm_npm_distribution_href, opts = {})
331
340
  data, _status_code, _headers = read_with_http_info(npm_npm_distribution_href, opts)
@@ -336,8 +345,8 @@ module PulpNpmClient
336
345
  # ViewSet for NPM Distributions.
337
346
  # @param npm_npm_distribution_href [String]
338
347
  # @param [Hash] opts the optional parameters
339
- # @option opts [String] :fields A list of fields to include in the response.
340
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
348
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
349
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
341
350
  # @return [Array<(NpmNpmDistributionResponse, Integer, Hash)>] NpmNpmDistributionResponse data, response status code and response headers
342
351
  def read_with_http_info(npm_npm_distribution_href, opts = {})
343
352
  if @api_client.config.debugging
@@ -352,8 +361,8 @@ module PulpNpmClient
352
361
 
353
362
  # query parameters
354
363
  query_params = opts[:query_params] || {}
355
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
356
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
364
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
365
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
357
366
 
358
367
  # header parameters
359
368
  header_params = opts[:header_params] || {}
@@ -22,8 +22,8 @@ module PulpNpmClient
22
22
  # Return a published package.
23
23
  # @param name [String]
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [String] :fields A list of fields to include in the response.
26
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
25
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
26
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
27
27
  # @return [nil]
28
28
  def get(name, opts = {})
29
29
  get_with_http_info(name, opts)
@@ -33,8 +33,8 @@ module PulpNpmClient
33
33
  # Return a published package.
34
34
  # @param name [String]
35
35
  # @param [Hash] opts the optional parameters
36
- # @option opts [String] :fields A list of fields to include in the response.
37
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
36
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
37
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
38
38
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
39
39
  def get_with_http_info(name, opts = {})
40
40
  if @api_client.config.debugging
@@ -49,8 +49,8 @@ module PulpNpmClient
49
49
 
50
50
  # query parameters
51
51
  query_params = opts[:query_params] || {}
52
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
53
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
52
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
53
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
54
54
 
55
55
  # header parameters
56
56
  header_params = opts[:header_params] || {}
@@ -149,7 +149,7 @@ module PulpNpmClient
149
149
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
- # @option opts [String] :name
152
+ # @option opts [String] :name Filter results where name matches value
153
153
  # @option opts [String] :name__contains Filter results where name contains value
154
154
  # @option opts [String] :name__icontains Filter results where name contains value
155
155
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -157,14 +157,14 @@ module PulpNpmClient
157
157
  # @option opts [Integer] :offset The initial index from which to return the results.
158
158
  # @option opts [Array<String>] :ordering Ordering
159
159
  # @option opts [String] :pulp_label_select Filter labels by search string
160
- # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
160
+ # @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
161
161
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
162
162
  # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
163
163
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
164
164
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
165
165
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
166
- # @option opts [String] :fields A list of fields to include in the response.
167
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
166
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
167
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
168
168
  # @return [PaginatednpmNpmRemoteResponseList]
169
169
  def list(opts = {})
170
170
  data, _status_code, _headers = list_with_http_info(opts)
@@ -175,7 +175,7 @@ module PulpNpmClient
175
175
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
176
176
  # @param [Hash] opts the optional parameters
177
177
  # @option opts [Integer] :limit Number of results to return per page.
178
- # @option opts [String] :name
178
+ # @option opts [String] :name Filter results where name matches value
179
179
  # @option opts [String] :name__contains Filter results where name contains value
180
180
  # @option opts [String] :name__icontains Filter results where name contains value
181
181
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -183,20 +183,20 @@ module PulpNpmClient
183
183
  # @option opts [Integer] :offset The initial index from which to return the results.
184
184
  # @option opts [Array<String>] :ordering Ordering
185
185
  # @option opts [String] :pulp_label_select Filter labels by search string
186
- # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
186
+ # @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
187
187
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
188
188
  # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
189
189
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
190
190
  # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
191
191
  # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
192
- # @option opts [String] :fields A list of fields to include in the response.
193
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
192
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
193
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
194
194
  # @return [Array<(PaginatednpmNpmRemoteResponseList, Integer, Hash)>] PaginatednpmNpmRemoteResponseList data, response status code and response headers
195
195
  def list_with_http_info(opts = {})
196
196
  if @api_client.config.debugging
197
197
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.list ...'
198
198
  end
199
- allowable_values = ["-alternatecontentsource", "-basedistribution", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-distribution", "-download_concurrency", "-group_roles", "-headers", "-max_retries", "-name", "-npm_npmremote", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-remoteartifact", "-repository", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-user_roles", "-username", "alternatecontentsource", "basedistribution", "ca_cert", "client_cert", "client_key", "connect_timeout", "distribution", "download_concurrency", "group_roles", "headers", "max_retries", "name", "npm_npmremote", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "remoteartifact", "repository", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "user_roles", "username"]
199
+ allowable_values = ["-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-username", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "username"]
200
200
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
201
201
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
202
202
  end
@@ -220,8 +220,8 @@ module PulpNpmClient
220
220
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
221
221
  query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
222
222
  query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
223
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
224
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
223
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
224
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
225
225
 
226
226
  # header parameters
227
227
  header_params = opts[:header_params] || {}
@@ -330,8 +330,8 @@ module PulpNpmClient
330
330
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
331
331
  # @param npm_npm_remote_href [String]
332
332
  # @param [Hash] opts the optional parameters
333
- # @option opts [String] :fields A list of fields to include in the response.
334
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
333
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
334
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
335
335
  # @return [NpmNpmRemoteResponse]
336
336
  def read(npm_npm_remote_href, opts = {})
337
337
  data, _status_code, _headers = read_with_http_info(npm_npm_remote_href, opts)
@@ -342,8 +342,8 @@ module PulpNpmClient
342
342
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
343
343
  # @param npm_npm_remote_href [String]
344
344
  # @param [Hash] opts the optional parameters
345
- # @option opts [String] :fields A list of fields to include in the response.
346
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
345
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
346
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
347
347
  # @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
348
348
  def read_with_http_info(npm_npm_remote_href, opts = {})
349
349
  if @api_client.config.debugging
@@ -358,8 +358,8 @@ module PulpNpmClient
358
358
 
359
359
  # query parameters
360
360
  query_params = opts[:query_params] || {}
361
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
362
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
361
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
362
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
363
363
 
364
364
  # header parameters
365
365
  header_params = opts[:header_params] || {}
@@ -149,7 +149,7 @@ module PulpNpmClient
149
149
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
- # @option opts [String] :name
152
+ # @option opts [String] :name Filter results where name matches value
153
153
  # @option opts [String] :name__contains Filter results where name contains value
154
154
  # @option opts [String] :name__icontains Filter results where name contains value
155
155
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -157,8 +157,17 @@ module PulpNpmClient
157
157
  # @option opts [Integer] :offset The initial index from which to return the results.
158
158
  # @option opts [Array<String>] :ordering Ordering
159
159
  # @option opts [String] :pulp_label_select Filter labels by search string
160
- # @option opts [String] :fields A list of fields to include in the response.
161
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
160
+ # @option opts [String] :remote Foreign Key referenced by HREF
161
+ # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
162
+ # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
163
+ # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
164
+ # @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
165
+ # @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
166
+ # @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
167
+ # @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
168
+ # @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
169
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
170
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
162
171
  # @return [PaginatednpmNpmRepositoryResponseList]
163
172
  def list(opts = {})
164
173
  data, _status_code, _headers = list_with_http_info(opts)
@@ -169,7 +178,7 @@ module PulpNpmClient
169
178
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
170
179
  # @param [Hash] opts the optional parameters
171
180
  # @option opts [Integer] :limit Number of results to return per page.
172
- # @option opts [String] :name
181
+ # @option opts [String] :name Filter results where name matches value
173
182
  # @option opts [String] :name__contains Filter results where name contains value
174
183
  # @option opts [String] :name__icontains Filter results where name contains value
175
184
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -177,14 +186,23 @@ module PulpNpmClient
177
186
  # @option opts [Integer] :offset The initial index from which to return the results.
178
187
  # @option opts [Array<String>] :ordering Ordering
179
188
  # @option opts [String] :pulp_label_select Filter labels by search string
180
- # @option opts [String] :fields A list of fields to include in the response.
181
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
189
+ # @option opts [String] :remote Foreign Key referenced by HREF
190
+ # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
191
+ # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
192
+ # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
193
+ # @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
194
+ # @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
195
+ # @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
196
+ # @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
197
+ # @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
198
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
199
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
182
200
  # @return [Array<(PaginatednpmNpmRepositoryResponseList, Integer, Hash)>] PaginatednpmNpmRepositoryResponseList data, response status code and response headers
183
201
  def list_with_http_info(opts = {})
184
202
  if @api_client.config.debugging
185
203
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.list ...'
186
204
  end
187
- allowable_values = ["-alternatecontentsourcepath", "-content", "-core_pulp_exporter", "-description", "-distributions", "-group_roles", "-name", "-next_version", "-npm_npmrepository", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "content", "core_pulp_exporter", "description", "distributions", "group_roles", "name", "next_version", "npm_npmrepository", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "remote", "repositorycontent", "retain_repo_versions", "user_hidden", "user_roles", "versions"]
205
+ allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
188
206
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
189
207
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
190
208
  end
@@ -202,8 +220,17 @@ module PulpNpmClient
202
220
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
203
221
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
204
222
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
205
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
206
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
223
+ query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
224
+ query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
225
+ query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
226
+ query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
227
+ query_params[:'retain_repo_versions__isnull'] = opts[:'retain_repo_versions__isnull'] if !opts[:'retain_repo_versions__isnull'].nil?
228
+ query_params[:'retain_repo_versions__lt'] = opts[:'retain_repo_versions__lt'] if !opts[:'retain_repo_versions__lt'].nil?
229
+ query_params[:'retain_repo_versions__lte'] = opts[:'retain_repo_versions__lte'] if !opts[:'retain_repo_versions__lte'].nil?
230
+ query_params[:'retain_repo_versions__ne'] = opts[:'retain_repo_versions__ne'] if !opts[:'retain_repo_versions__ne'].nil?
231
+ query_params[:'retain_repo_versions__range'] = @api_client.build_collection_param(opts[:'retain_repo_versions__range'], :csv) if !opts[:'retain_repo_versions__range'].nil?
232
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
233
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
207
234
 
208
235
  # header parameters
209
236
  header_params = opts[:header_params] || {}
@@ -382,8 +409,8 @@ module PulpNpmClient
382
409
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
383
410
  # @param npm_npm_repository_href [String]
384
411
  # @param [Hash] opts the optional parameters
385
- # @option opts [String] :fields A list of fields to include in the response.
386
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
412
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
413
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
387
414
  # @return [NpmNpmRepositoryResponse]
388
415
  def read(npm_npm_repository_href, opts = {})
389
416
  data, _status_code, _headers = read_with_http_info(npm_npm_repository_href, opts)
@@ -394,8 +421,8 @@ module PulpNpmClient
394
421
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
395
422
  # @param npm_npm_repository_href [String]
396
423
  # @param [Hash] opts the optional parameters
397
- # @option opts [String] :fields A list of fields to include in the response.
398
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
424
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
425
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
399
426
  # @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
400
427
  def read_with_http_info(npm_npm_repository_href, opts = {})
401
428
  if @api_client.config.debugging
@@ -410,8 +437,8 @@ module PulpNpmClient
410
437
 
411
438
  # query parameters
412
439
  query_params = opts[:query_params] || {}
413
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
414
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
440
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
441
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
415
442
 
416
443
  # header parameters
417
444
  header_params = opts[:header_params] || {}
@@ -88,7 +88,7 @@ module PulpNpmClient
88
88
  # @option opts [String] :content Content Unit referenced by HREF
89
89
  # @option opts [String] :content__in Content Unit referenced by HREF
90
90
  # @option opts [Integer] :limit Number of results to return per page.
91
- # @option opts [Integer] :number
91
+ # @option opts [Integer] :number Filter results where number matches value
92
92
  # @option opts [Integer] :number__gt Filter results where number is greater than value
93
93
  # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
94
94
  # @option opts [Integer] :number__lt Filter results where number is less than value
@@ -96,14 +96,14 @@ module PulpNpmClient
96
96
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
97
97
  # @option opts [Integer] :offset The initial index from which to return the results.
98
98
  # @option opts [Array<String>] :ordering Ordering
99
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
99
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
100
100
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
101
101
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
102
102
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
103
103
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
104
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
- # @option opts [String] :fields A list of fields to include in the response.
106
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
105
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
106
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
107
107
  # @return [PaginatedRepositoryVersionResponseList]
108
108
  def list(npm_npm_repository_href, opts = {})
109
109
  data, _status_code, _headers = list_with_http_info(npm_npm_repository_href, opts)
@@ -117,7 +117,7 @@ module PulpNpmClient
117
117
  # @option opts [String] :content Content Unit referenced by HREF
118
118
  # @option opts [String] :content__in Content Unit referenced by HREF
119
119
  # @option opts [Integer] :limit Number of results to return per page.
120
- # @option opts [Integer] :number
120
+ # @option opts [Integer] :number Filter results where number matches value
121
121
  # @option opts [Integer] :number__gt Filter results where number is greater than value
122
122
  # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
123
123
  # @option opts [Integer] :number__lt Filter results where number is less than value
@@ -125,14 +125,14 @@ module PulpNpmClient
125
125
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
126
126
  # @option opts [Integer] :offset The initial index from which to return the results.
127
127
  # @option opts [Array<String>] :ordering Ordering
128
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
128
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
129
129
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
130
130
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
131
131
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
132
132
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
133
133
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
134
- # @option opts [String] :fields A list of fields to include in the response.
135
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
134
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
135
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
136
136
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
137
137
  def list_with_http_info(npm_npm_repository_href, opts = {})
138
138
  if @api_client.config.debugging
@@ -142,7 +142,7 @@ module PulpNpmClient
142
142
  if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmVersionsApi.list"
144
144
  end
145
- allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
145
+ allowable_values = ["-complete", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
146
146
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
147
147
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
148
148
  end
@@ -168,8 +168,8 @@ module PulpNpmClient
168
168
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
169
169
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
170
170
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
171
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
172
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
171
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
172
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
173
173
 
174
174
  # header parameters
175
175
  header_params = opts[:header_params] || {}
@@ -208,8 +208,8 @@ module PulpNpmClient
208
208
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
209
209
  # @param npm_npm_repository_version_href [String]
210
210
  # @param [Hash] opts the optional parameters
211
- # @option opts [String] :fields A list of fields to include in the response.
212
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
211
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
212
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
213
213
  # @return [RepositoryVersionResponse]
214
214
  def read(npm_npm_repository_version_href, opts = {})
215
215
  data, _status_code, _headers = read_with_http_info(npm_npm_repository_version_href, opts)
@@ -220,8 +220,8 @@ module PulpNpmClient
220
220
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
221
221
  # @param npm_npm_repository_version_href [String]
222
222
  # @param [Hash] opts the optional parameters
223
- # @option opts [String] :fields A list of fields to include in the response.
224
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
223
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
224
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
225
225
  # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
226
226
  def read_with_http_info(npm_npm_repository_version_href, opts = {})
227
227
  if @api_client.config.debugging
@@ -236,8 +236,8 @@ module PulpNpmClient
236
236
 
237
237
  # query parameters
238
238
  query_params = opts[:query_params] || {}
239
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
240
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
239
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
240
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
241
241
 
242
242
  # header parameters
243
243
  header_params = opts[:header_params] || {}
@@ -154,7 +154,7 @@ module PulpNpmClient
154
154
  case value
155
155
  when ::File, ::Tempfile
156
156
  # TODO hardcode to application/octet-stream, need better way to detect content type
157
- data[key] = Faraday::UploadIO.new(value.path, 'application/octet-stream', value.path)
157
+ data[key] = Faraday::FilePart.new(value.path, 'application/octet-stream', value.path)
158
158
  when ::Array, nil
159
159
  # let Faraday handle Array and nil parameters
160
160
  data[key] = value
@@ -45,7 +45,7 @@ module PulpNpmClient
45
45
  {
46
46
  :'base_path' => :'String',
47
47
  :'content_guard' => :'String',
48
- :'pulp_labels' => :'Object',
48
+ :'pulp_labels' => :'Hash<String, String>',
49
49
  :'name' => :'String',
50
50
  :'repository' => :'String'
51
51
  }
@@ -83,7 +83,9 @@ module PulpNpmClient
83
83
  end
84
84
 
85
85
  if attributes.key?(:'pulp_labels')
86
- self.pulp_labels = attributes[:'pulp_labels']
86
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
87
+ self.pulp_labels = value
88
+ end
87
89
  end
88
90
 
89
91
  if attributes.key?(:'name')