pulp_maven_client 0.2.0b1.dev01595620836 → 0.2.0b1.dev01596139522

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -13
  3. data/docs/ContentArtifactApi.md +32 -32
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsMavenApi.md +104 -56
  7. data/docs/InlineResponse200.md +3 -3
  8. data/docs/InlineResponse2001.md +3 -3
  9. data/docs/InlineResponse2002.md +3 -3
  10. data/docs/InlineResponse2003.md +3 -3
  11. data/docs/InlineResponse2004.md +3 -3
  12. data/docs/MavenMavenArtifact.md +3 -13
  13. data/docs/MavenMavenArtifactResponse.md +29 -0
  14. data/docs/MavenMavenDistribution.md +1 -7
  15. data/docs/MavenMavenDistributionResponse.md +29 -0
  16. data/docs/MavenMavenRemote.md +2 -8
  17. data/docs/MavenMavenRemoteResponse.md +43 -0
  18. data/docs/MavenMavenRepository.md +4 -10
  19. data/docs/MavenMavenRepositoryResponse.md +29 -0
  20. data/docs/PatchedmavenMavenDistribution.md +23 -0
  21. data/docs/PatchedmavenMavenRemote.md +37 -0
  22. data/docs/PatchedmavenMavenRepository.md +21 -0
  23. data/docs/PolicyEnum.md +16 -0
  24. data/docs/RemotesMavenApi.md +121 -61
  25. data/docs/RepositoriesMavenApi.md +73 -49
  26. data/docs/RepositoriesMavenVersionsApi.md +90 -58
  27. data/docs/RepositoryVersion.md +1 -9
  28. data/docs/RepositoryVersionResponse.md +25 -0
  29. data/lib/pulp_maven_client.rb +12 -2
  30. data/lib/pulp_maven_client/api/content_artifact_api.rb +44 -44
  31. data/lib/pulp_maven_client/api/distributions_maven_api.rb +131 -68
  32. data/lib/pulp_maven_client/api/remotes_maven_api.rb +159 -78
  33. data/lib/pulp_maven_client/api/repositories_maven_api.rb +89 -62
  34. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +119 -74
  35. data/lib/pulp_maven_client/api_client.rb +2 -2
  36. data/lib/pulp_maven_client/api_error.rb +2 -2
  37. data/lib/pulp_maven_client/configuration.rb +3 -3
  38. data/lib/pulp_maven_client/models/async_operation_response.rb +3 -2
  39. data/lib/pulp_maven_client/models/content_summary.rb +9 -15
  40. data/lib/pulp_maven_client/models/content_summary_response.rb +240 -0
  41. data/lib/pulp_maven_client/models/inline_response200.rb +3 -13
  42. data/lib/pulp_maven_client/models/inline_response2001.rb +3 -13
  43. data/lib/pulp_maven_client/models/inline_response2002.rb +3 -13
  44. data/lib/pulp_maven_client/models/inline_response2003.rb +3 -13
  45. data/lib/pulp_maven_client/models/inline_response2004.rb +3 -13
  46. data/lib/pulp_maven_client/models/maven_maven_artifact.rb +14 -117
  47. data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +272 -0
  48. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +4 -85
  49. data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +279 -0
  50. data/lib/pulp_maven_client/models/maven_maven_remote.rb +5 -197
  51. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +368 -0
  52. data/lib/pulp_maven_client/models/maven_maven_repository.rb +18 -78
  53. data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +271 -0
  54. data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +240 -0
  55. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +329 -0
  56. data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +229 -0
  57. data/lib/pulp_maven_client/models/policy_enum.rb +36 -0
  58. data/lib/pulp_maven_client/models/repository_version.rb +7 -43
  59. data/lib/pulp_maven_client/models/repository_version_response.rb +246 -0
  60. data/lib/pulp_maven_client/version.rb +3 -3
  61. data/pulp_maven_client.gemspec +4 -4
  62. data/spec/api/content_artifact_api_spec.rb +14 -14
  63. data/spec/api/distributions_maven_api_spec.rb +39 -18
  64. data/spec/api/remotes_maven_api_spec.rb +48 -21
  65. data/spec/api/repositories_maven_api_spec.rb +24 -15
  66. data/spec/api/repositories_maven_versions_api_spec.rb +38 -23
  67. data/spec/api_client_spec.rb +2 -2
  68. data/spec/configuration_spec.rb +2 -2
  69. data/spec/models/async_operation_response_spec.rb +2 -2
  70. data/spec/models/content_summary_response_spec.rb +53 -0
  71. data/spec/models/content_summary_spec.rb +2 -2
  72. data/spec/models/inline_response2001_spec.rb +2 -2
  73. data/spec/models/inline_response2002_spec.rb +2 -2
  74. data/spec/models/inline_response2003_spec.rb +2 -2
  75. data/spec/models/inline_response2004_spec.rb +2 -2
  76. data/spec/models/inline_response200_spec.rb +2 -2
  77. data/spec/models/maven_maven_artifact_response_spec.rb +77 -0
  78. data/spec/models/maven_maven_artifact_spec.rb +3 -33
  79. data/spec/models/maven_maven_distribution_response_spec.rb +77 -0
  80. data/spec/models/maven_maven_distribution_spec.rb +2 -20
  81. data/spec/models/maven_maven_remote_response_spec.rb +119 -0
  82. data/spec/models/maven_maven_remote_spec.rb +2 -24
  83. data/spec/models/maven_maven_repository_response_spec.rb +77 -0
  84. data/spec/models/maven_maven_repository_spec.rb +5 -23
  85. data/spec/models/patchedmaven_maven_distribution_spec.rb +59 -0
  86. data/spec/models/patchedmaven_maven_remote_spec.rb +101 -0
  87. data/spec/models/patchedmaven_maven_repository_spec.rb +53 -0
  88. data/spec/models/policy_enum_spec.rb +35 -0
  89. data/spec/models/repository_version_response_spec.rb +65 -0
  90. data/spec/models/repository_version_spec.rb +2 -26
  91. data/spec/spec_helper.rb +2 -2
  92. metadata +44 -4
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
 
