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,26 +21,26 @@ module PulpContainerClient
|
|
21
21
|
end
|
22
22
|
# Create a content redirect content guard
|
23
23
|
# Content guard to protect preauthenticated redirects to the content app.
|
24
|
-
# @param
|
24
|
+
# @param container_content_redirect_content_guard [ContainerContentRedirectContentGuard]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
27
|
-
def create(
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
26
|
+
# @return [ContainerContentRedirectContentGuardResponse]
|
27
|
+
def create(container_content_redirect_content_guard, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(container_content_redirect_content_guard, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
32
|
# Create a content redirect content guard
|
33
33
|
# Content guard to protect preauthenticated redirects to the content app.
|
34
|
-
# @param
|
34
|
+
# @param container_content_redirect_content_guard [ContainerContentRedirectContentGuard]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
37
|
-
def create_with_http_info(
|
36
|
+
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
37
|
+
def create_with_http_info(container_content_redirect_content_guard, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.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_content_redirect_content_guard' is set
|
42
|
+
if @api_client.config.client_side_validation && container_content_redirect_content_guard.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard' when calling ContentguardsContentRedirectApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/pulp/api/v3/contentguards/container/content_redirect/'
|
@@ -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_content_redirect_content_guard)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'ContainerContentRedirectContentGuardResponse'
|
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,29 +85,29 @@ module PulpContainerClient
|
|
85
85
|
|
86
86
|
# Delete a content redirect content guard
|
87
87
|
# Content guard to protect preauthenticated redirects to the content app.
|
88
|
-
# @param
|
88
|
+
# @param container_content_redirect_content_guard_href [String]
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [nil]
|
91
|
-
def delete(
|
92
|
-
delete_with_http_info(
|
91
|
+
def delete(container_content_redirect_content_guard_href, opts = {})
|
92
|
+
delete_with_http_info(container_content_redirect_content_guard_href, opts)
|
93
93
|
nil
|
94
94
|
end
|
95
95
|
|
96
96
|
# Delete a content redirect content guard
|
97
97
|
# Content guard to protect preauthenticated redirects to the content app.
|
98
|
-
# @param
|
98
|
+
# @param container_content_redirect_content_guard_href [String]
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
100
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
101
|
-
def delete_with_http_info(
|
101
|
+
def delete_with_http_info(container_content_redirect_content_guard_href, opts = {})
|
102
102
|
if @api_client.config.debugging
|
103
103
|
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.delete ...'
|
104
104
|
end
|
105
|
-
# verify the required parameter '
|
106
|
-
if @api_client.config.client_side_validation &&
|
107
|
-
fail ArgumentError, "Missing the required parameter '
|
105
|
+
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
106
|
+
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
|
-
local_var_path = '{
|
110
|
+
local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
111
111
|
|
112
112
|
# query parameters
|
113
113
|
query_params = opts[:query_params] || {}
|
@@ -125,7 +125,7 @@ module PulpContainerClient
|
|
125
125
|
return_type = opts[:return_type]
|
126
126
|
|
127
127
|
# auth_names
|
128
|
-
auth_names = opts[:auth_names] || ['
|
128
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
129
129
|
|
130
130
|
new_options = opts.merge(
|
131
131
|
:header_params => header_params,
|
@@ -146,11 +146,11 @@ module PulpContainerClient
|
|
146
146
|
# List content redirect content guards
|
147
147
|
# Content guard to protect preauthenticated redirects to the content app.
|
148
148
|
# @param [Hash] opts the optional parameters
|
149
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
150
|
-
# @option opts [String] :name
|
151
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
152
149
|
# @option opts [Integer] :limit Number of results to return per page.
|
150
|
+
# @option opts [String] :name name
|
151
|
+
# @option opts [String] :name__in name__in
|
153
152
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
153
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
154
154
|
# @option opts [String] :fields A list of fields to include in the response.
|
155
155
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
156
156
|
# @return [InlineResponse2003]
|
@@ -162,11 +162,11 @@ module PulpContainerClient
|
|
162
162
|
# List content redirect content guards
|
163
163
|
# Content guard to protect preauthenticated redirects to the content app.
|
164
164
|
# @param [Hash] opts the optional parameters
|
165
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
166
|
-
# @option opts [String] :name
|
167
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
168
165
|
# @option opts [Integer] :limit Number of results to return per page.
|
166
|
+
# @option opts [String] :name name
|
167
|
+
# @option opts [String] :name__in name__in
|
169
168
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
169
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
170
170
|
# @option opts [String] :fields A list of fields to include in the response.
|
171
171
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
172
172
|
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
@@ -179,11 +179,11 @@ module PulpContainerClient
|
|
179
179
|
|
180
180
|
# query parameters
|
181
181
|
query_params = opts[:query_params] || {}
|
182
|
-
query_params[:'
|
182
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
183
183
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
184
184
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
185
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
186
185
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
186
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
187
187
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
188
188
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
189
189
|
|
@@ -202,7 +202,7 @@ module PulpContainerClient
|
|
202
202
|
return_type = opts[:return_type] || 'InlineResponse2003'
|
203
203
|
|
204
204
|
# auth_names
|
205
|
-
auth_names = opts[:auth_names] || ['
|
205
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
206
206
|
|
207
207
|
new_options = opts.merge(
|
208
208
|
:header_params => header_params,
|
@@ -220,37 +220,37 @@ module PulpContainerClient
|
|
220
220
|
return data, status_code, headers
|
221
221
|
end
|
222
222
|
|
223
|
-
#
|
223
|
+
# Update a content redirect content guard
|
224
224
|
# Content guard to protect preauthenticated redirects to the content app.
|
225
|
-
# @param
|
226
|
-
# @param
|
225
|
+
# @param container_content_redirect_content_guard_href [String]
|
226
|
+
# @param patchedcontainer_content_redirect_content_guard [PatchedcontainerContentRedirectContentGuard]
|
227
227
|
# @param [Hash] opts the optional parameters
|
228
|
-
# @return [
|
229
|
-
def partial_update(
|
230
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
228
|
+
# @return [ContainerContentRedirectContentGuardResponse]
|
229
|
+
def partial_update(container_content_redirect_content_guard_href, patchedcontainer_content_redirect_content_guard, opts = {})
|
230
|
+
data, _status_code, _headers = partial_update_with_http_info(container_content_redirect_content_guard_href, patchedcontainer_content_redirect_content_guard, opts)
|
231
231
|
data
|
232
232
|
end
|
233
233
|
|
234
|
-
#
|
234
|
+
# Update a content redirect content guard
|
235
235
|
# Content guard to protect preauthenticated redirects to the content app.
|
236
|
-
# @param
|
237
|
-
# @param
|
236
|
+
# @param container_content_redirect_content_guard_href [String]
|
237
|
+
# @param patchedcontainer_content_redirect_content_guard [PatchedcontainerContentRedirectContentGuard]
|
238
238
|
# @param [Hash] opts the optional parameters
|
239
|
-
# @return [Array<(
|
240
|
-
def partial_update_with_http_info(
|
239
|
+
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
240
|
+
def partial_update_with_http_info(container_content_redirect_content_guard_href, patchedcontainer_content_redirect_content_guard, opts = {})
|
241
241
|
if @api_client.config.debugging
|
242
242
|
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.partial_update ...'
|
243
243
|
end
|
244
|
-
# verify the required parameter '
|
245
|
-
if @api_client.config.client_side_validation &&
|
246
|
-
fail ArgumentError, "Missing the required parameter '
|
244
|
+
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
245
|
+
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
246
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.partial_update"
|
247
247
|
end
|
248
|
-
# verify the required parameter '
|
249
|
-
if @api_client.config.client_side_validation &&
|
250
|
-
fail ArgumentError, "Missing the required parameter '
|
248
|
+
# verify the required parameter 'patchedcontainer_content_redirect_content_guard' is set
|
249
|
+
if @api_client.config.client_side_validation && patchedcontainer_content_redirect_content_guard.nil?
|
250
|
+
fail ArgumentError, "Missing the required parameter 'patchedcontainer_content_redirect_content_guard' when calling ContentguardsContentRedirectApi.partial_update"
|
251
251
|
end
|
252
252
|
# resource path
|
253
|
-
local_var_path = '{
|
253
|
+
local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
254
254
|
|
255
255
|
# query parameters
|
256
256
|
query_params = opts[:query_params] || {}
|
@@ -260,19 +260,19 @@ module PulpContainerClient
|
|
260
260
|
# HTTP header 'Accept' (if needed)
|
261
261
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
262
262
|
# HTTP header 'Content-Type'
|
263
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
263
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
264
264
|
|
265
265
|
# form parameters
|
266
266
|
form_params = opts[:form_params] || {}
|
267
267
|
|
268
268
|
# http body (model)
|
269
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
269
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patchedcontainer_content_redirect_content_guard)
|
270
270
|
|
271
271
|
# return_type
|
272
|
-
return_type = opts[:return_type] || '
|
272
|
+
return_type = opts[:return_type] || 'ContainerContentRedirectContentGuardResponse'
|
273
273
|
|
274
274
|
# auth_names
|
275
|
-
auth_names = opts[:auth_names] || ['
|
275
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
276
276
|
|
277
277
|
new_options = opts.merge(
|
278
278
|
:header_params => header_params,
|
@@ -292,33 +292,33 @@ module PulpContainerClient
|
|
292
292
|
|
293
293
|
# Inspect a content redirect content guard
|
294
294
|
# Content guard to protect preauthenticated redirects to the content app.
|
295
|
-
# @param
|
295
|
+
# @param container_content_redirect_content_guard_href [String]
|
296
296
|
# @param [Hash] opts the optional parameters
|
297
297
|
# @option opts [String] :fields A list of fields to include in the response.
|
298
298
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
299
|
-
# @return [
|
300
|
-
def read(
|
301
|
-
data, _status_code, _headers = read_with_http_info(
|
299
|
+
# @return [ContainerContentRedirectContentGuardResponse]
|
300
|
+
def read(container_content_redirect_content_guard_href, opts = {})
|
301
|
+
data, _status_code, _headers = read_with_http_info(container_content_redirect_content_guard_href, opts)
|
302
302
|
data
|
303
303
|
end
|
304
304
|
|
305
305
|
# Inspect a content redirect content guard
|
306
306
|
# Content guard to protect preauthenticated redirects to the content app.
|
307
|
-
# @param
|
307
|
+
# @param container_content_redirect_content_guard_href [String]
|
308
308
|
# @param [Hash] opts the optional parameters
|
309
309
|
# @option opts [String] :fields A list of fields to include in the response.
|
310
310
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
311
|
-
# @return [Array<(
|
312
|
-
def read_with_http_info(
|
311
|
+
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
312
|
+
def read_with_http_info(container_content_redirect_content_guard_href, opts = {})
|
313
313
|
if @api_client.config.debugging
|
314
314
|
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.read ...'
|
315
315
|
end
|
316
|
-
# verify the required parameter '
|
317
|
-
if @api_client.config.client_side_validation &&
|
318
|
-
fail ArgumentError, "Missing the required parameter '
|
316
|
+
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
317
|
+
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
318
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.read"
|
319
319
|
end
|
320
320
|
# resource path
|
321
|
-
local_var_path = '{
|
321
|
+
local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
322
322
|
|
323
323
|
# query parameters
|
324
324
|
query_params = opts[:query_params] || {}
|
@@ -337,10 +337,10 @@ module PulpContainerClient
|
|
337
337
|
post_body = opts[:body]
|
338
338
|
|
339
339
|
# return_type
|
340
|
-
return_type = opts[:return_type] || '
|
340
|
+
return_type = opts[:return_type] || 'ContainerContentRedirectContentGuardResponse'
|
341
341
|
|
342
342
|
# auth_names
|
343
|
-
auth_names = opts[:auth_names] || ['
|
343
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
344
344
|
|
345
345
|
new_options = opts.merge(
|
346
346
|
:header_params => header_params,
|
@@ -360,35 +360,35 @@ module PulpContainerClient
|
|
360
360
|
|
361
361
|
# Update a content redirect content guard
|
362
362
|
# Content guard to protect preauthenticated redirects to the content app.
|
363
|
-
# @param
|
364
|
-
# @param
|
363
|
+
# @param container_content_redirect_content_guard_href [String]
|
364
|
+
# @param container_content_redirect_content_guard [ContainerContentRedirectContentGuard]
|
365
365
|
# @param [Hash] opts the optional parameters
|
366
|
-
# @return [
|
367
|
-
def update(
|
368
|
-
data, _status_code, _headers = update_with_http_info(
|
366
|
+
# @return [ContainerContentRedirectContentGuardResponse]
|
367
|
+
def update(container_content_redirect_content_guard_href, container_content_redirect_content_guard, opts = {})
|
368
|
+
data, _status_code, _headers = update_with_http_info(container_content_redirect_content_guard_href, container_content_redirect_content_guard, opts)
|
369
369
|
data
|
370
370
|
end
|
371
371
|
|
372
372
|
# Update a content redirect content guard
|
373
373
|
# Content guard to protect preauthenticated redirects to the content app.
|
374
|
-
# @param
|
375
|
-
# @param
|
374
|
+
# @param container_content_redirect_content_guard_href [String]
|
375
|
+
# @param container_content_redirect_content_guard [ContainerContentRedirectContentGuard]
|
376
376
|
# @param [Hash] opts the optional parameters
|
377
|
-
# @return [Array<(
|
378
|
-
def update_with_http_info(
|
377
|
+
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
378
|
+
def update_with_http_info(container_content_redirect_content_guard_href, container_content_redirect_content_guard, opts = {})
|
379
379
|
if @api_client.config.debugging
|
380
380
|
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.update ...'
|
381
381
|
end
|
382
|
-
# verify the required parameter '
|
383
|
-
if @api_client.config.client_side_validation &&
|
384
|
-
fail ArgumentError, "Missing the required parameter '
|
382
|
+
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
383
|
+
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
384
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.update"
|
385
385
|
end
|
386
|
-
# verify the required parameter '
|
387
|
-
if @api_client.config.client_side_validation &&
|
388
|
-
fail ArgumentError, "Missing the required parameter '
|
386
|
+
# verify the required parameter 'container_content_redirect_content_guard' is set
|
387
|
+
if @api_client.config.client_side_validation && container_content_redirect_content_guard.nil?
|
388
|
+
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard' when calling ContentguardsContentRedirectApi.update"
|
389
389
|
end
|
390
390
|
# resource path
|
391
|
-
local_var_path = '{
|
391
|
+
local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
392
392
|
|
393
393
|
# query parameters
|
394
394
|
query_params = opts[:query_params] || {}
|
@@ -398,19 +398,19 @@ module PulpContainerClient
|
|
398
398
|
# HTTP header 'Accept' (if needed)
|
399
399
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
400
400
|
# HTTP header 'Content-Type'
|
401
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
401
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
402
402
|
|
403
403
|
# form parameters
|
404
404
|
form_params = opts[:form_params] || {}
|
405
405
|
|
406
406
|
# http body (model)
|
407
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
407
|
+
post_body = opts[:body] || @api_client.object_to_http_body(container_content_redirect_content_guard)
|
408
408
|
|
409
409
|
# return_type
|
410
|
-
return_type = opts[:return_type] || '
|
410
|
+
return_type = opts[:return_type] || 'ContainerContentRedirectContentGuardResponse'
|
411
411
|
|
412
412
|
# auth_names
|
413
|
-
auth_names = opts[:auth_names] || ['
|
413
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
414
414
|
|
415
415
|
new_options = opts.merge(
|
416
416
|
:header_params => header_params,
|