pulp_container_client 1.1.0.dev01579023895 → 1.1.0
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 +12 -11
- data/docs/ContainerContainerDistribution.md +11 -11
- data/docs/RepositoriesContainerApi.md +85 -14
- data/lib/pulp_container_client/api/content_blobs_api.rb +1 -1
- data/lib/pulp_container_client/api/content_manifests_api.rb +1 -1
- data/lib/pulp_container_client/api/content_tags_api.rb +1 -1
- data/lib/pulp_container_client/api/distributions_container_api.rb +1 -1
- data/lib/pulp_container_client/api/remotes_container_api.rb +1 -1
- data/lib/pulp_container_client/api/repositories_container_api.rb +95 -1
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +1 -1
- data/lib/pulp_container_client/api_client.rb +1 -1
- data/lib/pulp_container_client/api_error.rb +1 -1
- data/lib/pulp_container_client/configuration.rb +1 -1
- data/lib/pulp_container_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_container_client/models/container_blob.rb +1 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +65 -65
- data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/container_manifest.rb +1 -1
- data/lib/pulp_container_client/models/container_tag.rb +1 -1
- data/lib/pulp_container_client/models/content_summary.rb +1 -1
- 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/manifest_copy.rb +1 -1
- data/lib/pulp_container_client/models/recursive_manage.rb +1 -1
- data/lib/pulp_container_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_container_client/models/repository_version.rb +1 -1
- data/lib/pulp_container_client/models/tag_copy.rb +1 -1
- data/lib/pulp_container_client/models/tag_image.rb +1 -1
- data/lib/pulp_container_client/models/un_tag_image.rb +1 -1
- data/lib/pulp_container_client/version.rb +2 -2
- data/lib/pulp_container_client.rb +1 -1
- data/pulp_container_client.gemspec +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/distributions_container_api_spec.rb +1 -1
- data/spec/api/remotes_container_api_spec.rb +1 -1
- data/spec/api/repositories_container_api_spec.rb +24 -1
- data/spec/api/repositories_container_versions_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/container_blob_spec.rb +1 -1
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_remote_spec.rb +1 -1
- data/spec/models/container_container_repository_spec.rb +1 -1
- data/spec/models/container_manifest_spec.rb +1 -1
- data/spec/models/container_tag_spec.rb +1 -1
- data/spec/models/content_summary_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_response2006_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/manifest_copy_spec.rb +1 -1
- data/spec/models/recursive_manage_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/tag_copy_spec.rb +1 -1
- data/spec/models/tag_image_spec.rb +1 -1
- data/spec/models/un_tag_image_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +37 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bd50b623022ab4e49f48c5ebbe9c2b161e4a7f3050e6c9be3f1ae8cec05454b
|
4
|
+
data.tar.gz: 7223c234d8ace4de2cd7fabef48af52caf009e05ad6a80ba8fd4857620fc60d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d65c87346d897593230912f618c669192e32858959646a93ea4b338dbc64b88667bc22548af822897ef08b0c0b3c80f05825eabcfda32c09a9a942c543a854f
|
7
|
+
data.tar.gz: edf2dd8c8468144b08b00df741ae5fe55f2e984c02cef2ab0c92ef5b4e53b8cfe5ffdfc64b0182ccf975a205ed90b35a58b4dfd9bb95f97dd52a08d5fd3cd14c
|
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: 1.1.0
|
10
|
+
- Package version: 1.1.0
|
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-1.1.0.
|
26
|
+
gem install ./pulp_container_client-1.1.0.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./pulp_container_client-1.1.0.
|
29
|
+
(for development, run `gem install --dev ./pulp_container_client-1.1.0.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', '~> 1.1.0
|
35
|
+
gem 'pulp_container_client', '~> 1.1.0'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -111,18 +111,19 @@ Class | Method | HTTP request | Description
|
|
111
111
|
*PulpContainerClient::RemotesContainerApi* | [**partial_update**](docs/RemotesContainerApi.md#partial_update) | **PATCH** {container_remote_href} | Partially update a container remote
|
112
112
|
*PulpContainerClient::RemotesContainerApi* | [**read**](docs/RemotesContainerApi.md#read) | **GET** {container_remote_href} | Inspect a container remote
|
113
113
|
*PulpContainerClient::RemotesContainerApi* | [**update**](docs/RemotesContainerApi.md#update) | **PUT** {container_remote_href} | Update a container remote
|
114
|
-
*PulpContainerClient::RepositoriesContainerApi* | [**add**](docs/RepositoriesContainerApi.md#add) | **POST** {container_repository_href}add/ |
|
115
|
-
*PulpContainerClient::RepositoriesContainerApi* | [**
|
116
|
-
*PulpContainerClient::RepositoriesContainerApi* | [**
|
114
|
+
*PulpContainerClient::RepositoriesContainerApi* | [**add**](docs/RepositoriesContainerApi.md#add) | **POST** {container_repository_href}add/ | Add content
|
115
|
+
*PulpContainerClient::RepositoriesContainerApi* | [**build_image**](docs/RepositoriesContainerApi.md#build_image) | **POST** {container_repository_href}build_image/ | Build an Image
|
116
|
+
*PulpContainerClient::RepositoriesContainerApi* | [**copy_manifests**](docs/RepositoriesContainerApi.md#copy_manifests) | **POST** {container_repository_href}copy_manifests/ | Copy manifests
|
117
|
+
*PulpContainerClient::RepositoriesContainerApi* | [**copy_tags**](docs/RepositoriesContainerApi.md#copy_tags) | **POST** {container_repository_href}copy_tags/ | Copy tags
|
117
118
|
*PulpContainerClient::RepositoriesContainerApi* | [**create**](docs/RepositoriesContainerApi.md#create) | **POST** /pulp/api/v3/repositories/container/container/ | Create a container repository
|
118
119
|
*PulpContainerClient::RepositoriesContainerApi* | [**delete**](docs/RepositoriesContainerApi.md#delete) | **DELETE** {container_repository_href} | Delete a container repository
|
119
120
|
*PulpContainerClient::RepositoriesContainerApi* | [**list**](docs/RepositoriesContainerApi.md#list) | **GET** /pulp/api/v3/repositories/container/container/ | List container repositorys
|
120
121
|
*PulpContainerClient::RepositoriesContainerApi* | [**partial_update**](docs/RepositoriesContainerApi.md#partial_update) | **PATCH** {container_repository_href} | Partially update a container repository
|
121
122
|
*PulpContainerClient::RepositoriesContainerApi* | [**read**](docs/RepositoriesContainerApi.md#read) | **GET** {container_repository_href} | Inspect a container repository
|
122
|
-
*PulpContainerClient::RepositoriesContainerApi* | [**remove**](docs/RepositoriesContainerApi.md#remove) | **POST** {container_repository_href}remove/ |
|
123
|
-
*PulpContainerClient::RepositoriesContainerApi* | [**sync**](docs/RepositoriesContainerApi.md#sync) | **POST** {container_repository_href}sync/ |
|
124
|
-
*PulpContainerClient::RepositoriesContainerApi* | [**tag**](docs/RepositoriesContainerApi.md#tag) | **POST** {container_repository_href}tag/ |
|
125
|
-
*PulpContainerClient::RepositoriesContainerApi* | [**untag**](docs/RepositoriesContainerApi.md#untag) | **POST** {container_repository_href}untag/ |
|
123
|
+
*PulpContainerClient::RepositoriesContainerApi* | [**remove**](docs/RepositoriesContainerApi.md#remove) | **POST** {container_repository_href}remove/ | Remove content
|
124
|
+
*PulpContainerClient::RepositoriesContainerApi* | [**sync**](docs/RepositoriesContainerApi.md#sync) | **POST** {container_repository_href}sync/ | Sync from a remote
|
125
|
+
*PulpContainerClient::RepositoriesContainerApi* | [**tag**](docs/RepositoriesContainerApi.md#tag) | **POST** {container_repository_href}tag/ | Create a Tag
|
126
|
+
*PulpContainerClient::RepositoriesContainerApi* | [**untag**](docs/RepositoriesContainerApi.md#untag) | **POST** {container_repository_href}untag/ | Delete a tag
|
126
127
|
*PulpContainerClient::RepositoriesContainerApi* | [**update**](docs/RepositoriesContainerApi.md#update) | **PUT** {container_repository_href} | Update a container repository
|
127
128
|
*PulpContainerClient::RepositoriesContainerVersionsApi* | [**delete**](docs/RepositoriesContainerVersionsApi.md#delete) | **DELETE** {container_repository_version_href} | Delete a repository version
|
128
129
|
*PulpContainerClient::RepositoriesContainerVersionsApi* | [**list**](docs/RepositoriesContainerVersionsApi.md#list) | **GET** {container_repository_href}versions/ | List repository versions
|
@@ -4,27 +4,27 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
8
|
-
**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\") |
|
9
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
|
-
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
7
|
+
**content_guard** | **String** | An optional content-guard. | [optional]
|
11
8
|
**pulp_href** | **String** | | [optional] [readonly]
|
9
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
|
+
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
12
11
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
13
|
-
**
|
14
|
-
**
|
12
|
+
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
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
|
+
**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
|
17
17
|
|
18
18
|
```ruby
|
19
19
|
require 'PulpContainerClient'
|
20
20
|
|
21
|
-
instance = PulpContainerClient::ContainerContainerDistribution.new(
|
22
|
-
base_path: null,
|
23
|
-
pulp_created: null,
|
24
|
-
repository: null,
|
21
|
+
instance = PulpContainerClient::ContainerContainerDistribution.new(content_guard: null,
|
25
22
|
pulp_href: null,
|
23
|
+
pulp_created: null,
|
24
|
+
repository_version: null,
|
26
25
|
name: null,
|
27
|
-
|
26
|
+
repository: null,
|
27
|
+
base_path: null,
|
28
28
|
registry_path: null)
|
29
29
|
```
|
30
30
|
|
@@ -4,18 +4,19 @@ All URIs are relative to *http://localhost:24817*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**add**](RepositoriesContainerApi.md#add) | **POST** {container_repository_href}add/ |
|
8
|
-
[**
|
9
|
-
[**
|
7
|
+
[**add**](RepositoriesContainerApi.md#add) | **POST** {container_repository_href}add/ | Add content
|
8
|
+
[**build_image**](RepositoriesContainerApi.md#build_image) | **POST** {container_repository_href}build_image/ | Build an Image
|
9
|
+
[**copy_manifests**](RepositoriesContainerApi.md#copy_manifests) | **POST** {container_repository_href}copy_manifests/ | Copy manifests
|
10
|
+
[**copy_tags**](RepositoriesContainerApi.md#copy_tags) | **POST** {container_repository_href}copy_tags/ | Copy tags
|
10
11
|
[**create**](RepositoriesContainerApi.md#create) | **POST** /pulp/api/v3/repositories/container/container/ | Create a container repository
|
11
12
|
[**delete**](RepositoriesContainerApi.md#delete) | **DELETE** {container_repository_href} | Delete a container repository
|
12
13
|
[**list**](RepositoriesContainerApi.md#list) | **GET** /pulp/api/v3/repositories/container/container/ | List container repositorys
|
13
14
|
[**partial_update**](RepositoriesContainerApi.md#partial_update) | **PATCH** {container_repository_href} | Partially update a container repository
|
14
15
|
[**read**](RepositoriesContainerApi.md#read) | **GET** {container_repository_href} | Inspect a container repository
|
15
|
-
[**remove**](RepositoriesContainerApi.md#remove) | **POST** {container_repository_href}remove/ |
|
16
|
-
[**sync**](RepositoriesContainerApi.md#sync) | **POST** {container_repository_href}sync/ |
|
17
|
-
[**tag**](RepositoriesContainerApi.md#tag) | **POST** {container_repository_href}tag/ |
|
18
|
-
[**untag**](RepositoriesContainerApi.md#untag) | **POST** {container_repository_href}untag/ |
|
16
|
+
[**remove**](RepositoriesContainerApi.md#remove) | **POST** {container_repository_href}remove/ | Remove content
|
17
|
+
[**sync**](RepositoriesContainerApi.md#sync) | **POST** {container_repository_href}sync/ | Sync from a remote
|
18
|
+
[**tag**](RepositoriesContainerApi.md#tag) | **POST** {container_repository_href}tag/ | Create a Tag
|
19
|
+
[**untag**](RepositoriesContainerApi.md#untag) | **POST** {container_repository_href}untag/ | Delete a tag
|
19
20
|
[**update**](RepositoriesContainerApi.md#update) | **PUT** {container_repository_href} | Update a container repository
|
20
21
|
|
21
22
|
|
@@ -24,7 +25,7 @@ Method | HTTP request | Description
|
|
24
25
|
|
25
26
|
> AsyncOperationResponse add(container_repository_href, data)
|
26
27
|
|
27
|
-
|
28
|
+
Add content
|
28
29
|
|
29
30
|
Trigger an asynchronous task to recursively add container content.
|
30
31
|
|
@@ -45,6 +46,7 @@ container_repository_href = 'container_repository_href_example' # String | URI o
|
|
45
46
|
data = PulpContainerClient::RecursiveManage.new # RecursiveManage |
|
46
47
|
|
47
48
|
begin
|
49
|
+
#Add content
|
48
50
|
result = api_instance.add(container_repository_href, data)
|
49
51
|
p result
|
50
52
|
rescue PulpContainerClient::ApiError => e
|
@@ -74,11 +76,74 @@ Name | Type | Description | Notes
|
|
74
76
|
- **Accept**: application/json
|
75
77
|
|
76
78
|
|
79
|
+
## build_image
|
80
|
+
|
81
|
+
> AsyncOperationResponse build_image(container_repository_href, opts)
|
82
|
+
|
83
|
+
Build an Image
|
84
|
+
|
85
|
+
Trigger an asynchronous task to build an OCI image from a Containerfile. A new repository version is created with the new image and tag. This API is tech preview in Pulp Container 1.1. Backwards compatibility when upgrading is not guaranteed.
|
86
|
+
|
87
|
+
### Example
|
88
|
+
|
89
|
+
```ruby
|
90
|
+
# load the gem
|
91
|
+
require 'pulp_container_client'
|
92
|
+
# setup authorization
|
93
|
+
PulpContainerClient.configure do |config|
|
94
|
+
# Configure HTTP basic authorization: Basic
|
95
|
+
config.username = 'YOUR USERNAME'
|
96
|
+
config.password = 'YOUR PASSWORD'
|
97
|
+
end
|
98
|
+
|
99
|
+
api_instance = PulpContainerClient::RepositoriesContainerApi.new
|
100
|
+
container_repository_href = 'container_repository_href_example' # String | URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
101
|
+
opts = {
|
102
|
+
containerfile_artifact: 'containerfile_artifact_example', # String | Artifact representing the Containerfile that should be used to run buildah.
|
103
|
+
containerfile: File.new('/path/to/file'), # File | An uploaded Containerfile that should be used to run buildah.
|
104
|
+
tag: 'latest', # String | A tag name for the new image being built.
|
105
|
+
artifacts: 'artifacts_example' # String | A JSON string where each key is an artifact href and the value is it's relative path (name) inside the /pulp_working_directory of the build container executing the Containerfile.
|
106
|
+
}
|
107
|
+
|
108
|
+
begin
|
109
|
+
#Build an Image
|
110
|
+
result = api_instance.build_image(container_repository_href, opts)
|
111
|
+
p result
|
112
|
+
rescue PulpContainerClient::ApiError => e
|
113
|
+
puts "Exception when calling RepositoriesContainerApi->build_image: #{e}"
|
114
|
+
end
|
115
|
+
```
|
116
|
+
|
117
|
+
### Parameters
|
118
|
+
|
119
|
+
|
120
|
+
Name | Type | Description | Notes
|
121
|
+
------------- | ------------- | ------------- | -------------
|
122
|
+
**container_repository_href** | **String**| URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/ |
|
123
|
+
**containerfile_artifact** | **String**| Artifact representing the Containerfile that should be used to run buildah. | [optional]
|
124
|
+
**containerfile** | **File**| An uploaded Containerfile that should be used to run buildah. | [optional]
|
125
|
+
**tag** | **String**| A tag name for the new image being built. | [optional] [default to 'latest']
|
126
|
+
**artifacts** | **String**| A JSON string where each key is an artifact href and the value is it's relative path (name) inside the /pulp_working_directory of the build container executing the Containerfile. | [optional]
|
127
|
+
|
128
|
+
### Return type
|
129
|
+
|
130
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
131
|
+
|
132
|
+
### Authorization
|
133
|
+
|
134
|
+
[Basic](../README.md#Basic)
|
135
|
+
|
136
|
+
### HTTP request headers
|
137
|
+
|
138
|
+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
|
139
|
+
- **Accept**: application/json
|
140
|
+
|
141
|
+
|
77
142
|
## copy_manifests
|
78
143
|
|
79
144
|
> AsyncOperationResponse copy_manifests(container_repository_href, data)
|
80
145
|
|
81
|
-
|
146
|
+
Copy manifests
|
82
147
|
|
83
148
|
Trigger an asynchronous task to copy manifests
|
84
149
|
|
@@ -99,6 +164,7 @@ container_repository_href = 'container_repository_href_example' # String | URI o
|
|
99
164
|
data = PulpContainerClient::ManifestCopy.new # ManifestCopy |
|
100
165
|
|
101
166
|
begin
|
167
|
+
#Copy manifests
|
102
168
|
result = api_instance.copy_manifests(container_repository_href, data)
|
103
169
|
p result
|
104
170
|
rescue PulpContainerClient::ApiError => e
|
@@ -132,7 +198,7 @@ Name | Type | Description | Notes
|
|
132
198
|
|
133
199
|
> AsyncOperationResponse copy_tags(container_repository_href, data)
|
134
200
|
|
135
|
-
|
201
|
+
Copy tags
|
136
202
|
|
137
203
|
Trigger an asynchronous task to copy tags
|
138
204
|
|
@@ -153,6 +219,7 @@ container_repository_href = 'container_repository_href_example' # String | URI o
|
|
153
219
|
data = PulpContainerClient::TagCopy.new # TagCopy |
|
154
220
|
|
155
221
|
begin
|
222
|
+
#Copy tags
|
156
223
|
result = api_instance.copy_tags(container_repository_href, data)
|
157
224
|
p result
|
158
225
|
rescue PulpContainerClient::ApiError => e
|
@@ -471,7 +538,7 @@ Name | Type | Description | Notes
|
|
471
538
|
|
472
539
|
> AsyncOperationResponse remove(container_repository_href, data)
|
473
540
|
|
474
|
-
|
541
|
+
Remove content
|
475
542
|
|
476
543
|
Trigger an async task to recursively remove container content.
|
477
544
|
|
@@ -492,6 +559,7 @@ container_repository_href = 'container_repository_href_example' # String | URI o
|
|
492
559
|
data = PulpContainerClient::RecursiveManage.new # RecursiveManage |
|
493
560
|
|
494
561
|
begin
|
562
|
+
#Remove content
|
495
563
|
result = api_instance.remove(container_repository_href, data)
|
496
564
|
p result
|
497
565
|
rescue PulpContainerClient::ApiError => e
|
@@ -525,7 +593,7 @@ Name | Type | Description | Notes
|
|
525
593
|
|
526
594
|
> AsyncOperationResponse sync(container_repository_href, data)
|
527
595
|
|
528
|
-
|
596
|
+
Sync from a remote
|
529
597
|
|
530
598
|
Trigger an asynchronous task to sync content.
|
531
599
|
|
@@ -546,6 +614,7 @@ container_repository_href = 'container_repository_href_example' # String | URI o
|
|
546
614
|
data = PulpContainerClient::RepositorySyncURL.new # RepositorySyncURL |
|
547
615
|
|
548
616
|
begin
|
617
|
+
#Sync from a remote
|
549
618
|
result = api_instance.sync(container_repository_href, data)
|
550
619
|
p result
|
551
620
|
rescue PulpContainerClient::ApiError => e
|
@@ -579,7 +648,7 @@ Name | Type | Description | Notes
|
|
579
648
|
|
580
649
|
> AsyncOperationResponse tag(container_repository_href, data)
|
581
650
|
|
582
|
-
|
651
|
+
Create a Tag
|
583
652
|
|
584
653
|
Trigger an asynchronous task to tag an image in the repository
|
585
654
|
|
@@ -600,6 +669,7 @@ container_repository_href = 'container_repository_href_example' # String | URI o
|
|
600
669
|
data = PulpContainerClient::TagImage.new # TagImage |
|
601
670
|
|
602
671
|
begin
|
672
|
+
#Create a Tag
|
603
673
|
result = api_instance.tag(container_repository_href, data)
|
604
674
|
p result
|
605
675
|
rescue PulpContainerClient::ApiError => e
|
@@ -633,7 +703,7 @@ Name | Type | Description | Notes
|
|
633
703
|
|
634
704
|
> AsyncOperationResponse untag(container_repository_href, data)
|
635
705
|
|
636
|
-
|
706
|
+
Delete a tag
|
637
707
|
|
638
708
|
Trigger an asynchronous task to untag an image in the repository
|
639
709
|
|
@@ -654,6 +724,7 @@ container_repository_href = 'container_repository_href_example' # String | URI o
|
|
654
724
|
data = PulpContainerClient::UnTagImage.new # UnTagImage |
|
655
725
|
|
656
726
|
begin
|
727
|
+
#Delete a tag
|
657
728
|
result = api_instance.untag(container_repository_href, data)
|
658
729
|
p result
|
659
730
|
rescue PulpContainerClient::ApiError => e
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,6 +19,7 @@ module PulpContainerClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add content
|
22
23
|
# Trigger an asynchronous task to recursively add container content.
|
23
24
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
24
25
|
# @param data [RecursiveManage]
|
@@ -29,6 +30,7 @@ module PulpContainerClient
|
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
33
|
+
# Add content
|
32
34
|
# Trigger an asynchronous task to recursively add container content.
|
33
35
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
34
36
|
# @param data [RecursiveManage]
|
@@ -87,6 +89,87 @@ module PulpContainerClient
|
|
87
89
|
return data, status_code, headers
|
88
90
|
end
|
89
91
|
|
92
|
+
# Build an Image
|
93
|
+
# Trigger an asynchronous task to build an OCI image from a Containerfile. A new repository version is created with the new image and tag. This API is tech preview in Pulp Container 1.1. Backwards compatibility when upgrading is not guaranteed.
|
94
|
+
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @option opts [String] :containerfile_artifact Artifact representing the Containerfile that should be used to run buildah.
|
97
|
+
# @option opts [File] :containerfile An uploaded Containerfile that should be used to run buildah.
|
98
|
+
# @option opts [String] :tag A tag name for the new image being built. (default to 'latest')
|
99
|
+
# @option opts [String] :artifacts A JSON string where each key is an artifact href and the value is it's relative path (name) inside the /pulp_working_directory of the build container executing the Containerfile.
|
100
|
+
# @return [AsyncOperationResponse]
|
101
|
+
def build_image(container_repository_href, opts = {})
|
102
|
+
data, _status_code, _headers = build_image_with_http_info(container_repository_href, opts)
|
103
|
+
data
|
104
|
+
end
|
105
|
+
|
106
|
+
# Build an Image
|
107
|
+
# Trigger an asynchronous task to build an OCI image from a Containerfile. A new repository version is created with the new image and tag. This API is tech preview in Pulp Container 1.1. Backwards compatibility when upgrading is not guaranteed.
|
108
|
+
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
109
|
+
# @param [Hash] opts the optional parameters
|
110
|
+
# @option opts [String] :containerfile_artifact Artifact representing the Containerfile that should be used to run buildah.
|
111
|
+
# @option opts [File] :containerfile An uploaded Containerfile that should be used to run buildah.
|
112
|
+
# @option opts [String] :tag A tag name for the new image being built.
|
113
|
+
# @option opts [String] :artifacts A JSON string where each key is an artifact href and the value is it's relative path (name) inside the /pulp_working_directory of the build container executing the Containerfile.
|
114
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
115
|
+
def build_image_with_http_info(container_repository_href, opts = {})
|
116
|
+
if @api_client.config.debugging
|
117
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.build_image ...'
|
118
|
+
end
|
119
|
+
# verify the required parameter 'container_repository_href' is set
|
120
|
+
if @api_client.config.client_side_validation && container_repository_href.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'container_repository_href' when calling RepositoriesContainerApi.build_image"
|
122
|
+
end
|
123
|
+
if @api_client.config.client_side_validation && !opts[:'tag'].nil? && opts[:'tag'].to_s.length < 1
|
124
|
+
fail ArgumentError, 'invalid value for "opts[:"tag"]" when calling RepositoriesContainerApi.build_image, the character length must be great than or equal to 1.'
|
125
|
+
end
|
126
|
+
|
127
|
+
# resource path
|
128
|
+
local_var_path = '{container_repository_href}build_image/'.sub('{' + 'container_repository_href' + '}', CGI.escape(container_repository_href.to_s).gsub('%2F', '/'))
|
129
|
+
|
130
|
+
# query parameters
|
131
|
+
query_params = opts[:query_params] || {}
|
132
|
+
|
133
|
+
# header parameters
|
134
|
+
header_params = opts[:header_params] || {}
|
135
|
+
# HTTP header 'Accept' (if needed)
|
136
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
137
|
+
# HTTP header 'Content-Type'
|
138
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
139
|
+
|
140
|
+
# form parameters
|
141
|
+
form_params = opts[:form_params] || {}
|
142
|
+
form_params['containerfile_artifact'] = opts[:'containerfile_artifact'] if !opts[:'containerfile_artifact'].nil?
|
143
|
+
form_params['containerfile'] = opts[:'containerfile'] if !opts[:'containerfile'].nil?
|
144
|
+
form_params['tag'] = opts[:'tag'] if !opts[:'tag'].nil?
|
145
|
+
form_params['artifacts'] = opts[:'artifacts'] if !opts[:'artifacts'].nil?
|
146
|
+
|
147
|
+
# http body (model)
|
148
|
+
post_body = opts[:body]
|
149
|
+
|
150
|
+
# return_type
|
151
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
152
|
+
|
153
|
+
# auth_names
|
154
|
+
auth_names = opts[:auth_names] || ['Basic']
|
155
|
+
|
156
|
+
new_options = opts.merge(
|
157
|
+
:header_params => header_params,
|
158
|
+
:query_params => query_params,
|
159
|
+
:form_params => form_params,
|
160
|
+
:body => post_body,
|
161
|
+
:auth_names => auth_names,
|
162
|
+
:return_type => return_type
|
163
|
+
)
|
164
|
+
|
165
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
166
|
+
if @api_client.config.debugging
|
167
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerApi#build_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
168
|
+
end
|
169
|
+
return data, status_code, headers
|
170
|
+
end
|
171
|
+
|
172
|
+
# Copy manifests
|
90
173
|
# Trigger an asynchronous task to copy manifests
|
91
174
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
92
175
|
# @param data [ManifestCopy]
|
@@ -97,6 +180,7 @@ module PulpContainerClient
|
|
97
180
|
data
|
98
181
|
end
|
99
182
|
|
183
|
+
# Copy manifests
|
100
184
|
# Trigger an asynchronous task to copy manifests
|
101
185
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
102
186
|
# @param data [ManifestCopy]
|
@@ -155,6 +239,7 @@ module PulpContainerClient
|
|
155
239
|
return data, status_code, headers
|
156
240
|
end
|
157
241
|
|
242
|
+
# Copy tags
|
158
243
|
# Trigger an asynchronous task to copy tags
|
159
244
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
160
245
|
# @param data [TagCopy]
|
@@ -165,6 +250,7 @@ module PulpContainerClient
|
|
165
250
|
data
|
166
251
|
end
|
167
252
|
|
253
|
+
# Copy tags
|
168
254
|
# Trigger an asynchronous task to copy tags
|
169
255
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
170
256
|
# @param data [TagCopy]
|
@@ -561,6 +647,7 @@ module PulpContainerClient
|
|
561
647
|
return data, status_code, headers
|
562
648
|
end
|
563
649
|
|
650
|
+
# Remove content
|
564
651
|
# Trigger an async task to recursively remove container content.
|
565
652
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
566
653
|
# @param data [RecursiveManage]
|
@@ -571,6 +658,7 @@ module PulpContainerClient
|
|
571
658
|
data
|
572
659
|
end
|
573
660
|
|
661
|
+
# Remove content
|
574
662
|
# Trigger an async task to recursively remove container content.
|
575
663
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
576
664
|
# @param data [RecursiveManage]
|
@@ -629,6 +717,7 @@ module PulpContainerClient
|
|
629
717
|
return data, status_code, headers
|
630
718
|
end
|
631
719
|
|
720
|
+
# Sync from a remote
|
632
721
|
# Trigger an asynchronous task to sync content.
|
633
722
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
634
723
|
# @param data [RepositorySyncURL]
|
@@ -639,6 +728,7 @@ module PulpContainerClient
|
|
639
728
|
data
|
640
729
|
end
|
641
730
|
|
731
|
+
# Sync from a remote
|
642
732
|
# Trigger an asynchronous task to sync content.
|
643
733
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
644
734
|
# @param data [RepositorySyncURL]
|
@@ -697,6 +787,7 @@ module PulpContainerClient
|
|
697
787
|
return data, status_code, headers
|
698
788
|
end
|
699
789
|
|
790
|
+
# Create a Tag
|
700
791
|
# Trigger an asynchronous task to tag an image in the repository
|
701
792
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
702
793
|
# @param data [TagImage]
|
@@ -707,6 +798,7 @@ module PulpContainerClient
|
|
707
798
|
data
|
708
799
|
end
|
709
800
|
|
801
|
+
# Create a Tag
|
710
802
|
# Trigger an asynchronous task to tag an image in the repository
|
711
803
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
712
804
|
# @param data [TagImage]
|
@@ -765,6 +857,7 @@ module PulpContainerClient
|
|
765
857
|
return data, status_code, headers
|
766
858
|
end
|
767
859
|
|
860
|
+
# Delete a tag
|
768
861
|
# Trigger an asynchronous task to untag an image in the repository
|
769
862
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
770
863
|
# @param data [UnTagImage]
|
@@ -775,6 +868,7 @@ module PulpContainerClient
|
|
775
868
|
data
|
776
869
|
end
|
777
870
|
|
871
|
+
# Delete a tag
|
778
872
|
# Trigger an asynchronous task to untag an image in the repository
|
779
873
|
# @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
|
780
874
|
# @param data [UnTagImage]
|