pulp_npm_client 0.1.0a4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -10
  3. data/docs/AsyncOperationResponse.md +8 -7
  4. data/docs/ContentPackagesApi.md +126 -64
  5. data/docs/ContentSummaryResponse.md +12 -11
  6. data/docs/DistributionsNpmApi.md +362 -93
  7. data/docs/NpmNpmDistribution.md +18 -15
  8. data/docs/NpmNpmDistributionResponse.md +30 -21
  9. data/docs/NpmNpmRemote.md +48 -47
  10. data/docs/NpmNpmRemoteResponse.md +48 -43
  11. data/docs/NpmNpmRemoteResponseHiddenFieldsInner.md +20 -0
  12. data/docs/NpmNpmRepository.md +16 -15
  13. data/docs/NpmNpmRepositoryResponse.md +28 -23
  14. data/docs/NpmPackageResponse.md +22 -17
  15. data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
  16. data/docs/PaginatednpmNpmDistributionResponseList.md +14 -13
  17. data/docs/PaginatednpmNpmRemoteResponseList.md +14 -13
  18. data/docs/PaginatednpmNpmRepositoryResponseList.md +14 -13
  19. data/docs/PaginatednpmPackageResponseList.md +14 -13
  20. data/docs/PatchednpmNpmDistribution.md +18 -15
  21. data/docs/PatchednpmNpmRemote.md +48 -47
  22. data/docs/PatchednpmNpmRepository.md +16 -15
  23. data/docs/PolicyEnum.md +4 -5
  24. data/docs/RemotesNpmApi.md +364 -99
  25. data/docs/Repair.md +8 -7
  26. data/docs/RepositoriesNpmApi.md +429 -110
  27. data/docs/RepositoriesNpmVersionsApi.md +156 -80
  28. data/docs/RepositoryAddRemoveContent.md +12 -11
  29. data/docs/RepositorySyncURL.md +10 -9
  30. data/docs/RepositoryVersionResponse.md +22 -17
  31. data/docs/SetLabel.md +20 -0
  32. data/docs/SetLabelResponse.md +20 -0
  33. data/docs/UnsetLabel.md +18 -0
  34. data/docs/UnsetLabelResponse.md +20 -0
  35. data/lib/pulp_npm_client/api/content_packages_api.rb +72 -44
  36. data/lib/pulp_npm_client/api/distributions_npm_api.rb +243 -47
  37. data/lib/pulp_npm_client/api/remotes_npm_api.rb +247 -57
  38. data/lib/pulp_npm_client/api/repositories_npm_api.rb +283 -55
  39. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +71 -52
  40. data/lib/pulp_npm_client/api_client.rb +137 -102
  41. data/lib/pulp_npm_client/api_error.rb +2 -1
  42. data/lib/pulp_npm_client/configuration.rb +163 -22
  43. data/lib/pulp_npm_client/models/async_operation_response.rb +32 -22
  44. data/lib/pulp_npm_client/models/content_summary_response.rb +36 -22
  45. data/lib/pulp_npm_client/models/npm_npm_distribution.rb +51 -25
  46. data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +83 -27
  47. data/lib/pulp_npm_client/models/npm_npm_remote.rb +61 -25
  48. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +99 -41
  49. data/lib/pulp_npm_client/models/npm_npm_remote_response_hidden_fields_inner.rb +237 -0
  50. data/lib/pulp_npm_client/models/npm_npm_repository.rb +37 -25
  51. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +59 -27
  52. data/lib/pulp_npm_client/models/npm_package_response.rb +58 -24
  53. data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +44 -22
  54. data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +44 -22
  55. data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +44 -22
  56. data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +44 -22
  57. data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +44 -22
  58. data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +57 -27
  59. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +67 -27
  60. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +40 -26
  61. data/lib/pulp_npm_client/models/policy_enum.rb +8 -4
  62. data/lib/pulp_npm_client/models/repair.rb +30 -22
  63. data/lib/pulp_npm_client/models/repository_add_remove_content.rb +33 -25
  64. data/lib/pulp_npm_client/models/repository_sync_url.rb +30 -22
  65. data/lib/pulp_npm_client/models/repository_version_response.rb +53 -25
  66. data/lib/pulp_npm_client/models/set_label.rb +264 -0
  67. data/lib/pulp_npm_client/models/set_label_response.rb +255 -0
  68. data/lib/pulp_npm_client/models/unset_label.rb +252 -0
  69. data/lib/pulp_npm_client/models/unset_label_response.rb +252 -0
  70. data/lib/pulp_npm_client/version.rb +2 -2
  71. data/lib/pulp_npm_client.rb +6 -3
  72. data/pulp_npm_client.gemspec +10 -7
  73. data/spec/api/content_packages_api_spec.rb +22 -16
  74. data/spec/api/distributions_npm_api_spec.rb +51 -14
  75. data/spec/api/remotes_npm_api_spec.rb +54 -19
  76. data/spec/api/repositories_npm_api_spec.rb +60 -15
  77. data/spec/api/repositories_npm_versions_api_spec.rb +23 -19
  78. data/spec/models/async_operation_response_spec.rb +7 -12
  79. data/spec/models/content_summary_response_spec.rb +9 -14
  80. data/spec/models/npm_npm_distribution_response_spec.rb +38 -19
  81. data/spec/models/npm_npm_distribution_spec.rb +17 -16
  82. data/spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb +42 -0
  83. data/spec/models/npm_npm_remote_response_spec.rb +42 -35
  84. data/spec/models/npm_npm_remote_spec.rb +27 -32
  85. data/spec/models/npm_npm_repository_response_spec.rb +27 -20
  86. data/spec/models/npm_npm_repository_spec.rb +11 -16
  87. data/spec/models/npm_package_response_spec.rb +24 -17
  88. data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
  89. data/spec/models/paginatednpm_npm_distribution_response_list_spec.rb +10 -15
  90. data/spec/models/paginatednpm_npm_remote_response_list_spec.rb +10 -15
  91. data/spec/models/paginatednpm_npm_repository_response_list_spec.rb +10 -15
  92. data/spec/models/paginatednpm_package_response_list_spec.rb +10 -15
  93. data/spec/models/patchednpm_npm_distribution_spec.rb +17 -16
  94. data/spec/models/patchednpm_npm_remote_spec.rb +27 -32
  95. data/spec/models/patchednpm_npm_repository_spec.rb +11 -16
  96. data/spec/models/policy_enum_spec.rb +6 -11
  97. data/spec/models/repair_spec.rb +7 -12
  98. data/spec/models/repository_add_remove_content_spec.rb +9 -14
  99. data/spec/models/repository_sync_url_spec.rb +8 -13
  100. data/spec/models/repository_version_response_spec.rb +24 -17
  101. data/spec/models/set_label_response_spec.rb +42 -0
  102. data/spec/models/set_label_spec.rb +42 -0
  103. data/spec/models/unset_label_response_spec.rb +42 -0
  104. data/spec/models/unset_label_spec.rb +36 -0
  105. data/spec/spec_helper.rb +1 -1
  106. metadata +94 -59
  107. data/docs/NpmPackage.md +0 -29
  108. data/docs/PulpNpmPackagesApi.md +0 -60
  109. data/git_push.sh +0 -58
  110. data/lib/pulp_npm_client/api/pulp_npm_packages_api.rb +0 -86
  111. data/lib/pulp_npm_client/models/npm_package.rb +0 -337
  112. data/spec/api/pulp_npm_packages_api_spec.rb +0 -48
  113. data/spec/api_client_spec.rb +0 -188
  114. data/spec/configuration_spec.rb +0 -42
  115. data/spec/models/npm_package_spec.rb +0 -77
