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 remote
|
|
23
23
|
# A ViewSet for MavenRemote.
|
|
24
|
-
# @param
|
|
24
|
+
# @param maven_maven_remote [MavenMavenRemote]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [
|
|
27
|
-
def create(
|
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
|
26
|
+
# @return [MavenMavenRemoteResponse]
|
|
27
|
+
def create(maven_maven_remote, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_with_http_info(maven_maven_remote, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Create a maven remote
|
|
33
33
|
# A ViewSet for MavenRemote.
|
|
34
|
-
# @param
|
|
34
|
+
# @param maven_maven_remote [MavenMavenRemote]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(
|
|
37
|
-
def create_with_http_info(
|
|
36
|
+
# @return [Array<(MavenMavenRemoteResponse, Integer, Hash)>] MavenMavenRemoteResponse data, response status code and response headers
|
|
37
|
+
def create_with_http_info(maven_maven_remote, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
39
|
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.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_remote' is set
|
|
42
|
+
if @api_client.config.client_side_validation && maven_maven_remote.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_remote' when calling RemotesMavenApi.create"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/pulp/api/v3/remotes/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_remote)
|
|
63
63
|
|
|
64
64
|
# return_type
|
|
65
|
-
return_type = opts[:return_type] || '
|
|
65
|
+
return_type = opts[:return_type] || 'MavenMavenRemoteResponse'
|
|
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,
|
|
@@ -85,29 +85,29 @@ module PulpMavenClient
|
|
|
85
85
|
|
|
86
86
|
# Delete a maven remote
|
|
87
87
|
# Trigger an asynchronous delete task
|
|
88
|
-
# @param
|
|
88
|
+
# @param maven_maven_remote_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_remote_href, opts = {})
|
|
92
|
+
data, _status_code, _headers = delete_with_http_info(maven_maven_remote_href, opts)
|
|
93
93
|
data
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
# Delete a maven remote
|
|
97
97
|
# Trigger an asynchronous delete task
|
|
98
|
-
# @param
|
|
98
|
+
# @param maven_maven_remote_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_remote_href, opts = {})
|
|
102
102
|
if @api_client.config.debugging
|
|
103
103
|
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.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_remote_href' is set
|
|
106
|
+
if @api_client.config.client_side_validation && maven_maven_remote_href.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_remote_href' when calling RemotesMavenApi.delete"
|
|
108
108
|
end
|
|
109
109
|
# resource path
|
|
110
|
-
local_var_path = '{
|
|
110
|
+
local_var_path = '{maven_maven_remote_href}'.sub('{' + 'maven_maven_remote_href' + '}', CGI.escape(maven_maven_remote_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,19 +148,20 @@ module PulpMavenClient
|
|
|
148
148
|
# List maven remotes
|
|
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
|
-
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
154
|
-
# @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
155
|
-
# @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
|
156
|
-
# @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
|
157
|
-
# @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
158
|
-
# @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
|
|
159
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
|
|
160
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.
|
|
156
|
+
# @option opts [String] :pulp_last_updated pulp_last_updated
|
|
157
|
+
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
|
158
|
+
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
|
159
|
+
# @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
|
|
160
|
+
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
|
161
|
+
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
|
161
162
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
162
163
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
163
|
-
# @return [
|
|
164
|
+
# @return [PaginatedmavenMavenRemoteResponseList]
|
|
164
165
|
def list(opts = {})
|
|
165
166
|
data, _status_code, _headers = list_with_http_info(opts)
|
|
166
167
|
data
|
|
@@ -169,19 +170,20 @@ module PulpMavenClient
|
|
|
169
170
|
# List maven remotes
|
|
170
171
|
# A ViewSet for MavenRemote.
|
|
171
172
|
# @param [Hash] opts the optional parameters
|
|
172
|
-
# @option opts [String] :name
|
|
173
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
|
174
|
-
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
175
|
-
# @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
176
|
-
# @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
|
177
|
-
# @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
|
178
|
-
# @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
179
|
-
# @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
|
|
180
173
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
174
|
+
# @option opts [String] :name name
|
|
175
|
+
# @option opts [String] :name__in name__in
|
|
181
176
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
177
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
178
|
+
# @option opts [String] :pulp_last_updated pulp_last_updated
|
|
179
|
+
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
|
180
|
+
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
|
181
|
+
# @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
|
|
182
|
+
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
|
183
|
+
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
|
182
184
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
183
185
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
184
|
-
# @return [Array<(
|
|
186
|
+
# @return [Array<(PaginatedmavenMavenRemoteResponseList, Integer, Hash)>] PaginatedmavenMavenRemoteResponseList data, response status code and response headers
|
|
185
187
|
def list_with_http_info(opts = {})
|
|
186
188
|
if @api_client.config.debugging
|
|
187
189
|
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.list ...'
|
|
@@ -191,16 +193,17 @@ module PulpMavenClient
|
|
|
191
193
|
|
|
192
194
|
# query parameters
|
|
193
195
|
query_params = opts[:query_params] || {}
|
|
196
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
194
197
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
195
198
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
|
196
|
-
query_params[:'
|
|
197
|
-
query_params[:'
|
|
199
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
200
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
201
|
+
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
|
198
202
|
query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
|
|
199
203
|
query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
|
|
204
|
+
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
|
205
|
+
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
|
200
206
|
query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
|
|
201
|
-
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
|
202
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
203
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
204
207
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
205
208
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
206
209
|
|
|
@@ -216,10 +219,10 @@ module PulpMavenClient
|
|
|
216
219
|
post_body = opts[:body]
|
|
217
220
|
|
|
218
221
|
# return_type
|
|
219
|
-
return_type = opts[:return_type] || '
|
|
222
|
+
return_type = opts[:return_type] || 'PaginatedmavenMavenRemoteResponseList'
|
|
220
223
|
|
|
221
224
|
# auth_names
|
|
222
|
-
auth_names = opts[:auth_names] || ['
|
|
225
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
223
226
|
|
|
224
227
|
new_options = opts.merge(
|
|
225
228
|
:header_params => header_params,
|
|
@@ -237,37 +240,37 @@ module PulpMavenClient
|
|
|
237
240
|
return data, status_code, headers
|
|
238
241
|
end
|
|
239
242
|
|
|
240
|
-
#
|
|
243
|
+
# Update a maven remote
|
|
241
244
|
# Trigger an asynchronous partial update task
|
|
242
|
-
# @param
|
|
243
|
-
# @param
|
|
245
|
+
# @param maven_maven_remote_href [String]
|
|
246
|
+
# @param patchedmaven_maven_remote [PatchedmavenMavenRemote]
|
|
244
247
|
# @param [Hash] opts the optional parameters
|
|
245
248
|
# @return [AsyncOperationResponse]
|
|
246
|
-
def partial_update(
|
|
247
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
|
249
|
+
def partial_update(maven_maven_remote_href, patchedmaven_maven_remote, opts = {})
|
|
250
|
+
data, _status_code, _headers = partial_update_with_http_info(maven_maven_remote_href, patchedmaven_maven_remote, opts)
|
|
248
251
|
data
|
|
249
252
|
end
|
|
250
253
|
|
|
251
|
-
#
|
|
254
|
+
# Update a maven remote
|
|
252
255
|
# Trigger an asynchronous partial update task
|
|
253
|
-
# @param
|
|
254
|
-
# @param
|
|
256
|
+
# @param maven_maven_remote_href [String]
|
|
257
|
+
# @param patchedmaven_maven_remote [PatchedmavenMavenRemote]
|
|
255
258
|
# @param [Hash] opts the optional parameters
|
|
256
259
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
257
|
-
def partial_update_with_http_info(
|
|
260
|
+
def partial_update_with_http_info(maven_maven_remote_href, patchedmaven_maven_remote, opts = {})
|
|
258
261
|
if @api_client.config.debugging
|
|
259
262
|
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.partial_update ...'
|
|
260
263
|
end
|
|
261
|
-
# verify the required parameter '
|
|
262
|
-
if @api_client.config.client_side_validation &&
|
|
263
|
-
fail ArgumentError, "Missing the required parameter '
|
|
264
|
+
# verify the required parameter 'maven_maven_remote_href' is set
|
|
265
|
+
if @api_client.config.client_side_validation && maven_maven_remote_href.nil?
|
|
266
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_remote_href' when calling RemotesMavenApi.partial_update"
|
|
264
267
|
end
|
|
265
|
-
# verify the required parameter '
|
|
266
|
-
if @api_client.config.client_side_validation &&
|
|
267
|
-
fail ArgumentError, "Missing the required parameter '
|
|
268
|
+
# verify the required parameter 'patchedmaven_maven_remote' is set
|
|
269
|
+
if @api_client.config.client_side_validation && patchedmaven_maven_remote.nil?
|
|
270
|
+
fail ArgumentError, "Missing the required parameter 'patchedmaven_maven_remote' when calling RemotesMavenApi.partial_update"
|
|
268
271
|
end
|
|
269
272
|
# resource path
|
|
270
|
-
local_var_path = '{
|
|
273
|
+
local_var_path = '{maven_maven_remote_href}'.sub('{' + 'maven_maven_remote_href' + '}', CGI.escape(maven_maven_remote_href.to_s).gsub('%2F', '/'))
|
|
271
274
|
|
|
272
275
|
# query parameters
|
|
273
276
|
query_params = opts[:query_params] || {}
|
|
@@ -277,19 +280,19 @@ module PulpMavenClient
|
|
|
277
280
|
# HTTP header 'Accept' (if needed)
|
|
278
281
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
279
282
|
# HTTP header 'Content-Type'
|
|
280
|
-
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'])
|
|
281
284
|
|
|
282
285
|
# form parameters
|
|
283
286
|
form_params = opts[:form_params] || {}
|
|
284
287
|
|
|
285
288
|
# http body (model)
|
|
286
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
|
289
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patchedmaven_maven_remote)
|
|
287
290
|
|
|
288
291
|
# return_type
|
|
289
292
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
290
293
|
|
|
291
294
|
# auth_names
|
|
292
|
-
auth_names = opts[:auth_names] || ['
|
|
295
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
293
296
|
|
|
294
297
|
new_options = opts.merge(
|
|
295
298
|
:header_params => header_params,
|
|
@@ -309,33 +312,33 @@ module PulpMavenClient
|
|
|
309
312
|
|
|
310
313
|
# Inspect a maven remote
|
|
311
314
|
# A ViewSet for MavenRemote.
|
|
312
|
-
# @param
|
|
315
|
+
# @param maven_maven_remote_href [String]
|
|
313
316
|
# @param [Hash] opts the optional parameters
|
|
314
317
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
315
318
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
316
|
-
# @return [
|
|
317
|
-
def read(
|
|
318
|
-
data, _status_code, _headers = read_with_http_info(
|
|
319
|
+
# @return [MavenMavenRemoteResponse]
|
|
320
|
+
def read(maven_maven_remote_href, opts = {})
|
|
321
|
+
data, _status_code, _headers = read_with_http_info(maven_maven_remote_href, opts)
|
|
319
322
|
data
|
|
320
323
|
end
|
|
321
324
|
|
|
322
325
|
# Inspect a maven remote
|
|
323
326
|
# A ViewSet for MavenRemote.
|
|
324
|
-
# @param
|
|
327
|
+
# @param maven_maven_remote_href [String]
|
|
325
328
|
# @param [Hash] opts the optional parameters
|
|
326
329
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
327
330
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
328
|
-
# @return [Array<(
|
|
329
|
-
def read_with_http_info(
|
|
331
|
+
# @return [Array<(MavenMavenRemoteResponse, Integer, Hash)>] MavenMavenRemoteResponse data, response status code and response headers
|
|
332
|
+
def read_with_http_info(maven_maven_remote_href, opts = {})
|
|
330
333
|
if @api_client.config.debugging
|
|
331
334
|
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.read ...'
|
|
332
335
|
end
|
|
333
|
-
# verify the required parameter '
|
|
334
|
-
if @api_client.config.client_side_validation &&
|
|
335
|
-
fail ArgumentError, "Missing the required parameter '
|
|
336
|
+
# verify the required parameter 'maven_maven_remote_href' is set
|
|
337
|
+
if @api_client.config.client_side_validation && maven_maven_remote_href.nil?
|
|
338
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_remote_href' when calling RemotesMavenApi.read"
|
|
336
339
|
end
|
|
337
340
|
# resource path
|
|
338
|
-
local_var_path = '{
|
|
341
|
+
local_var_path = '{maven_maven_remote_href}'.sub('{' + 'maven_maven_remote_href' + '}', CGI.escape(maven_maven_remote_href.to_s).gsub('%2F', '/'))
|
|
339
342
|
|
|
340
343
|
# query parameters
|
|
341
344
|
query_params = opts[:query_params] || {}
|
|
@@ -354,10 +357,10 @@ module PulpMavenClient
|
|
|
354
357
|
post_body = opts[:body]
|
|
355
358
|
|
|
356
359
|
# return_type
|
|
357
|
-
return_type = opts[:return_type] || '
|
|
360
|
+
return_type = opts[:return_type] || 'MavenMavenRemoteResponse'
|
|
358
361
|
|
|
359
362
|
# auth_names
|
|
360
|
-
auth_names = opts[:auth_names] || ['
|
|
363
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
361
364
|
|
|
362
365
|
new_options = opts.merge(
|
|
363
366
|
:header_params => header_params,
|
|
@@ -377,35 +380,35 @@ module PulpMavenClient
|
|
|
377
380
|
|
|
378
381
|
# Update a maven remote
|
|
379
382
|
# Trigger an asynchronous update task
|
|
380
|
-
# @param
|
|
381
|
-
# @param
|
|
383
|
+
# @param maven_maven_remote_href [String]
|
|
384
|
+
# @param maven_maven_remote [MavenMavenRemote]
|
|
382
385
|
# @param [Hash] opts the optional parameters
|
|
383
386
|
# @return [AsyncOperationResponse]
|
|
384
|
-
def update(
|
|
385
|
-
data, _status_code, _headers = update_with_http_info(
|
|
387
|
+
def update(maven_maven_remote_href, maven_maven_remote, opts = {})
|
|
388
|
+
data, _status_code, _headers = update_with_http_info(maven_maven_remote_href, maven_maven_remote, opts)
|
|
386
389
|
data
|
|
387
390
|
end
|
|
388
391
|
|
|
389
392
|
# Update a maven remote
|
|
390
393
|
# Trigger an asynchronous update task
|
|
391
|
-
# @param
|
|
392
|
-
# @param
|
|
394
|
+
# @param maven_maven_remote_href [String]
|
|
395
|
+
# @param maven_maven_remote [MavenMavenRemote]
|
|
393
396
|
# @param [Hash] opts the optional parameters
|
|
394
397
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
395
|
-
def update_with_http_info(
|
|
398
|
+
def update_with_http_info(maven_maven_remote_href, maven_maven_remote, opts = {})
|
|
396
399
|
if @api_client.config.debugging
|
|
397
400
|
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.update ...'
|
|
398
401
|
end
|
|
399
|
-
# verify the required parameter '
|
|
400
|
-
if @api_client.config.client_side_validation &&
|
|
401
|
-
fail ArgumentError, "Missing the required parameter '
|
|
402
|
+
# verify the required parameter 'maven_maven_remote_href' is set
|
|
403
|
+
if @api_client.config.client_side_validation && maven_maven_remote_href.nil?
|
|
404
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_remote_href' when calling RemotesMavenApi.update"
|
|
402
405
|
end
|
|
403
|
-
# verify the required parameter '
|
|
404
|
-
if @api_client.config.client_side_validation &&
|
|
405
|
-
fail ArgumentError, "Missing the required parameter '
|
|
406
|
+
# verify the required parameter 'maven_maven_remote' is set
|
|
407
|
+
if @api_client.config.client_side_validation && maven_maven_remote.nil?
|
|
408
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_remote' when calling RemotesMavenApi.update"
|
|
406
409
|
end
|
|
407
410
|
# resource path
|
|
408
|
-
local_var_path = '{
|
|
411
|
+
local_var_path = '{maven_maven_remote_href}'.sub('{' + 'maven_maven_remote_href' + '}', CGI.escape(maven_maven_remote_href.to_s).gsub('%2F', '/'))
|
|
409
412
|
|
|
410
413
|
# query parameters
|
|
411
414
|
query_params = opts[:query_params] || {}
|
|
@@ -415,19 +418,19 @@ module PulpMavenClient
|
|
|
415
418
|
# HTTP header 'Accept' (if needed)
|
|
416
419
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
417
420
|
# HTTP header 'Content-Type'
|
|
418
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
421
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
419
422
|
|
|
420
423
|
# form parameters
|
|
421
424
|
form_params = opts[:form_params] || {}
|
|
422
425
|
|
|
423
426
|
# http body (model)
|
|
424
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
|
427
|
+
post_body = opts[:body] || @api_client.object_to_http_body(maven_maven_remote)
|
|
425
428
|
|
|
426
429
|
# return_type
|
|
427
430
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
428
431
|
|
|
429
432
|
# auth_names
|
|
430
|
-
auth_names = opts[:auth_names] || ['
|
|
433
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
431
434
|
|
|
432
435
|
new_options = opts.merge(
|
|
433
436
|
:header_params => header_params,
|