pulpcore_client 3.2.1 → 3.3.0
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 +4 -4
- data/README.md +37 -4
- data/docs/ArtifactsApi.md +2 -0
- data/docs/ExportersCoreExportsApi.md +243 -0
- data/docs/ExportersPulpApi.md +355 -0
- data/docs/Import.md +23 -0
- data/docs/ImportersCoreImportsApi.md +243 -0
- data/docs/ImportersPulpApi.md +355 -0
- 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 +23 -0
- data/docs/InlineResponse2006.md +23 -0
- data/docs/InlineResponse2007.md +23 -0
- data/docs/InlineResponse2008.md +23 -0
- data/docs/InlineResponse2009.md +23 -0
- data/docs/PulpExport.md +29 -0
- data/docs/PulpExporter.md +27 -0
- data/docs/PulpImport.md +17 -0
- data/docs/PulpImporter.md +23 -0
- data/docs/SigningServicesApi.md +6 -2
- data/docs/Task.md +6 -0
- data/docs/TaskGroup.md +29 -0
- data/docs/TaskGroupsApi.md +128 -0
- data/docs/TasksApi.md +10 -6
- data/docs/UploadsApi.md +4 -2
- data/docs/WorkersApi.md +4 -2
- data/lib/pulpcore_client/api/artifacts_api.rb +3 -0
- data/lib/pulpcore_client/api/exporters_core_exports_api.rb +297 -0
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +431 -0
- data/lib/pulpcore_client/api/importers_core_imports_api.rb +297 -0
- data/lib/pulpcore_client/api/importers_pulp_api.rb +431 -0
- data/lib/pulpcore_client/api/signing_services_api.rb +9 -3
- data/lib/pulpcore_client/api/task_groups_api.rb +157 -0
- data/lib/pulpcore_client/api/tasks_api.rb +15 -9
- data/lib/pulpcore_client/api/uploads_api.rb +6 -3
- data/lib/pulpcore_client/api/workers_api.rb +6 -3
- data/lib/pulpcore_client/models/import.rb +246 -0
- 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 +247 -0
- data/lib/pulpcore_client/models/inline_response2006.rb +247 -0
- data/lib/pulpcore_client/models/inline_response2007.rb +247 -0
- data/lib/pulpcore_client/models/inline_response2008.rb +247 -0
- data/lib/pulpcore_client/models/inline_response2009.rb +247 -0
- data/lib/pulpcore_client/models/pulp_export.rb +310 -0
- data/lib/pulpcore_client/models/pulp_exporter.rb +310 -0
- data/lib/pulpcore_client/models/pulp_import.rb +231 -0
- data/lib/pulpcore_client/models/pulp_importer.rb +262 -0
- data/lib/pulpcore_client/models/task.rb +33 -1
- data/lib/pulpcore_client/models/task_group.rb +291 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +16 -0
- data/spec/api/artifacts_api_spec.rb +1 -0
- data/spec/api/exporters_core_exports_api_spec.rb +91 -0
- data/spec/api/exporters_pulp_api_spec.rb +117 -0
- data/spec/api/importers_core_imports_api_spec.rb +91 -0
- data/spec/api/importers_pulp_api_spec.rb +117 -0
- data/spec/api/signing_services_api_spec.rb +3 -1
- data/spec/api/task_groups_api_spec.rb +63 -0
- data/spec/api/tasks_api_spec.rb +5 -3
- data/spec/api/uploads_api_spec.rb +2 -1
- data/spec/api/workers_api_spec.rb +2 -1
- data/spec/models/import_spec.rb +59 -0
- data/spec/models/inline_response2005_spec.rb +59 -0
- data/spec/models/inline_response2006_spec.rb +59 -0
- data/spec/models/inline_response2007_spec.rb +59 -0
- data/spec/models/inline_response2008_spec.rb +59 -0
- data/spec/models/inline_response2009_spec.rb +59 -0
- data/spec/models/pulp_export_spec.rb +77 -0
- data/spec/models/pulp_exporter_spec.rb +71 -0
- data/spec/models/pulp_import_spec.rb +41 -0
- data/spec/models/pulp_importer_spec.rb +59 -0
- data/spec/models/task_group_spec.rb +77 -0
- data/spec/models/task_spec.rb +18 -0
- metadata +66 -2
@@ -0,0 +1,355 @@
|
|
1
|
+
# PulpcoreClient::ExportersPulpApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](ExportersPulpApi.md#create) | **POST** /pulp/api/v3/exporters/core/pulp/ | Create a pulp exporter
|
8
|
+
[**delete**](ExportersPulpApi.md#delete) | **DELETE** {pulp_exporter_href} | Delete a pulp exporter
|
9
|
+
[**list**](ExportersPulpApi.md#list) | **GET** /pulp/api/v3/exporters/core/pulp/ | List pulp exporters
|
10
|
+
[**partial_update**](ExportersPulpApi.md#partial_update) | **PATCH** {pulp_exporter_href} | Partially update a pulp exporter
|
11
|
+
[**read**](ExportersPulpApi.md#read) | **GET** {pulp_exporter_href} | Inspect a pulp exporter
|
12
|
+
[**update**](ExportersPulpApi.md#update) | **PUT** {pulp_exporter_href} | Update a pulp exporter
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
## create
|
17
|
+
|
18
|
+
> PulpExporter create(data)
|
19
|
+
|
20
|
+
Create a pulp exporter
|
21
|
+
|
22
|
+
ViewSet for viewing PulpExporters.
|
23
|
+
|
24
|
+
### Example
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
# load the gem
|
28
|
+
require 'pulpcore_client'
|
29
|
+
# setup authorization
|
30
|
+
PulpcoreClient.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 = PulpcoreClient::ExportersPulpApi.new
|
37
|
+
data = PulpcoreClient::PulpExporter.new # PulpExporter |
|
38
|
+
|
39
|
+
begin
|
40
|
+
#Create a pulp exporter
|
41
|
+
result = api_instance.create(data)
|
42
|
+
p result
|
43
|
+
rescue PulpcoreClient::ApiError => e
|
44
|
+
puts "Exception when calling ExportersPulpApi->create: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
|
51
|
+
Name | Type | Description | Notes
|
52
|
+
------------- | ------------- | ------------- | -------------
|
53
|
+
**data** | [**PulpExporter**](PulpExporter.md)| |
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
[**PulpExporter**](PulpExporter.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
|
+
## delete
|
70
|
+
|
71
|
+
> delete(pulp_exporter_href)
|
72
|
+
|
73
|
+
Delete a pulp exporter
|
74
|
+
|
75
|
+
ViewSet for viewing PulpExporters.
|
76
|
+
|
77
|
+
### Example
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'pulpcore_client'
|
82
|
+
# setup authorization
|
83
|
+
PulpcoreClient.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 = PulpcoreClient::ExportersPulpApi.new
|
90
|
+
pulp_exporter_href = 'pulp_exporter_href_example' # String | URI of Pulp Exporter. e.g.: /pulp/api/v3/exporters/core/pulp/1/
|
91
|
+
|
92
|
+
begin
|
93
|
+
#Delete a pulp exporter
|
94
|
+
api_instance.delete(pulp_exporter_href)
|
95
|
+
rescue PulpcoreClient::ApiError => e
|
96
|
+
puts "Exception when calling ExportersPulpApi->delete: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Parameters
|
101
|
+
|
102
|
+
|
103
|
+
Name | Type | Description | Notes
|
104
|
+
------------- | ------------- | ------------- | -------------
|
105
|
+
**pulp_exporter_href** | **String**| URI of Pulp Exporter. e.g.: /pulp/api/v3/exporters/core/pulp/1/ |
|
106
|
+
|
107
|
+
### Return type
|
108
|
+
|
109
|
+
nil (empty response body)
|
110
|
+
|
111
|
+
### Authorization
|
112
|
+
|
113
|
+
[Basic](../README.md#Basic)
|
114
|
+
|
115
|
+
### HTTP request headers
|
116
|
+
|
117
|
+
- **Content-Type**: Not defined
|
118
|
+
- **Accept**: Not defined
|
119
|
+
|
120
|
+
|
121
|
+
## list
|
122
|
+
|
123
|
+
> InlineResponse2001 list(opts)
|
124
|
+
|
125
|
+
List pulp exporters
|
126
|
+
|
127
|
+
ViewSet for viewing PulpExporters.
|
128
|
+
|
129
|
+
### Example
|
130
|
+
|
131
|
+
```ruby
|
132
|
+
# load the gem
|
133
|
+
require 'pulpcore_client'
|
134
|
+
# setup authorization
|
135
|
+
PulpcoreClient.configure do |config|
|
136
|
+
# Configure HTTP basic authorization: Basic
|
137
|
+
config.username = 'YOUR USERNAME'
|
138
|
+
config.password = 'YOUR PASSWORD'
|
139
|
+
end
|
140
|
+
|
141
|
+
api_instance = PulpcoreClient::ExportersPulpApi.new
|
142
|
+
opts = {
|
143
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
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
|
+
limit: 56, # Integer | Number of results to return per page.
|
147
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
148
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
149
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
150
|
+
}
|
151
|
+
|
152
|
+
begin
|
153
|
+
#List pulp exporters
|
154
|
+
result = api_instance.list(opts)
|
155
|
+
p result
|
156
|
+
rescue PulpcoreClient::ApiError => e
|
157
|
+
puts "Exception when calling ExportersPulpApi->list: #{e}"
|
158
|
+
end
|
159
|
+
```
|
160
|
+
|
161
|
+
### Parameters
|
162
|
+
|
163
|
+
|
164
|
+
Name | Type | Description | Notes
|
165
|
+
------------- | ------------- | ------------- | -------------
|
166
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
167
|
+
**name** | **String**| | [optional]
|
168
|
+
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
169
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
170
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
171
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
172
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
173
|
+
|
174
|
+
### Return type
|
175
|
+
|
176
|
+
[**InlineResponse2001**](InlineResponse2001.md)
|
177
|
+
|
178
|
+
### Authorization
|
179
|
+
|
180
|
+
[Basic](../README.md#Basic)
|
181
|
+
|
182
|
+
### HTTP request headers
|
183
|
+
|
184
|
+
- **Content-Type**: Not defined
|
185
|
+
- **Accept**: application/json
|
186
|
+
|
187
|
+
|
188
|
+
## partial_update
|
189
|
+
|
190
|
+
> PulpExporter partial_update(pulp_exporter_href, data)
|
191
|
+
|
192
|
+
Partially update a pulp exporter
|
193
|
+
|
194
|
+
ViewSet for viewing PulpExporters.
|
195
|
+
|
196
|
+
### Example
|
197
|
+
|
198
|
+
```ruby
|
199
|
+
# load the gem
|
200
|
+
require 'pulpcore_client'
|
201
|
+
# setup authorization
|
202
|
+
PulpcoreClient.configure do |config|
|
203
|
+
# Configure HTTP basic authorization: Basic
|
204
|
+
config.username = 'YOUR USERNAME'
|
205
|
+
config.password = 'YOUR PASSWORD'
|
206
|
+
end
|
207
|
+
|
208
|
+
api_instance = PulpcoreClient::ExportersPulpApi.new
|
209
|
+
pulp_exporter_href = 'pulp_exporter_href_example' # String | URI of Pulp Exporter. e.g.: /pulp/api/v3/exporters/core/pulp/1/
|
210
|
+
data = PulpcoreClient::PulpExporter.new # PulpExporter |
|
211
|
+
|
212
|
+
begin
|
213
|
+
#Partially update a pulp exporter
|
214
|
+
result = api_instance.partial_update(pulp_exporter_href, data)
|
215
|
+
p result
|
216
|
+
rescue PulpcoreClient::ApiError => e
|
217
|
+
puts "Exception when calling ExportersPulpApi->partial_update: #{e}"
|
218
|
+
end
|
219
|
+
```
|
220
|
+
|
221
|
+
### Parameters
|
222
|
+
|
223
|
+
|
224
|
+
Name | Type | Description | Notes
|
225
|
+
------------- | ------------- | ------------- | -------------
|
226
|
+
**pulp_exporter_href** | **String**| URI of Pulp Exporter. e.g.: /pulp/api/v3/exporters/core/pulp/1/ |
|
227
|
+
**data** | [**PulpExporter**](PulpExporter.md)| |
|
228
|
+
|
229
|
+
### Return type
|
230
|
+
|
231
|
+
[**PulpExporter**](PulpExporter.md)
|
232
|
+
|
233
|
+
### Authorization
|
234
|
+
|
235
|
+
[Basic](../README.md#Basic)
|
236
|
+
|
237
|
+
### HTTP request headers
|
238
|
+
|
239
|
+
- **Content-Type**: application/json
|
240
|
+
- **Accept**: application/json
|
241
|
+
|
242
|
+
|
243
|
+
## read
|
244
|
+
|
245
|
+
> PulpExporter read(pulp_exporter_href, opts)
|
246
|
+
|
247
|
+
Inspect a pulp exporter
|
248
|
+
|
249
|
+
ViewSet for viewing PulpExporters.
|
250
|
+
|
251
|
+
### Example
|
252
|
+
|
253
|
+
```ruby
|
254
|
+
# load the gem
|
255
|
+
require 'pulpcore_client'
|
256
|
+
# setup authorization
|
257
|
+
PulpcoreClient.configure do |config|
|
258
|
+
# Configure HTTP basic authorization: Basic
|
259
|
+
config.username = 'YOUR USERNAME'
|
260
|
+
config.password = 'YOUR PASSWORD'
|
261
|
+
end
|
262
|
+
|
263
|
+
api_instance = PulpcoreClient::ExportersPulpApi.new
|
264
|
+
pulp_exporter_href = 'pulp_exporter_href_example' # String | URI of Pulp Exporter. e.g.: /pulp/api/v3/exporters/core/pulp/1/
|
265
|
+
opts = {
|
266
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
267
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
268
|
+
}
|
269
|
+
|
270
|
+
begin
|
271
|
+
#Inspect a pulp exporter
|
272
|
+
result = api_instance.read(pulp_exporter_href, opts)
|
273
|
+
p result
|
274
|
+
rescue PulpcoreClient::ApiError => e
|
275
|
+
puts "Exception when calling ExportersPulpApi->read: #{e}"
|
276
|
+
end
|
277
|
+
```
|
278
|
+
|
279
|
+
### Parameters
|
280
|
+
|
281
|
+
|
282
|
+
Name | Type | Description | Notes
|
283
|
+
------------- | ------------- | ------------- | -------------
|
284
|
+
**pulp_exporter_href** | **String**| URI of Pulp Exporter. e.g.: /pulp/api/v3/exporters/core/pulp/1/ |
|
285
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
286
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
287
|
+
|
288
|
+
### Return type
|
289
|
+
|
290
|
+
[**PulpExporter**](PulpExporter.md)
|
291
|
+
|
292
|
+
### Authorization
|
293
|
+
|
294
|
+
[Basic](../README.md#Basic)
|
295
|
+
|
296
|
+
### HTTP request headers
|
297
|
+
|
298
|
+
- **Content-Type**: Not defined
|
299
|
+
- **Accept**: application/json
|
300
|
+
|
301
|
+
|
302
|
+
## update
|
303
|
+
|
304
|
+
> PulpExporter update(pulp_exporter_href, data)
|
305
|
+
|
306
|
+
Update a pulp exporter
|
307
|
+
|
308
|
+
ViewSet for viewing PulpExporters.
|
309
|
+
|
310
|
+
### Example
|
311
|
+
|
312
|
+
```ruby
|
313
|
+
# load the gem
|
314
|
+
require 'pulpcore_client'
|
315
|
+
# setup authorization
|
316
|
+
PulpcoreClient.configure do |config|
|
317
|
+
# Configure HTTP basic authorization: Basic
|
318
|
+
config.username = 'YOUR USERNAME'
|
319
|
+
config.password = 'YOUR PASSWORD'
|
320
|
+
end
|
321
|
+
|
322
|
+
api_instance = PulpcoreClient::ExportersPulpApi.new
|
323
|
+
pulp_exporter_href = 'pulp_exporter_href_example' # String | URI of Pulp Exporter. e.g.: /pulp/api/v3/exporters/core/pulp/1/
|
324
|
+
data = PulpcoreClient::PulpExporter.new # PulpExporter |
|
325
|
+
|
326
|
+
begin
|
327
|
+
#Update a pulp exporter
|
328
|
+
result = api_instance.update(pulp_exporter_href, data)
|
329
|
+
p result
|
330
|
+
rescue PulpcoreClient::ApiError => e
|
331
|
+
puts "Exception when calling ExportersPulpApi->update: #{e}"
|
332
|
+
end
|
333
|
+
```
|
334
|
+
|
335
|
+
### Parameters
|
336
|
+
|
337
|
+
|
338
|
+
Name | Type | Description | Notes
|
339
|
+
------------- | ------------- | ------------- | -------------
|
340
|
+
**pulp_exporter_href** | **String**| URI of Pulp Exporter. e.g.: /pulp/api/v3/exporters/core/pulp/1/ |
|
341
|
+
**data** | [**PulpExporter**](PulpExporter.md)| |
|
342
|
+
|
343
|
+
### Return type
|
344
|
+
|
345
|
+
[**PulpExporter**](PulpExporter.md)
|
346
|
+
|
347
|
+
### Authorization
|
348
|
+
|
349
|
+
[Basic](../README.md#Basic)
|
350
|
+
|
351
|
+
### HTTP request headers
|
352
|
+
|
353
|
+
- **Content-Type**: application/json
|
354
|
+
- **Accept**: application/json
|
355
|
+
|
data/docs/Import.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpcoreClient::Import
|
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 Import. |
|
10
|
+
**params** | [**Object**](.md) | Any parameters that were used to create the import. |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpcoreClient'
|
16
|
+
|
17
|
+
instance = PulpcoreClient::Import.new(pulp_href: null,
|
18
|
+
pulp_created: null,
|
19
|
+
task: null,
|
20
|
+
params: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,243 @@
|
|
1
|
+
# PulpcoreClient::ImportersCoreImportsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](ImportersCoreImportsApi.md#create) | **POST** /pulp/api/v3/importers/core/pulp/{importer_pk}/imports/ | Create a pulp import
|
8
|
+
[**delete**](ImportersCoreImportsApi.md#delete) | **DELETE** {pulp_import_href} | Delete a pulp import
|
9
|
+
[**list**](ImportersCoreImportsApi.md#list) | **GET** /pulp/api/v3/importers/core/pulp/{importer_pk}/imports/ | List pulp imports
|
10
|
+
[**read**](ImportersCoreImportsApi.md#read) | **GET** {pulp_import_href} | Inspect a pulp import
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## create
|
15
|
+
|
16
|
+
> AsyncOperationResponse create(importer_pk, data)
|
17
|
+
|
18
|
+
Create a pulp import
|
19
|
+
|
20
|
+
Trigger an asynchronous task to import a Pulp export.
|
21
|
+
|
22
|
+
### Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
# load the gem
|
26
|
+
require 'pulpcore_client'
|
27
|
+
# setup authorization
|
28
|
+
PulpcoreClient.configure do |config|
|
29
|
+
# Configure HTTP basic authorization: Basic
|
30
|
+
config.username = 'YOUR USERNAME'
|
31
|
+
config.password = 'YOUR PASSWORD'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = PulpcoreClient::ImportersCoreImportsApi.new
|
35
|
+
importer_pk = 'importer_pk_example' # String |
|
36
|
+
data = PulpcoreClient::PulpImport.new # PulpImport |
|
37
|
+
|
38
|
+
begin
|
39
|
+
#Create a pulp import
|
40
|
+
result = api_instance.create(importer_pk, data)
|
41
|
+
p result
|
42
|
+
rescue PulpcoreClient::ApiError => e
|
43
|
+
puts "Exception when calling ImportersCoreImportsApi->create: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
|
50
|
+
Name | Type | Description | Notes
|
51
|
+
------------- | ------------- | ------------- | -------------
|
52
|
+
**importer_pk** | **String**| |
|
53
|
+
**data** | [**PulpImport**](PulpImport.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
|
+
## delete
|
70
|
+
|
71
|
+
> delete(pulp_import_href)
|
72
|
+
|
73
|
+
Delete a pulp import
|
74
|
+
|
75
|
+
ViewSet for PulpImports.
|
76
|
+
|
77
|
+
### Example
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'pulpcore_client'
|
82
|
+
# setup authorization
|
83
|
+
PulpcoreClient.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 = PulpcoreClient::ImportersCoreImportsApi.new
|
90
|
+
pulp_import_href = 'pulp_import_href_example' # String | URI of Pulp Import. e.g.: /pulp/api/v3/importers/core/pulp/1/imports/1/
|
91
|
+
|
92
|
+
begin
|
93
|
+
#Delete a pulp import
|
94
|
+
api_instance.delete(pulp_import_href)
|
95
|
+
rescue PulpcoreClient::ApiError => e
|
96
|
+
puts "Exception when calling ImportersCoreImportsApi->delete: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Parameters
|
101
|
+
|
102
|
+
|
103
|
+
Name | Type | Description | Notes
|
104
|
+
------------- | ------------- | ------------- | -------------
|
105
|
+
**pulp_import_href** | **String**| URI of Pulp Import. e.g.: /pulp/api/v3/importers/core/pulp/1/imports/1/ |
|
106
|
+
|
107
|
+
### Return type
|
108
|
+
|
109
|
+
nil (empty response body)
|
110
|
+
|
111
|
+
### Authorization
|
112
|
+
|
113
|
+
[Basic](../README.md#Basic)
|
114
|
+
|
115
|
+
### HTTP request headers
|
116
|
+
|
117
|
+
- **Content-Type**: Not defined
|
118
|
+
- **Accept**: Not defined
|
119
|
+
|
120
|
+
|
121
|
+
## list
|
122
|
+
|
123
|
+
> InlineResponse2004 list(importer_pk, opts)
|
124
|
+
|
125
|
+
List pulp imports
|
126
|
+
|
127
|
+
ViewSet for PulpImports.
|
128
|
+
|
129
|
+
### Example
|
130
|
+
|
131
|
+
```ruby
|
132
|
+
# load the gem
|
133
|
+
require 'pulpcore_client'
|
134
|
+
# setup authorization
|
135
|
+
PulpcoreClient.configure do |config|
|
136
|
+
# Configure HTTP basic authorization: Basic
|
137
|
+
config.username = 'YOUR USERNAME'
|
138
|
+
config.password = 'YOUR PASSWORD'
|
139
|
+
end
|
140
|
+
|
141
|
+
api_instance = PulpcoreClient::ImportersCoreImportsApi.new
|
142
|
+
importer_pk = 'importer_pk_example' # String |
|
143
|
+
opts = {
|
144
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
145
|
+
limit: 56, # Integer | Number of results to return per page.
|
146
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
147
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
148
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
149
|
+
}
|
150
|
+
|
151
|
+
begin
|
152
|
+
#List pulp imports
|
153
|
+
result = api_instance.list(importer_pk, opts)
|
154
|
+
p result
|
155
|
+
rescue PulpcoreClient::ApiError => e
|
156
|
+
puts "Exception when calling ImportersCoreImportsApi->list: #{e}"
|
157
|
+
end
|
158
|
+
```
|
159
|
+
|
160
|
+
### Parameters
|
161
|
+
|
162
|
+
|
163
|
+
Name | Type | Description | Notes
|
164
|
+
------------- | ------------- | ------------- | -------------
|
165
|
+
**importer_pk** | **String**| |
|
166
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
167
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
168
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
169
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
170
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
171
|
+
|
172
|
+
### Return type
|
173
|
+
|
174
|
+
[**InlineResponse2004**](InlineResponse2004.md)
|
175
|
+
|
176
|
+
### Authorization
|
177
|
+
|
178
|
+
[Basic](../README.md#Basic)
|
179
|
+
|
180
|
+
### HTTP request headers
|
181
|
+
|
182
|
+
- **Content-Type**: Not defined
|
183
|
+
- **Accept**: application/json
|
184
|
+
|
185
|
+
|
186
|
+
## read
|
187
|
+
|
188
|
+
> Import read(pulp_import_href, opts)
|
189
|
+
|
190
|
+
Inspect a pulp import
|
191
|
+
|
192
|
+
ViewSet for PulpImports.
|
193
|
+
|
194
|
+
### Example
|
195
|
+
|
196
|
+
```ruby
|
197
|
+
# load the gem
|
198
|
+
require 'pulpcore_client'
|
199
|
+
# setup authorization
|
200
|
+
PulpcoreClient.configure do |config|
|
201
|
+
# Configure HTTP basic authorization: Basic
|
202
|
+
config.username = 'YOUR USERNAME'
|
203
|
+
config.password = 'YOUR PASSWORD'
|
204
|
+
end
|
205
|
+
|
206
|
+
api_instance = PulpcoreClient::ImportersCoreImportsApi.new
|
207
|
+
pulp_import_href = 'pulp_import_href_example' # String | URI of Pulp Import. e.g.: /pulp/api/v3/importers/core/pulp/1/imports/1/
|
208
|
+
opts = {
|
209
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
210
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
211
|
+
}
|
212
|
+
|
213
|
+
begin
|
214
|
+
#Inspect a pulp import
|
215
|
+
result = api_instance.read(pulp_import_href, opts)
|
216
|
+
p result
|
217
|
+
rescue PulpcoreClient::ApiError => e
|
218
|
+
puts "Exception when calling ImportersCoreImportsApi->read: #{e}"
|
219
|
+
end
|
220
|
+
```
|
221
|
+
|
222
|
+
### Parameters
|
223
|
+
|
224
|
+
|
225
|
+
Name | Type | Description | Notes
|
226
|
+
------------- | ------------- | ------------- | -------------
|
227
|
+
**pulp_import_href** | **String**| URI of Pulp Import. e.g.: /pulp/api/v3/importers/core/pulp/1/imports/1/ |
|
228
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
229
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
230
|
+
|
231
|
+
### Return type
|
232
|
+
|
233
|
+
[**Import**](Import.md)
|
234
|
+
|
235
|
+
### Authorization
|
236
|
+
|
237
|
+
[Basic](../README.md#Basic)
|
238
|
+
|
239
|
+
### HTTP request headers
|
240
|
+
|
241
|
+
- **Content-Type**: Not defined
|
242
|
+
- **Accept**: application/json
|
243
|
+
|