@@ -21,26 +21,26 @@ module PulpMavenClient
21
21
  end
22
22
  # Create a maven repository
23
23
  # A ViewSet for MavenRemote.
24
- # @param data [MavenMavenRepository]
24
+ # @param maven_maven_repository [MavenMavenRepository]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [MavenMavenRepository]
27
- def create(data, opts = {})
28
- data, _status_code, _headers = create_with_http_info(data, opts)
26
+ # @return [MavenMavenRepositoryResponse]
27
+ def create(maven_maven_repository, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(maven_maven_repository, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Create a maven repository
33
33
  # A ViewSet for MavenRemote.
34
- # @param data [MavenMavenRepository]
34
+ # @param maven_maven_repository [MavenMavenRepository]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(MavenMavenRepository, Integer, Hash)>] MavenMavenRepository data, response status code and response headers
37
- def create_with_http_info(data, opts = {})
36
+ # @return [Array<(MavenMavenRepositoryResponse, Integer, Hash)>] MavenMavenRepositoryResponse data, response status code and response headers
37
+ def create_with_http_info(maven_maven_repository, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.create ...'
40
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 RepositoriesMavenApi.create"
41
+ # verify the required parameter 'maven_maven_repository' is set
42
+ if @api_client.config.client_side_validation && maven_maven_repository.nil?
43
+ fail ArgumentError, "Missing the required parameter 'maven_maven_repository' when calling RepositoriesMavenApi.create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/pulp/api/v3/repositories/maven/maven/'
@@ -53,19 +53,19 @@ module PulpMavenClient
53
53
  # HTTP header 'Accept' (if needed)
54
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
57
 
58
58
  # form parameters
59
59
  form_params = opts[:form_params] || {}
60
60
 
61
61
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(data)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(maven_maven_repository)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'MavenMavenRepository'
65
+ return_type = opts[:return_type] || 'MavenMavenRepositoryResponse'
66
66
 
67
67
  # auth_names
68
- auth_names = opts[:auth_names] || ['Basic']
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
69
 
70
70
  new_options = opts.merge(
71
71
  :header_params => header_params,
@@ -85,8 +85,11 @@ module PulpMavenClient
85
85
 
86
86
  # Delete a maven repository
87
87
  # Trigger an asynchronous delete task
88
- # @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
88
+ # @param maven_repository_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
+ # @option opts [String] :name name
91
+ # @option opts [String] :name__in name__in
92
+ # @option opts [String] :ordering Which field to use when ordering the results.
90
93
  # @return [AsyncOperationResponse]
91
94
  def delete(maven_repository_href, opts = {})
92
95
  data, _status_code, _headers = delete_with_http_info(maven_repository_href, opts)
@@ -95,8 +98,11 @@ module PulpMavenClient
95
98
 
96
99
  # Delete a maven repository
97
100
  # Trigger an asynchronous delete task
98
- # @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
101
+ # @param maven_repository_href [String]
99
102
  # @param [Hash] opts the optional parameters
103
+ # @option opts [String] :name name
104
+ # @option opts [String] :name__in name__in
105
+ # @option opts [String] :ordering Which field to use when ordering the results.
100
106
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
107
  def delete_with_http_info(maven_repository_href, opts = {})
102
108
  if @api_client.config.debugging
@@ -111,6 +117,9 @@ module PulpMavenClient
111
117
 
112
118
  # query parameters
113
119
  query_params = opts[:query_params] || {}
120
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
121
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
122
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
114
123
 
115
124
  # header parameters
116
125
  header_params = opts[:header_params] || {}
@@ -127,7 +136,7 @@ module PulpMavenClient
127
136
  return_type = opts[:return_type] || 'AsyncOperationResponse'
128
137
 
129
138
  # auth_names
130
- auth_names = opts[:auth_names] || ['Basic']
139
+ auth_names = opts[:auth_names] || ['basicAuth']
131
140
 
132
141
  new_options = opts.merge(
133
142
  :header_params => header_params,
@@ -148,11 +157,11 @@ module PulpMavenClient
148
157
  # List maven repositorys
149
158
  # A ViewSet for MavenRemote.
150
159
  # @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
160
  # @option opts [Integer] :limit Number of results to return per page.
161
+ # @option opts [String] :name name
162
+ # @option opts [String] :name__in name__in
155
163
  # @option opts [Integer] :offset The initial index from which to return the results.
164
+ # @option opts [String] :ordering Which field to use when ordering the results.
156
165
  # @option opts [String] :fields A list of fields to include in the response.
157
166
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
158
167
  # @return [InlineResponse2003]
@@ -164,11 +173,11 @@ module PulpMavenClient
164
173
  # List maven repositorys
165
174
  # A ViewSet for MavenRemote.
166
175
  # @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
176
  # @option opts [Integer] :limit Number of results to return per page.
177
+ # @option opts [String] :name name
178
+ # @option opts [String] :name__in name__in
171
179
  # @option opts [Integer] :offset The initial index from which to return the results.
180
+ # @option opts [String] :ordering Which field to use when ordering the results.
172
181
  # @option opts [String] :fields A list of fields to include in the response.
173
182
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
174
183
  # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
@@ -181,11 +190,11 @@ module PulpMavenClient
181
190
 
182
191
  # query parameters
183
192
  query_params = opts[:query_params] || {}
184
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
193
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
185
194
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
186
195
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
187
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
188
196
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
197
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
189
198
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
190
199
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
191
200
 
@@ -204,7 +213,7 @@ module PulpMavenClient
204
213
  return_type = opts[:return_type] || 'InlineResponse2003'
205
214
 
206
215
  # auth_names
207
- auth_names = opts[:auth_names] || ['Basic']
216
+ auth_names = opts[:auth_names] || ['basicAuth']
208
217
 
209
218
  new_options = opts.merge(
210
219
  :header_params => header_params,
@@ -222,24 +231,30 @@ module PulpMavenClient
222
231
  return data, status_code, headers
223
232
  end
224
233
 
225
- # Partially update a maven repository
234
+ # Update a maven repository
226
235
  # Trigger an asynchronous partial update task
227
- # @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
228
- # @param data [MavenMavenRepository]
236
+ # @param maven_repository_href [String]
237
+ # @param patchedmaven_maven_repository [PatchedmavenMavenRepository]
229
238
  # @param [Hash] opts the optional parameters
239
+ # @option opts [String] :name name
240
+ # @option opts [String] :name__in name__in
241
+ # @option opts [String] :ordering Which field to use when ordering the results.
230
242
  # @return [AsyncOperationResponse]
231
- def partial_update(maven_repository_href, data, opts = {})
232
- data, _status_code, _headers = partial_update_with_http_info(maven_repository_href, data, opts)
243
+ def partial_update(maven_repository_href, patchedmaven_maven_repository, opts = {})
244
+ data, _status_code, _headers = partial_update_with_http_info(maven_repository_href, patchedmaven_maven_repository, opts)
233
245
  data
234
246
  end
235
247
 
236
- # Partially update a maven repository
248
+ # Update a maven repository
237
249
  # Trigger an asynchronous partial update task
238
- # @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
239
- # @param data [MavenMavenRepository]
250
+ # @param maven_repository_href [String]
251
+ # @param patchedmaven_maven_repository [PatchedmavenMavenRepository]
240
252
  # @param [Hash] opts the optional parameters
253
+ # @option opts [String] :name name
254
+ # @option opts [String] :name__in name__in
255
+ # @option opts [String] :ordering Which field to use when ordering the results.
241
256
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
242
- def partial_update_with_http_info(maven_repository_href, data, opts = {})
257
+ def partial_update_with_http_info(maven_repository_href, patchedmaven_maven_repository, opts = {})
243
258
  if @api_client.config.debugging
244
259
  @api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.partial_update ...'
245
260
  end
@@ -247,34 +262,37 @@ module PulpMavenClient
247
262
  if @api_client.config.client_side_validation && maven_repository_href.nil?
248
263
  fail ArgumentError, "Missing the required parameter 'maven_repository_href' when calling RepositoriesMavenApi.partial_update"
249
264
  end
250
- # verify the required parameter 'data' is set
251
- if @api_client.config.client_side_validation && data.nil?
252
- fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesMavenApi.partial_update"
265
+ # verify the required parameter 'patchedmaven_maven_repository' is set
266
+ if @api_client.config.client_side_validation && patchedmaven_maven_repository.nil?
267
+ fail ArgumentError, "Missing the required parameter 'patchedmaven_maven_repository' when calling RepositoriesMavenApi.partial_update"
253
268
  end
254
269
  # resource path
255
270
  local_var_path = '{maven_repository_href}'.sub('{' + 'maven_repository_href' + '}', CGI.escape(maven_repository_href.to_s).gsub('%2F', '/'))
256
271
 
257
272
  # query parameters
258
273
  query_params = opts[:query_params] || {}
274
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
275
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
276
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
259
277
 
260
278
  # header parameters
261
279
  header_params = opts[:header_params] || {}
262
280
  # HTTP header 'Accept' (if needed)
263
281
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
264
282
  # HTTP header 'Content-Type'
265
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
283
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
266
284
 
267
285
  # form parameters
268
286
  form_params = opts[:form_params] || {}
269
287
 
270
288
  # http body (model)
271
- post_body = opts[:body] || @api_client.object_to_http_body(data)
289
+ post_body = opts[:body] || @api_client.object_to_http_body(patchedmaven_maven_repository)
272
290
 
273
291
  # return_type
274
292
  return_type = opts[:return_type] || 'AsyncOperationResponse'
275
293
 
276
294
  # auth_names
277
- auth_names = opts[:auth_names] || ['Basic']
295
+ auth_names = opts[:auth_names] || ['basicAuth']
278
296
 
279
297
  new_options = opts.merge(
280
298
  :header_params => header_params,
@@ -294,11 +312,11 @@ module PulpMavenClient
294
312
 
295
313
  # Inspect a maven repository
296
314
  # A ViewSet for MavenRemote.
297
- # @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
315
+ # @param maven_repository_href [String]
298
316
  # @param [Hash] opts the optional parameters
299
317
  # @option opts [String] :fields A list of fields to include in the response.
300
318
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
301
- # @return [MavenMavenRepository]
319
+ # @return [MavenMavenRepositoryResponse]
302
320
  def read(maven_repository_href, opts = {})
303
321
  data, _status_code, _headers = read_with_http_info(maven_repository_href, opts)
304
322
  data
@@ -306,11 +324,11 @@ module PulpMavenClient
306
324
 
307
325
  # Inspect a maven repository
308
326
  # A ViewSet for MavenRemote.
309
- # @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
327
+ # @param maven_repository_href [String]
310
328
  # @param [Hash] opts the optional parameters
311
329
  # @option opts [String] :fields A list of fields to include in the response.
312
330
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
313
- # @return [Array<(MavenMavenRepository, Integer, Hash)>] MavenMavenRepository data, response status code and response headers
331
+ # @return [Array<(MavenMavenRepositoryResponse, Integer, Hash)>] MavenMavenRepositoryResponse data, response status code and response headers
314
332
  def read_with_http_info(maven_repository_href, opts = {})
315
333
  if @api_client.config.debugging
316
334
  @api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.read ...'
@@ -339,10 +357,10 @@ module PulpMavenClient
339
357
  post_body = opts[:body]
340
358
 
341
359
  # return_type
342
- return_type = opts[:return_type] || 'MavenMavenRepository'
360
+ return_type = opts[:return_type] || 'MavenMavenRepositoryResponse'
343
361
 
344
362
  # auth_names
345
- auth_names = opts[:auth_names] || ['Basic']
363
+ auth_names = opts[:auth_names] || ['basicAuth']
346
364
 
347
365
  new_options = opts.merge(
348
366
  :header_params => header_params,
@@ -362,22 +380,28 @@ module PulpMavenClient
362
380
 
363
381
  # Update a maven repository
364
382
  # Trigger an asynchronous update task
365
- # @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
366
- # @param data [MavenMavenRepository]
383
+ # @param maven_repository_href [String]
384
+ # @param maven_maven_repository [MavenMavenRepository]
367
385
  # @param [Hash] opts the optional parameters
386
+ # @option opts [String] :name name
387
+ # @option opts [String] :name__in name__in
388
+ # @option opts [String] :ordering Which field to use when ordering the results.
368
389
  # @return [AsyncOperationResponse]
369
- def update(maven_repository_href, data, opts = {})
370
- data, _status_code, _headers = update_with_http_info(maven_repository_href, data, opts)
390
+ def update(maven_repository_href, maven_maven_repository, opts = {})
391
+ data, _status_code, _headers = update_with_http_info(maven_repository_href, maven_maven_repository, opts)
371
392
  data
372
393
  end
373
394
 
374
395
  # Update a maven repository
375
396
  # Trigger an asynchronous update task
376
- # @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
377
- # @param data [MavenMavenRepository]
397
+ # @param maven_repository_href [String]
398
+ # @param maven_maven_repository [MavenMavenRepository]
378
399
  # @param [Hash] opts the optional parameters
400
+ # @option opts [String] :name name
401
+ # @option opts [String] :name__in name__in
402
+ # @option opts [String] :ordering Which field to use when ordering the results.
379
403
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
380
- def update_with_http_info(maven_repository_href, data, opts = {})
404
+ def update_with_http_info(maven_repository_href, maven_maven_repository, opts = {})
381
405
  if @api_client.config.debugging
382
406
  @api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.update ...'
383
407
  end
@@ -385,34 +409,37 @@ module PulpMavenClient
385
409
  if @api_client.config.client_side_validation && maven_repository_href.nil?
386
410
  fail ArgumentError, "Missing the required parameter 'maven_repository_href' when calling RepositoriesMavenApi.update"
387
411
  end
388
- # verify the required parameter 'data' is set
389
- if @api_client.config.client_side_validation && data.nil?
390
- fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesMavenApi.update"
412
+ # verify the required parameter 'maven_maven_repository' is set
413
+ if @api_client.config.client_side_validation && maven_maven_repository.nil?
414
+ fail ArgumentError, "Missing the required parameter 'maven_maven_repository' when calling RepositoriesMavenApi.update"
391
415
  end
392
416
  # resource path
393
417
  local_var_path = '{maven_repository_href}'.sub('{' + 'maven_repository_href' + '}', CGI.escape(maven_repository_href.to_s).gsub('%2F', '/'))
394
418
 
395
419
  # query parameters
396
420
  query_params = opts[:query_params] || {}
421
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
422
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
423
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
397
424
 
398
425
  # header parameters
399
426
  header_params = opts[:header_params] || {}
400
427
  # HTTP header 'Accept' (if needed)
401
428
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
402
429
  # HTTP header 'Content-Type'
403
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
430
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
404
431
 
405
432
  # form parameters
406
433
  form_params = opts[:form_params] || {}
407
434
 
408
435
  # http body (model)
409
- post_body = opts[:body] || @api_client.object_to_http_body(data)
436
+ post_body = opts[:body] || @api_client.object_to_http_body(maven_maven_repository)
410
437
 
411
438
  # return_type
412
439
  return_type = opts[:return_type] || 'AsyncOperationResponse'
413
440
 
414
441
  # auth_names
415
- auth_names = opts[:auth_names] || ['Basic']
442
+ auth_names = opts[:auth_names] || ['basicAuth']
416
443
 
417
444
  new_options = opts.merge(
418
445
  :header_params => header_params,
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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
 
@@ -21,8 +21,23 @@ module PulpMavenClient
21
21
  end
22
22
  # Delete a repository version
23
23
  # Trigger an asynchronous task to delete a repositroy version.
24
- # @param maven_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/maven/maven/1/versions/1/
24
+ # @param maven_repository_version_href [String]
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :content content
27
+ # @option opts [String] :content__in content__in
28
+ # @option opts [String] :number number
29
+ # @option opts [String] :number__gt number__gt
30
+ # @option opts [String] :number__gte number__gte
31
+ # @option opts [String] :number__lt number__lt
32
+ # @option opts [String] :number__lte number__lte
33
+ # @option opts [String] :number__range number__range
34
+ # @option opts [String] :ordering Which field to use when ordering the results.
35
+ # @option opts [String] :pulp_created pulp_created
36
+ # @option opts [String] :pulp_created__gt pulp_created__gt
37
+ # @option opts [String] :pulp_created__gte pulp_created__gte
38
+ # @option opts [String] :pulp_created__lt pulp_created__lt
39
+ # @option opts [String] :pulp_created__lte pulp_created__lte
40
+ # @option opts [String] :pulp_created__range pulp_created__range
26
41
  # @return [AsyncOperationResponse]
27
42
  def delete(maven_repository_version_href, opts = {})
28
43
  data, _status_code, _headers = delete_with_http_info(maven_repository_version_href, opts)
@@ -31,8 +46,23 @@ module PulpMavenClient
31
46
 
32
47
  # Delete a repository version
33
48
  # Trigger an asynchronous task to delete a repositroy version.
34
- # @param maven_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/maven/maven/1/versions/1/
49
+ # @param maven_repository_version_href [String]
35
50
  # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :content content
52
+ # @option opts [String] :content__in content__in
53
+ # @option opts [String] :number number
54
+ # @option opts [String] :number__gt number__gt
55
+ # @option opts [String] :number__gte number__gte
56
+ # @option opts [String] :number__lt number__lt
57
+ # @option opts [String] :number__lte number__lte
58
+ # @option opts [String] :number__range number__range
59
+ # @option opts [String] :ordering Which field to use when ordering the results.
60
+ # @option opts [String] :pulp_created pulp_created
61
+ # @option opts [String] :pulp_created__gt pulp_created__gt
62
+ # @option opts [String] :pulp_created__gte pulp_created__gte
63
+ # @option opts [String] :pulp_created__lt pulp_created__lt
64
+ # @option opts [String] :pulp_created__lte pulp_created__lte
65
+ # @option opts [String] :pulp_created__range pulp_created__range
36
66
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
67
  def delete_with_http_info(maven_repository_version_href, opts = {})
38
68
  if @api_client.config.debugging
@@ -47,6 +77,21 @@ module PulpMavenClient
47
77
 
48
78
  # query parameters
49
79
  query_params = opts[:query_params] || {}
80
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
81
+ query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
82
+ query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
83
+ query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
84
+ query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
85
+ query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
86
+ query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
87
+ query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
88
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
89
+ query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
90
+ query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
91
+ query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
92
+ query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
93
+ query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
94
+ query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
50
95
 
51
96
  # header parameters
52
97
  header_params = opts[:header_params] || {}
@@ -63,7 +108,7 @@ module PulpMavenClient
63
108
  return_type = opts[:return_type] || 'AsyncOperationResponse'
64
109
 
65
110
  # auth_names
66
- auth_names = opts[:auth_names] || ['Basic']
111
+ auth_names = opts[:auth_names] || ['basicAuth']
67
112
 
68
113
  new_options = opts.merge(
69
114
  :header_params => header_params,
@@ -83,87 +128,87 @@ module PulpMavenClient
83
128
 
84
129
  # List repository versions
85
130
  # MavenRepositoryVersion represents a single Maven repository version.
86
- # @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
131
+ # @param maven_repository_version_href [String]
87
132
  # @param [Hash] opts the optional parameters
88
- # @option opts [String] :ordering Which field to use when ordering the results.
89
- # @option opts [Float] :number
90
- # @option opts [Float] :number__lt Filter results where number is less than value
91
- # @option opts [Float] :number__lte Filter results where number is less than or equal to value
92
- # @option opts [Float] :number__gt Filter results where number is greater than value
93
- # @option opts [Float] :number__gte Filter results where number is greater than or equal to value
94
- # @option opts [Float] :number__range Filter results where number is between two comma separated values
95
- # @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
96
- # @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
97
- # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
98
- # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
99
- # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
100
- # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
101
- # @option opts [String] :content Content Unit referenced by HREF
102
- # @option opts [String] :content__in Content Unit referenced by HREF
133
+ # @option opts [String] :content content
134
+ # @option opts [String] :content__in content__in
103
135
  # @option opts [Integer] :limit Number of results to return per page.
136
+ # @option opts [String] :number number
137
+ # @option opts [String] :number__gt number__gt
138
+ # @option opts [String] :number__gte number__gte
139
+ # @option opts [String] :number__lt number__lt
140
+ # @option opts [String] :number__lte number__lte
141
+ # @option opts [String] :number__range number__range
104
142
  # @option opts [Integer] :offset The initial index from which to return the results.
143
+ # @option opts [String] :ordering Which field to use when ordering the results.
144
+ # @option opts [String] :pulp_created pulp_created
145
+ # @option opts [String] :pulp_created__gt pulp_created__gt
146
+ # @option opts [String] :pulp_created__gte pulp_created__gte
147
+ # @option opts [String] :pulp_created__lt pulp_created__lt
148
+ # @option opts [String] :pulp_created__lte pulp_created__lte
149
+ # @option opts [String] :pulp_created__range pulp_created__range
105
150
  # @option opts [String] :fields A list of fields to include in the response.
106
151
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
107
152
  # @return [InlineResponse2004]
108
- def list(maven_repository_href, opts = {})
109
- data, _status_code, _headers = list_with_http_info(maven_repository_href, opts)
153
+ def list(maven_repository_version_href, opts = {})
154
+ data, _status_code, _headers = list_with_http_info(maven_repository_version_href, opts)
110
155
  data
111
156
  end
112
157
 
113
158
  # List repository versions
114
159
  # MavenRepositoryVersion represents a single Maven repository version.
115
- # @param maven_repository_href [String] URI of Maven Repository. e.g.: /pulp/api/v3/repositories/maven/maven/1/
160
+ # @param maven_repository_version_href [String]
116
161
  # @param [Hash] opts the optional parameters
117
- # @option opts [String] :ordering Which field to use when ordering the results.
118
- # @option opts [Float] :number
119
- # @option opts [Float] :number__lt Filter results where number is less than value
120
- # @option opts [Float] :number__lte Filter results where number is less than or equal to value
121
- # @option opts [Float] :number__gt Filter results where number is greater than value
122
- # @option opts [Float] :number__gte Filter results where number is greater than or equal to value
123
- # @option opts [Float] :number__range Filter results where number is between two comma separated values
124
- # @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
125
- # @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
126
- # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
127
- # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
128
- # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
129
- # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
130
- # @option opts [String] :content Content Unit referenced by HREF
131
- # @option opts [String] :content__in Content Unit referenced by HREF
162
+ # @option opts [String] :content content
163
+ # @option opts [String] :content__in content__in
132
164
  # @option opts [Integer] :limit Number of results to return per page.
165
+ # @option opts [String] :number number
166
+ # @option opts [String] :number__gt number__gt
167
+ # @option opts [String] :number__gte number__gte
168
+ # @option opts [String] :number__lt number__lt
169
+ # @option opts [String] :number__lte number__lte
170
+ # @option opts [String] :number__range number__range
133
171
  # @option opts [Integer] :offset The initial index from which to return the results.
172
+ # @option opts [String] :ordering Which field to use when ordering the results.
173
+ # @option opts [String] :pulp_created pulp_created
174
+ # @option opts [String] :pulp_created__gt pulp_created__gt
175
+ # @option opts [String] :pulp_created__gte pulp_created__gte
176
+ # @option opts [String] :pulp_created__lt pulp_created__lt
177
+ # @option opts [String] :pulp_created__lte pulp_created__lte
178
+ # @option opts [String] :pulp_created__range pulp_created__range
134
179
  # @option opts [String] :fields A list of fields to include in the response.
135
180
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
136
181
  # @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
137
- def list_with_http_info(maven_repository_href, opts = {})
182
+ def list_with_http_info(maven_repository_version_href, opts = {})
138
183
  if @api_client.config.debugging
139
184
  @api_client.config.logger.debug 'Calling API: RepositoriesMavenVersionsApi.list ...'
140
185
  end
141
- # verify the required parameter 'maven_repository_href' is set
142
- if @api_client.config.client_side_validation && maven_repository_href.nil?
143
- fail ArgumentError, "Missing the required parameter 'maven_repository_href' when calling RepositoriesMavenVersionsApi.list"
186
+ # verify the required parameter 'maven_repository_version_href' is set
187
+ if @api_client.config.client_side_validation && maven_repository_version_href.nil?
188
+ fail ArgumentError, "Missing the required parameter 'maven_repository_version_href' when calling RepositoriesMavenVersionsApi.list"
144
189
  end
145
190
  # resource path
146
- local_var_path = '{maven_repository_href}versions/'.sub('{' + 'maven_repository_href' + '}', CGI.escape(maven_repository_href.to_s).gsub('%2F', '/'))
191
+ local_var_path = '{maven_repository_version_href}versions/'.sub('{' + 'maven_repository_version_href' + '}', CGI.escape(maven_repository_version_href.to_s).gsub('%2F', '/'))
147
192
 
148
193
  # query parameters
149
194
  query_params = opts[:query_params] || {}
150
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
195
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
196
+ query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
197
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
151
198
  query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
152
- query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
153
- query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
154
199
  query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
155
200
  query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
201
+ query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
202
+ query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
156
203
  query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
157
- query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
158
- query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
204
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
205
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
206
+ query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
159
207
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
160
208
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
209
+ query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
210
+ query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
161
211
  query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
162
- query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
163
- query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
164
- query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
165
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
166
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
167
212
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
168
213
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
169
214
 
@@ -182,7 +227,7 @@ module PulpMavenClient
182
227
  return_type = opts[:return_type] || 'InlineResponse2004'
183
228
 
184
229
  # auth_names
185
- auth_names = opts[:auth_names] || ['Basic']
230
+ auth_names = opts[:auth_names] || ['basicAuth']
186
231
 
187
232
  new_options = opts.merge(
188
233
  :header_params => header_params,
@@ -202,11 +247,11 @@ module PulpMavenClient
202
247
 
203
248
  # Inspect a repository version
204
249
  # MavenRepositoryVersion represents a single Maven repository version.
205
- # @param maven_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/maven/maven/1/versions/1/
250
+ # @param maven_repository_version_href [String]
206
251
  # @param [Hash] opts the optional parameters
207
252
  # @option opts [String] :fields A list of fields to include in the response.
208
253
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
209
- # @return [RepositoryVersion]
254
+ # @return [RepositoryVersionResponse]
210
255
  def read(maven_repository_version_href, opts = {})
211
256
  data, _status_code, _headers = read_with_http_info(maven_repository_version_href, opts)
212
257
  data
@@ -214,11 +259,11 @@ module PulpMavenClient
214
259
 
215
260
  # Inspect a repository version
216
261
  # MavenRepositoryVersion represents a single Maven repository version.
217
- # @param maven_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/maven/maven/1/versions/1/
262
+ # @param maven_repository_version_href [String]
218
263
  # @param [Hash] opts the optional parameters
219
264
  # @option opts [String] :fields A list of fields to include in the response.
220
265
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
221
- # @return [Array<(RepositoryVersion, Integer, Hash)>] RepositoryVersion data, response status code and response headers
266
+ # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
222
267
  def read_with_http_info(maven_repository_version_href, opts = {})
223
268
  if @api_client.config.debugging
224
269
  @api_client.config.logger.debug 'Calling API: RepositoriesMavenVersionsApi.read ...'
@@ -247,10 +292,10 @@ module PulpMavenClient
247
292
  post_body = opts[:body]
248
293
 
249
294
  # return_type
250
- return_type = opts[:return_type] || 'RepositoryVersion'
295
+ return_type = opts[:return_type] || 'RepositoryVersionResponse'
251
296
 
252
297
  # auth_names
253
- auth_names = opts[:auth_names] || ['Basic']
298
+ auth_names = opts[:auth_names] || ['basicAuth']
254
299
 
255
300
  new_options = opts.merge(
256
301
  :header_params => header_params,
@@ -269,21 +314,21 @@ module PulpMavenClient
269
314
  end
270
315
 
271
316
  # Trigger an asynchronous task to repair a repositroy version.
272
- # @param maven_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/maven/maven/1/versions/1/
273
- # @param data [RepositoryVersion]
317
+ # @param maven_repository_version_href [String]
318
+ # @param repository_version [RepositoryVersion]
274
319
  # @param [Hash] opts the optional parameters
275
320
  # @return [AsyncOperationResponse]
276
- def repair(maven_repository_version_href, data, opts = {})
277
- data, _status_code, _headers = repair_with_http_info(maven_repository_version_href, data, opts)
321
+ def repair(maven_repository_version_href, repository_version, opts = {})
322
+ data, _status_code, _headers = repair_with_http_info(maven_repository_version_href, repository_version, opts)
278
323
  data
279
324
  end
280
325
 
281
326
  # Trigger an asynchronous task to repair a repositroy version.
282
- # @param maven_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/maven/maven/1/versions/1/
283
- # @param data [RepositoryVersion]
327
+ # @param maven_repository_version_href [String]
328
+ # @param repository_version [RepositoryVersion]
284
329
  # @param [Hash] opts the optional parameters
285
330
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
286
- def repair_with_http_info(maven_repository_version_href, data, opts = {})
331
+ def repair_with_http_info(maven_repository_version_href, repository_version, opts = {})
287
332
  if @api_client.config.debugging
288
333
  @api_client.config.logger.debug 'Calling API: RepositoriesMavenVersionsApi.repair ...'
289
334
  end
@@ -291,9 +336,9 @@ module PulpMavenClient
291
336
  if @api_client.config.client_side_validation && maven_repository_version_href.nil?
292
337
  fail ArgumentError, "Missing the required parameter 'maven_repository_version_href' when calling RepositoriesMavenVersionsApi.repair"
293
338
  end
294
- # verify the required parameter 'data' is set
295
- if @api_client.config.client_side_validation && data.nil?
296
- fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesMavenVersionsApi.repair"
339
+ # verify the required parameter 'repository_version' is set
340
+ if @api_client.config.client_side_validation && repository_version.nil?
341
+ fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesMavenVersionsApi.repair"
297
342
  end
298
343
  # resource path
299
344
  local_var_path = '{maven_repository_version_href}repair/'.sub('{' + 'maven_repository_version_href' + '}', CGI.escape(maven_repository_version_href.to_s).gsub('%2F', '/'))
@@ -306,19 +351,19 @@ module PulpMavenClient
306
351
  # HTTP header 'Accept' (if needed)
307
352
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
308
353
  # HTTP header 'Content-Type'
309
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
354
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
310
355
 
311
356
  # form parameters
312
357
  form_params = opts[:form_params] || {}
313
358
 
314
359
  # http body (model)
315
- post_body = opts[:body] || @api_client.object_to_http_body(data)
360
+ post_body = opts[:body] || @api_client.object_to_http_body(repository_version)
316
361
 
317
362
  # return_type
318
363
  return_type = opts[:return_type] || 'AsyncOperationResponse'
319
364
 
320
365
  # auth_names
321
- auth_names = opts[:auth_names] || ['Basic']
366
+ auth_names = opts[:auth_names] || ['basicAuth']
322
367
 
323
368
  new_options = opts.merge(
324
369
  :header_params => header_params,