pulp_maven_client 0.1.0b2 → 0.1.0b3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -22
- data/docs/{ContentApi.md → ContentArtifactApi.md} +29 -23
- data/docs/{DistributionsApi.md → DistributionsMavenApi.md} +47 -41
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/MavenRemote.md +3 -5
- data/docs/{RemotesApi.md → RemotesMavenApi.md} +47 -41
- data/git_push.sh +10 -7
- data/lib/pulp_maven_client/api/{content_api.rb → content_artifact_api.rb} +33 -27
- data/lib/pulp_maven_client/api/{distributions_api.rb → distributions_maven_api.rb} +56 -50
- data/lib/pulp_maven_client/api/{remotes_api.rb → remotes_maven_api.rb} +56 -50
- data/lib/pulp_maven_client/api_client.rb +77 -62
- data/lib/pulp_maven_client/api_error.rb +1 -1
- data/lib/pulp_maven_client/configuration.rb +13 -21
- data/lib/pulp_maven_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_maven_client/models/inline_response200.rb +11 -11
- data/lib/pulp_maven_client/models/inline_response2001.rb +11 -11
- data/lib/pulp_maven_client/models/inline_response2002.rb +11 -11
- data/lib/pulp_maven_client/models/maven_artifact.rb +1 -1
- data/lib/pulp_maven_client/models/maven_distribution.rb +1 -1
- data/lib/pulp_maven_client/models/maven_remote.rb +7 -17
- data/lib/pulp_maven_client/version.rb +2 -2
- data/lib/pulp_maven_client.rb +4 -4
- data/pulp_maven_client.gemspec +3 -9
- data/spec/api/{content_api_spec.rb → content_artifact_api_spec.rb} +17 -15
- data/spec/api/{distributions_api_spec.rb → distributions_maven_api_spec.rb} +23 -21
- data/spec/api/{remotes_api_spec.rb → remotes_maven_api_spec.rb} +23 -21
- data/spec/api_client_spec.rb +1 -39
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +4 -4
- data/spec/models/inline_response2002_spec.rb +4 -4
- data/spec/models/inline_response200_spec.rb +4 -4
- data/spec/models/maven_artifact_spec.rb +1 -1
- data/spec/models/maven_distribution_spec.rb +1 -1
- data/spec/models/maven_remote_spec.rb +2 -8
- data/spec/spec_helper.rb +1 -1
- metadata +18 -145
- data/Gemfile.lock +0 -79
@@ -1,21 +1,21 @@
|
|
1
|
-
# PulpMavenClient::
|
1
|
+
# PulpMavenClient::RemotesMavenApi
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
8
|
-
[**
|
9
|
-
[**
|
10
|
-
[**
|
11
|
-
[**
|
12
|
-
[**
|
7
|
+
[**create**](RemotesMavenApi.md#create) | **POST** /pulp/api/v3/remotes/maven/maven/ | Create a maven remote
|
8
|
+
[**delete**](RemotesMavenApi.md#delete) | **DELETE** {maven_remote_href} | Delete a maven remote
|
9
|
+
[**list**](RemotesMavenApi.md#list) | **GET** /pulp/api/v3/remotes/maven/maven/ | List maven remotes
|
10
|
+
[**partial_update**](RemotesMavenApi.md#partial_update) | **PATCH** {maven_remote_href} | Partially update a maven remote
|
11
|
+
[**read**](RemotesMavenApi.md#read) | **GET** {maven_remote_href} | Inspect a maven remote
|
12
|
+
[**update**](RemotesMavenApi.md#update) | **PUT** {maven_remote_href} | Update a maven remote
|
13
13
|
|
14
14
|
|
15
15
|
|
16
|
-
##
|
16
|
+
## create
|
17
17
|
|
18
|
-
> MavenRemote
|
18
|
+
> MavenRemote create(data)
|
19
19
|
|
20
20
|
Create a maven remote
|
21
21
|
|
@@ -33,15 +33,15 @@ PulpMavenClient.configure do |config|
|
|
33
33
|
config.password = 'YOUR PASSWORD'
|
34
34
|
end
|
35
35
|
|
36
|
-
api_instance = PulpMavenClient::
|
36
|
+
api_instance = PulpMavenClient::RemotesMavenApi.new
|
37
37
|
data = PulpMavenClient::MavenRemote.new # MavenRemote |
|
38
38
|
|
39
39
|
begin
|
40
40
|
#Create a maven remote
|
41
|
-
result = api_instance.
|
41
|
+
result = api_instance.create(data)
|
42
42
|
p result
|
43
43
|
rescue PulpMavenClient::ApiError => e
|
44
|
-
puts "Exception when calling
|
44
|
+
puts "Exception when calling RemotesMavenApi->create: #{e}"
|
45
45
|
end
|
46
46
|
```
|
47
47
|
|
@@ -66,9 +66,9 @@ Name | Type | Description | Notes
|
|
66
66
|
- **Accept**: application/json
|
67
67
|
|
68
68
|
|
69
|
-
##
|
69
|
+
## delete
|
70
70
|
|
71
|
-
> AsyncOperationResponse
|
71
|
+
> AsyncOperationResponse delete(maven_remote_href)
|
72
72
|
|
73
73
|
Delete a maven remote
|
74
74
|
|
@@ -86,15 +86,15 @@ PulpMavenClient.configure do |config|
|
|
86
86
|
config.password = 'YOUR PASSWORD'
|
87
87
|
end
|
88
88
|
|
89
|
-
api_instance = PulpMavenClient::
|
89
|
+
api_instance = PulpMavenClient::RemotesMavenApi.new
|
90
90
|
maven_remote_href = 'maven_remote_href_example' # String | URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
91
91
|
|
92
92
|
begin
|
93
93
|
#Delete a maven remote
|
94
|
-
result = api_instance.
|
94
|
+
result = api_instance.delete(maven_remote_href)
|
95
95
|
p result
|
96
96
|
rescue PulpMavenClient::ApiError => e
|
97
|
-
puts "Exception when calling
|
97
|
+
puts "Exception when calling RemotesMavenApi->delete: #{e}"
|
98
98
|
end
|
99
99
|
```
|
100
100
|
|
@@ -119,9 +119,9 @@ Name | Type | Description | Notes
|
|
119
119
|
- **Accept**: application/json
|
120
120
|
|
121
121
|
|
122
|
-
##
|
122
|
+
## list
|
123
123
|
|
124
|
-
> InlineResponse2002
|
124
|
+
> InlineResponse2002 list(opts)
|
125
125
|
|
126
126
|
List maven remotes
|
127
127
|
|
@@ -139,7 +139,7 @@ PulpMavenClient.configure do |config|
|
|
139
139
|
config.password = 'YOUR PASSWORD'
|
140
140
|
end
|
141
141
|
|
142
|
-
api_instance = PulpMavenClient::
|
142
|
+
api_instance = PulpMavenClient::RemotesMavenApi.new
|
143
143
|
opts = {
|
144
144
|
name: 'name_example', # String |
|
145
145
|
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
@@ -149,16 +149,17 @@ opts = {
|
|
149
149
|
_last_updated__gte: '_last_updated__gte_example', # String | Filter results where _last_updated is greater than or equal to value
|
150
150
|
_last_updated__range: '_last_updated__range_example', # String | Filter results where _last_updated is between two comma separated values
|
151
151
|
_last_updated: '_last_updated_example', # String | ISO 8601 formatted dates are supported
|
152
|
-
|
153
|
-
|
152
|
+
limit: 56, # Integer | Number of results to return per page.
|
153
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
154
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
154
155
|
}
|
155
156
|
|
156
157
|
begin
|
157
158
|
#List maven remotes
|
158
|
-
result = api_instance.
|
159
|
+
result = api_instance.list(opts)
|
159
160
|
p result
|
160
161
|
rescue PulpMavenClient::ApiError => e
|
161
|
-
puts "Exception when calling
|
162
|
+
puts "Exception when calling RemotesMavenApi->list: #{e}"
|
162
163
|
end
|
163
164
|
```
|
164
165
|
|
@@ -175,8 +176,9 @@ Name | Type | Description | Notes
|
|
175
176
|
**_last_updated__gte** | **String**| Filter results where _last_updated is greater than or equal to value | [optional]
|
176
177
|
**_last_updated__range** | **String**| Filter results where _last_updated is between two comma separated values | [optional]
|
177
178
|
**_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional]
|
178
|
-
**
|
179
|
-
**
|
179
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
180
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
181
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
180
182
|
|
181
183
|
### Return type
|
182
184
|
|
@@ -192,9 +194,9 @@ Name | Type | Description | Notes
|
|
192
194
|
- **Accept**: application/json
|
193
195
|
|
194
196
|
|
195
|
-
##
|
197
|
+
## partial_update
|
196
198
|
|
197
|
-
> AsyncOperationResponse
|
199
|
+
> AsyncOperationResponse partial_update(maven_remote_href, data)
|
198
200
|
|
199
201
|
Partially update a maven remote
|
200
202
|
|
@@ -212,16 +214,16 @@ PulpMavenClient.configure do |config|
|
|
212
214
|
config.password = 'YOUR PASSWORD'
|
213
215
|
end
|
214
216
|
|
215
|
-
api_instance = PulpMavenClient::
|
217
|
+
api_instance = PulpMavenClient::RemotesMavenApi.new
|
216
218
|
maven_remote_href = 'maven_remote_href_example' # String | URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
217
219
|
data = PulpMavenClient::MavenRemote.new # MavenRemote |
|
218
220
|
|
219
221
|
begin
|
220
222
|
#Partially update a maven remote
|
221
|
-
result = api_instance.
|
223
|
+
result = api_instance.partial_update(maven_remote_href, data)
|
222
224
|
p result
|
223
225
|
rescue PulpMavenClient::ApiError => e
|
224
|
-
puts "Exception when calling
|
226
|
+
puts "Exception when calling RemotesMavenApi->partial_update: #{e}"
|
225
227
|
end
|
226
228
|
```
|
227
229
|
|
@@ -247,9 +249,9 @@ Name | Type | Description | Notes
|
|
247
249
|
- **Accept**: application/json
|
248
250
|
|
249
251
|
|
250
|
-
##
|
252
|
+
## read
|
251
253
|
|
252
|
-
> MavenRemote
|
254
|
+
> MavenRemote read(maven_remote_href, opts)
|
253
255
|
|
254
256
|
Inspect a maven remote
|
255
257
|
|
@@ -267,15 +269,18 @@ PulpMavenClient.configure do |config|
|
|
267
269
|
config.password = 'YOUR PASSWORD'
|
268
270
|
end
|
269
271
|
|
270
|
-
api_instance = PulpMavenClient::
|
272
|
+
api_instance = PulpMavenClient::RemotesMavenApi.new
|
271
273
|
maven_remote_href = 'maven_remote_href_example' # String | URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
274
|
+
opts = {
|
275
|
+
fields: 'fields_example' # String | A list of fields to include in the response.
|
276
|
+
}
|
272
277
|
|
273
278
|
begin
|
274
279
|
#Inspect a maven remote
|
275
|
-
result = api_instance.
|
280
|
+
result = api_instance.read(maven_remote_href, opts)
|
276
281
|
p result
|
277
282
|
rescue PulpMavenClient::ApiError => e
|
278
|
-
puts "Exception when calling
|
283
|
+
puts "Exception when calling RemotesMavenApi->read: #{e}"
|
279
284
|
end
|
280
285
|
```
|
281
286
|
|
@@ -285,6 +290,7 @@ end
|
|
285
290
|
Name | Type | Description | Notes
|
286
291
|
------------- | ------------- | ------------- | -------------
|
287
292
|
**maven_remote_href** | **String**| URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/ |
|
293
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
288
294
|
|
289
295
|
### Return type
|
290
296
|
|
@@ -300,9 +306,9 @@ Name | Type | Description | Notes
|
|
300
306
|
- **Accept**: application/json
|
301
307
|
|
302
308
|
|
303
|
-
##
|
309
|
+
## update
|
304
310
|
|
305
|
-
> AsyncOperationResponse
|
311
|
+
> AsyncOperationResponse update(maven_remote_href, data)
|
306
312
|
|
307
313
|
Update a maven remote
|
308
314
|
|
@@ -320,16 +326,16 @@ PulpMavenClient.configure do |config|
|
|
320
326
|
config.password = 'YOUR PASSWORD'
|
321
327
|
end
|
322
328
|
|
323
|
-
api_instance = PulpMavenClient::
|
329
|
+
api_instance = PulpMavenClient::RemotesMavenApi.new
|
324
330
|
maven_remote_href = 'maven_remote_href_example' # String | URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
325
331
|
data = PulpMavenClient::MavenRemote.new # MavenRemote |
|
326
332
|
|
327
333
|
begin
|
328
334
|
#Update a maven remote
|
329
|
-
result = api_instance.
|
335
|
+
result = api_instance.update(maven_remote_href, data)
|
330
336
|
p result
|
331
337
|
rescue PulpMavenClient::ApiError => e
|
332
|
-
puts "Exception when calling
|
338
|
+
puts "Exception when calling RemotesMavenApi->update: #{e}"
|
333
339
|
end
|
334
340
|
```
|
335
341
|
|
data/git_push.sh
CHANGED
@@ -1,14 +1,17 @@
|
|
1
1
|
#!/bin/sh
|
2
|
-
#
|
3
|
-
# Generated by: https://openapi-generator.tech
|
4
|
-
#
|
5
2
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
3
|
#
|
7
|
-
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
8
5
|
|
9
6
|
git_user_id=$1
|
10
7
|
git_repo_id=$2
|
11
8
|
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
12
15
|
|
13
16
|
if [ "$git_user_id" = "" ]; then
|
14
17
|
git_user_id="GIT_USER_ID"
|
@@ -40,9 +43,9 @@ if [ "$git_remote" = "" ]; then # git remote not defined
|
|
40
43
|
|
41
44
|
if [ "$GIT_TOKEN" = "" ]; then
|
42
45
|
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
-
git remote add origin https
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
44
47
|
else
|
45
|
-
git remote add origin https://${git_user_id}:${GIT_TOKEN}
|
48
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
46
49
|
fi
|
47
50
|
|
48
51
|
fi
|
@@ -50,6 +53,6 @@ fi
|
|
50
53
|
git pull origin master
|
51
54
|
|
52
55
|
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
-
echo "Git pushing to https
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
54
57
|
git push origin master 2>&1 | grep -v 'To https'
|
55
58
|
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module PulpMavenClient
|
16
|
-
class
|
16
|
+
class ContentArtifactApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -24,8 +24,8 @@ module PulpMavenClient
|
|
24
24
|
# @param data [MavenArtifact]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [MavenArtifact]
|
27
|
-
def
|
28
|
-
data, _status_code, _headers =
|
27
|
+
def create(data, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
@@ -34,13 +34,13 @@ module PulpMavenClient
|
|
34
34
|
# @param data [MavenArtifact]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(MavenArtifact, Integer, Hash)>] MavenArtifact data, response status code and response headers
|
37
|
-
def
|
37
|
+
def create_with_http_info(data, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentArtifactApi.create ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'data' is set
|
42
42
|
if @api_client.config.client_side_validation && data.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
43
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ContentArtifactApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/pulp/api/v3/content/maven/artifact/'
|
@@ -78,7 +78,7 @@ module PulpMavenClient
|
|
78
78
|
|
79
79
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
80
|
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called:
|
81
|
+
@api_client.config.logger.debug "API called: ContentArtifactApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
@@ -93,11 +93,12 @@ module PulpMavenClient
|
|
93
93
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
94
94
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
95
95
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
96
|
-
# @option opts [Integer] :
|
97
|
-
# @option opts [Integer] :
|
96
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
97
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
98
99
|
# @return [InlineResponse200]
|
99
|
-
def
|
100
|
-
data, _status_code, _headers =
|
100
|
+
def list(opts = {})
|
101
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
101
102
|
data
|
102
103
|
end
|
103
104
|
|
@@ -111,12 +112,13 @@ module PulpMavenClient
|
|
111
112
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
112
113
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
113
114
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
114
|
-
# @option opts [Integer] :
|
115
|
-
# @option opts [Integer] :
|
115
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
116
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
117
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
116
118
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
117
|
-
def
|
119
|
+
def list_with_http_info(opts = {})
|
118
120
|
if @api_client.config.debugging
|
119
|
-
@api_client.config.logger.debug 'Calling API:
|
121
|
+
@api_client.config.logger.debug 'Calling API: ContentArtifactApi.list ...'
|
120
122
|
end
|
121
123
|
# resource path
|
122
124
|
local_var_path = '/pulp/api/v3/content/maven/artifact/'
|
@@ -130,8 +132,9 @@ module PulpMavenClient
|
|
130
132
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
131
133
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
132
134
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
133
|
-
query_params[:'
|
134
|
-
query_params[:'
|
135
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
136
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
137
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
135
138
|
|
136
139
|
# header parameters
|
137
140
|
header_params = opts[:header_params] || {}
|
@@ -161,7 +164,7 @@ module PulpMavenClient
|
|
161
164
|
|
162
165
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
163
166
|
if @api_client.config.debugging
|
164
|
-
@api_client.config.logger.debug "API called:
|
167
|
+
@api_client.config.logger.debug "API called: ContentArtifactApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
165
168
|
end
|
166
169
|
return data, status_code, headers
|
167
170
|
end
|
@@ -170,9 +173,10 @@ module PulpMavenClient
|
|
170
173
|
# A ViewSet for MavenArtifact.
|
171
174
|
# @param maven_artifact_href [String] URI of Maven Artifact. e.g.: /pulp/api/v3/content/maven/artifact/1/
|
172
175
|
# @param [Hash] opts the optional parameters
|
176
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
173
177
|
# @return [MavenArtifact]
|
174
|
-
def
|
175
|
-
data, _status_code, _headers =
|
178
|
+
def read(maven_artifact_href, opts = {})
|
179
|
+
data, _status_code, _headers = read_with_http_info(maven_artifact_href, opts)
|
176
180
|
data
|
177
181
|
end
|
178
182
|
|
@@ -180,20 +184,22 @@ module PulpMavenClient
|
|
180
184
|
# A ViewSet for MavenArtifact.
|
181
185
|
# @param maven_artifact_href [String] URI of Maven Artifact. e.g.: /pulp/api/v3/content/maven/artifact/1/
|
182
186
|
# @param [Hash] opts the optional parameters
|
187
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
183
188
|
# @return [Array<(MavenArtifact, Integer, Hash)>] MavenArtifact data, response status code and response headers
|
184
|
-
def
|
189
|
+
def read_with_http_info(maven_artifact_href, opts = {})
|
185
190
|
if @api_client.config.debugging
|
186
|
-
@api_client.config.logger.debug 'Calling API:
|
191
|
+
@api_client.config.logger.debug 'Calling API: ContentArtifactApi.read ...'
|
187
192
|
end
|
188
193
|
# verify the required parameter 'maven_artifact_href' is set
|
189
194
|
if @api_client.config.client_side_validation && maven_artifact_href.nil?
|
190
|
-
fail ArgumentError, "Missing the required parameter 'maven_artifact_href' when calling
|
195
|
+
fail ArgumentError, "Missing the required parameter 'maven_artifact_href' when calling ContentArtifactApi.read"
|
191
196
|
end
|
192
197
|
# resource path
|
193
|
-
local_var_path = '{maven_artifact_href}'.sub('{' + 'maven_artifact_href' + '}', maven_artifact_href.to_s)
|
198
|
+
local_var_path = '{maven_artifact_href}'.sub('{' + 'maven_artifact_href' + '}', CGI.escape(maven_artifact_href.to_s).gsub('%2F', '/'))
|
194
199
|
|
195
200
|
# query parameters
|
196
201
|
query_params = opts[:query_params] || {}
|
202
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
197
203
|
|
198
204
|
# header parameters
|
199
205
|
header_params = opts[:header_params] || {}
|
@@ -223,7 +229,7 @@ module PulpMavenClient
|
|
223
229
|
|
224
230
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
225
231
|
if @api_client.config.debugging
|
226
|
-
@api_client.config.logger.debug "API called:
|
232
|
+
@api_client.config.logger.debug "API called: ContentArtifactApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
227
233
|
end
|
228
234
|
return data, status_code, headers
|
229
235
|
end
|