pulp_maven_client 0.1.0b2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +79 -0
- data/README.md +119 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/ContentApi.md +188 -0
- data/docs/DistributionsApi.md +352 -0
- data/docs/InlineResponse200.md +23 -0
- data/docs/InlineResponse2001.md +23 -0
- data/docs/InlineResponse2002.md +23 -0
- data/docs/MavenArtifact.md +33 -0
- data/docs/MavenDistribution.md +29 -0
- data/docs/MavenRemote.md +47 -0
- data/docs/RemotesApi.md +356 -0
- data/git_push.sh +55 -0
- data/lib/pulp_maven_client/api/content_api.rb +231 -0
- data/lib/pulp_maven_client/api/distributions_api.rb +430 -0
- data/lib/pulp_maven_client/api/remotes_api.rb +436 -0
- data/lib/pulp_maven_client/api_client.rb +387 -0
- data/lib/pulp_maven_client/api_error.rb +57 -0
- data/lib/pulp_maven_client/configuration.rb +251 -0
- data/lib/pulp_maven_client/models/async_operation_response.rb +202 -0
- data/lib/pulp_maven_client/models/inline_response200.rb +235 -0
- data/lib/pulp_maven_client/models/inline_response2001.rb +235 -0
- data/lib/pulp_maven_client/models/inline_response2002.rb +235 -0
- data/lib/pulp_maven_client/models/maven_artifact.rb +379 -0
- data/lib/pulp_maven_client/models/maven_distribution.rb +337 -0
- data/lib/pulp_maven_client/models/maven_remote.rb +549 -0
- data/lib/pulp_maven_client/version.rb +15 -0
- data/lib/pulp_maven_client.rb +49 -0
- data/pulp_maven_client.gemspec +45 -0
- data/spec/api/content_api_spec.rb +79 -0
- data/spec/api/distributions_api_spec.rb +116 -0
- data/spec/api/remotes_api_spec.rb +118 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/async_operation_response_spec.rb +41 -0
- data/spec/models/inline_response2001_spec.rb +59 -0
- data/spec/models/inline_response2002_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +59 -0
- data/spec/models/maven_artifact_spec.rb +89 -0
- data/spec/models/maven_distribution_spec.rb +77 -0
- data/spec/models/maven_remote_spec.rb +135 -0
- data/spec/spec_helper.rb +111 -0
- metadata +281 -0
data/docs/RemotesApi.md
ADDED
@@ -0,0 +1,356 @@
|
|
1
|
+
# PulpMavenClient::RemotesApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**remotes_maven_maven_create**](RemotesApi.md#remotes_maven_maven_create) | **POST** /pulp/api/v3/remotes/maven/maven/ | Create a maven remote
|
8
|
+
[**remotes_maven_maven_delete**](RemotesApi.md#remotes_maven_maven_delete) | **DELETE** {maven_remote_href} | Delete a maven remote
|
9
|
+
[**remotes_maven_maven_list**](RemotesApi.md#remotes_maven_maven_list) | **GET** /pulp/api/v3/remotes/maven/maven/ | List maven remotes
|
10
|
+
[**remotes_maven_maven_partial_update**](RemotesApi.md#remotes_maven_maven_partial_update) | **PATCH** {maven_remote_href} | Partially update a maven remote
|
11
|
+
[**remotes_maven_maven_read**](RemotesApi.md#remotes_maven_maven_read) | **GET** {maven_remote_href} | Inspect a maven remote
|
12
|
+
[**remotes_maven_maven_update**](RemotesApi.md#remotes_maven_maven_update) | **PUT** {maven_remote_href} | Update a maven remote
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
## remotes_maven_maven_create
|
17
|
+
|
18
|
+
> MavenRemote remotes_maven_maven_create(data)
|
19
|
+
|
20
|
+
Create a maven remote
|
21
|
+
|
22
|
+
A ViewSet for MavenRemote.
|
23
|
+
|
24
|
+
### Example
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
# load the gem
|
28
|
+
require 'pulp_maven_client'
|
29
|
+
# setup authorization
|
30
|
+
PulpMavenClient.configure do |config|
|
31
|
+
# Configure HTTP basic authorization: Basic
|
32
|
+
config.username = 'YOUR USERNAME'
|
33
|
+
config.password = 'YOUR PASSWORD'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = PulpMavenClient::RemotesApi.new
|
37
|
+
data = PulpMavenClient::MavenRemote.new # MavenRemote |
|
38
|
+
|
39
|
+
begin
|
40
|
+
#Create a maven remote
|
41
|
+
result = api_instance.remotes_maven_maven_create(data)
|
42
|
+
p result
|
43
|
+
rescue PulpMavenClient::ApiError => e
|
44
|
+
puts "Exception when calling RemotesApi->remotes_maven_maven_create: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
|
51
|
+
Name | Type | Description | Notes
|
52
|
+
------------- | ------------- | ------------- | -------------
|
53
|
+
**data** | [**MavenRemote**](MavenRemote.md)| |
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
[**MavenRemote**](MavenRemote.md)
|
58
|
+
|
59
|
+
### Authorization
|
60
|
+
|
61
|
+
[Basic](../README.md#Basic)
|
62
|
+
|
63
|
+
### HTTP request headers
|
64
|
+
|
65
|
+
- **Content-Type**: application/json
|
66
|
+
- **Accept**: application/json
|
67
|
+
|
68
|
+
|
69
|
+
## remotes_maven_maven_delete
|
70
|
+
|
71
|
+
> AsyncOperationResponse remotes_maven_maven_delete(maven_remote_href)
|
72
|
+
|
73
|
+
Delete a maven remote
|
74
|
+
|
75
|
+
Trigger an asynchronous delete task
|
76
|
+
|
77
|
+
### Example
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'pulp_maven_client'
|
82
|
+
# setup authorization
|
83
|
+
PulpMavenClient.configure do |config|
|
84
|
+
# Configure HTTP basic authorization: Basic
|
85
|
+
config.username = 'YOUR USERNAME'
|
86
|
+
config.password = 'YOUR PASSWORD'
|
87
|
+
end
|
88
|
+
|
89
|
+
api_instance = PulpMavenClient::RemotesApi.new
|
90
|
+
maven_remote_href = 'maven_remote_href_example' # String | URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
91
|
+
|
92
|
+
begin
|
93
|
+
#Delete a maven remote
|
94
|
+
result = api_instance.remotes_maven_maven_delete(maven_remote_href)
|
95
|
+
p result
|
96
|
+
rescue PulpMavenClient::ApiError => e
|
97
|
+
puts "Exception when calling RemotesApi->remotes_maven_maven_delete: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
### Parameters
|
102
|
+
|
103
|
+
|
104
|
+
Name | Type | Description | Notes
|
105
|
+
------------- | ------------- | ------------- | -------------
|
106
|
+
**maven_remote_href** | **String**| URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/ |
|
107
|
+
|
108
|
+
### Return type
|
109
|
+
|
110
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
111
|
+
|
112
|
+
### Authorization
|
113
|
+
|
114
|
+
[Basic](../README.md#Basic)
|
115
|
+
|
116
|
+
### HTTP request headers
|
117
|
+
|
118
|
+
- **Content-Type**: Not defined
|
119
|
+
- **Accept**: application/json
|
120
|
+
|
121
|
+
|
122
|
+
## remotes_maven_maven_list
|
123
|
+
|
124
|
+
> InlineResponse2002 remotes_maven_maven_list(opts)
|
125
|
+
|
126
|
+
List maven remotes
|
127
|
+
|
128
|
+
A ViewSet for MavenRemote.
|
129
|
+
|
130
|
+
### Example
|
131
|
+
|
132
|
+
```ruby
|
133
|
+
# load the gem
|
134
|
+
require 'pulp_maven_client'
|
135
|
+
# setup authorization
|
136
|
+
PulpMavenClient.configure do |config|
|
137
|
+
# Configure HTTP basic authorization: Basic
|
138
|
+
config.username = 'YOUR USERNAME'
|
139
|
+
config.password = 'YOUR PASSWORD'
|
140
|
+
end
|
141
|
+
|
142
|
+
api_instance = PulpMavenClient::RemotesApi.new
|
143
|
+
opts = {
|
144
|
+
name: 'name_example', # String |
|
145
|
+
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
146
|
+
_last_updated__lt: '_last_updated__lt_example', # String | Filter results where _last_updated is less than value
|
147
|
+
_last_updated__lte: '_last_updated__lte_example', # String | Filter results where _last_updated is less than or equal to value
|
148
|
+
_last_updated__gt: '_last_updated__gt_example', # String | Filter results where _last_updated is greater than value
|
149
|
+
_last_updated__gte: '_last_updated__gte_example', # String | Filter results where _last_updated is greater than or equal to value
|
150
|
+
_last_updated__range: '_last_updated__range_example', # String | Filter results where _last_updated is between two comma separated values
|
151
|
+
_last_updated: '_last_updated_example', # String | ISO 8601 formatted dates are supported
|
152
|
+
page: 56, # Integer | A page number within the paginated result set.
|
153
|
+
page_size: 56 # Integer | Number of results to return per page.
|
154
|
+
}
|
155
|
+
|
156
|
+
begin
|
157
|
+
#List maven remotes
|
158
|
+
result = api_instance.remotes_maven_maven_list(opts)
|
159
|
+
p result
|
160
|
+
rescue PulpMavenClient::ApiError => e
|
161
|
+
puts "Exception when calling RemotesApi->remotes_maven_maven_list: #{e}"
|
162
|
+
end
|
163
|
+
```
|
164
|
+
|
165
|
+
### Parameters
|
166
|
+
|
167
|
+
|
168
|
+
Name | Type | Description | Notes
|
169
|
+
------------- | ------------- | ------------- | -------------
|
170
|
+
**name** | **String**| | [optional]
|
171
|
+
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
172
|
+
**_last_updated__lt** | **String**| Filter results where _last_updated is less than value | [optional]
|
173
|
+
**_last_updated__lte** | **String**| Filter results where _last_updated is less than or equal to value | [optional]
|
174
|
+
**_last_updated__gt** | **String**| Filter results where _last_updated is greater than value | [optional]
|
175
|
+
**_last_updated__gte** | **String**| Filter results where _last_updated is greater than or equal to value | [optional]
|
176
|
+
**_last_updated__range** | **String**| Filter results where _last_updated is between two comma separated values | [optional]
|
177
|
+
**_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional]
|
178
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
179
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
180
|
+
|
181
|
+
### Return type
|
182
|
+
|
183
|
+
[**InlineResponse2002**](InlineResponse2002.md)
|
184
|
+
|
185
|
+
### Authorization
|
186
|
+
|
187
|
+
[Basic](../README.md#Basic)
|
188
|
+
|
189
|
+
### HTTP request headers
|
190
|
+
|
191
|
+
- **Content-Type**: Not defined
|
192
|
+
- **Accept**: application/json
|
193
|
+
|
194
|
+
|
195
|
+
## remotes_maven_maven_partial_update
|
196
|
+
|
197
|
+
> AsyncOperationResponse remotes_maven_maven_partial_update(maven_remote_href, data)
|
198
|
+
|
199
|
+
Partially update a maven remote
|
200
|
+
|
201
|
+
Trigger an asynchronous partial update task
|
202
|
+
|
203
|
+
### Example
|
204
|
+
|
205
|
+
```ruby
|
206
|
+
# load the gem
|
207
|
+
require 'pulp_maven_client'
|
208
|
+
# setup authorization
|
209
|
+
PulpMavenClient.configure do |config|
|
210
|
+
# Configure HTTP basic authorization: Basic
|
211
|
+
config.username = 'YOUR USERNAME'
|
212
|
+
config.password = 'YOUR PASSWORD'
|
213
|
+
end
|
214
|
+
|
215
|
+
api_instance = PulpMavenClient::RemotesApi.new
|
216
|
+
maven_remote_href = 'maven_remote_href_example' # String | URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
217
|
+
data = PulpMavenClient::MavenRemote.new # MavenRemote |
|
218
|
+
|
219
|
+
begin
|
220
|
+
#Partially update a maven remote
|
221
|
+
result = api_instance.remotes_maven_maven_partial_update(maven_remote_href, data)
|
222
|
+
p result
|
223
|
+
rescue PulpMavenClient::ApiError => e
|
224
|
+
puts "Exception when calling RemotesApi->remotes_maven_maven_partial_update: #{e}"
|
225
|
+
end
|
226
|
+
```
|
227
|
+
|
228
|
+
### Parameters
|
229
|
+
|
230
|
+
|
231
|
+
Name | Type | Description | Notes
|
232
|
+
------------- | ------------- | ------------- | -------------
|
233
|
+
**maven_remote_href** | **String**| URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/ |
|
234
|
+
**data** | [**MavenRemote**](MavenRemote.md)| |
|
235
|
+
|
236
|
+
### Return type
|
237
|
+
|
238
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
239
|
+
|
240
|
+
### Authorization
|
241
|
+
|
242
|
+
[Basic](../README.md#Basic)
|
243
|
+
|
244
|
+
### HTTP request headers
|
245
|
+
|
246
|
+
- **Content-Type**: application/json
|
247
|
+
- **Accept**: application/json
|
248
|
+
|
249
|
+
|
250
|
+
## remotes_maven_maven_read
|
251
|
+
|
252
|
+
> MavenRemote remotes_maven_maven_read(maven_remote_href)
|
253
|
+
|
254
|
+
Inspect a maven remote
|
255
|
+
|
256
|
+
A ViewSet for MavenRemote.
|
257
|
+
|
258
|
+
### Example
|
259
|
+
|
260
|
+
```ruby
|
261
|
+
# load the gem
|
262
|
+
require 'pulp_maven_client'
|
263
|
+
# setup authorization
|
264
|
+
PulpMavenClient.configure do |config|
|
265
|
+
# Configure HTTP basic authorization: Basic
|
266
|
+
config.username = 'YOUR USERNAME'
|
267
|
+
config.password = 'YOUR PASSWORD'
|
268
|
+
end
|
269
|
+
|
270
|
+
api_instance = PulpMavenClient::RemotesApi.new
|
271
|
+
maven_remote_href = 'maven_remote_href_example' # String | URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
272
|
+
|
273
|
+
begin
|
274
|
+
#Inspect a maven remote
|
275
|
+
result = api_instance.remotes_maven_maven_read(maven_remote_href)
|
276
|
+
p result
|
277
|
+
rescue PulpMavenClient::ApiError => e
|
278
|
+
puts "Exception when calling RemotesApi->remotes_maven_maven_read: #{e}"
|
279
|
+
end
|
280
|
+
```
|
281
|
+
|
282
|
+
### Parameters
|
283
|
+
|
284
|
+
|
285
|
+
Name | Type | Description | Notes
|
286
|
+
------------- | ------------- | ------------- | -------------
|
287
|
+
**maven_remote_href** | **String**| URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/ |
|
288
|
+
|
289
|
+
### Return type
|
290
|
+
|
291
|
+
[**MavenRemote**](MavenRemote.md)
|
292
|
+
|
293
|
+
### Authorization
|
294
|
+
|
295
|
+
[Basic](../README.md#Basic)
|
296
|
+
|
297
|
+
### HTTP request headers
|
298
|
+
|
299
|
+
- **Content-Type**: Not defined
|
300
|
+
- **Accept**: application/json
|
301
|
+
|
302
|
+
|
303
|
+
## remotes_maven_maven_update
|
304
|
+
|
305
|
+
> AsyncOperationResponse remotes_maven_maven_update(maven_remote_href, data)
|
306
|
+
|
307
|
+
Update a maven remote
|
308
|
+
|
309
|
+
Trigger an asynchronous update task
|
310
|
+
|
311
|
+
### Example
|
312
|
+
|
313
|
+
```ruby
|
314
|
+
# load the gem
|
315
|
+
require 'pulp_maven_client'
|
316
|
+
# setup authorization
|
317
|
+
PulpMavenClient.configure do |config|
|
318
|
+
# Configure HTTP basic authorization: Basic
|
319
|
+
config.username = 'YOUR USERNAME'
|
320
|
+
config.password = 'YOUR PASSWORD'
|
321
|
+
end
|
322
|
+
|
323
|
+
api_instance = PulpMavenClient::RemotesApi.new
|
324
|
+
maven_remote_href = 'maven_remote_href_example' # String | URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
325
|
+
data = PulpMavenClient::MavenRemote.new # MavenRemote |
|
326
|
+
|
327
|
+
begin
|
328
|
+
#Update a maven remote
|
329
|
+
result = api_instance.remotes_maven_maven_update(maven_remote_href, data)
|
330
|
+
p result
|
331
|
+
rescue PulpMavenClient::ApiError => e
|
332
|
+
puts "Exception when calling RemotesApi->remotes_maven_maven_update: #{e}"
|
333
|
+
end
|
334
|
+
```
|
335
|
+
|
336
|
+
### Parameters
|
337
|
+
|
338
|
+
|
339
|
+
Name | Type | Description | Notes
|
340
|
+
------------- | ------------- | ------------- | -------------
|
341
|
+
**maven_remote_href** | **String**| URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/ |
|
342
|
+
**data** | [**MavenRemote**](MavenRemote.md)| |
|
343
|
+
|
344
|
+
### Return type
|
345
|
+
|
346
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
347
|
+
|
348
|
+
### Authorization
|
349
|
+
|
350
|
+
[Basic](../README.md#Basic)
|
351
|
+
|
352
|
+
### HTTP request headers
|
353
|
+
|
354
|
+
- **Content-Type**: application/json
|
355
|
+
- **Accept**: application/json
|
356
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://openapi-generator.tech
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
@@ -0,0 +1,231 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module PulpMavenClient
|
16
|
+
class ContentApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a maven artifact
|
23
|
+
# A ViewSet for MavenArtifact.
|
24
|
+
# @param data [MavenArtifact]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [MavenArtifact]
|
27
|
+
def content_maven_artifact_create(data, opts = {})
|
28
|
+
data, _status_code, _headers = content_maven_artifact_create_with_http_info(data, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create a maven artifact
|
33
|
+
# A ViewSet for MavenArtifact.
|
34
|
+
# @param data [MavenArtifact]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(MavenArtifact, Integer, Hash)>] MavenArtifact data, response status code and response headers
|
37
|
+
def content_maven_artifact_create_with_http_info(data, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentApi.content_maven_artifact_create ...'
|
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 ContentApi.content_maven_artifact_create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/content/maven/artifact/'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'MavenArtifact'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['Basic']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: ContentApi#content_maven_artifact_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# List maven artifacts
|
87
|
+
# A ViewSet for MavenArtifact.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :group_id Filter results where group_id matches value
|
90
|
+
# @option opts [String] :artifact_id Filter results where artifact_id matches value
|
91
|
+
# @option opts [String] :version Filter results where version matches value
|
92
|
+
# @option opts [String] :filename Filter results where filename matches value
|
93
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
94
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
95
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
96
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
97
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
98
|
+
# @return [InlineResponse200]
|
99
|
+
def content_maven_artifact_list(opts = {})
|
100
|
+
data, _status_code, _headers = content_maven_artifact_list_with_http_info(opts)
|
101
|
+
data
|
102
|
+
end
|
103
|
+
|
104
|
+
# List maven artifacts
|
105
|
+
# A ViewSet for MavenArtifact.
|
106
|
+
# @param [Hash] opts the optional parameters
|
107
|
+
# @option opts [String] :group_id Filter results where group_id matches value
|
108
|
+
# @option opts [String] :artifact_id Filter results where artifact_id matches value
|
109
|
+
# @option opts [String] :version Filter results where version matches value
|
110
|
+
# @option opts [String] :filename Filter results where filename matches value
|
111
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
112
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
113
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
114
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
115
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
116
|
+
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
117
|
+
def content_maven_artifact_list_with_http_info(opts = {})
|
118
|
+
if @api_client.config.debugging
|
119
|
+
@api_client.config.logger.debug 'Calling API: ContentApi.content_maven_artifact_list ...'
|
120
|
+
end
|
121
|
+
# resource path
|
122
|
+
local_var_path = '/pulp/api/v3/content/maven/artifact/'
|
123
|
+
|
124
|
+
# query parameters
|
125
|
+
query_params = opts[:query_params] || {}
|
126
|
+
query_params[:'group_id'] = opts[:'group_id'] if !opts[:'group_id'].nil?
|
127
|
+
query_params[:'artifact_id'] = opts[:'artifact_id'] if !opts[:'artifact_id'].nil?
|
128
|
+
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
129
|
+
query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
|
130
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
131
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
132
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
133
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
134
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
135
|
+
|
136
|
+
# header parameters
|
137
|
+
header_params = opts[:header_params] || {}
|
138
|
+
# HTTP header 'Accept' (if needed)
|
139
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
140
|
+
|
141
|
+
# form parameters
|
142
|
+
form_params = opts[:form_params] || {}
|
143
|
+
|
144
|
+
# http body (model)
|
145
|
+
post_body = opts[:body]
|
146
|
+
|
147
|
+
# return_type
|
148
|
+
return_type = opts[:return_type] || 'InlineResponse200'
|
149
|
+
|
150
|
+
# auth_names
|
151
|
+
auth_names = opts[:auth_names] || ['Basic']
|
152
|
+
|
153
|
+
new_options = opts.merge(
|
154
|
+
:header_params => header_params,
|
155
|
+
:query_params => query_params,
|
156
|
+
:form_params => form_params,
|
157
|
+
:body => post_body,
|
158
|
+
:auth_names => auth_names,
|
159
|
+
:return_type => return_type
|
160
|
+
)
|
161
|
+
|
162
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
163
|
+
if @api_client.config.debugging
|
164
|
+
@api_client.config.logger.debug "API called: ContentApi#content_maven_artifact_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
165
|
+
end
|
166
|
+
return data, status_code, headers
|
167
|
+
end
|
168
|
+
|
169
|
+
# Inspect a maven artifact
|
170
|
+
# A ViewSet for MavenArtifact.
|
171
|
+
# @param maven_artifact_href [String] URI of Maven Artifact. e.g.: /pulp/api/v3/content/maven/artifact/1/
|
172
|
+
# @param [Hash] opts the optional parameters
|
173
|
+
# @return [MavenArtifact]
|
174
|
+
def content_maven_artifact_read(maven_artifact_href, opts = {})
|
175
|
+
data, _status_code, _headers = content_maven_artifact_read_with_http_info(maven_artifact_href, opts)
|
176
|
+
data
|
177
|
+
end
|
178
|
+
|
179
|
+
# Inspect a maven artifact
|
180
|
+
# A ViewSet for MavenArtifact.
|
181
|
+
# @param maven_artifact_href [String] URI of Maven Artifact. e.g.: /pulp/api/v3/content/maven/artifact/1/
|
182
|
+
# @param [Hash] opts the optional parameters
|
183
|
+
# @return [Array<(MavenArtifact, Integer, Hash)>] MavenArtifact data, response status code and response headers
|
184
|
+
def content_maven_artifact_read_with_http_info(maven_artifact_href, opts = {})
|
185
|
+
if @api_client.config.debugging
|
186
|
+
@api_client.config.logger.debug 'Calling API: ContentApi.content_maven_artifact_read ...'
|
187
|
+
end
|
188
|
+
# verify the required parameter 'maven_artifact_href' is set
|
189
|
+
if @api_client.config.client_side_validation && maven_artifact_href.nil?
|
190
|
+
fail ArgumentError, "Missing the required parameter 'maven_artifact_href' when calling ContentApi.content_maven_artifact_read"
|
191
|
+
end
|
192
|
+
# resource path
|
193
|
+
local_var_path = '{maven_artifact_href}'.sub('{' + 'maven_artifact_href' + '}', maven_artifact_href.to_s)
|
194
|
+
|
195
|
+
# query parameters
|
196
|
+
query_params = opts[:query_params] || {}
|
197
|
+
|
198
|
+
# header parameters
|
199
|
+
header_params = opts[:header_params] || {}
|
200
|
+
# HTTP header 'Accept' (if needed)
|
201
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
202
|
+
|
203
|
+
# form parameters
|
204
|
+
form_params = opts[:form_params] || {}
|
205
|
+
|
206
|
+
# http body (model)
|
207
|
+
post_body = opts[:body]
|
208
|
+
|
209
|
+
# return_type
|
210
|
+
return_type = opts[:return_type] || 'MavenArtifact'
|
211
|
+
|
212
|
+
# auth_names
|
213
|
+
auth_names = opts[:auth_names] || ['Basic']
|
214
|
+
|
215
|
+
new_options = opts.merge(
|
216
|
+
:header_params => header_params,
|
217
|
+
:query_params => query_params,
|
218
|
+
:form_params => form_params,
|
219
|
+
:body => post_body,
|
220
|
+
:auth_names => auth_names,
|
221
|
+
:return_type => return_type
|
222
|
+
)
|
223
|
+
|
224
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
225
|
+
if @api_client.config.debugging
|
226
|
+
@api_client.config.logger.debug "API called: ContentApi#content_maven_artifact_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
227
|
+
end
|
228
|
+
return data, status_code, headers
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|