pulp_maven_client 0.1.0b2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +119 -0
  5. data/Rakefile +10 -0
  6. data/docs/AsyncOperationResponse.md +17 -0
  7. data/docs/ContentApi.md +188 -0
  8. data/docs/DistributionsApi.md +352 -0
  9. data/docs/InlineResponse200.md +23 -0
  10. data/docs/InlineResponse2001.md +23 -0
  11. data/docs/InlineResponse2002.md +23 -0
  12. data/docs/MavenArtifact.md +33 -0
  13. data/docs/MavenDistribution.md +29 -0
  14. data/docs/MavenRemote.md +47 -0
  15. data/docs/RemotesApi.md +356 -0
  16. data/git_push.sh +55 -0
  17. data/lib/pulp_maven_client/api/content_api.rb +231 -0
  18. data/lib/pulp_maven_client/api/distributions_api.rb +430 -0
  19. data/lib/pulp_maven_client/api/remotes_api.rb +436 -0
  20. data/lib/pulp_maven_client/api_client.rb +387 -0
  21. data/lib/pulp_maven_client/api_error.rb +57 -0
  22. data/lib/pulp_maven_client/configuration.rb +251 -0
  23. data/lib/pulp_maven_client/models/async_operation_response.rb +202 -0
  24. data/lib/pulp_maven_client/models/inline_response200.rb +235 -0
  25. data/lib/pulp_maven_client/models/inline_response2001.rb +235 -0
  26. data/lib/pulp_maven_client/models/inline_response2002.rb +235 -0
  27. data/lib/pulp_maven_client/models/maven_artifact.rb +379 -0
  28. data/lib/pulp_maven_client/models/maven_distribution.rb +337 -0
  29. data/lib/pulp_maven_client/models/maven_remote.rb +549 -0
  30. data/lib/pulp_maven_client/version.rb +15 -0
  31. data/lib/pulp_maven_client.rb +49 -0
  32. data/pulp_maven_client.gemspec +45 -0
  33. data/spec/api/content_api_spec.rb +79 -0
  34. data/spec/api/distributions_api_spec.rb +116 -0
  35. data/spec/api/remotes_api_spec.rb +118 -0
  36. data/spec/api_client_spec.rb +226 -0
  37. data/spec/configuration_spec.rb +42 -0
  38. data/spec/models/async_operation_response_spec.rb +41 -0
  39. data/spec/models/inline_response2001_spec.rb +59 -0
  40. data/spec/models/inline_response2002_spec.rb +59 -0
  41. data/spec/models/inline_response200_spec.rb +59 -0
  42. data/spec/models/maven_artifact_spec.rb +89 -0
  43. data/spec/models/maven_distribution_spec.rb +77 -0
  44. data/spec/models/maven_remote_spec.rb +135 -0
  45. data/spec/spec_helper.rb +111 -0
  46. metadata +281 -0
