pulp_container_client 2.10.13 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +41 -17
- data/docs/ContainerBlobResponse.md +1 -3
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +7 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -12
- data/docs/ContainerContainerRemote.md +3 -1
- data/docs/ContainerContainerRemoteResponse.md +3 -1
- data/docs/ContainerContainerRepository.md +3 -1
- data/docs/ContainerContainerRepositoryResponse.md +3 -1
- data/docs/ContainerManifestSignatureResponse.md +33 -0
- data/docs/{RepositorySyncURL.md → ContainerRepositorySyncURL.md} +5 -3
- data/docs/ContentBlobsApi.md +0 -2
- data/docs/ContentSignaturesApi.md +158 -0
- data/docs/ContentSummary.md +21 -0
- data/docs/DistributionsContainerApi.md +228 -0
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/{PaginatedcontainerContentRedirectContentGuardResponseList.md → PaginatedcontainerManifestSignatureResponseList.md} +3 -3
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +7 -5
- data/docs/PatchedcontainerContainerRemote.md +3 -1
- data/docs/PatchedcontainerContainerRepository.md +3 -1
- data/docs/PulpContainerNamespacesApi.md +228 -0
- data/docs/RemotesContainerApi.md +228 -0
- data/docs/RemoveSignatures.md +17 -0
- data/docs/RemoveSignaturesResponse.md +17 -0
- data/docs/RepositoriesContainerApi.md +288 -4
- data/docs/RepositoriesContainerPushApi.md +339 -0
- data/docs/RepositoriesContainerPushVersionsApi.md +4 -4
- data/docs/RepositoriesContainerVersionsApi.md +4 -4
- data/docs/RepositorySign.md +21 -0
- data/docs/RepositoryVersion.md +17 -0
- data/git_push.sh +58 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +0 -7
- data/lib/pulp_container_client/api/content_signatures_api.rb +200 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +268 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +268 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +268 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +347 -9
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +406 -0
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +9 -9
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +9 -9
- data/lib/pulp_container_client/api_client.rb +5 -2
- data/lib/pulp_container_client/configuration.rb +0 -1
- data/lib/pulp_container_client/models/container_blob_response.rb +4 -19
- data/lib/pulp_container_client/models/container_container_distribution.rb +21 -21
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +34 -34
- data/lib/pulp_container_client/models/container_container_push_repository.rb +44 -33
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -44
- data/lib/pulp_container_client/models/container_container_remote.rb +30 -5
- data/lib/pulp_container_client/models/container_container_remote_response.rb +15 -5
- data/lib/pulp_container_client/models/container_container_repository.rb +16 -5
- data/lib/pulp_container_client/models/container_container_repository_response.rb +16 -5
- data/lib/pulp_container_client/models/{container_content_redirect_content_guard.rb → container_manifest_signature_response.rb} +108 -44
- data/lib/pulp_container_client/models/{repository_sync_url.rb → container_repository_sync_url.rb} +20 -8
- data/lib/pulp_container_client/models/content_summary.rb +246 -0
- data/lib/pulp_container_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_container_client/models/{container_content_redirect_content_guard_response.rb → nested_role.rb} +30 -39
- data/lib/pulp_container_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_container_client/models/{repair.rb → object_roles_response.rb} +17 -13
- data/lib/pulp_container_client/models/{paginatedcontainer_content_redirect_content_guard_response_list.rb → paginatedcontainer_manifest_signature_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +21 -21
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +44 -33
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +30 -5
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +16 -5
- data/lib/pulp_container_client/models/remove_signatures.rb +232 -0
- data/lib/pulp_container_client/models/remove_signatures_response.rb +213 -0
- data/lib/pulp_container_client/models/{patchedcontainer_content_redirect_content_guard.rb → repository_sign.rb} +40 -43
- data/lib/pulp_container_client/models/repository_version.rb +208 -0
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +13 -7
- data/pulp_container_client.gemspec +3 -3
- data/spec/api/content_blobs_api_spec.rb +0 -1
- data/spec/api/content_signatures_api_spec.rb +78 -0
- data/spec/api/distributions_container_api_spec.rb +50 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +50 -0
- data/spec/api/remotes_container_api_spec.rb +50 -0
- data/spec/api/repositories_container_api_spec.rb +64 -1
- data/spec/api/repositories_container_push_api_spec.rb +75 -0
- data/spec/api/repositories_container_push_versions_api_spec.rb +1 -1
- data/spec/api/repositories_container_versions_api_spec.rb +1 -1
- data/spec/models/container_blob_response_spec.rb +0 -6
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +13 -7
- data/spec/models/container_container_push_repository_spec.rb +9 -3
- data/spec/models/container_container_remote_response_spec.rb +6 -0
- data/spec/models/container_container_remote_spec.rb +6 -0
- data/spec/models/container_container_repository_response_spec.rb +6 -0
- data/spec/models/container_container_repository_spec.rb +6 -0
- data/spec/models/container_manifest_signature_response_spec.rb +89 -0
- data/spec/models/{container_content_redirect_content_guard_response_spec.rb → container_repository_sync_url_spec.rb} +9 -15
- data/spec/models/{container_content_redirect_content_guard_spec.rb → content_summary_spec.rb} +14 -8
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/{patchedcontainer_content_redirect_content_guard_spec.rb → nested_role_spec.rb} +14 -8
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/{paginatedcontainer_content_redirect_content_guard_response_list_spec.rb → paginatedcontainer_manifest_signature_response_list_spec.rb} +6 -6
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +9 -3
- data/spec/models/patchedcontainer_container_remote_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
- data/spec/models/remove_signatures_response_spec.rb +41 -0
- data/spec/models/{repair_spec.rb → remove_signatures_spec.rb} +7 -7
- data/spec/models/{repository_sync_url_spec.rb → repository_sign_spec.rb} +14 -8
- data/spec/models/repository_version_spec.rb +41 -0
- metadata +99 -74
- data/docs/ContainerContentRedirectContentGuard.md +0 -19
- data/docs/ContainerContentRedirectContentGuardResponse.md +0 -23
- data/docs/ContentguardsContentRedirectApi.md +0 -361
- data/docs/PatchedcontainerContentRedirectContentGuard.md +0 -19
- data/docs/Repair.md +0 -17
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +0 -440
- data/spec/api/contentguards_content_redirect_api_spec.rb +0 -120
|
@@ -1,440 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Pulp 3 API
|
|
3
|
-
|
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: v3
|
|
7
|
-
Contact: pulp-list@redhat.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.3.1
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'cgi'
|
|
14
|
-
|
|
15
|
-
module PulpContainerClient
|
|
16
|
-
class ContentguardsContentRedirectApi
|
|
17
|
-
attr_accessor :api_client
|
|
18
|
-
|
|
19
|
-
def initialize(api_client = ApiClient.default)
|
|
20
|
-
@api_client = api_client
|
|
21
|
-
end
|
|
22
|
-
# Create a content redirect content guard
|
|
23
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
24
|
-
# @param container_content_redirect_content_guard [ContainerContentRedirectContentGuard]
|
|
25
|
-
# @param [Hash] opts the optional parameters
|
|
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
|
-
data
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Create a content redirect content guard
|
|
33
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
34
|
-
# @param container_content_redirect_content_guard [ContainerContentRedirectContentGuard]
|
|
35
|
-
# @param [Hash] opts the optional parameters
|
|
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
|
-
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.create ...'
|
|
40
|
-
end
|
|
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
|
-
end
|
|
45
|
-
# resource path
|
|
46
|
-
local_var_path = '/pulp/api/v3/contentguards/container/content_redirect/'
|
|
47
|
-
|
|
48
|
-
# query parameters
|
|
49
|
-
query_params = opts[:query_params] || {}
|
|
50
|
-
|
|
51
|
-
# header parameters
|
|
52
|
-
header_params = opts[:header_params] || {}
|
|
53
|
-
# HTTP header 'Accept' (if needed)
|
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
55
|
-
# HTTP header 'Content-Type'
|
|
56
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
57
|
-
|
|
58
|
-
# form parameters
|
|
59
|
-
form_params = opts[:form_params] || {}
|
|
60
|
-
|
|
61
|
-
# http body (model)
|
|
62
|
-
post_body = opts[:body] || @api_client.object_to_http_body(container_content_redirect_content_guard)
|
|
63
|
-
|
|
64
|
-
# return_type
|
|
65
|
-
return_type = opts[:return_type] || 'ContainerContentRedirectContentGuardResponse'
|
|
66
|
-
|
|
67
|
-
# auth_names
|
|
68
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
69
|
-
|
|
70
|
-
new_options = opts.merge(
|
|
71
|
-
:header_params => header_params,
|
|
72
|
-
:query_params => query_params,
|
|
73
|
-
:form_params => form_params,
|
|
74
|
-
:body => post_body,
|
|
75
|
-
:auth_names => auth_names,
|
|
76
|
-
:return_type => return_type
|
|
77
|
-
)
|
|
78
|
-
|
|
79
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
|
-
if @api_client.config.debugging
|
|
81
|
-
@api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
-
end
|
|
83
|
-
return data, status_code, headers
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# Delete a content redirect content guard
|
|
87
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
88
|
-
# @param container_content_redirect_content_guard_href [String]
|
|
89
|
-
# @param [Hash] opts the optional parameters
|
|
90
|
-
# @return [nil]
|
|
91
|
-
def delete(container_content_redirect_content_guard_href, opts = {})
|
|
92
|
-
delete_with_http_info(container_content_redirect_content_guard_href, opts)
|
|
93
|
-
nil
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# Delete a content redirect content guard
|
|
97
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
98
|
-
# @param container_content_redirect_content_guard_href [String]
|
|
99
|
-
# @param [Hash] opts the optional parameters
|
|
100
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
101
|
-
def delete_with_http_info(container_content_redirect_content_guard_href, opts = {})
|
|
102
|
-
if @api_client.config.debugging
|
|
103
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.delete ...'
|
|
104
|
-
end
|
|
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
|
-
end
|
|
109
|
-
# resource 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
|
-
|
|
112
|
-
# query parameters
|
|
113
|
-
query_params = opts[:query_params] || {}
|
|
114
|
-
|
|
115
|
-
# header parameters
|
|
116
|
-
header_params = opts[:header_params] || {}
|
|
117
|
-
|
|
118
|
-
# form parameters
|
|
119
|
-
form_params = opts[:form_params] || {}
|
|
120
|
-
|
|
121
|
-
# http body (model)
|
|
122
|
-
post_body = opts[:body]
|
|
123
|
-
|
|
124
|
-
# return_type
|
|
125
|
-
return_type = opts[:return_type]
|
|
126
|
-
|
|
127
|
-
# auth_names
|
|
128
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
129
|
-
|
|
130
|
-
new_options = opts.merge(
|
|
131
|
-
:header_params => header_params,
|
|
132
|
-
:query_params => query_params,
|
|
133
|
-
:form_params => form_params,
|
|
134
|
-
:body => post_body,
|
|
135
|
-
:auth_names => auth_names,
|
|
136
|
-
:return_type => return_type
|
|
137
|
-
)
|
|
138
|
-
|
|
139
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
140
|
-
if @api_client.config.debugging
|
|
141
|
-
@api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
|
-
end
|
|
143
|
-
return data, status_code, headers
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
# List content redirect content guards
|
|
147
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
148
|
-
# @param [Hash] opts the optional parameters
|
|
149
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
|
150
|
-
# @option opts [String] :name
|
|
151
|
-
# @option opts [String] :name__contains Filter results where name contains value
|
|
152
|
-
# @option opts [String] :name__icontains Filter results where name contains value
|
|
153
|
-
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
154
|
-
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
155
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
156
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
157
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
158
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
159
|
-
# @return [PaginatedcontainerContentRedirectContentGuardResponseList]
|
|
160
|
-
def list(opts = {})
|
|
161
|
-
data, _status_code, _headers = list_with_http_info(opts)
|
|
162
|
-
data
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
# List content redirect content guards
|
|
166
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
167
|
-
# @param [Hash] opts the optional parameters
|
|
168
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
|
169
|
-
# @option opts [String] :name
|
|
170
|
-
# @option opts [String] :name__contains Filter results where name contains value
|
|
171
|
-
# @option opts [String] :name__icontains Filter results where name contains value
|
|
172
|
-
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
173
|
-
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
174
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
175
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
176
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
177
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
178
|
-
# @return [Array<(PaginatedcontainerContentRedirectContentGuardResponseList, Integer, Hash)>] PaginatedcontainerContentRedirectContentGuardResponseList data, response status code and response headers
|
|
179
|
-
def list_with_http_info(opts = {})
|
|
180
|
-
if @api_client.config.debugging
|
|
181
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.list ...'
|
|
182
|
-
end
|
|
183
|
-
# resource path
|
|
184
|
-
local_var_path = '/pulp/api/v3/contentguards/container/content_redirect/'
|
|
185
|
-
|
|
186
|
-
# query parameters
|
|
187
|
-
query_params = opts[:query_params] || {}
|
|
188
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
189
|
-
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
190
|
-
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
|
191
|
-
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
|
192
|
-
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
|
193
|
-
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
|
194
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
195
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
196
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
197
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
198
|
-
|
|
199
|
-
# header parameters
|
|
200
|
-
header_params = opts[:header_params] || {}
|
|
201
|
-
# HTTP header 'Accept' (if needed)
|
|
202
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
203
|
-
|
|
204
|
-
# form parameters
|
|
205
|
-
form_params = opts[:form_params] || {}
|
|
206
|
-
|
|
207
|
-
# http body (model)
|
|
208
|
-
post_body = opts[:body]
|
|
209
|
-
|
|
210
|
-
# return_type
|
|
211
|
-
return_type = opts[:return_type] || 'PaginatedcontainerContentRedirectContentGuardResponseList'
|
|
212
|
-
|
|
213
|
-
# auth_names
|
|
214
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
215
|
-
|
|
216
|
-
new_options = opts.merge(
|
|
217
|
-
:header_params => header_params,
|
|
218
|
-
:query_params => query_params,
|
|
219
|
-
:form_params => form_params,
|
|
220
|
-
:body => post_body,
|
|
221
|
-
:auth_names => auth_names,
|
|
222
|
-
:return_type => return_type
|
|
223
|
-
)
|
|
224
|
-
|
|
225
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
226
|
-
if @api_client.config.debugging
|
|
227
|
-
@api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
228
|
-
end
|
|
229
|
-
return data, status_code, headers
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
# Update a content redirect content guard
|
|
233
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
234
|
-
# @param container_content_redirect_content_guard_href [String]
|
|
235
|
-
# @param patchedcontainer_content_redirect_content_guard [PatchedcontainerContentRedirectContentGuard]
|
|
236
|
-
# @param [Hash] opts the optional parameters
|
|
237
|
-
# @return [ContainerContentRedirectContentGuardResponse]
|
|
238
|
-
def partial_update(container_content_redirect_content_guard_href, patchedcontainer_content_redirect_content_guard, opts = {})
|
|
239
|
-
data, _status_code, _headers = partial_update_with_http_info(container_content_redirect_content_guard_href, patchedcontainer_content_redirect_content_guard, opts)
|
|
240
|
-
data
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
# Update a content redirect content guard
|
|
244
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
245
|
-
# @param container_content_redirect_content_guard_href [String]
|
|
246
|
-
# @param patchedcontainer_content_redirect_content_guard [PatchedcontainerContentRedirectContentGuard]
|
|
247
|
-
# @param [Hash] opts the optional parameters
|
|
248
|
-
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
|
249
|
-
def partial_update_with_http_info(container_content_redirect_content_guard_href, patchedcontainer_content_redirect_content_guard, opts = {})
|
|
250
|
-
if @api_client.config.debugging
|
|
251
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.partial_update ...'
|
|
252
|
-
end
|
|
253
|
-
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
|
254
|
-
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
|
255
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.partial_update"
|
|
256
|
-
end
|
|
257
|
-
# verify the required parameter 'patchedcontainer_content_redirect_content_guard' is set
|
|
258
|
-
if @api_client.config.client_side_validation && patchedcontainer_content_redirect_content_guard.nil?
|
|
259
|
-
fail ArgumentError, "Missing the required parameter 'patchedcontainer_content_redirect_content_guard' when calling ContentguardsContentRedirectApi.partial_update"
|
|
260
|
-
end
|
|
261
|
-
# resource path
|
|
262
|
-
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', '/'))
|
|
263
|
-
|
|
264
|
-
# query parameters
|
|
265
|
-
query_params = opts[:query_params] || {}
|
|
266
|
-
|
|
267
|
-
# header parameters
|
|
268
|
-
header_params = opts[:header_params] || {}
|
|
269
|
-
# HTTP header 'Accept' (if needed)
|
|
270
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
271
|
-
# HTTP header 'Content-Type'
|
|
272
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
273
|
-
|
|
274
|
-
# form parameters
|
|
275
|
-
form_params = opts[:form_params] || {}
|
|
276
|
-
|
|
277
|
-
# http body (model)
|
|
278
|
-
post_body = opts[:body] || @api_client.object_to_http_body(patchedcontainer_content_redirect_content_guard)
|
|
279
|
-
|
|
280
|
-
# return_type
|
|
281
|
-
return_type = opts[:return_type] || 'ContainerContentRedirectContentGuardResponse'
|
|
282
|
-
|
|
283
|
-
# auth_names
|
|
284
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
285
|
-
|
|
286
|
-
new_options = opts.merge(
|
|
287
|
-
:header_params => header_params,
|
|
288
|
-
:query_params => query_params,
|
|
289
|
-
:form_params => form_params,
|
|
290
|
-
:body => post_body,
|
|
291
|
-
:auth_names => auth_names,
|
|
292
|
-
:return_type => return_type
|
|
293
|
-
)
|
|
294
|
-
|
|
295
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
296
|
-
if @api_client.config.debugging
|
|
297
|
-
@api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
298
|
-
end
|
|
299
|
-
return data, status_code, headers
|
|
300
|
-
end
|
|
301
|
-
|
|
302
|
-
# Inspect a content redirect content guard
|
|
303
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
304
|
-
# @param container_content_redirect_content_guard_href [String]
|
|
305
|
-
# @param [Hash] opts the optional parameters
|
|
306
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
307
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
308
|
-
# @return [ContainerContentRedirectContentGuardResponse]
|
|
309
|
-
def read(container_content_redirect_content_guard_href, opts = {})
|
|
310
|
-
data, _status_code, _headers = read_with_http_info(container_content_redirect_content_guard_href, opts)
|
|
311
|
-
data
|
|
312
|
-
end
|
|
313
|
-
|
|
314
|
-
# Inspect a content redirect content guard
|
|
315
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
316
|
-
# @param container_content_redirect_content_guard_href [String]
|
|
317
|
-
# @param [Hash] opts the optional parameters
|
|
318
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
319
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
320
|
-
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
|
321
|
-
def read_with_http_info(container_content_redirect_content_guard_href, opts = {})
|
|
322
|
-
if @api_client.config.debugging
|
|
323
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.read ...'
|
|
324
|
-
end
|
|
325
|
-
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
|
326
|
-
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
|
327
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.read"
|
|
328
|
-
end
|
|
329
|
-
# resource path
|
|
330
|
-
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', '/'))
|
|
331
|
-
|
|
332
|
-
# query parameters
|
|
333
|
-
query_params = opts[:query_params] || {}
|
|
334
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
335
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
336
|
-
|
|
337
|
-
# header parameters
|
|
338
|
-
header_params = opts[:header_params] || {}
|
|
339
|
-
# HTTP header 'Accept' (if needed)
|
|
340
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
341
|
-
|
|
342
|
-
# form parameters
|
|
343
|
-
form_params = opts[:form_params] || {}
|
|
344
|
-
|
|
345
|
-
# http body (model)
|
|
346
|
-
post_body = opts[:body]
|
|
347
|
-
|
|
348
|
-
# return_type
|
|
349
|
-
return_type = opts[:return_type] || 'ContainerContentRedirectContentGuardResponse'
|
|
350
|
-
|
|
351
|
-
# auth_names
|
|
352
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
353
|
-
|
|
354
|
-
new_options = opts.merge(
|
|
355
|
-
:header_params => header_params,
|
|
356
|
-
:query_params => query_params,
|
|
357
|
-
:form_params => form_params,
|
|
358
|
-
:body => post_body,
|
|
359
|
-
:auth_names => auth_names,
|
|
360
|
-
:return_type => return_type
|
|
361
|
-
)
|
|
362
|
-
|
|
363
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
364
|
-
if @api_client.config.debugging
|
|
365
|
-
@api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
366
|
-
end
|
|
367
|
-
return data, status_code, headers
|
|
368
|
-
end
|
|
369
|
-
|
|
370
|
-
# Update a content redirect content guard
|
|
371
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
372
|
-
# @param container_content_redirect_content_guard_href [String]
|
|
373
|
-
# @param container_content_redirect_content_guard [ContainerContentRedirectContentGuard]
|
|
374
|
-
# @param [Hash] opts the optional parameters
|
|
375
|
-
# @return [ContainerContentRedirectContentGuardResponse]
|
|
376
|
-
def update(container_content_redirect_content_guard_href, container_content_redirect_content_guard, opts = {})
|
|
377
|
-
data, _status_code, _headers = update_with_http_info(container_content_redirect_content_guard_href, container_content_redirect_content_guard, opts)
|
|
378
|
-
data
|
|
379
|
-
end
|
|
380
|
-
|
|
381
|
-
# Update a content redirect content guard
|
|
382
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
383
|
-
# @param container_content_redirect_content_guard_href [String]
|
|
384
|
-
# @param container_content_redirect_content_guard [ContainerContentRedirectContentGuard]
|
|
385
|
-
# @param [Hash] opts the optional parameters
|
|
386
|
-
# @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
|
|
387
|
-
def update_with_http_info(container_content_redirect_content_guard_href, container_content_redirect_content_guard, opts = {})
|
|
388
|
-
if @api_client.config.debugging
|
|
389
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.update ...'
|
|
390
|
-
end
|
|
391
|
-
# verify the required parameter 'container_content_redirect_content_guard_href' is set
|
|
392
|
-
if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
|
|
393
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.update"
|
|
394
|
-
end
|
|
395
|
-
# verify the required parameter 'container_content_redirect_content_guard' is set
|
|
396
|
-
if @api_client.config.client_side_validation && container_content_redirect_content_guard.nil?
|
|
397
|
-
fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard' when calling ContentguardsContentRedirectApi.update"
|
|
398
|
-
end
|
|
399
|
-
# resource path
|
|
400
|
-
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', '/'))
|
|
401
|
-
|
|
402
|
-
# query parameters
|
|
403
|
-
query_params = opts[:query_params] || {}
|
|
404
|
-
|
|
405
|
-
# header parameters
|
|
406
|
-
header_params = opts[:header_params] || {}
|
|
407
|
-
# HTTP header 'Accept' (if needed)
|
|
408
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
409
|
-
# HTTP header 'Content-Type'
|
|
410
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
411
|
-
|
|
412
|
-
# form parameters
|
|
413
|
-
form_params = opts[:form_params] || {}
|
|
414
|
-
|
|
415
|
-
# http body (model)
|
|
416
|
-
post_body = opts[:body] || @api_client.object_to_http_body(container_content_redirect_content_guard)
|
|
417
|
-
|
|
418
|
-
# return_type
|
|
419
|
-
return_type = opts[:return_type] || 'ContainerContentRedirectContentGuardResponse'
|
|
420
|
-
|
|
421
|
-
# auth_names
|
|
422
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
423
|
-
|
|
424
|
-
new_options = opts.merge(
|
|
425
|
-
:header_params => header_params,
|
|
426
|
-
:query_params => query_params,
|
|
427
|
-
:form_params => form_params,
|
|
428
|
-
:body => post_body,
|
|
429
|
-
:auth_names => auth_names,
|
|
430
|
-
:return_type => return_type
|
|
431
|
-
)
|
|
432
|
-
|
|
433
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
434
|
-
if @api_client.config.debugging
|
|
435
|
-
@api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
436
|
-
end
|
|
437
|
-
return data, status_code, headers
|
|
438
|
-
end
|
|
439
|
-
end
|
|
440
|
-
end
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Pulp 3 API
|
|
3
|
-
|
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: v3
|
|
7
|
-
Contact: pulp-list@redhat.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.3.1
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
|
|
16
|
-
# Unit tests for PulpContainerClient::ContentguardsContentRedirectApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'ContentguardsContentRedirectApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = PulpContainerClient::ContentguardsContentRedirectApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of ContentguardsContentRedirectApi' do
|
|
30
|
-
it 'should create an instance of ContentguardsContentRedirectApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(PulpContainerClient::ContentguardsContentRedirectApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for create
|
|
36
|
-
# Create a content redirect content guard
|
|
37
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
38
|
-
# @param container_content_redirect_content_guard
|
|
39
|
-
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [ContainerContentRedirectContentGuardResponse]
|
|
41
|
-
describe 'create test' do
|
|
42
|
-
it 'should work' do
|
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# unit tests for delete
|
|
48
|
-
# Delete a content redirect content guard
|
|
49
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
50
|
-
# @param container_content_redirect_content_guard_href
|
|
51
|
-
# @param [Hash] opts the optional parameters
|
|
52
|
-
# @return [nil]
|
|
53
|
-
describe 'delete test' do
|
|
54
|
-
it 'should work' do
|
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
# unit tests for list
|
|
60
|
-
# List content redirect content guards
|
|
61
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
62
|
-
# @param [Hash] opts the optional parameters
|
|
63
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
|
64
|
-
# @option opts [String] :name
|
|
65
|
-
# @option opts [String] :name__contains Filter results where name contains value
|
|
66
|
-
# @option opts [String] :name__icontains Filter results where name contains value
|
|
67
|
-
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
68
|
-
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
69
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
70
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
71
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
72
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
73
|
-
# @return [PaginatedcontainerContentRedirectContentGuardResponseList]
|
|
74
|
-
describe 'list test' do
|
|
75
|
-
it 'should work' do
|
|
76
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
# unit tests for partial_update
|
|
81
|
-
# Update a content redirect content guard
|
|
82
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
83
|
-
# @param container_content_redirect_content_guard_href
|
|
84
|
-
# @param patchedcontainer_content_redirect_content_guard
|
|
85
|
-
# @param [Hash] opts the optional parameters
|
|
86
|
-
# @return [ContainerContentRedirectContentGuardResponse]
|
|
87
|
-
describe 'partial_update test' do
|
|
88
|
-
it 'should work' do
|
|
89
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
# unit tests for read
|
|
94
|
-
# Inspect a content redirect content guard
|
|
95
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
96
|
-
# @param container_content_redirect_content_guard_href
|
|
97
|
-
# @param [Hash] opts the optional parameters
|
|
98
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
99
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
100
|
-
# @return [ContainerContentRedirectContentGuardResponse]
|
|
101
|
-
describe 'read test' do
|
|
102
|
-
it 'should work' do
|
|
103
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
104
|
-
end
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
# unit tests for update
|
|
108
|
-
# Update a content redirect content guard
|
|
109
|
-
# Content guard to protect preauthenticated redirects to the content app.
|
|
110
|
-
# @param container_content_redirect_content_guard_href
|
|
111
|
-
# @param container_content_redirect_content_guard
|
|
112
|
-
# @param [Hash] opts the optional parameters
|
|
113
|
-
# @return [ContainerContentRedirectContentGuardResponse]
|
|
114
|
-
describe 'update test' do
|
|
115
|
-
it 'should work' do
|
|
116
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
117
|
-
end
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
end
|