pulpcore_client 3.4.1 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -15
- data/docs/{ArtifactRead.md → Artifact.md} +2 -2
- data/docs/ArtifactsApi.md +10 -10
- data/docs/ExportersCoreExportsApi.md +2 -2
- data/docs/ExportersPulpApi.md +8 -8
- data/docs/GroupProgressReport.md +25 -0
- data/docs/{ImportRead.md → Import.md} +2 -2
- data/docs/ImportersCoreImportsApi.md +2 -2
- data/docs/ImportersPulpApi.md +8 -8
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PulpExport.md +0 -8
- data/docs/{SigningServiceRead.md → SigningService.md} +2 -2
- data/docs/SigningServicesApi.md +2 -2
- data/docs/{TaskGroupRead.md → TaskGroup.md} +5 -3
- data/docs/TaskGroupsApi.md +2 -2
- data/docs/TasksApi.md +2 -2
- data/docs/{UploadDetailRead.md → UploadDetail.md} +2 -2
- data/docs/UploadsApi.md +4 -6
- data/docs/WorkersApi.md +4 -4
- data/lib/pulpcore_client/api/artifacts_api.rb +15 -15
- data/lib/pulpcore_client/api/exporters_core_exports_api.rb +3 -3
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +12 -12
- data/lib/pulpcore_client/api/importers_core_imports_api.rb +3 -3
- data/lib/pulpcore_client/api/importers_pulp_api.rb +12 -12
- data/lib/pulpcore_client/api/signing_services_api.rb +3 -3
- data/lib/pulpcore_client/api/task_groups_api.rb +3 -3
- data/lib/pulpcore_client/api/tasks_api.rb +3 -3
- data/lib/pulpcore_client/api/uploads_api.rb +6 -9
- data/lib/pulpcore_client/api/workers_api.rb +6 -6
- data/lib/pulpcore_client/models/{artifact_read.rb → artifact.rb} +3 -3
- data/lib/pulpcore_client/models/{pulp_importer_read.rb → group_progress_report.rb} +77 -46
- data/lib/pulpcore_client/models/{import_read.rb → import.rb} +3 -3
- data/lib/pulpcore_client/models/inline_response200.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2001.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2002.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2003.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2004.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2005.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2006.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2007.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2008.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2009.rb +1 -1
- data/lib/pulpcore_client/models/pulp_export.rb +1 -62
- data/lib/pulpcore_client/models/{signing_service_read.rb → signing_service.rb} +3 -3
- data/lib/pulpcore_client/models/{task_group_read.rb → task_group.rb} +18 -7
- data/lib/pulpcore_client/models/{upload_detail_read.rb → upload_detail.rb} +3 -3
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +6 -11
- data/spec/api/artifacts_api_spec.rb +5 -5
- data/spec/api/exporters_core_exports_api_spec.rb +1 -1
- data/spec/api/exporters_pulp_api_spec.rb +4 -4
- data/spec/api/importers_core_imports_api_spec.rb +1 -1
- data/spec/api/importers_pulp_api_spec.rb +4 -4
- data/spec/api/signing_services_api_spec.rb +1 -1
- data/spec/api/task_groups_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/api/uploads_api_spec.rb +2 -3
- data/spec/api/workers_api_spec.rb +2 -2
- data/spec/models/{artifact_read_spec.rb → artifact_spec.rb} +6 -6
- data/spec/models/{pulp_exporter_read_spec.rb → group_progress_report_spec.rb} +11 -17
- data/spec/models/{import_read_spec.rb → import_spec.rb} +6 -6
- data/spec/models/pulp_export_spec.rb +0 -24
- data/spec/models/{signing_service_read_spec.rb → signing_service_spec.rb} +6 -6
- data/spec/models/{task_group_read_spec.rb → task_group_spec.rb} +12 -6
- data/spec/models/{upload_detail_read_spec.rb → upload_detail_spec.rb} +6 -6
- metadata +26 -46
- data/docs/PulpExportRead.md +0 -27
- data/docs/PulpExporterRead.md +0 -27
- data/docs/PulpImporterRead.md +0 -23
- data/docs/TaskRead.md +0 -43
- data/docs/UploadRead.md +0 -23
- data/docs/WorkerRead.md +0 -23
- data/lib/pulpcore_client/models/pulp_export_read.rb +0 -259
- data/lib/pulpcore_client/models/pulp_exporter_read.rb +0 -311
- data/lib/pulpcore_client/models/task_read.rb +0 -383
- data/lib/pulpcore_client/models/upload_read.rb +0 -241
- data/lib/pulpcore_client/models/worker_read.rb +0 -251
- data/spec/models/pulp_export_read_spec.rb +0 -71
- data/spec/models/pulp_importer_read_spec.rb +0 -59
- data/spec/models/task_read_spec.rb +0 -119
- data/spec/models/upload_read_spec.rb +0 -59
- data/spec/models/worker_read_spec.rb +0 -59
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulpcore_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -74,14 +74,15 @@ files:
|
|
74
74
|
- Gemfile
|
75
75
|
- README.md
|
76
76
|
- Rakefile
|
77
|
-
- docs/
|
77
|
+
- docs/Artifact.md
|
78
78
|
- docs/ArtifactsApi.md
|
79
79
|
- docs/AsyncOperationResponse.md
|
80
80
|
- docs/ContentAppStatus.md
|
81
81
|
- docs/DatabaseConnection.md
|
82
82
|
- docs/ExportersCoreExportsApi.md
|
83
83
|
- docs/ExportersPulpApi.md
|
84
|
-
- docs/
|
84
|
+
- docs/GroupProgressReport.md
|
85
|
+
- docs/Import.md
|
85
86
|
- docs/ImportersCoreImportsApi.md
|
86
87
|
- docs/ImportersPulpApi.md
|
87
88
|
- docs/InlineResponse200.md
|
@@ -97,33 +98,27 @@ files:
|
|
97
98
|
- docs/OrphansApi.md
|
98
99
|
- docs/ProgressReport.md
|
99
100
|
- docs/PulpExport.md
|
100
|
-
- docs/PulpExportRead.md
|
101
101
|
- docs/PulpExporter.md
|
102
|
-
- docs/PulpExporterRead.md
|
103
102
|
- docs/PulpImport.md
|
104
103
|
- docs/PulpImporter.md
|
105
|
-
- docs/PulpImporterRead.md
|
106
104
|
- docs/RedisConnection.md
|
107
|
-
- docs/
|
105
|
+
- docs/SigningService.md
|
108
106
|
- docs/SigningServicesApi.md
|
109
107
|
- docs/Status.md
|
110
108
|
- docs/StatusApi.md
|
111
109
|
- docs/Storage.md
|
112
110
|
- docs/Task.md
|
113
111
|
- docs/TaskCancel.md
|
114
|
-
- docs/
|
112
|
+
- docs/TaskGroup.md
|
115
113
|
- docs/TaskGroupsApi.md
|
116
|
-
- docs/TaskRead.md
|
117
114
|
- docs/TasksApi.md
|
118
115
|
- docs/Upload.md
|
119
116
|
- docs/UploadChunk.md
|
120
117
|
- docs/UploadCommit.md
|
121
|
-
- docs/
|
122
|
-
- docs/UploadRead.md
|
118
|
+
- docs/UploadDetail.md
|
123
119
|
- docs/UploadsApi.md
|
124
120
|
- docs/Version.md
|
125
121
|
- docs/Worker.md
|
126
|
-
- docs/WorkerRead.md
|
127
122
|
- docs/WorkersApi.md
|
128
123
|
- git_push.sh
|
129
124
|
- lib/pulpcore_client.rb
|
@@ -142,11 +137,12 @@ files:
|
|
142
137
|
- lib/pulpcore_client/api_client.rb
|
143
138
|
- lib/pulpcore_client/api_error.rb
|
144
139
|
- lib/pulpcore_client/configuration.rb
|
145
|
-
- lib/pulpcore_client/models/
|
140
|
+
- lib/pulpcore_client/models/artifact.rb
|
146
141
|
- lib/pulpcore_client/models/async_operation_response.rb
|
147
142
|
- lib/pulpcore_client/models/content_app_status.rb
|
148
143
|
- lib/pulpcore_client/models/database_connection.rb
|
149
|
-
- lib/pulpcore_client/models/
|
144
|
+
- lib/pulpcore_client/models/group_progress_report.rb
|
145
|
+
- lib/pulpcore_client/models/import.rb
|
150
146
|
- lib/pulpcore_client/models/inline_response200.rb
|
151
147
|
- lib/pulpcore_client/models/inline_response2001.rb
|
152
148
|
- lib/pulpcore_client/models/inline_response2002.rb
|
@@ -159,28 +155,22 @@ files:
|
|
159
155
|
- lib/pulpcore_client/models/inline_response2009.rb
|
160
156
|
- lib/pulpcore_client/models/progress_report.rb
|
161
157
|
- lib/pulpcore_client/models/pulp_export.rb
|
162
|
-
- lib/pulpcore_client/models/pulp_export_read.rb
|
163
158
|
- lib/pulpcore_client/models/pulp_exporter.rb
|
164
|
-
- lib/pulpcore_client/models/pulp_exporter_read.rb
|
165
159
|
- lib/pulpcore_client/models/pulp_import.rb
|
166
160
|
- lib/pulpcore_client/models/pulp_importer.rb
|
167
|
-
- lib/pulpcore_client/models/pulp_importer_read.rb
|
168
161
|
- lib/pulpcore_client/models/redis_connection.rb
|
169
|
-
- lib/pulpcore_client/models/
|
162
|
+
- lib/pulpcore_client/models/signing_service.rb
|
170
163
|
- lib/pulpcore_client/models/status.rb
|
171
164
|
- lib/pulpcore_client/models/storage.rb
|
172
165
|
- lib/pulpcore_client/models/task.rb
|
173
166
|
- lib/pulpcore_client/models/task_cancel.rb
|
174
|
-
- lib/pulpcore_client/models/
|
175
|
-
- lib/pulpcore_client/models/task_read.rb
|
167
|
+
- lib/pulpcore_client/models/task_group.rb
|
176
168
|
- lib/pulpcore_client/models/upload.rb
|
177
169
|
- lib/pulpcore_client/models/upload_chunk.rb
|
178
170
|
- lib/pulpcore_client/models/upload_commit.rb
|
179
|
-
- lib/pulpcore_client/models/
|
180
|
-
- lib/pulpcore_client/models/upload_read.rb
|
171
|
+
- lib/pulpcore_client/models/upload_detail.rb
|
181
172
|
- lib/pulpcore_client/models/version.rb
|
182
173
|
- lib/pulpcore_client/models/worker.rb
|
183
|
-
- lib/pulpcore_client/models/worker_read.rb
|
184
174
|
- lib/pulpcore_client/version.rb
|
185
175
|
- pulpcore_client.gemspec
|
186
176
|
- spec/api/artifacts_api_spec.rb
|
@@ -197,11 +187,12 @@ files:
|
|
197
187
|
- spec/api/workers_api_spec.rb
|
198
188
|
- spec/api_client_spec.rb
|
199
189
|
- spec/configuration_spec.rb
|
200
|
-
- spec/models/
|
190
|
+
- spec/models/artifact_spec.rb
|
201
191
|
- spec/models/async_operation_response_spec.rb
|
202
192
|
- spec/models/content_app_status_spec.rb
|
203
193
|
- spec/models/database_connection_spec.rb
|
204
|
-
- spec/models/
|
194
|
+
- spec/models/group_progress_report_spec.rb
|
195
|
+
- spec/models/import_spec.rb
|
205
196
|
- spec/models/inline_response2001_spec.rb
|
206
197
|
- spec/models/inline_response2002_spec.rb
|
207
198
|
- spec/models/inline_response2003_spec.rb
|
@@ -213,28 +204,22 @@ files:
|
|
213
204
|
- spec/models/inline_response2009_spec.rb
|
214
205
|
- spec/models/inline_response200_spec.rb
|
215
206
|
- spec/models/progress_report_spec.rb
|
216
|
-
- spec/models/pulp_export_read_spec.rb
|
217
207
|
- spec/models/pulp_export_spec.rb
|
218
|
-
- spec/models/pulp_exporter_read_spec.rb
|
219
208
|
- spec/models/pulp_exporter_spec.rb
|
220
209
|
- spec/models/pulp_import_spec.rb
|
221
|
-
- spec/models/pulp_importer_read_spec.rb
|
222
210
|
- spec/models/pulp_importer_spec.rb
|
223
211
|
- spec/models/redis_connection_spec.rb
|
224
|
-
- spec/models/
|
212
|
+
- spec/models/signing_service_spec.rb
|
225
213
|
- spec/models/status_spec.rb
|
226
214
|
- spec/models/storage_spec.rb
|
227
215
|
- spec/models/task_cancel_spec.rb
|
228
|
-
- spec/models/
|
229
|
-
- spec/models/task_read_spec.rb
|
216
|
+
- spec/models/task_group_spec.rb
|
230
217
|
- spec/models/task_spec.rb
|
231
218
|
- spec/models/upload_chunk_spec.rb
|
232
219
|
- spec/models/upload_commit_spec.rb
|
233
|
-
- spec/models/
|
234
|
-
- spec/models/upload_read_spec.rb
|
220
|
+
- spec/models/upload_detail_spec.rb
|
235
221
|
- spec/models/upload_spec.rb
|
236
222
|
- spec/models/version_spec.rb
|
237
|
-
- spec/models/worker_read_spec.rb
|
238
223
|
- spec/models/worker_spec.rb
|
239
224
|
- spec/spec_helper.rb
|
240
225
|
homepage: https://openapi-generator.tech
|
@@ -275,42 +260,37 @@ test_files:
|
|
275
260
|
- spec/api/status_api_spec.rb
|
276
261
|
- spec/api_client_spec.rb
|
277
262
|
- spec/configuration_spec.rb
|
278
|
-
- spec/models/upload_read_spec.rb
|
279
263
|
- spec/models/pulp_export_spec.rb
|
280
264
|
- spec/models/async_operation_response_spec.rb
|
281
|
-
- spec/models/task_group_read_spec.rb
|
282
265
|
- spec/models/inline_response2003_spec.rb
|
283
266
|
- spec/models/storage_spec.rb
|
284
|
-
- spec/models/pulp_export_read_spec.rb
|
285
267
|
- spec/models/pulp_import_spec.rb
|
286
268
|
- spec/models/pulp_exporter_spec.rb
|
269
|
+
- spec/models/import_spec.rb
|
287
270
|
- spec/models/task_cancel_spec.rb
|
288
|
-
- spec/models/worker_read_spec.rb
|
289
|
-
- spec/models/pulp_exporter_read_spec.rb
|
290
271
|
- spec/models/inline_response2007_spec.rb
|
291
272
|
- spec/models/worker_spec.rb
|
292
273
|
- spec/models/version_spec.rb
|
274
|
+
- spec/models/artifact_spec.rb
|
293
275
|
- spec/models/inline_response2004_spec.rb
|
294
276
|
- spec/models/inline_response2005_spec.rb
|
295
277
|
- spec/models/inline_response2001_spec.rb
|
296
|
-
- spec/models/
|
297
|
-
- spec/models/
|
278
|
+
- spec/models/group_progress_report_spec.rb
|
279
|
+
- spec/models/task_group_spec.rb
|
280
|
+
- spec/models/signing_service_spec.rb
|
281
|
+
- spec/models/upload_detail_spec.rb
|
298
282
|
- spec/models/upload_commit_spec.rb
|
299
|
-
- spec/models/artifact_read_spec.rb
|
300
283
|
- spec/models/inline_response200_spec.rb
|
301
284
|
- spec/models/status_spec.rb
|
302
285
|
- spec/models/database_connection_spec.rb
|
303
|
-
- spec/models/task_read_spec.rb
|
304
286
|
- spec/models/progress_report_spec.rb
|
305
287
|
- spec/models/inline_response2009_spec.rb
|
306
288
|
- spec/models/upload_chunk_spec.rb
|
307
289
|
- spec/models/inline_response2002_spec.rb
|
308
290
|
- spec/models/upload_spec.rb
|
309
291
|
- spec/models/redis_connection_spec.rb
|
310
|
-
- spec/models/import_read_spec.rb
|
311
292
|
- spec/models/task_spec.rb
|
312
293
|
- spec/models/inline_response2006_spec.rb
|
313
|
-
- spec/models/signing_service_read_spec.rb
|
314
294
|
- spec/models/inline_response2008_spec.rb
|
315
295
|
- spec/models/pulp_importer_spec.rb
|
316
296
|
- spec/models/content_app_status_spec.rb
|
data/docs/PulpExportRead.md
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# PulpcoreClient::PulpExportRead
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
-
**task** | **String** | A URI of the task that ran the Export. | [optional]
|
10
|
-
**exported_resources** | **Array<Object>** | Resources that were exported. | [optional] [readonly]
|
11
|
-
**params** | [**Object**](.md) | Any additional parameters that were used to create the export. | [optional] [readonly]
|
12
|
-
**output_file_info** | [**Object**](.md) | Dictionary of filename: sha256hash entries for export-output-file(s) | [optional] [readonly]
|
13
|
-
|
14
|
-
## Code Sample
|
15
|
-
|
16
|
-
```ruby
|
17
|
-
require 'PulpcoreClient'
|
18
|
-
|
19
|
-
instance = PulpcoreClient::PulpExportRead.new(pulp_href: null,
|
20
|
-
pulp_created: null,
|
21
|
-
task: null,
|
22
|
-
exported_resources: null,
|
23
|
-
params: null,
|
24
|
-
output_file_info: null)
|
25
|
-
```
|
26
|
-
|
27
|
-
|
data/docs/PulpExporterRead.md
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# PulpcoreClient::PulpExporterRead
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
-
**name** | **String** | Unique name of the file system exporter. |
|
10
|
-
**path** | **String** | File system directory to store exported tar.gzs. |
|
11
|
-
**repositories** | **Array<String>** | |
|
12
|
-
**last_export** | **String** | Last attempted export for this PulpExporter | [optional]
|
13
|
-
|
14
|
-
## Code Sample
|
15
|
-
|
16
|
-
```ruby
|
17
|
-
require 'PulpcoreClient'
|
18
|
-
|
19
|
-
instance = PulpcoreClient::PulpExporterRead.new(pulp_href: null,
|
20
|
-
pulp_created: null,
|
21
|
-
name: null,
|
22
|
-
path: null,
|
23
|
-
repositories: null,
|
24
|
-
last_export: null)
|
25
|
-
```
|
26
|
-
|
27
|
-
|
data/docs/PulpImporterRead.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# PulpcoreClient::PulpImporterRead
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
-
**name** | **String** | Unique name of the Importer. |
|
10
|
-
**repo_mapping** | **Hash<String, String>** | Mapping of repo names in an export file to the repo names in Pulp. For example, if the export has a repo named 'foo' and the repo to import content into was 'bar', the mapping would be \"{'foo': 'bar'}\". | [optional]
|
11
|
-
|
12
|
-
## Code Sample
|
13
|
-
|
14
|
-
```ruby
|
15
|
-
require 'PulpcoreClient'
|
16
|
-
|
17
|
-
instance = PulpcoreClient::PulpImporterRead.new(pulp_href: null,
|
18
|
-
pulp_created: null,
|
19
|
-
name: null,
|
20
|
-
repo_mapping: null)
|
21
|
-
```
|
22
|
-
|
23
|
-
|
data/docs/TaskRead.md
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
# PulpcoreClient::TaskRead
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
-
**state** | **String** | The current state of the task. The possible values include: 'waiting', 'skipped', 'running', 'completed', 'failed' and 'canceled'. | [optional] [readonly]
|
10
|
-
**name** | **String** | The name of task. |
|
11
|
-
**started_at** | **DateTime** | Timestamp of the when this task started execution. | [optional] [readonly]
|
12
|
-
**finished_at** | **DateTime** | Timestamp of the when this task stopped execution. | [optional] [readonly]
|
13
|
-
**error** | **Hash<String, Object>** | A JSON Object of a fatal error encountered during the execution of this task. | [optional] [readonly]
|
14
|
-
**worker** | **String** | The worker associated with this task. This field is empty if a worker is not yet assigned. | [optional] [readonly]
|
15
|
-
**parent_task** | **String** | The parent task that spawned this task. | [optional] [readonly]
|
16
|
-
**child_tasks** | **Array<String>** | Any tasks spawned by this task. | [optional] [readonly]
|
17
|
-
**task_group** | **String** | The task group that this task is a member of. | [optional] [readonly]
|
18
|
-
**progress_reports** | [**Array<ProgressReport>**](ProgressReport.md) | | [optional] [readonly]
|
19
|
-
**created_resources** | **Array<String>** | Resources created by this task. | [optional] [readonly]
|
20
|
-
**reserved_resources_record** | **Array<Object>** | | [optional] [readonly]
|
21
|
-
|
22
|
-
## Code Sample
|
23
|
-
|
24
|
-
```ruby
|
25
|
-
require 'PulpcoreClient'
|
26
|
-
|
27
|
-
instance = PulpcoreClient::TaskRead.new(pulp_href: null,
|
28
|
-
pulp_created: null,
|
29
|
-
state: null,
|
30
|
-
name: null,
|
31
|
-
started_at: null,
|
32
|
-
finished_at: null,
|
33
|
-
error: null,
|
34
|
-
worker: null,
|
35
|
-
parent_task: null,
|
36
|
-
child_tasks: null,
|
37
|
-
task_group: null,
|
38
|
-
progress_reports: null,
|
39
|
-
created_resources: null,
|
40
|
-
reserved_resources_record: null)
|
41
|
-
```
|
42
|
-
|
43
|
-
|
data/docs/UploadRead.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# PulpcoreClient::UploadRead
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
-
**size** | **Integer** | The size of the upload in bytes. |
|
10
|
-
**completed** | **DateTime** | Timestamp when upload is committed. | [optional] [readonly]
|
11
|
-
|
12
|
-
## Code Sample
|
13
|
-
|
14
|
-
```ruby
|
15
|
-
require 'PulpcoreClient'
|
16
|
-
|
17
|
-
instance = PulpcoreClient::UploadRead.new(pulp_href: null,
|
18
|
-
pulp_created: null,
|
19
|
-
size: null,
|
20
|
-
completed: null)
|
21
|
-
```
|
22
|
-
|
23
|
-
|
data/docs/WorkerRead.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# PulpcoreClient::WorkerRead
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
-
**name** | **String** | The name of the worker. | [optional] [readonly]
|
10
|
-
**last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional] [readonly]
|
11
|
-
|
12
|
-
## Code Sample
|
13
|
-
|
14
|
-
```ruby
|
15
|
-
require 'PulpcoreClient'
|
16
|
-
|
17
|
-
instance = PulpcoreClient::WorkerRead.new(pulp_href: null,
|
18
|
-
pulp_created: null,
|
19
|
-
name: null,
|
20
|
-
last_heartbeat: null)
|
21
|
-
```
|
22
|
-
|
23
|
-
|
@@ -1,259 +0,0 @@
|
|
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.2.3
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module PulpcoreClient
|
16
|
-
class PulpExportRead
|
17
|
-
attr_accessor :pulp_href
|
18
|
-
|
19
|
-
# Timestamp of creation.
|
20
|
-
attr_accessor :pulp_created
|
21
|
-
|
22
|
-
# A URI of the task that ran the Export.
|
23
|
-
attr_accessor :task
|
24
|
-
|
25
|
-
# Resources that were exported.
|
26
|
-
attr_accessor :exported_resources
|
27
|
-
|
28
|
-
# Any additional parameters that were used to create the export.
|
29
|
-
attr_accessor :params
|
30
|
-
|
31
|
-
# Dictionary of filename: sha256hash entries for export-output-file(s)
|
32
|
-
attr_accessor :output_file_info
|
33
|
-
|
34
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
-
def self.attribute_map
|
36
|
-
{
|
37
|
-
:'pulp_href' => :'pulp_href',
|
38
|
-
:'pulp_created' => :'pulp_created',
|
39
|
-
:'task' => :'task',
|
40
|
-
:'exported_resources' => :'exported_resources',
|
41
|
-
:'params' => :'params',
|
42
|
-
:'output_file_info' => :'output_file_info'
|
43
|
-
}
|
44
|
-
end
|
45
|
-
|
46
|
-
# Attribute type mapping.
|
47
|
-
def self.openapi_types
|
48
|
-
{
|
49
|
-
:'pulp_href' => :'String',
|
50
|
-
:'pulp_created' => :'DateTime',
|
51
|
-
:'task' => :'String',
|
52
|
-
:'exported_resources' => :'Array<Object>',
|
53
|
-
:'params' => :'Object',
|
54
|
-
:'output_file_info' => :'Object'
|
55
|
-
}
|
56
|
-
end
|
57
|
-
|
58
|
-
# List of attributes with nullable: true
|
59
|
-
def self.openapi_nullable
|
60
|
-
Set.new([
|
61
|
-
:'task',
|
62
|
-
])
|
63
|
-
end
|
64
|
-
|
65
|
-
# Initializes the object
|
66
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
67
|
-
def initialize(attributes = {})
|
68
|
-
if (!attributes.is_a?(Hash))
|
69
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::PulpExportRead` initialize method"
|
70
|
-
end
|
71
|
-
|
72
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
73
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::PulpExportRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
76
|
-
end
|
77
|
-
h[k.to_sym] = v
|
78
|
-
}
|
79
|
-
|
80
|
-
if attributes.key?(:'pulp_href')
|
81
|
-
self.pulp_href = attributes[:'pulp_href']
|
82
|
-
end
|
83
|
-
|
84
|
-
if attributes.key?(:'pulp_created')
|
85
|
-
self.pulp_created = attributes[:'pulp_created']
|
86
|
-
end
|
87
|
-
|
88
|
-
if attributes.key?(:'task')
|
89
|
-
self.task = attributes[:'task']
|
90
|
-
end
|
91
|
-
|
92
|
-
if attributes.key?(:'exported_resources')
|
93
|
-
if (value = attributes[:'exported_resources']).is_a?(Array)
|
94
|
-
self.exported_resources = value
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
if attributes.key?(:'params')
|
99
|
-
self.params = attributes[:'params']
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes.key?(:'output_file_info')
|
103
|
-
self.output_file_info = attributes[:'output_file_info']
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
108
|
-
# @return Array for valid properties with the reasons
|
109
|
-
def list_invalid_properties
|
110
|
-
invalid_properties = Array.new
|
111
|
-
invalid_properties
|
112
|
-
end
|
113
|
-
|
114
|
-
# Check to see if the all the properties in the model are valid
|
115
|
-
# @return true if the model is valid
|
116
|
-
def valid?
|
117
|
-
true
|
118
|
-
end
|
119
|
-
|
120
|
-
# Checks equality by comparing each attribute.
|
121
|
-
# @param [Object] Object to be compared
|
122
|
-
def ==(o)
|
123
|
-
return true if self.equal?(o)
|
124
|
-
self.class == o.class &&
|
125
|
-
pulp_href == o.pulp_href &&
|
126
|
-
pulp_created == o.pulp_created &&
|
127
|
-
task == o.task &&
|
128
|
-
exported_resources == o.exported_resources &&
|
129
|
-
params == o.params &&
|
130
|
-
output_file_info == o.output_file_info
|
131
|
-
end
|
132
|
-
|
133
|
-
# @see the `==` method
|
134
|
-
# @param [Object] Object to be compared
|
135
|
-
def eql?(o)
|
136
|
-
self == o
|
137
|
-
end
|
138
|
-
|
139
|
-
# Calculates hash code according to all attributes.
|
140
|
-
# @return [Integer] Hash code
|
141
|
-
def hash
|
142
|
-
[pulp_href, pulp_created, task, exported_resources, params, output_file_info].hash
|
143
|
-
end
|
144
|
-
|
145
|
-
# Builds the object from hash
|
146
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
147
|
-
# @return [Object] Returns the model itself
|
148
|
-
def self.build_from_hash(attributes)
|
149
|
-
new.build_from_hash(attributes)
|
150
|
-
end
|
151
|
-
|
152
|
-
# Builds the object from hash
|
153
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
154
|
-
# @return [Object] Returns the model itself
|
155
|
-
def build_from_hash(attributes)
|
156
|
-
return nil unless attributes.is_a?(Hash)
|
157
|
-
self.class.openapi_types.each_pair do |key, type|
|
158
|
-
if type =~ /\AArray<(.*)>/i
|
159
|
-
# check to ensure the input is an array given that the attribute
|
160
|
-
# is documented as an array but the input is not
|
161
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
162
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
163
|
-
end
|
164
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
165
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
166
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
167
|
-
end
|
168
|
-
|
169
|
-
self
|
170
|
-
end
|
171
|
-
|
172
|
-
# Deserializes the data based on type
|
173
|
-
# @param string type Data type
|
174
|
-
# @param string value Value to be deserialized
|
175
|
-
# @return [Object] Deserialized data
|
176
|
-
def _deserialize(type, value)
|
177
|
-
case type.to_sym
|
178
|
-
when :DateTime
|
179
|
-
DateTime.parse(value)
|
180
|
-
when :Date
|
181
|
-
Date.parse(value)
|
182
|
-
when :String
|
183
|
-
value.to_s
|
184
|
-
when :Integer
|
185
|
-
value.to_i
|
186
|
-
when :Float
|
187
|
-
value.to_f
|
188
|
-
when :Boolean
|
189
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
190
|
-
true
|
191
|
-
else
|
192
|
-
false
|
193
|
-
end
|
194
|
-
when :Object
|
195
|
-
# generic object (usually a Hash), return directly
|
196
|
-
value
|
197
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
198
|
-
inner_type = Regexp.last_match[:inner_type]
|
199
|
-
value.map { |v| _deserialize(inner_type, v) }
|
200
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
201
|
-
k_type = Regexp.last_match[:k_type]
|
202
|
-
v_type = Regexp.last_match[:v_type]
|
203
|
-
{}.tap do |hash|
|
204
|
-
value.each do |k, v|
|
205
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
206
|
-
end
|
207
|
-
end
|
208
|
-
else # model
|
209
|
-
PulpcoreClient.const_get(type).build_from_hash(value)
|
210
|
-
end
|
211
|
-
end
|
212
|
-
|
213
|
-
# Returns the string representation of the object
|
214
|
-
# @return [String] String presentation of the object
|
215
|
-
def to_s
|
216
|
-
to_hash.to_s
|
217
|
-
end
|
218
|
-
|
219
|
-
# to_body is an alias to to_hash (backward compatibility)
|
220
|
-
# @return [Hash] Returns the object in the form of hash
|
221
|
-
def to_body
|
222
|
-
to_hash
|
223
|
-
end
|
224
|
-
|
225
|
-
# Returns the object in the form of hash
|
226
|
-
# @return [Hash] Returns the object in the form of hash
|
227
|
-
def to_hash
|
228
|
-
hash = {}
|
229
|
-
self.class.attribute_map.each_pair do |attr, param|
|
230
|
-
value = self.send(attr)
|
231
|
-
if value.nil?
|
232
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
233
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
234
|
-
end
|
235
|
-
|
236
|
-
hash[param] = _to_hash(value)
|
237
|
-
end
|
238
|
-
hash
|
239
|
-
end
|
240
|
-
|
241
|
-
# Outputs non-array value in the form of hash
|
242
|
-
# For object, use to_hash. Otherwise, just return the value
|
243
|
-
# @param [Object] value Any valid value
|
244
|
-
# @return [Hash] Returns the value in the form of hash
|
245
|
-
def _to_hash(value)
|
246
|
-
if value.is_a?(Array)
|
247
|
-
value.compact.map { |v| _to_hash(v) }
|
248
|
-
elsif value.is_a?(Hash)
|
249
|
-
{}.tap do |hash|
|
250
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
251
|
-
end
|
252
|
-
elsif value.respond_to? :to_hash
|
253
|
-
value.to_hash
|
254
|
-
else
|
255
|
-
value
|
256
|
-
end
|
257
|
-
end
|
258
|
-
end
|
259
|
-
end
|