pulpcore_client 3.17.8 → 3.18.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 +22 -4
- data/docs/AccessPolicy.md +2 -2
- data/docs/AccessPolicyResponse.md +2 -2
- data/docs/ContentRedirectContentGuard.md +19 -0
- data/docs/ContentRedirectContentGuardResponse.md +23 -0
- data/docs/ContentguardsContentRedirectApi.md +361 -0
- data/docs/PaginatedContentRedirectContentGuardResponseList.md +23 -0
- data/docs/PaginatedTaskScheduleResponseList.md +23 -0
- data/docs/PatchedContentRedirectContentGuard.md +19 -0
- data/docs/TaskScheduleResponse.md +29 -0
- data/docs/TaskSchedulesApi.md +368 -0
- data/docs/WorkerResponse.md +6 -4
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +440 -0
- data/lib/pulpcore_client/api/task_schedules_api.rb +441 -0
- data/lib/pulpcore_client/api_client.rb +4 -1
- data/lib/pulpcore_client/configuration.rb +0 -1
- data/lib/pulpcore_client/models/access_policy.rb +0 -10
- data/lib/pulpcore_client/models/access_policy_response.rb +0 -10
- data/lib/pulpcore_client/models/content_redirect_content_guard.rb +258 -0
- data/lib/pulpcore_client/models/content_redirect_content_guard_response.rb +243 -0
- data/lib/pulpcore_client/models/paginated_content_redirect_content_guard_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_task_schedule_response_list.rb +237 -0
- data/lib/pulpcore_client/models/patched_content_redirect_content_guard.rb +249 -0
- data/lib/pulpcore_client/models/task_schedule_response.rb +282 -0
- data/lib/pulpcore_client/models/worker_response.rb +23 -13
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +8 -0
- data/spec/api/contentguards_content_redirect_api_spec.rb +120 -0
- data/spec/api/task_schedules_api_spec.rb +119 -0
- data/spec/models/content_redirect_content_guard_response_spec.rb +59 -0
- data/spec/models/content_redirect_content_guard_spec.rb +47 -0
- data/spec/models/paginated_content_redirect_content_guard_response_list_spec.rb +59 -0
- data/spec/models/paginated_task_schedule_response_list_spec.rb +59 -0
- data/spec/models/patched_content_redirect_content_guard_spec.rb +47 -0
- data/spec/models/task_schedule_response_spec.rb +77 -0
- data/spec/models/worker_response_spec.rb +8 -2
- metadata +147 -115
@@ -0,0 +1,440 @@
|
|
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 PulpcoreClient
|
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 content_redirect_content_guard [ContentRedirectContentGuard]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [ContentRedirectContentGuardResponse]
|
27
|
+
def create(content_redirect_content_guard, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(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 content_redirect_content_guard [ContentRedirectContentGuard]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(ContentRedirectContentGuardResponse, Integer, Hash)>] ContentRedirectContentGuardResponse data, response status code and response headers
|
37
|
+
def create_with_http_info(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 'content_redirect_content_guard' is set
|
42
|
+
if @api_client.config.client_side_validation && content_redirect_content_guard.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard' when calling ContentguardsContentRedirectApi.create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/contentguards/core/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(content_redirect_content_guard)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'ContentRedirectContentGuardResponse'
|
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 content_redirect_content_guard_href [String]
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [nil]
|
91
|
+
def delete(content_redirect_content_guard_href, opts = {})
|
92
|
+
delete_with_http_info(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 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(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 'content_redirect_content_guard_href' is set
|
106
|
+
if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.delete"
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '{content_redirect_content_guard_href}'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(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 [PaginatedContentRedirectContentGuardResponseList]
|
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<(PaginatedContentRedirectContentGuardResponseList, Integer, Hash)>] PaginatedContentRedirectContentGuardResponseList 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/core/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] || 'PaginatedContentRedirectContentGuardResponseList'
|
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 content_redirect_content_guard_href [String]
|
235
|
+
# @param patched_content_redirect_content_guard [PatchedContentRedirectContentGuard]
|
236
|
+
# @param [Hash] opts the optional parameters
|
237
|
+
# @return [ContentRedirectContentGuardResponse]
|
238
|
+
def partial_update(content_redirect_content_guard_href, patched_content_redirect_content_guard, opts = {})
|
239
|
+
data, _status_code, _headers = partial_update_with_http_info(content_redirect_content_guard_href, patched_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 content_redirect_content_guard_href [String]
|
246
|
+
# @param patched_content_redirect_content_guard [PatchedContentRedirectContentGuard]
|
247
|
+
# @param [Hash] opts the optional parameters
|
248
|
+
# @return [Array<(ContentRedirectContentGuardResponse, Integer, Hash)>] ContentRedirectContentGuardResponse data, response status code and response headers
|
249
|
+
def partial_update_with_http_info(content_redirect_content_guard_href, patched_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 'content_redirect_content_guard_href' is set
|
254
|
+
if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
|
255
|
+
fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.partial_update"
|
256
|
+
end
|
257
|
+
# verify the required parameter 'patched_content_redirect_content_guard' is set
|
258
|
+
if @api_client.config.client_side_validation && patched_content_redirect_content_guard.nil?
|
259
|
+
fail ArgumentError, "Missing the required parameter 'patched_content_redirect_content_guard' when calling ContentguardsContentRedirectApi.partial_update"
|
260
|
+
end
|
261
|
+
# resource path
|
262
|
+
local_var_path = '{content_redirect_content_guard_href}'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(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(patched_content_redirect_content_guard)
|
279
|
+
|
280
|
+
# return_type
|
281
|
+
return_type = opts[:return_type] || 'ContentRedirectContentGuardResponse'
|
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 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 [ContentRedirectContentGuardResponse]
|
309
|
+
def read(content_redirect_content_guard_href, opts = {})
|
310
|
+
data, _status_code, _headers = read_with_http_info(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 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<(ContentRedirectContentGuardResponse, Integer, Hash)>] ContentRedirectContentGuardResponse data, response status code and response headers
|
321
|
+
def read_with_http_info(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 'content_redirect_content_guard_href' is set
|
326
|
+
if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
|
327
|
+
fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.read"
|
328
|
+
end
|
329
|
+
# resource path
|
330
|
+
local_var_path = '{content_redirect_content_guard_href}'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(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] || 'ContentRedirectContentGuardResponse'
|
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 content_redirect_content_guard_href [String]
|
373
|
+
# @param content_redirect_content_guard [ContentRedirectContentGuard]
|
374
|
+
# @param [Hash] opts the optional parameters
|
375
|
+
# @return [ContentRedirectContentGuardResponse]
|
376
|
+
def update(content_redirect_content_guard_href, content_redirect_content_guard, opts = {})
|
377
|
+
data, _status_code, _headers = update_with_http_info(content_redirect_content_guard_href, 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 content_redirect_content_guard_href [String]
|
384
|
+
# @param content_redirect_content_guard [ContentRedirectContentGuard]
|
385
|
+
# @param [Hash] opts the optional parameters
|
386
|
+
# @return [Array<(ContentRedirectContentGuardResponse, Integer, Hash)>] ContentRedirectContentGuardResponse data, response status code and response headers
|
387
|
+
def update_with_http_info(content_redirect_content_guard_href, 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 'content_redirect_content_guard_href' is set
|
392
|
+
if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
|
393
|
+
fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.update"
|
394
|
+
end
|
395
|
+
# verify the required parameter 'content_redirect_content_guard' is set
|
396
|
+
if @api_client.config.client_side_validation && content_redirect_content_guard.nil?
|
397
|
+
fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard' when calling ContentguardsContentRedirectApi.update"
|
398
|
+
end
|
399
|
+
# resource path
|
400
|
+
local_var_path = '{content_redirect_content_guard_href}'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(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(content_redirect_content_guard)
|
417
|
+
|
418
|
+
# return_type
|
419
|
+
return_type = opts[:return_type] || 'ContentRedirectContentGuardResponse'
|
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
|