pulp_maven_client 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -31
  3. data/docs/ContentArtifactApi.md +37 -35
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsMavenApi.md +63 -61
  7. data/docs/MavenMavenArtifact.md +3 -13
  8. data/docs/MavenMavenArtifactResponse.md +29 -0
  9. data/docs/MavenMavenDistribution.md +1 -7
  10. data/docs/MavenMavenDistributionResponse.md +29 -0
  11. data/docs/MavenMavenRemote.md +18 -12
  12. data/docs/MavenMavenRemoteResponse.md +51 -0
  13. data/docs/MavenMavenRepository.md +4 -10
  14. data/docs/MavenMavenRepositoryResponse.md +29 -0
  15. data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
  16. data/docs/PaginatedmavenMavenArtifactResponseList.md +23 -0
  17. data/docs/PaginatedmavenMavenDistributionResponseList.md +23 -0
  18. data/docs/PaginatedmavenMavenRemoteResponseList.md +23 -0
  19. data/docs/PaginatedmavenMavenRepositoryResponseList.md +23 -0
  20. data/docs/PatchedmavenMavenDistribution.md +23 -0
  21. data/docs/PatchedmavenMavenRemote.md +45 -0
  22. data/docs/PatchedmavenMavenRepository.md +21 -0
  23. data/docs/PolicyEnum.md +16 -0
  24. data/docs/RemotesMavenApi.md +68 -66
  25. data/docs/RepositoriesMavenApi.md +60 -58
  26. data/docs/RepositoriesMavenVersionsApi.md +110 -53
  27. data/docs/RepositoryVersion.md +1 -9
  28. data/docs/RepositoryVersionResponse.md +25 -0
  29. data/lib/pulp_maven_client/api/content_artifact_api.rb +55 -52
  30. data/lib/pulp_maven_client/api/distributions_maven_api.rb +94 -91
  31. data/lib/pulp_maven_client/api/remotes_maven_api.rb +104 -101
  32. data/lib/pulp_maven_client/api/repositories_maven_api.rb +97 -94
  33. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +149 -78
  34. data/lib/pulp_maven_client/api_client.rb +3 -3
  35. data/lib/pulp_maven_client/api_error.rb +3 -3
  36. data/lib/pulp_maven_client/configuration.rb +6 -6
  37. data/lib/pulp_maven_client/models/async_operation_response.rb +4 -3
  38. data/lib/pulp_maven_client/models/content_summary.rb +10 -16
  39. data/lib/pulp_maven_client/models/content_summary_response.rb +240 -0
  40. data/lib/pulp_maven_client/models/maven_maven_artifact.rb +15 -118
  41. data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +272 -0
  42. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +5 -86
  43. data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +279 -0
  44. data/lib/pulp_maven_client/models/maven_maven_remote.rb +111 -147
  45. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +472 -0
  46. data/lib/pulp_maven_client/models/maven_maven_repository.rb +19 -79
  47. data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +271 -0
  48. data/lib/pulp_maven_client/models/{inline_response200.rb → paginated_repository_version_response_list.rb} +7 -17
  49. data/lib/pulp_maven_client/models/{inline_response2002.rb → paginatedmaven_maven_artifact_response_list.rb} +7 -17
  50. data/lib/pulp_maven_client/models/{inline_response2004.rb → paginatedmaven_maven_distribution_response_list.rb} +7 -17
  51. data/lib/pulp_maven_client/models/{inline_response2003.rb → paginatedmaven_maven_remote_response_list.rb} +7 -17
  52. data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +237 -0
  53. data/lib/pulp_maven_client/models/{inline_response2001.rb → patchedmaven_maven_distribution.rb} +38 -45
  54. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +433 -0
  55. data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +229 -0
  56. data/lib/pulp_maven_client/models/policy_enum.rb +36 -0
  57. data/lib/pulp_maven_client/models/repository_version.rb +8 -44
  58. data/lib/pulp_maven_client/models/repository_version_response.rb +246 -0
  59. data/lib/pulp_maven_client/version.rb +4 -4
  60. data/lib/pulp_maven_client.rb +18 -8
  61. data/pulp_maven_client.gemspec +5 -5
  62. data/spec/api/content_artifact_api_spec.rb +16 -15
  63. data/spec/api/distributions_maven_api_spec.rb +20 -19
  64. data/spec/api/remotes_maven_api_spec.rb +23 -22
  65. data/spec/api/repositories_maven_api_spec.rb +21 -20
  66. data/spec/api/repositories_maven_versions_api_spec.rb +36 -23
  67. data/spec/api_client_spec.rb +3 -3
  68. data/spec/configuration_spec.rb +6 -6
  69. data/spec/models/async_operation_response_spec.rb +3 -3
  70. data/spec/models/content_summary_response_spec.rb +53 -0
  71. data/spec/models/content_summary_spec.rb +3 -3
  72. data/spec/models/maven_maven_artifact_response_spec.rb +77 -0
  73. data/spec/models/maven_maven_artifact_spec.rb +4 -34
  74. data/spec/models/maven_maven_distribution_response_spec.rb +77 -0
  75. data/spec/models/maven_maven_distribution_spec.rb +3 -21
  76. data/spec/models/maven_maven_remote_response_spec.rb +143 -0
  77. data/spec/models/maven_maven_remote_spec.rb +33 -19
  78. data/spec/models/maven_maven_repository_response_spec.rb +77 -0
  79. data/spec/models/maven_maven_repository_spec.rb +6 -24
  80. data/spec/models/{inline_response2002_spec.rb → paginated_repository_version_response_list_spec.rb} +9 -9
  81. data/spec/models/{inline_response2003_spec.rb → paginatedmaven_maven_artifact_response_list_spec.rb} +9 -9
  82. data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +59 -0
  83. data/spec/models/{inline_response2001_spec.rb → paginatedmaven_maven_remote_response_list_spec.rb} +9 -9
  84. data/spec/models/{inline_response2004_spec.rb → paginatedmaven_maven_repository_response_list_spec.rb} +9 -9
  85. data/spec/models/patchedmaven_maven_distribution_spec.rb +59 -0
  86. data/spec/models/patchedmaven_maven_remote_spec.rb +125 -0
  87. data/spec/models/{inline_response200_spec.rb → patchedmaven_maven_repository_spec.rb} +12 -18
  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 +3 -27
  91. data/spec/spec_helper.rb +3 -3
  92. metadata +70 -30
  93. data/docs/InlineResponse200.md +0 -23
  94. data/docs/InlineResponse2001.md +0 -23
  95. data/docs/InlineResponse2002.md +0 -23
  96. data/docs/InlineResponse2003.md +0 -23
  97. data/docs/InlineResponse2004.md +0 -23
