pulp_container_client 2.0.0b2 → 2.0.0b3
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 +32 -20
- data/docs/{ContainerBlobRead.md → ContainerBlob.md} +2 -2
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/{ContainerContainerRepositoryRead.md → ContainerContainerPushRepository.md} +2 -2
- data/docs/ContainerContentRedirectContentGuard.md +23 -0
- data/docs/{ContainerManifestRead.md → ContainerManifest.md} +2 -2
- data/docs/{ContainerTagRead.md → ContainerTag.md} +2 -2
- data/docs/ContentBlobsApi.md +2 -2
- data/docs/ContentManifestsApi.md +2 -2
- data/docs/ContentTagsApi.md +2 -2
- data/docs/ContentguardsContentRedirectApi.md +355 -0
- data/docs/DistributionsContainerApi.md +4 -4
- data/docs/InlineResponse200.md +1 -1
- 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 +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +23 -0
- data/docs/InlineResponse2008.md +23 -0
- data/docs/RemotesContainerApi.md +6 -6
- data/docs/RepositoriesContainerApi.md +6 -6
- data/docs/RepositoriesContainerPushApi.md +356 -0
- data/docs/RepositoriesContainerVersionsApi.md +285 -20
- data/docs/{V2Api.md → TokenApi.md} +5 -5
- data/lib/pulp_container_client.rb +10 -12
- data/lib/pulp_container_client/api/content_blobs_api.rb +3 -3
- data/lib/pulp_container_client/api/content_manifests_api.rb +3 -3
- data/lib/pulp_container_client/api/content_tags_api.rb +3 -3
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +431 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +6 -6
- data/lib/pulp_container_client/api/remotes_container_api.rb +9 -9
- data/lib/pulp_container_client/api/repositories_container_api.rb +9 -9
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +433 -0
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +354 -34
- data/lib/pulp_container_client/api/{v2_api.rb → token_api.rb} +6 -6
- data/lib/pulp_container_client/models/{container_blob_read.rb → container_blob.rb} +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +60 -61
- data/lib/pulp_container_client/models/{container_container_repository_read.rb → container_container_push_repository.rb} +3 -3
- data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +276 -0
- data/lib/pulp_container_client/models/{container_manifest_read.rb → container_manifest.rb} +3 -3
- data/lib/pulp_container_client/models/{container_tag_read.rb → container_tag.rb} +3 -3
- data/lib/pulp_container_client/models/inline_response200.rb +1 -1
- data/lib/pulp_container_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_container_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_container_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_container_client/models/inline_response2004.rb +1 -1
- data/lib/pulp_container_client/models/inline_response2005.rb +1 -1
- data/lib/pulp_container_client/models/inline_response2006.rb +1 -1
- data/lib/pulp_container_client/models/{repository_version_read.rb → inline_response2007.rb} +42 -39
- data/lib/pulp_container_client/models/inline_response2008.rb +247 -0
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +1 -1
- data/spec/api/content_manifests_api_spec.rb +1 -1
- data/spec/api/content_tags_api_spec.rb +1 -1
- data/spec/api/contentguards_content_redirect_api_spec.rb +117 -0
- data/spec/api/distributions_container_api_spec.rb +2 -2
- data/spec/api/remotes_container_api_spec.rb +3 -3
- data/spec/api/repositories_container_api_spec.rb +3 -3
- data/spec/api/repositories_container_push_api_spec.rb +117 -0
- data/spec/api/repositories_container_versions_api_spec.rb +77 -7
- data/spec/api/{v2_api_spec.rb → token_api_spec.rb} +7 -7
- data/spec/models/{container_blob_read_spec.rb → container_blob_spec.rb} +6 -6
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/{container_container_repository_read_spec.rb → container_container_push_repository_spec.rb} +6 -6
- data/spec/models/{repository_version_read_spec.rb → container_content_redirect_content_guard_spec.rb} +8 -14
- data/spec/models/{container_manifest_read_spec.rb → container_manifest_spec.rb} +6 -6
- data/spec/models/{container_tag_read_spec.rb → container_tag_spec.rb} +6 -6
- data/spec/models/inline_response2007_spec.rb +59 -0
- data/spec/models/inline_response2008_spec.rb +59 -0
- metadata +42 -50
- data/docs/ContainerContainerDistributionRead.md +0 -31
- data/docs/ContainerContainerRemoteRead.md +0 -47
- data/docs/RepositoryVersionRead.md +0 -25
- data/docs/V2BlobsApi.md +0 -63
- data/docs/V2CatalogApi.md +0 -64
- data/docs/V2ListApi.md +0 -66
- data/docs/V2UploadsApi.md +0 -61
- data/lib/pulp_container_client/api/v2_blobs_api.rb +0 -88
- data/lib/pulp_container_client/api/v2_catalog_api.rb +0 -80
- data/lib/pulp_container_client/api/v2_list_api.rb +0 -86
- data/lib/pulp_container_client/api/v2_uploads_api.rb +0 -82
- data/lib/pulp_container_client/models/container_container_distribution_read.rb +0 -342
- data/lib/pulp_container_client/models/container_container_remote_read.rb +0 -578
- data/spec/api/v2_blobs_api_spec.rb +0 -48
- data/spec/api/v2_catalog_api_spec.rb +0 -47
- data/spec/api/v2_list_api_spec.rb +0 -48
- data/spec/api/v2_uploads_api_spec.rb +0 -47
- data/spec/models/container_container_distribution_read_spec.rb +0 -83
- data/spec/models/container_container_remote_read_spec.rb +0 -135
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# PulpContainerClient::ContainerContainerDistributionRead
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
|
8
|
-
**content_guard** | **String** | An optional content-guard. | [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
|
-
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
11
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
12
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
13
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
|
14
|
-
**registry_path** | **String** | The Registry hostame/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
|
|
15
|
-
|
|
16
|
-
## Code Sample
|
|
17
|
-
|
|
18
|
-
```ruby
|
|
19
|
-
require 'PulpContainerClient'
|
|
20
|
-
|
|
21
|
-
instance = PulpContainerClient::ContainerContainerDistributionRead.new(repository_version: null,
|
|
22
|
-
content_guard: null,
|
|
23
|
-
base_path: null,
|
|
24
|
-
repository: null,
|
|
25
|
-
pulp_created: null,
|
|
26
|
-
name: null,
|
|
27
|
-
pulp_href: null,
|
|
28
|
-
registry_path: null)
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# PulpContainerClient::ContainerContainerRemoteRead
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
|
-
**name** | **String** | A unique name for this remote. |
|
|
10
|
-
**url** | **String** | The URL of an external content source. |
|
|
11
|
-
**ca_cert** | **String** | A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. | [optional]
|
|
12
|
-
**client_cert** | **String** | A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. | [optional]
|
|
13
|
-
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
|
14
|
-
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
|
15
|
-
**proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
|
|
16
|
-
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
|
17
|
-
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
|
18
|
-
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
|
19
|
-
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
|
20
|
-
**policy** | **String** | immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. | [optional] [default to 'immediate']
|
|
21
|
-
**upstream_name** | **String** | Name of the upstream repository |
|
|
22
|
-
**whitelist_tags** | **Array<String>** | A list of whitelisted tags to sync | [optional]
|
|
23
|
-
|
|
24
|
-
## Code Sample
|
|
25
|
-
|
|
26
|
-
```ruby
|
|
27
|
-
require 'PulpContainerClient'
|
|
28
|
-
|
|
29
|
-
instance = PulpContainerClient::ContainerContainerRemoteRead.new(pulp_href: null,
|
|
30
|
-
pulp_created: null,
|
|
31
|
-
name: null,
|
|
32
|
-
url: null,
|
|
33
|
-
ca_cert: null,
|
|
34
|
-
client_cert: null,
|
|
35
|
-
client_key: null,
|
|
36
|
-
tls_validation: null,
|
|
37
|
-
proxy_url: null,
|
|
38
|
-
username: null,
|
|
39
|
-
password: null,
|
|
40
|
-
pulp_last_updated: null,
|
|
41
|
-
download_concurrency: null,
|
|
42
|
-
policy: null,
|
|
43
|
-
upstream_name: null,
|
|
44
|
-
whitelist_tags: null)
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# PulpContainerClient::RepositoryVersionRead
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
|
-
**number** | **Integer** | | [optional] [readonly]
|
|
10
|
-
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
|
11
|
-
**content_summary** | [**ContentSummary**](ContentSummary.md) | | [optional]
|
|
12
|
-
|
|
13
|
-
## Code Sample
|
|
14
|
-
|
|
15
|
-
```ruby
|
|
16
|
-
require 'PulpContainerClient'
|
|
17
|
-
|
|
18
|
-
instance = PulpContainerClient::RepositoryVersionRead.new(pulp_href: null,
|
|
19
|
-
pulp_created: null,
|
|
20
|
-
number: null,
|
|
21
|
-
base_version: null,
|
|
22
|
-
content_summary: null)
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
|
data/docs/V2BlobsApi.md
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
|
data/docs/V2CatalogApi.md
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
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
|
-
|
data/docs/V2UploadsApi.md
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,88 +0,0 @@
|
|
|
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 PulpContainerClient
|
|
16
|
-
class V2BlobsApi
|
|
17
|
-
attr_accessor :api_client
|
|
18
|
-
|
|
19
|
-
def initialize(api_client = ApiClient.default)
|
|
20
|
-
@api_client = api_client
|
|
21
|
-
end
|
|
22
|
-
# Partially update an upload
|
|
23
|
-
# This methods handles uploading of a chunk to an existing upload.
|
|
24
|
-
# @param path [String]
|
|
25
|
-
# @param upload_pk [String]
|
|
26
|
-
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @return [nil]
|
|
28
|
-
def partial_update(path, upload_pk, opts = {})
|
|
29
|
-
partial_update_with_http_info(path, upload_pk, opts)
|
|
30
|
-
nil
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Partially update an upload
|
|
34
|
-
# This methods handles uploading of a chunk to an existing upload.
|
|
35
|
-
# @param path [String]
|
|
36
|
-
# @param upload_pk [String]
|
|
37
|
-
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
39
|
-
def partial_update_with_http_info(path, upload_pk, opts = {})
|
|
40
|
-
if @api_client.config.debugging
|
|
41
|
-
@api_client.config.logger.debug 'Calling API: V2BlobsApi.partial_update ...'
|
|
42
|
-
end
|
|
43
|
-
# verify the required parameter 'path' is set
|
|
44
|
-
if @api_client.config.client_side_validation && path.nil?
|
|
45
|
-
fail ArgumentError, "Missing the required parameter 'path' when calling V2BlobsApi.partial_update"
|
|
46
|
-
end
|
|
47
|
-
# verify the required parameter 'upload_pk' is set
|
|
48
|
-
if @api_client.config.client_side_validation && upload_pk.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'upload_pk' when calling V2BlobsApi.partial_update"
|
|
50
|
-
end
|
|
51
|
-
# resource path
|
|
52
|
-
local_var_path = '/v2/{path}/blobs/uploads//{upload_pk}'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/')).sub('{' + 'upload_pk' + '}', CGI.escape(upload_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
|
-
|
|
60
|
-
# form parameters
|
|
61
|
-
form_params = opts[:form_params] || {}
|
|
62
|
-
|
|
63
|
-
# http body (model)
|
|
64
|
-
post_body = opts[:body]
|
|
65
|
-
|
|
66
|
-
# return_type
|
|
67
|
-
return_type = opts[:return_type]
|
|
68
|
-
|
|
69
|
-
# auth_names
|
|
70
|
-
auth_names = opts[:auth_names] || ['Basic']
|
|
71
|
-
|
|
72
|
-
new_options = opts.merge(
|
|
73
|
-
:header_params => header_params,
|
|
74
|
-
:query_params => query_params,
|
|
75
|
-
:form_params => form_params,
|
|
76
|
-
:body => post_body,
|
|
77
|
-
:auth_names => auth_names,
|
|
78
|
-
:return_type => return_type
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
82
|
-
if @api_client.config.debugging
|
|
83
|
-
@api_client.config.logger.debug "API called: V2BlobsApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
84
|
-
end
|
|
85
|
-
return data, status_code, headers
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
end
|