pulp_maven_client 0.1.0b2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +79 -0
- data/README.md +119 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/ContentApi.md +188 -0
- data/docs/DistributionsApi.md +352 -0
- data/docs/InlineResponse200.md +23 -0
- data/docs/InlineResponse2001.md +23 -0
- data/docs/InlineResponse2002.md +23 -0
- data/docs/MavenArtifact.md +33 -0
- data/docs/MavenDistribution.md +29 -0
- data/docs/MavenRemote.md +47 -0
- data/docs/RemotesApi.md +356 -0
- data/git_push.sh +55 -0
- data/lib/pulp_maven_client/api/content_api.rb +231 -0
- data/lib/pulp_maven_client/api/distributions_api.rb +430 -0
- data/lib/pulp_maven_client/api/remotes_api.rb +436 -0
- data/lib/pulp_maven_client/api_client.rb +387 -0
- data/lib/pulp_maven_client/api_error.rb +57 -0
- data/lib/pulp_maven_client/configuration.rb +251 -0
- data/lib/pulp_maven_client/models/async_operation_response.rb +202 -0
- data/lib/pulp_maven_client/models/inline_response200.rb +235 -0
- data/lib/pulp_maven_client/models/inline_response2001.rb +235 -0
- data/lib/pulp_maven_client/models/inline_response2002.rb +235 -0
- data/lib/pulp_maven_client/models/maven_artifact.rb +379 -0
- data/lib/pulp_maven_client/models/maven_distribution.rb +337 -0
- data/lib/pulp_maven_client/models/maven_remote.rb +549 -0
- data/lib/pulp_maven_client/version.rb +15 -0
- data/lib/pulp_maven_client.rb +49 -0
- data/pulp_maven_client.gemspec +45 -0
- data/spec/api/content_api_spec.rb +79 -0
- data/spec/api/distributions_api_spec.rb +116 -0
- data/spec/api/remotes_api_spec.rb +118 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/async_operation_response_spec.rb +41 -0
- data/spec/models/inline_response2001_spec.rb +59 -0
- data/spec/models/inline_response2002_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +59 -0
- data/spec/models/maven_artifact_spec.rb +89 -0
- data/spec/models/maven_distribution_spec.rb +77 -0
- data/spec/models/maven_remote_spec.rb +135 -0
- data/spec/spec_helper.rb +111 -0
- metadata +281 -0
@@ -0,0 +1,436 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module PulpMavenClient
|
16
|
+
class RemotesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a maven remote
|
23
|
+
# A ViewSet for MavenRemote.
|
24
|
+
# @param data [MavenRemote]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [MavenRemote]
|
27
|
+
def remotes_maven_maven_create(data, opts = {})
|
28
|
+
data, _status_code, _headers = remotes_maven_maven_create_with_http_info(data, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create a maven remote
|
33
|
+
# A ViewSet for MavenRemote.
|
34
|
+
# @param data [MavenRemote]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(MavenRemote, Integer, Hash)>] MavenRemote data, response status code and response headers
|
37
|
+
def remotes_maven_maven_create_with_http_info(data, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: RemotesApi.remotes_maven_maven_create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'data' is set
|
42
|
+
if @api_client.config.client_side_validation && data.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesApi.remotes_maven_maven_create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/remotes/maven/maven/'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'MavenRemote'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['Basic']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: RemotesApi#remotes_maven_maven_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Delete a maven remote
|
87
|
+
# Trigger an asynchronous delete task
|
88
|
+
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [AsyncOperationResponse]
|
91
|
+
def remotes_maven_maven_delete(maven_remote_href, opts = {})
|
92
|
+
data, _status_code, _headers = remotes_maven_maven_delete_with_http_info(maven_remote_href, opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# Delete a maven remote
|
97
|
+
# Trigger an asynchronous delete task
|
98
|
+
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
101
|
+
def remotes_maven_maven_delete_with_http_info(maven_remote_href, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: RemotesApi.remotes_maven_maven_delete ...'
|
104
|
+
end
|
105
|
+
# verify the required parameter 'maven_remote_href' is set
|
106
|
+
if @api_client.config.client_side_validation && maven_remote_href.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling RemotesApi.remotes_maven_maven_delete"
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', maven_remote_href.to_s)
|
111
|
+
|
112
|
+
# query parameters
|
113
|
+
query_params = opts[:query_params] || {}
|
114
|
+
|
115
|
+
# header parameters
|
116
|
+
header_params = opts[:header_params] || {}
|
117
|
+
# HTTP header 'Accept' (if needed)
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
119
|
+
|
120
|
+
# form parameters
|
121
|
+
form_params = opts[:form_params] || {}
|
122
|
+
|
123
|
+
# http body (model)
|
124
|
+
post_body = opts[:body]
|
125
|
+
|
126
|
+
# return_type
|
127
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
128
|
+
|
129
|
+
# auth_names
|
130
|
+
auth_names = opts[:auth_names] || ['Basic']
|
131
|
+
|
132
|
+
new_options = opts.merge(
|
133
|
+
:header_params => header_params,
|
134
|
+
:query_params => query_params,
|
135
|
+
:form_params => form_params,
|
136
|
+
:body => post_body,
|
137
|
+
:auth_names => auth_names,
|
138
|
+
:return_type => return_type
|
139
|
+
)
|
140
|
+
|
141
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
142
|
+
if @api_client.config.debugging
|
143
|
+
@api_client.config.logger.debug "API called: RemotesApi#remotes_maven_maven_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
|
+
end
|
145
|
+
return data, status_code, headers
|
146
|
+
end
|
147
|
+
|
148
|
+
# List maven remotes
|
149
|
+
# A ViewSet for MavenRemote.
|
150
|
+
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :name
|
152
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
153
|
+
# @option opts [String] :_last_updated__lt Filter results where _last_updated is less than value
|
154
|
+
# @option opts [String] :_last_updated__lte Filter results where _last_updated is less than or equal to value
|
155
|
+
# @option opts [String] :_last_updated__gt Filter results where _last_updated is greater than value
|
156
|
+
# @option opts [String] :_last_updated__gte Filter results where _last_updated is greater than or equal to value
|
157
|
+
# @option opts [String] :_last_updated__range Filter results where _last_updated is between two comma separated values
|
158
|
+
# @option opts [String] :_last_updated ISO 8601 formatted dates are supported
|
159
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
160
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
161
|
+
# @return [InlineResponse2002]
|
162
|
+
def remotes_maven_maven_list(opts = {})
|
163
|
+
data, _status_code, _headers = remotes_maven_maven_list_with_http_info(opts)
|
164
|
+
data
|
165
|
+
end
|
166
|
+
|
167
|
+
# List maven remotes
|
168
|
+
# A ViewSet for MavenRemote.
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @option opts [String] :name
|
171
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
172
|
+
# @option opts [String] :_last_updated__lt Filter results where _last_updated is less than value
|
173
|
+
# @option opts [String] :_last_updated__lte Filter results where _last_updated is less than or equal to value
|
174
|
+
# @option opts [String] :_last_updated__gt Filter results where _last_updated is greater than value
|
175
|
+
# @option opts [String] :_last_updated__gte Filter results where _last_updated is greater than or equal to value
|
176
|
+
# @option opts [String] :_last_updated__range Filter results where _last_updated is between two comma separated values
|
177
|
+
# @option opts [String] :_last_updated ISO 8601 formatted dates are supported
|
178
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
179
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
180
|
+
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
181
|
+
def remotes_maven_maven_list_with_http_info(opts = {})
|
182
|
+
if @api_client.config.debugging
|
183
|
+
@api_client.config.logger.debug 'Calling API: RemotesApi.remotes_maven_maven_list ...'
|
184
|
+
end
|
185
|
+
# resource path
|
186
|
+
local_var_path = '/pulp/api/v3/remotes/maven/maven/'
|
187
|
+
|
188
|
+
# query parameters
|
189
|
+
query_params = opts[:query_params] || {}
|
190
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
191
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
192
|
+
query_params[:'_last_updated__lt'] = opts[:'_last_updated__lt'] if !opts[:'_last_updated__lt'].nil?
|
193
|
+
query_params[:'_last_updated__lte'] = opts[:'_last_updated__lte'] if !opts[:'_last_updated__lte'].nil?
|
194
|
+
query_params[:'_last_updated__gt'] = opts[:'_last_updated__gt'] if !opts[:'_last_updated__gt'].nil?
|
195
|
+
query_params[:'_last_updated__gte'] = opts[:'_last_updated__gte'] if !opts[:'_last_updated__gte'].nil?
|
196
|
+
query_params[:'_last_updated__range'] = opts[:'_last_updated__range'] if !opts[:'_last_updated__range'].nil?
|
197
|
+
query_params[:'_last_updated'] = opts[:'_last_updated'] if !opts[:'_last_updated'].nil?
|
198
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
199
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
200
|
+
|
201
|
+
# header parameters
|
202
|
+
header_params = opts[:header_params] || {}
|
203
|
+
# HTTP header 'Accept' (if needed)
|
204
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
205
|
+
|
206
|
+
# form parameters
|
207
|
+
form_params = opts[:form_params] || {}
|
208
|
+
|
209
|
+
# http body (model)
|
210
|
+
post_body = opts[:body]
|
211
|
+
|
212
|
+
# return_type
|
213
|
+
return_type = opts[:return_type] || 'InlineResponse2002'
|
214
|
+
|
215
|
+
# auth_names
|
216
|
+
auth_names = opts[:auth_names] || ['Basic']
|
217
|
+
|
218
|
+
new_options = opts.merge(
|
219
|
+
:header_params => header_params,
|
220
|
+
:query_params => query_params,
|
221
|
+
:form_params => form_params,
|
222
|
+
:body => post_body,
|
223
|
+
:auth_names => auth_names,
|
224
|
+
:return_type => return_type
|
225
|
+
)
|
226
|
+
|
227
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
228
|
+
if @api_client.config.debugging
|
229
|
+
@api_client.config.logger.debug "API called: RemotesApi#remotes_maven_maven_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
230
|
+
end
|
231
|
+
return data, status_code, headers
|
232
|
+
end
|
233
|
+
|
234
|
+
# Partially update a maven remote
|
235
|
+
# Trigger an asynchronous partial update task
|
236
|
+
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
237
|
+
# @param data [MavenRemote]
|
238
|
+
# @param [Hash] opts the optional parameters
|
239
|
+
# @return [AsyncOperationResponse]
|
240
|
+
def remotes_maven_maven_partial_update(maven_remote_href, data, opts = {})
|
241
|
+
data, _status_code, _headers = remotes_maven_maven_partial_update_with_http_info(maven_remote_href, data, opts)
|
242
|
+
data
|
243
|
+
end
|
244
|
+
|
245
|
+
# Partially update a maven remote
|
246
|
+
# Trigger an asynchronous partial update task
|
247
|
+
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
248
|
+
# @param data [MavenRemote]
|
249
|
+
# @param [Hash] opts the optional parameters
|
250
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
251
|
+
def remotes_maven_maven_partial_update_with_http_info(maven_remote_href, data, opts = {})
|
252
|
+
if @api_client.config.debugging
|
253
|
+
@api_client.config.logger.debug 'Calling API: RemotesApi.remotes_maven_maven_partial_update ...'
|
254
|
+
end
|
255
|
+
# verify the required parameter 'maven_remote_href' is set
|
256
|
+
if @api_client.config.client_side_validation && maven_remote_href.nil?
|
257
|
+
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling RemotesApi.remotes_maven_maven_partial_update"
|
258
|
+
end
|
259
|
+
# verify the required parameter 'data' is set
|
260
|
+
if @api_client.config.client_side_validation && data.nil?
|
261
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesApi.remotes_maven_maven_partial_update"
|
262
|
+
end
|
263
|
+
# resource path
|
264
|
+
local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', maven_remote_href.to_s)
|
265
|
+
|
266
|
+
# query parameters
|
267
|
+
query_params = opts[:query_params] || {}
|
268
|
+
|
269
|
+
# header parameters
|
270
|
+
header_params = opts[:header_params] || {}
|
271
|
+
# HTTP header 'Accept' (if needed)
|
272
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
273
|
+
# HTTP header 'Content-Type'
|
274
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
275
|
+
|
276
|
+
# form parameters
|
277
|
+
form_params = opts[:form_params] || {}
|
278
|
+
|
279
|
+
# http body (model)
|
280
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
281
|
+
|
282
|
+
# return_type
|
283
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
284
|
+
|
285
|
+
# auth_names
|
286
|
+
auth_names = opts[:auth_names] || ['Basic']
|
287
|
+
|
288
|
+
new_options = opts.merge(
|
289
|
+
:header_params => header_params,
|
290
|
+
:query_params => query_params,
|
291
|
+
:form_params => form_params,
|
292
|
+
:body => post_body,
|
293
|
+
:auth_names => auth_names,
|
294
|
+
:return_type => return_type
|
295
|
+
)
|
296
|
+
|
297
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
298
|
+
if @api_client.config.debugging
|
299
|
+
@api_client.config.logger.debug "API called: RemotesApi#remotes_maven_maven_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
300
|
+
end
|
301
|
+
return data, status_code, headers
|
302
|
+
end
|
303
|
+
|
304
|
+
# Inspect a maven remote
|
305
|
+
# A ViewSet for MavenRemote.
|
306
|
+
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
307
|
+
# @param [Hash] opts the optional parameters
|
308
|
+
# @return [MavenRemote]
|
309
|
+
def remotes_maven_maven_read(maven_remote_href, opts = {})
|
310
|
+
data, _status_code, _headers = remotes_maven_maven_read_with_http_info(maven_remote_href, opts)
|
311
|
+
data
|
312
|
+
end
|
313
|
+
|
314
|
+
# Inspect a maven remote
|
315
|
+
# A ViewSet for MavenRemote.
|
316
|
+
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
317
|
+
# @param [Hash] opts the optional parameters
|
318
|
+
# @return [Array<(MavenRemote, Integer, Hash)>] MavenRemote data, response status code and response headers
|
319
|
+
def remotes_maven_maven_read_with_http_info(maven_remote_href, opts = {})
|
320
|
+
if @api_client.config.debugging
|
321
|
+
@api_client.config.logger.debug 'Calling API: RemotesApi.remotes_maven_maven_read ...'
|
322
|
+
end
|
323
|
+
# verify the required parameter 'maven_remote_href' is set
|
324
|
+
if @api_client.config.client_side_validation && maven_remote_href.nil?
|
325
|
+
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling RemotesApi.remotes_maven_maven_read"
|
326
|
+
end
|
327
|
+
# resource path
|
328
|
+
local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', maven_remote_href.to_s)
|
329
|
+
|
330
|
+
# query parameters
|
331
|
+
query_params = opts[:query_params] || {}
|
332
|
+
|
333
|
+
# header parameters
|
334
|
+
header_params = opts[:header_params] || {}
|
335
|
+
# HTTP header 'Accept' (if needed)
|
336
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
337
|
+
|
338
|
+
# form parameters
|
339
|
+
form_params = opts[:form_params] || {}
|
340
|
+
|
341
|
+
# http body (model)
|
342
|
+
post_body = opts[:body]
|
343
|
+
|
344
|
+
# return_type
|
345
|
+
return_type = opts[:return_type] || 'MavenRemote'
|
346
|
+
|
347
|
+
# auth_names
|
348
|
+
auth_names = opts[:auth_names] || ['Basic']
|
349
|
+
|
350
|
+
new_options = opts.merge(
|
351
|
+
:header_params => header_params,
|
352
|
+
:query_params => query_params,
|
353
|
+
:form_params => form_params,
|
354
|
+
:body => post_body,
|
355
|
+
:auth_names => auth_names,
|
356
|
+
:return_type => return_type
|
357
|
+
)
|
358
|
+
|
359
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
360
|
+
if @api_client.config.debugging
|
361
|
+
@api_client.config.logger.debug "API called: RemotesApi#remotes_maven_maven_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
362
|
+
end
|
363
|
+
return data, status_code, headers
|
364
|
+
end
|
365
|
+
|
366
|
+
# Update a maven remote
|
367
|
+
# Trigger an asynchronous update task
|
368
|
+
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
369
|
+
# @param data [MavenRemote]
|
370
|
+
# @param [Hash] opts the optional parameters
|
371
|
+
# @return [AsyncOperationResponse]
|
372
|
+
def remotes_maven_maven_update(maven_remote_href, data, opts = {})
|
373
|
+
data, _status_code, _headers = remotes_maven_maven_update_with_http_info(maven_remote_href, data, opts)
|
374
|
+
data
|
375
|
+
end
|
376
|
+
|
377
|
+
# Update a maven remote
|
378
|
+
# Trigger an asynchronous update task
|
379
|
+
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
380
|
+
# @param data [MavenRemote]
|
381
|
+
# @param [Hash] opts the optional parameters
|
382
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
383
|
+
def remotes_maven_maven_update_with_http_info(maven_remote_href, data, opts = {})
|
384
|
+
if @api_client.config.debugging
|
385
|
+
@api_client.config.logger.debug 'Calling API: RemotesApi.remotes_maven_maven_update ...'
|
386
|
+
end
|
387
|
+
# verify the required parameter 'maven_remote_href' is set
|
388
|
+
if @api_client.config.client_side_validation && maven_remote_href.nil?
|
389
|
+
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling RemotesApi.remotes_maven_maven_update"
|
390
|
+
end
|
391
|
+
# verify the required parameter 'data' is set
|
392
|
+
if @api_client.config.client_side_validation && data.nil?
|
393
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesApi.remotes_maven_maven_update"
|
394
|
+
end
|
395
|
+
# resource path
|
396
|
+
local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', maven_remote_href.to_s)
|
397
|
+
|
398
|
+
# query parameters
|
399
|
+
query_params = opts[:query_params] || {}
|
400
|
+
|
401
|
+
# header parameters
|
402
|
+
header_params = opts[:header_params] || {}
|
403
|
+
# HTTP header 'Accept' (if needed)
|
404
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
405
|
+
# HTTP header 'Content-Type'
|
406
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
407
|
+
|
408
|
+
# form parameters
|
409
|
+
form_params = opts[:form_params] || {}
|
410
|
+
|
411
|
+
# http body (model)
|
412
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
413
|
+
|
414
|
+
# return_type
|
415
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
416
|
+
|
417
|
+
# auth_names
|
418
|
+
auth_names = opts[:auth_names] || ['Basic']
|
419
|
+
|
420
|
+
new_options = opts.merge(
|
421
|
+
:header_params => header_params,
|
422
|
+
:query_params => query_params,
|
423
|
+
:form_params => form_params,
|
424
|
+
:body => post_body,
|
425
|
+
:auth_names => auth_names,
|
426
|
+
:return_type => return_type
|
427
|
+
)
|
428
|
+
|
429
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
430
|
+
if @api_client.config.debugging
|
431
|
+
@api_client.config.logger.debug "API called: RemotesApi#remotes_maven_maven_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
432
|
+
end
|
433
|
+
return data, status_code, headers
|
434
|
+
end
|
435
|
+
end
|
436
|
+
end
|