pulpcore_client 3.0.0rc3 → 3.0.0rc4
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 +10 -9
- data/docs/Artifact.md +1 -3
- data/docs/ArtifactsApi.md +1 -3
- data/docs/UploadChunkDetail.md +19 -0
- data/docs/UploadDetail.md +25 -0
- data/docs/UploadsApi.md +12 -20
- data/lib/pulpcore_client/api/artifacts_api.rb +4 -7
- data/lib/pulpcore_client/api/orphans_api.rb +2 -2
- data/lib/pulpcore_client/api/repositories_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_versions_api.rb +6 -6
- data/lib/pulpcore_client/api/status_api.rb +2 -2
- data/lib/pulpcore_client/api/tasks_api.rb +5 -5
- data/lib/pulpcore_client/api/uploads_api.rb +22 -33
- data/lib/pulpcore_client/api/workers_api.rb +3 -3
- data/lib/pulpcore_client/api_client.rb +41 -27
- data/lib/pulpcore_client/api_error.rb +1 -1
- data/lib/pulpcore_client/configuration.rb +2 -5
- data/lib/pulpcore_client/models/artifact.rb +5 -15
- data/lib/pulpcore_client/models/async_operation_response.rb +1 -1
- data/lib/pulpcore_client/models/content_app_status.rb +1 -1
- data/lib/pulpcore_client/models/database_connection.rb +1 -1
- 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/progress_report.rb +1 -1
- data/lib/pulpcore_client/models/redis_connection.rb +1 -1
- data/lib/pulpcore_client/models/repository.rb +1 -1
- data/lib/pulpcore_client/models/repository_version.rb +1 -1
- data/lib/pulpcore_client/models/repository_version_create.rb +1 -1
- data/lib/pulpcore_client/models/status.rb +1 -1
- data/lib/pulpcore_client/models/task.rb +1 -1
- data/lib/pulpcore_client/models/task_cancel.rb +1 -1
- data/lib/pulpcore_client/models/upload.rb +1 -1
- data/lib/pulpcore_client/models/upload_chunk_detail.rb +271 -0
- data/lib/pulpcore_client/models/upload_commit.rb +1 -1
- data/lib/pulpcore_client/models/upload_detail.rb +242 -0
- data/lib/pulpcore_client/models/version.rb +1 -1
- data/lib/pulpcore_client/models/worker.rb +1 -1
- data/lib/pulpcore_client/version.rb +2 -2
- data/lib/pulpcore_client.rb +3 -1
- data/pulpcore_client.gemspec +3 -7
- data/spec/api/artifacts_api_spec.rb +1 -2
- data/spec/api/orphans_api_spec.rb +1 -1
- data/spec/api/repositories_api_spec.rb +1 -1
- data/spec/api/repositories_versions_api_spec.rb +1 -1
- data/spec/api/status_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/api/uploads_api_spec.rb +5 -10
- data/spec/api/workers_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/artifact_spec.rb +1 -7
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_app_status_spec.rb +1 -1
- data/spec/models/database_connection_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/progress_report_spec.rb +1 -1
- data/spec/models/redis_connection_spec.rb +1 -1
- data/spec/models/repository_spec.rb +1 -1
- data/spec/models/repository_version_create_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/status_spec.rb +1 -1
- data/spec/models/task_cancel_spec.rb +1 -1
- data/spec/models/task_spec.rb +1 -1
- data/spec/models/upload_chunk_detail_spec.rb +47 -0
- data/spec/models/upload_commit_spec.rb +1 -1
- data/spec/models/upload_detail_spec.rb +65 -0
- data/spec/models/upload_spec.rb +1 -1
- data/spec/models/version_spec.rb +1 -1
- data/spec/models/worker_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +14 -93
- data/Gemfile.lock +0 -79
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b07d51c2036e977f46107e1e39e9cad91f71ffef9584d4fc5e478747e110848c
|
|
4
|
+
data.tar.gz: 28d73d2f792f76e89861c0070d9d4ebb30865fcc13d59f782fc508084465845d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f2a320119e6cc241af01aa85f222685c3bd3adb53a3ce8079991ffda41f26d3a266e7a6ebf0517b45ce133bf3ba1efbf440a5be7a4bf03fab61d5174201f072
|
|
7
|
+
data.tar.gz: 8304f53e157b4a3955ed6025e9252256bb9a13d2f8ccd28944d1cf323c807ca45ce8cc10b7ce4a56197e79d900a15b2bd9d7a8f98a1ed850f1f3e670b7700f2d
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: v3
|
|
10
|
-
- Package version: 3.0.
|
|
10
|
+
- Package version: 3.0.0rc4
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
@@ -23,16 +23,16 @@ gem build pulpcore_client.gemspec
|
|
|
23
23
|
Then either install the gem locally:
|
|
24
24
|
|
|
25
25
|
```shell
|
|
26
|
-
gem install ./pulpcore_client-3.0.
|
|
26
|
+
gem install ./pulpcore_client-3.0.0rc4.gem
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
(for development, run `gem install --dev ./pulpcore_client-3.0.
|
|
29
|
+
(for development, run `gem install --dev ./pulpcore_client-3.0.0rc4.gem` to install the development dependencies)
|
|
30
30
|
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
32
32
|
|
|
33
33
|
Finally add this to the Gemfile:
|
|
34
34
|
|
|
35
|
-
gem 'pulpcore_client', '~> 3.0.
|
|
35
|
+
gem 'pulpcore_client', '~> 3.0.0rc4'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -59,8 +59,8 @@ require 'pulpcore_client'
|
|
|
59
59
|
# Setup authorization
|
|
60
60
|
PulpcoreClient.configure do |config|
|
|
61
61
|
# Configure HTTP basic authorization: Basic
|
|
62
|
-
config.username = '
|
|
63
|
-
config.password = '
|
|
62
|
+
config.username = 'YOUR_USERNAME'
|
|
63
|
+
config.password = 'YOUR_PASSWORD'
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
api_instance = PulpcoreClient::ArtifactsApi.new
|
|
@@ -72,8 +72,7 @@ opts = {
|
|
|
72
72
|
sha224: 'sha224_example', # String | The SHA-224 checksum of the file if available.
|
|
73
73
|
sha256: 'sha256_example', # String | The SHA-256 checksum of the file if available.
|
|
74
74
|
sha384: 'sha384_example', # String | The SHA-384 checksum of the file if available.
|
|
75
|
-
sha512: 'sha512_example'
|
|
76
|
-
upload: 'upload_example' # String | An href for an Upload.
|
|
75
|
+
sha512: 'sha512_example' # String | The SHA-512 checksum of the file if available.
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
begin
|
|
@@ -112,7 +111,7 @@ Class | Method | HTTP request | Description
|
|
|
112
111
|
*PulpcoreClient::TasksApi* | [**list**](docs/TasksApi.md#list) | **GET** /pulp/api/v3/tasks/ | List tasks
|
|
113
112
|
*PulpcoreClient::TasksApi* | [**read**](docs/TasksApi.md#read) | **GET** {task_href} | Inspect a task
|
|
114
113
|
*PulpcoreClient::TasksApi* | [**tasks_cancel**](docs/TasksApi.md#tasks_cancel) | **PATCH** {task_href} | Cancel a task
|
|
115
|
-
*PulpcoreClient::UploadsApi* | [**commit**](docs/UploadsApi.md#commit) | **
|
|
114
|
+
*PulpcoreClient::UploadsApi* | [**commit**](docs/UploadsApi.md#commit) | **POST** {upload_href}commit/ | Finish an Upload
|
|
116
115
|
*PulpcoreClient::UploadsApi* | [**create**](docs/UploadsApi.md#create) | **POST** /pulp/api/v3/uploads/ | Create an upload
|
|
117
116
|
*PulpcoreClient::UploadsApi* | [**delete**](docs/UploadsApi.md#delete) | **DELETE** {upload_href} | Delete an upload
|
|
118
117
|
*PulpcoreClient::UploadsApi* | [**list**](docs/UploadsApi.md#list) | **GET** /pulp/api/v3/uploads/ | List uploads
|
|
@@ -143,7 +142,9 @@ Class | Method | HTTP request | Description
|
|
|
143
142
|
- [PulpcoreClient::Task](docs/Task.md)
|
|
144
143
|
- [PulpcoreClient::TaskCancel](docs/TaskCancel.md)
|
|
145
144
|
- [PulpcoreClient::Upload](docs/Upload.md)
|
|
145
|
+
- [PulpcoreClient::UploadChunkDetail](docs/UploadChunkDetail.md)
|
|
146
146
|
- [PulpcoreClient::UploadCommit](docs/UploadCommit.md)
|
|
147
|
+
- [PulpcoreClient::UploadDetail](docs/UploadDetail.md)
|
|
147
148
|
- [PulpcoreClient::Version](docs/Version.md)
|
|
148
149
|
- [PulpcoreClient::Worker](docs/Worker.md)
|
|
149
150
|
|
data/docs/Artifact.md
CHANGED
|
@@ -14,7 +14,6 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**sha256** | **String** | The SHA-256 checksum of the file if available. | [optional]
|
|
15
15
|
**sha384** | **String** | The SHA-384 checksum of the file if available. | [optional]
|
|
16
16
|
**sha512** | **String** | The SHA-512 checksum of the file if available. | [optional]
|
|
17
|
-
**upload** | **String** | An href for an Upload. | [optional]
|
|
18
17
|
|
|
19
18
|
## Code Sample
|
|
20
19
|
|
|
@@ -30,8 +29,7 @@ instance = PulpcoreClient::Artifact.new(_href: null,
|
|
|
30
29
|
sha224: null,
|
|
31
30
|
sha256: null,
|
|
32
31
|
sha384: null,
|
|
33
|
-
sha512: null
|
|
34
|
-
upload: null)
|
|
32
|
+
sha512: null)
|
|
35
33
|
```
|
|
36
34
|
|
|
37
35
|
|
data/docs/ArtifactsApi.md
CHANGED
|
@@ -38,8 +38,7 @@ opts = {
|
|
|
38
38
|
sha224: 'sha224_example', # String | The SHA-224 checksum of the file if available.
|
|
39
39
|
sha256: 'sha256_example', # String | The SHA-256 checksum of the file if available.
|
|
40
40
|
sha384: 'sha384_example', # String | The SHA-384 checksum of the file if available.
|
|
41
|
-
sha512: 'sha512_example'
|
|
42
|
-
upload: 'upload_example' # String | An href for an Upload.
|
|
41
|
+
sha512: 'sha512_example' # String | The SHA-512 checksum of the file if available.
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
begin
|
|
@@ -64,7 +63,6 @@ Name | Type | Description | Notes
|
|
|
64
63
|
**sha256** | **String**| The SHA-256 checksum of the file if available. | [optional]
|
|
65
64
|
**sha384** | **String**| The SHA-384 checksum of the file if available. | [optional]
|
|
66
65
|
**sha512** | **String**| The SHA-512 checksum of the file if available. | [optional]
|
|
67
|
-
**upload** | **String**| An href for an Upload. | [optional]
|
|
68
66
|
|
|
69
67
|
### Return type
|
|
70
68
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# PulpcoreClient::UploadChunkDetail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**offset** | **Integer** | |
|
|
8
|
+
**size** | **Integer** | |
|
|
9
|
+
|
|
10
|
+
## Code Sample
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'PulpcoreClient'
|
|
14
|
+
|
|
15
|
+
instance = PulpcoreClient::UploadChunkDetail.new(offset: null,
|
|
16
|
+
size: null)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# PulpcoreClient::UploadDetail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**_href** | **String** | | [optional]
|
|
8
|
+
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
|
9
|
+
**size** | **Integer** | The size of the upload in bytes. |
|
|
10
|
+
**completed** | **DateTime** | Timestamp when upload is committed. | [optional]
|
|
11
|
+
**chunks** | [**Array<UploadChunkDetail>**](UploadChunkDetail.md) | | [optional]
|
|
12
|
+
|
|
13
|
+
## Code Sample
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'PulpcoreClient'
|
|
17
|
+
|
|
18
|
+
instance = PulpcoreClient::UploadDetail.new(_href: null,
|
|
19
|
+
_created: null,
|
|
20
|
+
size: null,
|
|
21
|
+
completed: null,
|
|
22
|
+
chunks: null)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
data/docs/UploadsApi.md
CHANGED
|
@@ -4,7 +4,7 @@ All URIs are relative to *http://localhost:24817*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
-
[**commit**](UploadsApi.md#commit) | **
|
|
7
|
+
[**commit**](UploadsApi.md#commit) | **POST** {upload_href}commit/ | Finish an Upload
|
|
8
8
|
[**create**](UploadsApi.md#create) | **POST** /pulp/api/v3/uploads/ | Create an upload
|
|
9
9
|
[**delete**](UploadsApi.md#delete) | **DELETE** {upload_href} | Delete an upload
|
|
10
10
|
[**list**](UploadsApi.md#list) | **GET** /pulp/api/v3/uploads/ | List uploads
|
|
@@ -15,11 +15,11 @@ Method | HTTP request | Description
|
|
|
15
15
|
|
|
16
16
|
## commit
|
|
17
17
|
|
|
18
|
-
>
|
|
18
|
+
> AsyncOperationResponse commit(upload_href, data)
|
|
19
19
|
|
|
20
20
|
Finish an Upload
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Generates a Task to commit the upload and create an artifact
|
|
23
23
|
|
|
24
24
|
### Example
|
|
25
25
|
|
|
@@ -56,7 +56,7 @@ Name | Type | Description | Notes
|
|
|
56
56
|
|
|
57
57
|
### Return type
|
|
58
58
|
|
|
59
|
-
[**
|
|
59
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
60
60
|
|
|
61
61
|
### Authorization
|
|
62
62
|
|
|
@@ -195,12 +195,6 @@ end
|
|
|
195
195
|
|
|
196
196
|
api_instance = PulpcoreClient::UploadsApi.new
|
|
197
197
|
opts = {
|
|
198
|
-
completed__lt: 'completed__lt_example', # String | Filter results where completed is less than value
|
|
199
|
-
completed__lte: 'completed__lte_example', # String | Filter results where completed is less than or equal to value
|
|
200
|
-
completed__gt: 'completed__gt_example', # String | Filter results where completed is greater than value
|
|
201
|
-
completed__gte: 'completed__gte_example', # String | Filter results where completed is greater than or equal to value
|
|
202
|
-
completed__range: 'completed__range_example', # String | Filter results where completed is between two comma separated values
|
|
203
|
-
completed__isnull: 'completed__isnull_example', # String | Filter results where completed has a null value
|
|
204
198
|
completed: 'completed_example', # String | ISO 8601 formatted dates are supported
|
|
205
199
|
page: 56, # Integer | A page number within the paginated result set.
|
|
206
200
|
page_size: 56 # Integer | Number of results to return per page.
|
|
@@ -220,12 +214,6 @@ end
|
|
|
220
214
|
|
|
221
215
|
Name | Type | Description | Notes
|
|
222
216
|
------------- | ------------- | ------------- | -------------
|
|
223
|
-
**completed__lt** | **String**| Filter results where completed is less than value | [optional]
|
|
224
|
-
**completed__lte** | **String**| Filter results where completed is less than or equal to value | [optional]
|
|
225
|
-
**completed__gt** | **String**| Filter results where completed is greater than value | [optional]
|
|
226
|
-
**completed__gte** | **String**| Filter results where completed is greater than or equal to value | [optional]
|
|
227
|
-
**completed__range** | **String**| Filter results where completed is between two comma separated values | [optional]
|
|
228
|
-
**completed__isnull** | **String**| Filter results where completed has a null value | [optional]
|
|
229
217
|
**completed** | **String**| ISO 8601 formatted dates are supported | [optional]
|
|
230
218
|
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
|
231
219
|
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
|
@@ -246,7 +234,7 @@ Name | Type | Description | Notes
|
|
|
246
234
|
|
|
247
235
|
## read
|
|
248
236
|
|
|
249
|
-
>
|
|
237
|
+
> UploadDetail read(upload_href)
|
|
250
238
|
|
|
251
239
|
Inspect an upload
|
|
252
240
|
|
|
@@ -285,7 +273,7 @@ Name | Type | Description | Notes
|
|
|
285
273
|
|
|
286
274
|
### Return type
|
|
287
275
|
|
|
288
|
-
[**
|
|
276
|
+
[**UploadDetail**](UploadDetail.md)
|
|
289
277
|
|
|
290
278
|
### Authorization
|
|
291
279
|
|
|
@@ -299,7 +287,7 @@ Name | Type | Description | Notes
|
|
|
299
287
|
|
|
300
288
|
## update
|
|
301
289
|
|
|
302
|
-
> Upload update(upload_href, content_range, file)
|
|
290
|
+
> Upload update(upload_href, content_range, file, opts)
|
|
303
291
|
|
|
304
292
|
Upload a file chunk
|
|
305
293
|
|
|
@@ -321,10 +309,13 @@ api_instance = PulpcoreClient::UploadsApi.new
|
|
|
321
309
|
upload_href = 'upload_href_example' # String | URI of Upload. e.g.: /pulp/api/v3/uploads/1/
|
|
322
310
|
content_range = 'content_range_example' # String | The Content-Range header specifies the location of the file chunk within the file.
|
|
323
311
|
file = File.new('/path/to/file') # File | A chunk of the uploaded file.
|
|
312
|
+
opts = {
|
|
313
|
+
sha256: 'sha256_example' # String | The SHA-256 checksum of the chunk if available.
|
|
314
|
+
}
|
|
324
315
|
|
|
325
316
|
begin
|
|
326
317
|
#Upload a file chunk
|
|
327
|
-
result = api_instance.update(upload_href, content_range, file)
|
|
318
|
+
result = api_instance.update(upload_href, content_range, file, opts)
|
|
328
319
|
p result
|
|
329
320
|
rescue PulpcoreClient::ApiError => e
|
|
330
321
|
puts "Exception when calling UploadsApi->update: #{e}"
|
|
@@ -339,6 +330,7 @@ Name | Type | Description | Notes
|
|
|
339
330
|
**upload_href** | **String**| URI of Upload. e.g.: /pulp/api/v3/uploads/1/ |
|
|
340
331
|
**content_range** | **String**| The Content-Range header specifies the location of the file chunk within the file. |
|
|
341
332
|
**file** | **File**| A chunk of the uploaded file. |
|
|
333
|
+
**sha256** | **String**| The SHA-256 checksum of the chunk if available. | [optional]
|
|
342
334
|
|
|
343
335
|
### Return type
|
|
344
336
|
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.0.
|
|
9
|
+
OpenAPI Generator version: 4.0.2
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
require '
|
|
13
|
+
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module PulpcoreClient
|
|
16
16
|
class ArtifactsApi
|
|
@@ -29,7 +29,6 @@ module PulpcoreClient
|
|
|
29
29
|
# @option opts [String] :sha256 The SHA-256 checksum of the file if available.
|
|
30
30
|
# @option opts [String] :sha384 The SHA-384 checksum of the file if available.
|
|
31
31
|
# @option opts [String] :sha512 The SHA-512 checksum of the file if available.
|
|
32
|
-
# @option opts [String] :upload An href for an Upload.
|
|
33
32
|
# @return [Artifact]
|
|
34
33
|
def create(opts = {})
|
|
35
34
|
data, _status_code, _headers = create_with_http_info(opts)
|
|
@@ -46,7 +45,6 @@ module PulpcoreClient
|
|
|
46
45
|
# @option opts [String] :sha256 The SHA-256 checksum of the file if available.
|
|
47
46
|
# @option opts [String] :sha384 The SHA-384 checksum of the file if available.
|
|
48
47
|
# @option opts [String] :sha512 The SHA-512 checksum of the file if available.
|
|
49
|
-
# @option opts [String] :upload An href for an Upload.
|
|
50
48
|
# @return [Array<(Artifact, Integer, Hash)>] Artifact data, response status code and response headers
|
|
51
49
|
def create_with_http_info(opts = {})
|
|
52
50
|
if @api_client.config.debugging
|
|
@@ -99,7 +97,6 @@ module PulpcoreClient
|
|
|
99
97
|
form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
|
100
98
|
form_params['sha384'] = opts[:'sha384'] if !opts[:'sha384'].nil?
|
|
101
99
|
form_params['sha512'] = opts[:'sha512'] if !opts[:'sha512'].nil?
|
|
102
|
-
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
|
103
100
|
|
|
104
101
|
# http body (model)
|
|
105
102
|
post_body = opts[:body]
|
|
@@ -150,7 +147,7 @@ module PulpcoreClient
|
|
|
150
147
|
fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.delete"
|
|
151
148
|
end
|
|
152
149
|
# resource path
|
|
153
|
-
local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', artifact_href.to_s)
|
|
150
|
+
local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', CGI.escape(artifact_href.to_s)).gsub('%2F', '/')
|
|
154
151
|
|
|
155
152
|
# query parameters
|
|
156
153
|
query_params = opts[:query_params] || {}
|
|
@@ -289,7 +286,7 @@ module PulpcoreClient
|
|
|
289
286
|
fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.read"
|
|
290
287
|
end
|
|
291
288
|
# resource path
|
|
292
|
-
local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', artifact_href.to_s)
|
|
289
|
+
local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', CGI.escape(artifact_href.to_s)).gsub('%2F', '/')
|
|
293
290
|
|
|
294
291
|
# query parameters
|
|
295
292
|
query_params = opts[:query_params] || {}
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.0.
|
|
9
|
+
OpenAPI Generator version: 4.0.2
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
require '
|
|
13
|
+
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module PulpcoreClient
|
|
16
16
|
class OrphansApi
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.0.
|
|
9
|
+
OpenAPI Generator version: 4.0.2
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
require '
|
|
13
|
+
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module PulpcoreClient
|
|
16
16
|
class RepositoriesApi
|
|
@@ -105,7 +105,7 @@ module PulpcoreClient
|
|
|
105
105
|
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.delete"
|
|
106
106
|
end
|
|
107
107
|
# resource path
|
|
108
|
-
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
|
108
|
+
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s)).gsub('%2F', '/')
|
|
109
109
|
|
|
110
110
|
# query parameters
|
|
111
111
|
query_params = opts[:query_params] || {}
|
|
@@ -237,7 +237,7 @@ module PulpcoreClient
|
|
|
237
237
|
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesApi.partial_update"
|
|
238
238
|
end
|
|
239
239
|
# resource path
|
|
240
|
-
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
|
240
|
+
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s)).gsub('%2F', '/')
|
|
241
241
|
|
|
242
242
|
# query parameters
|
|
243
243
|
query_params = opts[:query_params] || {}
|
|
@@ -299,7 +299,7 @@ module PulpcoreClient
|
|
|
299
299
|
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.read"
|
|
300
300
|
end
|
|
301
301
|
# resource path
|
|
302
|
-
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
|
302
|
+
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s)).gsub('%2F', '/')
|
|
303
303
|
|
|
304
304
|
# query parameters
|
|
305
305
|
query_params = opts[:query_params] || {}
|
|
@@ -367,7 +367,7 @@ module PulpcoreClient
|
|
|
367
367
|
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesApi.update"
|
|
368
368
|
end
|
|
369
369
|
# resource path
|
|
370
|
-
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
|
370
|
+
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s)).gsub('%2F', '/')
|
|
371
371
|
|
|
372
372
|
# query parameters
|
|
373
373
|
query_params = opts[:query_params] || {}
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.0.
|
|
9
|
+
OpenAPI Generator version: 4.0.2
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
require '
|
|
13
|
+
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module PulpcoreClient
|
|
16
16
|
class RepositoriesVersionsApi
|
|
@@ -49,7 +49,7 @@ module PulpcoreClient
|
|
|
49
49
|
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesVersionsApi.create"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
|
-
local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
|
52
|
+
local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s)).gsub('%2F', '/')
|
|
53
53
|
|
|
54
54
|
# query parameters
|
|
55
55
|
query_params = opts[:query_params] || {}
|
|
@@ -113,7 +113,7 @@ module PulpcoreClient
|
|
|
113
113
|
fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling RepositoriesVersionsApi.delete"
|
|
114
114
|
end
|
|
115
115
|
# resource path
|
|
116
|
-
local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
|
|
116
|
+
local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', CGI.escape(repository_version_href.to_s)).gsub('%2F', '/')
|
|
117
117
|
|
|
118
118
|
# query parameters
|
|
119
119
|
query_params = opts[:query_params] || {}
|
|
@@ -205,7 +205,7 @@ module PulpcoreClient
|
|
|
205
205
|
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesVersionsApi.list"
|
|
206
206
|
end
|
|
207
207
|
# resource path
|
|
208
|
-
local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
|
208
|
+
local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s)).gsub('%2F', '/')
|
|
209
209
|
|
|
210
210
|
# query parameters
|
|
211
211
|
query_params = opts[:query_params] || {}
|
|
@@ -281,7 +281,7 @@ module PulpcoreClient
|
|
|
281
281
|
fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling RepositoriesVersionsApi.read"
|
|
282
282
|
end
|
|
283
283
|
# resource path
|
|
284
|
-
local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
|
|
284
|
+
local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', CGI.escape(repository_version_href.to_s)).gsub('%2F', '/')
|
|
285
285
|
|
|
286
286
|
# query parameters
|
|
287
287
|
query_params = opts[:query_params] || {}
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.0.
|
|
9
|
+
OpenAPI Generator version: 4.0.2
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
require '
|
|
13
|
+
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module PulpcoreClient
|
|
16
16
|
class StatusApi
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.0.
|
|
9
|
+
OpenAPI Generator version: 4.0.2
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
require '
|
|
13
|
+
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module PulpcoreClient
|
|
16
16
|
class TasksApi
|
|
@@ -41,7 +41,7 @@ module PulpcoreClient
|
|
|
41
41
|
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.delete"
|
|
42
42
|
end
|
|
43
43
|
# resource path
|
|
44
|
-
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', task_href.to_s)
|
|
44
|
+
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s)).gsub('%2F', '/')
|
|
45
45
|
|
|
46
46
|
# query parameters
|
|
47
47
|
query_params = opts[:query_params] || {}
|
|
@@ -219,7 +219,7 @@ module PulpcoreClient
|
|
|
219
219
|
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
|
|
220
220
|
end
|
|
221
221
|
# resource path
|
|
222
|
-
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', task_href.to_s)
|
|
222
|
+
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s)).gsub('%2F', '/')
|
|
223
223
|
|
|
224
224
|
# query parameters
|
|
225
225
|
query_params = opts[:query_params] || {}
|
|
@@ -287,7 +287,7 @@ module PulpcoreClient
|
|
|
287
287
|
fail ArgumentError, "Missing the required parameter 'data' when calling TasksApi.tasks_cancel"
|
|
288
288
|
end
|
|
289
289
|
# resource path
|
|
290
|
-
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', task_href.to_s)
|
|
290
|
+
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s)).gsub('%2F', '/')
|
|
291
291
|
|
|
292
292
|
# query parameters
|
|
293
293
|
query_params = opts[:query_params] || {}
|