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
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpcoreClient::InlineResponse2005
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**_next** | **String** | | [optional]
|
8
|
+
**previous** | **String** | | [optional]
|
9
|
+
**count** | **Integer** | |
|
10
|
+
**results** | [**Array<Worker>**](Worker.md) | |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpcoreClient'
|
16
|
+
|
17
|
+
instance = PulpcoreClient::InlineResponse2005.new(_next: null,
|
18
|
+
previous: null,
|
19
|
+
count: null,
|
20
|
+
results: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
data/docs/OrphansApi.md
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
# PulpcoreClient::OrphansApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**orphans_delete**](OrphansApi.md#orphans_delete) | **DELETE** /pulp/api/v3/orphans/ | Delete orphans
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## orphans_delete
|
12
|
+
|
13
|
+
> AsyncOperationResponse orphans_delete
|
14
|
+
|
15
|
+
Delete orphans
|
16
|
+
|
17
|
+
Trigger an asynchronous task that deletes allorphaned content and artifacts.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'pulpcore_client'
|
24
|
+
# setup authorization
|
25
|
+
PulpcoreClient.configure do |config|
|
26
|
+
# Configure HTTP basic authorization: Basic
|
27
|
+
config.username = 'YOUR USERNAME'
|
28
|
+
config.password = 'YOUR PASSWORD'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = PulpcoreClient::OrphansApi.new
|
32
|
+
|
33
|
+
begin
|
34
|
+
#Delete orphans
|
35
|
+
result = api_instance.orphans_delete
|
36
|
+
p result
|
37
|
+
rescue PulpcoreClient::ApiError => e
|
38
|
+
puts "Exception when calling OrphansApi->orphans_delete: #{e}"
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
### Parameters
|
43
|
+
|
44
|
+
This endpoint does not need any parameter.
|
45
|
+
|
46
|
+
### Return type
|
47
|
+
|
48
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
49
|
+
|
50
|
+
### Authorization
|
51
|
+
|
52
|
+
[Basic](../README.md#Basic)
|
53
|
+
|
54
|
+
### HTTP request headers
|
55
|
+
|
56
|
+
- **Content-Type**: Not defined
|
57
|
+
- **Accept**: application/json
|
58
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# PulpcoreClient::ProgressReport
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**message** | **String** | The message shown to the user for the progress report. | [optional]
|
8
|
+
**state** | **String** | The current state of the progress report. The possible values are: 'waiting', 'skipped', 'running', 'completed', 'failed' and 'canceled'. The default is 'waiting'. | [optional]
|
9
|
+
**total** | **Integer** | The total count of items to be handled by the ProgressBar. | [optional]
|
10
|
+
**done** | **Integer** | The count of items already processed. Defaults to 0. | [optional]
|
11
|
+
**suffix** | **String** | The suffix to be shown with the progress report. | [optional]
|
12
|
+
**task** | **String** | The task associated with this progress report. | [optional]
|
13
|
+
|
14
|
+
## Code Sample
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'PulpcoreClient'
|
18
|
+
|
19
|
+
instance = PulpcoreClient::ProgressReport.new(message: null,
|
20
|
+
state: null,
|
21
|
+
total: null,
|
22
|
+
done: null,
|
23
|
+
suffix: null,
|
24
|
+
task: null)
|
25
|
+
```
|
26
|
+
|
27
|
+
|
@@ -0,0 +1,584 @@
|
|
1
|
+
# PulpcoreClient::RepositoriesApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**repositories_create**](RepositoriesApi.md#repositories_create) | **POST** /pulp/api/v3/repositories/ | Create a repository
|
8
|
+
[**repositories_delete**](RepositoriesApi.md#repositories_delete) | **DELETE** {repository_href} | Delete a repository
|
9
|
+
[**repositories_list**](RepositoriesApi.md#repositories_list) | **GET** /pulp/api/v3/repositories/ | List repositories
|
10
|
+
[**repositories_partial_update**](RepositoriesApi.md#repositories_partial_update) | **PATCH** {repository_href} | Partially update a repository
|
11
|
+
[**repositories_read**](RepositoriesApi.md#repositories_read) | **GET** {repository_href} | Inspect a repository
|
12
|
+
[**repositories_update**](RepositoriesApi.md#repositories_update) | **PUT** {repository_href} | Update a repository
|
13
|
+
[**repositories_versions_create**](RepositoriesApi.md#repositories_versions_create) | **POST** {repository_href}versions/ | Create a repository version
|
14
|
+
[**repositories_versions_delete**](RepositoriesApi.md#repositories_versions_delete) | **DELETE** {repository_version_href} | Delete a repository version
|
15
|
+
[**repositories_versions_list**](RepositoriesApi.md#repositories_versions_list) | **GET** {repository_href}versions/ | List repository versions
|
16
|
+
[**repositories_versions_read**](RepositoriesApi.md#repositories_versions_read) | **GET** {repository_version_href} | Inspect a repository version
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
## repositories_create
|
21
|
+
|
22
|
+
> Repository repositories_create(data)
|
23
|
+
|
24
|
+
Create a repository
|
25
|
+
|
26
|
+
### Example
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
# load the gem
|
30
|
+
require 'pulpcore_client'
|
31
|
+
# setup authorization
|
32
|
+
PulpcoreClient.configure do |config|
|
33
|
+
# Configure HTTP basic authorization: Basic
|
34
|
+
config.username = 'YOUR USERNAME'
|
35
|
+
config.password = 'YOUR PASSWORD'
|
36
|
+
end
|
37
|
+
|
38
|
+
api_instance = PulpcoreClient::RepositoriesApi.new
|
39
|
+
data = PulpcoreClient::Repository.new # Repository |
|
40
|
+
|
41
|
+
begin
|
42
|
+
#Create a repository
|
43
|
+
result = api_instance.repositories_create(data)
|
44
|
+
p result
|
45
|
+
rescue PulpcoreClient::ApiError => e
|
46
|
+
puts "Exception when calling RepositoriesApi->repositories_create: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
### Parameters
|
51
|
+
|
52
|
+
|
53
|
+
Name | Type | Description | Notes
|
54
|
+
------------- | ------------- | ------------- | -------------
|
55
|
+
**data** | [**Repository**](Repository.md)| |
|
56
|
+
|
57
|
+
### Return type
|
58
|
+
|
59
|
+
[**Repository**](Repository.md)
|
60
|
+
|
61
|
+
### Authorization
|
62
|
+
|
63
|
+
[Basic](../README.md#Basic)
|
64
|
+
|
65
|
+
### HTTP request headers
|
66
|
+
|
67
|
+
- **Content-Type**: application/json
|
68
|
+
- **Accept**: application/json
|
69
|
+
|
70
|
+
|
71
|
+
## repositories_delete
|
72
|
+
|
73
|
+
> AsyncOperationResponse repositories_delete(repository_href)
|
74
|
+
|
75
|
+
Delete a repository
|
76
|
+
|
77
|
+
Trigger an asynchronous task to delete a repository.
|
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::RepositoriesApi.new
|
92
|
+
repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
93
|
+
|
94
|
+
begin
|
95
|
+
#Delete a repository
|
96
|
+
result = api_instance.repositories_delete(repository_href)
|
97
|
+
p result
|
98
|
+
rescue PulpcoreClient::ApiError => e
|
99
|
+
puts "Exception when calling RepositoriesApi->repositories_delete: #{e}"
|
100
|
+
end
|
101
|
+
```
|
102
|
+
|
103
|
+
### Parameters
|
104
|
+
|
105
|
+
|
106
|
+
Name | Type | Description | Notes
|
107
|
+
------------- | ------------- | ------------- | -------------
|
108
|
+
**repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
|
109
|
+
|
110
|
+
### Return type
|
111
|
+
|
112
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
113
|
+
|
114
|
+
### Authorization
|
115
|
+
|
116
|
+
[Basic](../README.md#Basic)
|
117
|
+
|
118
|
+
### HTTP request headers
|
119
|
+
|
120
|
+
- **Content-Type**: Not defined
|
121
|
+
- **Accept**: application/json
|
122
|
+
|
123
|
+
|
124
|
+
## repositories_list
|
125
|
+
|
126
|
+
> InlineResponse2001 repositories_list(opts)
|
127
|
+
|
128
|
+
List repositories
|
129
|
+
|
130
|
+
### Example
|
131
|
+
|
132
|
+
```ruby
|
133
|
+
# load the gem
|
134
|
+
require 'pulpcore_client'
|
135
|
+
# setup authorization
|
136
|
+
PulpcoreClient.configure do |config|
|
137
|
+
# Configure HTTP basic authorization: Basic
|
138
|
+
config.username = 'YOUR USERNAME'
|
139
|
+
config.password = 'YOUR PASSWORD'
|
140
|
+
end
|
141
|
+
|
142
|
+
api_instance = PulpcoreClient::RepositoriesApi.new
|
143
|
+
opts = {
|
144
|
+
name: 'name_example', # String |
|
145
|
+
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
146
|
+
page: 56, # Integer | A page number within the paginated result set.
|
147
|
+
page_size: 56 # Integer | Number of results to return per page.
|
148
|
+
}
|
149
|
+
|
150
|
+
begin
|
151
|
+
#List repositories
|
152
|
+
result = api_instance.repositories_list(opts)
|
153
|
+
p result
|
154
|
+
rescue PulpcoreClient::ApiError => e
|
155
|
+
puts "Exception when calling RepositoriesApi->repositories_list: #{e}"
|
156
|
+
end
|
157
|
+
```
|
158
|
+
|
159
|
+
### Parameters
|
160
|
+
|
161
|
+
|
162
|
+
Name | Type | Description | Notes
|
163
|
+
------------- | ------------- | ------------- | -------------
|
164
|
+
**name** | **String**| | [optional]
|
165
|
+
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
166
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
167
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
168
|
+
|
169
|
+
### Return type
|
170
|
+
|
171
|
+
[**InlineResponse2001**](InlineResponse2001.md)
|
172
|
+
|
173
|
+
### Authorization
|
174
|
+
|
175
|
+
[Basic](../README.md#Basic)
|
176
|
+
|
177
|
+
### HTTP request headers
|
178
|
+
|
179
|
+
- **Content-Type**: Not defined
|
180
|
+
- **Accept**: application/json
|
181
|
+
|
182
|
+
|
183
|
+
## repositories_partial_update
|
184
|
+
|
185
|
+
> Repository repositories_partial_update(repository_href, data)
|
186
|
+
|
187
|
+
Partially update a repository
|
188
|
+
|
189
|
+
### Example
|
190
|
+
|
191
|
+
```ruby
|
192
|
+
# load the gem
|
193
|
+
require 'pulpcore_client'
|
194
|
+
# setup authorization
|
195
|
+
PulpcoreClient.configure do |config|
|
196
|
+
# Configure HTTP basic authorization: Basic
|
197
|
+
config.username = 'YOUR USERNAME'
|
198
|
+
config.password = 'YOUR PASSWORD'
|
199
|
+
end
|
200
|
+
|
201
|
+
api_instance = PulpcoreClient::RepositoriesApi.new
|
202
|
+
repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
203
|
+
data = PulpcoreClient::Repository.new # Repository |
|
204
|
+
|
205
|
+
begin
|
206
|
+
#Partially update a repository
|
207
|
+
result = api_instance.repositories_partial_update(repository_href, data)
|
208
|
+
p result
|
209
|
+
rescue PulpcoreClient::ApiError => e
|
210
|
+
puts "Exception when calling RepositoriesApi->repositories_partial_update: #{e}"
|
211
|
+
end
|
212
|
+
```
|
213
|
+
|
214
|
+
### Parameters
|
215
|
+
|
216
|
+
|
217
|
+
Name | Type | Description | Notes
|
218
|
+
------------- | ------------- | ------------- | -------------
|
219
|
+
**repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
|
220
|
+
**data** | [**Repository**](Repository.md)| |
|
221
|
+
|
222
|
+
### Return type
|
223
|
+
|
224
|
+
[**Repository**](Repository.md)
|
225
|
+
|
226
|
+
### Authorization
|
227
|
+
|
228
|
+
[Basic](../README.md#Basic)
|
229
|
+
|
230
|
+
### HTTP request headers
|
231
|
+
|
232
|
+
- **Content-Type**: application/json
|
233
|
+
- **Accept**: application/json
|
234
|
+
|
235
|
+
|
236
|
+
## repositories_read
|
237
|
+
|
238
|
+
> Repository repositories_read(repository_href)
|
239
|
+
|
240
|
+
Inspect a repository
|
241
|
+
|
242
|
+
### Example
|
243
|
+
|
244
|
+
```ruby
|
245
|
+
# load the gem
|
246
|
+
require 'pulpcore_client'
|
247
|
+
# setup authorization
|
248
|
+
PulpcoreClient.configure do |config|
|
249
|
+
# Configure HTTP basic authorization: Basic
|
250
|
+
config.username = 'YOUR USERNAME'
|
251
|
+
config.password = 'YOUR PASSWORD'
|
252
|
+
end
|
253
|
+
|
254
|
+
api_instance = PulpcoreClient::RepositoriesApi.new
|
255
|
+
repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
256
|
+
|
257
|
+
begin
|
258
|
+
#Inspect a repository
|
259
|
+
result = api_instance.repositories_read(repository_href)
|
260
|
+
p result
|
261
|
+
rescue PulpcoreClient::ApiError => e
|
262
|
+
puts "Exception when calling RepositoriesApi->repositories_read: #{e}"
|
263
|
+
end
|
264
|
+
```
|
265
|
+
|
266
|
+
### Parameters
|
267
|
+
|
268
|
+
|
269
|
+
Name | Type | Description | Notes
|
270
|
+
------------- | ------------- | ------------- | -------------
|
271
|
+
**repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
|
272
|
+
|
273
|
+
### Return type
|
274
|
+
|
275
|
+
[**Repository**](Repository.md)
|
276
|
+
|
277
|
+
### Authorization
|
278
|
+
|
279
|
+
[Basic](../README.md#Basic)
|
280
|
+
|
281
|
+
### HTTP request headers
|
282
|
+
|
283
|
+
- **Content-Type**: Not defined
|
284
|
+
- **Accept**: application/json
|
285
|
+
|
286
|
+
|
287
|
+
## repositories_update
|
288
|
+
|
289
|
+
> AsyncOperationResponse repositories_update(repository_href, data)
|
290
|
+
|
291
|
+
Update a repository
|
292
|
+
|
293
|
+
Trigger an asynchronous task to updatea repository.
|
294
|
+
|
295
|
+
### Example
|
296
|
+
|
297
|
+
```ruby
|
298
|
+
# load the gem
|
299
|
+
require 'pulpcore_client'
|
300
|
+
# setup authorization
|
301
|
+
PulpcoreClient.configure do |config|
|
302
|
+
# Configure HTTP basic authorization: Basic
|
303
|
+
config.username = 'YOUR USERNAME'
|
304
|
+
config.password = 'YOUR PASSWORD'
|
305
|
+
end
|
306
|
+
|
307
|
+
api_instance = PulpcoreClient::RepositoriesApi.new
|
308
|
+
repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
309
|
+
data = PulpcoreClient::Repository.new # Repository |
|
310
|
+
|
311
|
+
begin
|
312
|
+
#Update a repository
|
313
|
+
result = api_instance.repositories_update(repository_href, data)
|
314
|
+
p result
|
315
|
+
rescue PulpcoreClient::ApiError => e
|
316
|
+
puts "Exception when calling RepositoriesApi->repositories_update: #{e}"
|
317
|
+
end
|
318
|
+
```
|
319
|
+
|
320
|
+
### Parameters
|
321
|
+
|
322
|
+
|
323
|
+
Name | Type | Description | Notes
|
324
|
+
------------- | ------------- | ------------- | -------------
|
325
|
+
**repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
|
326
|
+
**data** | [**Repository**](Repository.md)| |
|
327
|
+
|
328
|
+
### Return type
|
329
|
+
|
330
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
331
|
+
|
332
|
+
### Authorization
|
333
|
+
|
334
|
+
[Basic](../README.md#Basic)
|
335
|
+
|
336
|
+
### HTTP request headers
|
337
|
+
|
338
|
+
- **Content-Type**: application/json
|
339
|
+
- **Accept**: application/json
|
340
|
+
|
341
|
+
|
342
|
+
## repositories_versions_create
|
343
|
+
|
344
|
+
> AsyncOperationResponse repositories_versions_create(repository_href, data)
|
345
|
+
|
346
|
+
Create a repository version
|
347
|
+
|
348
|
+
Trigger an asynchronous task to create a new repository version.
|
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::RepositoriesApi.new
|
363
|
+
repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
364
|
+
data = PulpcoreClient::RepositoryVersionCreate.new # RepositoryVersionCreate |
|
365
|
+
|
366
|
+
begin
|
367
|
+
#Create a repository version
|
368
|
+
result = api_instance.repositories_versions_create(repository_href, data)
|
369
|
+
p result
|
370
|
+
rescue PulpcoreClient::ApiError => e
|
371
|
+
puts "Exception when calling RepositoriesApi->repositories_versions_create: #{e}"
|
372
|
+
end
|
373
|
+
```
|
374
|
+
|
375
|
+
### Parameters
|
376
|
+
|
377
|
+
|
378
|
+
Name | Type | Description | Notes
|
379
|
+
------------- | ------------- | ------------- | -------------
|
380
|
+
**repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
|
381
|
+
**data** | [**RepositoryVersionCreate**](RepositoryVersionCreate.md)| |
|
382
|
+
|
383
|
+
### Return type
|
384
|
+
|
385
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
386
|
+
|
387
|
+
### Authorization
|
388
|
+
|
389
|
+
[Basic](../README.md#Basic)
|
390
|
+
|
391
|
+
### HTTP request headers
|
392
|
+
|
393
|
+
- **Content-Type**: application/json
|
394
|
+
- **Accept**: application/json
|
395
|
+
|
396
|
+
|
397
|
+
## repositories_versions_delete
|
398
|
+
|
399
|
+
> AsyncOperationResponse repositories_versions_delete(repository_version_href)
|
400
|
+
|
401
|
+
Delete a repository version
|
402
|
+
|
403
|
+
Trigger an asynchronous task to delete a repositroy version.
|
404
|
+
|
405
|
+
### Example
|
406
|
+
|
407
|
+
```ruby
|
408
|
+
# load the gem
|
409
|
+
require 'pulpcore_client'
|
410
|
+
# setup authorization
|
411
|
+
PulpcoreClient.configure do |config|
|
412
|
+
# Configure HTTP basic authorization: Basic
|
413
|
+
config.username = 'YOUR USERNAME'
|
414
|
+
config.password = 'YOUR PASSWORD'
|
415
|
+
end
|
416
|
+
|
417
|
+
api_instance = PulpcoreClient::RepositoriesApi.new
|
418
|
+
repository_version_href = 'repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
419
|
+
|
420
|
+
begin
|
421
|
+
#Delete a repository version
|
422
|
+
result = api_instance.repositories_versions_delete(repository_version_href)
|
423
|
+
p result
|
424
|
+
rescue PulpcoreClient::ApiError => e
|
425
|
+
puts "Exception when calling RepositoriesApi->repositories_versions_delete: #{e}"
|
426
|
+
end
|
427
|
+
```
|
428
|
+
|
429
|
+
### Parameters
|
430
|
+
|
431
|
+
|
432
|
+
Name | Type | Description | Notes
|
433
|
+
------------- | ------------- | ------------- | -------------
|
434
|
+
**repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/ |
|
435
|
+
|
436
|
+
### Return type
|
437
|
+
|
438
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
439
|
+
|
440
|
+
### Authorization
|
441
|
+
|
442
|
+
[Basic](../README.md#Basic)
|
443
|
+
|
444
|
+
### HTTP request headers
|
445
|
+
|
446
|
+
- **Content-Type**: Not defined
|
447
|
+
- **Accept**: application/json
|
448
|
+
|
449
|
+
|
450
|
+
## repositories_versions_list
|
451
|
+
|
452
|
+
> InlineResponse2002 repositories_versions_list(repository_href, opts)
|
453
|
+
|
454
|
+
List repository versions
|
455
|
+
|
456
|
+
### Example
|
457
|
+
|
458
|
+
```ruby
|
459
|
+
# load the gem
|
460
|
+
require 'pulpcore_client'
|
461
|
+
# setup authorization
|
462
|
+
PulpcoreClient.configure do |config|
|
463
|
+
# Configure HTTP basic authorization: Basic
|
464
|
+
config.username = 'YOUR USERNAME'
|
465
|
+
config.password = 'YOUR PASSWORD'
|
466
|
+
end
|
467
|
+
|
468
|
+
api_instance = PulpcoreClient::RepositoriesApi.new
|
469
|
+
repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
470
|
+
opts = {
|
471
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
472
|
+
number: 3.4, # Float |
|
473
|
+
number__lt: 3.4, # Float | Filter results where number is less than value
|
474
|
+
number__lte: 3.4, # Float | Filter results where number is less than or equal to value
|
475
|
+
number__gt: 3.4, # Float | Filter results where number is greater than value
|
476
|
+
number__gte: 3.4, # Float | Filter results where number is greater than or equal to value
|
477
|
+
number__range: 3.4, # Float | Filter results where number is between two comma separated values
|
478
|
+
_created__lt: '_created__lt_example', # String | Filter results where _created is less than value
|
479
|
+
_created__lte: '_created__lte_example', # String | Filter results where _created is less than or equal to value
|
480
|
+
_created__gt: '_created__gt_example', # String | Filter results where _created is greater than value
|
481
|
+
_created__gte: '_created__gte_example', # String | Filter results where _created is greater than or equal to value
|
482
|
+
_created__range: '_created__range_example', # String | Filter results where _created is between two comma separated values
|
483
|
+
content: 'content_example', # String | Content Unit referenced by HREF
|
484
|
+
_created: '_created_example', # String | ISO 8601 formatted dates are supported
|
485
|
+
page: 56, # Integer | A page number within the paginated result set.
|
486
|
+
page_size: 56 # Integer | Number of results to return per page.
|
487
|
+
}
|
488
|
+
|
489
|
+
begin
|
490
|
+
#List repository versions
|
491
|
+
result = api_instance.repositories_versions_list(repository_href, opts)
|
492
|
+
p result
|
493
|
+
rescue PulpcoreClient::ApiError => e
|
494
|
+
puts "Exception when calling RepositoriesApi->repositories_versions_list: #{e}"
|
495
|
+
end
|
496
|
+
```
|
497
|
+
|
498
|
+
### Parameters
|
499
|
+
|
500
|
+
|
501
|
+
Name | Type | Description | Notes
|
502
|
+
------------- | ------------- | ------------- | -------------
|
503
|
+
**repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
|
504
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
505
|
+
**number** | **Float**| | [optional]
|
506
|
+
**number__lt** | **Float**| Filter results where number is less than value | [optional]
|
507
|
+
**number__lte** | **Float**| Filter results where number is less than or equal to value | [optional]
|
508
|
+
**number__gt** | **Float**| Filter results where number is greater than value | [optional]
|
509
|
+
**number__gte** | **Float**| Filter results where number is greater than or equal to value | [optional]
|
510
|
+
**number__range** | **Float**| Filter results where number is between two comma separated values | [optional]
|
511
|
+
**_created__lt** | **String**| Filter results where _created is less than value | [optional]
|
512
|
+
**_created__lte** | **String**| Filter results where _created is less than or equal to value | [optional]
|
513
|
+
**_created__gt** | **String**| Filter results where _created is greater than value | [optional]
|
514
|
+
**_created__gte** | **String**| Filter results where _created is greater than or equal to value | [optional]
|
515
|
+
**_created__range** | **String**| Filter results where _created is between two comma separated values | [optional]
|
516
|
+
**content** | **String**| Content Unit referenced by HREF | [optional]
|
517
|
+
**_created** | **String**| ISO 8601 formatted dates are supported | [optional]
|
518
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
519
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
520
|
+
|
521
|
+
### Return type
|
522
|
+
|
523
|
+
[**InlineResponse2002**](InlineResponse2002.md)
|
524
|
+
|
525
|
+
### Authorization
|
526
|
+
|
527
|
+
[Basic](../README.md#Basic)
|
528
|
+
|
529
|
+
### HTTP request headers
|
530
|
+
|
531
|
+
- **Content-Type**: Not defined
|
532
|
+
- **Accept**: application/json
|
533
|
+
|
534
|
+
|
535
|
+
## repositories_versions_read
|
536
|
+
|
537
|
+
> RepositoryVersion repositories_versions_read(repository_version_href)
|
538
|
+
|
539
|
+
Inspect a repository version
|
540
|
+
|
541
|
+
### Example
|
542
|
+
|
543
|
+
```ruby
|
544
|
+
# load the gem
|
545
|
+
require 'pulpcore_client'
|
546
|
+
# setup authorization
|
547
|
+
PulpcoreClient.configure do |config|
|
548
|
+
# Configure HTTP basic authorization: Basic
|
549
|
+
config.username = 'YOUR USERNAME'
|
550
|
+
config.password = 'YOUR PASSWORD'
|
551
|
+
end
|
552
|
+
|
553
|
+
api_instance = PulpcoreClient::RepositoriesApi.new
|
554
|
+
repository_version_href = 'repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
555
|
+
|
556
|
+
begin
|
557
|
+
#Inspect a repository version
|
558
|
+
result = api_instance.repositories_versions_read(repository_version_href)
|
559
|
+
p result
|
560
|
+
rescue PulpcoreClient::ApiError => e
|
561
|
+
puts "Exception when calling RepositoriesApi->repositories_versions_read: #{e}"
|
562
|
+
end
|
563
|
+
```
|
564
|
+
|
565
|
+
### Parameters
|
566
|
+
|
567
|
+
|
568
|
+
Name | Type | Description | Notes
|
569
|
+
------------- | ------------- | ------------- | -------------
|
570
|
+
**repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/ |
|
571
|
+
|
572
|
+
### Return type
|
573
|
+
|
574
|
+
[**RepositoryVersion**](RepositoryVersion.md)
|
575
|
+
|
576
|
+
### Authorization
|
577
|
+
|
578
|
+
[Basic](../README.md#Basic)
|
579
|
+
|
580
|
+
### HTTP request headers
|
581
|
+
|
582
|
+
- **Content-Type**: Not defined
|
583
|
+
- **Accept**: application/json
|
584
|
+
|