authentik-api 2026.5.6 → 2026.8.0.rc1
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_API.md +104 -8
- data/lib/authentik/api/api/admin_api.rb +3 -0
- data/lib/authentik/api/api/core_api.rb +651 -27
- data/lib/authentik/api/api/endpoints_api.rb +7 -7
- data/lib/authentik/api/api/events_api.rb +35 -2
- data/lib/authentik/api/api/lifecycle_api.rb +258 -0
- data/lib/authentik/api/api/providers_api.rb +401 -0
- data/lib/authentik/api/api/requests_api.rb +1858 -0
- data/lib/authentik/api/api/sources_api.rb +6 -3
- data/lib/authentik/api/configuration.rb +14 -0
- data/lib/authentik/api/inflector.rb +2 -1
- data/lib/authentik/api/models/app_enum.rb +3 -1
- data/lib/authentik/api/models/application.rb +27 -1
- data/lib/authentik/api/models/authenticator_web_authn_stage.rb +1 -11
- data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +1 -11
- data/lib/authentik/api/models/brand.rb +21 -1
- data/lib/authentik/api/models/brand_request.rb +21 -1
- data/lib/authentik/api/models/captcha_stage.rb +32 -1
- data/lib/authentik/api/models/captcha_stage_request.rb +32 -1
- data/lib/authentik/api/models/compatibility_mode_enum.rb +2 -1
- data/lib/authentik/api/models/content_type.rb +30 -4
- data/lib/authentik/api/models/current_brand.rb +19 -1
- data/lib/authentik/api/models/current_brand_flags.rb +1 -55
- data/lib/authentik/api/models/device_user_binding.rb +39 -1
- data/lib/authentik/api/models/event_actions.rb +6 -1
- data/lib/authentik/api/models/grant_request.rb +382 -0
- data/lib/authentik/api/models/{reviewer_group.rb → grant_request_create_request.rb} +29 -42
- data/lib/authentik/api/models/{grant_types_enum.rb → grant_type_enum.rb} +5 -4
- data/lib/authentik/api/models/last_task_status_enum.rb +2 -1
- data/lib/authentik/api/models/ldap_outpost_config.rb +1 -1
- data/lib/authentik/api/models/ldap_source.rb +14 -4
- data/lib/authentik/api/models/ldap_source_request.rb +14 -4
- data/lib/authentik/api/models/lifecycle_rule.rb +2 -2
- data/lib/authentik/api/models/model_enum.rb +8 -1
- data/lib/authentik/api/models/notification_mode_enum.rb +35 -0
- data/lib/authentik/api/models/o_auth2_dynamic_client_registration.rb +291 -0
- data/lib/authentik/api/models/o_auth2_dynamic_client_registration_request.rb +303 -0
- data/lib/authentik/api/models/o_auth2_provider.rb +1 -1
- data/lib/authentik/api/models/o_auth2_provider_request.rb +1 -1
- data/lib/authentik/api/models/o_auth_source.rb +0 -60
- data/lib/authentik/api/models/o_auth_source_request.rb +0 -60
- data/lib/authentik/api/models/object_attribute.rb +420 -0
- data/lib/authentik/api/models/object_attribute_request.rb +358 -0
- data/lib/authentik/api/models/object_attribute_type_enum.rb +35 -0
- data/lib/authentik/api/models/offboarding_action_enum.rb +34 -0
- data/lib/authentik/api/models/offboarding_status_enum.rb +36 -0
- data/lib/authentik/api/models/paginated_grant_request_list.rb +214 -0
- data/lib/authentik/api/models/paginated_o_auth2_dynamic_client_registration_list.rb +214 -0
- data/lib/authentik/api/models/paginated_object_attribute_list.rb +214 -0
- data/lib/authentik/api/models/paginated_request_rule_binding_list.rb +214 -0
- data/lib/authentik/api/models/paginated_request_rule_child_binding_list.rb +214 -0
- data/lib/authentik/api/models/paginated_request_rule_list.rb +214 -0
- data/lib/authentik/api/models/paginated_requestable_target_list.rb +214 -0
- data/lib/authentik/api/models/paginated_user_offboarding_list.rb +214 -0
- data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +1 -11
- data/lib/authentik/api/models/patched_brand_request.rb +21 -1
- data/lib/authentik/api/models/patched_captcha_stage_request.rb +32 -1
- data/lib/authentik/api/models/patched_grant_request_fulfill_request.rb +175 -0
- data/lib/authentik/api/models/patched_ldap_source_request.rb +14 -4
- data/lib/authentik/api/models/patched_o_auth2_dynamic_client_registration_request.rb +286 -0
- data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +1 -1
- data/lib/authentik/api/models/patched_o_auth_source_request.rb +0 -60
- data/lib/authentik/api/models/patched_object_attribute_request.rb +320 -0
- data/lib/authentik/api/models/patched_request_rule_binding_request.rb +249 -0
- data/lib/authentik/api/models/patched_request_rule_child_binding_request.rb +159 -0
- data/lib/authentik/api/models/patched_request_rule_request.rb +277 -0
- data/lib/authentik/api/models/patched_saml_source_request.rb +8 -8
- data/lib/authentik/api/models/patched_settings_request.rb +30 -1
- data/lib/authentik/api/models/patched_settings_request_flags.rb +1 -1
- data/lib/authentik/api/models/patched_ws_federation_provider_request.rb +11 -1
- data/lib/authentik/api/models/policy_binding.rb +42 -4
- data/lib/authentik/api/models/provider_type_enum.rb +2 -3
- data/lib/authentik/api/models/related_rule.rb +2 -2
- data/lib/authentik/api/models/related_target.rb +266 -0
- data/lib/authentik/api/models/request_content_type_enum.rb +34 -0
- data/lib/authentik/api/models/request_rule.rb +329 -0
- data/lib/authentik/api/models/request_rule_binding.rb +353 -0
- data/lib/authentik/api/models/request_rule_binding_request.rb +283 -0
- data/lib/authentik/api/models/{reviewer_user.rb → request_rule_child_binding.rb} +34 -99
- data/lib/authentik/api/models/request_rule_child_binding_request.rb +193 -0
- data/lib/authentik/api/models/request_rule_request.rb +284 -0
- data/lib/authentik/api/models/request_status.rb +36 -0
- data/lib/authentik/api/models/requestable_target.rb +278 -0
- data/lib/authentik/api/models/review.rb +1 -1
- data/lib/authentik/api/models/saml_source.rb +35 -8
- data/lib/authentik/api/models/saml_source_request.rb +8 -8
- data/lib/authentik/api/models/saml_version_enum.rb +34 -0
- data/lib/authentik/api/models/session_user.rb +32 -4
- data/lib/authentik/api/models/settings.rb +30 -1
- data/lib/authentik/api/models/settings_request.rb +30 -1
- data/lib/authentik/api/models/system_info.rb +31 -4
- data/lib/authentik/api/models/task_aggregated_status_enum.rb +2 -1
- data/lib/authentik/api/models/task_status_enum.rb +2 -1
- data/lib/authentik/api/models/user_offboarding.rb +379 -0
- data/lib/authentik/api/models/user_offboarding_request.rb +237 -0
- data/lib/authentik/api/models/user_self.rb +28 -1
- data/lib/authentik/api/models/user_switch_action_enum.rb +34 -0
- data/lib/authentik/api/models/user_switch_request.rb +173 -0
- data/lib/authentik/api/models/user_switch_response.rb +159 -0
- data/lib/authentik/api/models/ws_federation_provider.rb +41 -4
- data/lib/authentik/api/models/ws_federation_provider_request.rb +11 -1
- data/lib/authentik/api/version.rb +1 -1
- data/spec/api/admin_api_spec.rb +1 -0
- data/spec/api/core_api_spec.rb +119 -0
- data/spec/api/events_api_spec.rb +11 -0
- data/spec/api/lifecycle_api_spec.rb +47 -0
- data/spec/api/providers_api_spec.rb +73 -0
- data/spec/api/requests_api_spec.rb +365 -0
- data/spec/api/sources_api_spec.rb +2 -1
- data/spec/models/application_spec.rb +6 -0
- data/spec/models/authenticator_web_authn_stage_request_spec.rb +0 -6
- data/spec/models/authenticator_web_authn_stage_spec.rb +0 -6
- data/spec/models/brand_request_spec.rb +12 -0
- data/spec/models/brand_spec.rb +12 -0
- data/spec/models/captcha_stage_request_spec.rb +6 -0
- data/spec/models/captcha_stage_spec.rb +6 -0
- data/spec/models/content_type_spec.rb +6 -0
- data/spec/models/current_brand_flags_spec.rb +0 -12
- data/spec/models/current_brand_spec.rb +12 -0
- data/spec/models/device_user_binding_spec.rb +12 -0
- data/spec/models/grant_request_create_request_spec.rb +36 -0
- data/spec/models/grant_request_spec.rb +90 -0
- data/spec/models/{grant_types_enum_spec.rb → grant_type_enum_spec.rb} +6 -6
- data/spec/models/ldap_source_request_spec.rb +6 -0
- data/spec/models/ldap_source_spec.rb +6 -0
- data/spec/models/notification_mode_enum_spec.rb +24 -0
- data/spec/models/o_auth2_dynamic_client_registration_request_spec.rb +78 -0
- data/spec/models/o_auth2_dynamic_client_registration_spec.rb +84 -0
- data/spec/models/object_attribute_request_spec.rb +84 -0
- data/spec/models/object_attribute_spec.rb +108 -0
- data/spec/models/object_attribute_type_enum_spec.rb +24 -0
- data/spec/models/offboarding_action_enum_spec.rb +24 -0
- data/spec/models/offboarding_status_enum_spec.rb +24 -0
- data/spec/models/paginated_grant_request_list_spec.rb +42 -0
- data/spec/models/paginated_o_auth2_dynamic_client_registration_list_spec.rb +42 -0
- data/spec/models/paginated_object_attribute_list_spec.rb +42 -0
- data/spec/models/paginated_request_rule_binding_list_spec.rb +42 -0
- data/spec/models/paginated_request_rule_child_binding_list_spec.rb +42 -0
- data/spec/models/paginated_request_rule_list_spec.rb +42 -0
- data/spec/models/paginated_requestable_target_list_spec.rb +42 -0
- data/spec/models/paginated_user_offboarding_list_spec.rb +42 -0
- data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +0 -6
- data/spec/models/patched_brand_request_spec.rb +12 -0
- data/spec/models/patched_captcha_stage_request_spec.rb +6 -0
- data/spec/models/patched_grant_request_fulfill_request_spec.rb +36 -0
- data/spec/models/patched_ldap_source_request_spec.rb +6 -0
- data/spec/models/patched_o_auth2_dynamic_client_registration_request_spec.rb +78 -0
- data/spec/models/patched_object_attribute_request_spec.rb +84 -0
- data/spec/models/patched_request_rule_binding_request_spec.rb +60 -0
- data/spec/models/patched_request_rule_child_binding_request_spec.rb +42 -0
- data/spec/models/patched_request_rule_request_spec.rb +72 -0
- data/spec/models/patched_saml_source_request_spec.rb +1 -1
- data/spec/models/patched_settings_request_spec.rb +6 -0
- data/spec/models/patched_ws_federation_provider_request_spec.rb +6 -0
- data/spec/models/policy_binding_spec.rb +12 -0
- data/spec/models/related_target_spec.rb +54 -0
- data/spec/models/request_content_type_enum_spec.rb +24 -0
- data/spec/models/request_rule_binding_request_spec.rb +60 -0
- data/spec/models/request_rule_binding_spec.rb +84 -0
- data/spec/models/request_rule_child_binding_request_spec.rb +42 -0
- data/spec/models/{reviewer_user_spec.rb → request_rule_child_binding_spec.rb} +8 -14
- data/spec/models/request_rule_request_spec.rb +72 -0
- data/spec/models/request_rule_spec.rb +84 -0
- data/spec/models/request_status_spec.rb +24 -0
- data/spec/models/requestable_target_spec.rb +60 -0
- data/spec/models/saml_source_request_spec.rb +1 -1
- data/spec/models/saml_source_spec.rb +7 -1
- data/spec/models/saml_version_enum_spec.rb +24 -0
- data/spec/models/session_user_spec.rb +6 -0
- data/spec/models/settings_request_spec.rb +6 -0
- data/spec/models/settings_spec.rb +6 -0
- data/spec/models/system_info_spec.rb +6 -0
- data/spec/models/user_offboarding_request_spec.rb +54 -0
- data/spec/models/user_offboarding_spec.rb +90 -0
- data/spec/models/user_self_spec.rb +6 -0
- data/spec/models/user_switch_action_enum_spec.rb +24 -0
- data/spec/models/{reviewer_group_spec.rb → user_switch_request_spec.rb} +8 -8
- data/spec/models/user_switch_response_spec.rb +30 -0
- data/spec/models/ws_federation_provider_request_spec.rb +6 -0
- data/spec/models/ws_federation_provider_spec.rb +12 -0
- metadata +127 -10
|
@@ -0,0 +1,1858 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'cgi'
|
|
8
|
+
|
|
9
|
+
module Authentik::Api
|
|
10
|
+
class RequestsApi
|
|
11
|
+
attr_accessor :api_client
|
|
12
|
+
|
|
13
|
+
def initialize(api_client = ApiClient.default)
|
|
14
|
+
@api_client = api_client
|
|
15
|
+
end
|
|
16
|
+
# @param grant_request_create_request [GrantRequestCreateRequest]
|
|
17
|
+
# @param [Hash] opts the optional parameters
|
|
18
|
+
# @return [Link]
|
|
19
|
+
def requests_grant_requests_create(grant_request_create_request, opts = {})
|
|
20
|
+
data, _status_code, _headers = requests_grant_requests_create_with_http_info(grant_request_create_request, opts)
|
|
21
|
+
data
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# @param grant_request_create_request [GrantRequestCreateRequest]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [Array<(Link, Integer, Hash)>] Link data, response status code and response headers
|
|
27
|
+
def requests_grant_requests_create_with_http_info(grant_request_create_request, opts = {})
|
|
28
|
+
if @api_client.config.debugging
|
|
29
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_grant_requests_create ...'
|
|
30
|
+
end
|
|
31
|
+
# verify the required parameter 'grant_request_create_request' is set
|
|
32
|
+
if @api_client.config.client_side_validation && grant_request_create_request.nil?
|
|
33
|
+
fail ArgumentError, "Missing the required parameter 'grant_request_create_request' when calling RequestsApi.requests_grant_requests_create"
|
|
34
|
+
end
|
|
35
|
+
# resource path
|
|
36
|
+
local_var_path = '/requests/grant-requests/'
|
|
37
|
+
|
|
38
|
+
# query parameters
|
|
39
|
+
query_params = opts[:query_params] || {}
|
|
40
|
+
|
|
41
|
+
# header parameters
|
|
42
|
+
header_params = opts[:header_params] || {}
|
|
43
|
+
# HTTP header 'Accept' (if needed)
|
|
44
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
45
|
+
# HTTP header 'Content-Type'
|
|
46
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
47
|
+
if !content_type.nil?
|
|
48
|
+
header_params['Content-Type'] = content_type
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# form parameters
|
|
52
|
+
form_params = opts[:form_params] || {}
|
|
53
|
+
|
|
54
|
+
# http body (model)
|
|
55
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(grant_request_create_request)
|
|
56
|
+
|
|
57
|
+
# return_type
|
|
58
|
+
return_type = opts[:debug_return_type] || 'Link'
|
|
59
|
+
|
|
60
|
+
# auth_names
|
|
61
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
62
|
+
|
|
63
|
+
new_options = opts.merge(
|
|
64
|
+
:operation => :"RequestsApi.requests_grant_requests_create",
|
|
65
|
+
:header_params => header_params,
|
|
66
|
+
:query_params => query_params,
|
|
67
|
+
:form_params => form_params,
|
|
68
|
+
:body => post_body,
|
|
69
|
+
:auth_names => auth_names,
|
|
70
|
+
:return_type => return_type
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
74
|
+
if @api_client.config.debugging
|
|
75
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_grant_requests_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
76
|
+
end
|
|
77
|
+
return data, status_code, headers
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# @param uuid [String] A UUID string identifying this Grant Request.
|
|
81
|
+
# @param [Hash] opts the optional parameters
|
|
82
|
+
# @return [nil]
|
|
83
|
+
def requests_grant_requests_destroy(uuid, opts = {})
|
|
84
|
+
requests_grant_requests_destroy_with_http_info(uuid, opts)
|
|
85
|
+
nil
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# @param uuid [String] A UUID string identifying this Grant Request.
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
91
|
+
def requests_grant_requests_destroy_with_http_info(uuid, opts = {})
|
|
92
|
+
if @api_client.config.debugging
|
|
93
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_grant_requests_destroy ...'
|
|
94
|
+
end
|
|
95
|
+
# verify the required parameter 'uuid' is set
|
|
96
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
97
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_grant_requests_destroy"
|
|
98
|
+
end
|
|
99
|
+
# resource path
|
|
100
|
+
local_var_path = '/requests/grant-requests/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
101
|
+
|
|
102
|
+
# query parameters
|
|
103
|
+
query_params = opts[:query_params] || {}
|
|
104
|
+
|
|
105
|
+
# header parameters
|
|
106
|
+
header_params = opts[:header_params] || {}
|
|
107
|
+
# HTTP header 'Accept' (if needed)
|
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
109
|
+
|
|
110
|
+
# form parameters
|
|
111
|
+
form_params = opts[:form_params] || {}
|
|
112
|
+
|
|
113
|
+
# http body (model)
|
|
114
|
+
post_body = opts[:debug_body]
|
|
115
|
+
|
|
116
|
+
# return_type
|
|
117
|
+
return_type = opts[:debug_return_type]
|
|
118
|
+
|
|
119
|
+
# auth_names
|
|
120
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
121
|
+
|
|
122
|
+
new_options = opts.merge(
|
|
123
|
+
:operation => :"RequestsApi.requests_grant_requests_destroy",
|
|
124
|
+
:header_params => header_params,
|
|
125
|
+
:query_params => query_params,
|
|
126
|
+
:form_params => form_params,
|
|
127
|
+
:body => post_body,
|
|
128
|
+
:auth_names => auth_names,
|
|
129
|
+
:return_type => return_type
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
133
|
+
if @api_client.config.debugging
|
|
134
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_grant_requests_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
135
|
+
end
|
|
136
|
+
return data, status_code, headers
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# @param uuid [String] A UUID string identifying this Grant Request.
|
|
140
|
+
# @param [Hash] opts the optional parameters
|
|
141
|
+
# @option opts [PatchedGrantRequestFulfillRequest] :patched_grant_request_fulfill_request
|
|
142
|
+
# @return [nil]
|
|
143
|
+
def requests_grant_requests_fulfill_partial_update(uuid, opts = {})
|
|
144
|
+
requests_grant_requests_fulfill_partial_update_with_http_info(uuid, opts)
|
|
145
|
+
nil
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# @param uuid [String] A UUID string identifying this Grant Request.
|
|
149
|
+
# @param [Hash] opts the optional parameters
|
|
150
|
+
# @option opts [PatchedGrantRequestFulfillRequest] :patched_grant_request_fulfill_request
|
|
151
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
152
|
+
def requests_grant_requests_fulfill_partial_update_with_http_info(uuid, opts = {})
|
|
153
|
+
if @api_client.config.debugging
|
|
154
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_grant_requests_fulfill_partial_update ...'
|
|
155
|
+
end
|
|
156
|
+
# verify the required parameter 'uuid' is set
|
|
157
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
158
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_grant_requests_fulfill_partial_update"
|
|
159
|
+
end
|
|
160
|
+
# resource path
|
|
161
|
+
local_var_path = '/requests/grant-requests/{uuid}/fulfill/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
162
|
+
|
|
163
|
+
# query parameters
|
|
164
|
+
query_params = opts[:query_params] || {}
|
|
165
|
+
|
|
166
|
+
# header parameters
|
|
167
|
+
header_params = opts[:header_params] || {}
|
|
168
|
+
# HTTP header 'Accept' (if needed)
|
|
169
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
170
|
+
# HTTP header 'Content-Type'
|
|
171
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
172
|
+
if !content_type.nil?
|
|
173
|
+
header_params['Content-Type'] = content_type
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# form parameters
|
|
177
|
+
form_params = opts[:form_params] || {}
|
|
178
|
+
|
|
179
|
+
# http body (model)
|
|
180
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_grant_request_fulfill_request'])
|
|
181
|
+
|
|
182
|
+
# return_type
|
|
183
|
+
return_type = opts[:debug_return_type]
|
|
184
|
+
|
|
185
|
+
# auth_names
|
|
186
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
187
|
+
|
|
188
|
+
new_options = opts.merge(
|
|
189
|
+
:operation => :"RequestsApi.requests_grant_requests_fulfill_partial_update",
|
|
190
|
+
:header_params => header_params,
|
|
191
|
+
:query_params => query_params,
|
|
192
|
+
:form_params => form_params,
|
|
193
|
+
:body => post_body,
|
|
194
|
+
:auth_names => auth_names,
|
|
195
|
+
:return_type => return_type
|
|
196
|
+
)
|
|
197
|
+
|
|
198
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
199
|
+
if @api_client.config.debugging
|
|
200
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_grant_requests_fulfill_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
201
|
+
end
|
|
202
|
+
return data, status_code, headers
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# @param [Hash] opts the optional parameters
|
|
206
|
+
# @option opts [Integer] :created_by
|
|
207
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
208
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
209
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
210
|
+
# @option opts [String] :search A search term.
|
|
211
|
+
# @option opts [RequestStatus] :status
|
|
212
|
+
# @return [PaginatedGrantRequestList]
|
|
213
|
+
def requests_grant_requests_list(opts = {})
|
|
214
|
+
data, _status_code, _headers = requests_grant_requests_list_with_http_info(opts)
|
|
215
|
+
data
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# @param [Hash] opts the optional parameters
|
|
219
|
+
# @option opts [Integer] :created_by
|
|
220
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
221
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
222
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
223
|
+
# @option opts [String] :search A search term.
|
|
224
|
+
# @option opts [RequestStatus] :status
|
|
225
|
+
# @return [Array<(PaginatedGrantRequestList, Integer, Hash)>] PaginatedGrantRequestList data, response status code and response headers
|
|
226
|
+
def requests_grant_requests_list_with_http_info(opts = {})
|
|
227
|
+
if @api_client.config.debugging
|
|
228
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_grant_requests_list ...'
|
|
229
|
+
end
|
|
230
|
+
# resource path
|
|
231
|
+
local_var_path = '/requests/grant-requests/'
|
|
232
|
+
|
|
233
|
+
# query parameters
|
|
234
|
+
query_params = opts[:query_params] || {}
|
|
235
|
+
query_params[:'created_by'] = opts[:'created_by'] if !opts[:'created_by'].nil?
|
|
236
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
237
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
238
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
239
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
240
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
241
|
+
|
|
242
|
+
# header parameters
|
|
243
|
+
header_params = opts[:header_params] || {}
|
|
244
|
+
# HTTP header 'Accept' (if needed)
|
|
245
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
246
|
+
|
|
247
|
+
# form parameters
|
|
248
|
+
form_params = opts[:form_params] || {}
|
|
249
|
+
|
|
250
|
+
# http body (model)
|
|
251
|
+
post_body = opts[:debug_body]
|
|
252
|
+
|
|
253
|
+
# return_type
|
|
254
|
+
return_type = opts[:debug_return_type] || 'PaginatedGrantRequestList'
|
|
255
|
+
|
|
256
|
+
# auth_names
|
|
257
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
258
|
+
|
|
259
|
+
new_options = opts.merge(
|
|
260
|
+
:operation => :"RequestsApi.requests_grant_requests_list",
|
|
261
|
+
:header_params => header_params,
|
|
262
|
+
:query_params => query_params,
|
|
263
|
+
:form_params => form_params,
|
|
264
|
+
:body => post_body,
|
|
265
|
+
:auth_names => auth_names,
|
|
266
|
+
:return_type => return_type
|
|
267
|
+
)
|
|
268
|
+
|
|
269
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
270
|
+
if @api_client.config.debugging
|
|
271
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_grant_requests_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
272
|
+
end
|
|
273
|
+
return data, status_code, headers
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# List pending grant requests the current user is eligible to review.
|
|
277
|
+
# @param [Hash] opts the optional parameters
|
|
278
|
+
# @option opts [Integer] :created_by
|
|
279
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
280
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
281
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
282
|
+
# @option opts [String] :search A search term.
|
|
283
|
+
# @option opts [RequestStatus] :status
|
|
284
|
+
# @return [PaginatedGrantRequestList]
|
|
285
|
+
def requests_grant_requests_pending_review_list(opts = {})
|
|
286
|
+
data, _status_code, _headers = requests_grant_requests_pending_review_list_with_http_info(opts)
|
|
287
|
+
data
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# List pending grant requests the current user is eligible to review.
|
|
291
|
+
# @param [Hash] opts the optional parameters
|
|
292
|
+
# @option opts [Integer] :created_by
|
|
293
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
294
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
295
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
296
|
+
# @option opts [String] :search A search term.
|
|
297
|
+
# @option opts [RequestStatus] :status
|
|
298
|
+
# @return [Array<(PaginatedGrantRequestList, Integer, Hash)>] PaginatedGrantRequestList data, response status code and response headers
|
|
299
|
+
def requests_grant_requests_pending_review_list_with_http_info(opts = {})
|
|
300
|
+
if @api_client.config.debugging
|
|
301
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_grant_requests_pending_review_list ...'
|
|
302
|
+
end
|
|
303
|
+
# resource path
|
|
304
|
+
local_var_path = '/requests/grant-requests/pending_review/'
|
|
305
|
+
|
|
306
|
+
# query parameters
|
|
307
|
+
query_params = opts[:query_params] || {}
|
|
308
|
+
query_params[:'created_by'] = opts[:'created_by'] if !opts[:'created_by'].nil?
|
|
309
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
310
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
311
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
312
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
313
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
314
|
+
|
|
315
|
+
# header parameters
|
|
316
|
+
header_params = opts[:header_params] || {}
|
|
317
|
+
# HTTP header 'Accept' (if needed)
|
|
318
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
319
|
+
|
|
320
|
+
# form parameters
|
|
321
|
+
form_params = opts[:form_params] || {}
|
|
322
|
+
|
|
323
|
+
# http body (model)
|
|
324
|
+
post_body = opts[:debug_body]
|
|
325
|
+
|
|
326
|
+
# return_type
|
|
327
|
+
return_type = opts[:debug_return_type] || 'PaginatedGrantRequestList'
|
|
328
|
+
|
|
329
|
+
# auth_names
|
|
330
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
331
|
+
|
|
332
|
+
new_options = opts.merge(
|
|
333
|
+
:operation => :"RequestsApi.requests_grant_requests_pending_review_list",
|
|
334
|
+
:header_params => header_params,
|
|
335
|
+
:query_params => query_params,
|
|
336
|
+
:form_params => form_params,
|
|
337
|
+
:body => post_body,
|
|
338
|
+
:auth_names => auth_names,
|
|
339
|
+
:return_type => return_type
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
343
|
+
if @api_client.config.debugging
|
|
344
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_grant_requests_pending_review_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
345
|
+
end
|
|
346
|
+
return data, status_code, headers
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# @param uuid [String] A UUID string identifying this Grant Request.
|
|
350
|
+
# @param [Hash] opts the optional parameters
|
|
351
|
+
# @return [GrantRequest]
|
|
352
|
+
def requests_grant_requests_retrieve(uuid, opts = {})
|
|
353
|
+
data, _status_code, _headers = requests_grant_requests_retrieve_with_http_info(uuid, opts)
|
|
354
|
+
data
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
# @param uuid [String] A UUID string identifying this Grant Request.
|
|
358
|
+
# @param [Hash] opts the optional parameters
|
|
359
|
+
# @return [Array<(GrantRequest, Integer, Hash)>] GrantRequest data, response status code and response headers
|
|
360
|
+
def requests_grant_requests_retrieve_with_http_info(uuid, opts = {})
|
|
361
|
+
if @api_client.config.debugging
|
|
362
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_grant_requests_retrieve ...'
|
|
363
|
+
end
|
|
364
|
+
# verify the required parameter 'uuid' is set
|
|
365
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
366
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_grant_requests_retrieve"
|
|
367
|
+
end
|
|
368
|
+
# resource path
|
|
369
|
+
local_var_path = '/requests/grant-requests/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
370
|
+
|
|
371
|
+
# query parameters
|
|
372
|
+
query_params = opts[:query_params] || {}
|
|
373
|
+
|
|
374
|
+
# header parameters
|
|
375
|
+
header_params = opts[:header_params] || {}
|
|
376
|
+
# HTTP header 'Accept' (if needed)
|
|
377
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
378
|
+
|
|
379
|
+
# form parameters
|
|
380
|
+
form_params = opts[:form_params] || {}
|
|
381
|
+
|
|
382
|
+
# http body (model)
|
|
383
|
+
post_body = opts[:debug_body]
|
|
384
|
+
|
|
385
|
+
# return_type
|
|
386
|
+
return_type = opts[:debug_return_type] || 'GrantRequest'
|
|
387
|
+
|
|
388
|
+
# auth_names
|
|
389
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
390
|
+
|
|
391
|
+
new_options = opts.merge(
|
|
392
|
+
:operation => :"RequestsApi.requests_grant_requests_retrieve",
|
|
393
|
+
:header_params => header_params,
|
|
394
|
+
:query_params => query_params,
|
|
395
|
+
:form_params => form_params,
|
|
396
|
+
:body => post_body,
|
|
397
|
+
:auth_names => auth_names,
|
|
398
|
+
:return_type => return_type
|
|
399
|
+
)
|
|
400
|
+
|
|
401
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
402
|
+
if @api_client.config.debugging
|
|
403
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_grant_requests_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
404
|
+
end
|
|
405
|
+
return data, status_code, headers
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
# Immediately end an active grant. Available to the same reviewers who could approve it in the first place.
|
|
409
|
+
# @param uuid [String] A UUID string identifying this Grant Request.
|
|
410
|
+
# @param [Hash] opts the optional parameters
|
|
411
|
+
# @return [nil]
|
|
412
|
+
def requests_grant_requests_revoke_destroy(uuid, opts = {})
|
|
413
|
+
requests_grant_requests_revoke_destroy_with_http_info(uuid, opts)
|
|
414
|
+
nil
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
# Immediately end an active grant. Available to the same reviewers who could approve it in the first place.
|
|
418
|
+
# @param uuid [String] A UUID string identifying this Grant Request.
|
|
419
|
+
# @param [Hash] opts the optional parameters
|
|
420
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
421
|
+
def requests_grant_requests_revoke_destroy_with_http_info(uuid, opts = {})
|
|
422
|
+
if @api_client.config.debugging
|
|
423
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_grant_requests_revoke_destroy ...'
|
|
424
|
+
end
|
|
425
|
+
# verify the required parameter 'uuid' is set
|
|
426
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
427
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_grant_requests_revoke_destroy"
|
|
428
|
+
end
|
|
429
|
+
# resource path
|
|
430
|
+
local_var_path = '/requests/grant-requests/{uuid}/revoke/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
431
|
+
|
|
432
|
+
# query parameters
|
|
433
|
+
query_params = opts[:query_params] || {}
|
|
434
|
+
|
|
435
|
+
# header parameters
|
|
436
|
+
header_params = opts[:header_params] || {}
|
|
437
|
+
# HTTP header 'Accept' (if needed)
|
|
438
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
439
|
+
|
|
440
|
+
# form parameters
|
|
441
|
+
form_params = opts[:form_params] || {}
|
|
442
|
+
|
|
443
|
+
# http body (model)
|
|
444
|
+
post_body = opts[:debug_body]
|
|
445
|
+
|
|
446
|
+
# return_type
|
|
447
|
+
return_type = opts[:debug_return_type]
|
|
448
|
+
|
|
449
|
+
# auth_names
|
|
450
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
451
|
+
|
|
452
|
+
new_options = opts.merge(
|
|
453
|
+
:operation => :"RequestsApi.requests_grant_requests_revoke_destroy",
|
|
454
|
+
:header_params => header_params,
|
|
455
|
+
:query_params => query_params,
|
|
456
|
+
:form_params => form_params,
|
|
457
|
+
:body => post_body,
|
|
458
|
+
:auth_names => auth_names,
|
|
459
|
+
:return_type => return_type
|
|
460
|
+
)
|
|
461
|
+
|
|
462
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
463
|
+
if @api_client.config.debugging
|
|
464
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_grant_requests_revoke_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
465
|
+
end
|
|
466
|
+
return data, status_code, headers
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
470
|
+
# @param request_rule_binding_request [RequestRuleBindingRequest]
|
|
471
|
+
# @param [Hash] opts the optional parameters
|
|
472
|
+
# @return [RequestRuleBinding]
|
|
473
|
+
def requests_rule_bindings_create(request_rule_binding_request, opts = {})
|
|
474
|
+
data, _status_code, _headers = requests_rule_bindings_create_with_http_info(request_rule_binding_request, opts)
|
|
475
|
+
data
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
479
|
+
# @param request_rule_binding_request [RequestRuleBindingRequest]
|
|
480
|
+
# @param [Hash] opts the optional parameters
|
|
481
|
+
# @return [Array<(RequestRuleBinding, Integer, Hash)>] RequestRuleBinding data, response status code and response headers
|
|
482
|
+
def requests_rule_bindings_create_with_http_info(request_rule_binding_request, opts = {})
|
|
483
|
+
if @api_client.config.debugging
|
|
484
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_bindings_create ...'
|
|
485
|
+
end
|
|
486
|
+
# verify the required parameter 'request_rule_binding_request' is set
|
|
487
|
+
if @api_client.config.client_side_validation && request_rule_binding_request.nil?
|
|
488
|
+
fail ArgumentError, "Missing the required parameter 'request_rule_binding_request' when calling RequestsApi.requests_rule_bindings_create"
|
|
489
|
+
end
|
|
490
|
+
# resource path
|
|
491
|
+
local_var_path = '/requests/rule-bindings/'
|
|
492
|
+
|
|
493
|
+
# query parameters
|
|
494
|
+
query_params = opts[:query_params] || {}
|
|
495
|
+
|
|
496
|
+
# header parameters
|
|
497
|
+
header_params = opts[:header_params] || {}
|
|
498
|
+
# HTTP header 'Accept' (if needed)
|
|
499
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
500
|
+
# HTTP header 'Content-Type'
|
|
501
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
502
|
+
if !content_type.nil?
|
|
503
|
+
header_params['Content-Type'] = content_type
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
# form parameters
|
|
507
|
+
form_params = opts[:form_params] || {}
|
|
508
|
+
|
|
509
|
+
# http body (model)
|
|
510
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_rule_binding_request)
|
|
511
|
+
|
|
512
|
+
# return_type
|
|
513
|
+
return_type = opts[:debug_return_type] || 'RequestRuleBinding'
|
|
514
|
+
|
|
515
|
+
# auth_names
|
|
516
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
517
|
+
|
|
518
|
+
new_options = opts.merge(
|
|
519
|
+
:operation => :"RequestsApi.requests_rule_bindings_create",
|
|
520
|
+
:header_params => header_params,
|
|
521
|
+
:query_params => query_params,
|
|
522
|
+
:form_params => form_params,
|
|
523
|
+
:body => post_body,
|
|
524
|
+
:auth_names => auth_names,
|
|
525
|
+
:return_type => return_type
|
|
526
|
+
)
|
|
527
|
+
|
|
528
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
529
|
+
if @api_client.config.debugging
|
|
530
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_bindings_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
531
|
+
end
|
|
532
|
+
return data, status_code, headers
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
536
|
+
# @param uuid [String] A UUID string identifying this Request Rule Binding.
|
|
537
|
+
# @param [Hash] opts the optional parameters
|
|
538
|
+
# @return [nil]
|
|
539
|
+
def requests_rule_bindings_destroy(uuid, opts = {})
|
|
540
|
+
requests_rule_bindings_destroy_with_http_info(uuid, opts)
|
|
541
|
+
nil
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
545
|
+
# @param uuid [String] A UUID string identifying this Request Rule Binding.
|
|
546
|
+
# @param [Hash] opts the optional parameters
|
|
547
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
548
|
+
def requests_rule_bindings_destroy_with_http_info(uuid, opts = {})
|
|
549
|
+
if @api_client.config.debugging
|
|
550
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_bindings_destroy ...'
|
|
551
|
+
end
|
|
552
|
+
# verify the required parameter 'uuid' is set
|
|
553
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
554
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rule_bindings_destroy"
|
|
555
|
+
end
|
|
556
|
+
# resource path
|
|
557
|
+
local_var_path = '/requests/rule-bindings/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
558
|
+
|
|
559
|
+
# query parameters
|
|
560
|
+
query_params = opts[:query_params] || {}
|
|
561
|
+
|
|
562
|
+
# header parameters
|
|
563
|
+
header_params = opts[:header_params] || {}
|
|
564
|
+
# HTTP header 'Accept' (if needed)
|
|
565
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
566
|
+
|
|
567
|
+
# form parameters
|
|
568
|
+
form_params = opts[:form_params] || {}
|
|
569
|
+
|
|
570
|
+
# http body (model)
|
|
571
|
+
post_body = opts[:debug_body]
|
|
572
|
+
|
|
573
|
+
# return_type
|
|
574
|
+
return_type = opts[:debug_return_type]
|
|
575
|
+
|
|
576
|
+
# auth_names
|
|
577
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
578
|
+
|
|
579
|
+
new_options = opts.merge(
|
|
580
|
+
:operation => :"RequestsApi.requests_rule_bindings_destroy",
|
|
581
|
+
:header_params => header_params,
|
|
582
|
+
:query_params => query_params,
|
|
583
|
+
:form_params => form_params,
|
|
584
|
+
:body => post_body,
|
|
585
|
+
:auth_names => auth_names,
|
|
586
|
+
:return_type => return_type
|
|
587
|
+
)
|
|
588
|
+
|
|
589
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
590
|
+
if @api_client.config.debugging
|
|
591
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_bindings_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
592
|
+
end
|
|
593
|
+
return data, status_code, headers
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
597
|
+
# @param [Hash] opts the optional parameters
|
|
598
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
599
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
600
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
601
|
+
# @option opts [String] :rule
|
|
602
|
+
# @option opts [String] :search A search term.
|
|
603
|
+
# @option opts [String] :target
|
|
604
|
+
# @return [PaginatedRequestRuleBindingList]
|
|
605
|
+
def requests_rule_bindings_list(opts = {})
|
|
606
|
+
data, _status_code, _headers = requests_rule_bindings_list_with_http_info(opts)
|
|
607
|
+
data
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
611
|
+
# @param [Hash] opts the optional parameters
|
|
612
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
613
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
614
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
615
|
+
# @option opts [String] :rule
|
|
616
|
+
# @option opts [String] :search A search term.
|
|
617
|
+
# @option opts [String] :target
|
|
618
|
+
# @return [Array<(PaginatedRequestRuleBindingList, Integer, Hash)>] PaginatedRequestRuleBindingList data, response status code and response headers
|
|
619
|
+
def requests_rule_bindings_list_with_http_info(opts = {})
|
|
620
|
+
if @api_client.config.debugging
|
|
621
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_bindings_list ...'
|
|
622
|
+
end
|
|
623
|
+
# resource path
|
|
624
|
+
local_var_path = '/requests/rule-bindings/'
|
|
625
|
+
|
|
626
|
+
# query parameters
|
|
627
|
+
query_params = opts[:query_params] || {}
|
|
628
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
629
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
630
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
631
|
+
query_params[:'rule'] = opts[:'rule'] if !opts[:'rule'].nil?
|
|
632
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
633
|
+
query_params[:'target'] = opts[:'target'] if !opts[:'target'].nil?
|
|
634
|
+
|
|
635
|
+
# header parameters
|
|
636
|
+
header_params = opts[:header_params] || {}
|
|
637
|
+
# HTTP header 'Accept' (if needed)
|
|
638
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
639
|
+
|
|
640
|
+
# form parameters
|
|
641
|
+
form_params = opts[:form_params] || {}
|
|
642
|
+
|
|
643
|
+
# http body (model)
|
|
644
|
+
post_body = opts[:debug_body]
|
|
645
|
+
|
|
646
|
+
# return_type
|
|
647
|
+
return_type = opts[:debug_return_type] || 'PaginatedRequestRuleBindingList'
|
|
648
|
+
|
|
649
|
+
# auth_names
|
|
650
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
651
|
+
|
|
652
|
+
new_options = opts.merge(
|
|
653
|
+
:operation => :"RequestsApi.requests_rule_bindings_list",
|
|
654
|
+
:header_params => header_params,
|
|
655
|
+
:query_params => query_params,
|
|
656
|
+
:form_params => form_params,
|
|
657
|
+
:body => post_body,
|
|
658
|
+
:auth_names => auth_names,
|
|
659
|
+
:return_type => return_type
|
|
660
|
+
)
|
|
661
|
+
|
|
662
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
663
|
+
if @api_client.config.debugging
|
|
664
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_bindings_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
665
|
+
end
|
|
666
|
+
return data, status_code, headers
|
|
667
|
+
end
|
|
668
|
+
|
|
669
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
670
|
+
# @param uuid [String] A UUID string identifying this Request Rule Binding.
|
|
671
|
+
# @param [Hash] opts the optional parameters
|
|
672
|
+
# @option opts [PatchedRequestRuleBindingRequest] :patched_request_rule_binding_request
|
|
673
|
+
# @return [RequestRuleBinding]
|
|
674
|
+
def requests_rule_bindings_partial_update(uuid, opts = {})
|
|
675
|
+
data, _status_code, _headers = requests_rule_bindings_partial_update_with_http_info(uuid, opts)
|
|
676
|
+
data
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
680
|
+
# @param uuid [String] A UUID string identifying this Request Rule Binding.
|
|
681
|
+
# @param [Hash] opts the optional parameters
|
|
682
|
+
# @option opts [PatchedRequestRuleBindingRequest] :patched_request_rule_binding_request
|
|
683
|
+
# @return [Array<(RequestRuleBinding, Integer, Hash)>] RequestRuleBinding data, response status code and response headers
|
|
684
|
+
def requests_rule_bindings_partial_update_with_http_info(uuid, opts = {})
|
|
685
|
+
if @api_client.config.debugging
|
|
686
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_bindings_partial_update ...'
|
|
687
|
+
end
|
|
688
|
+
# verify the required parameter 'uuid' is set
|
|
689
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
690
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rule_bindings_partial_update"
|
|
691
|
+
end
|
|
692
|
+
# resource path
|
|
693
|
+
local_var_path = '/requests/rule-bindings/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
694
|
+
|
|
695
|
+
# query parameters
|
|
696
|
+
query_params = opts[:query_params] || {}
|
|
697
|
+
|
|
698
|
+
# header parameters
|
|
699
|
+
header_params = opts[:header_params] || {}
|
|
700
|
+
# HTTP header 'Accept' (if needed)
|
|
701
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
702
|
+
# HTTP header 'Content-Type'
|
|
703
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
704
|
+
if !content_type.nil?
|
|
705
|
+
header_params['Content-Type'] = content_type
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
# form parameters
|
|
709
|
+
form_params = opts[:form_params] || {}
|
|
710
|
+
|
|
711
|
+
# http body (model)
|
|
712
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_request_rule_binding_request'])
|
|
713
|
+
|
|
714
|
+
# return_type
|
|
715
|
+
return_type = opts[:debug_return_type] || 'RequestRuleBinding'
|
|
716
|
+
|
|
717
|
+
# auth_names
|
|
718
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
719
|
+
|
|
720
|
+
new_options = opts.merge(
|
|
721
|
+
:operation => :"RequestsApi.requests_rule_bindings_partial_update",
|
|
722
|
+
:header_params => header_params,
|
|
723
|
+
:query_params => query_params,
|
|
724
|
+
:form_params => form_params,
|
|
725
|
+
:body => post_body,
|
|
726
|
+
:auth_names => auth_names,
|
|
727
|
+
:return_type => return_type
|
|
728
|
+
)
|
|
729
|
+
|
|
730
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
731
|
+
if @api_client.config.debugging
|
|
732
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_bindings_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
733
|
+
end
|
|
734
|
+
return data, status_code, headers
|
|
735
|
+
end
|
|
736
|
+
|
|
737
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
738
|
+
# @param uuid [String] A UUID string identifying this Request Rule Binding.
|
|
739
|
+
# @param [Hash] opts the optional parameters
|
|
740
|
+
# @return [RequestRuleBinding]
|
|
741
|
+
def requests_rule_bindings_retrieve(uuid, opts = {})
|
|
742
|
+
data, _status_code, _headers = requests_rule_bindings_retrieve_with_http_info(uuid, opts)
|
|
743
|
+
data
|
|
744
|
+
end
|
|
745
|
+
|
|
746
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
747
|
+
# @param uuid [String] A UUID string identifying this Request Rule Binding.
|
|
748
|
+
# @param [Hash] opts the optional parameters
|
|
749
|
+
# @return [Array<(RequestRuleBinding, Integer, Hash)>] RequestRuleBinding data, response status code and response headers
|
|
750
|
+
def requests_rule_bindings_retrieve_with_http_info(uuid, opts = {})
|
|
751
|
+
if @api_client.config.debugging
|
|
752
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_bindings_retrieve ...'
|
|
753
|
+
end
|
|
754
|
+
# verify the required parameter 'uuid' is set
|
|
755
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
756
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rule_bindings_retrieve"
|
|
757
|
+
end
|
|
758
|
+
# resource path
|
|
759
|
+
local_var_path = '/requests/rule-bindings/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
760
|
+
|
|
761
|
+
# query parameters
|
|
762
|
+
query_params = opts[:query_params] || {}
|
|
763
|
+
|
|
764
|
+
# header parameters
|
|
765
|
+
header_params = opts[:header_params] || {}
|
|
766
|
+
# HTTP header 'Accept' (if needed)
|
|
767
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
768
|
+
|
|
769
|
+
# form parameters
|
|
770
|
+
form_params = opts[:form_params] || {}
|
|
771
|
+
|
|
772
|
+
# http body (model)
|
|
773
|
+
post_body = opts[:debug_body]
|
|
774
|
+
|
|
775
|
+
# return_type
|
|
776
|
+
return_type = opts[:debug_return_type] || 'RequestRuleBinding'
|
|
777
|
+
|
|
778
|
+
# auth_names
|
|
779
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
780
|
+
|
|
781
|
+
new_options = opts.merge(
|
|
782
|
+
:operation => :"RequestsApi.requests_rule_bindings_retrieve",
|
|
783
|
+
:header_params => header_params,
|
|
784
|
+
:query_params => query_params,
|
|
785
|
+
:form_params => form_params,
|
|
786
|
+
:body => post_body,
|
|
787
|
+
:auth_names => auth_names,
|
|
788
|
+
:return_type => return_type
|
|
789
|
+
)
|
|
790
|
+
|
|
791
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
792
|
+
if @api_client.config.debugging
|
|
793
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_bindings_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
794
|
+
end
|
|
795
|
+
return data, status_code, headers
|
|
796
|
+
end
|
|
797
|
+
|
|
798
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
799
|
+
# @param uuid [String] A UUID string identifying this Request Rule Binding.
|
|
800
|
+
# @param request_rule_binding_request [RequestRuleBindingRequest]
|
|
801
|
+
# @param [Hash] opts the optional parameters
|
|
802
|
+
# @return [RequestRuleBinding]
|
|
803
|
+
def requests_rule_bindings_update(uuid, request_rule_binding_request, opts = {})
|
|
804
|
+
data, _status_code, _headers = requests_rule_bindings_update_with_http_info(uuid, request_rule_binding_request, opts)
|
|
805
|
+
data
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
809
|
+
# @param uuid [String] A UUID string identifying this Request Rule Binding.
|
|
810
|
+
# @param request_rule_binding_request [RequestRuleBindingRequest]
|
|
811
|
+
# @param [Hash] opts the optional parameters
|
|
812
|
+
# @return [Array<(RequestRuleBinding, Integer, Hash)>] RequestRuleBinding data, response status code and response headers
|
|
813
|
+
def requests_rule_bindings_update_with_http_info(uuid, request_rule_binding_request, opts = {})
|
|
814
|
+
if @api_client.config.debugging
|
|
815
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_bindings_update ...'
|
|
816
|
+
end
|
|
817
|
+
# verify the required parameter 'uuid' is set
|
|
818
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
819
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rule_bindings_update"
|
|
820
|
+
end
|
|
821
|
+
# verify the required parameter 'request_rule_binding_request' is set
|
|
822
|
+
if @api_client.config.client_side_validation && request_rule_binding_request.nil?
|
|
823
|
+
fail ArgumentError, "Missing the required parameter 'request_rule_binding_request' when calling RequestsApi.requests_rule_bindings_update"
|
|
824
|
+
end
|
|
825
|
+
# resource path
|
|
826
|
+
local_var_path = '/requests/rule-bindings/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
827
|
+
|
|
828
|
+
# query parameters
|
|
829
|
+
query_params = opts[:query_params] || {}
|
|
830
|
+
|
|
831
|
+
# header parameters
|
|
832
|
+
header_params = opts[:header_params] || {}
|
|
833
|
+
# HTTP header 'Accept' (if needed)
|
|
834
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
835
|
+
# HTTP header 'Content-Type'
|
|
836
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
837
|
+
if !content_type.nil?
|
|
838
|
+
header_params['Content-Type'] = content_type
|
|
839
|
+
end
|
|
840
|
+
|
|
841
|
+
# form parameters
|
|
842
|
+
form_params = opts[:form_params] || {}
|
|
843
|
+
|
|
844
|
+
# http body (model)
|
|
845
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_rule_binding_request)
|
|
846
|
+
|
|
847
|
+
# return_type
|
|
848
|
+
return_type = opts[:debug_return_type] || 'RequestRuleBinding'
|
|
849
|
+
|
|
850
|
+
# auth_names
|
|
851
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
852
|
+
|
|
853
|
+
new_options = opts.merge(
|
|
854
|
+
:operation => :"RequestsApi.requests_rule_bindings_update",
|
|
855
|
+
:header_params => header_params,
|
|
856
|
+
:query_params => query_params,
|
|
857
|
+
:form_params => form_params,
|
|
858
|
+
:body => post_body,
|
|
859
|
+
:auth_names => auth_names,
|
|
860
|
+
:return_type => return_type
|
|
861
|
+
)
|
|
862
|
+
|
|
863
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
864
|
+
if @api_client.config.debugging
|
|
865
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_bindings_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
866
|
+
end
|
|
867
|
+
return data, status_code, headers
|
|
868
|
+
end
|
|
869
|
+
|
|
870
|
+
# Get a list of all objects that use this object
|
|
871
|
+
# @param uuid [String] A UUID string identifying this Request Rule Binding.
|
|
872
|
+
# @param [Hash] opts the optional parameters
|
|
873
|
+
# @return [Array<UsedBy>]
|
|
874
|
+
def requests_rule_bindings_used_by_list(uuid, opts = {})
|
|
875
|
+
data, _status_code, _headers = requests_rule_bindings_used_by_list_with_http_info(uuid, opts)
|
|
876
|
+
data
|
|
877
|
+
end
|
|
878
|
+
|
|
879
|
+
# Get a list of all objects that use this object
|
|
880
|
+
# @param uuid [String] A UUID string identifying this Request Rule Binding.
|
|
881
|
+
# @param [Hash] opts the optional parameters
|
|
882
|
+
# @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
|
|
883
|
+
def requests_rule_bindings_used_by_list_with_http_info(uuid, opts = {})
|
|
884
|
+
if @api_client.config.debugging
|
|
885
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_bindings_used_by_list ...'
|
|
886
|
+
end
|
|
887
|
+
# verify the required parameter 'uuid' is set
|
|
888
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
889
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rule_bindings_used_by_list"
|
|
890
|
+
end
|
|
891
|
+
# resource path
|
|
892
|
+
local_var_path = '/requests/rule-bindings/{uuid}/used_by/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
893
|
+
|
|
894
|
+
# query parameters
|
|
895
|
+
query_params = opts[:query_params] || {}
|
|
896
|
+
|
|
897
|
+
# header parameters
|
|
898
|
+
header_params = opts[:header_params] || {}
|
|
899
|
+
# HTTP header 'Accept' (if needed)
|
|
900
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
901
|
+
|
|
902
|
+
# form parameters
|
|
903
|
+
form_params = opts[:form_params] || {}
|
|
904
|
+
|
|
905
|
+
# http body (model)
|
|
906
|
+
post_body = opts[:debug_body]
|
|
907
|
+
|
|
908
|
+
# return_type
|
|
909
|
+
return_type = opts[:debug_return_type] || 'Array<UsedBy>'
|
|
910
|
+
|
|
911
|
+
# auth_names
|
|
912
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
913
|
+
|
|
914
|
+
new_options = opts.merge(
|
|
915
|
+
:operation => :"RequestsApi.requests_rule_bindings_used_by_list",
|
|
916
|
+
:header_params => header_params,
|
|
917
|
+
:query_params => query_params,
|
|
918
|
+
:form_params => form_params,
|
|
919
|
+
:body => post_body,
|
|
920
|
+
:auth_names => auth_names,
|
|
921
|
+
:return_type => return_type
|
|
922
|
+
)
|
|
923
|
+
|
|
924
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
925
|
+
if @api_client.config.debugging
|
|
926
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_bindings_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
927
|
+
end
|
|
928
|
+
return data, status_code, headers
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
932
|
+
# @param request_rule_child_binding_request [RequestRuleChildBindingRequest]
|
|
933
|
+
# @param [Hash] opts the optional parameters
|
|
934
|
+
# @return [RequestRuleChildBinding]
|
|
935
|
+
def requests_rule_child_bindings_create(request_rule_child_binding_request, opts = {})
|
|
936
|
+
data, _status_code, _headers = requests_rule_child_bindings_create_with_http_info(request_rule_child_binding_request, opts)
|
|
937
|
+
data
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
941
|
+
# @param request_rule_child_binding_request [RequestRuleChildBindingRequest]
|
|
942
|
+
# @param [Hash] opts the optional parameters
|
|
943
|
+
# @return [Array<(RequestRuleChildBinding, Integer, Hash)>] RequestRuleChildBinding data, response status code and response headers
|
|
944
|
+
def requests_rule_child_bindings_create_with_http_info(request_rule_child_binding_request, opts = {})
|
|
945
|
+
if @api_client.config.debugging
|
|
946
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_child_bindings_create ...'
|
|
947
|
+
end
|
|
948
|
+
# verify the required parameter 'request_rule_child_binding_request' is set
|
|
949
|
+
if @api_client.config.client_side_validation && request_rule_child_binding_request.nil?
|
|
950
|
+
fail ArgumentError, "Missing the required parameter 'request_rule_child_binding_request' when calling RequestsApi.requests_rule_child_bindings_create"
|
|
951
|
+
end
|
|
952
|
+
# resource path
|
|
953
|
+
local_var_path = '/requests/rule-child-bindings/'
|
|
954
|
+
|
|
955
|
+
# query parameters
|
|
956
|
+
query_params = opts[:query_params] || {}
|
|
957
|
+
|
|
958
|
+
# header parameters
|
|
959
|
+
header_params = opts[:header_params] || {}
|
|
960
|
+
# HTTP header 'Accept' (if needed)
|
|
961
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
962
|
+
# HTTP header 'Content-Type'
|
|
963
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
964
|
+
if !content_type.nil?
|
|
965
|
+
header_params['Content-Type'] = content_type
|
|
966
|
+
end
|
|
967
|
+
|
|
968
|
+
# form parameters
|
|
969
|
+
form_params = opts[:form_params] || {}
|
|
970
|
+
|
|
971
|
+
# http body (model)
|
|
972
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_rule_child_binding_request)
|
|
973
|
+
|
|
974
|
+
# return_type
|
|
975
|
+
return_type = opts[:debug_return_type] || 'RequestRuleChildBinding'
|
|
976
|
+
|
|
977
|
+
# auth_names
|
|
978
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
979
|
+
|
|
980
|
+
new_options = opts.merge(
|
|
981
|
+
:operation => :"RequestsApi.requests_rule_child_bindings_create",
|
|
982
|
+
:header_params => header_params,
|
|
983
|
+
:query_params => query_params,
|
|
984
|
+
:form_params => form_params,
|
|
985
|
+
:body => post_body,
|
|
986
|
+
:auth_names => auth_names,
|
|
987
|
+
:return_type => return_type
|
|
988
|
+
)
|
|
989
|
+
|
|
990
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
991
|
+
if @api_client.config.debugging
|
|
992
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_child_bindings_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
993
|
+
end
|
|
994
|
+
return data, status_code, headers
|
|
995
|
+
end
|
|
996
|
+
|
|
997
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
998
|
+
# @param uuid [String] A UUID string identifying this Request Rule Child Binding.
|
|
999
|
+
# @param [Hash] opts the optional parameters
|
|
1000
|
+
# @return [nil]
|
|
1001
|
+
def requests_rule_child_bindings_destroy(uuid, opts = {})
|
|
1002
|
+
requests_rule_child_bindings_destroy_with_http_info(uuid, opts)
|
|
1003
|
+
nil
|
|
1004
|
+
end
|
|
1005
|
+
|
|
1006
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1007
|
+
# @param uuid [String] A UUID string identifying this Request Rule Child Binding.
|
|
1008
|
+
# @param [Hash] opts the optional parameters
|
|
1009
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1010
|
+
def requests_rule_child_bindings_destroy_with_http_info(uuid, opts = {})
|
|
1011
|
+
if @api_client.config.debugging
|
|
1012
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_child_bindings_destroy ...'
|
|
1013
|
+
end
|
|
1014
|
+
# verify the required parameter 'uuid' is set
|
|
1015
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
1016
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rule_child_bindings_destroy"
|
|
1017
|
+
end
|
|
1018
|
+
# resource path
|
|
1019
|
+
local_var_path = '/requests/rule-child-bindings/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1020
|
+
|
|
1021
|
+
# query parameters
|
|
1022
|
+
query_params = opts[:query_params] || {}
|
|
1023
|
+
|
|
1024
|
+
# header parameters
|
|
1025
|
+
header_params = opts[:header_params] || {}
|
|
1026
|
+
# HTTP header 'Accept' (if needed)
|
|
1027
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1028
|
+
|
|
1029
|
+
# form parameters
|
|
1030
|
+
form_params = opts[:form_params] || {}
|
|
1031
|
+
|
|
1032
|
+
# http body (model)
|
|
1033
|
+
post_body = opts[:debug_body]
|
|
1034
|
+
|
|
1035
|
+
# return_type
|
|
1036
|
+
return_type = opts[:debug_return_type]
|
|
1037
|
+
|
|
1038
|
+
# auth_names
|
|
1039
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1040
|
+
|
|
1041
|
+
new_options = opts.merge(
|
|
1042
|
+
:operation => :"RequestsApi.requests_rule_child_bindings_destroy",
|
|
1043
|
+
:header_params => header_params,
|
|
1044
|
+
:query_params => query_params,
|
|
1045
|
+
:form_params => form_params,
|
|
1046
|
+
:body => post_body,
|
|
1047
|
+
:auth_names => auth_names,
|
|
1048
|
+
:return_type => return_type
|
|
1049
|
+
)
|
|
1050
|
+
|
|
1051
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1052
|
+
if @api_client.config.debugging
|
|
1053
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_child_bindings_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1054
|
+
end
|
|
1055
|
+
return data, status_code, headers
|
|
1056
|
+
end
|
|
1057
|
+
|
|
1058
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1059
|
+
# @param [Hash] opts the optional parameters
|
|
1060
|
+
# @option opts [String] :binding
|
|
1061
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
1062
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
1063
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
1064
|
+
# @option opts [String] :search A search term.
|
|
1065
|
+
# @option opts [String] :target
|
|
1066
|
+
# @return [PaginatedRequestRuleChildBindingList]
|
|
1067
|
+
def requests_rule_child_bindings_list(opts = {})
|
|
1068
|
+
data, _status_code, _headers = requests_rule_child_bindings_list_with_http_info(opts)
|
|
1069
|
+
data
|
|
1070
|
+
end
|
|
1071
|
+
|
|
1072
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1073
|
+
# @param [Hash] opts the optional parameters
|
|
1074
|
+
# @option opts [String] :binding
|
|
1075
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
1076
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
1077
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
1078
|
+
# @option opts [String] :search A search term.
|
|
1079
|
+
# @option opts [String] :target
|
|
1080
|
+
# @return [Array<(PaginatedRequestRuleChildBindingList, Integer, Hash)>] PaginatedRequestRuleChildBindingList data, response status code and response headers
|
|
1081
|
+
def requests_rule_child_bindings_list_with_http_info(opts = {})
|
|
1082
|
+
if @api_client.config.debugging
|
|
1083
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_child_bindings_list ...'
|
|
1084
|
+
end
|
|
1085
|
+
# resource path
|
|
1086
|
+
local_var_path = '/requests/rule-child-bindings/'
|
|
1087
|
+
|
|
1088
|
+
# query parameters
|
|
1089
|
+
query_params = opts[:query_params] || {}
|
|
1090
|
+
query_params[:'binding'] = opts[:'binding'] if !opts[:'binding'].nil?
|
|
1091
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
1092
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
1093
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
1094
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
1095
|
+
query_params[:'target'] = opts[:'target'] if !opts[:'target'].nil?
|
|
1096
|
+
|
|
1097
|
+
# header parameters
|
|
1098
|
+
header_params = opts[:header_params] || {}
|
|
1099
|
+
# HTTP header 'Accept' (if needed)
|
|
1100
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1101
|
+
|
|
1102
|
+
# form parameters
|
|
1103
|
+
form_params = opts[:form_params] || {}
|
|
1104
|
+
|
|
1105
|
+
# http body (model)
|
|
1106
|
+
post_body = opts[:debug_body]
|
|
1107
|
+
|
|
1108
|
+
# return_type
|
|
1109
|
+
return_type = opts[:debug_return_type] || 'PaginatedRequestRuleChildBindingList'
|
|
1110
|
+
|
|
1111
|
+
# auth_names
|
|
1112
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1113
|
+
|
|
1114
|
+
new_options = opts.merge(
|
|
1115
|
+
:operation => :"RequestsApi.requests_rule_child_bindings_list",
|
|
1116
|
+
:header_params => header_params,
|
|
1117
|
+
:query_params => query_params,
|
|
1118
|
+
:form_params => form_params,
|
|
1119
|
+
:body => post_body,
|
|
1120
|
+
:auth_names => auth_names,
|
|
1121
|
+
:return_type => return_type
|
|
1122
|
+
)
|
|
1123
|
+
|
|
1124
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1125
|
+
if @api_client.config.debugging
|
|
1126
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_child_bindings_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1127
|
+
end
|
|
1128
|
+
return data, status_code, headers
|
|
1129
|
+
end
|
|
1130
|
+
|
|
1131
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1132
|
+
# @param uuid [String] A UUID string identifying this Request Rule Child Binding.
|
|
1133
|
+
# @param [Hash] opts the optional parameters
|
|
1134
|
+
# @option opts [PatchedRequestRuleChildBindingRequest] :patched_request_rule_child_binding_request
|
|
1135
|
+
# @return [RequestRuleChildBinding]
|
|
1136
|
+
def requests_rule_child_bindings_partial_update(uuid, opts = {})
|
|
1137
|
+
data, _status_code, _headers = requests_rule_child_bindings_partial_update_with_http_info(uuid, opts)
|
|
1138
|
+
data
|
|
1139
|
+
end
|
|
1140
|
+
|
|
1141
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1142
|
+
# @param uuid [String] A UUID string identifying this Request Rule Child Binding.
|
|
1143
|
+
# @param [Hash] opts the optional parameters
|
|
1144
|
+
# @option opts [PatchedRequestRuleChildBindingRequest] :patched_request_rule_child_binding_request
|
|
1145
|
+
# @return [Array<(RequestRuleChildBinding, Integer, Hash)>] RequestRuleChildBinding data, response status code and response headers
|
|
1146
|
+
def requests_rule_child_bindings_partial_update_with_http_info(uuid, opts = {})
|
|
1147
|
+
if @api_client.config.debugging
|
|
1148
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_child_bindings_partial_update ...'
|
|
1149
|
+
end
|
|
1150
|
+
# verify the required parameter 'uuid' is set
|
|
1151
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
1152
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rule_child_bindings_partial_update"
|
|
1153
|
+
end
|
|
1154
|
+
# resource path
|
|
1155
|
+
local_var_path = '/requests/rule-child-bindings/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1156
|
+
|
|
1157
|
+
# query parameters
|
|
1158
|
+
query_params = opts[:query_params] || {}
|
|
1159
|
+
|
|
1160
|
+
# header parameters
|
|
1161
|
+
header_params = opts[:header_params] || {}
|
|
1162
|
+
# HTTP header 'Accept' (if needed)
|
|
1163
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1164
|
+
# HTTP header 'Content-Type'
|
|
1165
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1166
|
+
if !content_type.nil?
|
|
1167
|
+
header_params['Content-Type'] = content_type
|
|
1168
|
+
end
|
|
1169
|
+
|
|
1170
|
+
# form parameters
|
|
1171
|
+
form_params = opts[:form_params] || {}
|
|
1172
|
+
|
|
1173
|
+
# http body (model)
|
|
1174
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_request_rule_child_binding_request'])
|
|
1175
|
+
|
|
1176
|
+
# return_type
|
|
1177
|
+
return_type = opts[:debug_return_type] || 'RequestRuleChildBinding'
|
|
1178
|
+
|
|
1179
|
+
# auth_names
|
|
1180
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1181
|
+
|
|
1182
|
+
new_options = opts.merge(
|
|
1183
|
+
:operation => :"RequestsApi.requests_rule_child_bindings_partial_update",
|
|
1184
|
+
:header_params => header_params,
|
|
1185
|
+
:query_params => query_params,
|
|
1186
|
+
:form_params => form_params,
|
|
1187
|
+
:body => post_body,
|
|
1188
|
+
:auth_names => auth_names,
|
|
1189
|
+
:return_type => return_type
|
|
1190
|
+
)
|
|
1191
|
+
|
|
1192
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1193
|
+
if @api_client.config.debugging
|
|
1194
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_child_bindings_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1195
|
+
end
|
|
1196
|
+
return data, status_code, headers
|
|
1197
|
+
end
|
|
1198
|
+
|
|
1199
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1200
|
+
# @param uuid [String] A UUID string identifying this Request Rule Child Binding.
|
|
1201
|
+
# @param [Hash] opts the optional parameters
|
|
1202
|
+
# @return [RequestRuleChildBinding]
|
|
1203
|
+
def requests_rule_child_bindings_retrieve(uuid, opts = {})
|
|
1204
|
+
data, _status_code, _headers = requests_rule_child_bindings_retrieve_with_http_info(uuid, opts)
|
|
1205
|
+
data
|
|
1206
|
+
end
|
|
1207
|
+
|
|
1208
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1209
|
+
# @param uuid [String] A UUID string identifying this Request Rule Child Binding.
|
|
1210
|
+
# @param [Hash] opts the optional parameters
|
|
1211
|
+
# @return [Array<(RequestRuleChildBinding, Integer, Hash)>] RequestRuleChildBinding data, response status code and response headers
|
|
1212
|
+
def requests_rule_child_bindings_retrieve_with_http_info(uuid, opts = {})
|
|
1213
|
+
if @api_client.config.debugging
|
|
1214
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_child_bindings_retrieve ...'
|
|
1215
|
+
end
|
|
1216
|
+
# verify the required parameter 'uuid' is set
|
|
1217
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
1218
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rule_child_bindings_retrieve"
|
|
1219
|
+
end
|
|
1220
|
+
# resource path
|
|
1221
|
+
local_var_path = '/requests/rule-child-bindings/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1222
|
+
|
|
1223
|
+
# query parameters
|
|
1224
|
+
query_params = opts[:query_params] || {}
|
|
1225
|
+
|
|
1226
|
+
# header parameters
|
|
1227
|
+
header_params = opts[:header_params] || {}
|
|
1228
|
+
# HTTP header 'Accept' (if needed)
|
|
1229
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1230
|
+
|
|
1231
|
+
# form parameters
|
|
1232
|
+
form_params = opts[:form_params] || {}
|
|
1233
|
+
|
|
1234
|
+
# http body (model)
|
|
1235
|
+
post_body = opts[:debug_body]
|
|
1236
|
+
|
|
1237
|
+
# return_type
|
|
1238
|
+
return_type = opts[:debug_return_type] || 'RequestRuleChildBinding'
|
|
1239
|
+
|
|
1240
|
+
# auth_names
|
|
1241
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1242
|
+
|
|
1243
|
+
new_options = opts.merge(
|
|
1244
|
+
:operation => :"RequestsApi.requests_rule_child_bindings_retrieve",
|
|
1245
|
+
:header_params => header_params,
|
|
1246
|
+
:query_params => query_params,
|
|
1247
|
+
:form_params => form_params,
|
|
1248
|
+
:body => post_body,
|
|
1249
|
+
:auth_names => auth_names,
|
|
1250
|
+
:return_type => return_type
|
|
1251
|
+
)
|
|
1252
|
+
|
|
1253
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1254
|
+
if @api_client.config.debugging
|
|
1255
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_child_bindings_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1256
|
+
end
|
|
1257
|
+
return data, status_code, headers
|
|
1258
|
+
end
|
|
1259
|
+
|
|
1260
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1261
|
+
# @param uuid [String] A UUID string identifying this Request Rule Child Binding.
|
|
1262
|
+
# @param request_rule_child_binding_request [RequestRuleChildBindingRequest]
|
|
1263
|
+
# @param [Hash] opts the optional parameters
|
|
1264
|
+
# @return [RequestRuleChildBinding]
|
|
1265
|
+
def requests_rule_child_bindings_update(uuid, request_rule_child_binding_request, opts = {})
|
|
1266
|
+
data, _status_code, _headers = requests_rule_child_bindings_update_with_http_info(uuid, request_rule_child_binding_request, opts)
|
|
1267
|
+
data
|
|
1268
|
+
end
|
|
1269
|
+
|
|
1270
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1271
|
+
# @param uuid [String] A UUID string identifying this Request Rule Child Binding.
|
|
1272
|
+
# @param request_rule_child_binding_request [RequestRuleChildBindingRequest]
|
|
1273
|
+
# @param [Hash] opts the optional parameters
|
|
1274
|
+
# @return [Array<(RequestRuleChildBinding, Integer, Hash)>] RequestRuleChildBinding data, response status code and response headers
|
|
1275
|
+
def requests_rule_child_bindings_update_with_http_info(uuid, request_rule_child_binding_request, opts = {})
|
|
1276
|
+
if @api_client.config.debugging
|
|
1277
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_child_bindings_update ...'
|
|
1278
|
+
end
|
|
1279
|
+
# verify the required parameter 'uuid' is set
|
|
1280
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
1281
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rule_child_bindings_update"
|
|
1282
|
+
end
|
|
1283
|
+
# verify the required parameter 'request_rule_child_binding_request' is set
|
|
1284
|
+
if @api_client.config.client_side_validation && request_rule_child_binding_request.nil?
|
|
1285
|
+
fail ArgumentError, "Missing the required parameter 'request_rule_child_binding_request' when calling RequestsApi.requests_rule_child_bindings_update"
|
|
1286
|
+
end
|
|
1287
|
+
# resource path
|
|
1288
|
+
local_var_path = '/requests/rule-child-bindings/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1289
|
+
|
|
1290
|
+
# query parameters
|
|
1291
|
+
query_params = opts[:query_params] || {}
|
|
1292
|
+
|
|
1293
|
+
# header parameters
|
|
1294
|
+
header_params = opts[:header_params] || {}
|
|
1295
|
+
# HTTP header 'Accept' (if needed)
|
|
1296
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1297
|
+
# HTTP header 'Content-Type'
|
|
1298
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1299
|
+
if !content_type.nil?
|
|
1300
|
+
header_params['Content-Type'] = content_type
|
|
1301
|
+
end
|
|
1302
|
+
|
|
1303
|
+
# form parameters
|
|
1304
|
+
form_params = opts[:form_params] || {}
|
|
1305
|
+
|
|
1306
|
+
# http body (model)
|
|
1307
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_rule_child_binding_request)
|
|
1308
|
+
|
|
1309
|
+
# return_type
|
|
1310
|
+
return_type = opts[:debug_return_type] || 'RequestRuleChildBinding'
|
|
1311
|
+
|
|
1312
|
+
# auth_names
|
|
1313
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1314
|
+
|
|
1315
|
+
new_options = opts.merge(
|
|
1316
|
+
:operation => :"RequestsApi.requests_rule_child_bindings_update",
|
|
1317
|
+
:header_params => header_params,
|
|
1318
|
+
:query_params => query_params,
|
|
1319
|
+
:form_params => form_params,
|
|
1320
|
+
:body => post_body,
|
|
1321
|
+
:auth_names => auth_names,
|
|
1322
|
+
:return_type => return_type
|
|
1323
|
+
)
|
|
1324
|
+
|
|
1325
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1326
|
+
if @api_client.config.debugging
|
|
1327
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_child_bindings_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1328
|
+
end
|
|
1329
|
+
return data, status_code, headers
|
|
1330
|
+
end
|
|
1331
|
+
|
|
1332
|
+
# Get a list of all objects that use this object
|
|
1333
|
+
# @param uuid [String] A UUID string identifying this Request Rule Child Binding.
|
|
1334
|
+
# @param [Hash] opts the optional parameters
|
|
1335
|
+
# @return [Array<UsedBy>]
|
|
1336
|
+
def requests_rule_child_bindings_used_by_list(uuid, opts = {})
|
|
1337
|
+
data, _status_code, _headers = requests_rule_child_bindings_used_by_list_with_http_info(uuid, opts)
|
|
1338
|
+
data
|
|
1339
|
+
end
|
|
1340
|
+
|
|
1341
|
+
# Get a list of all objects that use this object
|
|
1342
|
+
# @param uuid [String] A UUID string identifying this Request Rule Child Binding.
|
|
1343
|
+
# @param [Hash] opts the optional parameters
|
|
1344
|
+
# @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
|
|
1345
|
+
def requests_rule_child_bindings_used_by_list_with_http_info(uuid, opts = {})
|
|
1346
|
+
if @api_client.config.debugging
|
|
1347
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rule_child_bindings_used_by_list ...'
|
|
1348
|
+
end
|
|
1349
|
+
# verify the required parameter 'uuid' is set
|
|
1350
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
1351
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rule_child_bindings_used_by_list"
|
|
1352
|
+
end
|
|
1353
|
+
# resource path
|
|
1354
|
+
local_var_path = '/requests/rule-child-bindings/{uuid}/used_by/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1355
|
+
|
|
1356
|
+
# query parameters
|
|
1357
|
+
query_params = opts[:query_params] || {}
|
|
1358
|
+
|
|
1359
|
+
# header parameters
|
|
1360
|
+
header_params = opts[:header_params] || {}
|
|
1361
|
+
# HTTP header 'Accept' (if needed)
|
|
1362
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1363
|
+
|
|
1364
|
+
# form parameters
|
|
1365
|
+
form_params = opts[:form_params] || {}
|
|
1366
|
+
|
|
1367
|
+
# http body (model)
|
|
1368
|
+
post_body = opts[:debug_body]
|
|
1369
|
+
|
|
1370
|
+
# return_type
|
|
1371
|
+
return_type = opts[:debug_return_type] || 'Array<UsedBy>'
|
|
1372
|
+
|
|
1373
|
+
# auth_names
|
|
1374
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1375
|
+
|
|
1376
|
+
new_options = opts.merge(
|
|
1377
|
+
:operation => :"RequestsApi.requests_rule_child_bindings_used_by_list",
|
|
1378
|
+
:header_params => header_params,
|
|
1379
|
+
:query_params => query_params,
|
|
1380
|
+
:form_params => form_params,
|
|
1381
|
+
:body => post_body,
|
|
1382
|
+
:auth_names => auth_names,
|
|
1383
|
+
:return_type => return_type
|
|
1384
|
+
)
|
|
1385
|
+
|
|
1386
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1387
|
+
if @api_client.config.debugging
|
|
1388
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rule_child_bindings_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1389
|
+
end
|
|
1390
|
+
return data, status_code, headers
|
|
1391
|
+
end
|
|
1392
|
+
|
|
1393
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1394
|
+
# @param request_rule_request [RequestRuleRequest]
|
|
1395
|
+
# @param [Hash] opts the optional parameters
|
|
1396
|
+
# @return [RequestRule]
|
|
1397
|
+
def requests_rules_create(request_rule_request, opts = {})
|
|
1398
|
+
data, _status_code, _headers = requests_rules_create_with_http_info(request_rule_request, opts)
|
|
1399
|
+
data
|
|
1400
|
+
end
|
|
1401
|
+
|
|
1402
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1403
|
+
# @param request_rule_request [RequestRuleRequest]
|
|
1404
|
+
# @param [Hash] opts the optional parameters
|
|
1405
|
+
# @return [Array<(RequestRule, Integer, Hash)>] RequestRule data, response status code and response headers
|
|
1406
|
+
def requests_rules_create_with_http_info(request_rule_request, opts = {})
|
|
1407
|
+
if @api_client.config.debugging
|
|
1408
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rules_create ...'
|
|
1409
|
+
end
|
|
1410
|
+
# verify the required parameter 'request_rule_request' is set
|
|
1411
|
+
if @api_client.config.client_side_validation && request_rule_request.nil?
|
|
1412
|
+
fail ArgumentError, "Missing the required parameter 'request_rule_request' when calling RequestsApi.requests_rules_create"
|
|
1413
|
+
end
|
|
1414
|
+
# resource path
|
|
1415
|
+
local_var_path = '/requests/rules/'
|
|
1416
|
+
|
|
1417
|
+
# query parameters
|
|
1418
|
+
query_params = opts[:query_params] || {}
|
|
1419
|
+
|
|
1420
|
+
# header parameters
|
|
1421
|
+
header_params = opts[:header_params] || {}
|
|
1422
|
+
# HTTP header 'Accept' (if needed)
|
|
1423
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1424
|
+
# HTTP header 'Content-Type'
|
|
1425
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1426
|
+
if !content_type.nil?
|
|
1427
|
+
header_params['Content-Type'] = content_type
|
|
1428
|
+
end
|
|
1429
|
+
|
|
1430
|
+
# form parameters
|
|
1431
|
+
form_params = opts[:form_params] || {}
|
|
1432
|
+
|
|
1433
|
+
# http body (model)
|
|
1434
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_rule_request)
|
|
1435
|
+
|
|
1436
|
+
# return_type
|
|
1437
|
+
return_type = opts[:debug_return_type] || 'RequestRule'
|
|
1438
|
+
|
|
1439
|
+
# auth_names
|
|
1440
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1441
|
+
|
|
1442
|
+
new_options = opts.merge(
|
|
1443
|
+
:operation => :"RequestsApi.requests_rules_create",
|
|
1444
|
+
:header_params => header_params,
|
|
1445
|
+
:query_params => query_params,
|
|
1446
|
+
:form_params => form_params,
|
|
1447
|
+
:body => post_body,
|
|
1448
|
+
:auth_names => auth_names,
|
|
1449
|
+
:return_type => return_type
|
|
1450
|
+
)
|
|
1451
|
+
|
|
1452
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1453
|
+
if @api_client.config.debugging
|
|
1454
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rules_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1455
|
+
end
|
|
1456
|
+
return data, status_code, headers
|
|
1457
|
+
end
|
|
1458
|
+
|
|
1459
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1460
|
+
# @param uuid [String] A UUID string identifying this Request Rule.
|
|
1461
|
+
# @param [Hash] opts the optional parameters
|
|
1462
|
+
# @return [nil]
|
|
1463
|
+
def requests_rules_destroy(uuid, opts = {})
|
|
1464
|
+
requests_rules_destroy_with_http_info(uuid, opts)
|
|
1465
|
+
nil
|
|
1466
|
+
end
|
|
1467
|
+
|
|
1468
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1469
|
+
# @param uuid [String] A UUID string identifying this Request Rule.
|
|
1470
|
+
# @param [Hash] opts the optional parameters
|
|
1471
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1472
|
+
def requests_rules_destroy_with_http_info(uuid, opts = {})
|
|
1473
|
+
if @api_client.config.debugging
|
|
1474
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rules_destroy ...'
|
|
1475
|
+
end
|
|
1476
|
+
# verify the required parameter 'uuid' is set
|
|
1477
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
1478
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rules_destroy"
|
|
1479
|
+
end
|
|
1480
|
+
# resource path
|
|
1481
|
+
local_var_path = '/requests/rules/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1482
|
+
|
|
1483
|
+
# query parameters
|
|
1484
|
+
query_params = opts[:query_params] || {}
|
|
1485
|
+
|
|
1486
|
+
# header parameters
|
|
1487
|
+
header_params = opts[:header_params] || {}
|
|
1488
|
+
# HTTP header 'Accept' (if needed)
|
|
1489
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1490
|
+
|
|
1491
|
+
# form parameters
|
|
1492
|
+
form_params = opts[:form_params] || {}
|
|
1493
|
+
|
|
1494
|
+
# http body (model)
|
|
1495
|
+
post_body = opts[:debug_body]
|
|
1496
|
+
|
|
1497
|
+
# return_type
|
|
1498
|
+
return_type = opts[:debug_return_type]
|
|
1499
|
+
|
|
1500
|
+
# auth_names
|
|
1501
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1502
|
+
|
|
1503
|
+
new_options = opts.merge(
|
|
1504
|
+
:operation => :"RequestsApi.requests_rules_destroy",
|
|
1505
|
+
:header_params => header_params,
|
|
1506
|
+
:query_params => query_params,
|
|
1507
|
+
:form_params => form_params,
|
|
1508
|
+
:body => post_body,
|
|
1509
|
+
:auth_names => auth_names,
|
|
1510
|
+
:return_type => return_type
|
|
1511
|
+
)
|
|
1512
|
+
|
|
1513
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1514
|
+
if @api_client.config.debugging
|
|
1515
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rules_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1516
|
+
end
|
|
1517
|
+
return data, status_code, headers
|
|
1518
|
+
end
|
|
1519
|
+
|
|
1520
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1521
|
+
# @param [Hash] opts the optional parameters
|
|
1522
|
+
# @option opts [String] :name
|
|
1523
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
1524
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
1525
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
1526
|
+
# @option opts [String] :pbm_uuid
|
|
1527
|
+
# @option opts [String] :request_flow__slug
|
|
1528
|
+
# @option opts [String] :search A search term.
|
|
1529
|
+
# @return [PaginatedRequestRuleList]
|
|
1530
|
+
def requests_rules_list(opts = {})
|
|
1531
|
+
data, _status_code, _headers = requests_rules_list_with_http_info(opts)
|
|
1532
|
+
data
|
|
1533
|
+
end
|
|
1534
|
+
|
|
1535
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1536
|
+
# @param [Hash] opts the optional parameters
|
|
1537
|
+
# @option opts [String] :name
|
|
1538
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
1539
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
1540
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
1541
|
+
# @option opts [String] :pbm_uuid
|
|
1542
|
+
# @option opts [String] :request_flow__slug
|
|
1543
|
+
# @option opts [String] :search A search term.
|
|
1544
|
+
# @return [Array<(PaginatedRequestRuleList, Integer, Hash)>] PaginatedRequestRuleList data, response status code and response headers
|
|
1545
|
+
def requests_rules_list_with_http_info(opts = {})
|
|
1546
|
+
if @api_client.config.debugging
|
|
1547
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rules_list ...'
|
|
1548
|
+
end
|
|
1549
|
+
# resource path
|
|
1550
|
+
local_var_path = '/requests/rules/'
|
|
1551
|
+
|
|
1552
|
+
# query parameters
|
|
1553
|
+
query_params = opts[:query_params] || {}
|
|
1554
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
1555
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
1556
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
1557
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
1558
|
+
query_params[:'pbm_uuid'] = opts[:'pbm_uuid'] if !opts[:'pbm_uuid'].nil?
|
|
1559
|
+
query_params[:'request_flow__slug'] = opts[:'request_flow__slug'] if !opts[:'request_flow__slug'].nil?
|
|
1560
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
1561
|
+
|
|
1562
|
+
# header parameters
|
|
1563
|
+
header_params = opts[:header_params] || {}
|
|
1564
|
+
# HTTP header 'Accept' (if needed)
|
|
1565
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1566
|
+
|
|
1567
|
+
# form parameters
|
|
1568
|
+
form_params = opts[:form_params] || {}
|
|
1569
|
+
|
|
1570
|
+
# http body (model)
|
|
1571
|
+
post_body = opts[:debug_body]
|
|
1572
|
+
|
|
1573
|
+
# return_type
|
|
1574
|
+
return_type = opts[:debug_return_type] || 'PaginatedRequestRuleList'
|
|
1575
|
+
|
|
1576
|
+
# auth_names
|
|
1577
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1578
|
+
|
|
1579
|
+
new_options = opts.merge(
|
|
1580
|
+
:operation => :"RequestsApi.requests_rules_list",
|
|
1581
|
+
:header_params => header_params,
|
|
1582
|
+
:query_params => query_params,
|
|
1583
|
+
:form_params => form_params,
|
|
1584
|
+
:body => post_body,
|
|
1585
|
+
:auth_names => auth_names,
|
|
1586
|
+
:return_type => return_type
|
|
1587
|
+
)
|
|
1588
|
+
|
|
1589
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1590
|
+
if @api_client.config.debugging
|
|
1591
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rules_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1592
|
+
end
|
|
1593
|
+
return data, status_code, headers
|
|
1594
|
+
end
|
|
1595
|
+
|
|
1596
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1597
|
+
# @param uuid [String] A UUID string identifying this Request Rule.
|
|
1598
|
+
# @param [Hash] opts the optional parameters
|
|
1599
|
+
# @option opts [PatchedRequestRuleRequest] :patched_request_rule_request
|
|
1600
|
+
# @return [RequestRule]
|
|
1601
|
+
def requests_rules_partial_update(uuid, opts = {})
|
|
1602
|
+
data, _status_code, _headers = requests_rules_partial_update_with_http_info(uuid, opts)
|
|
1603
|
+
data
|
|
1604
|
+
end
|
|
1605
|
+
|
|
1606
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1607
|
+
# @param uuid [String] A UUID string identifying this Request Rule.
|
|
1608
|
+
# @param [Hash] opts the optional parameters
|
|
1609
|
+
# @option opts [PatchedRequestRuleRequest] :patched_request_rule_request
|
|
1610
|
+
# @return [Array<(RequestRule, Integer, Hash)>] RequestRule data, response status code and response headers
|
|
1611
|
+
def requests_rules_partial_update_with_http_info(uuid, opts = {})
|
|
1612
|
+
if @api_client.config.debugging
|
|
1613
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rules_partial_update ...'
|
|
1614
|
+
end
|
|
1615
|
+
# verify the required parameter 'uuid' is set
|
|
1616
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
1617
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rules_partial_update"
|
|
1618
|
+
end
|
|
1619
|
+
# resource path
|
|
1620
|
+
local_var_path = '/requests/rules/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1621
|
+
|
|
1622
|
+
# query parameters
|
|
1623
|
+
query_params = opts[:query_params] || {}
|
|
1624
|
+
|
|
1625
|
+
# header parameters
|
|
1626
|
+
header_params = opts[:header_params] || {}
|
|
1627
|
+
# HTTP header 'Accept' (if needed)
|
|
1628
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1629
|
+
# HTTP header 'Content-Type'
|
|
1630
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1631
|
+
if !content_type.nil?
|
|
1632
|
+
header_params['Content-Type'] = content_type
|
|
1633
|
+
end
|
|
1634
|
+
|
|
1635
|
+
# form parameters
|
|
1636
|
+
form_params = opts[:form_params] || {}
|
|
1637
|
+
|
|
1638
|
+
# http body (model)
|
|
1639
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_request_rule_request'])
|
|
1640
|
+
|
|
1641
|
+
# return_type
|
|
1642
|
+
return_type = opts[:debug_return_type] || 'RequestRule'
|
|
1643
|
+
|
|
1644
|
+
# auth_names
|
|
1645
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1646
|
+
|
|
1647
|
+
new_options = opts.merge(
|
|
1648
|
+
:operation => :"RequestsApi.requests_rules_partial_update",
|
|
1649
|
+
:header_params => header_params,
|
|
1650
|
+
:query_params => query_params,
|
|
1651
|
+
:form_params => form_params,
|
|
1652
|
+
:body => post_body,
|
|
1653
|
+
:auth_names => auth_names,
|
|
1654
|
+
:return_type => return_type
|
|
1655
|
+
)
|
|
1656
|
+
|
|
1657
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1658
|
+
if @api_client.config.debugging
|
|
1659
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rules_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1660
|
+
end
|
|
1661
|
+
return data, status_code, headers
|
|
1662
|
+
end
|
|
1663
|
+
|
|
1664
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1665
|
+
# @param uuid [String] A UUID string identifying this Request Rule.
|
|
1666
|
+
# @param [Hash] opts the optional parameters
|
|
1667
|
+
# @return [RequestRule]
|
|
1668
|
+
def requests_rules_retrieve(uuid, opts = {})
|
|
1669
|
+
data, _status_code, _headers = requests_rules_retrieve_with_http_info(uuid, opts)
|
|
1670
|
+
data
|
|
1671
|
+
end
|
|
1672
|
+
|
|
1673
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1674
|
+
# @param uuid [String] A UUID string identifying this Request Rule.
|
|
1675
|
+
# @param [Hash] opts the optional parameters
|
|
1676
|
+
# @return [Array<(RequestRule, Integer, Hash)>] RequestRule data, response status code and response headers
|
|
1677
|
+
def requests_rules_retrieve_with_http_info(uuid, opts = {})
|
|
1678
|
+
if @api_client.config.debugging
|
|
1679
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rules_retrieve ...'
|
|
1680
|
+
end
|
|
1681
|
+
# verify the required parameter 'uuid' is set
|
|
1682
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
1683
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rules_retrieve"
|
|
1684
|
+
end
|
|
1685
|
+
# resource path
|
|
1686
|
+
local_var_path = '/requests/rules/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1687
|
+
|
|
1688
|
+
# query parameters
|
|
1689
|
+
query_params = opts[:query_params] || {}
|
|
1690
|
+
|
|
1691
|
+
# header parameters
|
|
1692
|
+
header_params = opts[:header_params] || {}
|
|
1693
|
+
# HTTP header 'Accept' (if needed)
|
|
1694
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1695
|
+
|
|
1696
|
+
# form parameters
|
|
1697
|
+
form_params = opts[:form_params] || {}
|
|
1698
|
+
|
|
1699
|
+
# http body (model)
|
|
1700
|
+
post_body = opts[:debug_body]
|
|
1701
|
+
|
|
1702
|
+
# return_type
|
|
1703
|
+
return_type = opts[:debug_return_type] || 'RequestRule'
|
|
1704
|
+
|
|
1705
|
+
# auth_names
|
|
1706
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1707
|
+
|
|
1708
|
+
new_options = opts.merge(
|
|
1709
|
+
:operation => :"RequestsApi.requests_rules_retrieve",
|
|
1710
|
+
:header_params => header_params,
|
|
1711
|
+
:query_params => query_params,
|
|
1712
|
+
:form_params => form_params,
|
|
1713
|
+
:body => post_body,
|
|
1714
|
+
:auth_names => auth_names,
|
|
1715
|
+
:return_type => return_type
|
|
1716
|
+
)
|
|
1717
|
+
|
|
1718
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1719
|
+
if @api_client.config.debugging
|
|
1720
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rules_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1721
|
+
end
|
|
1722
|
+
return data, status_code, headers
|
|
1723
|
+
end
|
|
1724
|
+
|
|
1725
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1726
|
+
# @param uuid [String] A UUID string identifying this Request Rule.
|
|
1727
|
+
# @param request_rule_request [RequestRuleRequest]
|
|
1728
|
+
# @param [Hash] opts the optional parameters
|
|
1729
|
+
# @return [RequestRule]
|
|
1730
|
+
def requests_rules_update(uuid, request_rule_request, opts = {})
|
|
1731
|
+
data, _status_code, _headers = requests_rules_update_with_http_info(uuid, request_rule_request, opts)
|
|
1732
|
+
data
|
|
1733
|
+
end
|
|
1734
|
+
|
|
1735
|
+
# Mixin to add a used_by endpoint to return a list of all objects using this object
|
|
1736
|
+
# @param uuid [String] A UUID string identifying this Request Rule.
|
|
1737
|
+
# @param request_rule_request [RequestRuleRequest]
|
|
1738
|
+
# @param [Hash] opts the optional parameters
|
|
1739
|
+
# @return [Array<(RequestRule, Integer, Hash)>] RequestRule data, response status code and response headers
|
|
1740
|
+
def requests_rules_update_with_http_info(uuid, request_rule_request, opts = {})
|
|
1741
|
+
if @api_client.config.debugging
|
|
1742
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rules_update ...'
|
|
1743
|
+
end
|
|
1744
|
+
# verify the required parameter 'uuid' is set
|
|
1745
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
1746
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rules_update"
|
|
1747
|
+
end
|
|
1748
|
+
# verify the required parameter 'request_rule_request' is set
|
|
1749
|
+
if @api_client.config.client_side_validation && request_rule_request.nil?
|
|
1750
|
+
fail ArgumentError, "Missing the required parameter 'request_rule_request' when calling RequestsApi.requests_rules_update"
|
|
1751
|
+
end
|
|
1752
|
+
# resource path
|
|
1753
|
+
local_var_path = '/requests/rules/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1754
|
+
|
|
1755
|
+
# query parameters
|
|
1756
|
+
query_params = opts[:query_params] || {}
|
|
1757
|
+
|
|
1758
|
+
# header parameters
|
|
1759
|
+
header_params = opts[:header_params] || {}
|
|
1760
|
+
# HTTP header 'Accept' (if needed)
|
|
1761
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1762
|
+
# HTTP header 'Content-Type'
|
|
1763
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1764
|
+
if !content_type.nil?
|
|
1765
|
+
header_params['Content-Type'] = content_type
|
|
1766
|
+
end
|
|
1767
|
+
|
|
1768
|
+
# form parameters
|
|
1769
|
+
form_params = opts[:form_params] || {}
|
|
1770
|
+
|
|
1771
|
+
# http body (model)
|
|
1772
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_rule_request)
|
|
1773
|
+
|
|
1774
|
+
# return_type
|
|
1775
|
+
return_type = opts[:debug_return_type] || 'RequestRule'
|
|
1776
|
+
|
|
1777
|
+
# auth_names
|
|
1778
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1779
|
+
|
|
1780
|
+
new_options = opts.merge(
|
|
1781
|
+
:operation => :"RequestsApi.requests_rules_update",
|
|
1782
|
+
:header_params => header_params,
|
|
1783
|
+
:query_params => query_params,
|
|
1784
|
+
:form_params => form_params,
|
|
1785
|
+
:body => post_body,
|
|
1786
|
+
:auth_names => auth_names,
|
|
1787
|
+
:return_type => return_type
|
|
1788
|
+
)
|
|
1789
|
+
|
|
1790
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1791
|
+
if @api_client.config.debugging
|
|
1792
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rules_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1793
|
+
end
|
|
1794
|
+
return data, status_code, headers
|
|
1795
|
+
end
|
|
1796
|
+
|
|
1797
|
+
# Get a list of all objects that use this object
|
|
1798
|
+
# @param uuid [String] A UUID string identifying this Request Rule.
|
|
1799
|
+
# @param [Hash] opts the optional parameters
|
|
1800
|
+
# @return [Array<UsedBy>]
|
|
1801
|
+
def requests_rules_used_by_list(uuid, opts = {})
|
|
1802
|
+
data, _status_code, _headers = requests_rules_used_by_list_with_http_info(uuid, opts)
|
|
1803
|
+
data
|
|
1804
|
+
end
|
|
1805
|
+
|
|
1806
|
+
# Get a list of all objects that use this object
|
|
1807
|
+
# @param uuid [String] A UUID string identifying this Request Rule.
|
|
1808
|
+
# @param [Hash] opts the optional parameters
|
|
1809
|
+
# @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
|
|
1810
|
+
def requests_rules_used_by_list_with_http_info(uuid, opts = {})
|
|
1811
|
+
if @api_client.config.debugging
|
|
1812
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_rules_used_by_list ...'
|
|
1813
|
+
end
|
|
1814
|
+
# verify the required parameter 'uuid' is set
|
|
1815
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
1816
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling RequestsApi.requests_rules_used_by_list"
|
|
1817
|
+
end
|
|
1818
|
+
# resource path
|
|
1819
|
+
local_var_path = '/requests/rules/{uuid}/used_by/'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
1820
|
+
|
|
1821
|
+
# query parameters
|
|
1822
|
+
query_params = opts[:query_params] || {}
|
|
1823
|
+
|
|
1824
|
+
# header parameters
|
|
1825
|
+
header_params = opts[:header_params] || {}
|
|
1826
|
+
# HTTP header 'Accept' (if needed)
|
|
1827
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1828
|
+
|
|
1829
|
+
# form parameters
|
|
1830
|
+
form_params = opts[:form_params] || {}
|
|
1831
|
+
|
|
1832
|
+
# http body (model)
|
|
1833
|
+
post_body = opts[:debug_body]
|
|
1834
|
+
|
|
1835
|
+
# return_type
|
|
1836
|
+
return_type = opts[:debug_return_type] || 'Array<UsedBy>'
|
|
1837
|
+
|
|
1838
|
+
# auth_names
|
|
1839
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1840
|
+
|
|
1841
|
+
new_options = opts.merge(
|
|
1842
|
+
:operation => :"RequestsApi.requests_rules_used_by_list",
|
|
1843
|
+
:header_params => header_params,
|
|
1844
|
+
:query_params => query_params,
|
|
1845
|
+
:form_params => form_params,
|
|
1846
|
+
:body => post_body,
|
|
1847
|
+
:auth_names => auth_names,
|
|
1848
|
+
:return_type => return_type
|
|
1849
|
+
)
|
|
1850
|
+
|
|
1851
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1852
|
+
if @api_client.config.debugging
|
|
1853
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_rules_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1854
|
+
end
|
|
1855
|
+
return data, status_code, headers
|
|
1856
|
+
end
|
|
1857
|
+
end
|
|
1858
|
+
end
|