keynetra-client 0.1.1
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 +7 -0
- data/Gemfile +9 -0
- data/README.md +49 -0
- data/Rakefile +10 -0
- data/docs/ACLCreate.md +28 -0
- data/docs/ACLOut.md +34 -0
- data/docs/AccessApi.md +234 -0
- data/docs/AccessDecisionResponse.md +30 -0
- data/docs/AccessRequest.md +28 -0
- data/docs/AdminLoginRequest.md +20 -0
- data/docs/AdminLoginResponse.md +26 -0
- data/docs/AuditRecordOut.md +42 -0
- data/docs/AuthApi.md +133 -0
- data/docs/AuthModelCreate.md +18 -0
- data/docs/AuthModelOut.md +26 -0
- data/docs/BatchAccessItem.md +20 -0
- data/docs/BatchAccessRequest.md +24 -0
- data/docs/BatchAccessResponse.md +20 -0
- data/docs/BatchAccessResult.md +22 -0
- data/docs/DataValue.md +15 -0
- data/docs/DevApi.md +132 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/HealthApi.md +187 -0
- data/docs/ImpactAnalysisRequest.md +18 -0
- data/docs/ImpactAnalysisResponse.md +20 -0
- data/docs/LocationInner.md +15 -0
- data/docs/ManagementApi.md +2096 -0
- data/docs/MetaBody.md +24 -0
- data/docs/PermissionCreate.md +18 -0
- data/docs/PermissionOut.md +20 -0
- data/docs/PermissionUpdate.md +18 -0
- data/docs/PlaygroundApi.md +80 -0
- data/docs/PlaygroundEvaluateRequest.md +20 -0
- data/docs/PlaygroundInput.md +24 -0
- data/docs/PlaygroundPolicy.md +26 -0
- data/docs/PolicyCreate.md +26 -0
- data/docs/PolicyOut.md +28 -0
- data/docs/PolicySimulationInput.md +22 -0
- data/docs/PolicySimulationRequest.md +20 -0
- data/docs/PolicySimulationResponse.md +20 -0
- data/docs/RelationshipCreate.md +26 -0
- data/docs/RelationshipOut.md +28 -0
- data/docs/RoleCreate.md +18 -0
- data/docs/RoleOut.md +20 -0
- data/docs/RoleUpdate.md +18 -0
- data/docs/SimulationResponse.md +30 -0
- data/docs/SuccessResponseACLOut.md +22 -0
- data/docs/SuccessResponseAccessDecisionResponse.md +22 -0
- data/docs/SuccessResponseAdminLoginResponse.md +22 -0
- data/docs/SuccessResponseAuthModelOut.md +22 -0
- data/docs/SuccessResponseBatchAccessResponse.md +22 -0
- data/docs/SuccessResponseDictStrAny.md +22 -0
- data/docs/SuccessResponseDictStrInt.md +22 -0
- data/docs/SuccessResponseDictStrObject.md +22 -0
- data/docs/SuccessResponseDictStrStr.md +22 -0
- data/docs/SuccessResponseDictStrUnionIntStr.md +22 -0
- data/docs/SuccessResponseImpactAnalysisResponse.md +22 -0
- data/docs/SuccessResponseListACLOut.md +22 -0
- data/docs/SuccessResponseListAuditRecordOut.md +22 -0
- data/docs/SuccessResponseListDictStrStr.md +22 -0
- data/docs/SuccessResponseListPermissionOut.md +22 -0
- data/docs/SuccessResponseListPolicyOut.md +22 -0
- data/docs/SuccessResponseListRoleOut.md +22 -0
- data/docs/SuccessResponsePermissionOut.md +22 -0
- data/docs/SuccessResponsePolicyOut.md +22 -0
- data/docs/SuccessResponsePolicySimulationResponse.md +22 -0
- data/docs/SuccessResponseRelationshipOut.md +22 -0
- data/docs/SuccessResponseSimulationResponse.md +22 -0
- data/docs/ValidationError.md +26 -0
- data/git_push.sh +57 -0
- data/keynetra-client.gemspec +39 -0
- data/lib/keynetra-client/api/access_api.rb +226 -0
- data/lib/keynetra-client/api/auth_api.rb +154 -0
- data/lib/keynetra-client/api/dev_api.rb +135 -0
- data/lib/keynetra-client/api/health_api.rb +187 -0
- data/lib/keynetra-client/api/management_api.rb +1851 -0
- data/lib/keynetra-client/api/playground_api.rb +88 -0
- data/lib/keynetra-client/api_client.rb +397 -0
- data/lib/keynetra-client/api_error.rb +58 -0
- data/lib/keynetra-client/api_model_base.rb +88 -0
- data/lib/keynetra-client/configuration.rb +315 -0
- data/lib/keynetra-client/models/access_decision_response.rb +242 -0
- data/lib/keynetra-client/models/access_request.rb +219 -0
- data/lib/keynetra-client/models/acl_create.rb +294 -0
- data/lib/keynetra-client/models/acl_out.rb +356 -0
- data/lib/keynetra-client/models/admin_login_request.rb +190 -0
- data/lib/keynetra-client/models/admin_login_response.rb +238 -0
- data/lib/keynetra-client/models/audit_record_out.rb +454 -0
- data/lib/keynetra-client/models/auth_model_create.rb +164 -0
- data/lib/keynetra-client/models/auth_model_out.rb +272 -0
- data/lib/keynetra-client/models/batch_access_item.rb +175 -0
- data/lib/keynetra-client/models/batch_access_request.rb +198 -0
- data/lib/keynetra-client/models/batch_access_response.rb +176 -0
- data/lib/keynetra-client/models/batch_access_result.rb +200 -0
- data/lib/keynetra-client/models/data_value.rb +103 -0
- data/lib/keynetra-client/models/http_validation_error.rb +149 -0
- data/lib/keynetra-client/models/impact_analysis_request.rb +164 -0
- data/lib/keynetra-client/models/impact_analysis_response.rb +160 -0
- data/lib/keynetra-client/models/location_inner.rb +103 -0
- data/lib/keynetra-client/models/meta_body.rb +179 -0
- data/lib/keynetra-client/models/permission_create.rb +164 -0
- data/lib/keynetra-client/models/permission_out.rb +190 -0
- data/lib/keynetra-client/models/permission_update.rb +164 -0
- data/lib/keynetra-client/models/playground_evaluate_request.rb +192 -0
- data/lib/keynetra-client/models/playground_input.rb +182 -0
- data/lib/keynetra-client/models/playground_policy.rb +207 -0
- data/lib/keynetra-client/models/policy_create.rb +208 -0
- data/lib/keynetra-client/models/policy_out.rb +281 -0
- data/lib/keynetra-client/models/policy_simulation_input.rb +172 -0
- data/lib/keynetra-client/models/policy_simulation_request.rb +158 -0
- data/lib/keynetra-client/models/policy_simulation_response.rb +194 -0
- data/lib/keynetra-client/models/relationship_create.rb +268 -0
- data/lib/keynetra-client/models/relationship_out.rb +294 -0
- data/lib/keynetra-client/models/role_create.rb +164 -0
- data/lib/keynetra-client/models/role_out.rb +190 -0
- data/lib/keynetra-client/models/role_update.rb +164 -0
- data/lib/keynetra-client/models/simulation_response.rb +244 -0
- data/lib/keynetra-client/models/success_response_access_decision_response.rb +182 -0
- data/lib/keynetra-client/models/success_response_acl_out.rb +182 -0
- data/lib/keynetra-client/models/success_response_admin_login_response.rb +182 -0
- data/lib/keynetra-client/models/success_response_auth_model_out.rb +182 -0
- data/lib/keynetra-client/models/success_response_batch_access_response.rb +182 -0
- data/lib/keynetra-client/models/success_response_dict_str_any.rb +184 -0
- data/lib/keynetra-client/models/success_response_dict_str_int.rb +184 -0
- data/lib/keynetra-client/models/success_response_dict_str_object.rb +184 -0
- data/lib/keynetra-client/models/success_response_dict_str_str.rb +184 -0
- data/lib/keynetra-client/models/success_response_dict_str_union_int_str.rb +184 -0
- data/lib/keynetra-client/models/success_response_impact_analysis_response.rb +182 -0
- data/lib/keynetra-client/models/success_response_list_acl_out.rb +184 -0
- data/lib/keynetra-client/models/success_response_list_audit_record_out.rb +184 -0
- data/lib/keynetra-client/models/success_response_list_dict_str_str.rb +184 -0
- data/lib/keynetra-client/models/success_response_list_permission_out.rb +184 -0
- data/lib/keynetra-client/models/success_response_list_policy_out.rb +184 -0
- data/lib/keynetra-client/models/success_response_list_role_out.rb +184 -0
- data/lib/keynetra-client/models/success_response_permission_out.rb +182 -0
- data/lib/keynetra-client/models/success_response_policy_out.rb +182 -0
- data/lib/keynetra-client/models/success_response_policy_simulation_response.rb +182 -0
- data/lib/keynetra-client/models/success_response_relationship_out.rb +182 -0
- data/lib/keynetra-client/models/success_response_simulation_response.rb +182 -0
- data/lib/keynetra-client/models/validation_error.rb +237 -0
- data/lib/keynetra-client/version.rb +15 -0
- data/lib/keynetra-client.rb +105 -0
- data/spec/api/access_api_spec.rb +70 -0
- data/spec/api/auth_api_spec.rb +57 -0
- data/spec/api/dev_api_spec.rb +56 -0
- data/spec/api/health_api_spec.rb +65 -0
- data/spec/api/management_api_spec.rb +361 -0
- data/spec/api/playground_api_spec.rb +46 -0
- data/spec/models/access_decision_response_spec.rb +72 -0
- data/spec/models/access_request_spec.rb +66 -0
- data/spec/models/acl_create_spec.rb +66 -0
- data/spec/models/acl_out_spec.rb +84 -0
- data/spec/models/admin_login_request_spec.rb +42 -0
- data/spec/models/admin_login_response_spec.rb +60 -0
- data/spec/models/audit_record_out_spec.rb +108 -0
- data/spec/models/auth_model_create_spec.rb +36 -0
- data/spec/models/auth_model_out_spec.rb +60 -0
- data/spec/models/batch_access_item_spec.rb +42 -0
- data/spec/models/batch_access_request_spec.rb +54 -0
- data/spec/models/batch_access_response_spec.rb +42 -0
- data/spec/models/batch_access_result_spec.rb +48 -0
- data/spec/models/data_value_spec.rb +21 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/impact_analysis_request_spec.rb +36 -0
- data/spec/models/impact_analysis_response_spec.rb +42 -0
- data/spec/models/location_inner_spec.rb +21 -0
- data/spec/models/meta_body_spec.rb +54 -0
- data/spec/models/permission_create_spec.rb +36 -0
- data/spec/models/permission_out_spec.rb +42 -0
- data/spec/models/permission_update_spec.rb +36 -0
- data/spec/models/playground_evaluate_request_spec.rb +42 -0
- data/spec/models/playground_input_spec.rb +54 -0
- data/spec/models/playground_policy_spec.rb +60 -0
- data/spec/models/policy_create_spec.rb +60 -0
- data/spec/models/policy_out_spec.rb +66 -0
- data/spec/models/policy_simulation_input_spec.rb +48 -0
- data/spec/models/policy_simulation_request_spec.rb +42 -0
- data/spec/models/policy_simulation_response_spec.rb +42 -0
- data/spec/models/relationship_create_spec.rb +60 -0
- data/spec/models/relationship_out_spec.rb +66 -0
- data/spec/models/role_create_spec.rb +36 -0
- data/spec/models/role_out_spec.rb +42 -0
- data/spec/models/role_update_spec.rb +36 -0
- data/spec/models/simulation_response_spec.rb +72 -0
- data/spec/models/success_response_access_decision_response_spec.rb +48 -0
- data/spec/models/success_response_acl_out_spec.rb +48 -0
- data/spec/models/success_response_admin_login_response_spec.rb +48 -0
- data/spec/models/success_response_auth_model_out_spec.rb +48 -0
- data/spec/models/success_response_batch_access_response_spec.rb +48 -0
- data/spec/models/success_response_dict_str_any_spec.rb +48 -0
- data/spec/models/success_response_dict_str_int_spec.rb +48 -0
- data/spec/models/success_response_dict_str_object_spec.rb +48 -0
- data/spec/models/success_response_dict_str_str_spec.rb +48 -0
- data/spec/models/success_response_dict_str_union_int_str_spec.rb +48 -0
- data/spec/models/success_response_impact_analysis_response_spec.rb +48 -0
- data/spec/models/success_response_list_acl_out_spec.rb +48 -0
- data/spec/models/success_response_list_audit_record_out_spec.rb +48 -0
- data/spec/models/success_response_list_dict_str_str_spec.rb +48 -0
- data/spec/models/success_response_list_permission_out_spec.rb +48 -0
- data/spec/models/success_response_list_policy_out_spec.rb +48 -0
- data/spec/models/success_response_list_role_out_spec.rb +48 -0
- data/spec/models/success_response_permission_out_spec.rb +48 -0
- data/spec/models/success_response_policy_out_spec.rb +48 -0
- data/spec/models/success_response_policy_simulation_response_spec.rb +48 -0
- data/spec/models/success_response_relationship_out_spec.rb +48 -0
- data/spec/models/success_response_simulation_response_spec.rb +48 -0
- data/spec/models/validation_error_spec.rb +60 -0
- data/spec/spec_helper.rb +111 -0
- metadata +356 -0
|
@@ -0,0 +1,1851 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#KeyNetra
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.21.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module KeyNetra
|
|
16
|
+
class ManagementApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Add Permission To Role
|
|
23
|
+
# @param role_id [Integer]
|
|
24
|
+
# @param permission_id [Integer]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [SuccessResponsePermissionOut]
|
|
27
|
+
def add_permission_to_role_roles_role_id_permissions_permission_id_post(role_id, permission_id, opts = {})
|
|
28
|
+
data, _status_code, _headers = add_permission_to_role_roles_role_id_permissions_permission_id_post_with_http_info(role_id, permission_id, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Add Permission To Role
|
|
33
|
+
# @param role_id [Integer]
|
|
34
|
+
# @param permission_id [Integer]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(SuccessResponsePermissionOut, Integer, Hash)>] SuccessResponsePermissionOut data, response status code and response headers
|
|
37
|
+
def add_permission_to_role_roles_role_id_permissions_permission_id_post_with_http_info(role_id, permission_id, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.add_permission_to_role_roles_role_id_permissions_permission_id_post ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'role_id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling ManagementApi.add_permission_to_role_roles_role_id_permissions_permission_id_post"
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'permission_id' is set
|
|
46
|
+
if @api_client.config.client_side_validation && permission_id.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'permission_id' when calling ManagementApi.add_permission_to_role_roles_role_id_permissions_permission_id_post"
|
|
48
|
+
end
|
|
49
|
+
# resource path
|
|
50
|
+
local_var_path = '/roles/{role_id}/permissions/{permission_id}'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s)).sub('{' + 'permission_id' + '}', CGI.escape(permission_id.to_s))
|
|
51
|
+
|
|
52
|
+
# query parameters
|
|
53
|
+
query_params = opts[:query_params] || {}
|
|
54
|
+
|
|
55
|
+
# header parameters
|
|
56
|
+
header_params = opts[:header_params] || {}
|
|
57
|
+
# HTTP header 'Accept' (if needed)
|
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
59
|
+
|
|
60
|
+
# form parameters
|
|
61
|
+
form_params = opts[:form_params] || {}
|
|
62
|
+
|
|
63
|
+
# http body (model)
|
|
64
|
+
post_body = opts[:debug_body]
|
|
65
|
+
|
|
66
|
+
# return_type
|
|
67
|
+
return_type = opts[:debug_return_type] || 'SuccessResponsePermissionOut'
|
|
68
|
+
|
|
69
|
+
# auth_names
|
|
70
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
71
|
+
|
|
72
|
+
new_options = opts.merge(
|
|
73
|
+
:operation => :"ManagementApi.add_permission_to_role_roles_role_id_permissions_permission_id_post",
|
|
74
|
+
:header_params => header_params,
|
|
75
|
+
:query_params => query_params,
|
|
76
|
+
:form_params => form_params,
|
|
77
|
+
:body => post_body,
|
|
78
|
+
:auth_names => auth_names,
|
|
79
|
+
:return_type => return_type
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
83
|
+
if @api_client.config.debugging
|
|
84
|
+
@api_client.config.logger.debug "API called: ManagementApi#add_permission_to_role_roles_role_id_permissions_permission_id_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
85
|
+
end
|
|
86
|
+
return data, status_code, headers
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Create Acl Entry
|
|
90
|
+
# @param acl_create [ACLCreate]
|
|
91
|
+
# @param [Hash] opts the optional parameters
|
|
92
|
+
# @return [SuccessResponseACLOut]
|
|
93
|
+
def create_acl_entry_acl_post(acl_create, opts = {})
|
|
94
|
+
data, _status_code, _headers = create_acl_entry_acl_post_with_http_info(acl_create, opts)
|
|
95
|
+
data
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Create Acl Entry
|
|
99
|
+
# @param acl_create [ACLCreate]
|
|
100
|
+
# @param [Hash] opts the optional parameters
|
|
101
|
+
# @return [Array<(SuccessResponseACLOut, Integer, Hash)>] SuccessResponseACLOut data, response status code and response headers
|
|
102
|
+
def create_acl_entry_acl_post_with_http_info(acl_create, opts = {})
|
|
103
|
+
if @api_client.config.debugging
|
|
104
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.create_acl_entry_acl_post ...'
|
|
105
|
+
end
|
|
106
|
+
# verify the required parameter 'acl_create' is set
|
|
107
|
+
if @api_client.config.client_side_validation && acl_create.nil?
|
|
108
|
+
fail ArgumentError, "Missing the required parameter 'acl_create' when calling ManagementApi.create_acl_entry_acl_post"
|
|
109
|
+
end
|
|
110
|
+
# resource path
|
|
111
|
+
local_var_path = '/acl'
|
|
112
|
+
|
|
113
|
+
# query parameters
|
|
114
|
+
query_params = opts[:query_params] || {}
|
|
115
|
+
|
|
116
|
+
# header parameters
|
|
117
|
+
header_params = opts[:header_params] || {}
|
|
118
|
+
# HTTP header 'Accept' (if needed)
|
|
119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
120
|
+
# HTTP header 'Content-Type'
|
|
121
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
122
|
+
if !content_type.nil?
|
|
123
|
+
header_params['Content-Type'] = content_type
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# form parameters
|
|
127
|
+
form_params = opts[:form_params] || {}
|
|
128
|
+
|
|
129
|
+
# http body (model)
|
|
130
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(acl_create)
|
|
131
|
+
|
|
132
|
+
# return_type
|
|
133
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseACLOut'
|
|
134
|
+
|
|
135
|
+
# auth_names
|
|
136
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
137
|
+
|
|
138
|
+
new_options = opts.merge(
|
|
139
|
+
:operation => :"ManagementApi.create_acl_entry_acl_post",
|
|
140
|
+
:header_params => header_params,
|
|
141
|
+
:query_params => query_params,
|
|
142
|
+
:form_params => form_params,
|
|
143
|
+
:body => post_body,
|
|
144
|
+
:auth_names => auth_names,
|
|
145
|
+
:return_type => return_type
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
149
|
+
if @api_client.config.debugging
|
|
150
|
+
@api_client.config.logger.debug "API called: ManagementApi#create_acl_entry_acl_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
151
|
+
end
|
|
152
|
+
return data, status_code, headers
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Create Auth Model
|
|
156
|
+
# @param auth_model_create [AuthModelCreate]
|
|
157
|
+
# @param [Hash] opts the optional parameters
|
|
158
|
+
# @return [SuccessResponseAuthModelOut]
|
|
159
|
+
def create_auth_model_auth_model_post(auth_model_create, opts = {})
|
|
160
|
+
data, _status_code, _headers = create_auth_model_auth_model_post_with_http_info(auth_model_create, opts)
|
|
161
|
+
data
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Create Auth Model
|
|
165
|
+
# @param auth_model_create [AuthModelCreate]
|
|
166
|
+
# @param [Hash] opts the optional parameters
|
|
167
|
+
# @return [Array<(SuccessResponseAuthModelOut, Integer, Hash)>] SuccessResponseAuthModelOut data, response status code and response headers
|
|
168
|
+
def create_auth_model_auth_model_post_with_http_info(auth_model_create, opts = {})
|
|
169
|
+
if @api_client.config.debugging
|
|
170
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.create_auth_model_auth_model_post ...'
|
|
171
|
+
end
|
|
172
|
+
# verify the required parameter 'auth_model_create' is set
|
|
173
|
+
if @api_client.config.client_side_validation && auth_model_create.nil?
|
|
174
|
+
fail ArgumentError, "Missing the required parameter 'auth_model_create' when calling ManagementApi.create_auth_model_auth_model_post"
|
|
175
|
+
end
|
|
176
|
+
# resource path
|
|
177
|
+
local_var_path = '/auth-model'
|
|
178
|
+
|
|
179
|
+
# query parameters
|
|
180
|
+
query_params = opts[:query_params] || {}
|
|
181
|
+
|
|
182
|
+
# header parameters
|
|
183
|
+
header_params = opts[:header_params] || {}
|
|
184
|
+
# HTTP header 'Accept' (if needed)
|
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
186
|
+
# HTTP header 'Content-Type'
|
|
187
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
188
|
+
if !content_type.nil?
|
|
189
|
+
header_params['Content-Type'] = content_type
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# form parameters
|
|
193
|
+
form_params = opts[:form_params] || {}
|
|
194
|
+
|
|
195
|
+
# http body (model)
|
|
196
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(auth_model_create)
|
|
197
|
+
|
|
198
|
+
# return_type
|
|
199
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseAuthModelOut'
|
|
200
|
+
|
|
201
|
+
# auth_names
|
|
202
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
203
|
+
|
|
204
|
+
new_options = opts.merge(
|
|
205
|
+
:operation => :"ManagementApi.create_auth_model_auth_model_post",
|
|
206
|
+
:header_params => header_params,
|
|
207
|
+
:query_params => query_params,
|
|
208
|
+
:form_params => form_params,
|
|
209
|
+
:body => post_body,
|
|
210
|
+
:auth_names => auth_names,
|
|
211
|
+
:return_type => return_type
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
215
|
+
if @api_client.config.debugging
|
|
216
|
+
@api_client.config.logger.debug "API called: ManagementApi#create_auth_model_auth_model_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
217
|
+
end
|
|
218
|
+
return data, status_code, headers
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Create Permission
|
|
222
|
+
# @param permission_create [PermissionCreate]
|
|
223
|
+
# @param [Hash] opts the optional parameters
|
|
224
|
+
# @return [PermissionOut]
|
|
225
|
+
def create_permission_permissions_post(permission_create, opts = {})
|
|
226
|
+
data, _status_code, _headers = create_permission_permissions_post_with_http_info(permission_create, opts)
|
|
227
|
+
data
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Create Permission
|
|
231
|
+
# @param permission_create [PermissionCreate]
|
|
232
|
+
# @param [Hash] opts the optional parameters
|
|
233
|
+
# @return [Array<(PermissionOut, Integer, Hash)>] PermissionOut data, response status code and response headers
|
|
234
|
+
def create_permission_permissions_post_with_http_info(permission_create, opts = {})
|
|
235
|
+
if @api_client.config.debugging
|
|
236
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.create_permission_permissions_post ...'
|
|
237
|
+
end
|
|
238
|
+
# verify the required parameter 'permission_create' is set
|
|
239
|
+
if @api_client.config.client_side_validation && permission_create.nil?
|
|
240
|
+
fail ArgumentError, "Missing the required parameter 'permission_create' when calling ManagementApi.create_permission_permissions_post"
|
|
241
|
+
end
|
|
242
|
+
# resource path
|
|
243
|
+
local_var_path = '/permissions'
|
|
244
|
+
|
|
245
|
+
# query parameters
|
|
246
|
+
query_params = opts[:query_params] || {}
|
|
247
|
+
|
|
248
|
+
# header parameters
|
|
249
|
+
header_params = opts[:header_params] || {}
|
|
250
|
+
# HTTP header 'Accept' (if needed)
|
|
251
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
252
|
+
# HTTP header 'Content-Type'
|
|
253
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
254
|
+
if !content_type.nil?
|
|
255
|
+
header_params['Content-Type'] = content_type
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# form parameters
|
|
259
|
+
form_params = opts[:form_params] || {}
|
|
260
|
+
|
|
261
|
+
# http body (model)
|
|
262
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(permission_create)
|
|
263
|
+
|
|
264
|
+
# return_type
|
|
265
|
+
return_type = opts[:debug_return_type] || 'PermissionOut'
|
|
266
|
+
|
|
267
|
+
# auth_names
|
|
268
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
269
|
+
|
|
270
|
+
new_options = opts.merge(
|
|
271
|
+
:operation => :"ManagementApi.create_permission_permissions_post",
|
|
272
|
+
:header_params => header_params,
|
|
273
|
+
:query_params => query_params,
|
|
274
|
+
:form_params => form_params,
|
|
275
|
+
:body => post_body,
|
|
276
|
+
:auth_names => auth_names,
|
|
277
|
+
:return_type => return_type
|
|
278
|
+
)
|
|
279
|
+
|
|
280
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
281
|
+
if @api_client.config.debugging
|
|
282
|
+
@api_client.config.logger.debug "API called: ManagementApi#create_permission_permissions_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
283
|
+
end
|
|
284
|
+
return data, status_code, headers
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
# Create Policy From Dsl
|
|
288
|
+
# @param dsl [String]
|
|
289
|
+
# @param [Hash] opts the optional parameters
|
|
290
|
+
# @return [SuccessResponsePolicyOut]
|
|
291
|
+
def create_policy_from_dsl_policies_dsl_post(dsl, opts = {})
|
|
292
|
+
data, _status_code, _headers = create_policy_from_dsl_policies_dsl_post_with_http_info(dsl, opts)
|
|
293
|
+
data
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# Create Policy From Dsl
|
|
297
|
+
# @param dsl [String]
|
|
298
|
+
# @param [Hash] opts the optional parameters
|
|
299
|
+
# @return [Array<(SuccessResponsePolicyOut, Integer, Hash)>] SuccessResponsePolicyOut data, response status code and response headers
|
|
300
|
+
def create_policy_from_dsl_policies_dsl_post_with_http_info(dsl, opts = {})
|
|
301
|
+
if @api_client.config.debugging
|
|
302
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.create_policy_from_dsl_policies_dsl_post ...'
|
|
303
|
+
end
|
|
304
|
+
# verify the required parameter 'dsl' is set
|
|
305
|
+
if @api_client.config.client_side_validation && dsl.nil?
|
|
306
|
+
fail ArgumentError, "Missing the required parameter 'dsl' when calling ManagementApi.create_policy_from_dsl_policies_dsl_post"
|
|
307
|
+
end
|
|
308
|
+
# resource path
|
|
309
|
+
local_var_path = '/policies/dsl'
|
|
310
|
+
|
|
311
|
+
# query parameters
|
|
312
|
+
query_params = opts[:query_params] || {}
|
|
313
|
+
query_params[:'dsl'] = dsl
|
|
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] || 'SuccessResponsePolicyOut'
|
|
328
|
+
|
|
329
|
+
# auth_names
|
|
330
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
331
|
+
|
|
332
|
+
new_options = opts.merge(
|
|
333
|
+
:operation => :"ManagementApi.create_policy_from_dsl_policies_dsl_post",
|
|
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(:POST, local_var_path, new_options)
|
|
343
|
+
if @api_client.config.debugging
|
|
344
|
+
@api_client.config.logger.debug "API called: ManagementApi#create_policy_from_dsl_policies_dsl_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
345
|
+
end
|
|
346
|
+
return data, status_code, headers
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# Create Policy
|
|
350
|
+
# @param policy_create [PolicyCreate]
|
|
351
|
+
# @param [Hash] opts the optional parameters
|
|
352
|
+
# @return [SuccessResponsePolicyOut]
|
|
353
|
+
def create_policy_policies_post(policy_create, opts = {})
|
|
354
|
+
data, _status_code, _headers = create_policy_policies_post_with_http_info(policy_create, opts)
|
|
355
|
+
data
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Create Policy
|
|
359
|
+
# @param policy_create [PolicyCreate]
|
|
360
|
+
# @param [Hash] opts the optional parameters
|
|
361
|
+
# @return [Array<(SuccessResponsePolicyOut, Integer, Hash)>] SuccessResponsePolicyOut data, response status code and response headers
|
|
362
|
+
def create_policy_policies_post_with_http_info(policy_create, opts = {})
|
|
363
|
+
if @api_client.config.debugging
|
|
364
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.create_policy_policies_post ...'
|
|
365
|
+
end
|
|
366
|
+
# verify the required parameter 'policy_create' is set
|
|
367
|
+
if @api_client.config.client_side_validation && policy_create.nil?
|
|
368
|
+
fail ArgumentError, "Missing the required parameter 'policy_create' when calling ManagementApi.create_policy_policies_post"
|
|
369
|
+
end
|
|
370
|
+
# resource path
|
|
371
|
+
local_var_path = '/policies'
|
|
372
|
+
|
|
373
|
+
# query parameters
|
|
374
|
+
query_params = opts[:query_params] || {}
|
|
375
|
+
|
|
376
|
+
# header parameters
|
|
377
|
+
header_params = opts[:header_params] || {}
|
|
378
|
+
# HTTP header 'Accept' (if needed)
|
|
379
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
380
|
+
# HTTP header 'Content-Type'
|
|
381
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
382
|
+
if !content_type.nil?
|
|
383
|
+
header_params['Content-Type'] = content_type
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# form parameters
|
|
387
|
+
form_params = opts[:form_params] || {}
|
|
388
|
+
|
|
389
|
+
# http body (model)
|
|
390
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(policy_create)
|
|
391
|
+
|
|
392
|
+
# return_type
|
|
393
|
+
return_type = opts[:debug_return_type] || 'SuccessResponsePolicyOut'
|
|
394
|
+
|
|
395
|
+
# auth_names
|
|
396
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
397
|
+
|
|
398
|
+
new_options = opts.merge(
|
|
399
|
+
:operation => :"ManagementApi.create_policy_policies_post",
|
|
400
|
+
:header_params => header_params,
|
|
401
|
+
:query_params => query_params,
|
|
402
|
+
:form_params => form_params,
|
|
403
|
+
:body => post_body,
|
|
404
|
+
:auth_names => auth_names,
|
|
405
|
+
:return_type => return_type
|
|
406
|
+
)
|
|
407
|
+
|
|
408
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
409
|
+
if @api_client.config.debugging
|
|
410
|
+
@api_client.config.logger.debug "API called: ManagementApi#create_policy_policies_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
411
|
+
end
|
|
412
|
+
return data, status_code, headers
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
# Create Relationship
|
|
416
|
+
# @param relationship_create [RelationshipCreate]
|
|
417
|
+
# @param [Hash] opts the optional parameters
|
|
418
|
+
# @return [SuccessResponseRelationshipOut]
|
|
419
|
+
def create_relationship_relationships_post(relationship_create, opts = {})
|
|
420
|
+
data, _status_code, _headers = create_relationship_relationships_post_with_http_info(relationship_create, opts)
|
|
421
|
+
data
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
# Create Relationship
|
|
425
|
+
# @param relationship_create [RelationshipCreate]
|
|
426
|
+
# @param [Hash] opts the optional parameters
|
|
427
|
+
# @return [Array<(SuccessResponseRelationshipOut, Integer, Hash)>] SuccessResponseRelationshipOut data, response status code and response headers
|
|
428
|
+
def create_relationship_relationships_post_with_http_info(relationship_create, opts = {})
|
|
429
|
+
if @api_client.config.debugging
|
|
430
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.create_relationship_relationships_post ...'
|
|
431
|
+
end
|
|
432
|
+
# verify the required parameter 'relationship_create' is set
|
|
433
|
+
if @api_client.config.client_side_validation && relationship_create.nil?
|
|
434
|
+
fail ArgumentError, "Missing the required parameter 'relationship_create' when calling ManagementApi.create_relationship_relationships_post"
|
|
435
|
+
end
|
|
436
|
+
# resource path
|
|
437
|
+
local_var_path = '/relationships'
|
|
438
|
+
|
|
439
|
+
# query parameters
|
|
440
|
+
query_params = opts[:query_params] || {}
|
|
441
|
+
|
|
442
|
+
# header parameters
|
|
443
|
+
header_params = opts[:header_params] || {}
|
|
444
|
+
# HTTP header 'Accept' (if needed)
|
|
445
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
446
|
+
# HTTP header 'Content-Type'
|
|
447
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
448
|
+
if !content_type.nil?
|
|
449
|
+
header_params['Content-Type'] = content_type
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# form parameters
|
|
453
|
+
form_params = opts[:form_params] || {}
|
|
454
|
+
|
|
455
|
+
# http body (model)
|
|
456
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(relationship_create)
|
|
457
|
+
|
|
458
|
+
# return_type
|
|
459
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseRelationshipOut'
|
|
460
|
+
|
|
461
|
+
# auth_names
|
|
462
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
463
|
+
|
|
464
|
+
new_options = opts.merge(
|
|
465
|
+
:operation => :"ManagementApi.create_relationship_relationships_post",
|
|
466
|
+
:header_params => header_params,
|
|
467
|
+
:query_params => query_params,
|
|
468
|
+
:form_params => form_params,
|
|
469
|
+
:body => post_body,
|
|
470
|
+
:auth_names => auth_names,
|
|
471
|
+
:return_type => return_type
|
|
472
|
+
)
|
|
473
|
+
|
|
474
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
475
|
+
if @api_client.config.debugging
|
|
476
|
+
@api_client.config.logger.debug "API called: ManagementApi#create_relationship_relationships_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
477
|
+
end
|
|
478
|
+
return data, status_code, headers
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
# Create Role
|
|
482
|
+
# @param role_create [RoleCreate]
|
|
483
|
+
# @param [Hash] opts the optional parameters
|
|
484
|
+
# @return [RoleOut]
|
|
485
|
+
def create_role_roles_post(role_create, opts = {})
|
|
486
|
+
data, _status_code, _headers = create_role_roles_post_with_http_info(role_create, opts)
|
|
487
|
+
data
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
# Create Role
|
|
491
|
+
# @param role_create [RoleCreate]
|
|
492
|
+
# @param [Hash] opts the optional parameters
|
|
493
|
+
# @return [Array<(RoleOut, Integer, Hash)>] RoleOut data, response status code and response headers
|
|
494
|
+
def create_role_roles_post_with_http_info(role_create, opts = {})
|
|
495
|
+
if @api_client.config.debugging
|
|
496
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.create_role_roles_post ...'
|
|
497
|
+
end
|
|
498
|
+
# verify the required parameter 'role_create' is set
|
|
499
|
+
if @api_client.config.client_side_validation && role_create.nil?
|
|
500
|
+
fail ArgumentError, "Missing the required parameter 'role_create' when calling ManagementApi.create_role_roles_post"
|
|
501
|
+
end
|
|
502
|
+
# resource path
|
|
503
|
+
local_var_path = '/roles'
|
|
504
|
+
|
|
505
|
+
# query parameters
|
|
506
|
+
query_params = opts[:query_params] || {}
|
|
507
|
+
|
|
508
|
+
# header parameters
|
|
509
|
+
header_params = opts[:header_params] || {}
|
|
510
|
+
# HTTP header 'Accept' (if needed)
|
|
511
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
512
|
+
# HTTP header 'Content-Type'
|
|
513
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
514
|
+
if !content_type.nil?
|
|
515
|
+
header_params['Content-Type'] = content_type
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
# form parameters
|
|
519
|
+
form_params = opts[:form_params] || {}
|
|
520
|
+
|
|
521
|
+
# http body (model)
|
|
522
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(role_create)
|
|
523
|
+
|
|
524
|
+
# return_type
|
|
525
|
+
return_type = opts[:debug_return_type] || 'RoleOut'
|
|
526
|
+
|
|
527
|
+
# auth_names
|
|
528
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
529
|
+
|
|
530
|
+
new_options = opts.merge(
|
|
531
|
+
:operation => :"ManagementApi.create_role_roles_post",
|
|
532
|
+
:header_params => header_params,
|
|
533
|
+
:query_params => query_params,
|
|
534
|
+
:form_params => form_params,
|
|
535
|
+
:body => post_body,
|
|
536
|
+
:auth_names => auth_names,
|
|
537
|
+
:return_type => return_type
|
|
538
|
+
)
|
|
539
|
+
|
|
540
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
541
|
+
if @api_client.config.debugging
|
|
542
|
+
@api_client.config.logger.debug "API called: ManagementApi#create_role_roles_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
543
|
+
end
|
|
544
|
+
return data, status_code, headers
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
# Delete Acl Entry
|
|
548
|
+
# @param acl_id [Integer]
|
|
549
|
+
# @param [Hash] opts the optional parameters
|
|
550
|
+
# @return [SuccessResponseDictStrInt]
|
|
551
|
+
def delete_acl_entry_acl_acl_id_delete(acl_id, opts = {})
|
|
552
|
+
data, _status_code, _headers = delete_acl_entry_acl_acl_id_delete_with_http_info(acl_id, opts)
|
|
553
|
+
data
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
# Delete Acl Entry
|
|
557
|
+
# @param acl_id [Integer]
|
|
558
|
+
# @param [Hash] opts the optional parameters
|
|
559
|
+
# @return [Array<(SuccessResponseDictStrInt, Integer, Hash)>] SuccessResponseDictStrInt data, response status code and response headers
|
|
560
|
+
def delete_acl_entry_acl_acl_id_delete_with_http_info(acl_id, opts = {})
|
|
561
|
+
if @api_client.config.debugging
|
|
562
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.delete_acl_entry_acl_acl_id_delete ...'
|
|
563
|
+
end
|
|
564
|
+
# verify the required parameter 'acl_id' is set
|
|
565
|
+
if @api_client.config.client_side_validation && acl_id.nil?
|
|
566
|
+
fail ArgumentError, "Missing the required parameter 'acl_id' when calling ManagementApi.delete_acl_entry_acl_acl_id_delete"
|
|
567
|
+
end
|
|
568
|
+
# resource path
|
|
569
|
+
local_var_path = '/acl/{acl_id}'.sub('{' + 'acl_id' + '}', CGI.escape(acl_id.to_s))
|
|
570
|
+
|
|
571
|
+
# query parameters
|
|
572
|
+
query_params = opts[:query_params] || {}
|
|
573
|
+
|
|
574
|
+
# header parameters
|
|
575
|
+
header_params = opts[:header_params] || {}
|
|
576
|
+
# HTTP header 'Accept' (if needed)
|
|
577
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
578
|
+
|
|
579
|
+
# form parameters
|
|
580
|
+
form_params = opts[:form_params] || {}
|
|
581
|
+
|
|
582
|
+
# http body (model)
|
|
583
|
+
post_body = opts[:debug_body]
|
|
584
|
+
|
|
585
|
+
# return_type
|
|
586
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseDictStrInt'
|
|
587
|
+
|
|
588
|
+
# auth_names
|
|
589
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
590
|
+
|
|
591
|
+
new_options = opts.merge(
|
|
592
|
+
:operation => :"ManagementApi.delete_acl_entry_acl_acl_id_delete",
|
|
593
|
+
:header_params => header_params,
|
|
594
|
+
:query_params => query_params,
|
|
595
|
+
:form_params => form_params,
|
|
596
|
+
:body => post_body,
|
|
597
|
+
:auth_names => auth_names,
|
|
598
|
+
:return_type => return_type
|
|
599
|
+
)
|
|
600
|
+
|
|
601
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
602
|
+
if @api_client.config.debugging
|
|
603
|
+
@api_client.config.logger.debug "API called: ManagementApi#delete_acl_entry_acl_acl_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
604
|
+
end
|
|
605
|
+
return data, status_code, headers
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
# Delete Permission
|
|
609
|
+
# @param permission_id [Integer]
|
|
610
|
+
# @param [Hash] opts the optional parameters
|
|
611
|
+
# @return [SuccessResponseDictStrInt]
|
|
612
|
+
def delete_permission_permissions_permission_id_delete(permission_id, opts = {})
|
|
613
|
+
data, _status_code, _headers = delete_permission_permissions_permission_id_delete_with_http_info(permission_id, opts)
|
|
614
|
+
data
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
# Delete Permission
|
|
618
|
+
# @param permission_id [Integer]
|
|
619
|
+
# @param [Hash] opts the optional parameters
|
|
620
|
+
# @return [Array<(SuccessResponseDictStrInt, Integer, Hash)>] SuccessResponseDictStrInt data, response status code and response headers
|
|
621
|
+
def delete_permission_permissions_permission_id_delete_with_http_info(permission_id, opts = {})
|
|
622
|
+
if @api_client.config.debugging
|
|
623
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.delete_permission_permissions_permission_id_delete ...'
|
|
624
|
+
end
|
|
625
|
+
# verify the required parameter 'permission_id' is set
|
|
626
|
+
if @api_client.config.client_side_validation && permission_id.nil?
|
|
627
|
+
fail ArgumentError, "Missing the required parameter 'permission_id' when calling ManagementApi.delete_permission_permissions_permission_id_delete"
|
|
628
|
+
end
|
|
629
|
+
# resource path
|
|
630
|
+
local_var_path = '/permissions/{permission_id}'.sub('{' + 'permission_id' + '}', CGI.escape(permission_id.to_s))
|
|
631
|
+
|
|
632
|
+
# query parameters
|
|
633
|
+
query_params = opts[:query_params] || {}
|
|
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] || 'SuccessResponseDictStrInt'
|
|
648
|
+
|
|
649
|
+
# auth_names
|
|
650
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
651
|
+
|
|
652
|
+
new_options = opts.merge(
|
|
653
|
+
:operation => :"ManagementApi.delete_permission_permissions_permission_id_delete",
|
|
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(:DELETE, local_var_path, new_options)
|
|
663
|
+
if @api_client.config.debugging
|
|
664
|
+
@api_client.config.logger.debug "API called: ManagementApi#delete_permission_permissions_permission_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
665
|
+
end
|
|
666
|
+
return data, status_code, headers
|
|
667
|
+
end
|
|
668
|
+
|
|
669
|
+
# Delete Policy
|
|
670
|
+
# @param policy_key [String]
|
|
671
|
+
# @param [Hash] opts the optional parameters
|
|
672
|
+
# @return [SuccessResponseDictStrStr]
|
|
673
|
+
def delete_policy_policies_policy_key_delete(policy_key, opts = {})
|
|
674
|
+
data, _status_code, _headers = delete_policy_policies_policy_key_delete_with_http_info(policy_key, opts)
|
|
675
|
+
data
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
# Delete Policy
|
|
679
|
+
# @param policy_key [String]
|
|
680
|
+
# @param [Hash] opts the optional parameters
|
|
681
|
+
# @return [Array<(SuccessResponseDictStrStr, Integer, Hash)>] SuccessResponseDictStrStr data, response status code and response headers
|
|
682
|
+
def delete_policy_policies_policy_key_delete_with_http_info(policy_key, opts = {})
|
|
683
|
+
if @api_client.config.debugging
|
|
684
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.delete_policy_policies_policy_key_delete ...'
|
|
685
|
+
end
|
|
686
|
+
# verify the required parameter 'policy_key' is set
|
|
687
|
+
if @api_client.config.client_side_validation && policy_key.nil?
|
|
688
|
+
fail ArgumentError, "Missing the required parameter 'policy_key' when calling ManagementApi.delete_policy_policies_policy_key_delete"
|
|
689
|
+
end
|
|
690
|
+
# resource path
|
|
691
|
+
local_var_path = '/policies/{policy_key}'.sub('{' + 'policy_key' + '}', CGI.escape(policy_key.to_s))
|
|
692
|
+
|
|
693
|
+
# query parameters
|
|
694
|
+
query_params = opts[:query_params] || {}
|
|
695
|
+
|
|
696
|
+
# header parameters
|
|
697
|
+
header_params = opts[:header_params] || {}
|
|
698
|
+
# HTTP header 'Accept' (if needed)
|
|
699
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
700
|
+
|
|
701
|
+
# form parameters
|
|
702
|
+
form_params = opts[:form_params] || {}
|
|
703
|
+
|
|
704
|
+
# http body (model)
|
|
705
|
+
post_body = opts[:debug_body]
|
|
706
|
+
|
|
707
|
+
# return_type
|
|
708
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseDictStrStr'
|
|
709
|
+
|
|
710
|
+
# auth_names
|
|
711
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
712
|
+
|
|
713
|
+
new_options = opts.merge(
|
|
714
|
+
:operation => :"ManagementApi.delete_policy_policies_policy_key_delete",
|
|
715
|
+
:header_params => header_params,
|
|
716
|
+
:query_params => query_params,
|
|
717
|
+
:form_params => form_params,
|
|
718
|
+
:body => post_body,
|
|
719
|
+
:auth_names => auth_names,
|
|
720
|
+
:return_type => return_type
|
|
721
|
+
)
|
|
722
|
+
|
|
723
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
724
|
+
if @api_client.config.debugging
|
|
725
|
+
@api_client.config.logger.debug "API called: ManagementApi#delete_policy_policies_policy_key_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
726
|
+
end
|
|
727
|
+
return data, status_code, headers
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
# Delete Role
|
|
731
|
+
# @param role_id [Integer]
|
|
732
|
+
# @param [Hash] opts the optional parameters
|
|
733
|
+
# @return [SuccessResponseDictStrInt]
|
|
734
|
+
def delete_role_roles_role_id_delete(role_id, opts = {})
|
|
735
|
+
data, _status_code, _headers = delete_role_roles_role_id_delete_with_http_info(role_id, opts)
|
|
736
|
+
data
|
|
737
|
+
end
|
|
738
|
+
|
|
739
|
+
# Delete Role
|
|
740
|
+
# @param role_id [Integer]
|
|
741
|
+
# @param [Hash] opts the optional parameters
|
|
742
|
+
# @return [Array<(SuccessResponseDictStrInt, Integer, Hash)>] SuccessResponseDictStrInt data, response status code and response headers
|
|
743
|
+
def delete_role_roles_role_id_delete_with_http_info(role_id, opts = {})
|
|
744
|
+
if @api_client.config.debugging
|
|
745
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.delete_role_roles_role_id_delete ...'
|
|
746
|
+
end
|
|
747
|
+
# verify the required parameter 'role_id' is set
|
|
748
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
|
749
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling ManagementApi.delete_role_roles_role_id_delete"
|
|
750
|
+
end
|
|
751
|
+
# resource path
|
|
752
|
+
local_var_path = '/roles/{role_id}'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s))
|
|
753
|
+
|
|
754
|
+
# query parameters
|
|
755
|
+
query_params = opts[:query_params] || {}
|
|
756
|
+
|
|
757
|
+
# header parameters
|
|
758
|
+
header_params = opts[:header_params] || {}
|
|
759
|
+
# HTTP header 'Accept' (if needed)
|
|
760
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
761
|
+
|
|
762
|
+
# form parameters
|
|
763
|
+
form_params = opts[:form_params] || {}
|
|
764
|
+
|
|
765
|
+
# http body (model)
|
|
766
|
+
post_body = opts[:debug_body]
|
|
767
|
+
|
|
768
|
+
# return_type
|
|
769
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseDictStrInt'
|
|
770
|
+
|
|
771
|
+
# auth_names
|
|
772
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
773
|
+
|
|
774
|
+
new_options = opts.merge(
|
|
775
|
+
:operation => :"ManagementApi.delete_role_roles_role_id_delete",
|
|
776
|
+
:header_params => header_params,
|
|
777
|
+
:query_params => query_params,
|
|
778
|
+
:form_params => form_params,
|
|
779
|
+
:body => post_body,
|
|
780
|
+
:auth_names => auth_names,
|
|
781
|
+
:return_type => return_type
|
|
782
|
+
)
|
|
783
|
+
|
|
784
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
785
|
+
if @api_client.config.debugging
|
|
786
|
+
@api_client.config.logger.debug "API called: ManagementApi#delete_role_roles_role_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
787
|
+
end
|
|
788
|
+
return data, status_code, headers
|
|
789
|
+
end
|
|
790
|
+
|
|
791
|
+
# Get Auth Model
|
|
792
|
+
# @param [Hash] opts the optional parameters
|
|
793
|
+
# @return [SuccessResponseAuthModelOut]
|
|
794
|
+
def get_auth_model_auth_model_get(opts = {})
|
|
795
|
+
data, _status_code, _headers = get_auth_model_auth_model_get_with_http_info(opts)
|
|
796
|
+
data
|
|
797
|
+
end
|
|
798
|
+
|
|
799
|
+
# Get Auth Model
|
|
800
|
+
# @param [Hash] opts the optional parameters
|
|
801
|
+
# @return [Array<(SuccessResponseAuthModelOut, Integer, Hash)>] SuccessResponseAuthModelOut data, response status code and response headers
|
|
802
|
+
def get_auth_model_auth_model_get_with_http_info(opts = {})
|
|
803
|
+
if @api_client.config.debugging
|
|
804
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.get_auth_model_auth_model_get ...'
|
|
805
|
+
end
|
|
806
|
+
# resource path
|
|
807
|
+
local_var_path = '/auth-model'
|
|
808
|
+
|
|
809
|
+
# query parameters
|
|
810
|
+
query_params = opts[:query_params] || {}
|
|
811
|
+
|
|
812
|
+
# header parameters
|
|
813
|
+
header_params = opts[:header_params] || {}
|
|
814
|
+
# HTTP header 'Accept' (if needed)
|
|
815
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
816
|
+
|
|
817
|
+
# form parameters
|
|
818
|
+
form_params = opts[:form_params] || {}
|
|
819
|
+
|
|
820
|
+
# http body (model)
|
|
821
|
+
post_body = opts[:debug_body]
|
|
822
|
+
|
|
823
|
+
# return_type
|
|
824
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseAuthModelOut'
|
|
825
|
+
|
|
826
|
+
# auth_names
|
|
827
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
828
|
+
|
|
829
|
+
new_options = opts.merge(
|
|
830
|
+
:operation => :"ManagementApi.get_auth_model_auth_model_get",
|
|
831
|
+
:header_params => header_params,
|
|
832
|
+
:query_params => query_params,
|
|
833
|
+
:form_params => form_params,
|
|
834
|
+
:body => post_body,
|
|
835
|
+
:auth_names => auth_names,
|
|
836
|
+
:return_type => return_type
|
|
837
|
+
)
|
|
838
|
+
|
|
839
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
840
|
+
if @api_client.config.debugging
|
|
841
|
+
@api_client.config.logger.debug "API called: ManagementApi#get_auth_model_auth_model_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
842
|
+
end
|
|
843
|
+
return data, status_code, headers
|
|
844
|
+
end
|
|
845
|
+
|
|
846
|
+
# Impact Analysis
|
|
847
|
+
# @param impact_analysis_request [ImpactAnalysisRequest]
|
|
848
|
+
# @param [Hash] opts the optional parameters
|
|
849
|
+
# @return [SuccessResponseImpactAnalysisResponse]
|
|
850
|
+
def impact_analysis_impact_analysis_post(impact_analysis_request, opts = {})
|
|
851
|
+
data, _status_code, _headers = impact_analysis_impact_analysis_post_with_http_info(impact_analysis_request, opts)
|
|
852
|
+
data
|
|
853
|
+
end
|
|
854
|
+
|
|
855
|
+
# Impact Analysis
|
|
856
|
+
# @param impact_analysis_request [ImpactAnalysisRequest]
|
|
857
|
+
# @param [Hash] opts the optional parameters
|
|
858
|
+
# @return [Array<(SuccessResponseImpactAnalysisResponse, Integer, Hash)>] SuccessResponseImpactAnalysisResponse data, response status code and response headers
|
|
859
|
+
def impact_analysis_impact_analysis_post_with_http_info(impact_analysis_request, opts = {})
|
|
860
|
+
if @api_client.config.debugging
|
|
861
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.impact_analysis_impact_analysis_post ...'
|
|
862
|
+
end
|
|
863
|
+
# verify the required parameter 'impact_analysis_request' is set
|
|
864
|
+
if @api_client.config.client_side_validation && impact_analysis_request.nil?
|
|
865
|
+
fail ArgumentError, "Missing the required parameter 'impact_analysis_request' when calling ManagementApi.impact_analysis_impact_analysis_post"
|
|
866
|
+
end
|
|
867
|
+
# resource path
|
|
868
|
+
local_var_path = '/impact-analysis'
|
|
869
|
+
|
|
870
|
+
# query parameters
|
|
871
|
+
query_params = opts[:query_params] || {}
|
|
872
|
+
|
|
873
|
+
# header parameters
|
|
874
|
+
header_params = opts[:header_params] || {}
|
|
875
|
+
# HTTP header 'Accept' (if needed)
|
|
876
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
877
|
+
# HTTP header 'Content-Type'
|
|
878
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
879
|
+
if !content_type.nil?
|
|
880
|
+
header_params['Content-Type'] = content_type
|
|
881
|
+
end
|
|
882
|
+
|
|
883
|
+
# form parameters
|
|
884
|
+
form_params = opts[:form_params] || {}
|
|
885
|
+
|
|
886
|
+
# http body (model)
|
|
887
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(impact_analysis_request)
|
|
888
|
+
|
|
889
|
+
# return_type
|
|
890
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseImpactAnalysisResponse'
|
|
891
|
+
|
|
892
|
+
# auth_names
|
|
893
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
894
|
+
|
|
895
|
+
new_options = opts.merge(
|
|
896
|
+
:operation => :"ManagementApi.impact_analysis_impact_analysis_post",
|
|
897
|
+
:header_params => header_params,
|
|
898
|
+
:query_params => query_params,
|
|
899
|
+
:form_params => form_params,
|
|
900
|
+
:body => post_body,
|
|
901
|
+
:auth_names => auth_names,
|
|
902
|
+
:return_type => return_type
|
|
903
|
+
)
|
|
904
|
+
|
|
905
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
906
|
+
if @api_client.config.debugging
|
|
907
|
+
@api_client.config.logger.debug "API called: ManagementApi#impact_analysis_impact_analysis_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
908
|
+
end
|
|
909
|
+
return data, status_code, headers
|
|
910
|
+
end
|
|
911
|
+
|
|
912
|
+
# List Acl Entries
|
|
913
|
+
# @param resource_type [String]
|
|
914
|
+
# @param resource_id [String]
|
|
915
|
+
# @param [Hash] opts the optional parameters
|
|
916
|
+
# @return [SuccessResponseListACLOut]
|
|
917
|
+
def list_acl_entries_acl_resource_type_resource_id_get(resource_type, resource_id, opts = {})
|
|
918
|
+
data, _status_code, _headers = list_acl_entries_acl_resource_type_resource_id_get_with_http_info(resource_type, resource_id, opts)
|
|
919
|
+
data
|
|
920
|
+
end
|
|
921
|
+
|
|
922
|
+
# List Acl Entries
|
|
923
|
+
# @param resource_type [String]
|
|
924
|
+
# @param resource_id [String]
|
|
925
|
+
# @param [Hash] opts the optional parameters
|
|
926
|
+
# @return [Array<(SuccessResponseListACLOut, Integer, Hash)>] SuccessResponseListACLOut data, response status code and response headers
|
|
927
|
+
def list_acl_entries_acl_resource_type_resource_id_get_with_http_info(resource_type, resource_id, opts = {})
|
|
928
|
+
if @api_client.config.debugging
|
|
929
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_acl_entries_acl_resource_type_resource_id_get ...'
|
|
930
|
+
end
|
|
931
|
+
# verify the required parameter 'resource_type' is set
|
|
932
|
+
if @api_client.config.client_side_validation && resource_type.nil?
|
|
933
|
+
fail ArgumentError, "Missing the required parameter 'resource_type' when calling ManagementApi.list_acl_entries_acl_resource_type_resource_id_get"
|
|
934
|
+
end
|
|
935
|
+
# verify the required parameter 'resource_id' is set
|
|
936
|
+
if @api_client.config.client_side_validation && resource_id.nil?
|
|
937
|
+
fail ArgumentError, "Missing the required parameter 'resource_id' when calling ManagementApi.list_acl_entries_acl_resource_type_resource_id_get"
|
|
938
|
+
end
|
|
939
|
+
# resource path
|
|
940
|
+
local_var_path = '/acl/{resource_type}/{resource_id}'.sub('{' + 'resource_type' + '}', CGI.escape(resource_type.to_s)).sub('{' + 'resource_id' + '}', CGI.escape(resource_id.to_s))
|
|
941
|
+
|
|
942
|
+
# query parameters
|
|
943
|
+
query_params = opts[:query_params] || {}
|
|
944
|
+
|
|
945
|
+
# header parameters
|
|
946
|
+
header_params = opts[:header_params] || {}
|
|
947
|
+
# HTTP header 'Accept' (if needed)
|
|
948
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
949
|
+
|
|
950
|
+
# form parameters
|
|
951
|
+
form_params = opts[:form_params] || {}
|
|
952
|
+
|
|
953
|
+
# http body (model)
|
|
954
|
+
post_body = opts[:debug_body]
|
|
955
|
+
|
|
956
|
+
# return_type
|
|
957
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseListACLOut'
|
|
958
|
+
|
|
959
|
+
# auth_names
|
|
960
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
961
|
+
|
|
962
|
+
new_options = opts.merge(
|
|
963
|
+
:operation => :"ManagementApi.list_acl_entries_acl_resource_type_resource_id_get",
|
|
964
|
+
:header_params => header_params,
|
|
965
|
+
:query_params => query_params,
|
|
966
|
+
:form_params => form_params,
|
|
967
|
+
:body => post_body,
|
|
968
|
+
:auth_names => auth_names,
|
|
969
|
+
:return_type => return_type
|
|
970
|
+
)
|
|
971
|
+
|
|
972
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
973
|
+
if @api_client.config.debugging
|
|
974
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_acl_entries_acl_resource_type_resource_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
975
|
+
end
|
|
976
|
+
return data, status_code, headers
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
# List Audit Logs
|
|
980
|
+
# @param [Hash] opts the optional parameters
|
|
981
|
+
# @option opts [Integer] :limit (default to 50)
|
|
982
|
+
# @option opts [String] :cursor
|
|
983
|
+
# @option opts [String] :user_id
|
|
984
|
+
# @option opts [String] :resource_id
|
|
985
|
+
# @option opts [String] :decision
|
|
986
|
+
# @option opts [Time] :start_time
|
|
987
|
+
# @option opts [Time] :end_time
|
|
988
|
+
# @return [SuccessResponseListAuditRecordOut]
|
|
989
|
+
def list_audit_logs_audit_get(opts = {})
|
|
990
|
+
data, _status_code, _headers = list_audit_logs_audit_get_with_http_info(opts)
|
|
991
|
+
data
|
|
992
|
+
end
|
|
993
|
+
|
|
994
|
+
# List Audit Logs
|
|
995
|
+
# @param [Hash] opts the optional parameters
|
|
996
|
+
# @option opts [Integer] :limit (default to 50)
|
|
997
|
+
# @option opts [String] :cursor
|
|
998
|
+
# @option opts [String] :user_id
|
|
999
|
+
# @option opts [String] :resource_id
|
|
1000
|
+
# @option opts [String] :decision
|
|
1001
|
+
# @option opts [Time] :start_time
|
|
1002
|
+
# @option opts [Time] :end_time
|
|
1003
|
+
# @return [Array<(SuccessResponseListAuditRecordOut, Integer, Hash)>] SuccessResponseListAuditRecordOut data, response status code and response headers
|
|
1004
|
+
def list_audit_logs_audit_get_with_http_info(opts = {})
|
|
1005
|
+
if @api_client.config.debugging
|
|
1006
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_audit_logs_audit_get ...'
|
|
1007
|
+
end
|
|
1008
|
+
# resource path
|
|
1009
|
+
local_var_path = '/audit'
|
|
1010
|
+
|
|
1011
|
+
# query parameters
|
|
1012
|
+
query_params = opts[:query_params] || {}
|
|
1013
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1014
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1015
|
+
query_params[:'user_id'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
|
1016
|
+
query_params[:'resource_id'] = opts[:'resource_id'] if !opts[:'resource_id'].nil?
|
|
1017
|
+
query_params[:'decision'] = opts[:'decision'] if !opts[:'decision'].nil?
|
|
1018
|
+
query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil?
|
|
1019
|
+
query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?
|
|
1020
|
+
|
|
1021
|
+
# header parameters
|
|
1022
|
+
header_params = opts[:header_params] || {}
|
|
1023
|
+
# HTTP header 'Accept' (if needed)
|
|
1024
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1025
|
+
|
|
1026
|
+
# form parameters
|
|
1027
|
+
form_params = opts[:form_params] || {}
|
|
1028
|
+
|
|
1029
|
+
# http body (model)
|
|
1030
|
+
post_body = opts[:debug_body]
|
|
1031
|
+
|
|
1032
|
+
# return_type
|
|
1033
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseListAuditRecordOut'
|
|
1034
|
+
|
|
1035
|
+
# auth_names
|
|
1036
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
1037
|
+
|
|
1038
|
+
new_options = opts.merge(
|
|
1039
|
+
:operation => :"ManagementApi.list_audit_logs_audit_get",
|
|
1040
|
+
:header_params => header_params,
|
|
1041
|
+
:query_params => query_params,
|
|
1042
|
+
:form_params => form_params,
|
|
1043
|
+
:body => post_body,
|
|
1044
|
+
:auth_names => auth_names,
|
|
1045
|
+
:return_type => return_type
|
|
1046
|
+
)
|
|
1047
|
+
|
|
1048
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1049
|
+
if @api_client.config.debugging
|
|
1050
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_audit_logs_audit_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1051
|
+
end
|
|
1052
|
+
return data, status_code, headers
|
|
1053
|
+
end
|
|
1054
|
+
|
|
1055
|
+
# List Permission Roles
|
|
1056
|
+
# @param permission_id [Integer]
|
|
1057
|
+
# @param [Hash] opts the optional parameters
|
|
1058
|
+
# @return [SuccessResponseListRoleOut]
|
|
1059
|
+
def list_permission_roles_permissions_permission_id_roles_get(permission_id, opts = {})
|
|
1060
|
+
data, _status_code, _headers = list_permission_roles_permissions_permission_id_roles_get_with_http_info(permission_id, opts)
|
|
1061
|
+
data
|
|
1062
|
+
end
|
|
1063
|
+
|
|
1064
|
+
# List Permission Roles
|
|
1065
|
+
# @param permission_id [Integer]
|
|
1066
|
+
# @param [Hash] opts the optional parameters
|
|
1067
|
+
# @return [Array<(SuccessResponseListRoleOut, Integer, Hash)>] SuccessResponseListRoleOut data, response status code and response headers
|
|
1068
|
+
def list_permission_roles_permissions_permission_id_roles_get_with_http_info(permission_id, opts = {})
|
|
1069
|
+
if @api_client.config.debugging
|
|
1070
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_permission_roles_permissions_permission_id_roles_get ...'
|
|
1071
|
+
end
|
|
1072
|
+
# verify the required parameter 'permission_id' is set
|
|
1073
|
+
if @api_client.config.client_side_validation && permission_id.nil?
|
|
1074
|
+
fail ArgumentError, "Missing the required parameter 'permission_id' when calling ManagementApi.list_permission_roles_permissions_permission_id_roles_get"
|
|
1075
|
+
end
|
|
1076
|
+
# resource path
|
|
1077
|
+
local_var_path = '/permissions/{permission_id}/roles'.sub('{' + 'permission_id' + '}', CGI.escape(permission_id.to_s))
|
|
1078
|
+
|
|
1079
|
+
# query parameters
|
|
1080
|
+
query_params = opts[:query_params] || {}
|
|
1081
|
+
|
|
1082
|
+
# header parameters
|
|
1083
|
+
header_params = opts[:header_params] || {}
|
|
1084
|
+
# HTTP header 'Accept' (if needed)
|
|
1085
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1086
|
+
|
|
1087
|
+
# form parameters
|
|
1088
|
+
form_params = opts[:form_params] || {}
|
|
1089
|
+
|
|
1090
|
+
# http body (model)
|
|
1091
|
+
post_body = opts[:debug_body]
|
|
1092
|
+
|
|
1093
|
+
# return_type
|
|
1094
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseListRoleOut'
|
|
1095
|
+
|
|
1096
|
+
# auth_names
|
|
1097
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
1098
|
+
|
|
1099
|
+
new_options = opts.merge(
|
|
1100
|
+
:operation => :"ManagementApi.list_permission_roles_permissions_permission_id_roles_get",
|
|
1101
|
+
:header_params => header_params,
|
|
1102
|
+
:query_params => query_params,
|
|
1103
|
+
:form_params => form_params,
|
|
1104
|
+
:body => post_body,
|
|
1105
|
+
:auth_names => auth_names,
|
|
1106
|
+
:return_type => return_type
|
|
1107
|
+
)
|
|
1108
|
+
|
|
1109
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1110
|
+
if @api_client.config.debugging
|
|
1111
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_permission_roles_permissions_permission_id_roles_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1112
|
+
end
|
|
1113
|
+
return data, status_code, headers
|
|
1114
|
+
end
|
|
1115
|
+
|
|
1116
|
+
# List Permissions
|
|
1117
|
+
# @param [Hash] opts the optional parameters
|
|
1118
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1119
|
+
# @option opts [String] :cursor
|
|
1120
|
+
# @return [SuccessResponseListPermissionOut]
|
|
1121
|
+
def list_permissions_permissions_get(opts = {})
|
|
1122
|
+
data, _status_code, _headers = list_permissions_permissions_get_with_http_info(opts)
|
|
1123
|
+
data
|
|
1124
|
+
end
|
|
1125
|
+
|
|
1126
|
+
# List Permissions
|
|
1127
|
+
# @param [Hash] opts the optional parameters
|
|
1128
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1129
|
+
# @option opts [String] :cursor
|
|
1130
|
+
# @return [Array<(SuccessResponseListPermissionOut, Integer, Hash)>] SuccessResponseListPermissionOut data, response status code and response headers
|
|
1131
|
+
def list_permissions_permissions_get_with_http_info(opts = {})
|
|
1132
|
+
if @api_client.config.debugging
|
|
1133
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_permissions_permissions_get ...'
|
|
1134
|
+
end
|
|
1135
|
+
# resource path
|
|
1136
|
+
local_var_path = '/permissions'
|
|
1137
|
+
|
|
1138
|
+
# query parameters
|
|
1139
|
+
query_params = opts[:query_params] || {}
|
|
1140
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1141
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1142
|
+
|
|
1143
|
+
# header parameters
|
|
1144
|
+
header_params = opts[:header_params] || {}
|
|
1145
|
+
# HTTP header 'Accept' (if needed)
|
|
1146
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1147
|
+
|
|
1148
|
+
# form parameters
|
|
1149
|
+
form_params = opts[:form_params] || {}
|
|
1150
|
+
|
|
1151
|
+
# http body (model)
|
|
1152
|
+
post_body = opts[:debug_body]
|
|
1153
|
+
|
|
1154
|
+
# return_type
|
|
1155
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseListPermissionOut'
|
|
1156
|
+
|
|
1157
|
+
# auth_names
|
|
1158
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
1159
|
+
|
|
1160
|
+
new_options = opts.merge(
|
|
1161
|
+
:operation => :"ManagementApi.list_permissions_permissions_get",
|
|
1162
|
+
:header_params => header_params,
|
|
1163
|
+
:query_params => query_params,
|
|
1164
|
+
:form_params => form_params,
|
|
1165
|
+
:body => post_body,
|
|
1166
|
+
:auth_names => auth_names,
|
|
1167
|
+
:return_type => return_type
|
|
1168
|
+
)
|
|
1169
|
+
|
|
1170
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1171
|
+
if @api_client.config.debugging
|
|
1172
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_permissions_permissions_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1173
|
+
end
|
|
1174
|
+
return data, status_code, headers
|
|
1175
|
+
end
|
|
1176
|
+
|
|
1177
|
+
# List Policies
|
|
1178
|
+
# @param [Hash] opts the optional parameters
|
|
1179
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1180
|
+
# @option opts [String] :cursor
|
|
1181
|
+
# @return [SuccessResponseListPolicyOut]
|
|
1182
|
+
def list_policies_policies_get(opts = {})
|
|
1183
|
+
data, _status_code, _headers = list_policies_policies_get_with_http_info(opts)
|
|
1184
|
+
data
|
|
1185
|
+
end
|
|
1186
|
+
|
|
1187
|
+
# List Policies
|
|
1188
|
+
# @param [Hash] opts the optional parameters
|
|
1189
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1190
|
+
# @option opts [String] :cursor
|
|
1191
|
+
# @return [Array<(SuccessResponseListPolicyOut, Integer, Hash)>] SuccessResponseListPolicyOut data, response status code and response headers
|
|
1192
|
+
def list_policies_policies_get_with_http_info(opts = {})
|
|
1193
|
+
if @api_client.config.debugging
|
|
1194
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_policies_policies_get ...'
|
|
1195
|
+
end
|
|
1196
|
+
# resource path
|
|
1197
|
+
local_var_path = '/policies'
|
|
1198
|
+
|
|
1199
|
+
# query parameters
|
|
1200
|
+
query_params = opts[:query_params] || {}
|
|
1201
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1202
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1203
|
+
|
|
1204
|
+
# header parameters
|
|
1205
|
+
header_params = opts[:header_params] || {}
|
|
1206
|
+
# HTTP header 'Accept' (if needed)
|
|
1207
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1208
|
+
|
|
1209
|
+
# form parameters
|
|
1210
|
+
form_params = opts[:form_params] || {}
|
|
1211
|
+
|
|
1212
|
+
# http body (model)
|
|
1213
|
+
post_body = opts[:debug_body]
|
|
1214
|
+
|
|
1215
|
+
# return_type
|
|
1216
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseListPolicyOut'
|
|
1217
|
+
|
|
1218
|
+
# auth_names
|
|
1219
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
1220
|
+
|
|
1221
|
+
new_options = opts.merge(
|
|
1222
|
+
:operation => :"ManagementApi.list_policies_policies_get",
|
|
1223
|
+
:header_params => header_params,
|
|
1224
|
+
:query_params => query_params,
|
|
1225
|
+
:form_params => form_params,
|
|
1226
|
+
:body => post_body,
|
|
1227
|
+
:auth_names => auth_names,
|
|
1228
|
+
:return_type => return_type
|
|
1229
|
+
)
|
|
1230
|
+
|
|
1231
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1232
|
+
if @api_client.config.debugging
|
|
1233
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_policies_policies_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1234
|
+
end
|
|
1235
|
+
return data, status_code, headers
|
|
1236
|
+
end
|
|
1237
|
+
|
|
1238
|
+
# List Relationships
|
|
1239
|
+
# @param subject_type [String]
|
|
1240
|
+
# @param subject_id [String]
|
|
1241
|
+
# @param [Hash] opts the optional parameters
|
|
1242
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1243
|
+
# @option opts [String] :cursor
|
|
1244
|
+
# @return [SuccessResponseListDictStrStr]
|
|
1245
|
+
def list_relationships_relationships_get(subject_type, subject_id, opts = {})
|
|
1246
|
+
data, _status_code, _headers = list_relationships_relationships_get_with_http_info(subject_type, subject_id, opts)
|
|
1247
|
+
data
|
|
1248
|
+
end
|
|
1249
|
+
|
|
1250
|
+
# List Relationships
|
|
1251
|
+
# @param subject_type [String]
|
|
1252
|
+
# @param subject_id [String]
|
|
1253
|
+
# @param [Hash] opts the optional parameters
|
|
1254
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1255
|
+
# @option opts [String] :cursor
|
|
1256
|
+
# @return [Array<(SuccessResponseListDictStrStr, Integer, Hash)>] SuccessResponseListDictStrStr data, response status code and response headers
|
|
1257
|
+
def list_relationships_relationships_get_with_http_info(subject_type, subject_id, opts = {})
|
|
1258
|
+
if @api_client.config.debugging
|
|
1259
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_relationships_relationships_get ...'
|
|
1260
|
+
end
|
|
1261
|
+
# verify the required parameter 'subject_type' is set
|
|
1262
|
+
if @api_client.config.client_side_validation && subject_type.nil?
|
|
1263
|
+
fail ArgumentError, "Missing the required parameter 'subject_type' when calling ManagementApi.list_relationships_relationships_get"
|
|
1264
|
+
end
|
|
1265
|
+
# verify the required parameter 'subject_id' is set
|
|
1266
|
+
if @api_client.config.client_side_validation && subject_id.nil?
|
|
1267
|
+
fail ArgumentError, "Missing the required parameter 'subject_id' when calling ManagementApi.list_relationships_relationships_get"
|
|
1268
|
+
end
|
|
1269
|
+
# resource path
|
|
1270
|
+
local_var_path = '/relationships'
|
|
1271
|
+
|
|
1272
|
+
# query parameters
|
|
1273
|
+
query_params = opts[:query_params] || {}
|
|
1274
|
+
query_params[:'subject_type'] = subject_type
|
|
1275
|
+
query_params[:'subject_id'] = subject_id
|
|
1276
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1277
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1278
|
+
|
|
1279
|
+
# header parameters
|
|
1280
|
+
header_params = opts[:header_params] || {}
|
|
1281
|
+
# HTTP header 'Accept' (if needed)
|
|
1282
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1283
|
+
|
|
1284
|
+
# form parameters
|
|
1285
|
+
form_params = opts[:form_params] || {}
|
|
1286
|
+
|
|
1287
|
+
# http body (model)
|
|
1288
|
+
post_body = opts[:debug_body]
|
|
1289
|
+
|
|
1290
|
+
# return_type
|
|
1291
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseListDictStrStr'
|
|
1292
|
+
|
|
1293
|
+
# auth_names
|
|
1294
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
1295
|
+
|
|
1296
|
+
new_options = opts.merge(
|
|
1297
|
+
:operation => :"ManagementApi.list_relationships_relationships_get",
|
|
1298
|
+
:header_params => header_params,
|
|
1299
|
+
:query_params => query_params,
|
|
1300
|
+
:form_params => form_params,
|
|
1301
|
+
:body => post_body,
|
|
1302
|
+
:auth_names => auth_names,
|
|
1303
|
+
:return_type => return_type
|
|
1304
|
+
)
|
|
1305
|
+
|
|
1306
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1307
|
+
if @api_client.config.debugging
|
|
1308
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_relationships_relationships_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1309
|
+
end
|
|
1310
|
+
return data, status_code, headers
|
|
1311
|
+
end
|
|
1312
|
+
|
|
1313
|
+
# List Role Permissions
|
|
1314
|
+
# @param role_id [Integer]
|
|
1315
|
+
# @param [Hash] opts the optional parameters
|
|
1316
|
+
# @return [SuccessResponseListPermissionOut]
|
|
1317
|
+
def list_role_permissions_roles_role_id_permissions_get(role_id, opts = {})
|
|
1318
|
+
data, _status_code, _headers = list_role_permissions_roles_role_id_permissions_get_with_http_info(role_id, opts)
|
|
1319
|
+
data
|
|
1320
|
+
end
|
|
1321
|
+
|
|
1322
|
+
# List Role Permissions
|
|
1323
|
+
# @param role_id [Integer]
|
|
1324
|
+
# @param [Hash] opts the optional parameters
|
|
1325
|
+
# @return [Array<(SuccessResponseListPermissionOut, Integer, Hash)>] SuccessResponseListPermissionOut data, response status code and response headers
|
|
1326
|
+
def list_role_permissions_roles_role_id_permissions_get_with_http_info(role_id, opts = {})
|
|
1327
|
+
if @api_client.config.debugging
|
|
1328
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_role_permissions_roles_role_id_permissions_get ...'
|
|
1329
|
+
end
|
|
1330
|
+
# verify the required parameter 'role_id' is set
|
|
1331
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
|
1332
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling ManagementApi.list_role_permissions_roles_role_id_permissions_get"
|
|
1333
|
+
end
|
|
1334
|
+
# resource path
|
|
1335
|
+
local_var_path = '/roles/{role_id}/permissions'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s))
|
|
1336
|
+
|
|
1337
|
+
# query parameters
|
|
1338
|
+
query_params = opts[:query_params] || {}
|
|
1339
|
+
|
|
1340
|
+
# header parameters
|
|
1341
|
+
header_params = opts[:header_params] || {}
|
|
1342
|
+
# HTTP header 'Accept' (if needed)
|
|
1343
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1344
|
+
|
|
1345
|
+
# form parameters
|
|
1346
|
+
form_params = opts[:form_params] || {}
|
|
1347
|
+
|
|
1348
|
+
# http body (model)
|
|
1349
|
+
post_body = opts[:debug_body]
|
|
1350
|
+
|
|
1351
|
+
# return_type
|
|
1352
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseListPermissionOut'
|
|
1353
|
+
|
|
1354
|
+
# auth_names
|
|
1355
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
1356
|
+
|
|
1357
|
+
new_options = opts.merge(
|
|
1358
|
+
:operation => :"ManagementApi.list_role_permissions_roles_role_id_permissions_get",
|
|
1359
|
+
:header_params => header_params,
|
|
1360
|
+
:query_params => query_params,
|
|
1361
|
+
:form_params => form_params,
|
|
1362
|
+
:body => post_body,
|
|
1363
|
+
:auth_names => auth_names,
|
|
1364
|
+
:return_type => return_type
|
|
1365
|
+
)
|
|
1366
|
+
|
|
1367
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1368
|
+
if @api_client.config.debugging
|
|
1369
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_role_permissions_roles_role_id_permissions_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1370
|
+
end
|
|
1371
|
+
return data, status_code, headers
|
|
1372
|
+
end
|
|
1373
|
+
|
|
1374
|
+
# List Roles
|
|
1375
|
+
# @param [Hash] opts the optional parameters
|
|
1376
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1377
|
+
# @option opts [String] :cursor
|
|
1378
|
+
# @return [SuccessResponseListRoleOut]
|
|
1379
|
+
def list_roles_roles_get(opts = {})
|
|
1380
|
+
data, _status_code, _headers = list_roles_roles_get_with_http_info(opts)
|
|
1381
|
+
data
|
|
1382
|
+
end
|
|
1383
|
+
|
|
1384
|
+
# List Roles
|
|
1385
|
+
# @param [Hash] opts the optional parameters
|
|
1386
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1387
|
+
# @option opts [String] :cursor
|
|
1388
|
+
# @return [Array<(SuccessResponseListRoleOut, Integer, Hash)>] SuccessResponseListRoleOut data, response status code and response headers
|
|
1389
|
+
def list_roles_roles_get_with_http_info(opts = {})
|
|
1390
|
+
if @api_client.config.debugging
|
|
1391
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.list_roles_roles_get ...'
|
|
1392
|
+
end
|
|
1393
|
+
# resource path
|
|
1394
|
+
local_var_path = '/roles'
|
|
1395
|
+
|
|
1396
|
+
# query parameters
|
|
1397
|
+
query_params = opts[:query_params] || {}
|
|
1398
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1399
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1400
|
+
|
|
1401
|
+
# header parameters
|
|
1402
|
+
header_params = opts[:header_params] || {}
|
|
1403
|
+
# HTTP header 'Accept' (if needed)
|
|
1404
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1405
|
+
|
|
1406
|
+
# form parameters
|
|
1407
|
+
form_params = opts[:form_params] || {}
|
|
1408
|
+
|
|
1409
|
+
# http body (model)
|
|
1410
|
+
post_body = opts[:debug_body]
|
|
1411
|
+
|
|
1412
|
+
# return_type
|
|
1413
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseListRoleOut'
|
|
1414
|
+
|
|
1415
|
+
# auth_names
|
|
1416
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
1417
|
+
|
|
1418
|
+
new_options = opts.merge(
|
|
1419
|
+
:operation => :"ManagementApi.list_roles_roles_get",
|
|
1420
|
+
:header_params => header_params,
|
|
1421
|
+
:query_params => query_params,
|
|
1422
|
+
:form_params => form_params,
|
|
1423
|
+
:body => post_body,
|
|
1424
|
+
:auth_names => auth_names,
|
|
1425
|
+
:return_type => return_type
|
|
1426
|
+
)
|
|
1427
|
+
|
|
1428
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1429
|
+
if @api_client.config.debugging
|
|
1430
|
+
@api_client.config.logger.debug "API called: ManagementApi#list_roles_roles_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1431
|
+
end
|
|
1432
|
+
return data, status_code, headers
|
|
1433
|
+
end
|
|
1434
|
+
|
|
1435
|
+
# Remove Permission From Role
|
|
1436
|
+
# @param role_id [Integer]
|
|
1437
|
+
# @param permission_id [Integer]
|
|
1438
|
+
# @param [Hash] opts the optional parameters
|
|
1439
|
+
# @return [SuccessResponseDictStrInt]
|
|
1440
|
+
def remove_permission_from_role_roles_role_id_permissions_permission_id_delete(role_id, permission_id, opts = {})
|
|
1441
|
+
data, _status_code, _headers = remove_permission_from_role_roles_role_id_permissions_permission_id_delete_with_http_info(role_id, permission_id, opts)
|
|
1442
|
+
data
|
|
1443
|
+
end
|
|
1444
|
+
|
|
1445
|
+
# Remove Permission From Role
|
|
1446
|
+
# @param role_id [Integer]
|
|
1447
|
+
# @param permission_id [Integer]
|
|
1448
|
+
# @param [Hash] opts the optional parameters
|
|
1449
|
+
# @return [Array<(SuccessResponseDictStrInt, Integer, Hash)>] SuccessResponseDictStrInt data, response status code and response headers
|
|
1450
|
+
def remove_permission_from_role_roles_role_id_permissions_permission_id_delete_with_http_info(role_id, permission_id, opts = {})
|
|
1451
|
+
if @api_client.config.debugging
|
|
1452
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.remove_permission_from_role_roles_role_id_permissions_permission_id_delete ...'
|
|
1453
|
+
end
|
|
1454
|
+
# verify the required parameter 'role_id' is set
|
|
1455
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
|
1456
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling ManagementApi.remove_permission_from_role_roles_role_id_permissions_permission_id_delete"
|
|
1457
|
+
end
|
|
1458
|
+
# verify the required parameter 'permission_id' is set
|
|
1459
|
+
if @api_client.config.client_side_validation && permission_id.nil?
|
|
1460
|
+
fail ArgumentError, "Missing the required parameter 'permission_id' when calling ManagementApi.remove_permission_from_role_roles_role_id_permissions_permission_id_delete"
|
|
1461
|
+
end
|
|
1462
|
+
# resource path
|
|
1463
|
+
local_var_path = '/roles/{role_id}/permissions/{permission_id}'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s)).sub('{' + 'permission_id' + '}', CGI.escape(permission_id.to_s))
|
|
1464
|
+
|
|
1465
|
+
# query parameters
|
|
1466
|
+
query_params = opts[:query_params] || {}
|
|
1467
|
+
|
|
1468
|
+
# header parameters
|
|
1469
|
+
header_params = opts[:header_params] || {}
|
|
1470
|
+
# HTTP header 'Accept' (if needed)
|
|
1471
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1472
|
+
|
|
1473
|
+
# form parameters
|
|
1474
|
+
form_params = opts[:form_params] || {}
|
|
1475
|
+
|
|
1476
|
+
# http body (model)
|
|
1477
|
+
post_body = opts[:debug_body]
|
|
1478
|
+
|
|
1479
|
+
# return_type
|
|
1480
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseDictStrInt'
|
|
1481
|
+
|
|
1482
|
+
# auth_names
|
|
1483
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
1484
|
+
|
|
1485
|
+
new_options = opts.merge(
|
|
1486
|
+
:operation => :"ManagementApi.remove_permission_from_role_roles_role_id_permissions_permission_id_delete",
|
|
1487
|
+
:header_params => header_params,
|
|
1488
|
+
:query_params => query_params,
|
|
1489
|
+
:form_params => form_params,
|
|
1490
|
+
:body => post_body,
|
|
1491
|
+
:auth_names => auth_names,
|
|
1492
|
+
:return_type => return_type
|
|
1493
|
+
)
|
|
1494
|
+
|
|
1495
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1496
|
+
if @api_client.config.debugging
|
|
1497
|
+
@api_client.config.logger.debug "API called: ManagementApi#remove_permission_from_role_roles_role_id_permissions_permission_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1498
|
+
end
|
|
1499
|
+
return data, status_code, headers
|
|
1500
|
+
end
|
|
1501
|
+
|
|
1502
|
+
# Rollback Policy
|
|
1503
|
+
# @param policy_key [String]
|
|
1504
|
+
# @param version [Integer]
|
|
1505
|
+
# @param [Hash] opts the optional parameters
|
|
1506
|
+
# @return [SuccessResponseDictStrUnionIntStr]
|
|
1507
|
+
def rollback_policy_policies_policy_key_rollback_version_post(policy_key, version, opts = {})
|
|
1508
|
+
data, _status_code, _headers = rollback_policy_policies_policy_key_rollback_version_post_with_http_info(policy_key, version, opts)
|
|
1509
|
+
data
|
|
1510
|
+
end
|
|
1511
|
+
|
|
1512
|
+
# Rollback Policy
|
|
1513
|
+
# @param policy_key [String]
|
|
1514
|
+
# @param version [Integer]
|
|
1515
|
+
# @param [Hash] opts the optional parameters
|
|
1516
|
+
# @return [Array<(SuccessResponseDictStrUnionIntStr, Integer, Hash)>] SuccessResponseDictStrUnionIntStr data, response status code and response headers
|
|
1517
|
+
def rollback_policy_policies_policy_key_rollback_version_post_with_http_info(policy_key, version, opts = {})
|
|
1518
|
+
if @api_client.config.debugging
|
|
1519
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.rollback_policy_policies_policy_key_rollback_version_post ...'
|
|
1520
|
+
end
|
|
1521
|
+
# verify the required parameter 'policy_key' is set
|
|
1522
|
+
if @api_client.config.client_side_validation && policy_key.nil?
|
|
1523
|
+
fail ArgumentError, "Missing the required parameter 'policy_key' when calling ManagementApi.rollback_policy_policies_policy_key_rollback_version_post"
|
|
1524
|
+
end
|
|
1525
|
+
# verify the required parameter 'version' is set
|
|
1526
|
+
if @api_client.config.client_side_validation && version.nil?
|
|
1527
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling ManagementApi.rollback_policy_policies_policy_key_rollback_version_post"
|
|
1528
|
+
end
|
|
1529
|
+
# resource path
|
|
1530
|
+
local_var_path = '/policies/{policy_key}/rollback/{version}'.sub('{' + 'policy_key' + '}', CGI.escape(policy_key.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s))
|
|
1531
|
+
|
|
1532
|
+
# query parameters
|
|
1533
|
+
query_params = opts[:query_params] || {}
|
|
1534
|
+
|
|
1535
|
+
# header parameters
|
|
1536
|
+
header_params = opts[:header_params] || {}
|
|
1537
|
+
# HTTP header 'Accept' (if needed)
|
|
1538
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1539
|
+
|
|
1540
|
+
# form parameters
|
|
1541
|
+
form_params = opts[:form_params] || {}
|
|
1542
|
+
|
|
1543
|
+
# http body (model)
|
|
1544
|
+
post_body = opts[:debug_body]
|
|
1545
|
+
|
|
1546
|
+
# return_type
|
|
1547
|
+
return_type = opts[:debug_return_type] || 'SuccessResponseDictStrUnionIntStr'
|
|
1548
|
+
|
|
1549
|
+
# auth_names
|
|
1550
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
1551
|
+
|
|
1552
|
+
new_options = opts.merge(
|
|
1553
|
+
:operation => :"ManagementApi.rollback_policy_policies_policy_key_rollback_version_post",
|
|
1554
|
+
:header_params => header_params,
|
|
1555
|
+
:query_params => query_params,
|
|
1556
|
+
:form_params => form_params,
|
|
1557
|
+
:body => post_body,
|
|
1558
|
+
:auth_names => auth_names,
|
|
1559
|
+
:return_type => return_type
|
|
1560
|
+
)
|
|
1561
|
+
|
|
1562
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1563
|
+
if @api_client.config.debugging
|
|
1564
|
+
@api_client.config.logger.debug "API called: ManagementApi#rollback_policy_policies_policy_key_rollback_version_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1565
|
+
end
|
|
1566
|
+
return data, status_code, headers
|
|
1567
|
+
end
|
|
1568
|
+
|
|
1569
|
+
# Simulate Policy
|
|
1570
|
+
# @param policy_simulation_request [PolicySimulationRequest]
|
|
1571
|
+
# @param [Hash] opts the optional parameters
|
|
1572
|
+
# @return [SuccessResponsePolicySimulationResponse]
|
|
1573
|
+
def simulate_policy_simulate_policy_post(policy_simulation_request, opts = {})
|
|
1574
|
+
data, _status_code, _headers = simulate_policy_simulate_policy_post_with_http_info(policy_simulation_request, opts)
|
|
1575
|
+
data
|
|
1576
|
+
end
|
|
1577
|
+
|
|
1578
|
+
# Simulate Policy
|
|
1579
|
+
# @param policy_simulation_request [PolicySimulationRequest]
|
|
1580
|
+
# @param [Hash] opts the optional parameters
|
|
1581
|
+
# @return [Array<(SuccessResponsePolicySimulationResponse, Integer, Hash)>] SuccessResponsePolicySimulationResponse data, response status code and response headers
|
|
1582
|
+
def simulate_policy_simulate_policy_post_with_http_info(policy_simulation_request, opts = {})
|
|
1583
|
+
if @api_client.config.debugging
|
|
1584
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.simulate_policy_simulate_policy_post ...'
|
|
1585
|
+
end
|
|
1586
|
+
# verify the required parameter 'policy_simulation_request' is set
|
|
1587
|
+
if @api_client.config.client_side_validation && policy_simulation_request.nil?
|
|
1588
|
+
fail ArgumentError, "Missing the required parameter 'policy_simulation_request' when calling ManagementApi.simulate_policy_simulate_policy_post"
|
|
1589
|
+
end
|
|
1590
|
+
# resource path
|
|
1591
|
+
local_var_path = '/simulate-policy'
|
|
1592
|
+
|
|
1593
|
+
# query parameters
|
|
1594
|
+
query_params = opts[:query_params] || {}
|
|
1595
|
+
|
|
1596
|
+
# header parameters
|
|
1597
|
+
header_params = opts[:header_params] || {}
|
|
1598
|
+
# HTTP header 'Accept' (if needed)
|
|
1599
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1600
|
+
# HTTP header 'Content-Type'
|
|
1601
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1602
|
+
if !content_type.nil?
|
|
1603
|
+
header_params['Content-Type'] = content_type
|
|
1604
|
+
end
|
|
1605
|
+
|
|
1606
|
+
# form parameters
|
|
1607
|
+
form_params = opts[:form_params] || {}
|
|
1608
|
+
|
|
1609
|
+
# http body (model)
|
|
1610
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(policy_simulation_request)
|
|
1611
|
+
|
|
1612
|
+
# return_type
|
|
1613
|
+
return_type = opts[:debug_return_type] || 'SuccessResponsePolicySimulationResponse'
|
|
1614
|
+
|
|
1615
|
+
# auth_names
|
|
1616
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
1617
|
+
|
|
1618
|
+
new_options = opts.merge(
|
|
1619
|
+
:operation => :"ManagementApi.simulate_policy_simulate_policy_post",
|
|
1620
|
+
:header_params => header_params,
|
|
1621
|
+
:query_params => query_params,
|
|
1622
|
+
:form_params => form_params,
|
|
1623
|
+
:body => post_body,
|
|
1624
|
+
:auth_names => auth_names,
|
|
1625
|
+
:return_type => return_type
|
|
1626
|
+
)
|
|
1627
|
+
|
|
1628
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1629
|
+
if @api_client.config.debugging
|
|
1630
|
+
@api_client.config.logger.debug "API called: ManagementApi#simulate_policy_simulate_policy_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1631
|
+
end
|
|
1632
|
+
return data, status_code, headers
|
|
1633
|
+
end
|
|
1634
|
+
|
|
1635
|
+
# Update Permission
|
|
1636
|
+
# @param permission_id [Integer]
|
|
1637
|
+
# @param permission_update [PermissionUpdate]
|
|
1638
|
+
# @param [Hash] opts the optional parameters
|
|
1639
|
+
# @return [PermissionOut]
|
|
1640
|
+
def update_permission_permissions_permission_id_put(permission_id, permission_update, opts = {})
|
|
1641
|
+
data, _status_code, _headers = update_permission_permissions_permission_id_put_with_http_info(permission_id, permission_update, opts)
|
|
1642
|
+
data
|
|
1643
|
+
end
|
|
1644
|
+
|
|
1645
|
+
# Update Permission
|
|
1646
|
+
# @param permission_id [Integer]
|
|
1647
|
+
# @param permission_update [PermissionUpdate]
|
|
1648
|
+
# @param [Hash] opts the optional parameters
|
|
1649
|
+
# @return [Array<(PermissionOut, Integer, Hash)>] PermissionOut data, response status code and response headers
|
|
1650
|
+
def update_permission_permissions_permission_id_put_with_http_info(permission_id, permission_update, opts = {})
|
|
1651
|
+
if @api_client.config.debugging
|
|
1652
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.update_permission_permissions_permission_id_put ...'
|
|
1653
|
+
end
|
|
1654
|
+
# verify the required parameter 'permission_id' is set
|
|
1655
|
+
if @api_client.config.client_side_validation && permission_id.nil?
|
|
1656
|
+
fail ArgumentError, "Missing the required parameter 'permission_id' when calling ManagementApi.update_permission_permissions_permission_id_put"
|
|
1657
|
+
end
|
|
1658
|
+
# verify the required parameter 'permission_update' is set
|
|
1659
|
+
if @api_client.config.client_side_validation && permission_update.nil?
|
|
1660
|
+
fail ArgumentError, "Missing the required parameter 'permission_update' when calling ManagementApi.update_permission_permissions_permission_id_put"
|
|
1661
|
+
end
|
|
1662
|
+
# resource path
|
|
1663
|
+
local_var_path = '/permissions/{permission_id}'.sub('{' + 'permission_id' + '}', CGI.escape(permission_id.to_s))
|
|
1664
|
+
|
|
1665
|
+
# query parameters
|
|
1666
|
+
query_params = opts[:query_params] || {}
|
|
1667
|
+
|
|
1668
|
+
# header parameters
|
|
1669
|
+
header_params = opts[:header_params] || {}
|
|
1670
|
+
# HTTP header 'Accept' (if needed)
|
|
1671
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1672
|
+
# HTTP header 'Content-Type'
|
|
1673
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1674
|
+
if !content_type.nil?
|
|
1675
|
+
header_params['Content-Type'] = content_type
|
|
1676
|
+
end
|
|
1677
|
+
|
|
1678
|
+
# form parameters
|
|
1679
|
+
form_params = opts[:form_params] || {}
|
|
1680
|
+
|
|
1681
|
+
# http body (model)
|
|
1682
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(permission_update)
|
|
1683
|
+
|
|
1684
|
+
# return_type
|
|
1685
|
+
return_type = opts[:debug_return_type] || 'PermissionOut'
|
|
1686
|
+
|
|
1687
|
+
# auth_names
|
|
1688
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
1689
|
+
|
|
1690
|
+
new_options = opts.merge(
|
|
1691
|
+
:operation => :"ManagementApi.update_permission_permissions_permission_id_put",
|
|
1692
|
+
:header_params => header_params,
|
|
1693
|
+
:query_params => query_params,
|
|
1694
|
+
:form_params => form_params,
|
|
1695
|
+
:body => post_body,
|
|
1696
|
+
:auth_names => auth_names,
|
|
1697
|
+
:return_type => return_type
|
|
1698
|
+
)
|
|
1699
|
+
|
|
1700
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1701
|
+
if @api_client.config.debugging
|
|
1702
|
+
@api_client.config.logger.debug "API called: ManagementApi#update_permission_permissions_permission_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1703
|
+
end
|
|
1704
|
+
return data, status_code, headers
|
|
1705
|
+
end
|
|
1706
|
+
|
|
1707
|
+
# Update Policy
|
|
1708
|
+
# @param policy_key [String]
|
|
1709
|
+
# @param policy_create [PolicyCreate]
|
|
1710
|
+
# @param [Hash] opts the optional parameters
|
|
1711
|
+
# @return [SuccessResponsePolicyOut]
|
|
1712
|
+
def update_policy_policies_policy_key_put(policy_key, policy_create, opts = {})
|
|
1713
|
+
data, _status_code, _headers = update_policy_policies_policy_key_put_with_http_info(policy_key, policy_create, opts)
|
|
1714
|
+
data
|
|
1715
|
+
end
|
|
1716
|
+
|
|
1717
|
+
# Update Policy
|
|
1718
|
+
# @param policy_key [String]
|
|
1719
|
+
# @param policy_create [PolicyCreate]
|
|
1720
|
+
# @param [Hash] opts the optional parameters
|
|
1721
|
+
# @return [Array<(SuccessResponsePolicyOut, Integer, Hash)>] SuccessResponsePolicyOut data, response status code and response headers
|
|
1722
|
+
def update_policy_policies_policy_key_put_with_http_info(policy_key, policy_create, opts = {})
|
|
1723
|
+
if @api_client.config.debugging
|
|
1724
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.update_policy_policies_policy_key_put ...'
|
|
1725
|
+
end
|
|
1726
|
+
# verify the required parameter 'policy_key' is set
|
|
1727
|
+
if @api_client.config.client_side_validation && policy_key.nil?
|
|
1728
|
+
fail ArgumentError, "Missing the required parameter 'policy_key' when calling ManagementApi.update_policy_policies_policy_key_put"
|
|
1729
|
+
end
|
|
1730
|
+
# verify the required parameter 'policy_create' is set
|
|
1731
|
+
if @api_client.config.client_side_validation && policy_create.nil?
|
|
1732
|
+
fail ArgumentError, "Missing the required parameter 'policy_create' when calling ManagementApi.update_policy_policies_policy_key_put"
|
|
1733
|
+
end
|
|
1734
|
+
# resource path
|
|
1735
|
+
local_var_path = '/policies/{policy_key}'.sub('{' + 'policy_key' + '}', CGI.escape(policy_key.to_s))
|
|
1736
|
+
|
|
1737
|
+
# query parameters
|
|
1738
|
+
query_params = opts[:query_params] || {}
|
|
1739
|
+
|
|
1740
|
+
# header parameters
|
|
1741
|
+
header_params = opts[:header_params] || {}
|
|
1742
|
+
# HTTP header 'Accept' (if needed)
|
|
1743
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1744
|
+
# HTTP header 'Content-Type'
|
|
1745
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1746
|
+
if !content_type.nil?
|
|
1747
|
+
header_params['Content-Type'] = content_type
|
|
1748
|
+
end
|
|
1749
|
+
|
|
1750
|
+
# form parameters
|
|
1751
|
+
form_params = opts[:form_params] || {}
|
|
1752
|
+
|
|
1753
|
+
# http body (model)
|
|
1754
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(policy_create)
|
|
1755
|
+
|
|
1756
|
+
# return_type
|
|
1757
|
+
return_type = opts[:debug_return_type] || 'SuccessResponsePolicyOut'
|
|
1758
|
+
|
|
1759
|
+
# auth_names
|
|
1760
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
1761
|
+
|
|
1762
|
+
new_options = opts.merge(
|
|
1763
|
+
:operation => :"ManagementApi.update_policy_policies_policy_key_put",
|
|
1764
|
+
:header_params => header_params,
|
|
1765
|
+
:query_params => query_params,
|
|
1766
|
+
:form_params => form_params,
|
|
1767
|
+
:body => post_body,
|
|
1768
|
+
:auth_names => auth_names,
|
|
1769
|
+
:return_type => return_type
|
|
1770
|
+
)
|
|
1771
|
+
|
|
1772
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1773
|
+
if @api_client.config.debugging
|
|
1774
|
+
@api_client.config.logger.debug "API called: ManagementApi#update_policy_policies_policy_key_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1775
|
+
end
|
|
1776
|
+
return data, status_code, headers
|
|
1777
|
+
end
|
|
1778
|
+
|
|
1779
|
+
# Update Role
|
|
1780
|
+
# @param role_id [Integer]
|
|
1781
|
+
# @param role_update [RoleUpdate]
|
|
1782
|
+
# @param [Hash] opts the optional parameters
|
|
1783
|
+
# @return [RoleOut]
|
|
1784
|
+
def update_role_roles_role_id_put(role_id, role_update, opts = {})
|
|
1785
|
+
data, _status_code, _headers = update_role_roles_role_id_put_with_http_info(role_id, role_update, opts)
|
|
1786
|
+
data
|
|
1787
|
+
end
|
|
1788
|
+
|
|
1789
|
+
# Update Role
|
|
1790
|
+
# @param role_id [Integer]
|
|
1791
|
+
# @param role_update [RoleUpdate]
|
|
1792
|
+
# @param [Hash] opts the optional parameters
|
|
1793
|
+
# @return [Array<(RoleOut, Integer, Hash)>] RoleOut data, response status code and response headers
|
|
1794
|
+
def update_role_roles_role_id_put_with_http_info(role_id, role_update, opts = {})
|
|
1795
|
+
if @api_client.config.debugging
|
|
1796
|
+
@api_client.config.logger.debug 'Calling API: ManagementApi.update_role_roles_role_id_put ...'
|
|
1797
|
+
end
|
|
1798
|
+
# verify the required parameter 'role_id' is set
|
|
1799
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
|
1800
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling ManagementApi.update_role_roles_role_id_put"
|
|
1801
|
+
end
|
|
1802
|
+
# verify the required parameter 'role_update' is set
|
|
1803
|
+
if @api_client.config.client_side_validation && role_update.nil?
|
|
1804
|
+
fail ArgumentError, "Missing the required parameter 'role_update' when calling ManagementApi.update_role_roles_role_id_put"
|
|
1805
|
+
end
|
|
1806
|
+
# resource path
|
|
1807
|
+
local_var_path = '/roles/{role_id}'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s))
|
|
1808
|
+
|
|
1809
|
+
# query parameters
|
|
1810
|
+
query_params = opts[:query_params] || {}
|
|
1811
|
+
|
|
1812
|
+
# header parameters
|
|
1813
|
+
header_params = opts[:header_params] || {}
|
|
1814
|
+
# HTTP header 'Accept' (if needed)
|
|
1815
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1816
|
+
# HTTP header 'Content-Type'
|
|
1817
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1818
|
+
if !content_type.nil?
|
|
1819
|
+
header_params['Content-Type'] = content_type
|
|
1820
|
+
end
|
|
1821
|
+
|
|
1822
|
+
# form parameters
|
|
1823
|
+
form_params = opts[:form_params] || {}
|
|
1824
|
+
|
|
1825
|
+
# http body (model)
|
|
1826
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(role_update)
|
|
1827
|
+
|
|
1828
|
+
# return_type
|
|
1829
|
+
return_type = opts[:debug_return_type] || 'RoleOut'
|
|
1830
|
+
|
|
1831
|
+
# auth_names
|
|
1832
|
+
auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
|
|
1833
|
+
|
|
1834
|
+
new_options = opts.merge(
|
|
1835
|
+
:operation => :"ManagementApi.update_role_roles_role_id_put",
|
|
1836
|
+
:header_params => header_params,
|
|
1837
|
+
:query_params => query_params,
|
|
1838
|
+
:form_params => form_params,
|
|
1839
|
+
:body => post_body,
|
|
1840
|
+
:auth_names => auth_names,
|
|
1841
|
+
:return_type => return_type
|
|
1842
|
+
)
|
|
1843
|
+
|
|
1844
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1845
|
+
if @api_client.config.debugging
|
|
1846
|
+
@api_client.config.logger.debug "API called: ManagementApi#update_role_roles_role_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1847
|
+
end
|
|
1848
|
+
return data, status_code, headers
|
|
1849
|
+
end
|
|
1850
|
+
end
|
|
1851
|
+
end
|