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
|
-
# Create a npm distribution
|
23
22
|
# Trigger an asynchronous create task
|
24
|
-
# @param
|
23
|
+
# @param npm_npm_distribution [NpmNpmDistribution]
|
25
24
|
# @param [Hash] opts the optional parameters
|
26
25
|
# @return [AsyncOperationResponse]
|
27
|
-
def create(
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
26
|
+
def create(npm_npm_distribution, opts = {})
|
27
|
+
data, _status_code, _headers = create_with_http_info(npm_npm_distribution, opts)
|
29
28
|
data
|
30
29
|
end
|
31
30
|
|
32
|
-
# Create a npm distribution
|
33
31
|
# Trigger an asynchronous create task
|
34
|
-
# @param
|
32
|
+
# @param npm_npm_distribution [NpmNpmDistribution]
|
35
33
|
# @param [Hash] opts the optional parameters
|
36
34
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
|
-
def create_with_http_info(
|
35
|
+
def create_with_http_info(npm_npm_distribution, opts = {})
|
38
36
|
if @api_client.config.debugging
|
39
37
|
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.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_distribution' is set
|
40
|
+
if @api_client.config.client_side_validation && npm_npm_distribution.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_distribution' when calling DistributionsNpmApi.create"
|
44
42
|
end
|
45
43
|
# resource path
|
46
44
|
local_var_path = '/pulp/api/v3/distributions/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_distribution)
|
63
61
|
|
64
62
|
# return_type
|
65
63
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
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,32 @@ module PulpNpmClient
|
|
83
81
|
return data, status_code, headers
|
84
82
|
end
|
85
83
|
|
86
|
-
# Delete a npm distribution
|
87
84
|
# Trigger an asynchronous delete task
|
88
|
-
# @param npm_distribution_href [String]
|
85
|
+
# @param npm_distribution_href [String]
|
89
86
|
# @param [Hash] opts the optional parameters
|
87
|
+
# @option opts [String] :base_path base_path
|
88
|
+
# @option opts [String] :base_path__contains base_path__contains
|
89
|
+
# @option opts [String] :base_path__icontains base_path__icontains
|
90
|
+
# @option opts [String] :base_path__in base_path__in
|
91
|
+
# @option opts [String] :name name
|
92
|
+
# @option opts [String] :name__in name__in
|
93
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
90
94
|
# @return [AsyncOperationResponse]
|
91
95
|
def delete(npm_distribution_href, opts = {})
|
92
96
|
data, _status_code, _headers = delete_with_http_info(npm_distribution_href, opts)
|
93
97
|
data
|
94
98
|
end
|
95
99
|
|
96
|
-
# Delete a npm distribution
|
97
100
|
# Trigger an asynchronous delete task
|
98
|
-
# @param npm_distribution_href [String]
|
101
|
+
# @param npm_distribution_href [String]
|
99
102
|
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [String] :base_path base_path
|
104
|
+
# @option opts [String] :base_path__contains base_path__contains
|
105
|
+
# @option opts [String] :base_path__icontains base_path__icontains
|
106
|
+
# @option opts [String] :base_path__in base_path__in
|
107
|
+
# @option opts [String] :name name
|
108
|
+
# @option opts [String] :name__in name__in
|
109
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
100
110
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
101
111
|
def delete_with_http_info(npm_distribution_href, opts = {})
|
102
112
|
if @api_client.config.debugging
|
@@ -111,6 +121,13 @@ module PulpNpmClient
|
|
111
121
|
|
112
122
|
# query parameters
|
113
123
|
query_params = opts[:query_params] || {}
|
124
|
+
query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
|
125
|
+
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
126
|
+
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
127
|
+
query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
|
128
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
129
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
130
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
114
131
|
|
115
132
|
# header parameters
|
116
133
|
header_params = opts[:header_params] || {}
|
@@ -127,7 +144,7 @@ module PulpNpmClient
|
|
127
144
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
128
145
|
|
129
146
|
# auth_names
|
130
|
-
auth_names = opts[:auth_names] || ['
|
147
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
131
148
|
|
132
149
|
new_options = opts.merge(
|
133
150
|
:header_params => header_params,
|
@@ -145,18 +162,17 @@ module PulpNpmClient
|
|
145
162
|
return data, status_code, headers
|
146
163
|
end
|
147
164
|
|
148
|
-
# List npm distributions
|
149
165
|
# ViewSet for NPM Distributions.
|
150
166
|
# @param [Hash] opts the optional parameters
|
151
|
-
# @option opts [String] :
|
152
|
-
# @option opts [String] :
|
153
|
-
# @option opts [String] :
|
154
|
-
# @option opts [String] :
|
155
|
-
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
156
|
-
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
157
|
-
# @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
|
167
|
+
# @option opts [String] :base_path base_path
|
168
|
+
# @option opts [String] :base_path__contains base_path__contains
|
169
|
+
# @option opts [String] :base_path__icontains base_path__icontains
|
170
|
+
# @option opts [String] :base_path__in base_path__in
|
158
171
|
# @option opts [Integer] :limit Number of results to return per page.
|
172
|
+
# @option opts [String] :name name
|
173
|
+
# @option opts [String] :name__in name__in
|
159
174
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
175
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
160
176
|
# @option opts [String] :fields A list of fields to include in the response.
|
161
177
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
162
178
|
# @return [InlineResponse2001]
|
@@ -165,18 +181,17 @@ module PulpNpmClient
|
|
165
181
|
data
|
166
182
|
end
|
167
183
|
|
168
|
-
# List npm distributions
|
169
184
|
# ViewSet for NPM Distributions.
|
170
185
|
# @param [Hash] opts the optional parameters
|
171
|
-
# @option opts [String] :
|
172
|
-
# @option opts [String] :
|
173
|
-
# @option opts [String] :
|
174
|
-
# @option opts [String] :
|
175
|
-
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
176
|
-
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
177
|
-
# @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
|
186
|
+
# @option opts [String] :base_path base_path
|
187
|
+
# @option opts [String] :base_path__contains base_path__contains
|
188
|
+
# @option opts [String] :base_path__icontains base_path__icontains
|
189
|
+
# @option opts [String] :base_path__in base_path__in
|
178
190
|
# @option opts [Integer] :limit Number of results to return per page.
|
191
|
+
# @option opts [String] :name name
|
192
|
+
# @option opts [String] :name__in name__in
|
179
193
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
194
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
180
195
|
# @option opts [String] :fields A list of fields to include in the response.
|
181
196
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
182
197
|
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
@@ -189,15 +204,15 @@ module PulpNpmClient
|
|
189
204
|
|
190
205
|
# query parameters
|
191
206
|
query_params = opts[:query_params] || {}
|
192
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
193
|
-
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
194
|
-
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
195
207
|
query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
|
196
208
|
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
197
209
|
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
198
210
|
query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
|
199
211
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
212
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
213
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
200
214
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
215
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
201
216
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
202
217
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
203
218
|
|
@@ -216,7 +231,7 @@ module PulpNpmClient
|
|
216
231
|
return_type = opts[:return_type] || 'InlineResponse2001'
|
217
232
|
|
218
233
|
# auth_names
|
219
|
-
auth_names = opts[:auth_names] || ['
|
234
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
220
235
|
|
221
236
|
new_options = opts.merge(
|
222
237
|
:header_params => header_params,
|
@@ -234,24 +249,36 @@ module PulpNpmClient
|
|
234
249
|
return data, status_code, headers
|
235
250
|
end
|
236
251
|
|
237
|
-
# Partially update a npm distribution
|
238
252
|
# Trigger an asynchronous partial update task
|
239
|
-
# @param npm_distribution_href [String]
|
240
|
-
# @param
|
253
|
+
# @param npm_distribution_href [String]
|
254
|
+
# @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
|
241
255
|
# @param [Hash] opts the optional parameters
|
256
|
+
# @option opts [String] :base_path base_path
|
257
|
+
# @option opts [String] :base_path__contains base_path__contains
|
258
|
+
# @option opts [String] :base_path__icontains base_path__icontains
|
259
|
+
# @option opts [String] :base_path__in base_path__in
|
260
|
+
# @option opts [String] :name name
|
261
|
+
# @option opts [String] :name__in name__in
|
262
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
242
263
|
# @return [AsyncOperationResponse]
|
243
|
-
def partial_update(npm_distribution_href,
|
244
|
-
data, _status_code, _headers = partial_update_with_http_info(npm_distribution_href,
|
264
|
+
def partial_update(npm_distribution_href, patchednpm_npm_distribution, opts = {})
|
265
|
+
data, _status_code, _headers = partial_update_with_http_info(npm_distribution_href, patchednpm_npm_distribution, opts)
|
245
266
|
data
|
246
267
|
end
|
247
268
|
|
248
|
-
# Partially update a npm distribution
|
249
269
|
# Trigger an asynchronous partial update task
|
250
|
-
# @param npm_distribution_href [String]
|
251
|
-
# @param
|
270
|
+
# @param npm_distribution_href [String]
|
271
|
+
# @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
|
252
272
|
# @param [Hash] opts the optional parameters
|
273
|
+
# @option opts [String] :base_path base_path
|
274
|
+
# @option opts [String] :base_path__contains base_path__contains
|
275
|
+
# @option opts [String] :base_path__icontains base_path__icontains
|
276
|
+
# @option opts [String] :base_path__in base_path__in
|
277
|
+
# @option opts [String] :name name
|
278
|
+
# @option opts [String] :name__in name__in
|
279
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
253
280
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
254
|
-
def partial_update_with_http_info(npm_distribution_href,
|
281
|
+
def partial_update_with_http_info(npm_distribution_href, patchednpm_npm_distribution, opts = {})
|
255
282
|
if @api_client.config.debugging
|
256
283
|
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.partial_update ...'
|
257
284
|
end
|
@@ -259,34 +286,41 @@ module PulpNpmClient
|
|
259
286
|
if @api_client.config.client_side_validation && npm_distribution_href.nil?
|
260
287
|
fail ArgumentError, "Missing the required parameter 'npm_distribution_href' when calling DistributionsNpmApi.partial_update"
|
261
288
|
end
|
262
|
-
# verify the required parameter '
|
263
|
-
if @api_client.config.client_side_validation &&
|
264
|
-
fail ArgumentError, "Missing the required parameter '
|
289
|
+
# verify the required parameter 'patchednpm_npm_distribution' is set
|
290
|
+
if @api_client.config.client_side_validation && patchednpm_npm_distribution.nil?
|
291
|
+
fail ArgumentError, "Missing the required parameter 'patchednpm_npm_distribution' when calling DistributionsNpmApi.partial_update"
|
265
292
|
end
|
266
293
|
# resource path
|
267
294
|
local_var_path = '{npm_distribution_href}'.sub('{' + 'npm_distribution_href' + '}', CGI.escape(npm_distribution_href.to_s).gsub('%2F', '/'))
|
268
295
|
|
269
296
|
# query parameters
|
270
297
|
query_params = opts[:query_params] || {}
|
298
|
+
query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
|
299
|
+
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
300
|
+
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
301
|
+
query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
|
302
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
303
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
304
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
271
305
|
|
272
306
|
# header parameters
|
273
307
|
header_params = opts[:header_params] || {}
|
274
308
|
# HTTP header 'Accept' (if needed)
|
275
309
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
276
310
|
# HTTP header 'Content-Type'
|
277
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
311
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
278
312
|
|
279
313
|
# form parameters
|
280
314
|
form_params = opts[:form_params] || {}
|
281
315
|
|
282
316
|
# http body (model)
|
283
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
317
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patchednpm_npm_distribution)
|
284
318
|
|
285
319
|
# return_type
|
286
320
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
287
321
|
|
288
322
|
# auth_names
|
289
|
-
auth_names = opts[:auth_names] || ['
|
323
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
290
324
|
|
291
325
|
new_options = opts.merge(
|
292
326
|
:header_params => header_params,
|
@@ -304,25 +338,23 @@ module PulpNpmClient
|
|
304
338
|
return data, status_code, headers
|
305
339
|
end
|
306
340
|
|
307
|
-
# Inspect a npm distribution
|
308
341
|
# ViewSet for NPM Distributions.
|
309
|
-
# @param npm_distribution_href [String]
|
342
|
+
# @param npm_distribution_href [String]
|
310
343
|
# @param [Hash] opts the optional parameters
|
311
344
|
# @option opts [String] :fields A list of fields to include in the response.
|
312
345
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
313
|
-
# @return [
|
346
|
+
# @return [NpmNpmDistributionResponse]
|
314
347
|
def read(npm_distribution_href, opts = {})
|
315
348
|
data, _status_code, _headers = read_with_http_info(npm_distribution_href, opts)
|
316
349
|
data
|
317
350
|
end
|
318
351
|
|
319
|
-
# Inspect a npm distribution
|
320
352
|
# ViewSet for NPM Distributions.
|
321
|
-
# @param npm_distribution_href [String]
|
353
|
+
# @param npm_distribution_href [String]
|
322
354
|
# @param [Hash] opts the optional parameters
|
323
355
|
# @option opts [String] :fields A list of fields to include in the response.
|
324
356
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
325
|
-
# @return [Array<(
|
357
|
+
# @return [Array<(NpmNpmDistributionResponse, Integer, Hash)>] NpmNpmDistributionResponse data, response status code and response headers
|
326
358
|
def read_with_http_info(npm_distribution_href, opts = {})
|
327
359
|
if @api_client.config.debugging
|
328
360
|
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.read ...'
|
@@ -351,10 +383,10 @@ module PulpNpmClient
|
|
351
383
|
post_body = opts[:body]
|
352
384
|
|
353
385
|
# return_type
|
354
|
-
return_type = opts[:return_type] || '
|
386
|
+
return_type = opts[:return_type] || 'NpmNpmDistributionResponse'
|
355
387
|
|
356
388
|
# auth_names
|
357
|
-
auth_names = opts[:auth_names] || ['
|
389
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
358
390
|
|
359
391
|
new_options = opts.merge(
|
360
392
|
:header_params => header_params,
|
@@ -372,24 +404,36 @@ module PulpNpmClient
|
|
372
404
|
return data, status_code, headers
|
373
405
|
end
|
374
406
|
|
375
|
-
# Update a npm distribution
|
376
407
|
# Trigger an asynchronous update task
|
377
|
-
# @param npm_distribution_href [String]
|
378
|
-
# @param
|
408
|
+
# @param npm_distribution_href [String]
|
409
|
+
# @param npm_npm_distribution [NpmNpmDistribution]
|
379
410
|
# @param [Hash] opts the optional parameters
|
411
|
+
# @option opts [String] :base_path base_path
|
412
|
+
# @option opts [String] :base_path__contains base_path__contains
|
413
|
+
# @option opts [String] :base_path__icontains base_path__icontains
|
414
|
+
# @option opts [String] :base_path__in base_path__in
|
415
|
+
# @option opts [String] :name name
|
416
|
+
# @option opts [String] :name__in name__in
|
417
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
380
418
|
# @return [AsyncOperationResponse]
|
381
|
-
def update(npm_distribution_href,
|
382
|
-
data, _status_code, _headers = update_with_http_info(npm_distribution_href,
|
419
|
+
def update(npm_distribution_href, npm_npm_distribution, opts = {})
|
420
|
+
data, _status_code, _headers = update_with_http_info(npm_distribution_href, npm_npm_distribution, opts)
|
383
421
|
data
|
384
422
|
end
|
385
423
|
|
386
|
-
# Update a npm distribution
|
387
424
|
# Trigger an asynchronous update task
|
388
|
-
# @param npm_distribution_href [String]
|
389
|
-
# @param
|
425
|
+
# @param npm_distribution_href [String]
|
426
|
+
# @param npm_npm_distribution [NpmNpmDistribution]
|
390
427
|
# @param [Hash] opts the optional parameters
|
428
|
+
# @option opts [String] :base_path base_path
|
429
|
+
# @option opts [String] :base_path__contains base_path__contains
|
430
|
+
# @option opts [String] :base_path__icontains base_path__icontains
|
431
|
+
# @option opts [String] :base_path__in base_path__in
|
432
|
+
# @option opts [String] :name name
|
433
|
+
# @option opts [String] :name__in name__in
|
434
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
391
435
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
392
|
-
def update_with_http_info(npm_distribution_href,
|
436
|
+
def update_with_http_info(npm_distribution_href, npm_npm_distribution, opts = {})
|
393
437
|
if @api_client.config.debugging
|
394
438
|
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.update ...'
|
395
439
|
end
|
@@ -397,34 +441,41 @@ module PulpNpmClient
|
|
397
441
|
if @api_client.config.client_side_validation && npm_distribution_href.nil?
|
398
442
|
fail ArgumentError, "Missing the required parameter 'npm_distribution_href' when calling DistributionsNpmApi.update"
|
399
443
|
end
|
400
|
-
# verify the required parameter '
|
401
|
-
if @api_client.config.client_side_validation &&
|
402
|
-
fail ArgumentError, "Missing the required parameter '
|
444
|
+
# verify the required parameter 'npm_npm_distribution' is set
|
445
|
+
if @api_client.config.client_side_validation && npm_npm_distribution.nil?
|
446
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_distribution' when calling DistributionsNpmApi.update"
|
403
447
|
end
|
404
448
|
# resource path
|
405
449
|
local_var_path = '{npm_distribution_href}'.sub('{' + 'npm_distribution_href' + '}', CGI.escape(npm_distribution_href.to_s).gsub('%2F', '/'))
|
406
450
|
|
407
451
|
# query parameters
|
408
452
|
query_params = opts[:query_params] || {}
|
453
|
+
query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
|
454
|
+
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
455
|
+
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
456
|
+
query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
|
457
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
458
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
459
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
409
460
|
|
410
461
|
# header parameters
|
411
462
|
header_params = opts[:header_params] || {}
|
412
463
|
# HTTP header 'Accept' (if needed)
|
413
464
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
414
465
|
# HTTP header 'Content-Type'
|
415
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
466
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
416
467
|
|
417
468
|
# form parameters
|
418
469
|
form_params = opts[:form_params] || {}
|
419
470
|
|
420
471
|
# http body (model)
|
421
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
472
|
+
post_body = opts[:body] || @api_client.object_to_http_body(npm_npm_distribution)
|
422
473
|
|
423
474
|
# return_type
|
424
475
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
425
476
|
|
426
477
|
# auth_names
|
427
|
-
auth_names = opts[:auth_names] || ['
|
478
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
428
479
|
|
429
480
|
new_options = opts.merge(
|
430
481
|
:header_params => header_params,
|
@@ -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 [NpmNpmRemote]
|
22
|
+
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
23
|
+
# @param npm_npm_remote [NpmNpmRemote]
|
25
24
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
27
|
-
def create(
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
25
|
+
# @return [NpmNpmRemoteResponse]
|
26
|
+
def create(npm_npm_remote, opts = {})
|
27
|
+
data, _status_code, _headers = create_with_http_info(npm_npm_remote, opts)
|
29
28
|
data
|
30
29
|
end
|
31
30
|
|
32
|
-
#
|
33
|
-
#
|
34
|
-
# @param data [NpmNpmRemote]
|
31
|
+
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
32
|
+
# @param npm_npm_remote [NpmNpmRemote]
|
35
33
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
37
|
-
def create_with_http_info(
|
34
|
+
# @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
|
35
|
+
def create_with_http_info(npm_npm_remote, opts = {})
|
38
36
|
if @api_client.config.debugging
|
39
37
|
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.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_remote' is set
|
40
|
+
if @api_client.config.client_side_validation && npm_npm_remote.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote' when calling RemotesNpmApi.create"
|
44
42
|
end
|
45
43
|
# resource path
|
46
44
|
local_var_path = '/pulp/api/v3/remotes/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_remote)
|
63
61
|
|
64
62
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
63
|
+
return_type = opts[:return_type] || 'NpmNpmRemoteResponse'
|
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,36 @@ module PulpNpmClient
|
|
83
81
|
return data, status_code, headers
|
84
82
|
end
|
85
83
|
|
86
|
-
# Delete a npm remote
|
87
84
|
# Trigger an asynchronous delete task
|
88
|
-
# @param npm_remote_href [String]
|
85
|
+
# @param npm_remote_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
|
+
# @option opts [String] :pulp_last_updated pulp_last_updated
|
91
|
+
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
92
|
+
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
93
|
+
# @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
|
94
|
+
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
95
|
+
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
90
96
|
# @return [AsyncOperationResponse]
|
91
97
|
def delete(npm_remote_href, opts = {})
|
92
98
|
data, _status_code, _headers = delete_with_http_info(npm_remote_href, opts)
|
93
99
|
data
|
94
100
|
end
|
95
101
|
|
96
|
-
# Delete a npm remote
|
97
102
|
# Trigger an asynchronous delete task
|
98
|
-
# @param npm_remote_href [String]
|
103
|
+
# @param npm_remote_href [String]
|
99
104
|
# @param [Hash] opts the optional parameters
|
105
|
+
# @option opts [String] :name name
|
106
|
+
# @option opts [String] :name__in name__in
|
107
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
108
|
+
# @option opts [String] :pulp_last_updated pulp_last_updated
|
109
|
+
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
110
|
+
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
111
|
+
# @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
|
112
|
+
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
113
|
+
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
100
114
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
101
115
|
def delete_with_http_info(npm_remote_href, opts = {})
|
102
116
|
if @api_client.config.debugging
|
@@ -111,6 +125,15 @@ module PulpNpmClient
|
|
111
125
|
|
112
126
|
# query parameters
|
113
127
|
query_params = opts[:query_params] || {}
|
128
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
129
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
130
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
131
|
+
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
132
|
+
query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
|
133
|
+
query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
|
134
|
+
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
135
|
+
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
136
|
+
query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
|
114
137
|
|
115
138
|
# header parameters
|
116
139
|
header_params = opts[:header_params] || {}
|
@@ -127,7 +150,7 @@ module PulpNpmClient
|
|
127
150
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
128
151
|
|
129
152
|
# auth_names
|
130
|
-
auth_names = opts[:auth_names] || ['
|
153
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
131
154
|
|
132
155
|
new_options = opts.merge(
|
133
156
|
:header_params => header_params,
|
@@ -145,20 +168,19 @@ module PulpNpmClient
|
|
145
168
|
return data, status_code, headers
|
146
169
|
end
|
147
170
|
|
148
|
-
#
|
149
|
-
# Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
171
|
+
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
150
172
|
# @param [Hash] opts the optional parameters
|
151
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
152
|
-
# @option opts [String] :name
|
153
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
154
|
-
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
155
|
-
# @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
156
|
-
# @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
157
|
-
# @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
158
|
-
# @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
159
|
-
# @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
|
160
173
|
# @option opts [Integer] :limit Number of results to return per page.
|
174
|
+
# @option opts [String] :name name
|
175
|
+
# @option opts [String] :name__in name__in
|
161
176
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
177
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
178
|
+
# @option opts [String] :pulp_last_updated pulp_last_updated
|
179
|
+
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
180
|
+
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
181
|
+
# @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
|
182
|
+
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
183
|
+
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
162
184
|
# @option opts [String] :fields A list of fields to include in the response.
|
163
185
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
164
186
|
# @return [InlineResponse2002]
|
@@ -167,20 +189,19 @@ module PulpNpmClient
|
|
167
189
|
data
|
168
190
|
end
|
169
191
|
|
170
|
-
#
|
171
|
-
# Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
192
|
+
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
172
193
|
# @param [Hash] opts the optional parameters
|
173
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
174
|
-
# @option opts [String] :name
|
175
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
176
|
-
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
177
|
-
# @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
178
|
-
# @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
179
|
-
# @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
180
|
-
# @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
181
|
-
# @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
|
182
194
|
# @option opts [Integer] :limit Number of results to return per page.
|
195
|
+
# @option opts [String] :name name
|
196
|
+
# @option opts [String] :name__in name__in
|
183
197
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
198
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
199
|
+
# @option opts [String] :pulp_last_updated pulp_last_updated
|
200
|
+
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
201
|
+
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
202
|
+
# @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
|
203
|
+
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
204
|
+
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
184
205
|
# @option opts [String] :fields A list of fields to include in the response.
|
185
206
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
186
207
|
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
@@ -193,17 +214,17 @@ module PulpNpmClient
|
|
193
214
|
|
194
215
|
# query parameters
|
195
216
|
query_params = opts[:query_params] || {}
|
196
|
-
query_params[:'
|
217
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
197
218
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
198
219
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
199
|
-
query_params[:'
|
200
|
-
query_params[:'
|
220
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
221
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
222
|
+
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
201
223
|
query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
|
202
224
|
query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
|
225
|
+
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
226
|
+
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
203
227
|
query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
|
204
|
-
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
205
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
206
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
207
228
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
208
229
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
209
230
|
|
@@ -222,7 +243,7 @@ module PulpNpmClient
|
|
222
243
|
return_type = opts[:return_type] || 'InlineResponse2002'
|
223
244
|
|
224
245
|
# auth_names
|
225
|
-
auth_names = opts[:auth_names] || ['
|
246
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
226
247
|
|
227
248
|
new_options = opts.merge(
|
228
249
|
:header_params => header_params,
|
@@ -240,24 +261,40 @@ module PulpNpmClient
|
|
240
261
|
return data, status_code, headers
|
241
262
|
end
|
242
263
|
|
243
|
-
# Partially update a npm remote
|
244
264
|
# Trigger an asynchronous partial update task
|
245
|
-
# @param npm_remote_href [String]
|
246
|
-
# @param
|
265
|
+
# @param npm_remote_href [String]
|
266
|
+
# @param patchednpm_npm_remote [PatchednpmNpmRemote]
|
247
267
|
# @param [Hash] opts the optional parameters
|
268
|
+
# @option opts [String] :name name
|
269
|
+
# @option opts [String] :name__in name__in
|
270
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
271
|
+
# @option opts [String] :pulp_last_updated pulp_last_updated
|
272
|
+
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
273
|
+
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
274
|
+
# @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
|
275
|
+
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
276
|
+
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
248
277
|
# @return [AsyncOperationResponse]
|
249
|
-
def partial_update(npm_remote_href,
|
250
|
-
data, _status_code, _headers = partial_update_with_http_info(npm_remote_href,
|
278
|
+
def partial_update(npm_remote_href, patchednpm_npm_remote, opts = {})
|
279
|
+
data, _status_code, _headers = partial_update_with_http_info(npm_remote_href, patchednpm_npm_remote, opts)
|
251
280
|
data
|
252
281
|
end
|
253
282
|
|
254
|
-
# Partially update a npm remote
|
255
283
|
# Trigger an asynchronous partial update task
|
256
|
-
# @param npm_remote_href [String]
|
257
|
-
# @param
|
284
|
+
# @param npm_remote_href [String]
|
285
|
+
# @param patchednpm_npm_remote [PatchednpmNpmRemote]
|
258
286
|
# @param [Hash] opts the optional parameters
|
287
|
+
# @option opts [String] :name name
|
288
|
+
# @option opts [String] :name__in name__in
|
289
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
290
|
+
# @option opts [String] :pulp_last_updated pulp_last_updated
|
291
|
+
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
292
|
+
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
293
|
+
# @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
|
294
|
+
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
295
|
+
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
259
296
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
260
|
-
def partial_update_with_http_info(npm_remote_href,
|
297
|
+
def partial_update_with_http_info(npm_remote_href, patchednpm_npm_remote, opts = {})
|
261
298
|
if @api_client.config.debugging
|
262
299
|
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.partial_update ...'
|
263
300
|
end
|
@@ -265,34 +302,43 @@ module PulpNpmClient
|
|
265
302
|
if @api_client.config.client_side_validation && npm_remote_href.nil?
|
266
303
|
fail ArgumentError, "Missing the required parameter 'npm_remote_href' when calling RemotesNpmApi.partial_update"
|
267
304
|
end
|
268
|
-
# verify the required parameter '
|
269
|
-
if @api_client.config.client_side_validation &&
|
270
|
-
fail ArgumentError, "Missing the required parameter '
|
305
|
+
# verify the required parameter 'patchednpm_npm_remote' is set
|
306
|
+
if @api_client.config.client_side_validation && patchednpm_npm_remote.nil?
|
307
|
+
fail ArgumentError, "Missing the required parameter 'patchednpm_npm_remote' when calling RemotesNpmApi.partial_update"
|
271
308
|
end
|
272
309
|
# resource path
|
273
310
|
local_var_path = '{npm_remote_href}'.sub('{' + 'npm_remote_href' + '}', CGI.escape(npm_remote_href.to_s).gsub('%2F', '/'))
|
274
311
|
|
275
312
|
# query parameters
|
276
313
|
query_params = opts[:query_params] || {}
|
314
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
315
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
316
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
317
|
+
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
318
|
+
query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
|
319
|
+
query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
|
320
|
+
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
321
|
+
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
322
|
+
query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
|
277
323
|
|
278
324
|
# header parameters
|
279
325
|
header_params = opts[:header_params] || {}
|
280
326
|
# HTTP header 'Accept' (if needed)
|
281
327
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
282
328
|
# HTTP header 'Content-Type'
|
283
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
329
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
284
330
|
|
285
331
|
# form parameters
|
286
332
|
form_params = opts[:form_params] || {}
|
287
333
|
|
288
334
|
# http body (model)
|
289
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
335
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patchednpm_npm_remote)
|
290
336
|
|
291
337
|
# return_type
|
292
338
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
293
339
|
|
294
340
|
# auth_names
|
295
|
-
auth_names = opts[:auth_names] || ['
|
341
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
296
342
|
|
297
343
|
new_options = opts.merge(
|
298
344
|
:header_params => header_params,
|
@@ -310,25 +356,23 @@ module PulpNpmClient
|
|
310
356
|
return data, status_code, headers
|
311
357
|
end
|
312
358
|
|
313
|
-
#
|
314
|
-
#
|
315
|
-
# @param npm_remote_href [String] URI of Npm Remote. e.g.: /pulp/api/v3/remotes/npm/npm/1/
|
359
|
+
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
360
|
+
# @param npm_remote_href [String]
|
316
361
|
# @param [Hash] opts the optional parameters
|
317
362
|
# @option opts [String] :fields A list of fields to include in the response.
|
318
363
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
319
|
-
# @return [
|
364
|
+
# @return [NpmNpmRemoteResponse]
|
320
365
|
def read(npm_remote_href, opts = {})
|
321
366
|
data, _status_code, _headers = read_with_http_info(npm_remote_href, opts)
|
322
367
|
data
|
323
368
|
end
|
324
369
|
|
325
|
-
#
|
326
|
-
#
|
327
|
-
# @param npm_remote_href [String] URI of Npm Remote. e.g.: /pulp/api/v3/remotes/npm/npm/1/
|
370
|
+
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
371
|
+
# @param npm_remote_href [String]
|
328
372
|
# @param [Hash] opts the optional parameters
|
329
373
|
# @option opts [String] :fields A list of fields to include in the response.
|
330
374
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
331
|
-
# @return [Array<(
|
375
|
+
# @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
|
332
376
|
def read_with_http_info(npm_remote_href, opts = {})
|
333
377
|
if @api_client.config.debugging
|
334
378
|
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.read ...'
|
@@ -357,10 +401,10 @@ module PulpNpmClient
|
|
357
401
|
post_body = opts[:body]
|
358
402
|
|
359
403
|
# return_type
|
360
|
-
return_type = opts[:return_type] || '
|
404
|
+
return_type = opts[:return_type] || 'NpmNpmRemoteResponse'
|
361
405
|
|
362
406
|
# auth_names
|
363
|
-
auth_names = opts[:auth_names] || ['
|
407
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
364
408
|
|
365
409
|
new_options = opts.merge(
|
366
410
|
:header_params => header_params,
|
@@ -378,24 +422,40 @@ module PulpNpmClient
|
|
378
422
|
return data, status_code, headers
|
379
423
|
end
|
380
424
|
|
381
|
-
# Update a npm remote
|
382
425
|
# Trigger an asynchronous update task
|
383
|
-
# @param npm_remote_href [String]
|
384
|
-
# @param
|
426
|
+
# @param npm_remote_href [String]
|
427
|
+
# @param npm_npm_remote [NpmNpmRemote]
|
385
428
|
# @param [Hash] opts the optional parameters
|
429
|
+
# @option opts [String] :name name
|
430
|
+
# @option opts [String] :name__in name__in
|
431
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
432
|
+
# @option opts [String] :pulp_last_updated pulp_last_updated
|
433
|
+
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
434
|
+
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
435
|
+
# @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
|
436
|
+
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
437
|
+
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
386
438
|
# @return [AsyncOperationResponse]
|
387
|
-
def update(npm_remote_href,
|
388
|
-
data, _status_code, _headers = update_with_http_info(npm_remote_href,
|
439
|
+
def update(npm_remote_href, npm_npm_remote, opts = {})
|
440
|
+
data, _status_code, _headers = update_with_http_info(npm_remote_href, npm_npm_remote, opts)
|
389
441
|
data
|
390
442
|
end
|
391
443
|
|
392
|
-
# Update a npm remote
|
393
444
|
# Trigger an asynchronous update task
|
394
|
-
# @param npm_remote_href [String]
|
395
|
-
# @param
|
445
|
+
# @param npm_remote_href [String]
|
446
|
+
# @param npm_npm_remote [NpmNpmRemote]
|
396
447
|
# @param [Hash] opts the optional parameters
|
448
|
+
# @option opts [String] :name name
|
449
|
+
# @option opts [String] :name__in name__in
|
450
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
451
|
+
# @option opts [String] :pulp_last_updated pulp_last_updated
|
452
|
+
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
453
|
+
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
454
|
+
# @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
|
455
|
+
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
456
|
+
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
397
457
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
398
|
-
def update_with_http_info(npm_remote_href,
|
458
|
+
def update_with_http_info(npm_remote_href, npm_npm_remote, opts = {})
|
399
459
|
if @api_client.config.debugging
|
400
460
|
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.update ...'
|
401
461
|
end
|
@@ -403,34 +463,43 @@ module PulpNpmClient
|
|
403
463
|
if @api_client.config.client_side_validation && npm_remote_href.nil?
|
404
464
|
fail ArgumentError, "Missing the required parameter 'npm_remote_href' when calling RemotesNpmApi.update"
|
405
465
|
end
|
406
|
-
# verify the required parameter '
|
407
|
-
if @api_client.config.client_side_validation &&
|
408
|
-
fail ArgumentError, "Missing the required parameter '
|
466
|
+
# verify the required parameter 'npm_npm_remote' is set
|
467
|
+
if @api_client.config.client_side_validation && npm_npm_remote.nil?
|
468
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote' when calling RemotesNpmApi.update"
|
409
469
|
end
|
410
470
|
# resource path
|
411
471
|
local_var_path = '{npm_remote_href}'.sub('{' + 'npm_remote_href' + '}', CGI.escape(npm_remote_href.to_s).gsub('%2F', '/'))
|
412
472
|
|
413
473
|
# query parameters
|
414
474
|
query_params = opts[:query_params] || {}
|
475
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
476
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
477
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
478
|
+
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
479
|
+
query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
|
480
|
+
query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
|
481
|
+
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
482
|
+
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
483
|
+
query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
|
415
484
|
|
416
485
|
# header parameters
|
417
486
|
header_params = opts[:header_params] || {}
|
418
487
|
# HTTP header 'Accept' (if needed)
|
419
488
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
420
489
|
# HTTP header 'Content-Type'
|
421
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
490
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
422
491
|
|
423
492
|
# form parameters
|
424
493
|
form_params = opts[:form_params] || {}
|
425
494
|
|
426
495
|
# http body (model)
|
427
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
496
|
+
post_body = opts[:body] || @api_client.object_to_http_body(npm_npm_remote)
|
428
497
|
|
429
498
|
# return_type
|
430
499
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
431
500
|
|
432
501
|
# auth_names
|
433
|
-
auth_names = opts[:auth_names] || ['
|
502
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
434
503
|
|
435
504
|
new_options = opts.merge(
|
436
505
|
:header_params => header_params,
|