pulp_maven_client 0.1.0 → 0.2.0
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 +4 -4
- data/README.md +43 -31
- data/docs/ContentArtifactApi.md +37 -35
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsMavenApi.md +63 -61
- data/docs/MavenMavenArtifact.md +3 -13
- data/docs/MavenMavenArtifactResponse.md +29 -0
- data/docs/MavenMavenDistribution.md +1 -7
- data/docs/MavenMavenDistributionResponse.md +29 -0
- data/docs/MavenMavenRemote.md +18 -12
- data/docs/MavenMavenRemoteResponse.md +51 -0
- data/docs/MavenMavenRepository.md +4 -10
- data/docs/MavenMavenRepositoryResponse.md +29 -0
- data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
- data/docs/PaginatedmavenMavenArtifactResponseList.md +23 -0
- data/docs/PaginatedmavenMavenDistributionResponseList.md +23 -0
- data/docs/PaginatedmavenMavenRemoteResponseList.md +23 -0
- data/docs/PaginatedmavenMavenRepositoryResponseList.md +23 -0
- data/docs/PatchedmavenMavenDistribution.md +23 -0
- data/docs/PatchedmavenMavenRemote.md +45 -0
- data/docs/PatchedmavenMavenRepository.md +21 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/RemotesMavenApi.md +68 -66
- data/docs/RepositoriesMavenApi.md +60 -58
- data/docs/RepositoriesMavenVersionsApi.md +110 -53
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/lib/pulp_maven_client/api/content_artifact_api.rb +55 -52
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +94 -91
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +104 -101
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +97 -94
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +149 -78
- data/lib/pulp_maven_client/api_client.rb +3 -3
- data/lib/pulp_maven_client/api_error.rb +3 -3
- data/lib/pulp_maven_client/configuration.rb +6 -6
- data/lib/pulp_maven_client/models/async_operation_response.rb +4 -3
- data/lib/pulp_maven_client/models/content_summary.rb +10 -16
- data/lib/pulp_maven_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_maven_client/models/maven_maven_artifact.rb +15 -118
- data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +272 -0
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +5 -86
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +279 -0
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +111 -147
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +472 -0
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +19 -79
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +271 -0
- data/lib/pulp_maven_client/models/{inline_response200.rb → paginated_repository_version_response_list.rb} +7 -17
- data/lib/pulp_maven_client/models/{inline_response2002.rb → paginatedmaven_maven_artifact_response_list.rb} +7 -17
- data/lib/pulp_maven_client/models/{inline_response2004.rb → paginatedmaven_maven_distribution_response_list.rb} +7 -17
- data/lib/pulp_maven_client/models/{inline_response2003.rb → paginatedmaven_maven_remote_response_list.rb} +7 -17
- data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +237 -0
- data/lib/pulp_maven_client/models/{inline_response2001.rb → patchedmaven_maven_distribution.rb} +38 -45
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +433 -0
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +229 -0
- data/lib/pulp_maven_client/models/policy_enum.rb +36 -0
- data/lib/pulp_maven_client/models/repository_version.rb +8 -44
- data/lib/pulp_maven_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_maven_client/version.rb +4 -4
- data/lib/pulp_maven_client.rb +18 -8
- data/pulp_maven_client.gemspec +5 -5
- data/spec/api/content_artifact_api_spec.rb +16 -15
- data/spec/api/distributions_maven_api_spec.rb +20 -19
- data/spec/api/remotes_maven_api_spec.rb +23 -22
- data/spec/api/repositories_maven_api_spec.rb +21 -20
- data/spec/api/repositories_maven_versions_api_spec.rb +36 -23
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +6 -6
- data/spec/models/async_operation_response_spec.rb +3 -3
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +3 -3
- data/spec/models/maven_maven_artifact_response_spec.rb +77 -0
- data/spec/models/maven_maven_artifact_spec.rb +4 -34
- data/spec/models/maven_maven_distribution_response_spec.rb +77 -0
- data/spec/models/maven_maven_distribution_spec.rb +3 -21
- data/spec/models/maven_maven_remote_response_spec.rb +143 -0
- data/spec/models/maven_maven_remote_spec.rb +33 -19
- data/spec/models/maven_maven_repository_response_spec.rb +77 -0
- data/spec/models/maven_maven_repository_spec.rb +6 -24
- data/spec/models/{inline_response2002_spec.rb → paginated_repository_version_response_list_spec.rb} +9 -9
- data/spec/models/{inline_response2003_spec.rb → paginatedmaven_maven_artifact_response_list_spec.rb} +9 -9
- data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +59 -0
- data/spec/models/{inline_response2001_spec.rb → paginatedmaven_maven_remote_response_list_spec.rb} +9 -9
- data/spec/models/{inline_response2004_spec.rb → paginatedmaven_maven_repository_response_list_spec.rb} +9 -9
- data/spec/models/patchedmaven_maven_distribution_spec.rb +59 -0
- data/spec/models/patchedmaven_maven_remote_spec.rb +125 -0
- data/spec/models/{inline_response200_spec.rb → patchedmaven_maven_repository_spec.rb} +12 -18
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +3 -27
- data/spec/spec_helper.rb +3 -3
- metadata +70 -30
- data/docs/InlineResponse200.md +0 -23
- data/docs/InlineResponse2001.md +0 -23
- data/docs/InlineResponse2002.md +0 -23
- data/docs/InlineResponse2003.md +0 -23
- data/docs/InlineResponse2004.md +0 -23
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
|
-
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.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 repository
|
|
23
23
|
# A ViewSet for MavenRemote.
|
|
24
|
-
# @param
|
|
24
|
+
# @param maven_maven_repository [MavenMavenRepository]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [
|
|
27
|
-
def create(
|
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
|
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
|
|
34
|
+
# @param maven_maven_repository [MavenMavenRepository]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(
|
|
37
|
-
def create_with_http_info(
|
|
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 '
|
|
42
|
-
if @api_client.config.client_side_validation &&
|
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
|
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(
|
|
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] || '
|
|
65
|
+
return_type = opts[:return_type] || 'MavenMavenRepositoryResponse'
|
|
66
66
|
|
|
67
67
|
# auth_names
|
|
68
|
-
auth_names = opts[:auth_names] || ['
|
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
69
69
|
|
|
70
70
|
new_options = opts.merge(
|
|
71
71
|
:header_params => header_params,
|
|
@@ -84,30 +84,30 @@ module PulpMavenClient
|
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
# Delete a maven repository
|
|
87
|
-
# Trigger an asynchronous
|
|
88
|
-
# @param
|
|
87
|
+
# Trigger an asynchronous delete task
|
|
88
|
+
# @param maven_maven_repository_href [String]
|
|
89
89
|
# @param [Hash] opts the optional parameters
|
|
90
90
|
# @return [AsyncOperationResponse]
|
|
91
|
-
def delete(
|
|
92
|
-
data, _status_code, _headers = delete_with_http_info(
|
|
91
|
+
def delete(maven_maven_repository_href, opts = {})
|
|
92
|
+
data, _status_code, _headers = delete_with_http_info(maven_maven_repository_href, opts)
|
|
93
93
|
data
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
# Delete a maven repository
|
|
97
|
-
# Trigger an asynchronous
|
|
98
|
-
# @param
|
|
97
|
+
# Trigger an asynchronous delete task
|
|
98
|
+
# @param maven_maven_repository_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(
|
|
101
|
+
def delete_with_http_info(maven_maven_repository_href, opts = {})
|
|
102
102
|
if @api_client.config.debugging
|
|
103
103
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.delete ...'
|
|
104
104
|
end
|
|
105
|
-
# verify the required parameter '
|
|
106
|
-
if @api_client.config.client_side_validation &&
|
|
107
|
-
fail ArgumentError, "Missing the required parameter '
|
|
105
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
|
106
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.delete"
|
|
108
108
|
end
|
|
109
109
|
# resource path
|
|
110
|
-
local_var_path = '{
|
|
110
|
+
local_var_path = '{maven_maven_repository_href}'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_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] || ['
|
|
130
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
131
131
|
|
|
132
132
|
new_options = opts.merge(
|
|
133
133
|
:header_params => header_params,
|
|
@@ -148,13 +148,14 @@ module PulpMavenClient
|
|
|
148
148
|
# List maven repositorys
|
|
149
149
|
# A ViewSet for MavenRemote.
|
|
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
151
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
152
|
+
# @option opts [String] :name name
|
|
153
|
+
# @option opts [String] :name__in name__in
|
|
154
154
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
155
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
155
156
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
156
157
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
157
|
-
# @return [
|
|
158
|
+
# @return [PaginatedmavenMavenRepositoryResponseList]
|
|
158
159
|
def list(opts = {})
|
|
159
160
|
data, _status_code, _headers = list_with_http_info(opts)
|
|
160
161
|
data
|
|
@@ -163,13 +164,14 @@ module PulpMavenClient
|
|
|
163
164
|
# List maven repositorys
|
|
164
165
|
# A ViewSet for MavenRemote.
|
|
165
166
|
# @param [Hash] opts the optional parameters
|
|
166
|
-
# @option opts [String] :name
|
|
167
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
|
168
167
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
168
|
+
# @option opts [String] :name name
|
|
169
|
+
# @option opts [String] :name__in name__in
|
|
169
170
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
171
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
170
172
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
171
173
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
172
|
-
# @return [Array<(
|
|
174
|
+
# @return [Array<(PaginatedmavenMavenRepositoryResponseList, Integer, Hash)>] PaginatedmavenMavenRepositoryResponseList data, response status code and response headers
|
|
173
175
|
def list_with_http_info(opts = {})
|
|
174
176
|
if @api_client.config.debugging
|
|
175
177
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.list ...'
|
|
@@ -179,10 +181,11 @@ module PulpMavenClient
|
|
|
179
181
|
|
|
180
182
|
# query parameters
|
|
181
183
|
query_params = opts[:query_params] || {}
|
|
184
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
182
185
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
183
186
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
|
184
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
185
187
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
188
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
186
189
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
187
190
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
188
191
|
|
|
@@ -198,10 +201,10 @@ module PulpMavenClient
|
|
|
198
201
|
post_body = opts[:body]
|
|
199
202
|
|
|
200
203
|
# return_type
|
|
201
|
-
return_type = opts[:return_type] || '
|
|
204
|
+
return_type = opts[:return_type] || 'PaginatedmavenMavenRepositoryResponseList'
|
|
202
205
|
|
|
203
206
|
# auth_names
|
|
204
|
-
auth_names = opts[:auth_names] || ['
|
|
207
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
205
208
|
|
|
206
209
|
new_options = opts.merge(
|
|
207
210
|
:header_params => header_params,
|
|
@@ -219,37 +222,37 @@ module PulpMavenClient
|
|
|
219
222
|
return data, status_code, headers
|
|
220
223
|
end
|
|
221
224
|
|
|
222
|
-
#
|
|
223
|
-
#
|
|
224
|
-
# @param
|
|
225
|
-
# @param
|
|
225
|
+
# Update a maven repository
|
|
226
|
+
# Trigger an asynchronous partial update task
|
|
227
|
+
# @param maven_maven_repository_href [String]
|
|
228
|
+
# @param patchedmaven_maven_repository [PatchedmavenMavenRepository]
|
|
226
229
|
# @param [Hash] opts the optional parameters
|
|
227
|
-
# @return [
|
|
228
|
-
def partial_update(
|
|
229
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
|
230
|
+
# @return [AsyncOperationResponse]
|
|
231
|
+
def partial_update(maven_maven_repository_href, patchedmaven_maven_repository, opts = {})
|
|
232
|
+
data, _status_code, _headers = partial_update_with_http_info(maven_maven_repository_href, patchedmaven_maven_repository, opts)
|
|
230
233
|
data
|
|
231
234
|
end
|
|
232
235
|
|
|
233
|
-
#
|
|
234
|
-
#
|
|
235
|
-
# @param
|
|
236
|
-
# @param
|
|
236
|
+
# Update a maven repository
|
|
237
|
+
# Trigger an asynchronous partial update task
|
|
238
|
+
# @param maven_maven_repository_href [String]
|
|
239
|
+
# @param patchedmaven_maven_repository [PatchedmavenMavenRepository]
|
|
237
240
|
# @param [Hash] opts the optional parameters
|
|
238
|
-
# @return [Array<(
|
|
239
|
-
def partial_update_with_http_info(
|
|
241
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
242
|
+
def partial_update_with_http_info(maven_maven_repository_href, patchedmaven_maven_repository, opts = {})
|
|
240
243
|
if @api_client.config.debugging
|
|
241
244
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.partial_update ...'
|
|
242
245
|
end
|
|
243
|
-
# verify the required parameter '
|
|
244
|
-
if @api_client.config.client_side_validation &&
|
|
245
|
-
fail ArgumentError, "Missing the required parameter '
|
|
246
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
|
247
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
248
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.partial_update"
|
|
246
249
|
end
|
|
247
|
-
# verify the required parameter '
|
|
248
|
-
if @api_client.config.client_side_validation &&
|
|
249
|
-
fail ArgumentError, "Missing the required parameter '
|
|
250
|
+
# verify the required parameter 'patchedmaven_maven_repository' is set
|
|
251
|
+
if @api_client.config.client_side_validation && patchedmaven_maven_repository.nil?
|
|
252
|
+
fail ArgumentError, "Missing the required parameter 'patchedmaven_maven_repository' when calling RepositoriesMavenApi.partial_update"
|
|
250
253
|
end
|
|
251
254
|
# resource path
|
|
252
|
-
local_var_path = '{
|
|
255
|
+
local_var_path = '{maven_maven_repository_href}'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
|
253
256
|
|
|
254
257
|
# query parameters
|
|
255
258
|
query_params = opts[:query_params] || {}
|
|
@@ -259,19 +262,19 @@ module PulpMavenClient
|
|
|
259
262
|
# HTTP header 'Accept' (if needed)
|
|
260
263
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
261
264
|
# HTTP header 'Content-Type'
|
|
262
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
265
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
263
266
|
|
|
264
267
|
# form parameters
|
|
265
268
|
form_params = opts[:form_params] || {}
|
|
266
269
|
|
|
267
270
|
# http body (model)
|
|
268
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
|
271
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patchedmaven_maven_repository)
|
|
269
272
|
|
|
270
273
|
# return_type
|
|
271
|
-
return_type = opts[:return_type] || '
|
|
274
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
272
275
|
|
|
273
276
|
# auth_names
|
|
274
|
-
auth_names = opts[:auth_names] || ['
|
|
277
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
275
278
|
|
|
276
279
|
new_options = opts.merge(
|
|
277
280
|
:header_params => header_params,
|
|
@@ -291,33 +294,33 @@ module PulpMavenClient
|
|
|
291
294
|
|
|
292
295
|
# Inspect a maven repository
|
|
293
296
|
# A ViewSet for MavenRemote.
|
|
294
|
-
# @param
|
|
297
|
+
# @param maven_maven_repository_href [String]
|
|
295
298
|
# @param [Hash] opts the optional parameters
|
|
296
299
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
297
300
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
298
|
-
# @return [
|
|
299
|
-
def read(
|
|
300
|
-
data, _status_code, _headers = read_with_http_info(
|
|
301
|
+
# @return [MavenMavenRepositoryResponse]
|
|
302
|
+
def read(maven_maven_repository_href, opts = {})
|
|
303
|
+
data, _status_code, _headers = read_with_http_info(maven_maven_repository_href, opts)
|
|
301
304
|
data
|
|
302
305
|
end
|
|
303
306
|
|
|
304
307
|
# Inspect a maven repository
|
|
305
308
|
# A ViewSet for MavenRemote.
|
|
306
|
-
# @param
|
|
309
|
+
# @param maven_maven_repository_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 [Array<(
|
|
311
|
-
def read_with_http_info(
|
|
313
|
+
# @return [Array<(MavenMavenRepositoryResponse, Integer, Hash)>] MavenMavenRepositoryResponse data, response status code and response headers
|
|
314
|
+
def read_with_http_info(maven_maven_repository_href, opts = {})
|
|
312
315
|
if @api_client.config.debugging
|
|
313
316
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.read ...'
|
|
314
317
|
end
|
|
315
|
-
# verify the required parameter '
|
|
316
|
-
if @api_client.config.client_side_validation &&
|
|
317
|
-
fail ArgumentError, "Missing the required parameter '
|
|
318
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
|
319
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
320
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.read"
|
|
318
321
|
end
|
|
319
322
|
# resource path
|
|
320
|
-
local_var_path = '{
|
|
323
|
+
local_var_path = '{maven_maven_repository_href}'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
|
321
324
|
|
|
322
325
|
# query parameters
|
|
323
326
|
query_params = opts[:query_params] || {}
|
|
@@ -336,10 +339,10 @@ module PulpMavenClient
|
|
|
336
339
|
post_body = opts[:body]
|
|
337
340
|
|
|
338
341
|
# return_type
|
|
339
|
-
return_type = opts[:return_type] || '
|
|
342
|
+
return_type = opts[:return_type] || 'MavenMavenRepositoryResponse'
|
|
340
343
|
|
|
341
344
|
# auth_names
|
|
342
|
-
auth_names = opts[:auth_names] || ['
|
|
345
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
343
346
|
|
|
344
347
|
new_options = opts.merge(
|
|
345
348
|
:header_params => header_params,
|
|
@@ -358,36 +361,36 @@ module PulpMavenClient
|
|
|
358
361
|
end
|
|
359
362
|
|
|
360
363
|
# Update a maven repository
|
|
361
|
-
# Trigger an asynchronous
|
|
362
|
-
# @param
|
|
363
|
-
# @param
|
|
364
|
+
# Trigger an asynchronous update task
|
|
365
|
+
# @param maven_maven_repository_href [String]
|
|
366
|
+
# @param maven_maven_repository [MavenMavenRepository]
|
|
364
367
|
# @param [Hash] opts the optional parameters
|
|
365
368
|
# @return [AsyncOperationResponse]
|
|
366
|
-
def update(
|
|
367
|
-
data, _status_code, _headers = update_with_http_info(
|
|
369
|
+
def update(maven_maven_repository_href, maven_maven_repository, opts = {})
|
|
370
|
+
data, _status_code, _headers = update_with_http_info(maven_maven_repository_href, maven_maven_repository, opts)
|
|
368
371
|
data
|
|
369
372
|
end
|
|
370
373
|
|
|
371
374
|
# Update a maven repository
|
|
372
|
-
# Trigger an asynchronous
|
|
373
|
-
# @param
|
|
374
|
-
# @param
|
|
375
|
+
# Trigger an asynchronous update task
|
|
376
|
+
# @param maven_maven_repository_href [String]
|
|
377
|
+
# @param maven_maven_repository [MavenMavenRepository]
|
|
375
378
|
# @param [Hash] opts the optional parameters
|
|
376
379
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
377
|
-
def update_with_http_info(
|
|
380
|
+
def update_with_http_info(maven_maven_repository_href, maven_maven_repository, opts = {})
|
|
378
381
|
if @api_client.config.debugging
|
|
379
382
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.update ...'
|
|
380
383
|
end
|
|
381
|
-
# verify the required parameter '
|
|
382
|
-
if @api_client.config.client_side_validation &&
|
|
383
|
-
fail ArgumentError, "Missing the required parameter '
|
|
384
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
|
385
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
386
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.update"
|
|
384
387
|
end
|
|
385
|
-
# verify the required parameter '
|
|
386
|
-
if @api_client.config.client_side_validation &&
|
|
387
|
-
fail ArgumentError, "Missing the required parameter '
|
|
388
|
+
# verify the required parameter 'maven_maven_repository' is set
|
|
389
|
+
if @api_client.config.client_side_validation && maven_maven_repository.nil?
|
|
390
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository' when calling RepositoriesMavenApi.update"
|
|
388
391
|
end
|
|
389
392
|
# resource path
|
|
390
|
-
local_var_path = '{
|
|
393
|
+
local_var_path = '{maven_maven_repository_href}'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
|
391
394
|
|
|
392
395
|
# query parameters
|
|
393
396
|
query_params = opts[:query_params] || {}
|
|
@@ -397,19 +400,19 @@ module PulpMavenClient
|
|
|
397
400
|
# HTTP header 'Accept' (if needed)
|
|
398
401
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
399
402
|
# HTTP header 'Content-Type'
|
|
400
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
403
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
401
404
|
|
|
402
405
|
# form parameters
|
|
403
406
|
form_params = opts[:form_params] || {}
|
|
404
407
|
|
|
405
408
|
# http body (model)
|
|
406
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
|
409
|
+
post_body = opts[:body] || @api_client.object_to_http_body(maven_maven_repository)
|
|
407
410
|
|
|
408
411
|
# return_type
|
|
409
412
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
410
413
|
|
|
411
414
|
# auth_names
|
|
412
|
-
auth_names = opts[:auth_names] || ['
|
|
415
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
413
416
|
|
|
414
417
|
new_options = opts.merge(
|
|
415
418
|
:header_params => header_params,
|