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.
- checksums.yaml +4 -4
- data/README.md +42 -32
- data/docs/ContentPackagesApi.md +33 -36
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsNpmApi.md +113 -71
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/NpmNpmDistribution.md +1 -7
- data/docs/NpmNpmDistributionResponse.md +31 -0
- data/docs/NpmNpmRemote.md +4 -10
- data/docs/NpmNpmRemoteResponse.md +43 -0
- data/docs/NpmNpmRepository.md +4 -10
- data/docs/NpmNpmRepositoryResponse.md +29 -0
- data/docs/NpmPackage.md +5 -5
- data/docs/NpmPackageResponse.md +27 -0
- data/docs/PatchednpmNpmDistribution.md +25 -0
- data/docs/PatchednpmNpmRemote.md +37 -0
- data/docs/PatchednpmNpmRepository.md +21 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/RemotesNpmApi.md +133 -79
- data/docs/RepositoriesNpmApi.md +103 -85
- data/docs/RepositoriesNpmVersionsApi.md +95 -66
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/lib/pulp_npm_client.rb +12 -2
- data/lib/pulp_npm_client/api/content_packages_api.rb +34 -52
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +129 -78
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +163 -94
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +119 -104
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +119 -80
- data/lib/pulp_npm_client/api_client.rb +2 -2
- data/lib/pulp_npm_client/api_error.rb +2 -2
- data/lib/pulp_npm_client/configuration.rb +3 -3
- data/lib/pulp_npm_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_npm_client/models/content_summary.rb +9 -15
- data/lib/pulp_npm_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_npm_client/models/inline_response200.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_npm_client/models/npm_npm_distribution.rb +4 -85
- data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +290 -0
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +7 -199
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +368 -0
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +18 -78
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +271 -0
- data/lib/pulp_npm_client/models/npm_package.rb +24 -79
- data/lib/pulp_npm_client/models/npm_package_response.rb +269 -0
- data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +251 -0
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +329 -0
- data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +229 -0
- data/lib/pulp_npm_client/models/policy_enum.rb +37 -0
- data/lib/pulp_npm_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_npm_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_npm_client/models/repository_version.rb +7 -43
- data/lib/pulp_npm_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_npm_client/version.rb +3 -3
- data/pulp_npm_client.gemspec +4 -4
- data/spec/api/content_packages_api_spec.rb +14 -17
- data/spec/api/distributions_npm_api_spec.rb +38 -23
- data/spec/api/remotes_npm_api_spec.rb +50 -29
- data/spec/api/repositories_npm_api_spec.rb +30 -27
- data/spec/api/repositories_npm_versions_api_spec.rb +38 -26
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/npm_npm_distribution_response_spec.rb +83 -0
- data/spec/models/npm_npm_distribution_spec.rb +2 -20
- data/spec/models/npm_npm_remote_response_spec.rb +119 -0
- data/spec/models/npm_npm_remote_spec.rb +2 -24
- data/spec/models/npm_npm_repository_response_spec.rb +77 -0
- data/spec/models/npm_npm_repository_spec.rb +5 -23
- data/spec/models/npm_package_response_spec.rb +71 -0
- data/spec/models/npm_package_spec.rb +6 -6
- data/spec/models/patchednpm_npm_distribution_spec.rb +65 -0
- data/spec/models/patchednpm_npm_remote_spec.rb +101 -0
- data/spec/models/patchednpm_npm_repository_spec.rb +53 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/spec_helper.rb +2 -2
- metadata +44 -4
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
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
|
-
#
|
23
|
-
#
|
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 [
|
27
|
-
def create(
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
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
|
-
#
|
33
|
-
#
|
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<(
|
37
|
-
def create_with_http_info(
|
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 '
|
42
|
-
if @api_client.config.client_side_validation &&
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
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(
|
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] || '
|
63
|
+
return_type = opts[:return_type] || 'NpmNpmRepositoryResponse'
|
66
64
|
|
67
65
|
# auth_names
|
68
|
-
auth_names = opts[:auth_names] || ['
|
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]
|
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]
|
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] || ['
|
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
|
-
#
|
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
|
-
#
|
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[:'
|
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] || ['
|
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]
|
228
|
-
# @param
|
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,
|
232
|
-
data, _status_code, _headers = modify_with_http_info(npm_repository_href,
|
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]
|
239
|
-
# @param
|
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,
|
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 '
|
251
|
-
if @api_client.config.client_side_validation &&
|
252
|
-
fail ArgumentError, "Missing the required parameter '
|
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(
|
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] || ['
|
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]
|
298
|
-
# @param
|
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,
|
302
|
-
data, _status_code, _headers = partial_update_with_http_info(npm_repository_href,
|
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]
|
309
|
-
# @param
|
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,
|
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 '
|
321
|
-
if @api_client.config.client_side_validation &&
|
322
|
-
fail ArgumentError, "Missing the required parameter '
|
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(
|
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] || ['
|
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
|
-
#
|
366
|
-
#
|
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 [
|
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
|
-
#
|
378
|
-
#
|
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<(
|
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] || '
|
420
|
+
return_type = opts[:return_type] || 'NpmNpmRepositoryResponse'
|
413
421
|
|
414
422
|
# auth_names
|
415
|
-
auth_names = opts[:auth_names] || ['
|
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]
|
436
|
-
# @param
|
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,
|
440
|
-
data, _status_code, _headers = sync_with_http_info(npm_repository_href,
|
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]
|
447
|
-
# @param
|
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,
|
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 '
|
459
|
-
if @api_client.config.client_side_validation &&
|
460
|
-
fail ArgumentError, "Missing the required parameter '
|
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(
|
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] || ['
|
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]
|
506
|
-
# @param
|
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,
|
510
|
-
data, _status_code, _headers = update_with_http_info(npm_repository_href,
|
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]
|
517
|
-
# @param
|
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,
|
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 '
|
529
|
-
if @api_client.config.client_side_validation &&
|
530
|
-
fail ArgumentError, "Missing the required parameter '
|
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(
|
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] || ['
|
570
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
556
571
|
|
557
572
|
new_options = opts.merge(
|
558
573
|
:header_params => header_params,
|