kinde_sdk 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/kinde_api/README.md +3 -1
- data/kinde_api/docs/ConnectedAppsApi.md +12 -6
- data/kinde_api/docs/CreateOrganizationRequest.md +14 -2
- data/kinde_api/docs/CreateUserRequest.md +2 -0
- data/kinde_api/docs/OrganizationsApi.md +6 -8
- data/kinde_api/docs/Permissions.md +3 -1
- data/kinde_api/docs/RolesApi.md +2 -2
- data/kinde_api/docs/UpdateOrganizationRequest.md +13 -1
- data/kinde_api/docs/UsersApi.md +80 -10
- data/kinde_api/lib/kinde_api/api/apis_api.rb +95 -96
- data/kinde_api/lib/kinde_api/api/applications_api.rb +95 -85
- data/kinde_api/lib/kinde_api/api/business_api.rb +58 -56
- data/kinde_api/lib/kinde_api/api/callbacks_api.rb +164 -144
- data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +66 -54
- data/kinde_api/lib/kinde_api/api/environments_api.rb +71 -58
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +82 -62
- data/kinde_api/lib/kinde_api/api/industries_api.rb +22 -23
- data/kinde_api/lib/kinde_api/api/o_auth_api.rb +63 -72
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +376 -287
- data/kinde_api/lib/kinde_api/api/permissions_api.rb +72 -68
- data/kinde_api/lib/kinde_api/api/roles_api.rb +137 -134
- data/kinde_api/lib/kinde_api/api/subscribers_api.rb +58 -57
- data/kinde_api/lib/kinde_api/api/timezones_api.rb +22 -23
- data/kinde_api/lib/kinde_api/api/users_api.rb +204 -128
- data/kinde_api/lib/kinde_api/api_client.rb +68 -79
- data/kinde_api/lib/kinde_api/api_error.rb +16 -16
- data/kinde_api/lib/kinde_api/configuration.rb +23 -100
- data/kinde_api/lib/kinde_api/models/add_apis_request.rb +49 -52
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +51 -53
- data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/api.rb +61 -70
- data/kinde_api/lib/kinde_api/models/api_applications_inner.rb +54 -63
- data/kinde_api/lib/kinde_api/models/api_result.rb +40 -38
- data/kinde_api/lib/kinde_api/models/apis.rb +52 -56
- data/kinde_api/lib/kinde_api/models/applications.rb +50 -55
- data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +45 -44
- data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +45 -44
- data/kinde_api/lib/kinde_api/models/create_application_request.rb +51 -49
- data/kinde_api/lib/kinde_api/models/create_application_response.rb +49 -50
- data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +49 -50
- data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +77 -87
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +125 -83
- data/kinde_api/lib/kinde_api/models/create_organization_response.rb +50 -55
- data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_organization_user_permission_request.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_permission_request.rb +49 -50
- data/kinde_api/lib/kinde_api/models/create_role_request.rb +53 -56
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_user_request.rb +55 -47
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +51 -49
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +45 -44
- data/kinde_api/lib/kinde_api/models/create_user_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/error.rb +44 -44
- data/kinde_api/lib/kinde_api/models/error_response.rb +42 -40
- data/kinde_api/lib/kinde_api/models/get_application_response.rb +49 -50
- data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +57 -62
- data/kinde_api/lib/kinde_api/models/get_applications_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +52 -52
- data/kinde_api/lib/kinde_api/models/get_organization_users_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +42 -40
- data/kinde_api/lib/kinde_api/models/get_roles_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +42 -40
- data/kinde_api/lib/kinde_api/models/organization.rb +54 -63
- data/kinde_api/lib/kinde_api/models/organization_user.rb +63 -81
- data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +59 -73
- data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +46 -47
- data/kinde_api/lib/kinde_api/models/organization_user_role.rb +50 -55
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +50 -55
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions_permissions.rb +41 -38
- data/kinde_api/lib/kinde_api/models/permissions.rb +59 -52
- data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +42 -40
- data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/role.rb +53 -63
- data/kinde_api/lib/kinde_api/models/roles.rb +52 -56
- data/kinde_api/lib/kinde_api/models/roles_permission_response_inner.rb +54 -63
- data/kinde_api/lib/kinde_api/models/subscriber.rb +54 -63
- data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +58 -71
- data/kinde_api/lib/kinde_api/models/success_response.rb +46 -47
- data/kinde_api/lib/kinde_api/models/token_error_response.rb +45 -44
- data/kinde_api/lib/kinde_api/models/token_introspect.rb +58 -63
- data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +44 -42
- data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +47 -46
- data/kinde_api/lib/kinde_api/models/update_application_request.rb +55 -59
- data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +43 -40
- data/kinde_api/lib/kinde_api/models/update_organization_request.rb +115 -75
- data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +55 -59
- data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +57 -67
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +45 -44
- data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +56 -66
- data/kinde_api/lib/kinde_api/models/update_roles_request.rb +56 -61
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +53 -56
- data/kinde_api/lib/kinde_api/models/update_user_response.rb +66 -73
- data/kinde_api/lib/kinde_api/models/user.rb +97 -118
- data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +46 -47
- data/kinde_api/lib/kinde_api/models/user_identity.rb +45 -44
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +41 -38
- data/kinde_api/lib/kinde_api/models/user_profile.rb +62 -68
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +74 -86
- data/kinde_api/lib/kinde_api/models/users_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +98 -118
- data/kinde_api/lib/kinde_api/version.rb +11 -11
- data/kinde_api/lib/kinde_api.rb +30 -20
- data/kinde_api/spec/api/apis_api_spec.rb +20 -21
- data/kinde_api/spec/api/applications_api_spec.rb +18 -19
- data/kinde_api/spec/api/business_api_spec.rb +12 -13
- data/kinde_api/spec/api/callbacks_api_spec.rb +27 -28
- data/kinde_api/spec/api/connected_apps_api_spec.rb +16 -15
- data/kinde_api/spec/api/environments_api_spec.rb +14 -15
- data/kinde_api/spec/api/feature_flags_api_spec.rb +13 -14
- data/kinde_api/spec/api/industries_api_spec.rb +12 -13
- data/kinde_api/spec/api/o_auth_api_spec.rb +16 -17
- data/kinde_api/spec/api/organizations_api_spec.rb +34 -35
- data/kinde_api/spec/api/permissions_api_spec.rb +15 -16
- data/kinde_api/spec/api/roles_api_spec.rb +20 -21
- data/kinde_api/spec/api/subscribers_api_spec.rb +15 -16
- data/kinde_api/spec/api/timezones_api_spec.rb +12 -13
- data/kinde_api/spec/api/users_api_spec.rb +36 -24
- data/kinde_api/spec/api_client_spec.rb +21 -27
- data/kinde_api/spec/configuration_spec.rb +11 -11
- data/kinde_api/spec/models/add_apis_request_spec.rb +13 -14
- data/kinde_api/spec/models/add_organization_users_request_spec.rb +11 -12
- data/kinde_api/spec/models/add_organization_users_request_users_inner_spec.rb +14 -15
- data/kinde_api/spec/models/add_organization_users_response_spec.rb +14 -15
- data/kinde_api/spec/models/api_applications_inner_spec.rb +15 -16
- data/kinde_api/spec/models/api_result_spec.rb +11 -12
- data/kinde_api/spec/models/api_spec.rb +17 -18
- data/kinde_api/spec/models/apis_spec.rb +15 -16
- data/kinde_api/spec/models/applications_spec.rb +14 -15
- data/kinde_api/spec/models/connected_apps_access_token_spec.rb +13 -14
- data/kinde_api/spec/models/connected_apps_auth_url_spec.rb +13 -14
- data/kinde_api/spec/models/create_application_request_spec.rb +13 -14
- data/kinde_api/spec/models/create_application_response_application_spec.rb +14 -15
- data/kinde_api/spec/models/create_application_response_spec.rb +14 -15
- data/kinde_api/spec/models/create_feature_flag_request_spec.rb +17 -18
- data/kinde_api/spec/models/create_organization_request_spec.rb +53 -18
- data/kinde_api/spec/models/create_organization_response_organization_spec.rb +11 -12
- data/kinde_api/spec/models/create_organization_response_spec.rb +14 -15
- data/kinde_api/spec/models/create_organization_user_permission_request_spec.rb +11 -12
- data/kinde_api/spec/models/create_organization_user_role_request_spec.rb +11 -12
- data/kinde_api/spec/models/create_permission_request_spec.rb +14 -15
- data/kinde_api/spec/models/create_role_request_spec.rb +15 -16
- data/kinde_api/spec/models/create_subscriber_success_response_spec.rb +11 -12
- data/kinde_api/spec/models/create_subscriber_success_response_subscriber_spec.rb +11 -12
- data/kinde_api/spec/models/create_user_request_identities_inner_details_spec.rb +11 -12
- data/kinde_api/spec/models/create_user_request_identities_inner_spec.rb +13 -14
- data/kinde_api/spec/models/create_user_request_profile_spec.rb +13 -14
- data/kinde_api/spec/models/create_user_request_spec.rb +19 -14
- data/kinde_api/spec/models/create_user_response_spec.rb +14 -15
- data/kinde_api/spec/models/error_response_spec.rb +11 -12
- data/kinde_api/spec/models/error_spec.rb +13 -14
- data/kinde_api/spec/models/get_application_response_application_spec.rb +16 -17
- data/kinde_api/spec/models/get_application_response_spec.rb +14 -15
- data/kinde_api/spec/models/get_applications_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_environment_feature_flags_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_organization_feature_flags_response_feature_flags_value_spec.rb +13 -14
- data/kinde_api/spec/models/get_organization_feature_flags_response_spec.rb +14 -15
- data/kinde_api/spec/models/get_organization_users_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_organizations_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_organizations_user_permissions_response_spec.rb +14 -15
- data/kinde_api/spec/models/get_organizations_user_roles_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_permissions_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_redirect_callback_urls_response_spec.rb +11 -12
- data/kinde_api/spec/models/get_roles_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_subscriber_response_spec.rb +14 -15
- data/kinde_api/spec/models/get_subscribers_response_spec.rb +15 -16
- data/kinde_api/spec/models/logout_redirect_urls_spec.rb +11 -12
- data/kinde_api/spec/models/organization_spec.rb +15 -16
- data/kinde_api/spec/models/organization_user_permission_roles_inner_spec.rb +13 -14
- data/kinde_api/spec/models/organization_user_permission_spec.rb +16 -17
- data/kinde_api/spec/models/organization_user_role_permissions_permissions_spec.rb +11 -12
- data/kinde_api/spec/models/organization_user_role_permissions_spec.rb +14 -15
- data/kinde_api/spec/models/organization_user_role_spec.rb +14 -15
- data/kinde_api/spec/models/organization_user_spec.rb +17 -18
- data/kinde_api/spec/models/permissions_spec.rb +20 -15
- data/kinde_api/spec/models/redirect_callback_urls_spec.rb +11 -12
- data/kinde_api/spec/models/replace_logout_redirect_urls_request_spec.rb +11 -12
- data/kinde_api/spec/models/replace_redirect_callback_urls_request_spec.rb +11 -12
- data/kinde_api/spec/models/role_spec.rb +15 -16
- data/kinde_api/spec/models/roles_permission_response_inner_spec.rb +15 -16
- data/kinde_api/spec/models/roles_spec.rb +15 -16
- data/kinde_api/spec/models/subscriber_spec.rb +15 -16
- data/kinde_api/spec/models/subscribers_subscriber_spec.rb +16 -17
- data/kinde_api/spec/models/success_response_spec.rb +13 -14
- data/kinde_api/spec/models/token_error_response_spec.rb +13 -14
- data/kinde_api/spec/models/token_introspect_spec.rb +16 -17
- data/kinde_api/spec/models/update_api_applications_request_applications_inner_spec.rb +13 -14
- data/kinde_api/spec/models/update_api_applications_request_spec.rb +11 -12
- data/kinde_api/spec/models/update_application_request_spec.rb +15 -16
- data/kinde_api/spec/models/update_environement_feature_flag_override_request_spec.rb +11 -12
- data/kinde_api/spec/models/update_organization_request_spec.rb +52 -17
- data/kinde_api/spec/models/update_organization_users_request_spec.rb +11 -12
- data/kinde_api/spec/models/update_organization_users_request_users_inner_spec.rb +15 -16
- data/kinde_api/spec/models/update_organization_users_response_spec.rb +15 -16
- data/kinde_api/spec/models/update_role_permissions_request_permissions_inner_spec.rb +13 -14
- data/kinde_api/spec/models/update_role_permissions_request_spec.rb +11 -12
- data/kinde_api/spec/models/update_role_permissions_response_spec.rb +15 -16
- data/kinde_api/spec/models/update_roles_request_spec.rb +15 -16
- data/kinde_api/spec/models/update_user_request_spec.rb +15 -16
- data/kinde_api/spec/models/update_user_response_spec.rb +17 -18
- data/kinde_api/spec/models/user_identities_inner_spec.rb +13 -14
- data/kinde_api/spec/models/user_identity_result_spec.rb +11 -12
- data/kinde_api/spec/models/user_identity_spec.rb +13 -14
- data/kinde_api/spec/models/user_profile_spec.rb +17 -18
- data/kinde_api/spec/models/user_profile_v2_spec.rb +19 -20
- data/kinde_api/spec/models/user_spec.rb +24 -25
- data/kinde_api/spec/models/users_response_spec.rb +15 -16
- data/kinde_api/spec/models/users_response_users_inner_spec.rb +24 -25
- data/kinde_api/spec/spec_helper.rb +61 -63
- data/lib/kinde_sdk/configuration.rb +1 -1
- data/lib/kinde_sdk/version.rb +1 -1
- data/lib/kinde_sdk.rb +63 -16
- metadata +85 -94
- data/Gemfile +0 -15
- data/Gemfile.lock +0 -128
- data/LICENSE +0 -21
- data/README.md +0 -23
- data/Rakefile +0 -10
- data/kinde_api/.gitignore +0 -39
- data/kinde_api/.rspec +0 -2
- data/kinde_sdk.gemspec +0 -33
- data/openapitools.json +0 -7
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinde Management API
|
4
|
+
#
|
5
|
+
# Provides endpoints to manage your Kinde Businesses
|
6
|
+
#
|
7
|
+
# The version of the OpenAPI document: 1
|
8
|
+
# Contact: support@kinde.com
|
9
|
+
# Generated by: https://openapi-generator.tech
|
10
|
+
# OpenAPI Generator version: 7.0.0-SNAPSHOT
|
11
|
+
#
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
@@ -19,11 +19,12 @@ module KindeApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
|
22
23
|
# Add Organization Users
|
23
24
|
# Add existing users to an organization.
|
24
25
|
# @param org_code [String] The organization's code.
|
25
26
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [AddOrganizationUsersRequest] :add_organization_users_request
|
27
|
+
# @option opts [AddOrganizationUsersRequest] :add_organization_users_request
|
27
28
|
# @return [AddOrganizationUsersResponse]
|
28
29
|
def add_organization_users(org_code, opts = {})
|
29
30
|
data, _status_code, _headers = add_organization_users_with_http_info(org_code, opts)
|
@@ -34,7 +35,7 @@ module KindeApi
|
|
34
35
|
# Add existing users to an organization.
|
35
36
|
# @param org_code [String] The organization's code.
|
36
37
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @option opts [AddOrganizationUsersRequest] :add_organization_users_request
|
38
|
+
# @option opts [AddOrganizationUsersRequest] :add_organization_users_request
|
38
39
|
# @return [Array<(AddOrganizationUsersResponse, Integer, Hash)>] AddOrganizationUsersResponse data, response status code and response headers
|
39
40
|
def add_organization_users_with_http_info(org_code, opts = {})
|
40
41
|
if @api_client.config.debugging
|
@@ -42,10 +43,12 @@ module KindeApi
|
|
42
43
|
end
|
43
44
|
# verify the required parameter 'org_code' is set
|
44
45
|
if @api_client.config.client_side_validation && org_code.nil?
|
45
|
-
|
46
|
+
raise ArgumentError,
|
47
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.add_organization_users"
|
46
48
|
end
|
49
|
+
|
47
50
|
# resource path
|
48
|
-
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{
|
51
|
+
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{org_code}', CGI.escape(org_code.to_s))
|
49
52
|
|
50
53
|
# query parameters
|
51
54
|
query_params = opts[:query_params] || {}
|
@@ -53,18 +56,17 @@ module KindeApi
|
|
53
56
|
# header parameters
|
54
57
|
header_params = opts[:header_params] || {}
|
55
58
|
# HTTP header 'Accept' (if needed)
|
56
|
-
header_params['Accept'] =
|
59
|
+
header_params['Accept'] =
|
60
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
57
61
|
# HTTP header 'Content-Type'
|
58
62
|
content_type = @api_client.select_header_content_type(['application/json'])
|
59
|
-
|
60
|
-
header_params['Content-Type'] = content_type
|
61
|
-
end
|
63
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
62
64
|
|
63
65
|
# form parameters
|
64
66
|
form_params = opts[:form_params] || {}
|
65
67
|
|
66
68
|
# http body (model)
|
67
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:
|
69
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:add_organization_users_request])
|
68
70
|
|
69
71
|
# return_type
|
70
72
|
return_type = opts[:debug_return_type] || 'AddOrganizationUsersResponse'
|
@@ -73,41 +75,47 @@ module KindeApi
|
|
73
75
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
74
76
|
|
75
77
|
new_options = opts.merge(
|
76
|
-
:
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
:
|
81
|
-
|
82
|
-
:
|
78
|
+
operation: :"OrganizationsApi.add_organization_users",
|
79
|
+
header_params:,
|
80
|
+
query_params:,
|
81
|
+
form_params:,
|
82
|
+
body: post_body,
|
83
|
+
auth_names:,
|
84
|
+
return_type:
|
83
85
|
)
|
84
86
|
|
85
87
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
88
|
if @api_client.config.debugging
|
87
89
|
@api_client.config.logger.debug "API called: OrganizationsApi#add_organization_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
90
|
end
|
89
|
-
|
91
|
+
[data, status_code, headers]
|
90
92
|
end
|
91
93
|
|
92
94
|
# Create Organization
|
93
95
|
# Create an organization.
|
96
|
+
# @param create_organization_request [CreateOrganizationRequest] Organization details.
|
94
97
|
# @param [Hash] opts the optional parameters
|
95
|
-
# @option opts [CreateOrganizationRequest] :create_organization_request Organization details.
|
96
98
|
# @return [CreateOrganizationResponse]
|
97
|
-
def create_organization(opts = {})
|
98
|
-
data, _status_code, _headers = create_organization_with_http_info(opts)
|
99
|
+
def create_organization(create_organization_request, opts = {})
|
100
|
+
data, _status_code, _headers = create_organization_with_http_info(create_organization_request, opts)
|
99
101
|
data
|
100
102
|
end
|
101
103
|
|
102
104
|
# Create Organization
|
103
105
|
# Create an organization.
|
106
|
+
# @param create_organization_request [CreateOrganizationRequest] Organization details.
|
104
107
|
# @param [Hash] opts the optional parameters
|
105
|
-
# @option opts [CreateOrganizationRequest] :create_organization_request Organization details.
|
106
108
|
# @return [Array<(CreateOrganizationResponse, Integer, Hash)>] CreateOrganizationResponse data, response status code and response headers
|
107
|
-
def create_organization_with_http_info(opts = {})
|
109
|
+
def create_organization_with_http_info(create_organization_request, opts = {})
|
108
110
|
if @api_client.config.debugging
|
109
111
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization ...'
|
110
112
|
end
|
113
|
+
# verify the required parameter 'create_organization_request' is set
|
114
|
+
if @api_client.config.client_side_validation && create_organization_request.nil?
|
115
|
+
raise ArgumentError,
|
116
|
+
"Missing the required parameter 'create_organization_request' when calling OrganizationsApi.create_organization"
|
117
|
+
end
|
118
|
+
|
111
119
|
# resource path
|
112
120
|
local_var_path = '/api/v1/organization'
|
113
121
|
|
@@ -117,18 +125,17 @@ module KindeApi
|
|
117
125
|
# header parameters
|
118
126
|
header_params = opts[:header_params] || {}
|
119
127
|
# HTTP header 'Accept' (if needed)
|
120
|
-
header_params['Accept'] =
|
128
|
+
header_params['Accept'] =
|
129
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
121
130
|
# HTTP header 'Content-Type'
|
122
131
|
content_type = @api_client.select_header_content_type(['application/json'])
|
123
|
-
|
124
|
-
header_params['Content-Type'] = content_type
|
125
|
-
end
|
132
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
126
133
|
|
127
134
|
# form parameters
|
128
135
|
form_params = opts[:form_params] || {}
|
129
136
|
|
130
137
|
# http body (model)
|
131
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
138
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_organization_request)
|
132
139
|
|
133
140
|
# return_type
|
134
141
|
return_type = opts[:debug_return_type] || 'CreateOrganizationResponse'
|
@@ -137,20 +144,20 @@ module KindeApi
|
|
137
144
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
138
145
|
|
139
146
|
new_options = opts.merge(
|
140
|
-
:
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
:
|
145
|
-
|
146
|
-
:
|
147
|
+
operation: :"OrganizationsApi.create_organization",
|
148
|
+
header_params:,
|
149
|
+
query_params:,
|
150
|
+
form_params:,
|
151
|
+
body: post_body,
|
152
|
+
auth_names:,
|
153
|
+
return_type:
|
147
154
|
)
|
148
155
|
|
149
156
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
150
157
|
if @api_client.config.debugging
|
151
158
|
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
152
159
|
end
|
153
|
-
|
160
|
+
[data, status_code, headers]
|
154
161
|
end
|
155
162
|
|
156
163
|
# Add Organization User Permission
|
@@ -161,7 +168,8 @@ module KindeApi
|
|
161
168
|
# @param [Hash] opts the optional parameters
|
162
169
|
# @return [SuccessResponse]
|
163
170
|
def create_organization_user_permission(org_code, user_id, create_organization_user_permission_request, opts = {})
|
164
|
-
data, _status_code, _headers = create_organization_user_permission_with_http_info(org_code, user_id,
|
171
|
+
data, _status_code, _headers = create_organization_user_permission_with_http_info(org_code, user_id,
|
172
|
+
create_organization_user_permission_request, opts)
|
165
173
|
data
|
166
174
|
end
|
167
175
|
|
@@ -172,24 +180,31 @@ module KindeApi
|
|
172
180
|
# @param create_organization_user_permission_request [CreateOrganizationUserPermissionRequest] Permission details.
|
173
181
|
# @param [Hash] opts the optional parameters
|
174
182
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
175
|
-
def create_organization_user_permission_with_http_info(org_code, user_id,
|
183
|
+
def create_organization_user_permission_with_http_info(org_code, user_id,
|
184
|
+
create_organization_user_permission_request, opts = {})
|
176
185
|
if @api_client.config.debugging
|
177
186
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_user_permission ...'
|
178
187
|
end
|
179
188
|
# verify the required parameter 'org_code' is set
|
180
189
|
if @api_client.config.client_side_validation && org_code.nil?
|
181
|
-
|
190
|
+
raise ArgumentError,
|
191
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.create_organization_user_permission"
|
182
192
|
end
|
183
193
|
# verify the required parameter 'user_id' is set
|
184
194
|
if @api_client.config.client_side_validation && user_id.nil?
|
185
|
-
|
195
|
+
raise ArgumentError,
|
196
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.create_organization_user_permission"
|
186
197
|
end
|
187
198
|
# verify the required parameter 'create_organization_user_permission_request' is set
|
188
199
|
if @api_client.config.client_side_validation && create_organization_user_permission_request.nil?
|
189
|
-
|
200
|
+
raise ArgumentError,
|
201
|
+
"Missing the required parameter 'create_organization_user_permission_request' when calling OrganizationsApi.create_organization_user_permission"
|
190
202
|
end
|
203
|
+
|
191
204
|
# resource path
|
192
|
-
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions'.sub('{
|
205
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
206
|
+
'{user_id}', CGI.escape(user_id.to_s)
|
207
|
+
)
|
193
208
|
|
194
209
|
# query parameters
|
195
210
|
query_params = opts[:query_params] || {}
|
@@ -197,12 +212,11 @@ module KindeApi
|
|
197
212
|
# header parameters
|
198
213
|
header_params = opts[:header_params] || {}
|
199
214
|
# HTTP header 'Accept' (if needed)
|
200
|
-
header_params['Accept'] =
|
215
|
+
header_params['Accept'] =
|
216
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
201
217
|
# HTTP header 'Content-Type'
|
202
218
|
content_type = @api_client.select_header_content_type(['application/json'])
|
203
|
-
|
204
|
-
header_params['Content-Type'] = content_type
|
205
|
-
end
|
219
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
206
220
|
|
207
221
|
# form parameters
|
208
222
|
form_params = opts[:form_params] || {}
|
@@ -217,20 +231,20 @@ module KindeApi
|
|
217
231
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
218
232
|
|
219
233
|
new_options = opts.merge(
|
220
|
-
:
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
:
|
225
|
-
|
226
|
-
:
|
234
|
+
operation: :"OrganizationsApi.create_organization_user_permission",
|
235
|
+
header_params:,
|
236
|
+
query_params:,
|
237
|
+
form_params:,
|
238
|
+
body: post_body,
|
239
|
+
auth_names:,
|
240
|
+
return_type:
|
227
241
|
)
|
228
242
|
|
229
243
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
230
244
|
if @api_client.config.debugging
|
231
245
|
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_user_permission\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
232
246
|
end
|
233
|
-
|
247
|
+
[data, status_code, headers]
|
234
248
|
end
|
235
249
|
|
236
250
|
# Add Organization User Role
|
@@ -241,7 +255,8 @@ module KindeApi
|
|
241
255
|
# @param [Hash] opts the optional parameters
|
242
256
|
# @return [SuccessResponse]
|
243
257
|
def create_organization_user_role(org_code, user_id, create_organization_user_role_request, opts = {})
|
244
|
-
data, _status_code, _headers = create_organization_user_role_with_http_info(org_code, user_id,
|
258
|
+
data, _status_code, _headers = create_organization_user_role_with_http_info(org_code, user_id,
|
259
|
+
create_organization_user_role_request, opts)
|
245
260
|
data
|
246
261
|
end
|
247
262
|
|
@@ -252,24 +267,31 @@ module KindeApi
|
|
252
267
|
# @param create_organization_user_role_request [CreateOrganizationUserRoleRequest] Role details.
|
253
268
|
# @param [Hash] opts the optional parameters
|
254
269
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
255
|
-
def create_organization_user_role_with_http_info(org_code, user_id, create_organization_user_role_request,
|
270
|
+
def create_organization_user_role_with_http_info(org_code, user_id, create_organization_user_role_request,
|
271
|
+
opts = {})
|
256
272
|
if @api_client.config.debugging
|
257
273
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_user_role ...'
|
258
274
|
end
|
259
275
|
# verify the required parameter 'org_code' is set
|
260
276
|
if @api_client.config.client_side_validation && org_code.nil?
|
261
|
-
|
277
|
+
raise ArgumentError,
|
278
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.create_organization_user_role"
|
262
279
|
end
|
263
280
|
# verify the required parameter 'user_id' is set
|
264
281
|
if @api_client.config.client_side_validation && user_id.nil?
|
265
|
-
|
282
|
+
raise ArgumentError,
|
283
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.create_organization_user_role"
|
266
284
|
end
|
267
285
|
# verify the required parameter 'create_organization_user_role_request' is set
|
268
286
|
if @api_client.config.client_side_validation && create_organization_user_role_request.nil?
|
269
|
-
|
287
|
+
raise ArgumentError,
|
288
|
+
"Missing the required parameter 'create_organization_user_role_request' when calling OrganizationsApi.create_organization_user_role"
|
270
289
|
end
|
290
|
+
|
271
291
|
# resource path
|
272
|
-
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles'.sub('{
|
292
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
293
|
+
'{user_id}', CGI.escape(user_id.to_s)
|
294
|
+
)
|
273
295
|
|
274
296
|
# query parameters
|
275
297
|
query_params = opts[:query_params] || {}
|
@@ -277,12 +299,11 @@ module KindeApi
|
|
277
299
|
# header parameters
|
278
300
|
header_params = opts[:header_params] || {}
|
279
301
|
# HTTP header 'Accept' (if needed)
|
280
|
-
header_params['Accept'] =
|
302
|
+
header_params['Accept'] =
|
303
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
281
304
|
# HTTP header 'Content-Type'
|
282
305
|
content_type = @api_client.select_header_content_type(['application/json'])
|
283
|
-
|
284
|
-
header_params['Content-Type'] = content_type
|
285
|
-
end
|
306
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
286
307
|
|
287
308
|
# form parameters
|
288
309
|
form_params = opts[:form_params] || {}
|
@@ -297,20 +318,20 @@ module KindeApi
|
|
297
318
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
298
319
|
|
299
320
|
new_options = opts.merge(
|
300
|
-
:
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
:
|
305
|
-
|
306
|
-
:
|
321
|
+
operation: :"OrganizationsApi.create_organization_user_role",
|
322
|
+
header_params:,
|
323
|
+
query_params:,
|
324
|
+
form_params:,
|
325
|
+
body: post_body,
|
326
|
+
auth_names:,
|
327
|
+
return_type:
|
307
328
|
)
|
308
329
|
|
309
330
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
310
331
|
if @api_client.config.debugging
|
311
332
|
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_user_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
312
333
|
end
|
313
|
-
|
334
|
+
[data, status_code, headers]
|
314
335
|
end
|
315
336
|
|
316
337
|
# Delete Organization
|
@@ -334,10 +355,12 @@ module KindeApi
|
|
334
355
|
end
|
335
356
|
# verify the required parameter 'org_code' is set
|
336
357
|
if @api_client.config.client_side_validation && org_code.nil?
|
337
|
-
|
358
|
+
raise ArgumentError,
|
359
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization"
|
338
360
|
end
|
361
|
+
|
339
362
|
# resource path
|
340
|
-
local_var_path = '/api/v1/organization/{org_code}'.sub('{
|
363
|
+
local_var_path = '/api/v1/organization/{org_code}'.sub('{org_code}', CGI.escape(org_code.to_s))
|
341
364
|
|
342
365
|
# query parameters
|
343
366
|
query_params = opts[:query_params] || {}
|
@@ -345,7 +368,8 @@ module KindeApi
|
|
345
368
|
# header parameters
|
346
369
|
header_params = opts[:header_params] || {}
|
347
370
|
# HTTP header 'Accept' (if needed)
|
348
|
-
header_params['Accept'] =
|
371
|
+
header_params['Accept'] =
|
372
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
349
373
|
|
350
374
|
# form parameters
|
351
375
|
form_params = opts[:form_params] || {}
|
@@ -360,20 +384,20 @@ module KindeApi
|
|
360
384
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
361
385
|
|
362
386
|
new_options = opts.merge(
|
363
|
-
:
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
:
|
368
|
-
|
369
|
-
:
|
387
|
+
operation: :"OrganizationsApi.delete_organization",
|
388
|
+
header_params:,
|
389
|
+
query_params:,
|
390
|
+
form_params:,
|
391
|
+
body: post_body,
|
392
|
+
auth_names:,
|
393
|
+
return_type:
|
370
394
|
)
|
371
395
|
|
372
396
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
373
397
|
if @api_client.config.debugging
|
374
398
|
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
375
399
|
end
|
376
|
-
|
400
|
+
[data, status_code, headers]
|
377
401
|
end
|
378
402
|
|
379
403
|
# Delete Organization Feature Flag Override
|
@@ -383,7 +407,8 @@ module KindeApi
|
|
383
407
|
# @param [Hash] opts the optional parameters
|
384
408
|
# @return [SuccessResponse]
|
385
409
|
def delete_organization_feature_flag_override(org_code, feature_flag_key, opts = {})
|
386
|
-
data, _status_code, _headers = delete_organization_feature_flag_override_with_http_info(org_code,
|
410
|
+
data, _status_code, _headers = delete_organization_feature_flag_override_with_http_info(org_code,
|
411
|
+
feature_flag_key, opts)
|
387
412
|
data
|
388
413
|
end
|
389
414
|
|
@@ -399,14 +424,19 @@ module KindeApi
|
|
399
424
|
end
|
400
425
|
# verify the required parameter 'org_code' is set
|
401
426
|
if @api_client.config.client_side_validation && org_code.nil?
|
402
|
-
|
427
|
+
raise ArgumentError,
|
428
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_feature_flag_override"
|
403
429
|
end
|
404
430
|
# verify the required parameter 'feature_flag_key' is set
|
405
431
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
406
|
-
|
432
|
+
raise ArgumentError,
|
433
|
+
"Missing the required parameter 'feature_flag_key' when calling OrganizationsApi.delete_organization_feature_flag_override"
|
407
434
|
end
|
435
|
+
|
408
436
|
# resource path
|
409
|
-
local_var_path = '/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}'.sub('{
|
437
|
+
local_var_path = '/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
438
|
+
'{feature_flag_key}', CGI.escape(feature_flag_key.to_s)
|
439
|
+
)
|
410
440
|
|
411
441
|
# query parameters
|
412
442
|
query_params = opts[:query_params] || {}
|
@@ -414,7 +444,8 @@ module KindeApi
|
|
414
444
|
# header parameters
|
415
445
|
header_params = opts[:header_params] || {}
|
416
446
|
# HTTP header 'Accept' (if needed)
|
417
|
-
header_params['Accept'] =
|
447
|
+
header_params['Accept'] =
|
448
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
418
449
|
|
419
450
|
# form parameters
|
420
451
|
form_params = opts[:form_params] || {}
|
@@ -429,20 +460,20 @@ module KindeApi
|
|
429
460
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
430
461
|
|
431
462
|
new_options = opts.merge(
|
432
|
-
:
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
:
|
437
|
-
|
438
|
-
:
|
463
|
+
operation: :"OrganizationsApi.delete_organization_feature_flag_override",
|
464
|
+
header_params:,
|
465
|
+
query_params:,
|
466
|
+
form_params:,
|
467
|
+
body: post_body,
|
468
|
+
auth_names:,
|
469
|
+
return_type:
|
439
470
|
)
|
440
471
|
|
441
472
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
442
473
|
if @api_client.config.debugging
|
443
474
|
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_feature_flag_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
444
475
|
end
|
445
|
-
|
476
|
+
[data, status_code, headers]
|
446
477
|
end
|
447
478
|
|
448
479
|
# Delete Organization Feature Flag Overrides
|
@@ -466,10 +497,13 @@ module KindeApi
|
|
466
497
|
end
|
467
498
|
# verify the required parameter 'org_code' is set
|
468
499
|
if @api_client.config.client_side_validation && org_code.nil?
|
469
|
-
|
500
|
+
raise ArgumentError,
|
501
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_feature_flag_overrides"
|
470
502
|
end
|
503
|
+
|
471
504
|
# resource path
|
472
|
-
local_var_path = '/api/v1/organizations/{org_code}/feature_flags'.sub('{
|
505
|
+
local_var_path = '/api/v1/organizations/{org_code}/feature_flags'.sub('{org_code}',
|
506
|
+
CGI.escape(org_code.to_s))
|
473
507
|
|
474
508
|
# query parameters
|
475
509
|
query_params = opts[:query_params] || {}
|
@@ -477,7 +511,8 @@ module KindeApi
|
|
477
511
|
# header parameters
|
478
512
|
header_params = opts[:header_params] || {}
|
479
513
|
# HTTP header 'Accept' (if needed)
|
480
|
-
header_params['Accept'] =
|
514
|
+
header_params['Accept'] =
|
515
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
481
516
|
|
482
517
|
# form parameters
|
483
518
|
form_params = opts[:form_params] || {}
|
@@ -492,20 +527,20 @@ module KindeApi
|
|
492
527
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
493
528
|
|
494
529
|
new_options = opts.merge(
|
495
|
-
:
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
:
|
500
|
-
|
501
|
-
:
|
530
|
+
operation: :"OrganizationsApi.delete_organization_feature_flag_overrides",
|
531
|
+
header_params:,
|
532
|
+
query_params:,
|
533
|
+
form_params:,
|
534
|
+
body: post_body,
|
535
|
+
auth_names:,
|
536
|
+
return_type:
|
502
537
|
)
|
503
538
|
|
504
539
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
505
540
|
if @api_client.config.debugging
|
506
541
|
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_feature_flag_overrides\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
507
542
|
end
|
508
|
-
|
543
|
+
[data, status_code, headers]
|
509
544
|
end
|
510
545
|
|
511
546
|
# Delete Organization User Permission
|
@@ -516,7 +551,8 @@ module KindeApi
|
|
516
551
|
# @param [Hash] opts the optional parameters
|
517
552
|
# @return [SuccessResponse]
|
518
553
|
def delete_organization_user_permission(org_code, user_id, permission_id, opts = {})
|
519
|
-
data, _status_code, _headers = delete_organization_user_permission_with_http_info(org_code, user_id,
|
554
|
+
data, _status_code, _headers = delete_organization_user_permission_with_http_info(org_code, user_id,
|
555
|
+
permission_id, opts)
|
520
556
|
data
|
521
557
|
end
|
522
558
|
|
@@ -533,18 +569,24 @@ module KindeApi
|
|
533
569
|
end
|
534
570
|
# verify the required parameter 'org_code' is set
|
535
571
|
if @api_client.config.client_side_validation && org_code.nil?
|
536
|
-
|
572
|
+
raise ArgumentError,
|
573
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_user_permission"
|
537
574
|
end
|
538
575
|
# verify the required parameter 'user_id' is set
|
539
576
|
if @api_client.config.client_side_validation && user_id.nil?
|
540
|
-
|
577
|
+
raise ArgumentError,
|
578
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.delete_organization_user_permission"
|
541
579
|
end
|
542
580
|
# verify the required parameter 'permission_id' is set
|
543
581
|
if @api_client.config.client_side_validation && permission_id.nil?
|
544
|
-
|
582
|
+
raise ArgumentError,
|
583
|
+
"Missing the required parameter 'permission_id' when calling OrganizationsApi.delete_organization_user_permission"
|
545
584
|
end
|
585
|
+
|
546
586
|
# resource path
|
547
|
-
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions/{permission_id}'.sub('{
|
587
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions/{permission_id}'.sub('{org_code}', CGI.escape(org_code.to_s)).sub('{user_id}', CGI.escape(user_id.to_s)).sub(
|
588
|
+
'{permission_id}', CGI.escape(permission_id.to_s)
|
589
|
+
)
|
548
590
|
|
549
591
|
# query parameters
|
550
592
|
query_params = opts[:query_params] || {}
|
@@ -552,7 +594,8 @@ module KindeApi
|
|
552
594
|
# header parameters
|
553
595
|
header_params = opts[:header_params] || {}
|
554
596
|
# HTTP header 'Accept' (if needed)
|
555
|
-
header_params['Accept'] =
|
597
|
+
header_params['Accept'] =
|
598
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
556
599
|
|
557
600
|
# form parameters
|
558
601
|
form_params = opts[:form_params] || {}
|
@@ -567,20 +610,20 @@ module KindeApi
|
|
567
610
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
568
611
|
|
569
612
|
new_options = opts.merge(
|
570
|
-
:
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
:
|
575
|
-
|
576
|
-
:
|
613
|
+
operation: :"OrganizationsApi.delete_organization_user_permission",
|
614
|
+
header_params:,
|
615
|
+
query_params:,
|
616
|
+
form_params:,
|
617
|
+
body: post_body,
|
618
|
+
auth_names:,
|
619
|
+
return_type:
|
577
620
|
)
|
578
621
|
|
579
622
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
580
623
|
if @api_client.config.debugging
|
581
624
|
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_user_permission\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
582
625
|
end
|
583
|
-
|
626
|
+
[data, status_code, headers]
|
584
627
|
end
|
585
628
|
|
586
629
|
# Delete Organization User Role
|
@@ -608,18 +651,24 @@ module KindeApi
|
|
608
651
|
end
|
609
652
|
# verify the required parameter 'org_code' is set
|
610
653
|
if @api_client.config.client_side_validation && org_code.nil?
|
611
|
-
|
654
|
+
raise ArgumentError,
|
655
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_user_role"
|
612
656
|
end
|
613
657
|
# verify the required parameter 'user_id' is set
|
614
658
|
if @api_client.config.client_side_validation && user_id.nil?
|
615
|
-
|
659
|
+
raise ArgumentError,
|
660
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.delete_organization_user_role"
|
616
661
|
end
|
617
662
|
# verify the required parameter 'role_id' is set
|
618
663
|
if @api_client.config.client_side_validation && role_id.nil?
|
619
|
-
|
664
|
+
raise ArgumentError,
|
665
|
+
"Missing the required parameter 'role_id' when calling OrganizationsApi.delete_organization_user_role"
|
620
666
|
end
|
667
|
+
|
621
668
|
# resource path
|
622
|
-
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles/{role_id}'.sub('{
|
669
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles/{role_id}'.sub('{org_code}', CGI.escape(org_code.to_s)).sub('{user_id}', CGI.escape(user_id.to_s)).sub(
|
670
|
+
'{role_id}', CGI.escape(role_id.to_s)
|
671
|
+
)
|
623
672
|
|
624
673
|
# query parameters
|
625
674
|
query_params = opts[:query_params] || {}
|
@@ -627,7 +676,8 @@ module KindeApi
|
|
627
676
|
# header parameters
|
628
677
|
header_params = opts[:header_params] || {}
|
629
678
|
# HTTP header 'Accept' (if needed)
|
630
|
-
header_params['Accept'] =
|
679
|
+
header_params['Accept'] =
|
680
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
631
681
|
|
632
682
|
# form parameters
|
633
683
|
form_params = opts[:form_params] || {}
|
@@ -642,24 +692,24 @@ module KindeApi
|
|
642
692
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
643
693
|
|
644
694
|
new_options = opts.merge(
|
645
|
-
:
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
:
|
650
|
-
|
651
|
-
:
|
695
|
+
operation: :"OrganizationsApi.delete_organization_user_role",
|
696
|
+
header_params:,
|
697
|
+
query_params:,
|
698
|
+
form_params:,
|
699
|
+
body: post_body,
|
700
|
+
auth_names:,
|
701
|
+
return_type:
|
652
702
|
)
|
653
703
|
|
654
704
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
655
705
|
if @api_client.config.debugging
|
656
706
|
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_user_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
657
707
|
end
|
658
|
-
|
708
|
+
[data, status_code, headers]
|
659
709
|
end
|
660
710
|
|
661
711
|
# Get Organization
|
662
|
-
# Gets an organization given the organization's code.
|
712
|
+
# Gets an organization given the organization's code.
|
663
713
|
# @param [Hash] opts the optional parameters
|
664
714
|
# @option opts [String] :code The organization's code.
|
665
715
|
# @return [Organization]
|
@@ -669,7 +719,7 @@ module KindeApi
|
|
669
719
|
end
|
670
720
|
|
671
721
|
# Get Organization
|
672
|
-
# Gets an organization given the organization's code.
|
722
|
+
# Gets an organization given the organization's code.
|
673
723
|
# @param [Hash] opts the optional parameters
|
674
724
|
# @option opts [String] :code The organization's code.
|
675
725
|
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
@@ -682,12 +732,13 @@ module KindeApi
|
|
682
732
|
|
683
733
|
# query parameters
|
684
734
|
query_params = opts[:query_params] || {}
|
685
|
-
query_params[:
|
735
|
+
query_params[:code] = opts[:code] unless opts[:code].nil?
|
686
736
|
|
687
737
|
# header parameters
|
688
738
|
header_params = opts[:header_params] || {}
|
689
739
|
# HTTP header 'Accept' (if needed)
|
690
|
-
header_params['Accept'] =
|
740
|
+
header_params['Accept'] =
|
741
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
691
742
|
|
692
743
|
# form parameters
|
693
744
|
form_params = opts[:form_params] || {}
|
@@ -702,20 +753,20 @@ module KindeApi
|
|
702
753
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
703
754
|
|
704
755
|
new_options = opts.merge(
|
705
|
-
:
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
:
|
710
|
-
|
711
|
-
:
|
756
|
+
operation: :"OrganizationsApi.get_organization",
|
757
|
+
header_params:,
|
758
|
+
query_params:,
|
759
|
+
form_params:,
|
760
|
+
body: post_body,
|
761
|
+
auth_names:,
|
762
|
+
return_type:
|
712
763
|
)
|
713
764
|
|
714
765
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
715
766
|
if @api_client.config.debugging
|
716
767
|
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
717
768
|
end
|
718
|
-
|
769
|
+
[data, status_code, headers]
|
719
770
|
end
|
720
771
|
|
721
772
|
# List Organization Feature Flags
|
@@ -739,10 +790,13 @@ module KindeApi
|
|
739
790
|
end
|
740
791
|
# verify the required parameter 'org_code' is set
|
741
792
|
if @api_client.config.client_side_validation && org_code.nil?
|
742
|
-
|
793
|
+
raise ArgumentError,
|
794
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_feature_flags"
|
743
795
|
end
|
796
|
+
|
744
797
|
# resource path
|
745
|
-
local_var_path = '/api/v1/organizations/{org_code}/feature_flags'.sub('{
|
798
|
+
local_var_path = '/api/v1/organizations/{org_code}/feature_flags'.sub('{org_code}',
|
799
|
+
CGI.escape(org_code.to_s))
|
746
800
|
|
747
801
|
# query parameters
|
748
802
|
query_params = opts[:query_params] || {}
|
@@ -750,7 +804,8 @@ module KindeApi
|
|
750
804
|
# header parameters
|
751
805
|
header_params = opts[:header_params] || {}
|
752
806
|
# HTTP header 'Accept' (if needed)
|
753
|
-
header_params['Accept'] =
|
807
|
+
header_params['Accept'] =
|
808
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
754
809
|
|
755
810
|
# form parameters
|
756
811
|
form_params = opts[:form_params] || {}
|
@@ -765,20 +820,20 @@ module KindeApi
|
|
765
820
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
766
821
|
|
767
822
|
new_options = opts.merge(
|
768
|
-
:
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
:
|
773
|
-
|
774
|
-
:
|
823
|
+
operation: :"OrganizationsApi.get_organization_feature_flags",
|
824
|
+
header_params:,
|
825
|
+
query_params:,
|
826
|
+
form_params:,
|
827
|
+
body: post_body,
|
828
|
+
auth_names:,
|
829
|
+
return_type:
|
775
830
|
)
|
776
831
|
|
777
832
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
778
833
|
if @api_client.config.debugging
|
779
834
|
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_feature_flags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
780
835
|
end
|
781
|
-
|
836
|
+
[data, status_code, headers]
|
782
837
|
end
|
783
838
|
|
784
839
|
# List Organization User Permissions
|
@@ -806,23 +861,29 @@ module KindeApi
|
|
806
861
|
end
|
807
862
|
# verify the required parameter 'org_code' is set
|
808
863
|
if @api_client.config.client_side_validation && org_code.nil?
|
809
|
-
|
864
|
+
raise ArgumentError,
|
865
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_user_permissions"
|
810
866
|
end
|
811
867
|
# verify the required parameter 'user_id' is set
|
812
868
|
if @api_client.config.client_side_validation && user_id.nil?
|
813
|
-
|
869
|
+
raise ArgumentError,
|
870
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.get_organization_user_permissions"
|
814
871
|
end
|
872
|
+
|
815
873
|
# resource path
|
816
|
-
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions'.sub('{
|
874
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
875
|
+
'{user_id}', CGI.escape(user_id.to_s)
|
876
|
+
)
|
817
877
|
|
818
878
|
# query parameters
|
819
879
|
query_params = opts[:query_params] || {}
|
820
|
-
query_params[:
|
880
|
+
query_params[:expand] = opts[:expand] unless opts[:expand].nil?
|
821
881
|
|
822
882
|
# header parameters
|
823
883
|
header_params = opts[:header_params] || {}
|
824
884
|
# HTTP header 'Accept' (if needed)
|
825
|
-
header_params['Accept'] =
|
885
|
+
header_params['Accept'] =
|
886
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
826
887
|
|
827
888
|
# form parameters
|
828
889
|
form_params = opts[:form_params] || {}
|
@@ -837,20 +898,20 @@ module KindeApi
|
|
837
898
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
838
899
|
|
839
900
|
new_options = opts.merge(
|
840
|
-
:
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
:
|
845
|
-
|
846
|
-
:
|
901
|
+
operation: :"OrganizationsApi.get_organization_user_permissions",
|
902
|
+
header_params:,
|
903
|
+
query_params:,
|
904
|
+
form_params:,
|
905
|
+
body: post_body,
|
906
|
+
auth_names:,
|
907
|
+
return_type:
|
847
908
|
)
|
848
909
|
|
849
910
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
850
911
|
if @api_client.config.debugging
|
851
912
|
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_user_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
852
913
|
end
|
853
|
-
|
914
|
+
[data, status_code, headers]
|
854
915
|
end
|
855
916
|
|
856
917
|
# List Organization User Roles
|
@@ -876,14 +937,19 @@ module KindeApi
|
|
876
937
|
end
|
877
938
|
# verify the required parameter 'org_code' is set
|
878
939
|
if @api_client.config.client_side_validation && org_code.nil?
|
879
|
-
|
940
|
+
raise ArgumentError,
|
941
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_user_roles"
|
880
942
|
end
|
881
943
|
# verify the required parameter 'user_id' is set
|
882
944
|
if @api_client.config.client_side_validation && user_id.nil?
|
883
|
-
|
945
|
+
raise ArgumentError,
|
946
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.get_organization_user_roles"
|
884
947
|
end
|
948
|
+
|
885
949
|
# resource path
|
886
|
-
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles'.sub('{
|
950
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
951
|
+
'{user_id}', CGI.escape(user_id.to_s)
|
952
|
+
)
|
887
953
|
|
888
954
|
# query parameters
|
889
955
|
query_params = opts[:query_params] || {}
|
@@ -891,7 +957,8 @@ module KindeApi
|
|
891
957
|
# header parameters
|
892
958
|
header_params = opts[:header_params] || {}
|
893
959
|
# HTTP header 'Accept' (if needed)
|
894
|
-
header_params['Accept'] =
|
960
|
+
header_params['Accept'] =
|
961
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
895
962
|
|
896
963
|
# form parameters
|
897
964
|
form_params = opts[:form_params] || {}
|
@@ -906,20 +973,20 @@ module KindeApi
|
|
906
973
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
907
974
|
|
908
975
|
new_options = opts.merge(
|
909
|
-
:
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
:
|
914
|
-
|
915
|
-
:
|
976
|
+
operation: :"OrganizationsApi.get_organization_user_roles",
|
977
|
+
header_params:,
|
978
|
+
query_params:,
|
979
|
+
form_params:,
|
980
|
+
body: post_body,
|
981
|
+
auth_names:,
|
982
|
+
return_type:
|
916
983
|
)
|
917
984
|
|
918
985
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
919
986
|
if @api_client.config.debugging
|
920
987
|
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_user_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
921
988
|
end
|
922
|
-
|
989
|
+
[data, status_code, headers]
|
923
990
|
end
|
924
991
|
|
925
992
|
# List Organization Users
|
@@ -953,27 +1020,31 @@ module KindeApi
|
|
953
1020
|
end
|
954
1021
|
# verify the required parameter 'org_code' is set
|
955
1022
|
if @api_client.config.client_side_validation && org_code.nil?
|
956
|
-
|
1023
|
+
raise ArgumentError,
|
1024
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_users"
|
957
1025
|
end
|
958
|
-
|
959
|
-
|
960
|
-
|
1026
|
+
|
1027
|
+
allowable_values = %w[name_asc name_desc email_asc email_desc]
|
1028
|
+
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
1029
|
+
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
961
1030
|
end
|
1031
|
+
|
962
1032
|
# resource path
|
963
|
-
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{
|
1033
|
+
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{org_code}', CGI.escape(org_code.to_s))
|
964
1034
|
|
965
1035
|
# query parameters
|
966
1036
|
query_params = opts[:query_params] || {}
|
967
|
-
query_params[:
|
968
|
-
query_params[:
|
969
|
-
query_params[:
|
970
|
-
query_params[:
|
971
|
-
query_params[:
|
1037
|
+
query_params[:sort] = opts[:sort] unless opts[:sort].nil?
|
1038
|
+
query_params[:page_size] = opts[:page_size] unless opts[:page_size].nil?
|
1039
|
+
query_params[:next_token] = opts[:next_token] unless opts[:next_token].nil?
|
1040
|
+
query_params[:permissions] = opts[:permissions] unless opts[:permissions].nil?
|
1041
|
+
query_params[:roles] = opts[:roles] unless opts[:roles].nil?
|
972
1042
|
|
973
1043
|
# header parameters
|
974
1044
|
header_params = opts[:header_params] || {}
|
975
1045
|
# HTTP header 'Accept' (if needed)
|
976
|
-
header_params['Accept'] =
|
1046
|
+
header_params['Accept'] =
|
1047
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
977
1048
|
|
978
1049
|
# form parameters
|
979
1050
|
form_params = opts[:form_params] || {}
|
@@ -988,24 +1059,24 @@ module KindeApi
|
|
988
1059
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
989
1060
|
|
990
1061
|
new_options = opts.merge(
|
991
|
-
:
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
:
|
996
|
-
|
997
|
-
:
|
1062
|
+
operation: :"OrganizationsApi.get_organization_users",
|
1063
|
+
header_params:,
|
1064
|
+
query_params:,
|
1065
|
+
form_params:,
|
1066
|
+
body: post_body,
|
1067
|
+
auth_names:,
|
1068
|
+
return_type:
|
998
1069
|
)
|
999
1070
|
|
1000
1071
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1001
1072
|
if @api_client.config.debugging
|
1002
1073
|
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1003
1074
|
end
|
1004
|
-
|
1075
|
+
[data, status_code, headers]
|
1005
1076
|
end
|
1006
1077
|
|
1007
1078
|
# List Organizations
|
1008
|
-
# Get a list of organizations.
|
1079
|
+
# Get a list of organizations.
|
1009
1080
|
# @param [Hash] opts the optional parameters
|
1010
1081
|
# @option opts [String] :sort Field and order to sort the result by.
|
1011
1082
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
@@ -1017,7 +1088,7 @@ module KindeApi
|
|
1017
1088
|
end
|
1018
1089
|
|
1019
1090
|
# List Organizations
|
1020
|
-
# Get a list of organizations.
|
1091
|
+
# Get a list of organizations.
|
1021
1092
|
# @param [Hash] opts the optional parameters
|
1022
1093
|
# @option opts [String] :sort Field and order to sort the result by.
|
1023
1094
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
@@ -1027,23 +1098,25 @@ module KindeApi
|
|
1027
1098
|
if @api_client.config.debugging
|
1028
1099
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organizations ...'
|
1029
1100
|
end
|
1030
|
-
allowable_values = [
|
1031
|
-
if @api_client.config.client_side_validation && opts[:
|
1032
|
-
|
1101
|
+
allowable_values = %w[name_asc name_desc email_asc email_desc]
|
1102
|
+
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
1103
|
+
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
1033
1104
|
end
|
1105
|
+
|
1034
1106
|
# resource path
|
1035
1107
|
local_var_path = '/api/v1/organizations'
|
1036
1108
|
|
1037
1109
|
# query parameters
|
1038
1110
|
query_params = opts[:query_params] || {}
|
1039
|
-
query_params[:
|
1040
|
-
query_params[:
|
1041
|
-
query_params[:
|
1111
|
+
query_params[:sort] = opts[:sort] unless opts[:sort].nil?
|
1112
|
+
query_params[:page_size] = opts[:page_size] unless opts[:page_size].nil?
|
1113
|
+
query_params[:next_token] = opts[:next_token] unless opts[:next_token].nil?
|
1042
1114
|
|
1043
1115
|
# header parameters
|
1044
1116
|
header_params = opts[:header_params] || {}
|
1045
1117
|
# HTTP header 'Accept' (if needed)
|
1046
|
-
header_params['Accept'] =
|
1118
|
+
header_params['Accept'] =
|
1119
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
1047
1120
|
|
1048
1121
|
# form parameters
|
1049
1122
|
form_params = opts[:form_params] || {}
|
@@ -1058,20 +1131,20 @@ module KindeApi
|
|
1058
1131
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1059
1132
|
|
1060
1133
|
new_options = opts.merge(
|
1061
|
-
:
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
:
|
1066
|
-
|
1067
|
-
:
|
1134
|
+
operation: :"OrganizationsApi.get_organizations",
|
1135
|
+
header_params:,
|
1136
|
+
query_params:,
|
1137
|
+
form_params:,
|
1138
|
+
body: post_body,
|
1139
|
+
auth_names:,
|
1140
|
+
return_type:
|
1068
1141
|
)
|
1069
1142
|
|
1070
1143
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1071
1144
|
if @api_client.config.debugging
|
1072
1145
|
@api_client.config.logger.debug "API called: OrganizationsApi#get_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1073
1146
|
end
|
1074
|
-
|
1147
|
+
[data, status_code, headers]
|
1075
1148
|
end
|
1076
1149
|
|
1077
1150
|
# Remove Organization User
|
@@ -1097,14 +1170,19 @@ module KindeApi
|
|
1097
1170
|
end
|
1098
1171
|
# verify the required parameter 'org_code' is set
|
1099
1172
|
if @api_client.config.client_side_validation && org_code.nil?
|
1100
|
-
|
1173
|
+
raise ArgumentError,
|
1174
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.remove_organization_user"
|
1101
1175
|
end
|
1102
1176
|
# verify the required parameter 'user_id' is set
|
1103
1177
|
if @api_client.config.client_side_validation && user_id.nil?
|
1104
|
-
|
1178
|
+
raise ArgumentError,
|
1179
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.remove_organization_user"
|
1105
1180
|
end
|
1181
|
+
|
1106
1182
|
# resource path
|
1107
|
-
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}'.sub('{
|
1183
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
1184
|
+
'{user_id}', CGI.escape(user_id.to_s)
|
1185
|
+
)
|
1108
1186
|
|
1109
1187
|
# query parameters
|
1110
1188
|
query_params = opts[:query_params] || {}
|
@@ -1112,7 +1190,8 @@ module KindeApi
|
|
1112
1190
|
# header parameters
|
1113
1191
|
header_params = opts[:header_params] || {}
|
1114
1192
|
# HTTP header 'Accept' (if needed)
|
1115
|
-
header_params['Accept'] =
|
1193
|
+
header_params['Accept'] =
|
1194
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
1116
1195
|
|
1117
1196
|
# form parameters
|
1118
1197
|
form_params = opts[:form_params] || {}
|
@@ -1127,20 +1206,20 @@ module KindeApi
|
|
1127
1206
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1128
1207
|
|
1129
1208
|
new_options = opts.merge(
|
1130
|
-
:
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
:
|
1135
|
-
|
1136
|
-
:
|
1209
|
+
operation: :"OrganizationsApi.remove_organization_user",
|
1210
|
+
header_params:,
|
1211
|
+
query_params:,
|
1212
|
+
form_params:,
|
1213
|
+
body: post_body,
|
1214
|
+
auth_names:,
|
1215
|
+
return_type:
|
1137
1216
|
)
|
1138
1217
|
|
1139
1218
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1140
1219
|
if @api_client.config.debugging
|
1141
1220
|
@api_client.config.logger.debug "API called: OrganizationsApi#remove_organization_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1142
1221
|
end
|
1143
|
-
|
1222
|
+
[data, status_code, headers]
|
1144
1223
|
end
|
1145
1224
|
|
1146
1225
|
# Update Organization
|
@@ -1166,10 +1245,12 @@ module KindeApi
|
|
1166
1245
|
end
|
1167
1246
|
# verify the required parameter 'org_code' is set
|
1168
1247
|
if @api_client.config.client_side_validation && org_code.nil?
|
1169
|
-
|
1248
|
+
raise ArgumentError,
|
1249
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization"
|
1170
1250
|
end
|
1251
|
+
|
1171
1252
|
# resource path
|
1172
|
-
local_var_path = '/api/v1/organization/{org_code}'.sub('{
|
1253
|
+
local_var_path = '/api/v1/organization/{org_code}'.sub('{org_code}', CGI.escape(org_code.to_s))
|
1173
1254
|
|
1174
1255
|
# query parameters
|
1175
1256
|
query_params = opts[:query_params] || {}
|
@@ -1177,18 +1258,17 @@ module KindeApi
|
|
1177
1258
|
# header parameters
|
1178
1259
|
header_params = opts[:header_params] || {}
|
1179
1260
|
# HTTP header 'Accept' (if needed)
|
1180
|
-
header_params['Accept'] =
|
1261
|
+
header_params['Accept'] =
|
1262
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
1181
1263
|
# HTTP header 'Content-Type'
|
1182
1264
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1183
|
-
|
1184
|
-
header_params['Content-Type'] = content_type
|
1185
|
-
end
|
1265
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
1186
1266
|
|
1187
1267
|
# form parameters
|
1188
1268
|
form_params = opts[:form_params] || {}
|
1189
1269
|
|
1190
1270
|
# http body (model)
|
1191
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:
|
1271
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:update_organization_request])
|
1192
1272
|
|
1193
1273
|
# return_type
|
1194
1274
|
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
@@ -1197,20 +1277,20 @@ module KindeApi
|
|
1197
1277
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1198
1278
|
|
1199
1279
|
new_options = opts.merge(
|
1200
|
-
:
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
:
|
1205
|
-
|
1206
|
-
:
|
1280
|
+
operation: :"OrganizationsApi.update_organization",
|
1281
|
+
header_params:,
|
1282
|
+
query_params:,
|
1283
|
+
form_params:,
|
1284
|
+
body: post_body,
|
1285
|
+
auth_names:,
|
1286
|
+
return_type:
|
1207
1287
|
)
|
1208
1288
|
|
1209
1289
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1210
1290
|
if @api_client.config.debugging
|
1211
1291
|
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1212
1292
|
end
|
1213
|
-
|
1293
|
+
[data, status_code, headers]
|
1214
1294
|
end
|
1215
1295
|
|
1216
1296
|
# Update Organization Feature Flag Override
|
@@ -1221,7 +1301,8 @@ module KindeApi
|
|
1221
1301
|
# @param [Hash] opts the optional parameters
|
1222
1302
|
# @return [SuccessResponse]
|
1223
1303
|
def update_organization_feature_flag_override(org_code, feature_flag_key, value, opts = {})
|
1224
|
-
data, _status_code, _headers = update_organization_feature_flag_override_with_http_info(org_code,
|
1304
|
+
data, _status_code, _headers = update_organization_feature_flag_override_with_http_info(org_code,
|
1305
|
+
feature_flag_key, value, opts)
|
1225
1306
|
data
|
1226
1307
|
end
|
1227
1308
|
|
@@ -1238,27 +1319,34 @@ module KindeApi
|
|
1238
1319
|
end
|
1239
1320
|
# verify the required parameter 'org_code' is set
|
1240
1321
|
if @api_client.config.client_side_validation && org_code.nil?
|
1241
|
-
|
1322
|
+
raise ArgumentError,
|
1323
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization_feature_flag_override"
|
1242
1324
|
end
|
1243
1325
|
# verify the required parameter 'feature_flag_key' is set
|
1244
1326
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1245
|
-
|
1327
|
+
raise ArgumentError,
|
1328
|
+
"Missing the required parameter 'feature_flag_key' when calling OrganizationsApi.update_organization_feature_flag_override"
|
1246
1329
|
end
|
1247
1330
|
# verify the required parameter 'value' is set
|
1248
1331
|
if @api_client.config.client_side_validation && value.nil?
|
1249
|
-
|
1332
|
+
raise ArgumentError,
|
1333
|
+
"Missing the required parameter 'value' when calling OrganizationsApi.update_organization_feature_flag_override"
|
1250
1334
|
end
|
1335
|
+
|
1251
1336
|
# resource path
|
1252
|
-
local_var_path = '/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}'.sub('{
|
1337
|
+
local_var_path = '/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
1338
|
+
'{feature_flag_key}', CGI.escape(feature_flag_key.to_s)
|
1339
|
+
)
|
1253
1340
|
|
1254
1341
|
# query parameters
|
1255
1342
|
query_params = opts[:query_params] || {}
|
1256
|
-
query_params[:
|
1343
|
+
query_params[:value] = value
|
1257
1344
|
|
1258
1345
|
# header parameters
|
1259
1346
|
header_params = opts[:header_params] || {}
|
1260
1347
|
# HTTP header 'Accept' (if needed)
|
1261
|
-
header_params['Accept'] =
|
1348
|
+
header_params['Accept'] =
|
1349
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
1262
1350
|
|
1263
1351
|
# form parameters
|
1264
1352
|
form_params = opts[:form_params] || {}
|
@@ -1273,27 +1361,27 @@ module KindeApi
|
|
1273
1361
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1274
1362
|
|
1275
1363
|
new_options = opts.merge(
|
1276
|
-
:
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
:
|
1281
|
-
|
1282
|
-
:
|
1364
|
+
operation: :"OrganizationsApi.update_organization_feature_flag_override",
|
1365
|
+
header_params:,
|
1366
|
+
query_params:,
|
1367
|
+
form_params:,
|
1368
|
+
body: post_body,
|
1369
|
+
auth_names:,
|
1370
|
+
return_type:
|
1283
1371
|
)
|
1284
1372
|
|
1285
1373
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1286
1374
|
if @api_client.config.debugging
|
1287
1375
|
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_feature_flag_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1288
1376
|
end
|
1289
|
-
|
1377
|
+
[data, status_code, headers]
|
1290
1378
|
end
|
1291
1379
|
|
1292
1380
|
# Update Organization Users
|
1293
1381
|
# Update users that belong to an organization.
|
1294
1382
|
# @param org_code [String] The organization's code.
|
1295
1383
|
# @param [Hash] opts the optional parameters
|
1296
|
-
# @option opts [UpdateOrganizationUsersRequest] :update_organization_users_request
|
1384
|
+
# @option opts [UpdateOrganizationUsersRequest] :update_organization_users_request
|
1297
1385
|
# @return [UpdateOrganizationUsersResponse]
|
1298
1386
|
def update_organization_users(org_code, opts = {})
|
1299
1387
|
data, _status_code, _headers = update_organization_users_with_http_info(org_code, opts)
|
@@ -1304,7 +1392,7 @@ module KindeApi
|
|
1304
1392
|
# Update users that belong to an organization.
|
1305
1393
|
# @param org_code [String] The organization's code.
|
1306
1394
|
# @param [Hash] opts the optional parameters
|
1307
|
-
# @option opts [UpdateOrganizationUsersRequest] :update_organization_users_request
|
1395
|
+
# @option opts [UpdateOrganizationUsersRequest] :update_organization_users_request
|
1308
1396
|
# @return [Array<(UpdateOrganizationUsersResponse, Integer, Hash)>] UpdateOrganizationUsersResponse data, response status code and response headers
|
1309
1397
|
def update_organization_users_with_http_info(org_code, opts = {})
|
1310
1398
|
if @api_client.config.debugging
|
@@ -1312,10 +1400,12 @@ module KindeApi
|
|
1312
1400
|
end
|
1313
1401
|
# verify the required parameter 'org_code' is set
|
1314
1402
|
if @api_client.config.client_side_validation && org_code.nil?
|
1315
|
-
|
1403
|
+
raise ArgumentError,
|
1404
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization_users"
|
1316
1405
|
end
|
1406
|
+
|
1317
1407
|
# resource path
|
1318
|
-
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{
|
1408
|
+
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{org_code}', CGI.escape(org_code.to_s))
|
1319
1409
|
|
1320
1410
|
# query parameters
|
1321
1411
|
query_params = opts[:query_params] || {}
|
@@ -1323,18 +1413,17 @@ module KindeApi
|
|
1323
1413
|
# header parameters
|
1324
1414
|
header_params = opts[:header_params] || {}
|
1325
1415
|
# HTTP header 'Accept' (if needed)
|
1326
|
-
header_params['Accept'] =
|
1416
|
+
header_params['Accept'] =
|
1417
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
1327
1418
|
# HTTP header 'Content-Type'
|
1328
1419
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1329
|
-
|
1330
|
-
header_params['Content-Type'] = content_type
|
1331
|
-
end
|
1420
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
1332
1421
|
|
1333
1422
|
# form parameters
|
1334
1423
|
form_params = opts[:form_params] || {}
|
1335
1424
|
|
1336
1425
|
# http body (model)
|
1337
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:
|
1426
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:update_organization_users_request])
|
1338
1427
|
|
1339
1428
|
# return_type
|
1340
1429
|
return_type = opts[:debug_return_type] || 'UpdateOrganizationUsersResponse'
|
@@ -1343,20 +1432,20 @@ module KindeApi
|
|
1343
1432
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1344
1433
|
|
1345
1434
|
new_options = opts.merge(
|
1346
|
-
:
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
:
|
1351
|
-
|
1352
|
-
:
|
1435
|
+
operation: :"OrganizationsApi.update_organization_users",
|
1436
|
+
header_params:,
|
1437
|
+
query_params:,
|
1438
|
+
form_params:,
|
1439
|
+
body: post_body,
|
1440
|
+
auth_names:,
|
1441
|
+
return_type:
|
1353
1442
|
)
|
1354
1443
|
|
1355
1444
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1356
1445
|
if @api_client.config.debugging
|
1357
1446
|
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1358
1447
|
end
|
1359
|
-
|
1448
|
+
[data, status_code, headers]
|
1360
1449
|
end
|
1361
1450
|
end
|
1362
1451
|
end
|