@@ -1,12 +1,12 @@
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
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -21,26 +21,26 @@ module PulpMavenClient
21
21
  end
22
22
  # Create a maven distribution
23
23
  # Trigger an asynchronous create task
24
- # @param data [MavenMavenDistribution]
24
+ # @param maven_maven_distribution [MavenMavenDistribution]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [AsyncOperationResponse]
27
- def create(data, opts = {})
28
- data, _status_code, _headers = create_with_http_info(data, opts)
27
+ def create(maven_maven_distribution, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(maven_maven_distribution, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Create a maven distribution
33
33
  # Trigger an asynchronous create task
34
- # @param data [MavenMavenDistribution]
34
+ # @param maven_maven_distribution [MavenMavenDistribution]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
- def create_with_http_info(data, opts = {})
37
+ def create_with_http_info(maven_maven_distribution, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: DistributionsMavenApi.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 DistributionsMavenApi.create"
41
+ # verify the required parameter 'maven_maven_distribution' is set
42
+ if @api_client.config.client_side_validation && maven_maven_distribution.nil?
43
+ fail ArgumentError, "Missing the required parameter 'maven_maven_distribution' when calling DistributionsMavenApi.create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/pulp/api/v3/distributions/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_distribution)
63
63
 
64
64
  # return_type
65
65
  return_type = opts[:return_type] || 'AsyncOperationResponse'
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,29 +85,29 @@ module PulpMavenClient
85
85
 
86
86
  # Delete a maven distribution
87
87
  # Trigger an asynchronous delete task
88
- # @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
88
+ # @param maven_maven_distribution_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [AsyncOperationResponse]
91
- def delete(maven_distribution_href, opts = {})
92
- data, _status_code, _headers = delete_with_http_info(maven_distribution_href, opts)
91
+ def delete(maven_maven_distribution_href, opts = {})
92
+ data, _status_code, _headers = delete_with_http_info(maven_maven_distribution_href, opts)
93
93
  data
94
94
  end
95
95
 
96
96
  # Delete a maven distribution
97
97
  # Trigger an asynchronous delete task
98
- # @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
98
+ # @param maven_maven_distribution_href [String]
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
- def delete_with_http_info(maven_distribution_href, opts = {})
101
+ def delete_with_http_info(maven_maven_distribution_href, opts = {})
102
102
  if @api_client.config.debugging
103
103
  @api_client.config.logger.debug 'Calling API: DistributionsMavenApi.delete ...'
104
104
  end
105
- # verify the required parameter 'maven_distribution_href' is set
106
- if @api_client.config.client_side_validation && maven_distribution_href.nil?
107
- fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling DistributionsMavenApi.delete"
105
+ # verify the required parameter 'maven_maven_distribution_href' is set
106
+ if @api_client.config.client_side_validation && maven_maven_distribution_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'maven_maven_distribution_href' when calling DistributionsMavenApi.delete"
108
108
  end
109
109
  # resource path
110
- local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', CGI.escape(maven_distribution_href.to_s).gsub('%2F', '/'))
110
+ local_var_path = '{maven_maven_distribution_href}'.sub('{' + 'maven_maven_distribution_href' + '}', CGI.escape(maven_maven_distribution_href.to_s).gsub('%2F', '/'))
111
111
 
112
112
  # query parameters
113
113
  query_params = opts[:query_params] || {}
@@ -127,7 +127,7 @@ module PulpMavenClient
127
127
  return_type = opts[:return_type] || 'AsyncOperationResponse'
128
128
 
129
129
  # auth_names
130
- auth_names = opts[:auth_names] || ['Basic']
130
+ auth_names = opts[:auth_names] || ['basicAuth']
131
131
 
132
132
  new_options = opts.merge(
133
133
  :header_params => header_params,
@@ -148,17 +148,18 @@ module PulpMavenClient
148
148
  # List maven distributions
149
149
  # ViewSet for Maven Distributions.
150
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] :base_path
154
- # @option opts [String] :base_path__contains Filter results where base_path contains value
155
- # @option opts [String] :base_path__icontains Filter results where base_path contains value
156
- # @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
151
+ # @option opts [String] :base_path base_path
152
+ # @option opts [String] :base_path__contains base_path__contains
153
+ # @option opts [String] :base_path__icontains base_path__icontains
154
+ # @option opts [String] :base_path__in base_path__in
157
155
  # @option opts [Integer] :limit Number of results to return per page.
156
+ # @option opts [String] :name name
157
+ # @option opts [String] :name__in name__in
158
158
  # @option opts [Integer] :offset The initial index from which to return the results.
159
+ # @option opts [String] :ordering Which field to use when ordering the results.
159
160
  # @option opts [String] :fields A list of fields to include in the response.
160
161
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
161
- # @return [InlineResponse2001]
162
+ # @return [PaginatedmavenMavenDistributionResponseList]
162
163
  def list(opts = {})
163
164
  data, _status_code, _headers = list_with_http_info(opts)
164
165
  data
@@ -167,17 +168,18 @@ module PulpMavenClient
167
168
  # List maven distributions
168
169
  # ViewSet for Maven Distributions.
169
170
  # @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] :base_path
173
- # @option opts [String] :base_path__contains Filter results where base_path contains value
174
- # @option opts [String] :base_path__icontains Filter results where base_path contains value
175
- # @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
171
+ # @option opts [String] :base_path base_path
172
+ # @option opts [String] :base_path__contains base_path__contains
173
+ # @option opts [String] :base_path__icontains base_path__icontains
174
+ # @option opts [String] :base_path__in base_path__in
176
175
  # @option opts [Integer] :limit Number of results to return per page.
176
+ # @option opts [String] :name name
177
+ # @option opts [String] :name__in name__in
177
178
  # @option opts [Integer] :offset The initial index from which to return the results.
179
+ # @option opts [String] :ordering Which field to use when ordering the results.
178
180
  # @option opts [String] :fields A list of fields to include in the response.
179
181
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
180
- # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
182
+ # @return [Array<(PaginatedmavenMavenDistributionResponseList, Integer, Hash)>] PaginatedmavenMavenDistributionResponseList data, response status code and response headers
181
183
  def list_with_http_info(opts = {})
182
184
  if @api_client.config.debugging
183
185
  @api_client.config.logger.debug 'Calling API: DistributionsMavenApi.list ...'
@@ -187,14 +189,15 @@ module PulpMavenClient
187
189
 
188
190
  # query parameters
189
191
  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
192
  query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
193
193
  query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
194
194
  query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
195
195
  query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
196
196
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
197
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
198
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
197
199
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
200
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
198
201
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
199
202
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
200
203
 
@@ -210,10 +213,10 @@ module PulpMavenClient
210
213
  post_body = opts[:body]
211
214
 
212
215
  # return_type
213
- return_type = opts[:return_type] || 'InlineResponse2001'
216
+ return_type = opts[:return_type] || 'PaginatedmavenMavenDistributionResponseList'
214
217
 
215
218
  # auth_names
216
- auth_names = opts[:auth_names] || ['Basic']
219
+ auth_names = opts[:auth_names] || ['basicAuth']
217
220
 
218
221
  new_options = opts.merge(
219
222
  :header_params => header_params,
@@ -231,37 +234,37 @@ module PulpMavenClient
231
234
  return data, status_code, headers
232
235
  end
233
236
 
234
- # Partially update a maven distribution
237
+ # Update a maven distribution
235
238
  # Trigger an asynchronous partial update task
236
- # @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
237
- # @param data [MavenMavenDistribution]
239
+ # @param maven_maven_distribution_href [String]
240
+ # @param patchedmaven_maven_distribution [PatchedmavenMavenDistribution]
238
241
  # @param [Hash] opts the optional parameters
239
242
  # @return [AsyncOperationResponse]
240
- def partial_update(maven_distribution_href, data, opts = {})
241
- data, _status_code, _headers = partial_update_with_http_info(maven_distribution_href, data, opts)
243
+ def partial_update(maven_maven_distribution_href, patchedmaven_maven_distribution, opts = {})
244
+ data, _status_code, _headers = partial_update_with_http_info(maven_maven_distribution_href, patchedmaven_maven_distribution, opts)
242
245
  data
243
246
  end
244
247
 
245
- # Partially update a maven distribution
248
+ # Update a maven distribution
246
249
  # Trigger an asynchronous partial update task
247
- # @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
248
- # @param data [MavenMavenDistribution]
250
+ # @param maven_maven_distribution_href [String]
251
+ # @param patchedmaven_maven_distribution [PatchedmavenMavenDistribution]
249
252
  # @param [Hash] opts the optional parameters
250
253
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
251
- def partial_update_with_http_info(maven_distribution_href, data, opts = {})
254
+ def partial_update_with_http_info(maven_maven_distribution_href, patchedmaven_maven_distribution, opts = {})
252
255
  if @api_client.config.debugging
253
256
  @api_client.config.logger.debug 'Calling API: DistributionsMavenApi.partial_update ...'
254
257
  end
255
- # verify the required parameter 'maven_distribution_href' is set
256
- if @api_client.config.client_side_validation && maven_distribution_href.nil?
257
- fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling DistributionsMavenApi.partial_update"
258
+ # verify the required parameter 'maven_maven_distribution_href' is set
259
+ if @api_client.config.client_side_validation && maven_maven_distribution_href.nil?
260
+ fail ArgumentError, "Missing the required parameter 'maven_maven_distribution_href' when calling DistributionsMavenApi.partial_update"
258
261
  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 DistributionsMavenApi.partial_update"
262
+ # verify the required parameter 'patchedmaven_maven_distribution' is set
263
+ if @api_client.config.client_side_validation && patchedmaven_maven_distribution.nil?
264
+ fail ArgumentError, "Missing the required parameter 'patchedmaven_maven_distribution' when calling DistributionsMavenApi.partial_update"
262
265
  end
263
266
  # resource path
264
- local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', CGI.escape(maven_distribution_href.to_s).gsub('%2F', '/'))
267
+ local_var_path = '{maven_maven_distribution_href}'.sub('{' + 'maven_maven_distribution_href' + '}', CGI.escape(maven_maven_distribution_href.to_s).gsub('%2F', '/'))
265
268
 
266
269
  # query parameters
267
270
  query_params = opts[:query_params] || {}
@@ -271,19 +274,19 @@ module PulpMavenClient
271
274
  # HTTP header 'Accept' (if needed)
272
275
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
273
276
  # HTTP header 'Content-Type'
274
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
277
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
275
278
 
276
279
  # form parameters
277
280
  form_params = opts[:form_params] || {}
278
281
 
279
282
  # http body (model)
280
- post_body = opts[:body] || @api_client.object_to_http_body(data)
283
+ post_body = opts[:body] || @api_client.object_to_http_body(patchedmaven_maven_distribution)
281
284
 
282
285
  # return_type
283
286
  return_type = opts[:return_type] || 'AsyncOperationResponse'
284
287
 
285
288
  # auth_names
286
- auth_names = opts[:auth_names] || ['Basic']
289
+ auth_names = opts[:auth_names] || ['basicAuth']
287
290
 
288
291
  new_options = opts.merge(
289
292
  :header_params => header_params,
@@ -303,33 +306,33 @@ module PulpMavenClient
303
306
 
304
307
  # Inspect a maven distribution
305
308
  # ViewSet for Maven Distributions.
306
- # @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
309
+ # @param maven_maven_distribution_href [String]
307
310
  # @param [Hash] opts the optional parameters
308
311
  # @option opts [String] :fields A list of fields to include in the response.
309
312
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
310
- # @return [MavenMavenDistribution]
311
- def read(maven_distribution_href, opts = {})
312
- data, _status_code, _headers = read_with_http_info(maven_distribution_href, opts)
313
+ # @return [MavenMavenDistributionResponse]
314
+ def read(maven_maven_distribution_href, opts = {})
315
+ data, _status_code, _headers = read_with_http_info(maven_maven_distribution_href, opts)
313
316
  data
314
317
  end
315
318
 
316
319
  # Inspect a maven distribution
317
320
  # ViewSet for Maven Distributions.
318
- # @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
321
+ # @param maven_maven_distribution_href [String]
319
322
  # @param [Hash] opts the optional parameters
320
323
  # @option opts [String] :fields A list of fields to include in the response.
321
324
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
322
- # @return [Array<(MavenMavenDistribution, Integer, Hash)>] MavenMavenDistribution data, response status code and response headers
323
- def read_with_http_info(maven_distribution_href, opts = {})
325
+ # @return [Array<(MavenMavenDistributionResponse, Integer, Hash)>] MavenMavenDistributionResponse data, response status code and response headers
326
+ def read_with_http_info(maven_maven_distribution_href, opts = {})
324
327
  if @api_client.config.debugging
325
328
  @api_client.config.logger.debug 'Calling API: DistributionsMavenApi.read ...'
326
329
  end
327
- # verify the required parameter 'maven_distribution_href' is set
328
- if @api_client.config.client_side_validation && maven_distribution_href.nil?
329
- fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling DistributionsMavenApi.read"
330
+ # verify the required parameter 'maven_maven_distribution_href' is set
331
+ if @api_client.config.client_side_validation && maven_maven_distribution_href.nil?
332
+ fail ArgumentError, "Missing the required parameter 'maven_maven_distribution_href' when calling DistributionsMavenApi.read"
330
333
  end
331
334
  # resource path
332
- local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', CGI.escape(maven_distribution_href.to_s).gsub('%2F', '/'))
335
+ local_var_path = '{maven_maven_distribution_href}'.sub('{' + 'maven_maven_distribution_href' + '}', CGI.escape(maven_maven_distribution_href.to_s).gsub('%2F', '/'))
333
336
 
334
337
  # query parameters
335
338
  query_params = opts[:query_params] || {}
@@ -348,10 +351,10 @@ module PulpMavenClient
348
351
  post_body = opts[:body]
349
352
 
350
353
  # return_type
351
- return_type = opts[:return_type] || 'MavenMavenDistribution'
354
+ return_type = opts[:return_type] || 'MavenMavenDistributionResponse'
352
355
 
353
356
  # auth_names
354
- auth_names = opts[:auth_names] || ['Basic']
357
+ auth_names = opts[:auth_names] || ['basicAuth']
355
358
 
356
359
  new_options = opts.merge(
357
360
  :header_params => header_params,
@@ -371,35 +374,35 @@ module PulpMavenClient
371
374
 
372
375
  # Update a maven distribution
373
376
  # Trigger an asynchronous update task
374
- # @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
375
- # @param data [MavenMavenDistribution]
377
+ # @param maven_maven_distribution_href [String]
378
+ # @param maven_maven_distribution [MavenMavenDistribution]
376
379
  # @param [Hash] opts the optional parameters
377
380
  # @return [AsyncOperationResponse]
378
- def update(maven_distribution_href, data, opts = {})
379
- data, _status_code, _headers = update_with_http_info(maven_distribution_href, data, opts)
381
+ def update(maven_maven_distribution_href, maven_maven_distribution, opts = {})
382
+ data, _status_code, _headers = update_with_http_info(maven_maven_distribution_href, maven_maven_distribution, opts)
380
383
  data
381
384
  end
382
385
 
383
386
  # Update a maven distribution
384
387
  # Trigger an asynchronous update task
385
- # @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
386
- # @param data [MavenMavenDistribution]
388
+ # @param maven_maven_distribution_href [String]
389
+ # @param maven_maven_distribution [MavenMavenDistribution]
387
390
  # @param [Hash] opts the optional parameters
388
391
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
389
- def update_with_http_info(maven_distribution_href, data, opts = {})
392
+ def update_with_http_info(maven_maven_distribution_href, maven_maven_distribution, opts = {})
390
393
  if @api_client.config.debugging
391
394
  @api_client.config.logger.debug 'Calling API: DistributionsMavenApi.update ...'
392
395
  end
393
- # verify the required parameter 'maven_distribution_href' is set
394
- if @api_client.config.client_side_validation && maven_distribution_href.nil?
395
- fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling DistributionsMavenApi.update"
396
+ # verify the required parameter 'maven_maven_distribution_href' is set
397
+ if @api_client.config.client_side_validation && maven_maven_distribution_href.nil?
398
+ fail ArgumentError, "Missing the required parameter 'maven_maven_distribution_href' when calling DistributionsMavenApi.update"
396
399
  end
397
- # verify the required parameter 'data' is set
398
- if @api_client.config.client_side_validation && data.nil?
399
- fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsMavenApi.update"
400
+ # verify the required parameter 'maven_maven_distribution' is set
401
+ if @api_client.config.client_side_validation && maven_maven_distribution.nil?
402
+ fail ArgumentError, "Missing the required parameter 'maven_maven_distribution' when calling DistributionsMavenApi.update"
400
403
  end
401
404
  # resource path
402
- local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', CGI.escape(maven_distribution_href.to_s).gsub('%2F', '/'))
405
+ local_var_path = '{maven_maven_distribution_href}'.sub('{' + 'maven_maven_distribution_href' + '}', CGI.escape(maven_maven_distribution_href.to_s).gsub('%2F', '/'))
403
406
 
404
407
  # query parameters
405
408
  query_params = opts[:query_params] || {}
@@ -409,19 +412,19 @@ module PulpMavenClient
409
412
  # HTTP header 'Accept' (if needed)
410
413
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
411
414
  # HTTP header 'Content-Type'
412
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
415
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
413
416
 
414
417
  # form parameters
415
418
  form_params = opts[:form_params] || {}
416
419
 
417
420
  # http body (model)
418
- post_body = opts[:body] || @api_client.object_to_http_body(data)
421
+ post_body = opts[:body] || @api_client.object_to_http_body(maven_maven_distribution)
419
422
 
420
423
  # return_type
421
424
  return_type = opts[:return_type] || 'AsyncOperationResponse'
422
425
 
423
426
  # auth_names
424
- auth_names = opts[:auth_names] || ['Basic']
427
+ auth_names = opts[:auth_names] || ['basicAuth']
425
428
 
426
429
  new_options = opts.merge(
427
430
  :header_params => header_params,