@@ -0,0 +1,352 @@
1
+ # PulpMavenClient::DistributionsApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**distributions_maven_maven_create**](DistributionsApi.md#distributions_maven_maven_create) | **POST** /pulp/api/v3/distributions/maven/maven/ | Create a maven distribution
8
+ [**distributions_maven_maven_delete**](DistributionsApi.md#distributions_maven_maven_delete) | **DELETE** {maven_distribution_href} | Delete a maven distribution
9
+ [**distributions_maven_maven_list**](DistributionsApi.md#distributions_maven_maven_list) | **GET** /pulp/api/v3/distributions/maven/maven/ | List maven distributions
10
+ [**distributions_maven_maven_partial_update**](DistributionsApi.md#distributions_maven_maven_partial_update) | **PATCH** {maven_distribution_href} | Partially update a maven distribution
11
+ [**distributions_maven_maven_read**](DistributionsApi.md#distributions_maven_maven_read) | **GET** {maven_distribution_href} | Inspect a maven distribution
12
+ [**distributions_maven_maven_update**](DistributionsApi.md#distributions_maven_maven_update) | **PUT** {maven_distribution_href} | Update a maven distribution
13
+
14
+
15
+
16
+ ## distributions_maven_maven_create
17
+
18
+ > AsyncOperationResponse distributions_maven_maven_create(data)
19
+
20
+ Create a maven distribution
21
+
22
+ Trigger an asynchronous create task
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::DistributionsApi.new
37
+ data = PulpMavenClient::MavenDistribution.new # MavenDistribution |
38
+
39
+ begin
40
+ #Create a maven distribution
41
+ result = api_instance.distributions_maven_maven_create(data)
42
+ p result
43
+ rescue PulpMavenClient::ApiError => e
44
+ puts "Exception when calling DistributionsApi->distributions_maven_maven_create: #{e}"
45
+ end
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+
51
+ Name | Type | Description | Notes
52
+ ------------- | ------------- | ------------- | -------------
53
+ **data** | [**MavenDistribution**](MavenDistribution.md)| |
54
+
55
+ ### Return type
56
+
57
+ [**AsyncOperationResponse**](AsyncOperationResponse.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
+ ## distributions_maven_maven_delete
70
+
71
+ > AsyncOperationResponse distributions_maven_maven_delete(maven_distribution_href)
72
+
73
+ Delete a maven distribution
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::DistributionsApi.new
90
+ maven_distribution_href = 'maven_distribution_href_example' # String | URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
91
+
92
+ begin
93
+ #Delete a maven distribution
94
+ result = api_instance.distributions_maven_maven_delete(maven_distribution_href)
95
+ p result
96
+ rescue PulpMavenClient::ApiError => e
97
+ puts "Exception when calling DistributionsApi->distributions_maven_maven_delete: #{e}"
98
+ end
99
+ ```
100
+
101
+ ### Parameters
102
+
103
+
104
+ Name | Type | Description | Notes
105
+ ------------- | ------------- | ------------- | -------------
106
+ **maven_distribution_href** | **String**| URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/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
+ ## distributions_maven_maven_list
123
+
124
+ > InlineResponse2001 distributions_maven_maven_list(opts)
125
+
126
+ List maven distributions
127
+
128
+ ViewSet for Maven Distributions.
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::DistributionsApi.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
+ base_path: 'base_path_example', # String |
147
+ base_path__contains: 'base_path__contains_example', # String | Filter results where base_path contains value
148
+ base_path__icontains: 'base_path__icontains_example', # String | Filter results where base_path contains value
149
+ base_path__in: 'base_path__in_example', # String | Filter results where base_path is in a comma-separated list of values
150
+ page: 56, # Integer | A page number within the paginated result set.
151
+ page_size: 56 # Integer | Number of results to return per page.
152
+ }
153
+
154
+ begin
155
+ #List maven distributions
156
+ result = api_instance.distributions_maven_maven_list(opts)
157
+ p result
158
+ rescue PulpMavenClient::ApiError => e
159
+ puts "Exception when calling DistributionsApi->distributions_maven_maven_list: #{e}"
160
+ end
161
+ ```
162
+
163
+ ### Parameters
164
+
165
+
166
+ Name | Type | Description | Notes
167
+ ------------- | ------------- | ------------- | -------------
168
+ **name** | **String**| | [optional]
169
+ **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
170
+ **base_path** | **String**| | [optional]
171
+ **base_path__contains** | **String**| Filter results where base_path contains value | [optional]
172
+ **base_path__icontains** | **String**| Filter results where base_path contains value | [optional]
173
+ **base_path__in** | **String**| Filter results where base_path is in a comma-separated list of values | [optional]
174
+ **page** | **Integer**| A page number within the paginated result set. | [optional]
175
+ **page_size** | **Integer**| Number of results to return per page. | [optional]
176
+
177
+ ### Return type
178
+
179
+ [**InlineResponse2001**](InlineResponse2001.md)
180
+
181
+ ### Authorization
182
+
183
+ [Basic](../README.md#Basic)
184
+
185
+ ### HTTP request headers
186
+
187
+ - **Content-Type**: Not defined
188
+ - **Accept**: application/json
189
+
190
+
191
+ ## distributions_maven_maven_partial_update
192
+
193
+ > AsyncOperationResponse distributions_maven_maven_partial_update(maven_distribution_href, data)
194
+
195
+ Partially update a maven distribution
196
+
197
+ Trigger an asynchronous partial update task
198
+
199
+ ### Example
200
+
201
+ ```ruby
202
+ # load the gem
203
+ require 'pulp_maven_client'
204
+ # setup authorization
205
+ PulpMavenClient.configure do |config|
206
+ # Configure HTTP basic authorization: Basic
207
+ config.username = 'YOUR USERNAME'
208
+ config.password = 'YOUR PASSWORD'
209
+ end
210
+
211
+ api_instance = PulpMavenClient::DistributionsApi.new
212
+ maven_distribution_href = 'maven_distribution_href_example' # String | URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
213
+ data = PulpMavenClient::MavenDistribution.new # MavenDistribution |
214
+
215
+ begin
216
+ #Partially update a maven distribution
217
+ result = api_instance.distributions_maven_maven_partial_update(maven_distribution_href, data)
218
+ p result
219
+ rescue PulpMavenClient::ApiError => e
220
+ puts "Exception when calling DistributionsApi->distributions_maven_maven_partial_update: #{e}"
221
+ end
222
+ ```
223
+
224
+ ### Parameters
225
+
226
+
227
+ Name | Type | Description | Notes
228
+ ------------- | ------------- | ------------- | -------------
229
+ **maven_distribution_href** | **String**| URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/ |
230
+ **data** | [**MavenDistribution**](MavenDistribution.md)| |
231
+
232
+ ### Return type
233
+
234
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
235
+
236
+ ### Authorization
237
+
238
+ [Basic](../README.md#Basic)
239
+
240
+ ### HTTP request headers
241
+
242
+ - **Content-Type**: application/json
243
+ - **Accept**: application/json
244
+
245
+
246
+ ## distributions_maven_maven_read
247
+
248
+ > MavenDistribution distributions_maven_maven_read(maven_distribution_href)
249
+
250
+ Inspect a maven distribution
251
+
252
+ ViewSet for Maven Distributions.
253
+
254
+ ### Example
255
+
256
+ ```ruby
257
+ # load the gem
258
+ require 'pulp_maven_client'
259
+ # setup authorization
260
+ PulpMavenClient.configure do |config|
261
+ # Configure HTTP basic authorization: Basic
262
+ config.username = 'YOUR USERNAME'
263
+ config.password = 'YOUR PASSWORD'
264
+ end
265
+
266
+ api_instance = PulpMavenClient::DistributionsApi.new
267
+ maven_distribution_href = 'maven_distribution_href_example' # String | URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
268
+
269
+ begin
270
+ #Inspect a maven distribution
271
+ result = api_instance.distributions_maven_maven_read(maven_distribution_href)
272
+ p result
273
+ rescue PulpMavenClient::ApiError => e
274
+ puts "Exception when calling DistributionsApi->distributions_maven_maven_read: #{e}"
275
+ end
276
+ ```
277
+
278
+ ### Parameters
279
+
280
+
281
+ Name | Type | Description | Notes
282
+ ------------- | ------------- | ------------- | -------------
283
+ **maven_distribution_href** | **String**| URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/ |
284
+
285
+ ### Return type
286
+
287
+ [**MavenDistribution**](MavenDistribution.md)
288
+
289
+ ### Authorization
290
+
291
+ [Basic](../README.md#Basic)
292
+
293
+ ### HTTP request headers
294
+
295
+ - **Content-Type**: Not defined
296
+ - **Accept**: application/json
297
+
298
+
299
+ ## distributions_maven_maven_update
300
+
301
+ > AsyncOperationResponse distributions_maven_maven_update(maven_distribution_href, data)
302
+
303
+ Update a maven distribution
304
+
305
+ Trigger an asynchronous update task
306
+
307
+ ### Example
308
+
309
+ ```ruby
310
+ # load the gem
311
+ require 'pulp_maven_client'
312
+ # setup authorization
313
+ PulpMavenClient.configure do |config|
314
+ # Configure HTTP basic authorization: Basic
315
+ config.username = 'YOUR USERNAME'
316
+ config.password = 'YOUR PASSWORD'
317
+ end
318
+
319
+ api_instance = PulpMavenClient::DistributionsApi.new
320
+ maven_distribution_href = 'maven_distribution_href_example' # String | URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
321
+ data = PulpMavenClient::MavenDistribution.new # MavenDistribution |
322
+
323
+ begin
324
+ #Update a maven distribution
325
+ result = api_instance.distributions_maven_maven_update(maven_distribution_href, data)
326
+ p result
327
+ rescue PulpMavenClient::ApiError => e
328
+ puts "Exception when calling DistributionsApi->distributions_maven_maven_update: #{e}"
329
+ end
330
+ ```
331
+
332
+ ### Parameters
333
+
334
+
335
+ Name | Type | Description | Notes
336
+ ------------- | ------------- | ------------- | -------------
337
+ **maven_distribution_href** | **String**| URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/ |
338
+ **data** | [**MavenDistribution**](MavenDistribution.md)| |
339
+
340
+ ### Return type
341
+
342
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
343
+
344
+ ### Authorization
345
+
346
+ [Basic](../README.md#Basic)
347
+
348
+ ### HTTP request headers
349
+
350
+ - **Content-Type**: application/json
351
+ - **Accept**: application/json
352
+
@@ -0,0 +1,23 @@
1
+ # PulpMavenClient::InlineResponse200
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **_next** | **String** | | [optional]
8
+ **previous** | **String** | | [optional]
9
+ **count** | **Integer** | |
10
+ **results** | [**Array<MavenArtifact>**](MavenArtifact.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpMavenClient'
16
+
17
+ instance = PulpMavenClient::InlineResponse200.new(_next: null,
18
+ previous: null,
19
+ count: null,
20
+ results: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,23 @@
1
+ # PulpMavenClient::InlineResponse2001
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **_next** | **String** | | [optional]
8
+ **previous** | **String** | | [optional]
9
+ **count** | **Integer** | |
10
+ **results** | [**Array<MavenDistribution>**](MavenDistribution.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpMavenClient'
16
+
17
+ instance = PulpMavenClient::InlineResponse2001.new(_next: null,
18
+ previous: null,
19
+ count: null,
20
+ results: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,23 @@
1
+ # PulpMavenClient::InlineResponse2002
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **_next** | **String** | | [optional]
8
+ **previous** | **String** | | [optional]
9
+ **count** | **Integer** | |
10
+ **results** | [**Array<MavenRemote>**](MavenRemote.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpMavenClient'
16
+
17
+ instance = PulpMavenClient::InlineResponse2002.new(_next: null,
18
+ previous: null,
19
+ count: null,
20
+ results: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,33 @@
1
+ # PulpMavenClient::MavenArtifact
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **_href** | **String** | | [optional]
8
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
9
+ **_type** | **String** | | [optional]
10
+ **_artifact** | **String** | Artifact file representing the physical content |
11
+ **_relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
12
+ **group_id** | **String** | Group Id of the artifact's package. | [optional]
13
+ **artifact_id** | **String** | Artifact Id of the artifact's package. | [optional]
14
+ **version** | **String** | Version of the artifact's package. | [optional]
15
+ **filename** | **String** | Filename of the artifact. | [optional]
16
+
17
+ ## Code Sample
18
+
19
+ ```ruby
20
+ require 'PulpMavenClient'
21
+
22
+ instance = PulpMavenClient::MavenArtifact.new(_href: null,
23
+ _created: null,
24
+ _type: null,
25
+ _artifact: null,
26
+ _relative_path: null,
27
+ group_id: null,
28
+ artifact_id: null,
29
+ version: null,
30
+ filename: null)
31
+ ```
32
+
33
+
@@ -0,0 +1,29 @@
1
+ # PulpMavenClient::MavenDistribution
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **_href** | **String** | | [optional]
8
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
9
+ **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
10
+ **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional]
11
+ **content_guard** | **String** | An optional content-guard. | [optional]
12
+ **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
13
+ **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional]
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'PulpMavenClient'
19
+
20
+ instance = PulpMavenClient::MavenDistribution.new(_href: null,
21
+ _created: null,
22
+ base_path: null,
23
+ base_url: null,
24
+ content_guard: null,
25
+ name: null,
26
+ remote: null)
27
+ ```
28
+
29
+
@@ -0,0 +1,47 @@
1
+ # PulpMavenClient::MavenRemote
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **_href** | **String** | | [optional]
8
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
9
+ **_type** | **String** | | [optional]
10
+ **name** | **String** | A unique name for this remote. |
11
+ **url** | **String** | The URL of an external content source. |
12
+ **validate** | **Boolean** | If True, the plugin will validate imported artifacts. | [optional]
13
+ **ssl_ca_certificate** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. Returns SHA256 sum on GET. | [optional]
14
+ **ssl_client_certificate** | **String** | A PEM encoded client certificate used for authentication. Returns SHA256 sum on GET. | [optional]
15
+ **ssl_client_key** | **String** | A PEM encoded private key used for authentication. Returns SHA256 sum on GET. | [optional]
16
+ **ssl_validation** | **Boolean** | If True, SSL peer validation must be performed. | [optional]
17
+ **proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
18
+ **username** | **String** | The username to be used for authentication when syncing. | [optional]
19
+ **password** | **String** | The password to be used for authentication when syncing. | [optional]
20
+ **_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional]
21
+ **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
22
+ **policy** | **String** | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'cache_only'. 'immediate' is the default. | [optional] [default to 'immediate']
23
+
24
+ ## Code Sample
25
+
26
+ ```ruby
27
+ require 'PulpMavenClient'
28
+
29
+ instance = PulpMavenClient::MavenRemote.new(_href: null,
30
+ _created: null,
31
+ _type: null,
32
+ name: null,
33
+ url: null,
34
+ validate: null,
35
+ ssl_ca_certificate: null,
36
+ ssl_client_certificate: null,
37
+ ssl_client_key: null,
38
+ ssl_validation: null,
39
+ proxy_url: null,
40
+ username: null,
41
+ password: null,
42
+ _last_updated: null,
43
+ download_concurrency: null,
44
+ policy: null)
45
+ ```
46
+
47
+