@@ -6,7 +6,7 @@
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
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -20,15 +20,16 @@ module PulpNpmClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create a package
23
- # Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
23
+ # Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved independently, as they are not actually part of the Content model.
24
24
  # @param relative_path [String]
25
25
  # @param name [String]
26
26
  # @param version [String]
27
27
  # @param [Hash] opts the optional parameters
28
- # @option opts [String] :artifact Artifact file representing the physical content
29
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
30
28
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
31
- # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
29
+ # @option opts [String] :artifact Artifact file representing the physical content
30
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
31
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
32
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
32
33
  # @return [NpmPackageResponse]
33
34
  def create(relative_path, name, version, opts = {})
34
35
  data, _status_code, _headers = create_with_http_info(relative_path, name, version, opts)
@@ -36,15 +37,16 @@ module PulpNpmClient
36
37
  end
37
38
 
38
39
  # Create a package
39
- # Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
40
+ # Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved independently, as they are not actually part of the Content model.
40
41
  # @param relative_path [String]
41
42
  # @param name [String]
42
43
  # @param version [String]
43
44
  # @param [Hash] opts the optional parameters
44
- # @option opts [String] :artifact Artifact file representing the physical content
45
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
46
45
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
47
- # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
46
+ # @option opts [String] :artifact Artifact file representing the physical content
47
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
48
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
49
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
48
50
  # @return [Array<(NpmPackageResponse, Integer, Hash)>] NpmPackageResponse data, response status code and response headers
