pulp_container_client 1.5.0.dev01591206929 → 2.0.0b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -4
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionRead.md +8 -8
- data/docs/V2Api.md +64 -0
- data/docs/V2BlobsApi.md +63 -0
- data/docs/V2CatalogApi.md +64 -0
- data/docs/V2ListApi.md +66 -0
- data/docs/V2UploadsApi.md +61 -0
- data/lib/pulp_container_client.rb +5 -0
- data/lib/pulp_container_client/api/v2_api.rb +80 -0
- data/lib/pulp_container_client/api/v2_blobs_api.rb +88 -0
- data/lib/pulp_container_client/api/v2_catalog_api.rb +80 -0
- data/lib/pulp_container_client/api/v2_list_api.rb +86 -0
- data/lib/pulp_container_client/api/v2_uploads_api.rb +82 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +34 -34
- data/lib/pulp_container_client/models/container_container_distribution_read.rb +34 -34
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/v2_api_spec.rb +47 -0
- data/spec/api/v2_blobs_api_spec.rb +48 -0
- data/spec/api/v2_catalog_api_spec.rb +47 -0
- data/spec/api/v2_list_api_spec.rb +48 -0
- data/spec/api/v2_uploads_api_spec.rb +47 -0
- data/spec/models/container_container_distribution_read_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +6 -6
- metadata +21 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9a89bdb3e49dbe1e50fb45fe8de2bc7e63d098cfae8d1dada6228ace21089cb
|
4
|
+
data.tar.gz: 78cc6f11a5eff0b34a2f8b33cbbdb9c9a749adfff0599694d52f2e4a7aa24af0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d534a2b0d018b1a3f1e29f31ef74b89c4baf303ed33ce82804f3dcc627cdbf6bad9da5ccf1311a325f27f86ec4b907cb49802b6016cf6846dbaac923900834c6
|
7
|
+
data.tar.gz: 5d811e10df2cdd2a8a9c8f700f00cea36f4a364b7309be40c19c4b28190a08e815fceccd4d4b2c1a928d01229d4e4aeacbdb8763a016ab975b9ce34a3d1df62a
|
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:
|
10
|
+
- Package version: 2.0.0b1
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,16 +23,16 @@ gem build pulp_container_client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./pulp_container_client-
|
26
|
+
gem install ./pulp_container_client-2.0.0b1.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./pulp_container_client-
|
29
|
+
(for development, run `gem install --dev ./pulp_container_client-2.0.0b1.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 'pulp_container_client', '~>
|
35
|
+
gem 'pulp_container_client', '~> 2.0.0b1'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -130,6 +130,11 @@ Class | Method | HTTP request | Description
|
|
130
130
|
*PulpContainerClient::RepositoriesContainerVersionsApi* | [**list**](docs/RepositoriesContainerVersionsApi.md#list) | **GET** {container_repository_href}versions/ | List repository versions
|
131
131
|
*PulpContainerClient::RepositoriesContainerVersionsApi* | [**read**](docs/RepositoriesContainerVersionsApi.md#read) | **GET** {container_repository_version_href} | Inspect a repository version
|
132
132
|
*PulpContainerClient::RepositoriesContainerVersionsApi* | [**repair**](docs/RepositoriesContainerVersionsApi.md#repair) | **POST** {container_repository_version_href}repair/ |
|
133
|
+
*PulpContainerClient::V2Api* | [**list**](docs/V2Api.md#list) | **GET** /v2/ |
|
134
|
+
*PulpContainerClient::V2BlobsApi* | [**partial_update**](docs/V2BlobsApi.md#partial_update) | **PATCH** /v2/{path}/blobs/uploads//{upload_pk} | Partially update an upload
|
135
|
+
*PulpContainerClient::V2CatalogApi* | [**list**](docs/V2CatalogApi.md#list) | **GET** /v2/_catalog |
|
136
|
+
*PulpContainerClient::V2ListApi* | [**list**](docs/V2ListApi.md#list) | **GET** /v2/{path}/tags/list |
|
137
|
+
*PulpContainerClient::V2UploadsApi* | [**create**](docs/V2UploadsApi.md#create) | **POST** /v2/{path}/blobs/uploads/ | Create an upload
|
133
138
|
|
134
139
|
|
135
140
|
## Documentation for Models
|
@@ -4,13 +4,13 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
7
|
+
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
8
8
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
9
|
-
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
10
9
|
**pulp_href** | **String** | | [optional] [readonly]
|
11
|
-
**
|
10
|
+
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
12
11
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
13
|
-
**
|
12
|
+
**content_guard** | **String** | An optional content-guard. | [optional]
|
13
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
14
14
|
**registry_path** | **String** | The Registry hostame/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
|
15
15
|
|
16
16
|
## Code Sample
|
@@ -18,13 +18,13 @@ Name | Type | Description | Notes
|
|
18
18
|
```ruby
|
19
19
|
require 'PulpContainerClient'
|
20
20
|
|
21
|
-
instance = PulpContainerClient::ContainerContainerDistribution.new(
|
21
|
+
instance = PulpContainerClient::ContainerContainerDistribution.new(repository: null,
|
22
22
|
repository_version: null,
|
23
|
-
base_path: null,
|
24
23
|
pulp_href: null,
|
25
|
-
|
24
|
+
base_path: null,
|
26
25
|
pulp_created: null,
|
27
|
-
|
26
|
+
content_guard: null,
|
27
|
+
name: null,
|
28
28
|
registry_path: null)
|
29
29
|
```
|
30
30
|
|
@@ -4,13 +4,13 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
7
|
+
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
8
8
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
9
|
-
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
10
9
|
**pulp_href** | **String** | | [optional] [readonly]
|
11
|
-
**
|
10
|
+
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
12
11
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
13
|
-
**
|
12
|
+
**content_guard** | **String** | An optional content-guard. | [optional]
|
13
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
14
14
|
**registry_path** | **String** | The Registry hostame/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
|
15
15
|
|
16
16
|
## Code Sample
|
@@ -18,13 +18,13 @@ Name | Type | Description | Notes
|
|
18
18
|
```ruby
|
19
19
|
require 'PulpContainerClient'
|
20
20
|
|
21
|
-
instance = PulpContainerClient::ContainerContainerDistributionRead.new(
|
21
|
+
instance = PulpContainerClient::ContainerContainerDistributionRead.new(repository: null,
|
22
22
|
repository_version: null,
|
23
|
-
base_path: null,
|
24
23
|
pulp_href: null,
|
25
|
-
|
24
|
+
base_path: null,
|
26
25
|
pulp_created: null,
|
27
|
-
|
26
|
+
content_guard: null,
|
27
|
+
name: null,
|
28
28
|
registry_path: null)
|
29
29
|
```
|
30
30
|
|
data/docs/V2Api.md
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# PulpContainerClient::V2Api
|
2
|
+
|
3
|
+
All URIs are relative to *http://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list**](V2Api.md#list) | **GET** /v2/ |
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## list
|
12
|
+
|
13
|
+
> list(opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Handles GET requests for the /v2/ endpoint.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'pulp_container_client'
|
24
|
+
# setup authorization
|
25
|
+
PulpContainerClient.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 = PulpContainerClient::V2Api.new
|
32
|
+
opts = {
|
33
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
34
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
35
|
+
}
|
36
|
+
|
37
|
+
begin
|
38
|
+
api_instance.list(opts)
|
39
|
+
rescue PulpContainerClient::ApiError => e
|
40
|
+
puts "Exception when calling V2Api->list: #{e}"
|
41
|
+
end
|
42
|
+
```
|
43
|
+
|
44
|
+
### Parameters
|
45
|
+
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
50
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
51
|
+
|
52
|
+
### Return type
|
53
|
+
|
54
|
+
nil (empty response body)
|
55
|
+
|
56
|
+
### Authorization
|
57
|
+
|
58
|
+
[Basic](../README.md#Basic)
|
59
|
+
|
60
|
+
### HTTP request headers
|
61
|
+
|
62
|
+
- **Content-Type**: Not defined
|
63
|
+
- **Accept**: Not defined
|
64
|
+
|
data/docs/V2BlobsApi.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# PulpContainerClient::V2BlobsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**partial_update**](V2BlobsApi.md#partial_update) | **PATCH** /v2/{path}/blobs/uploads//{upload_pk} | Partially update an upload
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## partial_update
|
12
|
+
|
13
|
+
> partial_update(path, upload_pk)
|
14
|
+
|
15
|
+
Partially update an upload
|
16
|
+
|
17
|
+
This methods handles uploading of a chunk to an existing upload.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'pulp_container_client'
|
24
|
+
# setup authorization
|
25
|
+
PulpContainerClient.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 = PulpContainerClient::V2BlobsApi.new
|
32
|
+
path = 'path_example' # String |
|
33
|
+
upload_pk = 'upload_pk_example' # String |
|
34
|
+
|
35
|
+
begin
|
36
|
+
#Partially update an upload
|
37
|
+
api_instance.partial_update(path, upload_pk)
|
38
|
+
rescue PulpContainerClient::ApiError => e
|
39
|
+
puts "Exception when calling V2BlobsApi->partial_update: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
|
46
|
+
Name | Type | Description | Notes
|
47
|
+
------------- | ------------- | ------------- | -------------
|
48
|
+
**path** | **String**| |
|
49
|
+
**upload_pk** | **String**| |
|
50
|
+
|
51
|
+
### Return type
|
52
|
+
|
53
|
+
nil (empty response body)
|
54
|
+
|
55
|
+
### Authorization
|
56
|
+
|
57
|
+
[Basic](../README.md#Basic)
|
58
|
+
|
59
|
+
### HTTP request headers
|
60
|
+
|
61
|
+
- **Content-Type**: Not defined
|
62
|
+
- **Accept**: Not defined
|
63
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# PulpContainerClient::V2CatalogApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list**](V2CatalogApi.md#list) | **GET** /v2/_catalog |
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## list
|
12
|
+
|
13
|
+
> list(opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Handles GET requests for the /v2/_catalog endpoint.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'pulp_container_client'
|
24
|
+
# setup authorization
|
25
|
+
PulpContainerClient.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 = PulpContainerClient::V2CatalogApi.new
|
32
|
+
opts = {
|
33
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
34
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
35
|
+
}
|
36
|
+
|
37
|
+
begin
|
38
|
+
api_instance.list(opts)
|
39
|
+
rescue PulpContainerClient::ApiError => e
|
40
|
+
puts "Exception when calling V2CatalogApi->list: #{e}"
|
41
|
+
end
|
42
|
+
```
|
43
|
+
|
44
|
+
### Parameters
|
45
|
+
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
50
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
51
|
+
|
52
|
+
### Return type
|
53
|
+
|
54
|
+
nil (empty response body)
|
55
|
+
|
56
|
+
### Authorization
|
57
|
+
|
58
|
+
[Basic](../README.md#Basic)
|
59
|
+
|
60
|
+
### HTTP request headers
|
61
|
+
|
62
|
+
- **Content-Type**: Not defined
|
63
|
+
- **Accept**: Not defined
|
64
|
+
|
data/docs/V2ListApi.md
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# PulpContainerClient::V2ListApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list**](V2ListApi.md#list) | **GET** /v2/{path}/tags/list |
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## list
|
12
|
+
|
13
|
+
> list(path, opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Handles GET requests to the /v2//tags/list endpoint
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'pulp_container_client'
|
24
|
+
# setup authorization
|
25
|
+
PulpContainerClient.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 = PulpContainerClient::V2ListApi.new
|
32
|
+
path = 'path_example' # String |
|
33
|
+
opts = {
|
34
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
35
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
36
|
+
}
|
37
|
+
|
38
|
+
begin
|
39
|
+
api_instance.list(path, opts)
|
40
|
+
rescue PulpContainerClient::ApiError => e
|
41
|
+
puts "Exception when calling V2ListApi->list: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
|
48
|
+
Name | Type | Description | Notes
|
49
|
+
------------- | ------------- | ------------- | -------------
|
50
|
+
**path** | **String**| |
|
51
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
52
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
nil (empty response body)
|
57
|
+
|
58
|
+
### Authorization
|
59
|
+
|
60
|
+
[Basic](../README.md#Basic)
|
61
|
+
|
62
|
+
### HTTP request headers
|
63
|
+
|
64
|
+
- **Content-Type**: Not defined
|
65
|
+
- **Accept**: Not defined
|
66
|
+
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# PulpContainerClient::V2UploadsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](V2UploadsApi.md#create) | **POST** /v2/{path}/blobs/uploads/ | Create an upload
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## create
|
12
|
+
|
13
|
+
> create(path)
|
14
|
+
|
15
|
+
Create an upload
|
16
|
+
|
17
|
+
This methods handles the creation of an upload.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'pulp_container_client'
|
24
|
+
# setup authorization
|
25
|
+
PulpContainerClient.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 = PulpContainerClient::V2UploadsApi.new
|
32
|
+
path = 'path_example' # String |
|
33
|
+
|
34
|
+
begin
|
35
|
+
#Create an upload
|
36
|
+
api_instance.create(path)
|
37
|
+
rescue PulpContainerClient::ApiError => e
|
38
|
+
puts "Exception when calling V2UploadsApi->create: #{e}"
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
### Parameters
|
43
|
+
|
44
|
+
|
45
|
+
Name | Type | Description | Notes
|
46
|
+
------------- | ------------- | ------------- | -------------
|
47
|
+
**path** | **String**| |
|
48
|
+
|
49
|
+
### Return type
|
50
|
+
|
51
|
+
nil (empty response body)
|
52
|
+
|
53
|
+
### Authorization
|
54
|
+
|
55
|
+
[Basic](../README.md#Basic)
|
56
|
+
|
57
|
+
### HTTP request headers
|
58
|
+
|
59
|
+
- **Content-Type**: Not defined
|
60
|
+
- **Accept**: Not defined
|
61
|
+
|