pulpcore_client 3.0.0rc2
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 +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +79 -0
- data/README.md +151 -0
- data/Rakefile +10 -0
- data/docs/Artifact.md +37 -0
- data/docs/ArtifactsApi.md +253 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/InlineResponse200.md +23 -0
- data/docs/InlineResponse2001.md +23 -0
- data/docs/InlineResponse2002.md +23 -0
- data/docs/InlineResponse2003.md +23 -0
- data/docs/InlineResponse2004.md +23 -0
- data/docs/InlineResponse2005.md +23 -0
- data/docs/OrphansApi.md +58 -0
- data/docs/ProgressReport.md +27 -0
- data/docs/RepositoriesApi.md +584 -0
- data/docs/Repository.md +27 -0
- data/docs/RepositoryVersion.md +25 -0
- data/docs/RepositoryVersionCreate.md +21 -0
- data/docs/StatusApi.md +57 -0
- data/docs/Task.md +41 -0
- data/docs/TasksApi.md +263 -0
- data/docs/Upload.md +25 -0
- data/docs/UploadsApi.md +395 -0
- data/docs/Worker.md +27 -0
- data/docs/WorkersApi.md +136 -0
- data/git_push.sh +55 -0
- data/lib/pulpcore_client/api/artifacts_api.rb +306 -0
- data/lib/pulpcore_client/api/orphans_api.rb +78 -0
- data/lib/pulpcore_client/api/repositories_api.rb +710 -0
- data/lib/pulpcore_client/api/status_api.rb +76 -0
- data/lib/pulpcore_client/api/tasks_api.rb +330 -0
- data/lib/pulpcore_client/api/uploads_api.rb +493 -0
- data/lib/pulpcore_client/api/workers_api.rb +172 -0
- data/lib/pulpcore_client/api_client.rb +387 -0
- data/lib/pulpcore_client/api_error.rb +57 -0
- data/lib/pulpcore_client/configuration.rb +251 -0
- data/lib/pulpcore_client/models/artifact.rb +296 -0
- data/lib/pulpcore_client/models/async_operation_response.rb +202 -0
- data/lib/pulpcore_client/models/inline_response200.rb +235 -0
- data/lib/pulpcore_client/models/inline_response2001.rb +235 -0
- data/lib/pulpcore_client/models/inline_response2002.rb +235 -0
- data/lib/pulpcore_client/models/inline_response2003.rb +235 -0
- data/lib/pulpcore_client/models/inline_response2004.rb +235 -0
- data/lib/pulpcore_client/models/inline_response2005.rb +235 -0
- data/lib/pulpcore_client/models/progress_report.rb +277 -0
- data/lib/pulpcore_client/models/repository.rb +268 -0
- data/lib/pulpcore_client/models/repository_version.rb +235 -0
- data/lib/pulpcore_client/models/repository_version_create.rb +231 -0
- data/lib/pulpcore_client/models/task.rb +360 -0
- data/lib/pulpcore_client/models/upload.rb +257 -0
- data/lib/pulpcore_client/models/worker.rb +261 -0
- data/lib/pulpcore_client/version.rb +15 -0
- data/lib/pulpcore_client.rb +61 -0
- data/pulpcore_client.gemspec +45 -0
- data/spec/api/artifacts_api_spec.rb +96 -0
- data/spec/api/orphans_api_spec.rb +46 -0
- data/spec/api/repositories_api_spec.rb +171 -0
- data/spec/api/status_api_spec.rb +46 -0
- data/spec/api/tasks_api_spec.rb +102 -0
- data/spec/api/uploads_api_spec.rb +123 -0
- data/spec/api/workers_api_spec.rb +68 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/artifact_spec.rb +101 -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_response2003_spec.rb +59 -0
- data/spec/models/inline_response2004_spec.rb +59 -0
- data/spec/models/inline_response2005_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +59 -0
- data/spec/models/progress_report_spec.rb +71 -0
- data/spec/models/repository_spec.rb +71 -0
- data/spec/models/repository_version_create_spec.rb +53 -0
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/models/task_spec.rb +113 -0
- data/spec/models/upload_spec.rb +65 -0
- data/spec/models/worker_spec.rb +71 -0
- data/spec/spec_helper.rb +111 -0
- metadata +329 -0
data/docs/UploadsApi.md
ADDED
@@ -0,0 +1,395 @@
|
|
1
|
+
# PulpcoreClient::UploadsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**uploads_create**](UploadsApi.md#uploads_create) | **PUT** /pulp/api/v3/uploads/ | Start Upload
|
8
|
+
[**uploads_create_and_check**](UploadsApi.md#uploads_create_and_check) | **POST** /pulp/api/v3/uploads/ | Create an Upload
|
9
|
+
[**uploads_delete**](UploadsApi.md#uploads_delete) | **DELETE** {upload_href} | Delete an upload
|
10
|
+
[**uploads_finish**](UploadsApi.md#uploads_finish) | **POST** {upload_href} | Finish an Upload
|
11
|
+
[**uploads_list**](UploadsApi.md#uploads_list) | **GET** /pulp/api/v3/uploads/ | List uploads
|
12
|
+
[**uploads_read**](UploadsApi.md#uploads_read) | **GET** {upload_href} | Inspect an upload
|
13
|
+
[**uploads_update**](UploadsApi.md#uploads_update) | **PUT** {upload_href} | Continue an Upload
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## uploads_create
|
18
|
+
|
19
|
+
> Upload uploads_create(file)
|
20
|
+
|
21
|
+
Start Upload
|
22
|
+
|
23
|
+
Start a chunked upload by uploading the first chunk.
|
24
|
+
|
25
|
+
### Example
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
# load the gem
|
29
|
+
require 'pulpcore_client'
|
30
|
+
# setup authorization
|
31
|
+
PulpcoreClient.configure do |config|
|
32
|
+
# Configure HTTP basic authorization: Basic
|
33
|
+
config.username = 'YOUR USERNAME'
|
34
|
+
config.password = 'YOUR PASSWORD'
|
35
|
+
end
|
36
|
+
|
37
|
+
api_instance = PulpcoreClient::UploadsApi.new
|
38
|
+
file = File.new('/path/to/file') # File | A chunk of a file to upload.
|
39
|
+
|
40
|
+
begin
|
41
|
+
#Start Upload
|
42
|
+
result = api_instance.uploads_create(file)
|
43
|
+
p result
|
44
|
+
rescue PulpcoreClient::ApiError => e
|
45
|
+
puts "Exception when calling UploadsApi->uploads_create: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
### Parameters
|
50
|
+
|
51
|
+
|
52
|
+
Name | Type | Description | Notes
|
53
|
+
------------- | ------------- | ------------- | -------------
|
54
|
+
**file** | **File**| A chunk of a file to upload. |
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
[**Upload**](Upload.md)
|
59
|
+
|
60
|
+
### Authorization
|
61
|
+
|
62
|
+
[Basic](../README.md#Basic)
|
63
|
+
|
64
|
+
### HTTP request headers
|
65
|
+
|
66
|
+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
|
67
|
+
- **Accept**: application/json
|
68
|
+
|
69
|
+
|
70
|
+
## uploads_create_and_check
|
71
|
+
|
72
|
+
> Upload uploads_create_and_check(file, md5)
|
73
|
+
|
74
|
+
Create an Upload
|
75
|
+
|
76
|
+
Create an upload from a entire file as one chunk.
|
77
|
+
|
78
|
+
### Example
|
79
|
+
|
80
|
+
```ruby
|
81
|
+
# load the gem
|
82
|
+
require 'pulpcore_client'
|
83
|
+
# setup authorization
|
84
|
+
PulpcoreClient.configure do |config|
|
85
|
+
# Configure HTTP basic authorization: Basic
|
86
|
+
config.username = 'YOUR USERNAME'
|
87
|
+
config.password = 'YOUR PASSWORD'
|
88
|
+
end
|
89
|
+
|
90
|
+
api_instance = PulpcoreClient::UploadsApi.new
|
91
|
+
file = File.new('/path/to/file') # File | The full file to upload.
|
92
|
+
md5 = 'md5_example' # String | The expected MD5 checksum of the file.
|
93
|
+
|
94
|
+
begin
|
95
|
+
#Create an Upload
|
96
|
+
result = api_instance.uploads_create_and_check(file, md5)
|
97
|
+
p result
|
98
|
+
rescue PulpcoreClient::ApiError => e
|
99
|
+
puts "Exception when calling UploadsApi->uploads_create_and_check: #{e}"
|
100
|
+
end
|
101
|
+
```
|
102
|
+
|
103
|
+
### Parameters
|
104
|
+
|
105
|
+
|
106
|
+
Name | Type | Description | Notes
|
107
|
+
------------- | ------------- | ------------- | -------------
|
108
|
+
**file** | **File**| The full file to upload. |
|
109
|
+
**md5** | **String**| The expected MD5 checksum of the file. |
|
110
|
+
|
111
|
+
### Return type
|
112
|
+
|
113
|
+
[**Upload**](Upload.md)
|
114
|
+
|
115
|
+
### Authorization
|
116
|
+
|
117
|
+
[Basic](../README.md#Basic)
|
118
|
+
|
119
|
+
### HTTP request headers
|
120
|
+
|
121
|
+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
|
122
|
+
- **Accept**: application/json
|
123
|
+
|
124
|
+
|
125
|
+
## uploads_delete
|
126
|
+
|
127
|
+
> uploads_delete(upload_href)
|
128
|
+
|
129
|
+
Delete an upload
|
130
|
+
|
131
|
+
View for chunked uploads.
|
132
|
+
|
133
|
+
### Example
|
134
|
+
|
135
|
+
```ruby
|
136
|
+
# load the gem
|
137
|
+
require 'pulpcore_client'
|
138
|
+
# setup authorization
|
139
|
+
PulpcoreClient.configure do |config|
|
140
|
+
# Configure HTTP basic authorization: Basic
|
141
|
+
config.username = 'YOUR USERNAME'
|
142
|
+
config.password = 'YOUR PASSWORD'
|
143
|
+
end
|
144
|
+
|
145
|
+
api_instance = PulpcoreClient::UploadsApi.new
|
146
|
+
upload_href = 'upload_href_example' # String | URI of Upload. e.g.: /pulp/api/v3/uploads/1/
|
147
|
+
|
148
|
+
begin
|
149
|
+
#Delete an upload
|
150
|
+
api_instance.uploads_delete(upload_href)
|
151
|
+
rescue PulpcoreClient::ApiError => e
|
152
|
+
puts "Exception when calling UploadsApi->uploads_delete: #{e}"
|
153
|
+
end
|
154
|
+
```
|
155
|
+
|
156
|
+
### Parameters
|
157
|
+
|
158
|
+
|
159
|
+
Name | Type | Description | Notes
|
160
|
+
------------- | ------------- | ------------- | -------------
|
161
|
+
**upload_href** | **String**| URI of Upload. e.g.: /pulp/api/v3/uploads/1/ |
|
162
|
+
|
163
|
+
### Return type
|
164
|
+
|
165
|
+
nil (empty response body)
|
166
|
+
|
167
|
+
### Authorization
|
168
|
+
|
169
|
+
[Basic](../README.md#Basic)
|
170
|
+
|
171
|
+
### HTTP request headers
|
172
|
+
|
173
|
+
- **Content-Type**: Not defined
|
174
|
+
- **Accept**: Not defined
|
175
|
+
|
176
|
+
|
177
|
+
## uploads_finish
|
178
|
+
|
179
|
+
> Upload uploads_finish(upload_href, md5)
|
180
|
+
|
181
|
+
Finish an Upload
|
182
|
+
|
183
|
+
Mark the Upload as \"complete\". The md5 checksum is used to validate the integrity of the upload.
|
184
|
+
|
185
|
+
### Example
|
186
|
+
|
187
|
+
```ruby
|
188
|
+
# load the gem
|
189
|
+
require 'pulpcore_client'
|
190
|
+
# setup authorization
|
191
|
+
PulpcoreClient.configure do |config|
|
192
|
+
# Configure HTTP basic authorization: Basic
|
193
|
+
config.username = 'YOUR USERNAME'
|
194
|
+
config.password = 'YOUR PASSWORD'
|
195
|
+
end
|
196
|
+
|
197
|
+
api_instance = PulpcoreClient::UploadsApi.new
|
198
|
+
upload_href = 'upload_href_example' # String | URI of Upload. e.g.: /pulp/api/v3/uploads/1/
|
199
|
+
md5 = 'md5_example' # String | The expected MD5 checksum of the file.
|
200
|
+
|
201
|
+
begin
|
202
|
+
#Finish an Upload
|
203
|
+
result = api_instance.uploads_finish(upload_href, md5)
|
204
|
+
p result
|
205
|
+
rescue PulpcoreClient::ApiError => e
|
206
|
+
puts "Exception when calling UploadsApi->uploads_finish: #{e}"
|
207
|
+
end
|
208
|
+
```
|
209
|
+
|
210
|
+
### Parameters
|
211
|
+
|
212
|
+
|
213
|
+
Name | Type | Description | Notes
|
214
|
+
------------- | ------------- | ------------- | -------------
|
215
|
+
**upload_href** | **String**| URI of Upload. e.g.: /pulp/api/v3/uploads/1/ |
|
216
|
+
**md5** | **String**| The expected MD5 checksum of the file. |
|
217
|
+
|
218
|
+
### Return type
|
219
|
+
|
220
|
+
[**Upload**](Upload.md)
|
221
|
+
|
222
|
+
### Authorization
|
223
|
+
|
224
|
+
[Basic](../README.md#Basic)
|
225
|
+
|
226
|
+
### HTTP request headers
|
227
|
+
|
228
|
+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
|
229
|
+
- **Accept**: application/json
|
230
|
+
|
231
|
+
|
232
|
+
## uploads_list
|
233
|
+
|
234
|
+
> InlineResponse2004 uploads_list(opts)
|
235
|
+
|
236
|
+
List uploads
|
237
|
+
|
238
|
+
List all the uploads.
|
239
|
+
|
240
|
+
### Example
|
241
|
+
|
242
|
+
```ruby
|
243
|
+
# load the gem
|
244
|
+
require 'pulpcore_client'
|
245
|
+
# setup authorization
|
246
|
+
PulpcoreClient.configure do |config|
|
247
|
+
# Configure HTTP basic authorization: Basic
|
248
|
+
config.username = 'YOUR USERNAME'
|
249
|
+
config.password = 'YOUR PASSWORD'
|
250
|
+
end
|
251
|
+
|
252
|
+
api_instance = PulpcoreClient::UploadsApi.new
|
253
|
+
opts = {
|
254
|
+
page: 56, # Integer | A page number within the paginated result set.
|
255
|
+
page_size: 56 # Integer | Number of results to return per page.
|
256
|
+
}
|
257
|
+
|
258
|
+
begin
|
259
|
+
#List uploads
|
260
|
+
result = api_instance.uploads_list(opts)
|
261
|
+
p result
|
262
|
+
rescue PulpcoreClient::ApiError => e
|
263
|
+
puts "Exception when calling UploadsApi->uploads_list: #{e}"
|
264
|
+
end
|
265
|
+
```
|
266
|
+
|
267
|
+
### Parameters
|
268
|
+
|
269
|
+
|
270
|
+
Name | Type | Description | Notes
|
271
|
+
------------- | ------------- | ------------- | -------------
|
272
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
273
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
274
|
+
|
275
|
+
### Return type
|
276
|
+
|
277
|
+
[**InlineResponse2004**](InlineResponse2004.md)
|
278
|
+
|
279
|
+
### Authorization
|
280
|
+
|
281
|
+
[Basic](../README.md#Basic)
|
282
|
+
|
283
|
+
### HTTP request headers
|
284
|
+
|
285
|
+
- **Content-Type**: Not defined
|
286
|
+
- **Accept**: application/json
|
287
|
+
|
288
|
+
|
289
|
+
## uploads_read
|
290
|
+
|
291
|
+
> Upload uploads_read(upload_href)
|
292
|
+
|
293
|
+
Inspect an upload
|
294
|
+
|
295
|
+
View for chunked uploads.
|
296
|
+
|
297
|
+
### Example
|
298
|
+
|
299
|
+
```ruby
|
300
|
+
# load the gem
|
301
|
+
require 'pulpcore_client'
|
302
|
+
# setup authorization
|
303
|
+
PulpcoreClient.configure do |config|
|
304
|
+
# Configure HTTP basic authorization: Basic
|
305
|
+
config.username = 'YOUR USERNAME'
|
306
|
+
config.password = 'YOUR PASSWORD'
|
307
|
+
end
|
308
|
+
|
309
|
+
api_instance = PulpcoreClient::UploadsApi.new
|
310
|
+
upload_href = 'upload_href_example' # String | URI of Upload. e.g.: /pulp/api/v3/uploads/1/
|
311
|
+
|
312
|
+
begin
|
313
|
+
#Inspect an upload
|
314
|
+
result = api_instance.uploads_read(upload_href)
|
315
|
+
p result
|
316
|
+
rescue PulpcoreClient::ApiError => e
|
317
|
+
puts "Exception when calling UploadsApi->uploads_read: #{e}"
|
318
|
+
end
|
319
|
+
```
|
320
|
+
|
321
|
+
### Parameters
|
322
|
+
|
323
|
+
|
324
|
+
Name | Type | Description | Notes
|
325
|
+
------------- | ------------- | ------------- | -------------
|
326
|
+
**upload_href** | **String**| URI of Upload. e.g.: /pulp/api/v3/uploads/1/ |
|
327
|
+
|
328
|
+
### Return type
|
329
|
+
|
330
|
+
[**Upload**](Upload.md)
|
331
|
+
|
332
|
+
### Authorization
|
333
|
+
|
334
|
+
[Basic](../README.md#Basic)
|
335
|
+
|
336
|
+
### HTTP request headers
|
337
|
+
|
338
|
+
- **Content-Type**: Not defined
|
339
|
+
- **Accept**: application/json
|
340
|
+
|
341
|
+
|
342
|
+
## uploads_update
|
343
|
+
|
344
|
+
> Upload uploads_update(upload_href, file)
|
345
|
+
|
346
|
+
Continue an Upload
|
347
|
+
|
348
|
+
Continue the upload by uploading the next file chunk.
|
349
|
+
|
350
|
+
### Example
|
351
|
+
|
352
|
+
```ruby
|
353
|
+
# load the gem
|
354
|
+
require 'pulpcore_client'
|
355
|
+
# setup authorization
|
356
|
+
PulpcoreClient.configure do |config|
|
357
|
+
# Configure HTTP basic authorization: Basic
|
358
|
+
config.username = 'YOUR USERNAME'
|
359
|
+
config.password = 'YOUR PASSWORD'
|
360
|
+
end
|
361
|
+
|
362
|
+
api_instance = PulpcoreClient::UploadsApi.new
|
363
|
+
upload_href = 'upload_href_example' # String | URI of Upload. e.g.: /pulp/api/v3/uploads/1/
|
364
|
+
file = File.new('/path/to/file') # File | A chunk of a file to upload.
|
365
|
+
|
366
|
+
begin
|
367
|
+
#Continue an Upload
|
368
|
+
result = api_instance.uploads_update(upload_href, file)
|
369
|
+
p result
|
370
|
+
rescue PulpcoreClient::ApiError => e
|
371
|
+
puts "Exception when calling UploadsApi->uploads_update: #{e}"
|
372
|
+
end
|
373
|
+
```
|
374
|
+
|
375
|
+
### Parameters
|
376
|
+
|
377
|
+
|
378
|
+
Name | Type | Description | Notes
|
379
|
+
------------- | ------------- | ------------- | -------------
|
380
|
+
**upload_href** | **String**| URI of Upload. e.g.: /pulp/api/v3/uploads/1/ |
|
381
|
+
**file** | **File**| A chunk of a file to upload. |
|
382
|
+
|
383
|
+
### Return type
|
384
|
+
|
385
|
+
[**Upload**](Upload.md)
|
386
|
+
|
387
|
+
### Authorization
|
388
|
+
|
389
|
+
[Basic](../README.md#Basic)
|
390
|
+
|
391
|
+
### HTTP request headers
|
392
|
+
|
393
|
+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
|
394
|
+
- **Accept**: application/json
|
395
|
+
|
data/docs/Worker.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# PulpcoreClient::Worker
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**_href** | **String** | | [optional]
|
8
|
+
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
9
|
+
**name** | **String** | The name of the worker. | [optional]
|
10
|
+
**last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional]
|
11
|
+
**online** | **Boolean** | True if the worker is considered online, otherwise False | [optional]
|
12
|
+
**missing** | **Boolean** | True if the worker is considerd missing, otherwise False | [optional]
|
13
|
+
|
14
|
+
## Code Sample
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'PulpcoreClient'
|
18
|
+
|
19
|
+
instance = PulpcoreClient::Worker.new(_href: null,
|
20
|
+
_created: null,
|
21
|
+
name: null,
|
22
|
+
last_heartbeat: null,
|
23
|
+
online: null,
|
24
|
+
missing: null)
|
25
|
+
```
|
26
|
+
|
27
|
+
|
data/docs/WorkersApi.md
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
# PulpcoreClient::WorkersApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**workers_list**](WorkersApi.md#workers_list) | **GET** /pulp/api/v3/workers/ | List workers
|
8
|
+
[**workers_read**](WorkersApi.md#workers_read) | **GET** {worker_href} | Inspect a worker
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
## workers_list
|
13
|
+
|
14
|
+
> InlineResponse2005 workers_list(opts)
|
15
|
+
|
16
|
+
List workers
|
17
|
+
|
18
|
+
### Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'pulpcore_client'
|
23
|
+
# setup authorization
|
24
|
+
PulpcoreClient.configure do |config|
|
25
|
+
# Configure HTTP basic authorization: Basic
|
26
|
+
config.username = 'YOUR USERNAME'
|
27
|
+
config.password = 'YOUR PASSWORD'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = PulpcoreClient::WorkersApi.new
|
31
|
+
opts = {
|
32
|
+
name: 'name_example', # String |
|
33
|
+
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
34
|
+
last_heartbeat__lt: 'last_heartbeat__lt_example', # String | Filter results where last_heartbeat is less than value
|
35
|
+
last_heartbeat__lte: 'last_heartbeat__lte_example', # String | Filter results where last_heartbeat is less than or equal to value
|
36
|
+
last_heartbeat__gt: 'last_heartbeat__gt_example', # String | Filter results where last_heartbeat is greater than value
|
37
|
+
last_heartbeat__gte: 'last_heartbeat__gte_example', # String | Filter results where last_heartbeat is greater than or equal to value
|
38
|
+
last_heartbeat__range: 'last_heartbeat__range_example', # String | Filter results where last_heartbeat is between two comma separated values
|
39
|
+
online: 'online_example', # String |
|
40
|
+
missing: 'missing_example', # String |
|
41
|
+
last_heartbeat: 'last_heartbeat_example', # String | ISO 8601 formatted dates are supported
|
42
|
+
page: 56, # Integer | A page number within the paginated result set.
|
43
|
+
page_size: 56 # Integer | Number of results to return per page.
|
44
|
+
}
|
45
|
+
|
46
|
+
begin
|
47
|
+
#List workers
|
48
|
+
result = api_instance.workers_list(opts)
|
49
|
+
p result
|
50
|
+
rescue PulpcoreClient::ApiError => e
|
51
|
+
puts "Exception when calling WorkersApi->workers_list: #{e}"
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
### Parameters
|
56
|
+
|
57
|
+
|
58
|
+
Name | Type | Description | Notes
|
59
|
+
------------- | ------------- | ------------- | -------------
|
60
|
+
**name** | **String**| | [optional]
|
61
|
+
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
62
|
+
**last_heartbeat__lt** | **String**| Filter results where last_heartbeat is less than value | [optional]
|
63
|
+
**last_heartbeat__lte** | **String**| Filter results where last_heartbeat is less than or equal to value | [optional]
|
64
|
+
**last_heartbeat__gt** | **String**| Filter results where last_heartbeat is greater than value | [optional]
|
65
|
+
**last_heartbeat__gte** | **String**| Filter results where last_heartbeat is greater than or equal to value | [optional]
|
66
|
+
**last_heartbeat__range** | **String**| Filter results where last_heartbeat is between two comma separated values | [optional]
|
67
|
+
**online** | **String**| | [optional]
|
68
|
+
**missing** | **String**| | [optional]
|
69
|
+
**last_heartbeat** | **String**| ISO 8601 formatted dates are supported | [optional]
|
70
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
71
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
72
|
+
|
73
|
+
### Return type
|
74
|
+
|
75
|
+
[**InlineResponse2005**](InlineResponse2005.md)
|
76
|
+
|
77
|
+
### Authorization
|
78
|
+
|
79
|
+
[Basic](../README.md#Basic)
|
80
|
+
|
81
|
+
### HTTP request headers
|
82
|
+
|
83
|
+
- **Content-Type**: Not defined
|
84
|
+
- **Accept**: application/json
|
85
|
+
|
86
|
+
|
87
|
+
## workers_read
|
88
|
+
|
89
|
+
> Worker workers_read(worker_href)
|
90
|
+
|
91
|
+
Inspect a worker
|
92
|
+
|
93
|
+
### Example
|
94
|
+
|
95
|
+
```ruby
|
96
|
+
# load the gem
|
97
|
+
require 'pulpcore_client'
|
98
|
+
# setup authorization
|
99
|
+
PulpcoreClient.configure do |config|
|
100
|
+
# Configure HTTP basic authorization: Basic
|
101
|
+
config.username = 'YOUR USERNAME'
|
102
|
+
config.password = 'YOUR PASSWORD'
|
103
|
+
end
|
104
|
+
|
105
|
+
api_instance = PulpcoreClient::WorkersApi.new
|
106
|
+
worker_href = 'worker_href_example' # String | URI of Worker. e.g.: /pulp/api/v3/workers/1/
|
107
|
+
|
108
|
+
begin
|
109
|
+
#Inspect a worker
|
110
|
+
result = api_instance.workers_read(worker_href)
|
111
|
+
p result
|
112
|
+
rescue PulpcoreClient::ApiError => e
|
113
|
+
puts "Exception when calling WorkersApi->workers_read: #{e}"
|
114
|
+
end
|
115
|
+
```
|
116
|
+
|
117
|
+
### Parameters
|
118
|
+
|
119
|
+
|
120
|
+
Name | Type | Description | Notes
|
121
|
+
------------- | ------------- | ------------- | -------------
|
122
|
+
**worker_href** | **String**| URI of Worker. e.g.: /pulp/api/v3/workers/1/ |
|
123
|
+
|
124
|
+
### Return type
|
125
|
+
|
126
|
+
[**Worker**](Worker.md)
|
127
|
+
|
128
|
+
### Authorization
|
129
|
+
|
130
|
+
[Basic](../README.md#Basic)
|
131
|
+
|
132
|
+
### HTTP request headers
|
133
|
+
|
134
|
+
- **Content-Type**: Not defined
|
135
|
+
- **Accept**: application/json
|
136
|
+
|
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
|
+
|