pulpcore_client 3.0.0rc2.dev.1560174368 → 3.0.0rc2.dev.1560186355
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulpcore_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -5
- data/docs/UploadsApi.md +3 -3
- data/lib/pulpcore_client/api/uploads_api.rb +4 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/uploads_api_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b10f6064eaf892eb65d76d2d7dd1ea9d9bd0b88585d4534f4b3a8b14105cfc7
|
4
|
+
data.tar.gz: b32e717cf9f12c951a4ea167b83ffcea061f7923ab535974b748b1f59e92ee59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9002b0b28415fbb67822914eef6b996d99d9d90f1b6e302e29d6667e4eb0f2bb4ba850f691ccfc0512ec54b233b4599eac8c8cb0124f6496b59660d5ab49477
|
7
|
+
data.tar.gz: 5fb715d3af5ed740e17bb934cde0aa49db19bd5aa10538b9e7ec76e4ddcb9b5b04215d474e318c3894d0217d0fae45601b64149c10c7c1c6d26294bc2ebb5fba
|
data/Gemfile.lock
CHANGED
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.0rc2.dev.
|
10
|
+
- Package version: 3.0.0rc2.dev.1560186355
|
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.0rc2.dev.
|
26
|
+
gem install ./pulpcore_client-3.0.0rc2.dev.1560186355.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./pulpcore_client-3.0.0rc2.dev.
|
29
|
+
(for development, run `gem install --dev ./pulpcore_client-3.0.0rc2.dev.1560186355.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.0rc2.dev.
|
35
|
+
gem 'pulpcore_client', '~> 3.0.0rc2.dev.1560186355'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -112,7 +112,7 @@ Class | Method | HTTP request | Description
|
|
112
112
|
*PulpcoreClient::TasksApi* | [**tasks_delete**](docs/TasksApi.md#tasks_delete) | **DELETE** {task_href} | Delete a task
|
113
113
|
*PulpcoreClient::TasksApi* | [**tasks_list**](docs/TasksApi.md#tasks_list) | **GET** /pulp/api/v3/tasks/ | List tasks
|
114
114
|
*PulpcoreClient::TasksApi* | [**tasks_read**](docs/TasksApi.md#tasks_read) | **GET** {task_href} | Inspect a task
|
115
|
-
*PulpcoreClient::UploadsApi* | [**uploads_create**](docs/UploadsApi.md#uploads_create) | **PUT** /pulp/api/v3/uploads/ | Start Upload
|
115
|
+
*PulpcoreClient::UploadsApi* | [**uploads_create**](docs/UploadsApi.md#uploads_create) | **PUT** /pulp/api/v3/uploads/ | Start an Upload
|
116
116
|
*PulpcoreClient::UploadsApi* | [**uploads_create_and_check**](docs/UploadsApi.md#uploads_create_and_check) | **POST** /pulp/api/v3/uploads/ | Create an Upload
|
117
117
|
*PulpcoreClient::UploadsApi* | [**uploads_delete**](docs/UploadsApi.md#uploads_delete) | **DELETE** {upload_href} | Delete an upload
|
118
118
|
*PulpcoreClient::UploadsApi* | [**uploads_finish**](docs/UploadsApi.md#uploads_finish) | **POST** {upload_href} | Finish an Upload
|
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
|
-
[**uploads_create**](UploadsApi.md#uploads_create) | **PUT** /pulp/api/v3/uploads/ | Start Upload
|
7
|
+
[**uploads_create**](UploadsApi.md#uploads_create) | **PUT** /pulp/api/v3/uploads/ | Start an Upload
|
8
8
|
[**uploads_create_and_check**](UploadsApi.md#uploads_create_and_check) | **POST** /pulp/api/v3/uploads/ | Create an Upload
|
9
9
|
[**uploads_delete**](UploadsApi.md#uploads_delete) | **DELETE** {upload_href} | Delete an upload
|
10
10
|
[**uploads_finish**](UploadsApi.md#uploads_finish) | **POST** {upload_href} | Finish an Upload
|
@@ -18,7 +18,7 @@ Method | HTTP request | Description
|
|
18
18
|
|
19
19
|
> Upload uploads_create(content_range, file)
|
20
20
|
|
21
|
-
Start Upload
|
21
|
+
Start an Upload
|
22
22
|
|
23
23
|
Start a chunked upload by uploading the first chunk.
|
24
24
|
|
@@ -39,7 +39,7 @@ content_range = 'content_range_example' # String | The Content-Range header spec
|
|
39
39
|
file = File.new('/path/to/file') # File | A chunk of a file to upload.
|
40
40
|
|
41
41
|
begin
|
42
|
-
#Start Upload
|
42
|
+
#Start an Upload
|
43
43
|
result = api_instance.uploads_create(content_range, file)
|
44
44
|
p result
|
45
45
|
rescue PulpcoreClient::ApiError => e
|
@@ -19,7 +19,7 @@ module PulpcoreClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Start Upload
|
22
|
+
# Start an Upload
|
23
23
|
# Start a chunked upload by uploading the first chunk.
|
24
24
|
# @param content_range [String] The Content-Range header specifies the location of the file chunk within the file.
|
25
25
|
# @param file [File] A chunk of a file to upload.
|
@@ -30,7 +30,7 @@ module PulpcoreClient
|
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
|
-
# Start Upload
|
33
|
+
# Start an Upload
|
34
34
|
# Start a chunked upload by uploading the first chunk.
|
35
35
|
# @param content_range [String] The Content-Range header specifies the location of the file chunk within the file.
|
36
36
|
# @param file [File] A chunk of a file to upload.
|
@@ -44,7 +44,7 @@ module PulpcoreClient
|
|
44
44
|
if @api_client.config.client_side_validation && content_range.nil?
|
45
45
|
fail ArgumentError, "Missing the required parameter 'content_range' when calling UploadsApi.uploads_create"
|
46
46
|
end
|
47
|
-
pattern = Regexp.new(/^bytes (
|
47
|
+
pattern = Regexp.new(/^bytes (\d+)-(\d+)\\/(\d+)$/)
|
48
48
|
if @api_client.config.client_side_validation && content_range !~ pattern
|
49
49
|
fail ArgumentError, "invalid value for 'content_range' when calling UploadsApi.uploads_create, must conform to the pattern #{pattern}."
|
50
50
|
end
|
@@ -462,7 +462,7 @@ module PulpcoreClient
|
|
462
462
|
if @api_client.config.client_side_validation && content_range.nil?
|
463
463
|
fail ArgumentError, "Missing the required parameter 'content_range' when calling UploadsApi.uploads_update"
|
464
464
|
end
|
465
|
-
pattern = Regexp.new(/^bytes (
|
465
|
+
pattern = Regexp.new(/^bytes (\d+)-(\d+)\\/(\d+)$/)
|
466
466
|
if @api_client.config.client_side_validation && content_range !~ pattern
|
467
467
|
fail ArgumentError, "invalid value for 'content_range' when calling UploadsApi.uploads_update, must conform to the pattern #{pattern}."
|
468
468
|
end
|
@@ -33,7 +33,7 @@ describe 'UploadsApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for uploads_create
|
36
|
-
# Start Upload
|
36
|
+
# Start an Upload
|
37
37
|
# Start a chunked upload by uploading the first chunk.
|
38
38
|
# @param content_range The Content-Range header specifies the location of the file chunk within the file.
|
39
39
|
# @param file A chunk of a file to upload.
|