49
51
  def create_with_http_info(relative_path, name, version, opts = {})
50
52
  if @api_client.config.debugging
@@ -74,6 +76,10 @@ module PulpNpmClient
74
76
  fail ArgumentError, 'invalid value for "version" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
75
77
  end
76
78
 
79
+ if @api_client.config.client_side_validation && !opts[:'file_url'].nil? && opts[:'file_url'].to_s.length < 1
80
+ fail ArgumentError, 'invalid value for "opts[:"file_url"]" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
81
+ end
82
+
77
83
  # resource path
78
84
  local_var_path = '/pulp/api/v3/content/npm/packages/'
79
85
 
@@ -83,30 +89,35 @@ module PulpNpmClient
83
89
  # header parameters
84
90
  header_params = opts[:header_params] || {}
85
91
  # HTTP header 'Accept' (if needed)
86
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
92
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
87
93
  # HTTP header 'Content-Type'
88
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
94
+ content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
95
+ if !content_type.nil?
96
+ header_params['Content-Type'] = content_type
97
+ end
89
98
 
90
99
  # form parameters
91
100
  form_params = opts[:form_params] || {}
92
101
  form_params['relative_path'] = relative_path
93
102
  form_params['name'] = name
94
103
  form_params['version'] = version
104
+ form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
95
105
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
96
106
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
97
- form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
98
107
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
108
+ form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
99
109
 
100
110
  # http body (model)
101
- post_body = opts[:body]
111
+ post_body = opts[:debug_body]
102
112
 
103
113
  # return_type
104
- return_type = opts[:return_type] || 'NpmPackageResponse'
114
+ return_type = opts[:debug_return_type] || 'NpmPackageResponse'
105
115
 
106
116
  # auth_names
107
- auth_names = opts[:auth_names] || ['basicAuth']
117
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
108
118
 
