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
|
|
@@ -20,27 +20,27 @@ module PulpContainerClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Create a container push repository
|
23
|
-
# ViewSet for container push repository.
|
24
|
-
# @param
|
23
|
+
# ViewSet for a container push repository.
|
24
|
+
# @param container_container_push_repository [ContainerContainerPushRepository]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
27
|
-
def create(
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
26
|
+
# @return [ContainerContainerPushRepositoryResponse]
|
27
|
+
def create(container_container_push_repository, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(container_container_push_repository, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
32
|
# Create a container push repository
|
33
|
-
# ViewSet for container push repository.
|
34
|
-
# @param
|
33
|
+
# ViewSet for a container push repository.
|
34
|
+
# @param container_container_push_repository [ContainerContainerPushRepository]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
37
|
-
def create_with_http_info(
|
36
|
+
# @return [Array<(ContainerContainerPushRepositoryResponse, Integer, Hash)>] ContainerContainerPushRepositoryResponse data, response status code and response headers
|
37
|
+
def create_with_http_info(container_container_push_repository, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.create ...'
|
40
40
|
end
|
41
|
-
# verify the required parameter '
|
42
|
-
if @api_client.config.client_side_validation &&
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
41
|
+
# verify the required parameter 'container_container_push_repository' is set
|
42
|
+
if @api_client.config.client_side_validation && container_container_push_repository.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository' when calling RepositoriesContainerPushApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/pulp/api/v3/repositories/container/container-push/'
|
@@ -53,19 +53,19 @@ module PulpContainerClient
|
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
55
|
# HTTP header 'Content-Type'
|
56
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
57
|
|
58
58
|
# form parameters
|
59
59
|
form_params = opts[:form_params] || {}
|
60
60
|
|
61
61
|
# http body (model)
|
62
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(container_container_push_repository)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'ContainerContainerPushRepositoryResponse'
|
66
66
|
|
67
67
|
# auth_names
|
68
|
-
auth_names = opts[:auth_names] || ['
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
69
69
|
|
70
70
|
new_options = opts.merge(
|
71
71
|
:header_params => header_params,
|
@@ -85,32 +85,41 @@ module PulpContainerClient
|
|
85
85
|
|
86
86
|
# Delete a container push repository
|
87
87
|
# Trigger an asynchronous delete task
|
88
|
-
# @param
|
88
|
+
# @param container_container_push_repository_href [String]
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
|
+
# @option opts [String] :name name
|
91
|
+
# @option opts [String] :name__in name__in
|
92
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
90
93
|
# @return [AsyncOperationResponse]
|
91
|
-
def delete(
|
92
|
-
data, _status_code, _headers = delete_with_http_info(
|
94
|
+
def delete(container_container_push_repository_href, opts = {})
|
95
|
+
data, _status_code, _headers = delete_with_http_info(container_container_push_repository_href, opts)
|
93
96
|
data
|
94
97
|
end
|
95
98
|
|
96
99
|
# Delete a container push repository
|
97
100
|
# Trigger an asynchronous delete task
|
98
|
-
# @param
|
101
|
+
# @param container_container_push_repository_href [String]
|
99
102
|
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [String] :name name
|
104
|
+
# @option opts [String] :name__in name__in
|
105
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
100
106
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
101
|
-
def delete_with_http_info(
|
107
|
+
def delete_with_http_info(container_container_push_repository_href, opts = {})
|
102
108
|
if @api_client.config.debugging
|
103
109
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.delete ...'
|
104
110
|
end
|
105
|
-
# verify the required parameter '
|
106
|
-
if @api_client.config.client_side_validation &&
|
107
|
-
fail ArgumentError, "Missing the required parameter '
|
111
|
+
# verify the required parameter 'container_container_push_repository_href' is set
|
112
|
+
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.delete"
|
108
114
|
end
|
109
115
|
# resource path
|
110
|
-
local_var_path = '{
|
116
|
+
local_var_path = '{container_container_push_repository_href}'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
|
111
117
|
|
112
118
|
# query parameters
|
113
119
|
query_params = opts[:query_params] || {}
|
120
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
121
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
122
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
114
123
|
|
115
124
|
# header parameters
|
116
125
|
header_params = opts[:header_params] || {}
|
@@ -127,7 +136,7 @@ module PulpContainerClient
|
|
127
136
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
128
137
|
|
129
138
|
# auth_names
|
130
|
-
auth_names = opts[:auth_names] || ['
|
139
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
131
140
|
|
132
141
|
new_options = opts.merge(
|
133
142
|
:header_params => header_params,
|
@@ -146,32 +155,32 @@ module PulpContainerClient
|
|
146
155
|
end
|
147
156
|
|
148
157
|
# List container push repositorys
|
149
|
-
# ViewSet for container push repository.
|
158
|
+
# ViewSet for a container push repository.
|
150
159
|
# @param [Hash] opts the optional parameters
|
151
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
152
|
-
# @option opts [String] :name
|
153
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
154
160
|
# @option opts [Integer] :limit Number of results to return per page.
|
161
|
+
# @option opts [String] :name name
|
162
|
+
# @option opts [String] :name__in name__in
|
155
163
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
164
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
156
165
|
# @option opts [String] :fields A list of fields to include in the response.
|
157
166
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
158
|
-
# @return [
|
167
|
+
# @return [InlineResponse2007]
|
159
168
|
def list(opts = {})
|
160
169
|
data, _status_code, _headers = list_with_http_info(opts)
|
161
170
|
data
|
162
171
|
end
|
163
172
|
|
164
173
|
# List container push repositorys
|
165
|
-
# ViewSet for container push repository.
|
174
|
+
# ViewSet for a container push repository.
|
166
175
|
# @param [Hash] opts the optional parameters
|
167
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
168
|
-
# @option opts [String] :name
|
169
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
170
176
|
# @option opts [Integer] :limit Number of results to return per page.
|
177
|
+
# @option opts [String] :name name
|
178
|
+
# @option opts [String] :name__in name__in
|
171
179
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
180
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
172
181
|
# @option opts [String] :fields A list of fields to include in the response.
|
173
182
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
174
|
-
# @return [Array<(
|
183
|
+
# @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
|
175
184
|
def list_with_http_info(opts = {})
|
176
185
|
if @api_client.config.debugging
|
177
186
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.list ...'
|
@@ -181,11 +190,11 @@ module PulpContainerClient
|
|
181
190
|
|
182
191
|
# query parameters
|
183
192
|
query_params = opts[:query_params] || {}
|
184
|
-
query_params[:'
|
193
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
185
194
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
186
195
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
187
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
188
196
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
197
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
189
198
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
190
199
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
191
200
|
|
@@ -201,10 +210,10 @@ module PulpContainerClient
|
|
201
210
|
post_body = opts[:body]
|
202
211
|
|
203
212
|
# return_type
|
204
|
-
return_type = opts[:return_type] || '
|
213
|
+
return_type = opts[:return_type] || 'InlineResponse2007'
|
205
214
|
|
206
215
|
# auth_names
|
207
|
-
auth_names = opts[:auth_names] || ['
|
216
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
208
217
|
|
209
218
|
new_options = opts.merge(
|
210
219
|
:header_params => header_params,
|
@@ -222,105 +231,35 @@ module PulpContainerClient
|
|
222
231
|
return data, status_code, headers
|
223
232
|
end
|
224
233
|
|
225
|
-
# Partially update a container push repository
|
226
|
-
# Trigger an asynchronous partial update task
|
227
|
-
# @param container_push_repository_href [String] URI of Container Push Repository. e.g.: /pulp/api/v3/repositories/container/container-push/1/
|
228
|
-
# @param data [ContainerContainerPushRepository]
|
229
|
-
# @param [Hash] opts the optional parameters
|
230
|
-
# @return [AsyncOperationResponse]
|
231
|
-
def partial_update(container_push_repository_href, data, opts = {})
|
232
|
-
data, _status_code, _headers = partial_update_with_http_info(container_push_repository_href, data, opts)
|
233
|
-
data
|
234
|
-
end
|
235
|
-
|
236
|
-
# Partially update a container push repository
|
237
|
-
# Trigger an asynchronous partial update task
|
238
|
-
# @param container_push_repository_href [String] URI of Container Push Repository. e.g.: /pulp/api/v3/repositories/container/container-push/1/
|
239
|
-
# @param data [ContainerContainerPushRepository]
|
240
|
-
# @param [Hash] opts the optional parameters
|
241
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
242
|
-
def partial_update_with_http_info(container_push_repository_href, data, opts = {})
|
243
|
-
if @api_client.config.debugging
|
244
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.partial_update ...'
|
245
|
-
end
|
246
|
-
# verify the required parameter 'container_push_repository_href' is set
|
247
|
-
if @api_client.config.client_side_validation && container_push_repository_href.nil?
|
248
|
-
fail ArgumentError, "Missing the required parameter 'container_push_repository_href' when calling RepositoriesContainerPushApi.partial_update"
|
249
|
-
end
|
250
|
-
# verify the required parameter 'data' is set
|
251
|
-
if @api_client.config.client_side_validation && data.nil?
|
252
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesContainerPushApi.partial_update"
|
253
|
-
end
|
254
|
-
# resource path
|
255
|
-
local_var_path = '{container_push_repository_href}'.sub('{' + 'container_push_repository_href' + '}', CGI.escape(container_push_repository_href.to_s).gsub('%2F', '/'))
|
256
|
-
|
257
|
-
# query parameters
|
258
|
-
query_params = opts[:query_params] || {}
|
259
|
-
|
260
|
-
# header parameters
|
261
|
-
header_params = opts[:header_params] || {}
|
262
|
-
# HTTP header 'Accept' (if needed)
|
263
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
264
|
-
# HTTP header 'Content-Type'
|
265
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
266
|
-
|
267
|
-
# form parameters
|
268
|
-
form_params = opts[:form_params] || {}
|
269
|
-
|
270
|
-
# http body (model)
|
271
|
-
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
272
|
-
|
273
|
-
# return_type
|
274
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
275
|
-
|
276
|
-
# auth_names
|
277
|
-
auth_names = opts[:auth_names] || ['Basic']
|
278
|
-
|
279
|
-
new_options = opts.merge(
|
280
|
-
:header_params => header_params,
|
281
|
-
:query_params => query_params,
|
282
|
-
:form_params => form_params,
|
283
|
-
:body => post_body,
|
284
|
-
:auth_names => auth_names,
|
285
|
-
:return_type => return_type
|
286
|
-
)
|
287
|
-
|
288
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
289
|
-
if @api_client.config.debugging
|
290
|
-
@api_client.config.logger.debug "API called: RepositoriesContainerPushApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
291
|
-
end
|
292
|
-
return data, status_code, headers
|
293
|
-
end
|
294
|
-
|
295
234
|
# Inspect a container push repository
|
296
|
-
# ViewSet for container push repository.
|
297
|
-
# @param
|
235
|
+
# ViewSet for a container push repository.
|
236
|
+
# @param container_container_push_repository_href [String]
|
298
237
|
# @param [Hash] opts the optional parameters
|
299
238
|
# @option opts [String] :fields A list of fields to include in the response.
|
300
239
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
301
|
-
# @return [
|
302
|
-
def read(
|
303
|
-
data, _status_code, _headers = read_with_http_info(
|
240
|
+
# @return [ContainerContainerPushRepositoryResponse]
|
241
|
+
def read(container_container_push_repository_href, opts = {})
|
242
|
+
data, _status_code, _headers = read_with_http_info(container_container_push_repository_href, opts)
|
304
243
|
data
|
305
244
|
end
|
306
245
|
|
307
246
|
# Inspect a container push repository
|
308
|
-
# ViewSet for container push repository.
|
309
|
-
# @param
|
247
|
+
# ViewSet for a container push repository.
|
248
|
+
# @param container_container_push_repository_href [String]
|
310
249
|
# @param [Hash] opts the optional parameters
|
311
250
|
# @option opts [String] :fields A list of fields to include in the response.
|
312
251
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
313
|
-
# @return [Array<(
|
314
|
-
def read_with_http_info(
|
252
|
+
# @return [Array<(ContainerContainerPushRepositoryResponse, Integer, Hash)>] ContainerContainerPushRepositoryResponse data, response status code and response headers
|
253
|
+
def read_with_http_info(container_container_push_repository_href, opts = {})
|
315
254
|
if @api_client.config.debugging
|
316
255
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.read ...'
|
317
256
|
end
|
318
|
-
# verify the required parameter '
|
319
|
-
if @api_client.config.client_side_validation &&
|
320
|
-
fail ArgumentError, "Missing the required parameter '
|
257
|
+
# verify the required parameter 'container_container_push_repository_href' is set
|
258
|
+
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
259
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.read"
|
321
260
|
end
|
322
261
|
# resource path
|
323
|
-
local_var_path = '{
|
262
|
+
local_var_path = '{container_container_push_repository_href}'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
|
324
263
|
|
325
264
|
# query parameters
|
326
265
|
query_params = opts[:query_params] || {}
|
@@ -339,10 +278,10 @@ module PulpContainerClient
|
|
339
278
|
post_body = opts[:body]
|
340
279
|
|
341
280
|
# return_type
|
342
|
-
return_type = opts[:return_type] || '
|
281
|
+
return_type = opts[:return_type] || 'ContainerContainerPushRepositoryResponse'
|
343
282
|
|
344
283
|
# auth_names
|
345
|
-
auth_names = opts[:auth_names] || ['
|
284
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
346
285
|
|
347
286
|
new_options = opts.merge(
|
348
287
|
:header_params => header_params,
|
@@ -359,75 +298,5 @@ module PulpContainerClient
|
|
359
298
|
end
|
360
299
|
return data, status_code, headers
|
361
300
|
end
|
362
|
-
|
363
|
-
# Update a container push repository
|
364
|
-
# Trigger an asynchronous update task
|
365
|
-
# @param container_push_repository_href [String] URI of Container Push Repository. e.g.: /pulp/api/v3/repositories/container/container-push/1/
|
366
|
-
# @param data [ContainerContainerPushRepository]
|
367
|
-
# @param [Hash] opts the optional parameters
|
368
|
-
# @return [AsyncOperationResponse]
|
369
|
-
def update(container_push_repository_href, data, opts = {})
|
370
|
-
data, _status_code, _headers = update_with_http_info(container_push_repository_href, data, opts)
|
371
|
-
data
|
372
|
-
end
|
373
|
-
|
374
|
-
# Update a container push repository
|
375
|
-
# Trigger an asynchronous update task
|
376
|
-
# @param container_push_repository_href [String] URI of Container Push Repository. e.g.: /pulp/api/v3/repositories/container/container-push/1/
|
377
|
-
# @param data [ContainerContainerPushRepository]
|
378
|
-
# @param [Hash] opts the optional parameters
|
379
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
380
|
-
def update_with_http_info(container_push_repository_href, data, opts = {})
|
381
|
-
if @api_client.config.debugging
|
382
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.update ...'
|
383
|
-
end
|
384
|
-
# verify the required parameter 'container_push_repository_href' is set
|
385
|
-
if @api_client.config.client_side_validation && container_push_repository_href.nil?
|
386
|
-
fail ArgumentError, "Missing the required parameter 'container_push_repository_href' when calling RepositoriesContainerPushApi.update"
|
387
|
-
end
|
388
|
-
# verify the required parameter 'data' is set
|
389
|
-
if @api_client.config.client_side_validation && data.nil?
|
390
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesContainerPushApi.update"
|
391
|
-
end
|
392
|
-
# resource path
|
393
|
-
local_var_path = '{container_push_repository_href}'.sub('{' + 'container_push_repository_href' + '}', CGI.escape(container_push_repository_href.to_s).gsub('%2F', '/'))
|
394
|
-
|
395
|
-
# query parameters
|
396
|
-
query_params = opts[:query_params] || {}
|
397
|
-
|
398
|
-
# header parameters
|
399
|
-
header_params = opts[:header_params] || {}
|
400
|
-
# HTTP header 'Accept' (if needed)
|
401
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
402
|
-
# HTTP header 'Content-Type'
|
403
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
404
|
-
|
405
|
-
# form parameters
|
406
|
-
form_params = opts[:form_params] || {}
|
407
|
-
|
408
|
-
# http body (model)
|
409
|
-
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
410
|
-
|
411
|
-
# return_type
|
412
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
413
|
-
|
414
|
-
# auth_names
|
415
|
-
auth_names = opts[:auth_names] || ['Basic']
|
416
|
-
|
417
|
-
new_options = opts.merge(
|
418
|
-
:header_params => header_params,
|
419
|
-
:query_params => query_params,
|
420
|
-
:form_params => form_params,
|
421
|
-
:body => post_body,
|
422
|
-
:auth_names => auth_names,
|
423
|
-
:return_type => return_type
|
424
|
-
)
|
425
|
-
|
426
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
427
|
-
if @api_client.config.debugging
|
428
|
-
@api_client.config.logger.debug "API called: RepositoriesContainerPushApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
429
|
-
end
|
430
|
-
return data, status_code, headers
|
431
|
-
end
|
432
301
|
end
|
433
302
|
end
|