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
data/docs/TaskGroup.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# PulpcoreClient::TaskGroup
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**description** | **String** | A description of the task group. |
|
8
|
+
**waiting** | **Integer** | Number of tasks in the 'waiting' state | [optional] [readonly]
|
9
|
+
**skipped** | **Integer** | Number of tasks in the 'skipped' state | [optional] [readonly]
|
10
|
+
**running** | **Integer** | Number of tasks in the 'running' state | [optional] [readonly]
|
11
|
+
**completed** | **Integer** | Number of tasks in the 'completed' state | [optional] [readonly]
|
12
|
+
**canceled** | **Integer** | Number of tasks in the 'canceled' state | [optional] [readonly]
|
13
|
+
**failed** | **Integer** | Number of tasks in the 'failed' state | [optional] [readonly]
|
14
|
+
|
15
|
+
## Code Sample
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'PulpcoreClient'
|
19
|
+
|
20
|
+
instance = PulpcoreClient::TaskGroup.new(description: null,
|
21
|
+
waiting: null,
|
22
|
+
skipped: null,
|
23
|
+
running: null,
|
24
|
+
completed: null,
|
25
|
+
canceled: null,
|
26
|
+
failed: null)
|
27
|
+
```
|
28
|
+
|
29
|
+
|
@@ -0,0 +1,128 @@
|
|
1
|
+
# PulpcoreClient::TaskGroupsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list**](TaskGroupsApi.md#list) | **GET** /pulp/api/v3/task-groups/ | List task groups
|
8
|
+
[**read**](TaskGroupsApi.md#read) | **GET** {task_group_href} | Inspect a task group
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
## list
|
13
|
+
|
14
|
+
> InlineResponse2006 list(opts)
|
15
|
+
|
16
|
+
List task groups
|
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::TaskGroupsApi.new
|
31
|
+
opts = {
|
32
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
33
|
+
limit: 56, # Integer | Number of results to return per page.
|
34
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
35
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
36
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
37
|
+
}
|
38
|
+
|
39
|
+
begin
|
40
|
+
#List task groups
|
41
|
+
result = api_instance.list(opts)
|
42
|
+
p result
|
43
|
+
rescue PulpcoreClient::ApiError => e
|
44
|
+
puts "Exception when calling TaskGroupsApi->list: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
|
51
|
+
Name | Type | Description | Notes
|
52
|
+
------------- | ------------- | ------------- | -------------
|
53
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
54
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
55
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
56
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
57
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
58
|
+
|
59
|
+
### Return type
|
60
|
+
|
61
|
+
[**InlineResponse2006**](InlineResponse2006.md)
|
62
|
+
|
63
|
+
### Authorization
|
64
|
+
|
65
|
+
[Basic](../README.md#Basic)
|
66
|
+
|
67
|
+
### HTTP request headers
|
68
|
+
|
69
|
+
- **Content-Type**: Not defined
|
70
|
+
- **Accept**: application/json
|
71
|
+
|
72
|
+
|
73
|
+
## read
|
74
|
+
|
75
|
+
> TaskGroup read(task_group_href, opts)
|
76
|
+
|
77
|
+
Inspect a task group
|
78
|
+
|
79
|
+
### Example
|
80
|
+
|
81
|
+
```ruby
|
82
|
+
# load the gem
|
83
|
+
require 'pulpcore_client'
|
84
|
+
# setup authorization
|
85
|
+
PulpcoreClient.configure do |config|
|
86
|
+
# Configure HTTP basic authorization: Basic
|
87
|
+
config.username = 'YOUR USERNAME'
|
88
|
+
config.password = 'YOUR PASSWORD'
|
89
|
+
end
|
90
|
+
|
91
|
+
api_instance = PulpcoreClient::TaskGroupsApi.new
|
92
|
+
task_group_href = 'task_group_href_example' # String | URI of Task Group. e.g.: /pulp/api/v3/task-groups/1/
|
93
|
+
opts = {
|
94
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
95
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
96
|
+
}
|
97
|
+
|
98
|
+
begin
|
99
|
+
#Inspect a task group
|
100
|
+
result = api_instance.read(task_group_href, opts)
|
101
|
+
p result
|
102
|
+
rescue PulpcoreClient::ApiError => e
|
103
|
+
puts "Exception when calling TaskGroupsApi->read: #{e}"
|
104
|
+
end
|
105
|
+
```
|
106
|
+
|
107
|
+
### Parameters
|
108
|
+
|
109
|
+
|
110
|
+
Name | Type | Description | Notes
|
111
|
+
------------- | ------------- | ------------- | -------------
|
112
|
+
**task_group_href** | **String**| URI of Task Group. e.g.: /pulp/api/v3/task-groups/1/ |
|
113
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
114
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
115
|
+
|
116
|
+
### Return type
|
117
|
+
|
118
|
+
[**TaskGroup**](TaskGroup.md)
|
119
|
+
|
120
|
+
### Authorization
|
121
|
+
|
122
|
+
[Basic](../README.md#Basic)
|
123
|
+
|
124
|
+
### HTTP request headers
|
125
|
+
|
126
|
+
- **Content-Type**: Not defined
|
127
|
+
- **Accept**: application/json
|
128
|
+
|
data/docs/TasksApi.md
CHANGED
@@ -63,7 +63,7 @@ nil (empty response body)
|
|
63
63
|
|
64
64
|
## list
|
65
65
|
|
66
|
-
>
|
66
|
+
> InlineResponse2007 list(opts)
|
67
67
|
|
68
68
|
List tasks
|
69
69
|
|
@@ -82,11 +82,11 @@ end
|
|
82
82
|
api_instance = PulpcoreClient::TasksApi.new
|
83
83
|
opts = {
|
84
84
|
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
85
|
+
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
85
86
|
state: 'state_example', # String |
|
86
87
|
state__in: 'state__in_example', # String | Filter results where state is in a comma-separated list of values
|
87
88
|
worker: 'worker_example', # String | Foreign Key referenced by HREF
|
88
89
|
worker__in: 'worker__in_example', # String | Filter results where worker is in a comma-separated list of values
|
89
|
-
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
90
90
|
started_at__lt: 'started_at__lt_example', # String | Filter results where started_at is less than value
|
91
91
|
started_at__lte: 'started_at__lte_example', # String | Filter results where started_at is less than or equal to value
|
92
92
|
started_at__gt: 'started_at__gt_example', # String | Filter results where started_at is greater than value
|
@@ -97,12 +97,14 @@ opts = {
|
|
97
97
|
finished_at__gt: 'finished_at__gt_example', # String | Filter results where finished_at is greater than value
|
98
98
|
finished_at__gte: 'finished_at__gte_example', # String | Filter results where finished_at is greater than or equal to value
|
99
99
|
finished_at__range: 'finished_at__range_example', # String | Filter results where finished_at is between two comma separated values
|
100
|
+
parent_task: 'parent_task_example', # String | Foreign Key referenced by HREF
|
101
|
+
child_tasks: 'child_tasks_example', # String | Foreign Key referenced by HREF
|
102
|
+
task_group: 'task_group_example', # String | Foreign Key referenced by HREF
|
100
103
|
reserved_resources_record: 'reserved_resources_record_example', # String |
|
101
104
|
created_resources: 'created_resources_example', # String |
|
102
105
|
name: 'name_example', # String |
|
103
106
|
started_at: 'started_at_example', # String | ISO 8601 formatted dates are supported
|
104
107
|
finished_at: 'finished_at_example', # String | ISO 8601 formatted dates are supported
|
105
|
-
parent: 'parent_example', # String | Foreign Key referenced by HREF
|
106
108
|
limit: 56, # Integer | Number of results to return per page.
|
107
109
|
offset: 56, # Integer | The initial index from which to return the results.
|
108
110
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
@@ -124,11 +126,11 @@ end
|
|
124
126
|
Name | Type | Description | Notes
|
125
127
|
------------- | ------------- | ------------- | -------------
|
126
128
|
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
129
|
+
**name__contains** | **String**| Filter results where name contains value | [optional]
|
127
130
|
**state** | **String**| | [optional]
|
128
131
|
**state__in** | **String**| Filter results where state is in a comma-separated list of values | [optional]
|
129
132
|
**worker** | **String**| Foreign Key referenced by HREF | [optional]
|
130
133
|
**worker__in** | **String**| Filter results where worker is in a comma-separated list of values | [optional]
|
131
|
-
**name__contains** | **String**| Filter results where name contains value | [optional]
|
132
134
|
**started_at__lt** | **String**| Filter results where started_at is less than value | [optional]
|
133
135
|
**started_at__lte** | **String**| Filter results where started_at is less than or equal to value | [optional]
|
134
136
|
**started_at__gt** | **String**| Filter results where started_at is greater than value | [optional]
|
@@ -139,12 +141,14 @@ Name | Type | Description | Notes
|
|
139
141
|
**finished_at__gt** | **String**| Filter results where finished_at is greater than value | [optional]
|
140
142
|
**finished_at__gte** | **String**| Filter results where finished_at is greater than or equal to value | [optional]
|
141
143
|
**finished_at__range** | **String**| Filter results where finished_at is between two comma separated values | [optional]
|
144
|
+
**parent_task** | **String**| Foreign Key referenced by HREF | [optional]
|
145
|
+
**child_tasks** | **String**| Foreign Key referenced by HREF | [optional]
|
146
|
+
**task_group** | **String**| Foreign Key referenced by HREF | [optional]
|
142
147
|
**reserved_resources_record** | **String**| | [optional]
|
143
148
|
**created_resources** | **String**| | [optional]
|
144
149
|
**name** | **String**| | [optional]
|
145
150
|
**started_at** | **String**| ISO 8601 formatted dates are supported | [optional]
|
146
151
|
**finished_at** | **String**| ISO 8601 formatted dates are supported | [optional]
|
147
|
-
**parent** | **String**| Foreign Key referenced by HREF | [optional]
|
148
152
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
149
153
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
150
154
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
@@ -152,7 +156,7 @@ Name | Type | Description | Notes
|
|
152
156
|
|
153
157
|
### Return type
|
154
158
|
|
155
|
-
[**
|
159
|
+
[**InlineResponse2007**](InlineResponse2007.md)
|
156
160
|
|
157
161
|
### Authorization
|
158
162
|
|
data/docs/UploadsApi.md
CHANGED
@@ -175,7 +175,7 @@ nil (empty response body)
|
|
175
175
|
|
176
176
|
## list
|
177
177
|
|
178
|
-
>
|
178
|
+
> InlineResponse2008 list(opts)
|
179
179
|
|
180
180
|
List uploads
|
181
181
|
|
@@ -195,6 +195,7 @@ end
|
|
195
195
|
|
196
196
|
api_instance = PulpcoreClient::UploadsApi.new
|
197
197
|
opts = {
|
198
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
198
199
|
completed: 'completed_example', # String | ISO 8601 formatted dates are supported
|
199
200
|
limit: 56, # Integer | Number of results to return per page.
|
200
201
|
offset: 56, # Integer | The initial index from which to return the results.
|
@@ -216,6 +217,7 @@ end
|
|
216
217
|
|
217
218
|
Name | Type | Description | Notes
|
218
219
|
------------- | ------------- | ------------- | -------------
|
220
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
219
221
|
**completed** | **String**| ISO 8601 formatted dates are supported | [optional]
|
220
222
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
221
223
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
@@ -224,7 +226,7 @@ Name | Type | Description | Notes
|
|
224
226
|
|
225
227
|
### Return type
|
226
228
|
|
227
|
-
[**
|
229
|
+
[**InlineResponse2008**](InlineResponse2008.md)
|
228
230
|
|
229
231
|
### Authorization
|
230
232
|
|
data/docs/WorkersApi.md
CHANGED
@@ -11,7 +11,7 @@ Method | HTTP request | Description
|
|
11
11
|
|
12
12
|
## list
|
13
13
|
|
14
|
-
>
|
14
|
+
> InlineResponse2009 list(opts)
|
15
15
|
|
16
16
|
List workers
|
17
17
|
|
@@ -29,6 +29,7 @@ end
|
|
29
29
|
|
30
30
|
api_instance = PulpcoreClient::WorkersApi.new
|
31
31
|
opts = {
|
32
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
32
33
|
name: 'name_example', # String |
|
33
34
|
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
34
35
|
last_heartbeat__lt: 'last_heartbeat__lt_example', # String | Filter results where last_heartbeat is less than value
|
@@ -59,6 +60,7 @@ end
|
|
59
60
|
|
60
61
|
Name | Type | Description | Notes
|
61
62
|
------------- | ------------- | ------------- | -------------
|
63
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
62
64
|
**name** | **String**| | [optional]
|
63
65
|
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
64
66
|
**last_heartbeat__lt** | **String**| Filter results where last_heartbeat is less than value | [optional]
|
@@ -76,7 +78,7 @@ Name | Type | Description | Notes
|
|
76
78
|
|
77
79
|
### Return type
|
78
80
|
|
79
|
-
[**
|
81
|
+
[**InlineResponse2009**](InlineResponse2009.md)
|
80
82
|
|
81
83
|
### Authorization
|
82
84
|
|
@@ -189,6 +189,7 @@ module PulpcoreClient
|
|
189
189
|
|
190
190
|
# List artifacts
|
191
191
|
# @param [Hash] opts the optional parameters
|
192
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
192
193
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
193
194
|
# @option opts [String] :md5 Filter results where md5 matches value
|
194
195
|
# @option opts [String] :sha1 Filter results where sha1 matches value
|
@@ -208,6 +209,7 @@ module PulpcoreClient
|
|
208
209
|
|
209
210
|
# List artifacts
|
210
211
|
# @param [Hash] opts the optional parameters
|
212
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
211
213
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
212
214
|
# @option opts [String] :md5 Filter results where md5 matches value
|
213
215
|
# @option opts [String] :sha1 Filter results where sha1 matches value
|
@@ -229,6 +231,7 @@ module PulpcoreClient
|
|
229
231
|
|
230
232
|
# query parameters
|
231
233
|
query_params = opts[:query_params] || {}
|
234
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
232
235
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
233
236
|
query_params[:'md5'] = opts[:'md5'] if !opts[:'md5'].nil?
|
234
237
|
query_params[:'sha1'] = opts[:'sha1'] if !opts[:'sha1'].nil?
|
@@ -0,0 +1,297 @@
|
|
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 'cgi'
|
14
|
+
|
15
|
+
module PulpcoreClient
|
16
|
+
class ExportersCoreExportsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a pulp export
|
23
|
+
# Trigger an asynchronous task to export a set of repositories
|
24
|
+
# @param exporter_pk [String]
|
25
|
+
# @param data [PulpExport]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [AsyncOperationResponse]
|
28
|
+
def create(exporter_pk, data, opts = {})
|
29
|
+
data, _status_code, _headers = create_with_http_info(exporter_pk, data, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Create a pulp export
|
34
|
+
# Trigger an asynchronous task to export a set of repositories
|
35
|
+
# @param exporter_pk [String]
|
36
|
+
# @param data [PulpExport]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
39
|
+
def create_with_http_info(exporter_pk, data, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: ExportersCoreExportsApi.create ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'exporter_pk' is set
|
44
|
+
if @api_client.config.client_side_validation && exporter_pk.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'exporter_pk' when calling ExportersCoreExportsApi.create"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'data' is set
|
48
|
+
if @api_client.config.client_side_validation && data.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ExportersCoreExportsApi.create"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/pulp/api/v3/exporters/core/pulp/{exporter_pk}/exports/'.sub('{' + 'exporter_pk' + '}', CGI.escape(exporter_pk.to_s).gsub('%2F', '/'))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = opts[:form_params] || {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
69
|
+
|
70
|
+
# return_type
|
71
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
72
|
+
|
73
|
+
# auth_names
|
74
|
+
auth_names = opts[:auth_names] || ['Basic']
|
75
|
+
|
76
|
+
new_options = opts.merge(
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: ExportersCoreExportsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
92
|
+
# Delete a pulp export
|
93
|
+
# ViewSet for viewing exports from a PulpExporter.
|
94
|
+
# @param pulp_export_href [String] URI of Pulp Export. e.g.: /pulp/api/v3/exporters/core/pulp/1/exports/1/
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [nil]
|
97
|
+
def delete(pulp_export_href, opts = {})
|
98
|
+
delete_with_http_info(pulp_export_href, opts)
|
99
|
+
nil
|
100
|
+
end
|
101
|
+
|
102
|
+
# Delete a pulp export
|
103
|
+
# ViewSet for viewing exports from a PulpExporter.
|
104
|
+
# @param pulp_export_href [String] URI of Pulp Export. e.g.: /pulp/api/v3/exporters/core/pulp/1/exports/1/
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
107
|
+
def delete_with_http_info(pulp_export_href, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug 'Calling API: ExportersCoreExportsApi.delete ...'
|
110
|
+
end
|
111
|
+
# verify the required parameter 'pulp_export_href' is set
|
112
|
+
if @api_client.config.client_side_validation && pulp_export_href.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'pulp_export_href' when calling ExportersCoreExportsApi.delete"
|
114
|
+
end
|
115
|
+
# resource path
|
116
|
+
local_var_path = '{pulp_export_href}'.sub('{' + 'pulp_export_href' + '}', CGI.escape(pulp_export_href.to_s).gsub('%2F', '/'))
|
117
|
+
|
118
|
+
# query parameters
|
119
|
+
query_params = opts[:query_params] || {}
|
120
|
+
|
121
|
+
# header parameters
|
122
|
+
header_params = opts[:header_params] || {}
|
123
|
+
|
124
|
+
# form parameters
|
125
|
+
form_params = opts[:form_params] || {}
|
126
|
+
|
127
|
+
# http body (model)
|
128
|
+
post_body = opts[:body]
|
129
|
+
|
130
|
+
# return_type
|
131
|
+
return_type = opts[:return_type]
|
132
|
+
|
133
|
+
# auth_names
|
134
|
+
auth_names = opts[:auth_names] || ['Basic']
|
135
|
+
|
136
|
+
new_options = opts.merge(
|
137
|
+
:header_params => header_params,
|
138
|
+
:query_params => query_params,
|
139
|
+
:form_params => form_params,
|
140
|
+
:body => post_body,
|
141
|
+
:auth_names => auth_names,
|
142
|
+
:return_type => return_type
|
143
|
+
)
|
144
|
+
|
145
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
146
|
+
if @api_client.config.debugging
|
147
|
+
@api_client.config.logger.debug "API called: ExportersCoreExportsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
148
|
+
end
|
149
|
+
return data, status_code, headers
|
150
|
+
end
|
151
|
+
|
152
|
+
# List pulp exports
|
153
|
+
# ViewSet for viewing exports from a PulpExporter.
|
154
|
+
# @param exporter_pk [String]
|
155
|
+
# @param [Hash] opts the optional parameters
|
156
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
157
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
158
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
159
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
160
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
161
|
+
# @return [InlineResponse2002]
|
162
|
+
def list(exporter_pk, opts = {})
|
163
|
+
data, _status_code, _headers = list_with_http_info(exporter_pk, opts)
|
164
|
+
data
|
165
|
+
end
|
166
|
+
|
167
|
+
# List pulp exports
|
168
|
+
# ViewSet for viewing exports from a PulpExporter.
|
169
|
+
# @param exporter_pk [String]
|
170
|
+
# @param [Hash] opts the optional parameters
|
171
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
172
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
173
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
174
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
175
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
176
|
+
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
177
|
+
def list_with_http_info(exporter_pk, opts = {})
|
178
|
+
if @api_client.config.debugging
|
179
|
+
@api_client.config.logger.debug 'Calling API: ExportersCoreExportsApi.list ...'
|
180
|
+
end
|
181
|
+
# verify the required parameter 'exporter_pk' is set
|
182
|
+
if @api_client.config.client_side_validation && exporter_pk.nil?
|
183
|
+
fail ArgumentError, "Missing the required parameter 'exporter_pk' when calling ExportersCoreExportsApi.list"
|
184
|
+
end
|
185
|
+
# resource path
|
186
|
+
local_var_path = '/pulp/api/v3/exporters/core/pulp/{exporter_pk}/exports/'.sub('{' + 'exporter_pk' + '}', CGI.escape(exporter_pk.to_s).gsub('%2F', '/'))
|
187
|
+
|
188
|
+
# query parameters
|
189
|
+
query_params = opts[:query_params] || {}
|
190
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
191
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
192
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
193
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
194
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
195
|
+
|
196
|
+
# header parameters
|
197
|
+
header_params = opts[:header_params] || {}
|
198
|
+
# HTTP header 'Accept' (if needed)
|
199
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
200
|
+
|
201
|
+
# form parameters
|
202
|
+
form_params = opts[:form_params] || {}
|
203
|
+
|
204
|
+
# http body (model)
|
205
|
+
post_body = opts[:body]
|
206
|
+
|
207
|
+
# return_type
|
208
|
+
return_type = opts[:return_type] || 'InlineResponse2002'
|
209
|
+
|
210
|
+
# auth_names
|
211
|
+
auth_names = opts[:auth_names] || ['Basic']
|
212
|
+
|
213
|
+
new_options = opts.merge(
|
214
|
+
:header_params => header_params,
|
215
|
+
:query_params => query_params,
|
216
|
+
:form_params => form_params,
|
217
|
+
:body => post_body,
|
218
|
+
:auth_names => auth_names,
|
219
|
+
:return_type => return_type
|
220
|
+
)
|
221
|
+
|
222
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
223
|
+
if @api_client.config.debugging
|
224
|
+
@api_client.config.logger.debug "API called: ExportersCoreExportsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
225
|
+
end
|
226
|
+
return data, status_code, headers
|
227
|
+
end
|
228
|
+
|
229
|
+
# Inspect a pulp export
|
230
|
+
# ViewSet for viewing exports from a PulpExporter.
|
231
|
+
# @param pulp_export_href [String] URI of Pulp Export. e.g.: /pulp/api/v3/exporters/core/pulp/1/exports/1/
|
232
|
+
# @param [Hash] opts the optional parameters
|
233
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
234
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
235
|
+
# @return [PulpExport]
|
236
|
+
def read(pulp_export_href, opts = {})
|
237
|
+
data, _status_code, _headers = read_with_http_info(pulp_export_href, opts)
|
238
|
+
data
|
239
|
+
end
|
240
|
+
|
241
|
+
# Inspect a pulp export
|
242
|
+
# ViewSet for viewing exports from a PulpExporter.
|
243
|
+
# @param pulp_export_href [String] URI of Pulp Export. e.g.: /pulp/api/v3/exporters/core/pulp/1/exports/1/
|
244
|
+
# @param [Hash] opts the optional parameters
|
245
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
246
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
247
|
+
# @return [Array<(PulpExport, Integer, Hash)>] PulpExport data, response status code and response headers
|
248
|
+
def read_with_http_info(pulp_export_href, opts = {})
|
249
|
+
if @api_client.config.debugging
|
250
|
+
@api_client.config.logger.debug 'Calling API: ExportersCoreExportsApi.read ...'
|
251
|
+
end
|
252
|
+
# verify the required parameter 'pulp_export_href' is set
|
253
|
+
if @api_client.config.client_side_validation && pulp_export_href.nil?
|
254
|
+
fail ArgumentError, "Missing the required parameter 'pulp_export_href' when calling ExportersCoreExportsApi.read"
|
255
|
+
end
|
256
|
+
# resource path
|
257
|
+
local_var_path = '{pulp_export_href}'.sub('{' + 'pulp_export_href' + '}', CGI.escape(pulp_export_href.to_s).gsub('%2F', '/'))
|
258
|
+
|
259
|
+
# query parameters
|
260
|
+
query_params = opts[:query_params] || {}
|
261
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
262
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
263
|
+
|
264
|
+
# header parameters
|
265
|
+
header_params = opts[:header_params] || {}
|
266
|
+
# HTTP header 'Accept' (if needed)
|
267
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
268
|
+
|
269
|
+
# form parameters
|
270
|
+
form_params = opts[:form_params] || {}
|
271
|
+
|
272
|
+
# http body (model)
|
273
|
+
post_body = opts[:body]
|
274
|
+
|
275
|
+
# return_type
|
276
|
+
return_type = opts[:return_type] || 'PulpExport'
|
277
|
+
|
278
|
+
# auth_names
|
279
|
+
auth_names = opts[:auth_names] || ['Basic']
|
280
|
+
|
281
|
+
new_options = opts.merge(
|
282
|
+
:header_params => header_params,
|
283
|
+
:query_params => query_params,
|
284
|
+
:form_params => form_params,
|
285
|
+
:body => post_body,
|
286
|
+
:auth_names => auth_names,
|
287
|
+
:return_type => return_type
|
288
|
+
)
|
289
|
+
|
290
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
291
|
+
if @api_client.config.debugging
|
292
|
+
@api_client.config.logger.debug "API called: ExportersCoreExportsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
293
|
+
end
|
294
|
+
return data, status_code, headers
|
295
|
+
end
|
296
|
+
end
|
297
|
+
end
|