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,8 +19,9 @@ module KindeApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
|
22
23
|
# Add APIs
|
23
|
-
# Add APIs.
|
24
|
+
# Add APIs.
|
24
25
|
# @param add_apis_request [AddAPIsRequest] API details.
|
25
26
|
# @param [Hash] opts the optional parameters
|
26
27
|
# @return [SuccessResponse]
|
@@ -30,18 +31,17 @@ module KindeApi
|
|
30
31
|
end
|
31
32
|
|
32
33
|
# Add APIs
|
33
|
-
# Add APIs.
|
34
|
+
# Add APIs.
|
34
35
|
# @param add_apis_request [AddAPIsRequest] API details.
|
35
36
|
# @param [Hash] opts the optional parameters
|
36
37
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
37
38
|
def add_apis_with_http_info(add_apis_request, opts = {})
|
38
|
-
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: APIsApi.add_apis ...'
|
40
|
-
end
|
39
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.add_apis ...' if @api_client.config.debugging
|
41
40
|
# verify the required parameter 'add_apis_request' is set
|
42
41
|
if @api_client.config.client_side_validation && add_apis_request.nil?
|
43
|
-
|
42
|
+
raise ArgumentError, "Missing the required parameter 'add_apis_request' when calling APIsApi.add_apis"
|
44
43
|
end
|
44
|
+
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/api/v1/apis'
|
47
47
|
|
@@ -51,12 +51,11 @@ module KindeApi
|
|
51
51
|
# header parameters
|
52
52
|
header_params = opts[:header_params] || {}
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] =
|
54
|
+
header_params['Accept'] =
|
55
|
+
@api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
55
56
|
# HTTP header 'Content-Type'
|
56
57
|
content_type = @api_client.select_header_content_type(['application/json'])
|
57
|
-
|
58
|
-
header_params['Content-Type'] = content_type
|
59
|
-
end
|
58
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
60
59
|
|
61
60
|
# form parameters
|
62
61
|
form_params = opts[:form_params] || {}
|
@@ -71,24 +70,24 @@ module KindeApi
|
|
71
70
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
72
71
|
|
73
72
|
new_options = opts.merge(
|
74
|
-
:
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
:
|
79
|
-
|
80
|
-
:
|
73
|
+
operation: :"APIsApi.add_apis",
|
74
|
+
header_params:,
|
75
|
+
query_params:,
|
76
|
+
form_params:,
|
77
|
+
body: post_body,
|
78
|
+
auth_names:,
|
79
|
+
return_type:
|
81
80
|
)
|
82
81
|
|
83
82
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
84
83
|
if @api_client.config.debugging
|
85
84
|
@api_client.config.logger.debug "API called: APIsApi#add_apis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
85
|
end
|
87
|
-
|
86
|
+
[data, status_code, headers]
|
88
87
|
end
|
89
88
|
|
90
89
|
# Delete API
|
91
|
-
# Deletes API.
|
90
|
+
# Deletes API.
|
92
91
|
# @param api_id [String] The API's id.
|
93
92
|
# @param [Hash] opts the optional parameters
|
94
93
|
# @return [SuccessResponse]
|
@@ -98,20 +97,19 @@ module KindeApi
|
|
98
97
|
end
|
99
98
|
|
100
99
|
# Delete API
|
101
|
-
# Deletes API.
|
100
|
+
# Deletes API.
|
102
101
|
# @param api_id [String] The API's id.
|
103
102
|
# @param [Hash] opts the optional parameters
|
104
103
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
105
104
|
def delete_api_with_http_info(api_id, opts = {})
|
106
|
-
if @api_client.config.debugging
|
107
|
-
@api_client.config.logger.debug 'Calling API: APIsApi.delete_api ...'
|
108
|
-
end
|
105
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.delete_api ...' if @api_client.config.debugging
|
109
106
|
# verify the required parameter 'api_id' is set
|
110
107
|
if @api_client.config.client_side_validation && api_id.nil?
|
111
|
-
|
108
|
+
raise ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.delete_api"
|
112
109
|
end
|
110
|
+
|
113
111
|
# resource path
|
114
|
-
local_var_path = '/api/v1/apis/{api_id}'.sub('{
|
112
|
+
local_var_path = '/api/v1/apis/{api_id}'.sub('{api_id}', CGI.escape(api_id.to_s))
|
115
113
|
|
116
114
|
# query parameters
|
117
115
|
query_params = opts[:query_params] || {}
|
@@ -119,7 +117,8 @@ module KindeApi
|
|
119
117
|
# header parameters
|
120
118
|
header_params = opts[:header_params] || {}
|
121
119
|
# HTTP header 'Accept' (if needed)
|
122
|
-
header_params['Accept'] =
|
120
|
+
header_params['Accept'] =
|
121
|
+
@api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
123
122
|
|
124
123
|
# form parameters
|
125
124
|
form_params = opts[:form_params] || {}
|
@@ -134,24 +133,24 @@ module KindeApi
|
|
134
133
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
135
134
|
|
136
135
|
new_options = opts.merge(
|
137
|
-
:
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
:
|
142
|
-
|
143
|
-
:
|
136
|
+
operation: :"APIsApi.delete_api",
|
137
|
+
header_params:,
|
138
|
+
query_params:,
|
139
|
+
form_params:,
|
140
|
+
body: post_body,
|
141
|
+
auth_names:,
|
142
|
+
return_type:
|
144
143
|
)
|
145
144
|
|
146
145
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
147
146
|
if @api_client.config.debugging
|
148
147
|
@api_client.config.logger.debug "API called: APIsApi#delete_api\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
149
148
|
end
|
150
|
-
|
149
|
+
[data, status_code, headers]
|
151
150
|
end
|
152
151
|
|
153
152
|
# List API details
|
154
|
-
# Returns the details of the API.
|
153
|
+
# Returns the details of the API.
|
155
154
|
# @param api_id [String] The API's id.
|
156
155
|
# @param [Hash] opts the optional parameters
|
157
156
|
# @return [Api]
|
@@ -161,20 +160,19 @@ module KindeApi
|
|
161
160
|
end
|
162
161
|
|
163
162
|
# List API details
|
164
|
-
# Returns the details of the API.
|
163
|
+
# Returns the details of the API.
|
165
164
|
# @param api_id [String] The API's id.
|
166
165
|
# @param [Hash] opts the optional parameters
|
167
166
|
# @return [Array<(Api, Integer, Hash)>] Api data, response status code and response headers
|
168
167
|
def get_api_with_http_info(api_id, opts = {})
|
169
|
-
if @api_client.config.debugging
|
170
|
-
@api_client.config.logger.debug 'Calling API: APIsApi.get_api ...'
|
171
|
-
end
|
168
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.get_api ...' if @api_client.config.debugging
|
172
169
|
# verify the required parameter 'api_id' is set
|
173
170
|
if @api_client.config.client_side_validation && api_id.nil?
|
174
|
-
|
171
|
+
raise ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.get_api"
|
175
172
|
end
|
173
|
+
|
176
174
|
# resource path
|
177
|
-
local_var_path = '/api/v1/apis/{api_id}'.sub('{
|
175
|
+
local_var_path = '/api/v1/apis/{api_id}'.sub('{api_id}', CGI.escape(api_id.to_s))
|
178
176
|
|
179
177
|
# query parameters
|
180
178
|
query_params = opts[:query_params] || {}
|
@@ -182,7 +180,8 @@ module KindeApi
|
|
182
180
|
# header parameters
|
183
181
|
header_params = opts[:header_params] || {}
|
184
182
|
# HTTP header 'Accept' (if needed)
|
185
|
-
header_params['Accept'] =
|
183
|
+
header_params['Accept'] =
|
184
|
+
@api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
186
185
|
|
187
186
|
# form parameters
|
188
187
|
form_params = opts[:form_params] || {}
|
@@ -197,24 +196,24 @@ module KindeApi
|
|
197
196
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
198
197
|
|
199
198
|
new_options = opts.merge(
|
200
|
-
:
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
:
|
205
|
-
|
206
|
-
:
|
199
|
+
operation: :"APIsApi.get_api",
|
200
|
+
header_params:,
|
201
|
+
query_params:,
|
202
|
+
form_params:,
|
203
|
+
body: post_body,
|
204
|
+
auth_names:,
|
205
|
+
return_type:
|
207
206
|
)
|
208
207
|
|
209
208
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
210
209
|
if @api_client.config.debugging
|
211
210
|
@api_client.config.logger.debug "API called: APIsApi#get_api\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
212
211
|
end
|
213
|
-
|
212
|
+
[data, status_code, headers]
|
214
213
|
end
|
215
214
|
|
216
215
|
# List APIs
|
217
|
-
# Returns a list of APIs.
|
216
|
+
# Returns a list of APIs.
|
218
217
|
# @param [Hash] opts the optional parameters
|
219
218
|
# @return [Apis]
|
220
219
|
def get_apis(opts = {})
|
@@ -223,13 +222,11 @@ module KindeApi
|
|
223
222
|
end
|
224
223
|
|
225
224
|
# List APIs
|
226
|
-
# Returns a list of APIs.
|
225
|
+
# Returns a list of APIs.
|
227
226
|
# @param [Hash] opts the optional parameters
|
228
227
|
# @return [Array<(Apis, Integer, Hash)>] Apis data, response status code and response headers
|
229
228
|
def get_apis_with_http_info(opts = {})
|
230
|
-
if @api_client.config.debugging
|
231
|
-
@api_client.config.logger.debug 'Calling API: APIsApi.get_apis ...'
|
232
|
-
end
|
229
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.get_apis ...' if @api_client.config.debugging
|
233
230
|
# resource path
|
234
231
|
local_var_path = '/api/v1/apis'
|
235
232
|
|
@@ -239,7 +236,8 @@ module KindeApi
|
|
239
236
|
# header parameters
|
240
237
|
header_params = opts[:header_params] || {}
|
241
238
|
# HTTP header 'Accept' (if needed)
|
242
|
-
header_params['Accept'] =
|
239
|
+
header_params['Accept'] =
|
240
|
+
@api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
243
241
|
|
244
242
|
# form parameters
|
245
243
|
form_params = opts[:form_params] || {}
|
@@ -254,53 +252,55 @@ module KindeApi
|
|
254
252
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
255
253
|
|
256
254
|
new_options = opts.merge(
|
257
|
-
:
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
:
|
262
|
-
|
263
|
-
:
|
255
|
+
operation: :"APIsApi.get_apis",
|
256
|
+
header_params:,
|
257
|
+
query_params:,
|
258
|
+
form_params:,
|
259
|
+
body: post_body,
|
260
|
+
auth_names:,
|
261
|
+
return_type:
|
264
262
|
)
|
265
263
|
|
266
264
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
267
265
|
if @api_client.config.debugging
|
268
266
|
@api_client.config.logger.debug "API called: APIsApi#get_apis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
269
267
|
end
|
270
|
-
|
268
|
+
[data, status_code, headers]
|
271
269
|
end
|
272
270
|
|
273
271
|
# Update API Applications
|
274
|
-
# Update the applications under that API.
|
272
|
+
# Update the applications under that API.
|
275
273
|
# @param api_id [String] The identifier for the API.
|
276
274
|
# @param update_api_applications_request [UpdateAPIApplicationsRequest] The applications you want to connect or disconnect.
|
277
275
|
# @param [Hash] opts the optional parameters
|
278
276
|
# @return [SuccessResponse]
|
279
277
|
def update_api_applications(api_id, update_api_applications_request, opts = {})
|
280
|
-
data, _status_code, _headers = update_api_applications_with_http_info(api_id, update_api_applications_request,
|
278
|
+
data, _status_code, _headers = update_api_applications_with_http_info(api_id, update_api_applications_request,
|
279
|
+
opts)
|
281
280
|
data
|
282
281
|
end
|
283
282
|
|
284
283
|
# Update API Applications
|
285
|
-
# Update the applications under that API.
|
284
|
+
# Update the applications under that API.
|
286
285
|
# @param api_id [String] The identifier for the API.
|
287
286
|
# @param update_api_applications_request [UpdateAPIApplicationsRequest] The applications you want to connect or disconnect.
|
288
287
|
# @param [Hash] opts the optional parameters
|
289
288
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
290
289
|
def update_api_applications_with_http_info(api_id, update_api_applications_request, opts = {})
|
291
|
-
if @api_client.config.debugging
|
292
|
-
@api_client.config.logger.debug 'Calling API: APIsApi.update_api_applications ...'
|
293
|
-
end
|
290
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.update_api_applications ...' if @api_client.config.debugging
|
294
291
|
# verify the required parameter 'api_id' is set
|
295
292
|
if @api_client.config.client_side_validation && api_id.nil?
|
296
|
-
|
293
|
+
raise ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.update_api_applications"
|
297
294
|
end
|
295
|
+
|
298
296
|
# verify the required parameter 'update_api_applications_request' is set
|
299
297
|
if @api_client.config.client_side_validation && update_api_applications_request.nil?
|
300
|
-
|
298
|
+
raise ArgumentError,
|
299
|
+
"Missing the required parameter 'update_api_applications_request' when calling APIsApi.update_api_applications"
|
301
300
|
end
|
301
|
+
|
302
302
|
# resource path
|
303
|
-
local_var_path = '/api/v1/apis/{api_id}/applications'.sub('{
|
303
|
+
local_var_path = '/api/v1/apis/{api_id}/applications'.sub('{api_id}', CGI.escape(api_id.to_s))
|
304
304
|
|
305
305
|
# query parameters
|
306
306
|
query_params = opts[:query_params] || {}
|
@@ -308,12 +308,11 @@ module KindeApi
|
|
308
308
|
# header parameters
|
309
309
|
header_params = opts[:header_params] || {}
|
310
310
|
# HTTP header 'Accept' (if needed)
|
311
|
-
header_params['Accept'] =
|
311
|
+
header_params['Accept'] =
|
312
|
+
@api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
312
313
|
# HTTP header 'Content-Type'
|
313
314
|
content_type = @api_client.select_header_content_type(['application/json'])
|
314
|
-
|
315
|
-
header_params['Content-Type'] = content_type
|
316
|
-
end
|
315
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
317
316
|
|
318
317
|
# form parameters
|
319
318
|
form_params = opts[:form_params] || {}
|
@@ -328,20 +327,20 @@ module KindeApi
|
|
328
327
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
329
328
|
|
330
329
|
new_options = opts.merge(
|
331
|
-
:
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
:
|
336
|
-
|
337
|
-
:
|
330
|
+
operation: :"APIsApi.update_api_applications",
|
331
|
+
header_params:,
|
332
|
+
query_params:,
|
333
|
+
form_params:,
|
334
|
+
body: post_body,
|
335
|
+
auth_names:,
|
336
|
+
return_type:
|
338
337
|
)
|
339
338
|
|
340
339
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
341
340
|
if @api_client.config.debugging
|
342
341
|
@api_client.config.logger.debug "API called: APIsApi#update_api_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
343
342
|
end
|
344
|
-
|
343
|
+
[data, status_code, headers]
|
345
344
|
end
|
346
345
|
end
|
347
346
|
end
|