109
119
  new_options = opts.merge(
120
+ :operation => :"ContentPackagesApi.create",
110
121
  :header_params => header_params,
111
122
  :query_params => query_params,
112
123
  :form_params => form_params,
@@ -129,12 +140,17 @@ module PulpNpmClient
129
140
  # @option opts [String] :name Filter results where name matches value
130
141
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
131
142
  # @option opts [Integer] :offset The initial index from which to return the results.
132
- # @option opts [Array<String>] :ordering Ordering
133
- # @option opts [String] :repository_version Repository Version referenced by HREF
134
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
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.
143
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
144
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
145
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
146
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
147
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
148
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
149
+ # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
150
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
151
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
152
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
153
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
138
154
  # @return [PaginatednpmPackageResponseList]
139
155
  def list(opts = {})
140
156
  data, _status_code, _headers = list_with_http_info(opts)
@@ -148,18 +164,23 @@ module PulpNpmClient
148
164
  # @option opts [String] :name Filter results where name matches value
149
165
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
150
166
  # @option opts [Integer] :offset The initial index from which to return the results.
151
- # @option opts [Array<String>] :ordering Ordering
152
- # @option opts [String] :repository_version Repository Version referenced by HREF
153
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
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.
167
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
168
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
169
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
170
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
171
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
172
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
173
+ # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
174
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
175
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
176
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
177
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
157
178
  # @return [Array<(PaginatednpmPackageResponseList, Integer, Hash)>] PaginatednpmPackageResponseList data, response status code and response headers
158
179
  def list_with_http_info(opts = {})
159
180
  if @api_client.config.debugging
160
181
  @api_client.config.logger.debug 'Calling API: ContentPackagesApi.list ...'
161
182
  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"]
183
+ 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
184
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
164
185
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
165
186
  end
@@ -173,30 +194,36 @@ module PulpNpmClient
173
194
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
174
195
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
175
196
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
197
+ query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
198
+ query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
199
+ query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
200
+ query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
201
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
176
202
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
177
203
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
178
204
  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?
205
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
206
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
181
207
 
182
208
  # header parameters
183
209
  header_params = opts[:header_params] || {}
184
210
  # HTTP header 'Accept' (if needed)
185
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
211
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
186
212
 
187
213
  # form parameters
188
214
  form_params = opts[:form_params] || {}
189
215
 
190
216
  # http body (model)
191
- post_body = opts[:body]
217
+ post_body = opts[:debug_body]
192
218
 
193
219
  # return_type
194
- return_type = opts[:return_type] || 'PaginatednpmPackageResponseList'
220
+ return_type = opts[:debug_return_type] || 'PaginatednpmPackageResponseList'
195
221
 
196
222
  # auth_names
197
- auth_names = opts[:auth_names] || ['basicAuth']
223
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
198
224
 
199
225
  new_options = opts.merge(
226
+ :operation => :"ContentPackagesApi.list",
200
227
  :header_params => header_params,
201
228
  :query_params => query_params,
202
229
  :form_params => form_params,
@@ -216,8 +243,8 @@ module PulpNpmClient
216
243
  # 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
244
  # @param npm_package_href [String]
218
245
  # @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.
246
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
247
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
221
248
  # @return [NpmPackageResponse]
222
249
  def read(npm_package_href, opts = {})
223
250
  data, _status_code, _headers = read_with_http_info(npm_package_href, opts)
@@ -228,8 +255,8 @@ module PulpNpmClient
228
255
  # 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
256
  # @param npm_package_href [String]
230
257
  # @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.
258
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
259
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
233
260
  # @return [Array<(NpmPackageResponse, Integer, Hash)>] NpmPackageResponse data, response status code and response headers
234
261
  def read_with_http_info(npm_package_href, opts = {})
235
262
  if @api_client.config.debugging
@@ -244,27 +271,28 @@ module PulpNpmClient
244
271
 
245
272
  # query parameters
246
273
  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?
274
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
275
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
249
276
 
250
277
  # header parameters
251
278
  header_params = opts[:header_params] || {}
252
279
  # HTTP header 'Accept' (if needed)
253
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
280
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
254
281
 
255
282
  # form parameters
256
283
  form_params = opts[:form_params] || {}
257
284
 
258
285
  # http body (model)
259
- post_body = opts[:body]
286
+ post_body = opts[:debug_body]
260
287
 
261
288
  # return_type
262
- return_type = opts[:return_type] || 'NpmPackageResponse'
289
+ return_type = opts[:debug_return_type] || 'NpmPackageResponse'
263
290
 
264
291
  # auth_names
265
- auth_names = opts[:auth_names] || ['basicAuth']
292
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
266
293
 
267
294
  new_options = opts.merge(
295
+ :operation => :"ContentPackagesApi.read",
268
296
  :header_params => header_params,
269
297
  :query_params => query_params,
270
298
  :form_params => form_params,