pulp_docker_client 4.0.0b5 → 4.0.0b6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -14
- data/docs/ContentBlobsApi.md +24 -20
- data/docs/ContentManifestsApi.md +12 -6
- data/docs/{ContentManifestTagsApi.md → ContentTagsApi.md} +40 -34
- data/docs/DistributionsDockerApi.md +4 -4
- data/docs/DockerCopyApi.md +114 -0
- data/docs/DockerDistribution.md +9 -9
- data/docs/DockerRecursiveAddApi.md +61 -0
- data/docs/DockerRecursiveRemoveApi.md +61 -0
- data/docs/DockerTagApi.md +61 -0
- data/docs/DockerUntagApi.md +61 -0
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +4 -4
- data/docs/InlineResponse2002.md +4 -4
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/ManifestCopy.md +25 -0
- data/docs/RecursiveManage.md +19 -0
- data/docs/RemotesDockerApi.md +4 -4
- data/docs/{ManifestTag.md → Tag.md} +2 -2
- data/docs/TagCopy.md +23 -0
- data/docs/TagImage.md +21 -0
- data/docs/UnTagImage.md +19 -0
- data/git_push.sh +10 -7
- data/lib/pulp_docker_client/api/content_blobs_api.rb +35 -29
- data/lib/pulp_docker_client/api/content_manifests_api.rb +21 -12
- data/lib/pulp_docker_client/api/{content_manifest_tags_api.rb → content_tags_api.rb} +59 -50
- data/lib/pulp_docker_client/api/distributions_docker_api.rb +12 -12
- data/lib/pulp_docker_client/api/docker_copy_api.rb +146 -0
- data/lib/pulp_docker_client/api/docker_recursive_add_api.rb +84 -0
- data/lib/pulp_docker_client/api/docker_recursive_remove_api.rb +84 -0
- data/lib/pulp_docker_client/api/docker_tag_api.rb +84 -0
- data/lib/pulp_docker_client/api/docker_untag_api.rb +84 -0
- data/lib/pulp_docker_client/api/remotes_docker_api.rb +13 -13
- data/lib/pulp_docker_client/api_client.rb +77 -62
- data/lib/pulp_docker_client/api_error.rb +1 -1
- data/lib/pulp_docker_client/configuration.rb +13 -21
- data/lib/pulp_docker_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_docker_client/models/blob.rb +1 -1
- data/lib/pulp_docker_client/models/docker_distribution.rb +37 -37
- data/lib/pulp_docker_client/models/docker_remote.rb +1 -1
- data/lib/pulp_docker_client/models/inline_response200.rb +11 -11
- data/lib/pulp_docker_client/models/inline_response2001.rb +12 -12
- data/lib/pulp_docker_client/models/inline_response2002.rb +12 -12
- data/lib/pulp_docker_client/models/inline_response2003.rb +11 -11
- data/lib/pulp_docker_client/models/inline_response2004.rb +11 -11
- data/lib/pulp_docker_client/models/manifest.rb +1 -1
- data/lib/pulp_docker_client/models/manifest_copy.rb +268 -0
- data/lib/pulp_docker_client/models/recursive_manage.rb +214 -0
- data/lib/pulp_docker_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_docker_client/models/{manifest_tag.rb → tag.rb} +4 -4
- data/lib/pulp_docker_client/models/tag_copy.rb +234 -0
- data/lib/pulp_docker_client/models/tag_image.rb +270 -0
- data/lib/pulp_docker_client/models/un_tag_image.rb +236 -0
- data/lib/pulp_docker_client/version.rb +2 -2
- data/lib/pulp_docker_client.rb +13 -3
- data/pulp_docker_client.gemspec +3 -9
- data/spec/api/content_blobs_api_spec.rb +12 -10
- data/spec/api/content_manifests_api_spec.rb +7 -4
- data/spec/api/{content_manifest_tags_api_spec.rb → content_tags_api_spec.rb} +22 -19
- data/spec/api/distributions_docker_api_spec.rb +3 -3
- data/spec/api/docker_copy_api_spec.rb +57 -0
- data/spec/api/docker_recursive_add_api_spec.rb +46 -0
- data/spec/api/docker_recursive_remove_api_spec.rb +46 -0
- data/spec/api/docker_tag_api_spec.rb +46 -0
- data/spec/api/docker_untag_api_spec.rb +46 -0
- data/spec/api/remotes_docker_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +1 -39
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/blob_spec.rb +1 -1
- data/spec/models/docker_distribution_spec.rb +7 -7
- data/spec/models/docker_remote_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +4 -4
- data/spec/models/inline_response2002_spec.rb +4 -4
- data/spec/models/inline_response2003_spec.rb +4 -4
- data/spec/models/inline_response2004_spec.rb +4 -4
- data/spec/models/inline_response200_spec.rb +4 -4
- data/spec/models/manifest_copy_spec.rb +69 -0
- data/spec/models/manifest_spec.rb +1 -1
- data/spec/models/recursive_manage_spec.rb +47 -0
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/tag_copy_spec.rb +59 -0
- data/spec/models/tag_image_spec.rb +53 -0
- data/spec/models/{manifest_tag_spec.rb → tag_spec.rb} +7 -7
- data/spec/models/un_tag_image_spec.rb +47 -0
- data/spec/spec_helper.rb +1 -1
- metadata +54 -141
- 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: b764adcc7abe03396ebfe1fabcfa3abc17674cdf909dff0c935cc7faefa5cbfe
|
4
|
+
data.tar.gz: aa2fd3e944803dcc109d43e1ff1ed202898bde5d54c3121d6056fad00ba09284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32c210f61a4ab46c4444afbcb59444ec50db817491641c05492d8f0970d5bdbdfac758755b457fb6f2ddef26ba4df4917212900d53a58319e44518eacabe3b32
|
7
|
+
data.tar.gz: d498180d4c0bbdb7d1f2786a7a44ef3487e9e3b77497a61f2ee1db70679e9783e7e2ad471ad9319c8913a05aa9f8e735effddddb0c2bcecc294e591a75af20ed
|
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: 4.0.
|
10
|
+
- Package version: 4.0.0b6
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,16 +23,16 @@ gem build pulp_docker_client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./pulp_docker_client-4.0.
|
26
|
+
gem install ./pulp_docker_client-4.0.0b6.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./pulp_docker_client-4.0.
|
29
|
+
(for development, run `gem install --dev ./pulp_docker_client-4.0.0b6.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_docker_client', '~> 4.0.
|
35
|
+
gem 'pulp_docker_client', '~> 4.0.0b6'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -59,15 +59,15 @@ require 'pulp_docker_client'
|
|
59
59
|
# Setup authorization
|
60
60
|
PulpDockerClient.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 = PulpDockerClient::ContentBlobsApi.new
|
67
67
|
data = PulpDockerClient::Blob.new # Blob |
|
68
68
|
|
69
69
|
begin
|
70
|
-
#Create a
|
70
|
+
#Create a blob
|
71
71
|
result = api_instance.create(data)
|
72
72
|
p result
|
73
73
|
rescue PulpDockerClient::ApiError => e
|
@@ -82,21 +82,27 @@ All URIs are relative to *http://localhost:24817*
|
|
82
82
|
|
83
83
|
Class | Method | HTTP request | Description
|
84
84
|
------------ | ------------- | ------------- | -------------
|
85
|
-
*PulpDockerClient::ContentBlobsApi* | [**create**](docs/ContentBlobsApi.md#create) | **POST** /pulp/api/v3/content/docker/blobs/ | Create a
|
86
|
-
*PulpDockerClient::ContentBlobsApi* | [**list**](docs/ContentBlobsApi.md#list) | **GET** /pulp/api/v3/content/docker/blobs/ | List
|
87
|
-
*PulpDockerClient::ContentBlobsApi* | [**read**](docs/ContentBlobsApi.md#read) | **GET** {
|
88
|
-
*PulpDockerClient::ContentManifestTagsApi* | [**create**](docs/ContentManifestTagsApi.md#create) | **POST** /pulp/api/v3/content/docker/manifest-tags/ | Create a manifest tag
|
89
|
-
*PulpDockerClient::ContentManifestTagsApi* | [**list**](docs/ContentManifestTagsApi.md#list) | **GET** /pulp/api/v3/content/docker/manifest-tags/ | List manifest tags
|
90
|
-
*PulpDockerClient::ContentManifestTagsApi* | [**read**](docs/ContentManifestTagsApi.md#read) | **GET** {manifest_tag_href} | Inspect a manifest tag
|
85
|
+
*PulpDockerClient::ContentBlobsApi* | [**create**](docs/ContentBlobsApi.md#create) | **POST** /pulp/api/v3/content/docker/blobs/ | Create a blob
|
86
|
+
*PulpDockerClient::ContentBlobsApi* | [**list**](docs/ContentBlobsApi.md#list) | **GET** /pulp/api/v3/content/docker/blobs/ | List blobs
|
87
|
+
*PulpDockerClient::ContentBlobsApi* | [**read**](docs/ContentBlobsApi.md#read) | **GET** {blob_href} | Inspect a blob
|
91
88
|
*PulpDockerClient::ContentManifestsApi* | [**create**](docs/ContentManifestsApi.md#create) | **POST** /pulp/api/v3/content/docker/manifests/ | Create a manifest
|
92
89
|
*PulpDockerClient::ContentManifestsApi* | [**list**](docs/ContentManifestsApi.md#list) | **GET** /pulp/api/v3/content/docker/manifests/ | List manifests
|
93
90
|
*PulpDockerClient::ContentManifestsApi* | [**read**](docs/ContentManifestsApi.md#read) | **GET** {manifest_href} | Inspect a manifest
|
91
|
+
*PulpDockerClient::ContentTagsApi* | [**create**](docs/ContentTagsApi.md#create) | **POST** /pulp/api/v3/content/docker/tags/ | Create a tag
|
92
|
+
*PulpDockerClient::ContentTagsApi* | [**list**](docs/ContentTagsApi.md#list) | **GET** /pulp/api/v3/content/docker/tags/ | List tags
|
93
|
+
*PulpDockerClient::ContentTagsApi* | [**read**](docs/ContentTagsApi.md#read) | **GET** {tag_href} | Inspect a tag
|
94
94
|
*PulpDockerClient::DistributionsDockerApi* | [**create**](docs/DistributionsDockerApi.md#create) | **POST** /pulp/api/v3/distributions/docker/docker/ | Create a docker distribution
|
95
95
|
*PulpDockerClient::DistributionsDockerApi* | [**delete**](docs/DistributionsDockerApi.md#delete) | **DELETE** {docker_distribution_href} | Delete a docker distribution
|
96
96
|
*PulpDockerClient::DistributionsDockerApi* | [**list**](docs/DistributionsDockerApi.md#list) | **GET** /pulp/api/v3/distributions/docker/docker/ | List docker distributions
|
97
97
|
*PulpDockerClient::DistributionsDockerApi* | [**partial_update**](docs/DistributionsDockerApi.md#partial_update) | **PATCH** {docker_distribution_href} | Partially update a docker distribution
|
98
98
|
*PulpDockerClient::DistributionsDockerApi* | [**read**](docs/DistributionsDockerApi.md#read) | **GET** {docker_distribution_href} | Inspect a docker distribution
|
99
99
|
*PulpDockerClient::DistributionsDockerApi* | [**update**](docs/DistributionsDockerApi.md#update) | **PUT** {docker_distribution_href} | Update a docker distribution
|
100
|
+
*PulpDockerClient::DockerCopyApi* | [**create**](docs/DockerCopyApi.md#create) | **POST** /docker/manifests/copy/ |
|
101
|
+
*PulpDockerClient::DockerCopyApi* | [**create_0**](docs/DockerCopyApi.md#create_0) | **POST** /docker/tags/copy/ |
|
102
|
+
*PulpDockerClient::DockerRecursiveAddApi* | [**create**](docs/DockerRecursiveAddApi.md#create) | **POST** /docker/recursive-add/ |
|
103
|
+
*PulpDockerClient::DockerRecursiveRemoveApi* | [**create**](docs/DockerRecursiveRemoveApi.md#create) | **POST** /docker/recursive-remove/ |
|
104
|
+
*PulpDockerClient::DockerTagApi* | [**create**](docs/DockerTagApi.md#create) | **POST** /docker/tag/ |
|
105
|
+
*PulpDockerClient::DockerUntagApi* | [**create**](docs/DockerUntagApi.md#create) | **POST** /docker/untag/ |
|
100
106
|
*PulpDockerClient::RemotesDockerApi* | [**create**](docs/RemotesDockerApi.md#create) | **POST** /pulp/api/v3/remotes/docker/docker/ | Create a docker remote
|
101
107
|
*PulpDockerClient::RemotesDockerApi* | [**delete**](docs/RemotesDockerApi.md#delete) | **DELETE** {docker_remote_href} | Delete a docker remote
|
102
108
|
*PulpDockerClient::RemotesDockerApi* | [**list**](docs/RemotesDockerApi.md#list) | **GET** /pulp/api/v3/remotes/docker/docker/ | List docker remotes
|
@@ -118,8 +124,13 @@ Class | Method | HTTP request | Description
|
|
118
124
|
- [PulpDockerClient::InlineResponse2003](docs/InlineResponse2003.md)
|
119
125
|
- [PulpDockerClient::InlineResponse2004](docs/InlineResponse2004.md)
|
120
126
|
- [PulpDockerClient::Manifest](docs/Manifest.md)
|
121
|
-
- [PulpDockerClient::
|
127
|
+
- [PulpDockerClient::ManifestCopy](docs/ManifestCopy.md)
|
128
|
+
- [PulpDockerClient::RecursiveManage](docs/RecursiveManage.md)
|
122
129
|
- [PulpDockerClient::RepositorySyncURL](docs/RepositorySyncURL.md)
|
130
|
+
- [PulpDockerClient::Tag](docs/Tag.md)
|
131
|
+
- [PulpDockerClient::TagCopy](docs/TagCopy.md)
|
132
|
+
- [PulpDockerClient::TagImage](docs/TagImage.md)
|
133
|
+
- [PulpDockerClient::UnTagImage](docs/UnTagImage.md)
|
123
134
|
|
124
135
|
|
125
136
|
## Documentation for Authorization
|
data/docs/ContentBlobsApi.md
CHANGED
@@ -4,9 +4,9 @@ All URIs are relative to *http://localhost:24817*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**create**](ContentBlobsApi.md#create) | **POST** /pulp/api/v3/content/docker/blobs/ | Create a
|
8
|
-
[**list**](ContentBlobsApi.md#list) | **GET** /pulp/api/v3/content/docker/blobs/ | List
|
9
|
-
[**read**](ContentBlobsApi.md#read) | **GET** {
|
7
|
+
[**create**](ContentBlobsApi.md#create) | **POST** /pulp/api/v3/content/docker/blobs/ | Create a blob
|
8
|
+
[**list**](ContentBlobsApi.md#list) | **GET** /pulp/api/v3/content/docker/blobs/ | List blobs
|
9
|
+
[**read**](ContentBlobsApi.md#read) | **GET** {blob_href} | Inspect a blob
|
10
10
|
|
11
11
|
|
12
12
|
|
@@ -14,9 +14,9 @@ Method | HTTP request | Description
|
|
14
14
|
|
15
15
|
> Blob create(data)
|
16
16
|
|
17
|
-
Create a
|
17
|
+
Create a blob
|
18
18
|
|
19
|
-
Create a new
|
19
|
+
Create a new Blob from a request.
|
20
20
|
|
21
21
|
### Example
|
22
22
|
|
@@ -34,7 +34,7 @@ api_instance = PulpDockerClient::ContentBlobsApi.new
|
|
34
34
|
data = PulpDockerClient::Blob.new # Blob |
|
35
35
|
|
36
36
|
begin
|
37
|
-
#Create a
|
37
|
+
#Create a blob
|
38
38
|
result = api_instance.create(data)
|
39
39
|
p result
|
40
40
|
rescue PulpDockerClient::ApiError => e
|
@@ -67,9 +67,9 @@ Name | Type | Description | Notes
|
|
67
67
|
|
68
68
|
> InlineResponse200 list(opts)
|
69
69
|
|
70
|
-
List
|
70
|
+
List blobs
|
71
71
|
|
72
|
-
ViewSet for
|
72
|
+
ViewSet for Blobs.
|
73
73
|
|
74
74
|
### Example
|
75
75
|
|
@@ -86,15 +86,17 @@ end
|
|
86
86
|
api_instance = PulpDockerClient::ContentBlobsApi.new
|
87
87
|
opts = {
|
88
88
|
digest: 'digest_example', # String | Filter results where digest matches value
|
89
|
+
digest__in: 'digest__in_example', # String | Filter results where digest is in a comma-separated list of values
|
89
90
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
90
91
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
91
92
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
92
|
-
|
93
|
-
|
93
|
+
media_type: 'media_type_example', # String |
|
94
|
+
limit: 56, # Integer | Number of results to return per page.
|
95
|
+
offset: 56 # Integer | The initial index from which to return the results.
|
94
96
|
}
|
95
97
|
|
96
98
|
begin
|
97
|
-
#List
|
99
|
+
#List blobs
|
98
100
|
result = api_instance.list(opts)
|
99
101
|
p result
|
100
102
|
rescue PulpDockerClient::ApiError => e
|
@@ -108,11 +110,13 @@ end
|
|
108
110
|
Name | Type | Description | Notes
|
109
111
|
------------- | ------------- | ------------- | -------------
|
110
112
|
**digest** | **String**| Filter results where digest matches value | [optional]
|
113
|
+
**digest__in** | **String**| Filter results where digest is in a comma-separated list of values | [optional]
|
111
114
|
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
112
115
|
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
113
116
|
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
114
|
-
**
|
115
|
-
**
|
117
|
+
**media_type** | **String**| | [optional]
|
118
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
119
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
116
120
|
|
117
121
|
### Return type
|
118
122
|
|
@@ -130,11 +134,11 @@ Name | Type | Description | Notes
|
|
130
134
|
|
131
135
|
## read
|
132
136
|
|
133
|
-
> Blob read(
|
137
|
+
> Blob read(blob_href)
|
134
138
|
|
135
|
-
Inspect a
|
139
|
+
Inspect a blob
|
136
140
|
|
137
|
-
ViewSet for
|
141
|
+
ViewSet for Blobs.
|
138
142
|
|
139
143
|
### Example
|
140
144
|
|
@@ -149,11 +153,11 @@ PulpDockerClient.configure do |config|
|
|
149
153
|
end
|
150
154
|
|
151
155
|
api_instance = PulpDockerClient::ContentBlobsApi.new
|
152
|
-
|
156
|
+
blob_href = 'blob_href_example' # String | URI of Blob. e.g.: /pulp/api/v3/content/docker/blobs/1/
|
153
157
|
|
154
158
|
begin
|
155
|
-
#Inspect a
|
156
|
-
result = api_instance.read(
|
159
|
+
#Inspect a blob
|
160
|
+
result = api_instance.read(blob_href)
|
157
161
|
p result
|
158
162
|
rescue PulpDockerClient::ApiError => e
|
159
163
|
puts "Exception when calling ContentBlobsApi->read: #{e}"
|
@@ -165,7 +169,7 @@ end
|
|
165
169
|
|
166
170
|
Name | Type | Description | Notes
|
167
171
|
------------- | ------------- | ------------- | -------------
|
168
|
-
**
|
172
|
+
**blob_href** | **String**| URI of Blob. e.g.: /pulp/api/v3/content/docker/blobs/1/ |
|
169
173
|
|
170
174
|
### Return type
|
171
175
|
|
data/docs/ContentManifestsApi.md
CHANGED
@@ -65,7 +65,7 @@ Name | Type | Description | Notes
|
|
65
65
|
|
66
66
|
## list
|
67
67
|
|
68
|
-
>
|
68
|
+
> InlineResponse2001 list(opts)
|
69
69
|
|
70
70
|
List manifests
|
71
71
|
|
@@ -85,11 +85,14 @@ end
|
|
85
85
|
|
86
86
|
api_instance = PulpDockerClient::ContentManifestsApi.new
|
87
87
|
opts = {
|
88
|
+
digest: 'digest_example', # String | Filter results where digest matches value
|
89
|
+
digest__in: 'digest__in_example', # String | Filter results where digest is in a comma-separated list of values
|
88
90
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
89
91
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
90
92
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
91
|
-
|
92
|
-
|
93
|
+
media_type: 'media_type_example', # String |
|
94
|
+
limit: 56, # Integer | Number of results to return per page.
|
95
|
+
offset: 56 # Integer | The initial index from which to return the results.
|
93
96
|
}
|
94
97
|
|
95
98
|
begin
|
@@ -106,15 +109,18 @@ end
|
|
106
109
|
|
107
110
|
Name | Type | Description | Notes
|
108
111
|
------------- | ------------- | ------------- | -------------
|
112
|
+
**digest** | **String**| Filter results where digest matches value | [optional]
|
113
|
+
**digest__in** | **String**| Filter results where digest is in a comma-separated list of values | [optional]
|
109
114
|
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
110
115
|
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
111
116
|
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
112
|
-
**
|
113
|
-
**
|
117
|
+
**media_type** | **String**| | [optional]
|
118
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
119
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
114
120
|
|
115
121
|
### Return type
|
116
122
|
|
117
|
-
[**
|
123
|
+
[**InlineResponse2001**](InlineResponse2001.md)
|
118
124
|
|
119
125
|
### Authorization
|
120
126
|
|
@@ -1,22 +1,22 @@
|
|
1
|
-
# PulpDockerClient::
|
1
|
+
# PulpDockerClient::ContentTagsApi
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**create**](
|
8
|
-
[**list**](
|
9
|
-
[**read**](
|
7
|
+
[**create**](ContentTagsApi.md#create) | **POST** /pulp/api/v3/content/docker/tags/ | Create a tag
|
8
|
+
[**list**](ContentTagsApi.md#list) | **GET** /pulp/api/v3/content/docker/tags/ | List tags
|
9
|
+
[**read**](ContentTagsApi.md#read) | **GET** {tag_href} | Inspect a tag
|
10
10
|
|
11
11
|
|
12
12
|
|
13
13
|
## create
|
14
14
|
|
15
|
-
>
|
15
|
+
> Tag create(data)
|
16
16
|
|
17
|
-
Create a
|
17
|
+
Create a tag
|
18
18
|
|
19
|
-
Create a new
|
19
|
+
Create a new Tag from a request.
|
20
20
|
|
21
21
|
### Example
|
22
22
|
|
@@ -30,15 +30,15 @@ PulpDockerClient.configure do |config|
|
|
30
30
|
config.password = 'YOUR PASSWORD'
|
31
31
|
end
|
32
32
|
|
33
|
-
api_instance = PulpDockerClient::
|
34
|
-
data = PulpDockerClient::
|
33
|
+
api_instance = PulpDockerClient::ContentTagsApi.new
|
34
|
+
data = PulpDockerClient::Tag.new # Tag |
|
35
35
|
|
36
36
|
begin
|
37
|
-
#Create a
|
37
|
+
#Create a tag
|
38
38
|
result = api_instance.create(data)
|
39
39
|
p result
|
40
40
|
rescue PulpDockerClient::ApiError => e
|
41
|
-
puts "Exception when calling
|
41
|
+
puts "Exception when calling ContentTagsApi->create: #{e}"
|
42
42
|
end
|
43
43
|
```
|
44
44
|
|
@@ -47,11 +47,11 @@ end
|
|
47
47
|
|
48
48
|
Name | Type | Description | Notes
|
49
49
|
------------- | ------------- | ------------- | -------------
|
50
|
-
**data** | [**
|
50
|
+
**data** | [**Tag**](Tag.md)| |
|
51
51
|
|
52
52
|
### Return type
|
53
53
|
|
54
|
-
[**
|
54
|
+
[**Tag**](Tag.md)
|
55
55
|
|
56
56
|
### Authorization
|
57
57
|
|
@@ -65,11 +65,11 @@ Name | Type | Description | Notes
|
|
65
65
|
|
66
66
|
## list
|
67
67
|
|
68
|
-
>
|
68
|
+
> InlineResponse2002 list(opts)
|
69
69
|
|
70
|
-
List
|
70
|
+
List tags
|
71
71
|
|
72
|
-
ViewSet for
|
72
|
+
ViewSet for Tag.
|
73
73
|
|
74
74
|
### Example
|
75
75
|
|
@@ -83,22 +83,25 @@ PulpDockerClient.configure do |config|
|
|
83
83
|
config.password = 'YOUR PASSWORD'
|
84
84
|
end
|
85
85
|
|
86
|
-
api_instance = PulpDockerClient::
|
86
|
+
api_instance = PulpDockerClient::ContentTagsApi.new
|
87
87
|
opts = {
|
88
88
|
name: 'name_example', # String | Filter results where name matches value
|
89
|
+
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
89
90
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
90
91
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
91
92
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
92
|
-
|
93
|
-
|
93
|
+
media_type: 'media_type_example', # String |
|
94
|
+
digest: 'digest_example', # String | Multiple values may be separated by commas.
|
95
|
+
limit: 56, # Integer | Number of results to return per page.
|
96
|
+
offset: 56 # Integer | The initial index from which to return the results.
|
94
97
|
}
|
95
98
|
|
96
99
|
begin
|
97
|
-
#List
|
100
|
+
#List tags
|
98
101
|
result = api_instance.list(opts)
|
99
102
|
p result
|
100
103
|
rescue PulpDockerClient::ApiError => e
|
101
|
-
puts "Exception when calling
|
104
|
+
puts "Exception when calling ContentTagsApi->list: #{e}"
|
102
105
|
end
|
103
106
|
```
|
104
107
|
|
@@ -108,15 +111,18 @@ end
|
|
108
111
|
Name | Type | Description | Notes
|
109
112
|
------------- | ------------- | ------------- | -------------
|
110
113
|
**name** | **String**| Filter results where name matches value | [optional]
|
114
|
+
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
111
115
|
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
112
116
|
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
113
117
|
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
114
|
-
**
|
115
|
-
**
|
118
|
+
**media_type** | **String**| | [optional]
|
119
|
+
**digest** | **String**| Multiple values may be separated by commas. | [optional]
|
120
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
121
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
116
122
|
|
117
123
|
### Return type
|
118
124
|
|
119
|
-
[**
|
125
|
+
[**InlineResponse2002**](InlineResponse2002.md)
|
120
126
|
|
121
127
|
### Authorization
|
122
128
|
|
@@ -130,11 +136,11 @@ Name | Type | Description | Notes
|
|
130
136
|
|
131
137
|
## read
|
132
138
|
|
133
|
-
>
|
139
|
+
> Tag read(tag_href)
|
134
140
|
|
135
|
-
Inspect a
|
141
|
+
Inspect a tag
|
136
142
|
|
137
|
-
ViewSet for
|
143
|
+
ViewSet for Tag.
|
138
144
|
|
139
145
|
### Example
|
140
146
|
|
@@ -148,15 +154,15 @@ PulpDockerClient.configure do |config|
|
|
148
154
|
config.password = 'YOUR PASSWORD'
|
149
155
|
end
|
150
156
|
|
151
|
-
api_instance = PulpDockerClient::
|
152
|
-
|
157
|
+
api_instance = PulpDockerClient::ContentTagsApi.new
|
158
|
+
tag_href = 'tag_href_example' # String | URI of Tag. e.g.: /pulp/api/v3/content/docker/tags/1/
|
153
159
|
|
154
160
|
begin
|
155
|
-
#Inspect a
|
156
|
-
result = api_instance.read(
|
161
|
+
#Inspect a tag
|
162
|
+
result = api_instance.read(tag_href)
|
157
163
|
p result
|
158
164
|
rescue PulpDockerClient::ApiError => e
|
159
|
-
puts "Exception when calling
|
165
|
+
puts "Exception when calling ContentTagsApi->read: #{e}"
|
160
166
|
end
|
161
167
|
```
|
162
168
|
|
@@ -165,11 +171,11 @@ end
|
|
165
171
|
|
166
172
|
Name | Type | Description | Notes
|
167
173
|
------------- | ------------- | ------------- | -------------
|
168
|
-
**
|
174
|
+
**tag_href** | **String**| URI of Tag. e.g.: /pulp/api/v3/content/docker/tags/1/ |
|
169
175
|
|
170
176
|
### Return type
|
171
177
|
|
172
|
-
[**
|
178
|
+
[**Tag**](Tag.md)
|
173
179
|
|
174
180
|
### Authorization
|
175
181
|
|
@@ -147,8 +147,8 @@ opts = {
|
|
147
147
|
base_path__contains: 'base_path__contains_example', # String | Filter results where base_path contains value
|
148
148
|
base_path__icontains: 'base_path__icontains_example', # String | Filter results where base_path contains value
|
149
149
|
base_path__in: 'base_path__in_example', # String | Filter results where base_path is in a comma-separated list of values
|
150
|
-
|
151
|
-
|
150
|
+
limit: 56, # Integer | Number of results to return per page.
|
151
|
+
offset: 56 # Integer | The initial index from which to return the results.
|
152
152
|
}
|
153
153
|
|
154
154
|
begin
|
@@ -171,8 +171,8 @@ Name | Type | Description | Notes
|
|
171
171
|
**base_path__contains** | **String**| Filter results where base_path contains value | [optional]
|
172
172
|
**base_path__icontains** | **String**| Filter results where base_path contains value | [optional]
|
173
173
|
**base_path__in** | **String**| Filter results where base_path is in a comma-separated list of values | [optional]
|
174
|
-
**
|
175
|
-
**
|
174
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
175
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
176
176
|
|
177
177
|
### Return type
|
178
178
|
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# PulpDockerClient::DockerCopyApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](DockerCopyApi.md#create) | **POST** /docker/manifests/copy/ |
|
8
|
+
[**create_0**](DockerCopyApi.md#create_0) | **POST** /docker/tags/copy/ |
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
## create
|
13
|
+
|
14
|
+
> AsyncOperationResponse create(data)
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
Trigger an asynchronous task to copy manifests
|
19
|
+
|
20
|
+
### Example
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
# load the gem
|
24
|
+
require 'pulp_docker_client'
|
25
|
+
# setup authorization
|
26
|
+
PulpDockerClient.configure do |config|
|
27
|
+
# Configure HTTP basic authorization: Basic
|
28
|
+
config.username = 'YOUR USERNAME'
|
29
|
+
config.password = 'YOUR PASSWORD'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = PulpDockerClient::DockerCopyApi.new
|
33
|
+
data = PulpDockerClient::ManifestCopy.new # ManifestCopy |
|
34
|
+
|
35
|
+
begin
|
36
|
+
result = api_instance.create(data)
|
37
|
+
p result
|
38
|
+
rescue PulpDockerClient::ApiError => e
|
39
|
+
puts "Exception when calling DockerCopyApi->create: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
|
46
|
+
Name | Type | Description | Notes
|
47
|
+
------------- | ------------- | ------------- | -------------
|
48
|
+
**data** | [**ManifestCopy**](ManifestCopy.md)| |
|
49
|
+
|
50
|
+
### Return type
|
51
|
+
|
52
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
53
|
+
|
54
|
+
### Authorization
|
55
|
+
|
56
|
+
[Basic](../README.md#Basic)
|
57
|
+
|
58
|
+
### HTTP request headers
|
59
|
+
|
60
|
+
- **Content-Type**: application/json
|
61
|
+
- **Accept**: application/json
|
62
|
+
|
63
|
+
|
64
|
+
## create_0
|
65
|
+
|
66
|
+
> AsyncOperationResponse create_0(data)
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
Trigger an asynchronous task to copy tags
|
71
|
+
|
72
|
+
### Example
|
73
|
+
|
74
|
+
```ruby
|
75
|
+
# load the gem
|
76
|
+
require 'pulp_docker_client'
|
77
|
+
# setup authorization
|
78
|
+
PulpDockerClient.configure do |config|
|
79
|
+
# Configure HTTP basic authorization: Basic
|
80
|
+
config.username = 'YOUR USERNAME'
|
81
|
+
config.password = 'YOUR PASSWORD'
|
82
|
+
end
|
83
|
+
|
84
|
+
api_instance = PulpDockerClient::DockerCopyApi.new
|
85
|
+
data = PulpDockerClient::TagCopy.new # TagCopy |
|
86
|
+
|
87
|
+
begin
|
88
|
+
result = api_instance.create_0(data)
|
89
|
+
p result
|
90
|
+
rescue PulpDockerClient::ApiError => e
|
91
|
+
puts "Exception when calling DockerCopyApi->create_0: #{e}"
|
92
|
+
end
|
93
|
+
```
|
94
|
+
|
95
|
+
### Parameters
|
96
|
+
|
97
|
+
|
98
|
+
Name | Type | Description | Notes
|
99
|
+
------------- | ------------- | ------------- | -------------
|
100
|
+
**data** | [**TagCopy**](TagCopy.md)| |
|
101
|
+
|
102
|
+
### Return type
|
103
|
+
|
104
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
105
|
+
|
106
|
+
### Authorization
|
107
|
+
|
108
|
+
[Basic](../README.md#Basic)
|
109
|
+
|
110
|
+
### HTTP request headers
|
111
|
+
|
112
|
+
- **Content-Type**: application/json
|
113
|
+
- **Accept**: application/json
|
114
|
+
|
data/docs/DockerDistribution.md
CHANGED
@@ -4,13 +4,13 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
8
|
+
**content_guard** | **String** | An optional content-guard. | [optional]
|
9
|
+
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
7
10
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
11
|
+
**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\") |
|
8
12
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
9
|
-
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
10
|
-
**content_guard** | **String** | An optional content-guard. | [optional]
|
11
13
|
**_href** | **String** | | [optional]
|
12
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
13
|
-
**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\") |
|
14
14
|
**registry_path** | **String** | The Registry hostame:port/name/ to use with docker pull command defined by this distribution. | [optional]
|
15
15
|
|
16
16
|
## Code Sample
|
@@ -18,13 +18,13 @@ Name | Type | Description | Notes
|
|
18
18
|
```ruby
|
19
19
|
require 'PulpDockerClient'
|
20
20
|
|
21
|
-
instance = PulpDockerClient::DockerDistribution.new(
|
22
|
-
repository: null,
|
23
|
-
_created: null,
|
21
|
+
instance = PulpDockerClient::DockerDistribution.new(name: null,
|
24
22
|
content_guard: null,
|
25
|
-
|
26
|
-
|
23
|
+
_created: null,
|
24
|
+
repository_version: null,
|
27
25
|
base_path: null,
|
26
|
+
repository: null,
|
27
|
+
_href: null,
|
28
28
|
registry_path: null)
|
29
29
|
```
|
30
30
|
|