pulp_container_client 2.0.0b3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +69 -57
- data/docs/{ContainerBlob.md → ContainerBlobResponse.md} +2 -2
- data/docs/ContainerContainerDistribution.md +6 -12
- data/docs/ContainerContainerDistributionResponse.md +31 -0
- data/docs/ContainerContainerPushRepository.md +4 -10
- data/docs/ContainerContainerPushRepositoryResponse.md +29 -0
- data/docs/ContainerContainerRemote.md +8 -12
- data/docs/ContainerContainerRemoteResponse.md +49 -0
- data/docs/ContainerContainerRepository.md +4 -10
- data/docs/ContainerContainerRepositoryResponse.md +29 -0
- data/docs/ContainerContentRedirectContentGuard.md +1 -5
- data/docs/ContainerContentRedirectContentGuardResponse.md +23 -0
- data/docs/{ContainerManifest.md → ContainerManifestResponse.md} +2 -2
- data/docs/{ContainerTag.md → ContainerTagResponse.md} +2 -4
- data/docs/ContentBlobsApi.md +24 -24
- data/docs/ContentManifestsApi.md +24 -24
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/ContentTagsApi.md +26 -26
- data/docs/ContentguardsContentRedirectApi.md +55 -55
- data/docs/DistributionsContainerApi.md +108 -60
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/InlineResponse2006.md +3 -3
- data/docs/InlineResponse2007.md +3 -3
- data/docs/InlineResponse2008.md +3 -3
- data/docs/ManifestCopy.md +1 -1
- data/docs/OCIBuildImage.md +23 -0
- data/docs/PatchedcontainerContainerDistribution.md +25 -0
- data/docs/PatchedcontainerContainerRemote.md +43 -0
- data/docs/PatchedcontainerContainerRepository.md +21 -0
- data/docs/PatchedcontainerContentRedirectContentGuard.md +19 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/RecursiveManage.md +1 -1
- data/docs/RemotesContainerApi.md +125 -65
- data/docs/RepositoriesContainerApi.md +158 -134
- data/docs/RepositoriesContainerPushApi.md +44 -148
- data/docs/RepositoriesContainerVersionsApi.md +190 -126
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/docs/TagCopy.md +1 -1
- data/docs/TokenApi.md +8 -16
- data/lib/pulp_container_client/api/content_blobs_api.rb +38 -34
- data/lib/pulp_container_client/api/content_manifests_api.rb +38 -34
- data/lib/pulp_container_client/api/content_tags_api.rb +41 -37
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +90 -90
- data/lib/pulp_container_client/api/distributions_container_api.rb +153 -90
- data/lib/pulp_container_client/api/remotes_container_api.rb +181 -100
- data/lib/pulp_container_client/api/repositories_container_api.rb +245 -222
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +66 -197
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +278 -188
- data/lib/pulp_container_client/api/token_api.rb +8 -14
- data/lib/pulp_container_client/api_client.rb +2 -2
- data/lib/pulp_container_client/api_error.rb +2 -2
- data/lib/pulp_container_client/configuration.rb +3 -3
- data/lib/pulp_container_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_container_client/models/{container_blob.rb → container_blob_response.rb} +6 -43
- data/lib/pulp_container_client/models/container_container_distribution.rb +29 -110
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +289 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +18 -78
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +271 -0
- data/lib/pulp_container_client/models/container_container_remote.rb +29 -227
- data/lib/pulp_container_client/models/container_container_remote_response.rb +409 -0
- data/lib/pulp_container_client/models/container_container_repository.rb +18 -78
- data/lib/pulp_container_client/models/container_container_repository_response.rb +271 -0
- data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +4 -56
- data/lib/pulp_container_client/models/container_content_redirect_content_guard_response.rb +243 -0
- data/lib/pulp_container_client/models/{container_manifest.rb → container_manifest_response.rb} +6 -43
- data/lib/pulp_container_client/models/{container_tag.rb → container_tag_response.rb} +7 -40
- data/lib/pulp_container_client/models/content_summary.rb +9 -15
- data/lib/pulp_container_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_container_client/models/inline_response200.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2006.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2007.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2008.rb +3 -13
- data/lib/pulp_container_client/models/manifest_copy.rb +4 -3
- data/lib/pulp_container_client/models/oci_build_image.rb +240 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +250 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +365 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +229 -0
- data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +219 -0
- data/lib/pulp_container_client/models/policy_enum.rb +37 -0
- data/lib/pulp_container_client/models/recursive_manage.rb +4 -3
- data/lib/pulp_container_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_container_client/models/repository_version.rb +7 -43
- data/lib/pulp_container_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_container_client/models/tag_copy.rb +4 -3
- data/lib/pulp_container_client/models/tag_image.rb +3 -40
- data/lib/pulp_container_client/models/un_tag_image.rb +3 -21
- data/lib/pulp_container_client/version.rb +3 -3
- data/lib/pulp_container_client.rb +18 -5
- data/pulp_container_client.gemspec +4 -4
- data/spec/api/content_blobs_api_spec.rb +11 -11
- data/spec/api/content_manifests_api_spec.rb +11 -11
- data/spec/api/content_tags_api_spec.rb +12 -12
- data/spec/api/contentguards_content_redirect_api_spec.rb +17 -17
- data/spec/api/distributions_container_api_spec.rb +39 -18
- data/spec/api/remotes_container_api_spec.rb +48 -21
- data/spec/api/repositories_container_api_spec.rb +41 -32
- data/spec/api/repositories_container_push_api_spec.rb +17 -40
- data/spec/api/repositories_container_versions_api_spec.rb +76 -46
- data/spec/api/token_api_spec.rb +4 -6
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/{container_blob_spec.rb → container_blob_response_spec.rb} +8 -8
- data/spec/models/container_container_distribution_response_spec.rb +83 -0
- data/spec/models/container_container_distribution_spec.rb +5 -23
- data/spec/models/container_container_push_repository_response_spec.rb +77 -0
- data/spec/models/container_container_push_repository_spec.rb +5 -23
- data/spec/models/container_container_remote_response_spec.rb +137 -0
- data/spec/models/container_container_remote_spec.rb +7 -23
- data/spec/models/container_container_repository_response_spec.rb +77 -0
- data/spec/models/container_container_repository_spec.rb +5 -23
- data/spec/models/container_content_redirect_content_guard_response_spec.rb +59 -0
- data/spec/models/container_content_redirect_content_guard_spec.rb +2 -14
- data/spec/models/{container_manifest_spec.rb → container_manifest_response_spec.rb} +8 -8
- data/spec/models/{container_tag_spec.rb → container_tag_response_spec.rb} +8 -14
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response2006_spec.rb +2 -2
- data/spec/models/inline_response2007_spec.rb +2 -2
- data/spec/models/inline_response2008_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/manifest_copy_spec.rb +2 -2
- data/spec/models/oci_build_image_spec.rb +59 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +65 -0
- data/spec/models/patchedcontainer_container_remote_spec.rb +119 -0
- data/spec/models/patchedcontainer_container_repository_spec.rb +53 -0
- data/spec/models/patchedcontainer_content_redirect_content_guard_spec.rb +47 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/recursive_manage_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/models/tag_copy_spec.rb +2 -2
- data/spec/models/tag_image_spec.rb +2 -2
- data/spec/models/un_tag_image_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +93 -41
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -21,35 +21,35 @@ module PulpContainerClient
|
|
21
21
|
end
|
22
22
|
# Add content
|
23
23
|
# Trigger an asynchronous task to recursively add container content.
|
24
|
-
# @param
|
25
|
-
# @param
|
24
|
+
# @param container_container_repository_href [String]
|
25
|
+
# @param recursive_manage [RecursiveManage]
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [AsyncOperationResponse]
|
28
|
-
def add(
|
29
|
-
data, _status_code, _headers = add_with_http_info(
|
28
|
+
def add(container_container_repository_href, recursive_manage, opts = {})
|
29
|
+
data, _status_code, _headers = add_with_http_info(container_container_repository_href, recursive_manage, opts)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
33
|
# Add content
|
34
34
|
# Trigger an asynchronous task to recursively add container content.
|
35
|
-
# @param
|
36
|
-
# @param
|
35
|
+
# @param container_container_repository_href [String]
|
36
|
+
# @param recursive_manage [RecursiveManage]
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
39
|
-
def add_with_http_info(
|
39
|
+
def add_with_http_info(container_container_repository_href, recursive_manage, opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.add ...'
|
42
42
|
end
|
43
|
-
# verify the required parameter '
|
44
|
-
if @api_client.config.client_side_validation &&
|
45
|
-
fail ArgumentError, "Missing the required parameter '
|
43
|
+
# verify the required parameter 'container_container_repository_href' is set
|
44
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.add"
|
46
46
|
end
|
47
|
-
# verify the required parameter '
|
48
|
-
if @api_client.config.client_side_validation &&
|
49
|
-
fail ArgumentError, "Missing the required parameter '
|
47
|
+
# verify the required parameter 'recursive_manage' is set
|
48
|
+
if @api_client.config.client_side_validation && recursive_manage.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'recursive_manage' when calling RepositoriesContainerApi.add"
|
50
50
|
end
|
51
51
|
# resource path
|
52
|
-
local_var_path = '{
|
52
|
+
local_var_path = '{container_container_repository_href}add/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
53
53
|
|
54
54
|
# query parameters
|
55
55
|
query_params = opts[:query_params] || {}
|
@@ -59,19 +59,19 @@ module PulpContainerClient
|
|
59
59
|
# HTTP header 'Accept' (if needed)
|
60
60
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
61
|
# HTTP header 'Content-Type'
|
62
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
63
63
|
|
64
64
|
# form parameters
|
65
65
|
form_params = opts[:form_params] || {}
|
66
66
|
|
67
67
|
# http body (model)
|
68
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
68
|
+
post_body = opts[:body] || @api_client.object_to_http_body(recursive_manage)
|
69
69
|
|
70
70
|
# return_type
|
71
71
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
72
72
|
|
73
73
|
# auth_names
|
74
|
-
auth_names = opts[:auth_names] || ['
|
74
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
75
75
|
|
76
76
|
new_options = opts.merge(
|
77
77
|
:header_params => header_params,
|
@@ -91,41 +91,37 @@ module PulpContainerClient
|
|
91
91
|
|
92
92
|
# Build an Image
|
93
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
|
94
|
+
# @param container_container_repository_href [String]
|
95
95
|
# @param [Hash] opts the optional parameters
|
96
96
|
# @option opts [String] :containerfile_artifact Artifact representing the Containerfile that should be used to run buildah.
|
97
97
|
# @option opts [File] :containerfile An uploaded Containerfile that should be used to run buildah.
|
98
98
|
# @option opts [String] :tag A tag name for the new image being built. (default to 'latest')
|
99
|
-
# @option opts [
|
99
|
+
# @option opts [Object] :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
100
|
# @return [AsyncOperationResponse]
|
101
|
-
def build_image(
|
102
|
-
data, _status_code, _headers = build_image_with_http_info(
|
101
|
+
def build_image(container_container_repository_href, opts = {})
|
102
|
+
data, _status_code, _headers = build_image_with_http_info(container_container_repository_href, opts)
|
103
103
|
data
|
104
104
|
end
|
105
105
|
|
106
106
|
# Build an Image
|
107
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
|
108
|
+
# @param container_container_repository_href [String]
|
109
109
|
# @param [Hash] opts the optional parameters
|
110
110
|
# @option opts [String] :containerfile_artifact Artifact representing the Containerfile that should be used to run buildah.
|
111
111
|
# @option opts [File] :containerfile An uploaded Containerfile that should be used to run buildah.
|
112
112
|
# @option opts [String] :tag A tag name for the new image being built.
|
113
|
-
# @option opts [
|
113
|
+
# @option opts [Object] :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
114
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
115
|
-
def build_image_with_http_info(
|
115
|
+
def build_image_with_http_info(container_container_repository_href, opts = {})
|
116
116
|
if @api_client.config.debugging
|
117
117
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.build_image ...'
|
118
118
|
end
|
119
|
-
# verify the required parameter '
|
120
|
-
if @api_client.config.client_side_validation &&
|
121
|
-
fail ArgumentError, "Missing the required parameter '
|
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.'
|
119
|
+
# verify the required parameter 'container_container_repository_href' is set
|
120
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.build_image"
|
125
122
|
end
|
126
|
-
|
127
123
|
# resource path
|
128
|
-
local_var_path = '{
|
124
|
+
local_var_path = '{container_container_repository_href}build_image/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
129
125
|
|
130
126
|
# query parameters
|
131
127
|
query_params = opts[:query_params] || {}
|
@@ -151,7 +147,7 @@ module PulpContainerClient
|
|
151
147
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
152
148
|
|
153
149
|
# auth_names
|
154
|
-
auth_names = opts[:auth_names] || ['
|
150
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
155
151
|
|
156
152
|
new_options = opts.merge(
|
157
153
|
:header_params => header_params,
|
@@ -171,35 +167,35 @@ module PulpContainerClient
|
|
171
167
|
|
172
168
|
# Copy manifests
|
173
169
|
# Trigger an asynchronous task to copy manifests
|
174
|
-
# @param
|
175
|
-
# @param
|
170
|
+
# @param container_container_repository_href [String]
|
171
|
+
# @param manifest_copy [ManifestCopy]
|
176
172
|
# @param [Hash] opts the optional parameters
|
177
173
|
# @return [AsyncOperationResponse]
|
178
|
-
def copy_manifests(
|
179
|
-
data, _status_code, _headers = copy_manifests_with_http_info(
|
174
|
+
def copy_manifests(container_container_repository_href, manifest_copy, opts = {})
|
175
|
+
data, _status_code, _headers = copy_manifests_with_http_info(container_container_repository_href, manifest_copy, opts)
|
180
176
|
data
|
181
177
|
end
|
182
178
|
|
183
179
|
# Copy manifests
|
184
180
|
# Trigger an asynchronous task to copy manifests
|
185
|
-
# @param
|
186
|
-
# @param
|
181
|
+
# @param container_container_repository_href [String]
|
182
|
+
# @param manifest_copy [ManifestCopy]
|
187
183
|
# @param [Hash] opts the optional parameters
|
188
184
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
189
|
-
def copy_manifests_with_http_info(
|
185
|
+
def copy_manifests_with_http_info(container_container_repository_href, manifest_copy, opts = {})
|
190
186
|
if @api_client.config.debugging
|
191
187
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.copy_manifests ...'
|
192
188
|
end
|
193
|
-
# verify the required parameter '
|
194
|
-
if @api_client.config.client_side_validation &&
|
195
|
-
fail ArgumentError, "Missing the required parameter '
|
189
|
+
# verify the required parameter 'container_container_repository_href' is set
|
190
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
191
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.copy_manifests"
|
196
192
|
end
|
197
|
-
# verify the required parameter '
|
198
|
-
if @api_client.config.client_side_validation &&
|
199
|
-
fail ArgumentError, "Missing the required parameter '
|
193
|
+
# verify the required parameter 'manifest_copy' is set
|
194
|
+
if @api_client.config.client_side_validation && manifest_copy.nil?
|
195
|
+
fail ArgumentError, "Missing the required parameter 'manifest_copy' when calling RepositoriesContainerApi.copy_manifests"
|
200
196
|
end
|
201
197
|
# resource path
|
202
|
-
local_var_path = '{
|
198
|
+
local_var_path = '{container_container_repository_href}copy_manifests/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
203
199
|
|
204
200
|
# query parameters
|
205
201
|
query_params = opts[:query_params] || {}
|
@@ -209,19 +205,19 @@ module PulpContainerClient
|
|
209
205
|
# HTTP header 'Accept' (if needed)
|
210
206
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
211
207
|
# HTTP header 'Content-Type'
|
212
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
208
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
213
209
|
|
214
210
|
# form parameters
|
215
211
|
form_params = opts[:form_params] || {}
|
216
212
|
|
217
213
|
# http body (model)
|
218
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
214
|
+
post_body = opts[:body] || @api_client.object_to_http_body(manifest_copy)
|
219
215
|
|
220
216
|
# return_type
|
221
217
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
222
218
|
|
223
219
|
# auth_names
|
224
|
-
auth_names = opts[:auth_names] || ['
|
220
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
225
221
|
|
226
222
|
new_options = opts.merge(
|
227
223
|
:header_params => header_params,
|
@@ -241,35 +237,35 @@ module PulpContainerClient
|
|
241
237
|
|
242
238
|
# Copy tags
|
243
239
|
# Trigger an asynchronous task to copy tags
|
244
|
-
# @param
|
245
|
-
# @param
|
240
|
+
# @param container_container_repository_href [String]
|
241
|
+
# @param tag_copy [TagCopy]
|
246
242
|
# @param [Hash] opts the optional parameters
|
247
243
|
# @return [AsyncOperationResponse]
|
248
|
-
def copy_tags(
|
249
|
-
data, _status_code, _headers = copy_tags_with_http_info(
|
244
|
+
def copy_tags(container_container_repository_href, tag_copy, opts = {})
|
245
|
+
data, _status_code, _headers = copy_tags_with_http_info(container_container_repository_href, tag_copy, opts)
|
250
246
|
data
|
251
247
|
end
|
252
248
|
|
253
249
|
# Copy tags
|
254
250
|
# Trigger an asynchronous task to copy tags
|
255
|
-
# @param
|
256
|
-
# @param
|
251
|
+
# @param container_container_repository_href [String]
|
252
|
+
# @param tag_copy [TagCopy]
|
257
253
|
# @param [Hash] opts the optional parameters
|
258
254
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
259
|
-
def copy_tags_with_http_info(
|
255
|
+
def copy_tags_with_http_info(container_container_repository_href, tag_copy, opts = {})
|
260
256
|
if @api_client.config.debugging
|
261
257
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.copy_tags ...'
|
262
258
|
end
|
263
|
-
# verify the required parameter '
|
264
|
-
if @api_client.config.client_side_validation &&
|
265
|
-
fail ArgumentError, "Missing the required parameter '
|
259
|
+
# verify the required parameter 'container_container_repository_href' is set
|
260
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
261
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.copy_tags"
|
266
262
|
end
|
267
|
-
# verify the required parameter '
|
268
|
-
if @api_client.config.client_side_validation &&
|
269
|
-
fail ArgumentError, "Missing the required parameter '
|
263
|
+
# verify the required parameter 'tag_copy' is set
|
264
|
+
if @api_client.config.client_side_validation && tag_copy.nil?
|
265
|
+
fail ArgumentError, "Missing the required parameter 'tag_copy' when calling RepositoriesContainerApi.copy_tags"
|
270
266
|
end
|
271
267
|
# resource path
|
272
|
-
local_var_path = '{
|
268
|
+
local_var_path = '{container_container_repository_href}copy_tags/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
273
269
|
|
274
270
|
# query parameters
|
275
271
|
query_params = opts[:query_params] || {}
|
@@ -279,19 +275,19 @@ module PulpContainerClient
|
|
279
275
|
# HTTP header 'Accept' (if needed)
|
280
276
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
281
277
|
# HTTP header 'Content-Type'
|
282
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
278
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
283
279
|
|
284
280
|
# form parameters
|
285
281
|
form_params = opts[:form_params] || {}
|
286
282
|
|
287
283
|
# http body (model)
|
288
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
284
|
+
post_body = opts[:body] || @api_client.object_to_http_body(tag_copy)
|
289
285
|
|
290
286
|
# return_type
|
291
287
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
292
288
|
|
293
289
|
# auth_names
|
294
|
-
auth_names = opts[:auth_names] || ['
|
290
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
295
291
|
|
296
292
|
new_options = opts.merge(
|
297
293
|
:header_params => header_params,
|
@@ -311,26 +307,26 @@ module PulpContainerClient
|
|
311
307
|
|
312
308
|
# Create a container repository
|
313
309
|
# ViewSet for container repo.
|
314
|
-
# @param
|
310
|
+
# @param container_container_repository [ContainerContainerRepository]
|
315
311
|
# @param [Hash] opts the optional parameters
|
316
|
-
# @return [
|
317
|
-
def create(
|
318
|
-
data, _status_code, _headers = create_with_http_info(
|
312
|
+
# @return [ContainerContainerRepositoryResponse]
|
313
|
+
def create(container_container_repository, opts = {})
|
314
|
+
data, _status_code, _headers = create_with_http_info(container_container_repository, opts)
|
319
315
|
data
|
320
316
|
end
|
321
317
|
|
322
318
|
# Create a container repository
|
323
319
|
# ViewSet for container repo.
|
324
|
-
# @param
|
320
|
+
# @param container_container_repository [ContainerContainerRepository]
|
325
321
|
# @param [Hash] opts the optional parameters
|
326
|
-
# @return [Array<(
|
327
|
-
def create_with_http_info(
|
322
|
+
# @return [Array<(ContainerContainerRepositoryResponse, Integer, Hash)>] ContainerContainerRepositoryResponse data, response status code and response headers
|
323
|
+
def create_with_http_info(container_container_repository, opts = {})
|
328
324
|
if @api_client.config.debugging
|
329
325
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.create ...'
|
330
326
|
end
|
331
|
-
# verify the required parameter '
|
332
|
-
if @api_client.config.client_side_validation &&
|
333
|
-
fail ArgumentError, "Missing the required parameter '
|
327
|
+
# verify the required parameter 'container_container_repository' is set
|
328
|
+
if @api_client.config.client_side_validation && container_container_repository.nil?
|
329
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository' when calling RepositoriesContainerApi.create"
|
334
330
|
end
|
335
331
|
# resource path
|
336
332
|
local_var_path = '/pulp/api/v3/repositories/container/container/'
|
@@ -343,19 +339,19 @@ module PulpContainerClient
|
|
343
339
|
# HTTP header 'Accept' (if needed)
|
344
340
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
345
341
|
# HTTP header 'Content-Type'
|
346
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
342
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
347
343
|
|
348
344
|
# form parameters
|
349
345
|
form_params = opts[:form_params] || {}
|
350
346
|
|
351
347
|
# http body (model)
|
352
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
348
|
+
post_body = opts[:body] || @api_client.object_to_http_body(container_container_repository)
|
353
349
|
|
354
350
|
# return_type
|
355
|
-
return_type = opts[:return_type] || '
|
351
|
+
return_type = opts[:return_type] || 'ContainerContainerRepositoryResponse'
|
356
352
|
|
357
353
|
# auth_names
|
358
|
-
auth_names = opts[:auth_names] || ['
|
354
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
359
355
|
|
360
356
|
new_options = opts.merge(
|
361
357
|
:header_params => header_params,
|
@@ -375,32 +371,41 @@ module PulpContainerClient
|
|
375
371
|
|
376
372
|
# Delete a container repository
|
377
373
|
# Trigger an asynchronous delete task
|
378
|
-
# @param
|
374
|
+
# @param container_container_repository_href [String]
|
379
375
|
# @param [Hash] opts the optional parameters
|
376
|
+
# @option opts [String] :name name
|
377
|
+
# @option opts [String] :name__in name__in
|
378
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
380
379
|
# @return [AsyncOperationResponse]
|
381
|
-
def delete(
|
382
|
-
data, _status_code, _headers = delete_with_http_info(
|
380
|
+
def delete(container_container_repository_href, opts = {})
|
381
|
+
data, _status_code, _headers = delete_with_http_info(container_container_repository_href, opts)
|
383
382
|
data
|
384
383
|
end
|
385
384
|
|
386
385
|
# Delete a container repository
|
387
386
|
# Trigger an asynchronous delete task
|
388
|
-
# @param
|
387
|
+
# @param container_container_repository_href [String]
|
389
388
|
# @param [Hash] opts the optional parameters
|
389
|
+
# @option opts [String] :name name
|
390
|
+
# @option opts [String] :name__in name__in
|
391
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
390
392
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
391
|
-
def delete_with_http_info(
|
393
|
+
def delete_with_http_info(container_container_repository_href, opts = {})
|
392
394
|
if @api_client.config.debugging
|
393
395
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.delete ...'
|
394
396
|
end
|
395
|
-
# verify the required parameter '
|
396
|
-
if @api_client.config.client_side_validation &&
|
397
|
-
fail ArgumentError, "Missing the required parameter '
|
397
|
+
# verify the required parameter 'container_container_repository_href' is set
|
398
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
399
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.delete"
|
398
400
|
end
|
399
401
|
# resource path
|
400
|
-
local_var_path = '{
|
402
|
+
local_var_path = '{container_container_repository_href}'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
401
403
|
|
402
404
|
# query parameters
|
403
405
|
query_params = opts[:query_params] || {}
|
406
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
407
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
408
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
404
409
|
|
405
410
|
# header parameters
|
406
411
|
header_params = opts[:header_params] || {}
|
@@ -417,7 +422,7 @@ module PulpContainerClient
|
|
417
422
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
418
423
|
|
419
424
|
# auth_names
|
420
|
-
auth_names = opts[:auth_names] || ['
|
425
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
421
426
|
|
422
427
|
new_options = opts.merge(
|
423
428
|
:header_params => header_params,
|
@@ -438,14 +443,14 @@ module PulpContainerClient
|
|
438
443
|
# List container repositorys
|
439
444
|
# ViewSet for container repo.
|
440
445
|
# @param [Hash] opts the optional parameters
|
441
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
442
|
-
# @option opts [String] :name
|
443
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
444
446
|
# @option opts [Integer] :limit Number of results to return per page.
|
447
|
+
# @option opts [String] :name name
|
448
|
+
# @option opts [String] :name__in name__in
|
445
449
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
450
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
446
451
|
# @option opts [String] :fields A list of fields to include in the response.
|
447
452
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
448
|
-
# @return [
|
453
|
+
# @return [InlineResponse2006]
|
449
454
|
def list(opts = {})
|
450
455
|
data, _status_code, _headers = list_with_http_info(opts)
|
451
456
|
data
|
@@ -454,14 +459,14 @@ module PulpContainerClient
|
|
454
459
|
# List container repositorys
|
455
460
|
# ViewSet for container repo.
|
456
461
|
# @param [Hash] opts the optional parameters
|
457
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
458
|
-
# @option opts [String] :name
|
459
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
460
462
|
# @option opts [Integer] :limit Number of results to return per page.
|
463
|
+
# @option opts [String] :name name
|
464
|
+
# @option opts [String] :name__in name__in
|
461
465
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
466
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
462
467
|
# @option opts [String] :fields A list of fields to include in the response.
|
463
468
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
464
|
-
# @return [Array<(
|
469
|
+
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
|
465
470
|
def list_with_http_info(opts = {})
|
466
471
|
if @api_client.config.debugging
|
467
472
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.list ...'
|
@@ -471,11 +476,11 @@ module PulpContainerClient
|
|
471
476
|
|
472
477
|
# query parameters
|
473
478
|
query_params = opts[:query_params] || {}
|
474
|
-
query_params[:'
|
479
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
475
480
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
476
481
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
477
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
478
482
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
483
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
479
484
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
480
485
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
481
486
|
|
@@ -491,10 +496,10 @@ module PulpContainerClient
|
|
491
496
|
post_body = opts[:body]
|
492
497
|
|
493
498
|
# return_type
|
494
|
-
return_type = opts[:return_type] || '
|
499
|
+
return_type = opts[:return_type] || 'InlineResponse2006'
|
495
500
|
|
496
501
|
# auth_names
|
497
|
-
auth_names = opts[:auth_names] || ['
|
502
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
498
503
|
|
499
504
|
new_options = opts.merge(
|
500
505
|
:header_params => header_params,
|
@@ -512,59 +517,68 @@ module PulpContainerClient
|
|
512
517
|
return data, status_code, headers
|
513
518
|
end
|
514
519
|
|
515
|
-
#
|
520
|
+
# Update a container repository
|
516
521
|
# Trigger an asynchronous partial update task
|
517
|
-
# @param
|
518
|
-
# @param
|
522
|
+
# @param container_container_repository_href [String]
|
523
|
+
# @param patchedcontainer_container_repository [PatchedcontainerContainerRepository]
|
519
524
|
# @param [Hash] opts the optional parameters
|
525
|
+
# @option opts [String] :name name
|
526
|
+
# @option opts [String] :name__in name__in
|
527
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
520
528
|
# @return [AsyncOperationResponse]
|
521
|
-
def partial_update(
|
522
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
529
|
+
def partial_update(container_container_repository_href, patchedcontainer_container_repository, opts = {})
|
530
|
+
data, _status_code, _headers = partial_update_with_http_info(container_container_repository_href, patchedcontainer_container_repository, opts)
|
523
531
|
data
|
524
532
|
end
|
525
533
|
|
526
|
-
#
|
534
|
+
# Update a container repository
|
527
535
|
# Trigger an asynchronous partial update task
|
528
|
-
# @param
|
529
|
-
# @param
|
536
|
+
# @param container_container_repository_href [String]
|
537
|
+
# @param patchedcontainer_container_repository [PatchedcontainerContainerRepository]
|
530
538
|
# @param [Hash] opts the optional parameters
|
539
|
+
# @option opts [String] :name name
|
540
|
+
# @option opts [String] :name__in name__in
|
541
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
531
542
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
532
|
-
def partial_update_with_http_info(
|
543
|
+
def partial_update_with_http_info(container_container_repository_href, patchedcontainer_container_repository, opts = {})
|
533
544
|
if @api_client.config.debugging
|
534
545
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.partial_update ...'
|
535
546
|
end
|
536
|
-
# verify the required parameter '
|
537
|
-
if @api_client.config.client_side_validation &&
|
538
|
-
fail ArgumentError, "Missing the required parameter '
|
547
|
+
# verify the required parameter 'container_container_repository_href' is set
|
548
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
549
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.partial_update"
|
539
550
|
end
|
540
|
-
# verify the required parameter '
|
541
|
-
if @api_client.config.client_side_validation &&
|
542
|
-
fail ArgumentError, "Missing the required parameter '
|
551
|
+
# verify the required parameter 'patchedcontainer_container_repository' is set
|
552
|
+
if @api_client.config.client_side_validation && patchedcontainer_container_repository.nil?
|
553
|
+
fail ArgumentError, "Missing the required parameter 'patchedcontainer_container_repository' when calling RepositoriesContainerApi.partial_update"
|
543
554
|
end
|
544
555
|
# resource path
|
545
|
-
local_var_path = '{
|
556
|
+
local_var_path = '{container_container_repository_href}'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
546
557
|
|
547
558
|
# query parameters
|
548
559
|
query_params = opts[:query_params] || {}
|
560
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
561
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
562
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
549
563
|
|
550
564
|
# header parameters
|
551
565
|
header_params = opts[:header_params] || {}
|
552
566
|
# HTTP header 'Accept' (if needed)
|
553
567
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
554
568
|
# HTTP header 'Content-Type'
|
555
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
569
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
556
570
|
|
557
571
|
# form parameters
|
558
572
|
form_params = opts[:form_params] || {}
|
559
573
|
|
560
574
|
# http body (model)
|
561
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
575
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patchedcontainer_container_repository)
|
562
576
|
|
563
577
|
# return_type
|
564
578
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
565
579
|
|
566
580
|
# auth_names
|
567
|
-
auth_names = opts[:auth_names] || ['
|
581
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
568
582
|
|
569
583
|
new_options = opts.merge(
|
570
584
|
:header_params => header_params,
|
@@ -584,33 +598,33 @@ module PulpContainerClient
|
|
584
598
|
|
585
599
|
# Inspect a container repository
|
586
600
|
# ViewSet for container repo.
|
587
|
-
# @param
|
601
|
+
# @param container_container_repository_href [String]
|
588
602
|
# @param [Hash] opts the optional parameters
|
589
603
|
# @option opts [String] :fields A list of fields to include in the response.
|
590
604
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
591
|
-
# @return [
|
592
|
-
def read(
|
593
|
-
data, _status_code, _headers = read_with_http_info(
|
605
|
+
# @return [ContainerContainerRepositoryResponse]
|
606
|
+
def read(container_container_repository_href, opts = {})
|
607
|
+
data, _status_code, _headers = read_with_http_info(container_container_repository_href, opts)
|
594
608
|
data
|
595
609
|
end
|
596
610
|
|
597
611
|
# Inspect a container repository
|
598
612
|
# ViewSet for container repo.
|
599
|
-
# @param
|
613
|
+
# @param container_container_repository_href [String]
|
600
614
|
# @param [Hash] opts the optional parameters
|
601
615
|
# @option opts [String] :fields A list of fields to include in the response.
|
602
616
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
603
|
-
# @return [Array<(
|
604
|
-
def read_with_http_info(
|
617
|
+
# @return [Array<(ContainerContainerRepositoryResponse, Integer, Hash)>] ContainerContainerRepositoryResponse data, response status code and response headers
|
618
|
+
def read_with_http_info(container_container_repository_href, opts = {})
|
605
619
|
if @api_client.config.debugging
|
606
620
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.read ...'
|
607
621
|
end
|
608
|
-
# verify the required parameter '
|
609
|
-
if @api_client.config.client_side_validation &&
|
610
|
-
fail ArgumentError, "Missing the required parameter '
|
622
|
+
# verify the required parameter 'container_container_repository_href' is set
|
623
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
624
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.read"
|
611
625
|
end
|
612
626
|
# resource path
|
613
|
-
local_var_path = '{
|
627
|
+
local_var_path = '{container_container_repository_href}'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
614
628
|
|
615
629
|
# query parameters
|
616
630
|
query_params = opts[:query_params] || {}
|
@@ -629,10 +643,10 @@ module PulpContainerClient
|
|
629
643
|
post_body = opts[:body]
|
630
644
|
|
631
645
|
# return_type
|
632
|
-
return_type = opts[:return_type] || '
|
646
|
+
return_type = opts[:return_type] || 'ContainerContainerRepositoryResponse'
|
633
647
|
|
634
648
|
# auth_names
|
635
|
-
auth_names = opts[:auth_names] || ['
|
649
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
636
650
|
|
637
651
|
new_options = opts.merge(
|
638
652
|
:header_params => header_params,
|
@@ -652,35 +666,35 @@ module PulpContainerClient
|
|
652
666
|
|
653
667
|
# Remove content
|
654
668
|
# Trigger an async task to recursively remove container content.
|
655
|
-
# @param
|
656
|
-
# @param
|
669
|
+
# @param container_container_repository_href [String]
|
670
|
+
# @param recursive_manage [RecursiveManage]
|
657
671
|
# @param [Hash] opts the optional parameters
|
658
672
|
# @return [AsyncOperationResponse]
|
659
|
-
def remove(
|
660
|
-
data, _status_code, _headers = remove_with_http_info(
|
673
|
+
def remove(container_container_repository_href, recursive_manage, opts = {})
|
674
|
+
data, _status_code, _headers = remove_with_http_info(container_container_repository_href, recursive_manage, opts)
|
661
675
|
data
|
662
676
|
end
|
663
677
|
|
664
678
|
# Remove content
|
665
679
|
# Trigger an async task to recursively remove container content.
|
666
|
-
# @param
|
667
|
-
# @param
|
680
|
+
# @param container_container_repository_href [String]
|
681
|
+
# @param recursive_manage [RecursiveManage]
|
668
682
|
# @param [Hash] opts the optional parameters
|
669
683
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
670
|
-
def remove_with_http_info(
|
684
|
+
def remove_with_http_info(container_container_repository_href, recursive_manage, opts = {})
|
671
685
|
if @api_client.config.debugging
|
672
686
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.remove ...'
|
673
687
|
end
|
674
|
-
# verify the required parameter '
|
675
|
-
if @api_client.config.client_side_validation &&
|
676
|
-
fail ArgumentError, "Missing the required parameter '
|
688
|
+
# verify the required parameter 'container_container_repository_href' is set
|
689
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
690
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.remove"
|
677
691
|
end
|
678
|
-
# verify the required parameter '
|
679
|
-
if @api_client.config.client_side_validation &&
|
680
|
-
fail ArgumentError, "Missing the required parameter '
|
692
|
+
# verify the required parameter 'recursive_manage' is set
|
693
|
+
if @api_client.config.client_side_validation && recursive_manage.nil?
|
694
|
+
fail ArgumentError, "Missing the required parameter 'recursive_manage' when calling RepositoriesContainerApi.remove"
|
681
695
|
end
|
682
696
|
# resource path
|
683
|
-
local_var_path = '{
|
697
|
+
local_var_path = '{container_container_repository_href}remove/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
684
698
|
|
685
699
|
# query parameters
|
686
700
|
query_params = opts[:query_params] || {}
|
@@ -690,19 +704,19 @@ module PulpContainerClient
|
|
690
704
|
# HTTP header 'Accept' (if needed)
|
691
705
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
692
706
|
# HTTP header 'Content-Type'
|
693
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
707
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
694
708
|
|
695
709
|
# form parameters
|
696
710
|
form_params = opts[:form_params] || {}
|
697
711
|
|
698
712
|
# http body (model)
|
699
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
713
|
+
post_body = opts[:body] || @api_client.object_to_http_body(recursive_manage)
|
700
714
|
|
701
715
|
# return_type
|
702
716
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
703
717
|
|
704
718
|
# auth_names
|
705
|
-
auth_names = opts[:auth_names] || ['
|
719
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
706
720
|
|
707
721
|
new_options = opts.merge(
|
708
722
|
:header_params => header_params,
|
@@ -722,35 +736,35 @@ module PulpContainerClient
|
|
722
736
|
|
723
737
|
# Sync from a remote
|
724
738
|
# Trigger an asynchronous task to sync content.
|
725
|
-
# @param
|
726
|
-
# @param
|
739
|
+
# @param container_container_repository_href [String]
|
740
|
+
# @param repository_sync_url [RepositorySyncURL]
|
727
741
|
# @param [Hash] opts the optional parameters
|
728
742
|
# @return [AsyncOperationResponse]
|
729
|
-
def sync(
|
730
|
-
data, _status_code, _headers = sync_with_http_info(
|
743
|
+
def sync(container_container_repository_href, repository_sync_url, opts = {})
|
744
|
+
data, _status_code, _headers = sync_with_http_info(container_container_repository_href, repository_sync_url, opts)
|
731
745
|
data
|
732
746
|
end
|
733
747
|
|
734
748
|
# Sync from a remote
|
735
749
|
# Trigger an asynchronous task to sync content.
|
736
|
-
# @param
|
737
|
-
# @param
|
750
|
+
# @param container_container_repository_href [String]
|
751
|
+
# @param repository_sync_url [RepositorySyncURL]
|
738
752
|
# @param [Hash] opts the optional parameters
|
739
753
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
740
|
-
def sync_with_http_info(
|
754
|
+
def sync_with_http_info(container_container_repository_href, repository_sync_url, opts = {})
|
741
755
|
if @api_client.config.debugging
|
742
756
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.sync ...'
|
743
757
|
end
|
744
|
-
# verify the required parameter '
|
745
|
-
if @api_client.config.client_side_validation &&
|
746
|
-
fail ArgumentError, "Missing the required parameter '
|
758
|
+
# verify the required parameter 'container_container_repository_href' is set
|
759
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
760
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.sync"
|
747
761
|
end
|
748
|
-
# verify the required parameter '
|
749
|
-
if @api_client.config.client_side_validation &&
|
750
|
-
fail ArgumentError, "Missing the required parameter '
|
762
|
+
# verify the required parameter 'repository_sync_url' is set
|
763
|
+
if @api_client.config.client_side_validation && repository_sync_url.nil?
|
764
|
+
fail ArgumentError, "Missing the required parameter 'repository_sync_url' when calling RepositoriesContainerApi.sync"
|
751
765
|
end
|
752
766
|
# resource path
|
753
|
-
local_var_path = '{
|
767
|
+
local_var_path = '{container_container_repository_href}sync/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
754
768
|
|
755
769
|
# query parameters
|
756
770
|
query_params = opts[:query_params] || {}
|
@@ -760,19 +774,19 @@ module PulpContainerClient
|
|
760
774
|
# HTTP header 'Accept' (if needed)
|
761
775
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
762
776
|
# HTTP header 'Content-Type'
|
763
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
777
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
764
778
|
|
765
779
|
# form parameters
|
766
780
|
form_params = opts[:form_params] || {}
|
767
781
|
|
768
782
|
# http body (model)
|
769
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
783
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repository_sync_url)
|
770
784
|
|
771
785
|
# return_type
|
772
786
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
773
787
|
|
774
788
|
# auth_names
|
775
|
-
auth_names = opts[:auth_names] || ['
|
789
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
776
790
|
|
777
791
|
new_options = opts.merge(
|
778
792
|
:header_params => header_params,
|
@@ -792,35 +806,35 @@ module PulpContainerClient
|
|
792
806
|
|
793
807
|
# Create a Tag
|
794
808
|
# Trigger an asynchronous task to tag an image in the repository
|
795
|
-
# @param
|
796
|
-
# @param
|
809
|
+
# @param container_container_repository_href [String]
|
810
|
+
# @param tag_image [TagImage]
|
797
811
|
# @param [Hash] opts the optional parameters
|
798
812
|
# @return [AsyncOperationResponse]
|
799
|
-
def tag(
|
800
|
-
data, _status_code, _headers = tag_with_http_info(
|
813
|
+
def tag(container_container_repository_href, tag_image, opts = {})
|
814
|
+
data, _status_code, _headers = tag_with_http_info(container_container_repository_href, tag_image, opts)
|
801
815
|
data
|
802
816
|
end
|
803
817
|
|
804
818
|
# Create a Tag
|
805
819
|
# Trigger an asynchronous task to tag an image in the repository
|
806
|
-
# @param
|
807
|
-
# @param
|
820
|
+
# @param container_container_repository_href [String]
|
821
|
+
# @param tag_image [TagImage]
|
808
822
|
# @param [Hash] opts the optional parameters
|
809
823
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
810
|
-
def tag_with_http_info(
|
824
|
+
def tag_with_http_info(container_container_repository_href, tag_image, opts = {})
|
811
825
|
if @api_client.config.debugging
|
812
826
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.tag ...'
|
813
827
|
end
|
814
|
-
# verify the required parameter '
|
815
|
-
if @api_client.config.client_side_validation &&
|
816
|
-
fail ArgumentError, "Missing the required parameter '
|
828
|
+
# verify the required parameter 'container_container_repository_href' is set
|
829
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
830
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.tag"
|
817
831
|
end
|
818
|
-
# verify the required parameter '
|
819
|
-
if @api_client.config.client_side_validation &&
|
820
|
-
fail ArgumentError, "Missing the required parameter '
|
832
|
+
# verify the required parameter 'tag_image' is set
|
833
|
+
if @api_client.config.client_side_validation && tag_image.nil?
|
834
|
+
fail ArgumentError, "Missing the required parameter 'tag_image' when calling RepositoriesContainerApi.tag"
|
821
835
|
end
|
822
836
|
# resource path
|
823
|
-
local_var_path = '{
|
837
|
+
local_var_path = '{container_container_repository_href}tag/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
824
838
|
|
825
839
|
# query parameters
|
826
840
|
query_params = opts[:query_params] || {}
|
@@ -830,19 +844,19 @@ module PulpContainerClient
|
|
830
844
|
# HTTP header 'Accept' (if needed)
|
831
845
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
832
846
|
# HTTP header 'Content-Type'
|
833
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
847
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
834
848
|
|
835
849
|
# form parameters
|
836
850
|
form_params = opts[:form_params] || {}
|
837
851
|
|
838
852
|
# http body (model)
|
839
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
853
|
+
post_body = opts[:body] || @api_client.object_to_http_body(tag_image)
|
840
854
|
|
841
855
|
# return_type
|
842
856
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
843
857
|
|
844
858
|
# auth_names
|
845
|
-
auth_names = opts[:auth_names] || ['
|
859
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
846
860
|
|
847
861
|
new_options = opts.merge(
|
848
862
|
:header_params => header_params,
|
@@ -862,35 +876,35 @@ module PulpContainerClient
|
|
862
876
|
|
863
877
|
# Delete a tag
|
864
878
|
# Trigger an asynchronous task to untag an image in the repository
|
865
|
-
# @param
|
866
|
-
# @param
|
879
|
+
# @param container_container_repository_href [String]
|
880
|
+
# @param un_tag_image [UnTagImage]
|
867
881
|
# @param [Hash] opts the optional parameters
|
868
882
|
# @return [AsyncOperationResponse]
|
869
|
-
def untag(
|
870
|
-
data, _status_code, _headers = untag_with_http_info(
|
883
|
+
def untag(container_container_repository_href, un_tag_image, opts = {})
|
884
|
+
data, _status_code, _headers = untag_with_http_info(container_container_repository_href, un_tag_image, opts)
|
871
885
|
data
|
872
886
|
end
|
873
887
|
|
874
888
|
# Delete a tag
|
875
889
|
# Trigger an asynchronous task to untag an image in the repository
|
876
|
-
# @param
|
877
|
-
# @param
|
890
|
+
# @param container_container_repository_href [String]
|
891
|
+
# @param un_tag_image [UnTagImage]
|
878
892
|
# @param [Hash] opts the optional parameters
|
879
893
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
880
|
-
def untag_with_http_info(
|
894
|
+
def untag_with_http_info(container_container_repository_href, un_tag_image, opts = {})
|
881
895
|
if @api_client.config.debugging
|
882
896
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.untag ...'
|
883
897
|
end
|
884
|
-
# verify the required parameter '
|
885
|
-
if @api_client.config.client_side_validation &&
|
886
|
-
fail ArgumentError, "Missing the required parameter '
|
898
|
+
# verify the required parameter 'container_container_repository_href' is set
|
899
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
900
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.untag"
|
887
901
|
end
|
888
|
-
# verify the required parameter '
|
889
|
-
if @api_client.config.client_side_validation &&
|
890
|
-
fail ArgumentError, "Missing the required parameter '
|
902
|
+
# verify the required parameter 'un_tag_image' is set
|
903
|
+
if @api_client.config.client_side_validation && un_tag_image.nil?
|
904
|
+
fail ArgumentError, "Missing the required parameter 'un_tag_image' when calling RepositoriesContainerApi.untag"
|
891
905
|
end
|
892
906
|
# resource path
|
893
|
-
local_var_path = '{
|
907
|
+
local_var_path = '{container_container_repository_href}untag/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
894
908
|
|
895
909
|
# query parameters
|
896
910
|
query_params = opts[:query_params] || {}
|
@@ -900,19 +914,19 @@ module PulpContainerClient
|
|
900
914
|
# HTTP header 'Accept' (if needed)
|
901
915
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
902
916
|
# HTTP header 'Content-Type'
|
903
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
917
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
904
918
|
|
905
919
|
# form parameters
|
906
920
|
form_params = opts[:form_params] || {}
|
907
921
|
|
908
922
|
# http body (model)
|
909
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
923
|
+
post_body = opts[:body] || @api_client.object_to_http_body(un_tag_image)
|
910
924
|
|
911
925
|
# return_type
|
912
926
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
913
927
|
|
914
928
|
# auth_names
|
915
|
-
auth_names = opts[:auth_names] || ['
|
929
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
916
930
|
|
917
931
|
new_options = opts.merge(
|
918
932
|
:header_params => header_params,
|
@@ -932,57 +946,66 @@ module PulpContainerClient
|
|
932
946
|
|
933
947
|
# Update a container repository
|
934
948
|
# Trigger an asynchronous update task
|
935
|
-
# @param
|
936
|
-
# @param
|
949
|
+
# @param container_container_repository_href [String]
|
950
|
+
# @param container_container_repository [ContainerContainerRepository]
|
937
951
|
# @param [Hash] opts the optional parameters
|
952
|
+
# @option opts [String] :name name
|
953
|
+
# @option opts [String] :name__in name__in
|
954
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
938
955
|
# @return [AsyncOperationResponse]
|
939
|
-
def update(
|
940
|
-
data, _status_code, _headers = update_with_http_info(
|
956
|
+
def update(container_container_repository_href, container_container_repository, opts = {})
|
957
|
+
data, _status_code, _headers = update_with_http_info(container_container_repository_href, container_container_repository, opts)
|
941
958
|
data
|
942
959
|
end
|
943
960
|
|
944
961
|
# Update a container repository
|
945
962
|
# Trigger an asynchronous update task
|
946
|
-
# @param
|
947
|
-
# @param
|
963
|
+
# @param container_container_repository_href [String]
|
964
|
+
# @param container_container_repository [ContainerContainerRepository]
|
948
965
|
# @param [Hash] opts the optional parameters
|
966
|
+
# @option opts [String] :name name
|
967
|
+
# @option opts [String] :name__in name__in
|
968
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
949
969
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
950
|
-
def update_with_http_info(
|
970
|
+
def update_with_http_info(container_container_repository_href, container_container_repository, opts = {})
|
951
971
|
if @api_client.config.debugging
|
952
972
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.update ...'
|
953
973
|
end
|
954
|
-
# verify the required parameter '
|
955
|
-
if @api_client.config.client_side_validation &&
|
956
|
-
fail ArgumentError, "Missing the required parameter '
|
974
|
+
# verify the required parameter 'container_container_repository_href' is set
|
975
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
976
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.update"
|
957
977
|
end
|
958
|
-
# verify the required parameter '
|
959
|
-
if @api_client.config.client_side_validation &&
|
960
|
-
fail ArgumentError, "Missing the required parameter '
|
978
|
+
# verify the required parameter 'container_container_repository' is set
|
979
|
+
if @api_client.config.client_side_validation && container_container_repository.nil?
|
980
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository' when calling RepositoriesContainerApi.update"
|
961
981
|
end
|
962
982
|
# resource path
|
963
|
-
local_var_path = '{
|
983
|
+
local_var_path = '{container_container_repository_href}'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
964
984
|
|
965
985
|
# query parameters
|
966
986
|
query_params = opts[:query_params] || {}
|
987
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
988
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
989
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
967
990
|
|
968
991
|
# header parameters
|
969
992
|
header_params = opts[:header_params] || {}
|
970
993
|
# HTTP header 'Accept' (if needed)
|
971
994
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
972
995
|
# HTTP header 'Content-Type'
|
973
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
996
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
974
997
|
|
975
998
|
# form parameters
|
976
999
|
form_params = opts[:form_params] || {}
|
977
1000
|
|
978
1001
|
# http body (model)
|
979
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
1002
|
+
post_body = opts[:body] || @api_client.object_to_http_body(container_container_repository)
|
980
1003
|
|
981
1004
|
# return_type
|
982
1005
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
983
1006
|
|
984
1007
|
# auth_names
|
985
|
-
auth_names = opts[:auth_names] || ['
|
1008
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
986
1009
|
|
987
1010
|
new_options = opts.merge(
|
988
1011
|
:header_params => header_params,
|