kinde_sdk 1.2.1 → 1.2.2
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/Gemfile.lock +128 -0
- data/README.md +12 -434
- data/kinde_api/README.md +98 -27
- data/kinde_api/docs/APIsApi.md +356 -0
- data/kinde_api/docs/AddAPIsRequest.md +20 -0
- data/kinde_api/docs/Api.md +28 -0
- data/kinde_api/docs/ApiApplicationsInner.md +24 -0
- data/kinde_api/docs/Apis.md +24 -0
- data/kinde_api/docs/Applications.md +22 -0
- data/kinde_api/docs/ApplicationsApi.md +368 -0
- data/kinde_api/docs/BusinessApi.md +183 -0
- data/kinde_api/docs/CallbacksApi.md +385 -25
- data/kinde_api/docs/CreateApplicationRequest.md +20 -0
- data/kinde_api/docs/CreateApplicationResponse.md +22 -0
- data/kinde_api/docs/CreateApplicationResponseApplication.md +22 -0
- data/kinde_api/docs/CreateFeatureFlagRequest.md +28 -0
- data/kinde_api/docs/CreateOrganizationRequest.md +3 -1
- data/kinde_api/docs/CreateOrganizationUserPermissionRequest.md +18 -0
- data/kinde_api/docs/EnvironmentsApi.md +23 -23
- data/kinde_api/docs/FeatureFlagsApi.md +19 -29
- data/kinde_api/docs/GetApplicationResponse.md +22 -0
- data/kinde_api/docs/GetApplicationResponseApplication.md +26 -0
- data/kinde_api/docs/GetApplicationsResponse.md +2 -2
- data/kinde_api/docs/{GetOrganizationsUsersResponse.md → GetOrganizationUsersResponse.md} +2 -2
- data/kinde_api/docs/GetOrganizationsUserPermissionsResponse.md +22 -0
- data/kinde_api/docs/GetPermissionsResponse.md +24 -0
- data/kinde_api/docs/GetRolesResponse.md +24 -0
- data/kinde_api/docs/GetSubscriberResponse.md +22 -0
- data/kinde_api/docs/GetSubscribersResponse.md +24 -0
- data/kinde_api/docs/IndustriesApi.md +81 -0
- data/kinde_api/docs/LogoutRedirectUrls.md +18 -0
- data/kinde_api/docs/OAuthApi.md +153 -4
- data/kinde_api/docs/Organization.md +3 -1
- data/kinde_api/docs/OrganizationUserPermission.md +26 -0
- data/kinde_api/docs/OrganizationUserPermissionRolesInner.md +20 -0
- data/kinde_api/docs/OrganizationUserRolePermissions.md +22 -0
- data/kinde_api/docs/OrganizationUserRolePermissionsPermissions.md +18 -0
- data/kinde_api/docs/OrganizationsApi.md +328 -32
- data/kinde_api/docs/PermissionsApi.md +84 -14
- data/kinde_api/docs/ReplaceLogoutRedirectURLsRequest.md +18 -0
- data/kinde_api/docs/ReplaceRedirectCallbackURLsRequest.md +18 -0
- data/kinde_api/docs/Role.md +24 -0
- data/kinde_api/docs/Roles.md +2 -0
- data/kinde_api/docs/RolesApi.md +309 -17
- data/kinde_api/docs/RolesPermissionResponseInner.md +24 -0
- data/kinde_api/docs/Subscriber.md +24 -0
- data/kinde_api/docs/SubscribersApi.md +12 -14
- data/kinde_api/docs/SubscribersSubscriber.md +26 -0
- data/kinde_api/docs/TimezonesApi.md +81 -0
- data/kinde_api/docs/TokenErrorResponse.md +20 -0
- data/kinde_api/docs/TokenIntrospect.md +26 -0
- data/kinde_api/docs/UpdateAPIApplicationsRequest.md +18 -0
- data/kinde_api/docs/UpdateAPIApplicationsRequestApplicationsInner.md +20 -0
- data/kinde_api/docs/UpdateApplicationRequest.md +24 -0
- data/kinde_api/docs/UpdateEnvironementFeatureFlagOverrideRequest.md +18 -0
- data/kinde_api/docs/UpdateOrganizationRequest.md +3 -1
- data/kinde_api/docs/UpdateOrganizationUsersRequest.md +1 -1
- data/kinde_api/docs/UpdateRolePermissionsRequest.md +18 -0
- data/kinde_api/docs/UpdateRolePermissionsRequestPermissionsInner.md +20 -0
- data/kinde_api/docs/UpdateRolePermissionsResponse.md +24 -0
- data/kinde_api/docs/UpdateRolesRequest.md +24 -0
- data/kinde_api/docs/UpdateUserResponse.md +30 -0
- data/kinde_api/docs/User.md +7 -7
- data/kinde_api/docs/UserIdentitiesInner.md +20 -0
- data/kinde_api/docs/UsersApi.md +93 -15
- data/kinde_api/docs/UsersResponse.md +1 -1
- data/kinde_api/docs/UsersResponseUsersInner.md +42 -0
- data/kinde_api/lib/kinde_api/api/apis_api.rb +347 -0
- data/kinde_api/lib/kinde_api/api/applications_api.rb +352 -0
- data/kinde_api/lib/kinde_api/api/business_api.rb +210 -0
- data/kinde_api/lib/kinde_api/api/callbacks_api.rb +394 -31
- data/kinde_api/lib/kinde_api/api/environments_api.rb +22 -18
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +20 -61
- data/kinde_api/lib/kinde_api/api/industries_api.rb +85 -0
- data/kinde_api/lib/kinde_api/api/o_auth_api.rb +141 -2
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +318 -25
- data/kinde_api/lib/kinde_api/api/permissions_api.rb +75 -12
- data/kinde_api/lib/kinde_api/api/roles_api.rb +297 -15
- data/kinde_api/lib/kinde_api/api/subscribers_api.rb +8 -11
- data/kinde_api/lib/kinde_api/api/timezones_api.rb +85 -0
- data/kinde_api/lib/kinde_api/api/users_api.rb +87 -11
- data/kinde_api/lib/kinde_api/api_client.rb +14 -7
- data/kinde_api/lib/kinde_api/configuration.rb +81 -5
- data/kinde_api/lib/kinde_api/models/add_apis_request.rb +238 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/api.rb +271 -0
- data/kinde_api/lib/kinde_api/models/api_applications_inner.rb +246 -0
- data/kinde_api/lib/kinde_api/models/api_result.rb +2 -0
- data/kinde_api/lib/kinde_api/models/apis.rb +250 -0
- data/kinde_api/lib/kinde_api/models/applications.rb +237 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +2 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_application_request.rb +264 -0
- data/kinde_api/lib/kinde_api/models/create_application_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +240 -0
- data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +336 -0
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +16 -4
- data/kinde_api/lib/kinde_api/models/create_organization_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +2 -0
- data/kinde_api/lib/kinde_api/models/{application.rb → create_organization_user_permission_request.rb} +13 -19
- data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_permission_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_role_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/error.rb +2 -0
- data/kinde_api/lib/kinde_api/models/error_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_application_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +260 -0
- data/kinde_api/lib/kinde_api/models/get_applications_response.rb +10 -8
- data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +2 -0
- data/kinde_api/lib/kinde_api/models/{get_organizations_users_response.rb → get_organization_users_response.rb} +5 -3
- data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_roles_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +222 -0
- data/kinde_api/lib/kinde_api/models/organization.rb +15 -4
- data/kinde_api/lib/kinde_api/models/organization_user.rb +2 -0
- data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +257 -0
- data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role.rb +2 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +237 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions_permissions.rb +219 -0
- data/kinde_api/lib/kinde_api/models/permissions.rb +2 -0
- data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +2 -0
- data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/role.rb +246 -0
- data/kinde_api/lib/kinde_api/models/roles.rb +13 -1
- data/kinde_api/lib/kinde_api/models/roles_permission_response_inner.rb +246 -0
- data/kinde_api/lib/kinde_api/models/subscriber.rb +246 -0
- data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +255 -0
- data/kinde_api/lib/kinde_api/models/success_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/token_error_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/token_introspect.rb +262 -0
- data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +226 -0
- data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +235 -0
- data/kinde_api/lib/kinde_api/models/update_application_request.rb +254 -0
- data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +225 -0
- data/kinde_api/lib/kinde_api/models/update_organization_request.rb +16 -4
- data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +3 -1
- data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +250 -0
- data/kinde_api/lib/kinde_api/models/update_roles_request.rb +260 -0
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_user_response.rb +280 -0
- data/kinde_api/lib/kinde_api/models/user.rb +37 -32
- data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/user_identity.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_profile.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +2 -0
- data/kinde_api/lib/kinde_api/models/users_response.rb +3 -1
- data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +348 -0
- data/kinde_api/lib/kinde_api.rb +47 -2
- data/kinde_api/spec/api/apis_api_spec.rb +95 -0
- data/kinde_api/spec/api/applications_api_spec.rb +98 -0
- data/kinde_api/spec/api/business_api_spec.rb +75 -0
- data/kinde_api/spec/api/callbacks_api_spec.rb +69 -5
- data/kinde_api/spec/api/environments_api_spec.rb +5 -5
- data/kinde_api/spec/api/feature_flags_api_spec.rb +4 -9
- data/kinde_api/spec/api/industries_api_spec.rb +48 -0
- data/kinde_api/spec/api/o_auth_api_spec.rb +28 -1
- data/kinde_api/spec/api/organizations_api_spec.rb +63 -8
- data/kinde_api/spec/api/permissions_api_spec.rb +16 -4
- data/kinde_api/spec/api/roles_api_spec.rb +57 -4
- data/kinde_api/spec/api/subscribers_api_spec.rb +3 -4
- data/kinde_api/spec/api/timezones_api_spec.rb +48 -0
- data/kinde_api/spec/api/users_api_spec.rb +17 -2
- data/kinde_api/spec/api_client_spec.rb +13 -2
- data/kinde_api/spec/models/{application_spec.rb → add_apis_request_spec.rb} +8 -8
- data/kinde_api/spec/models/api_applications_inner_spec.rb +52 -0
- data/kinde_api/spec/models/api_spec.rb +64 -0
- data/kinde_api/spec/models/apis_spec.rb +52 -0
- data/kinde_api/spec/models/applications_spec.rb +46 -0
- data/kinde_api/spec/models/create_application_request_spec.rb +44 -0
- data/kinde_api/spec/models/create_application_response_application_spec.rb +46 -0
- data/kinde_api/spec/models/create_application_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_feature_flag_request_spec.rb +72 -0
- data/kinde_api/spec/models/create_organization_request_spec.rb +6 -0
- data/kinde_api/spec/models/create_organization_user_permission_request_spec.rb +34 -0
- data/kinde_api/spec/models/get_application_response_application_spec.rb +58 -0
- data/kinde_api/spec/models/get_application_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_applications_response_spec.rb +1 -1
- data/kinde_api/spec/models/{get_organizations_users_response_spec.rb → get_organization_users_response_spec.rb} +6 -6
- data/kinde_api/spec/models/get_organizations_user_permissions_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_permissions_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_roles_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_subscriber_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_subscribers_response_spec.rb +52 -0
- data/kinde_api/spec/models/logout_redirect_urls_spec.rb +34 -0
- data/kinde_api/spec/models/organization_spec.rb +6 -0
- data/kinde_api/spec/models/organization_user_permission_roles_inner_spec.rb +40 -0
- data/kinde_api/spec/models/organization_user_permission_spec.rb +58 -0
- data/kinde_api/spec/models/organization_user_role_permissions_permissions_spec.rb +34 -0
- data/kinde_api/spec/models/organization_user_role_permissions_spec.rb +46 -0
- data/kinde_api/spec/models/replace_logout_redirect_urls_request_spec.rb +34 -0
- data/kinde_api/spec/models/replace_redirect_callback_urls_request_spec.rb +34 -0
- data/kinde_api/spec/models/role_spec.rb +52 -0
- data/kinde_api/spec/models/roles_permission_response_inner_spec.rb +52 -0
- data/kinde_api/spec/models/roles_spec.rb +6 -0
- data/kinde_api/spec/models/subscriber_spec.rb +52 -0
- data/kinde_api/spec/models/subscribers_subscriber_spec.rb +58 -0
- data/kinde_api/spec/models/token_error_response_spec.rb +40 -0
- data/kinde_api/spec/models/token_introspect_spec.rb +58 -0
- data/kinde_api/spec/models/update_api_applications_request_applications_inner_spec.rb +40 -0
- data/kinde_api/spec/models/update_api_applications_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_application_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_environement_feature_flag_override_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_organization_request_spec.rb +6 -0
- data/kinde_api/spec/models/update_role_permissions_request_permissions_inner_spec.rb +40 -0
- data/kinde_api/spec/models/update_role_permissions_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_role_permissions_response_spec.rb +52 -0
- data/kinde_api/spec/models/update_roles_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_user_response_spec.rb +70 -0
- data/kinde_api/spec/models/user_identities_inner_spec.rb +40 -0
- data/kinde_api/spec/models/user_spec.rb +9 -9
- data/kinde_api/spec/models/users_response_users_inner_spec.rb +106 -0
- data/kinde_sdk.gemspec +1 -1
- data/lib/kinde_sdk/version.rb +1 -1
- data/spec/kinde_sdk_spec.rb +0 -46
- metadata +193 -12
- data/kinde_api/docs/Application.md +0 -20
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Kinde Management API
|
|
3
|
+
|
|
4
|
+
#Provides endpoints to manage your Kinde Businesses
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@kinde.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for KindeApi::BusinessApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'BusinessApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = KindeApi::BusinessApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of BusinessApi' do
|
|
30
|
+
it 'should create an instance of BusinessApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(KindeApi::BusinessApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for get_business
|
|
36
|
+
# List business details
|
|
37
|
+
# Get your business details.
|
|
38
|
+
# @param code Business code.
|
|
39
|
+
# @param name Business name.
|
|
40
|
+
# @param email Email associated with business.
|
|
41
|
+
# @param [Hash] opts the optional parameters
|
|
42
|
+
# @option opts [String] :phone Phone number associated with business.
|
|
43
|
+
# @option opts [String] :industry The industry your business is in.
|
|
44
|
+
# @option opts [String] :timezone The timezone your business is in.
|
|
45
|
+
# @option opts [String] :privacy_url Your Privacy policy URL.
|
|
46
|
+
# @option opts [String] :terms_url Your Terms and Conditions URL.
|
|
47
|
+
# @return [SuccessResponse]
|
|
48
|
+
describe 'get_business test' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# unit tests for update_business
|
|
55
|
+
# Update business details
|
|
56
|
+
# Update business details.
|
|
57
|
+
# @param business_name Business name.
|
|
58
|
+
# @param primary_email Email associated with business.
|
|
59
|
+
# @param [Hash] opts the optional parameters
|
|
60
|
+
# @option opts [String] :primary_phone Phone number associated with business.
|
|
61
|
+
# @option opts [String] :industry_key The key of the industry your business is in.
|
|
62
|
+
# @option opts [String] :timezone_id The ID of the timezone your business is in.
|
|
63
|
+
# @option opts [String] :privacy_url Your Privacy policy URL.
|
|
64
|
+
# @option opts [String] :terms_url Your Terms and Conditions URL.
|
|
65
|
+
# @option opts [String] :is_show_kinde_branding Display \"Powered by Kinde\" on your sign up, sign in, and subscription pages.
|
|
66
|
+
# @option opts [Boolean] :is_click_wrap Show a policy acceptance checkbox on sign up.
|
|
67
|
+
# @option opts [String] :partner_code Your Kinde Perk code.
|
|
68
|
+
# @return [SuccessResponse]
|
|
69
|
+
describe 'update_business test' do
|
|
70
|
+
it 'should work' do
|
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
end
|
|
@@ -32,19 +32,58 @@ describe 'CallbacksApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# unit tests for add_logout_redirect_urls
|
|
36
|
+
# Add Logout Redirect URLs
|
|
37
|
+
# Add additional logout redirect URLs.
|
|
38
|
+
# @param app_id The identifier for the application.
|
|
39
|
+
# @param replace_logout_redirect_urls_request Callback details.
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [SuccessResponse]
|
|
42
|
+
describe 'add_logout_redirect_urls test' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
35
48
|
# unit tests for add_redirect_callback_urls
|
|
36
49
|
# Add Redirect Callback URLs
|
|
37
50
|
# Add additional redirect callback URLs.
|
|
38
51
|
# @param app_id The identifier for the application.
|
|
39
|
-
# @param
|
|
52
|
+
# @param replace_redirect_callback_urls_request Callback details.
|
|
40
53
|
# @param [Hash] opts the optional parameters
|
|
41
|
-
# @return [
|
|
54
|
+
# @return [SuccessResponse]
|
|
42
55
|
describe 'add_redirect_callback_urls test' do
|
|
43
56
|
it 'should work' do
|
|
44
57
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
45
58
|
end
|
|
46
59
|
end
|
|
47
60
|
|
|
61
|
+
# unit tests for delete_callback_urls
|
|
62
|
+
# Delete Callback URLs
|
|
63
|
+
# Delete callback URLs.
|
|
64
|
+
# @param app_id The identifier for the application.
|
|
65
|
+
# @param urls Urls to delete, comma separated and url encoded.
|
|
66
|
+
# @param [Hash] opts the optional parameters
|
|
67
|
+
# @return [SuccessResponse]
|
|
68
|
+
describe 'delete_callback_urls test' do
|
|
69
|
+
it 'should work' do
|
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# unit tests for delete_logout_urls
|
|
75
|
+
# Delete Logout URLs
|
|
76
|
+
# Delete logout URLs.
|
|
77
|
+
# @param app_id The identifier for the application.
|
|
78
|
+
# @param urls Urls to delete, comma separated and url encoded.
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [SuccessResponse]
|
|
81
|
+
describe 'delete_logout_urls test' do
|
|
82
|
+
it 'should work' do
|
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
48
87
|
# unit tests for get_callback_urls
|
|
49
88
|
# List Callback URLs
|
|
50
89
|
# Returns an application's redirect callback URLs.
|
|
@@ -57,13 +96,38 @@ describe 'CallbacksApi' do
|
|
|
57
96
|
end
|
|
58
97
|
end
|
|
59
98
|
|
|
99
|
+
# unit tests for get_logout_urls
|
|
100
|
+
# List Logout URLs
|
|
101
|
+
# Returns an application's logout redirect URLs.
|
|
102
|
+
# @param app_id The identifier for the application.
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @return [LogoutRedirectUrls]
|
|
105
|
+
describe 'get_logout_urls test' do
|
|
106
|
+
it 'should work' do
|
|
107
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# unit tests for replace_logout_redirect_urls
|
|
112
|
+
# Replace Logout Redirect URLs
|
|
113
|
+
# Replace all logout redirect URLs.
|
|
114
|
+
# @param app_id The identifier for the application.
|
|
115
|
+
# @param replace_logout_redirect_urls_request Callback details.
|
|
116
|
+
# @param [Hash] opts the optional parameters
|
|
117
|
+
# @return [SuccessResponse]
|
|
118
|
+
describe 'replace_logout_redirect_urls test' do
|
|
119
|
+
it 'should work' do
|
|
120
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
60
124
|
# unit tests for replace_redirect_callback_urls
|
|
61
|
-
# Replace
|
|
125
|
+
# Replace Redirect Callback URLs
|
|
62
126
|
# Replace all redirect callback URLs.
|
|
63
127
|
# @param app_id The identifier for the application.
|
|
64
|
-
# @param
|
|
128
|
+
# @param replace_redirect_callback_urls_request Callback details.
|
|
65
129
|
# @param [Hash] opts the optional parameters
|
|
66
|
-
# @return [
|
|
130
|
+
# @return [SuccessResponse]
|
|
67
131
|
describe 'replace_redirect_callback_urls test' do
|
|
68
132
|
it 'should work' do
|
|
69
133
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -33,7 +33,7 @@ describe 'EnvironmentsApi' do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# unit tests for delete_environement_feature_flag_override
|
|
36
|
-
# Delete
|
|
36
|
+
# Delete Environment Feature Flag Override
|
|
37
37
|
# Delete environment feature flag override.
|
|
38
38
|
# @param feature_flag_key The identifier for the feature flag.
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
@@ -45,7 +45,7 @@ describe 'EnvironmentsApi' do
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
# unit tests for delete_environement_feature_flag_overrides
|
|
48
|
-
# Delete
|
|
48
|
+
# Delete Environment Feature Flag Overrides
|
|
49
49
|
# Delete all environment feature flag overrides.
|
|
50
50
|
# @param [Hash] opts the optional parameters
|
|
51
51
|
# @return [SuccessResponse]
|
|
@@ -56,7 +56,7 @@ describe 'EnvironmentsApi' do
|
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# unit tests for get_environement_feature_flags
|
|
59
|
-
# List
|
|
59
|
+
# List Environment Feature Flags
|
|
60
60
|
# Get environment feature flags.
|
|
61
61
|
# @param [Hash] opts the optional parameters
|
|
62
62
|
# @return [GetEnvironmentFeatureFlagsResponse]
|
|
@@ -67,10 +67,10 @@ describe 'EnvironmentsApi' do
|
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
# unit tests for update_environement_feature_flag_override
|
|
70
|
-
# Update
|
|
70
|
+
# Update Environment Feature Flag Override
|
|
71
71
|
# Update environment feature flag override.
|
|
72
72
|
# @param feature_flag_key The identifier for the feature flag.
|
|
73
|
-
# @param
|
|
73
|
+
# @param update_environement_feature_flag_override_request Flag details.
|
|
74
74
|
# @param [Hash] opts the optional parameters
|
|
75
75
|
# @return [SuccessResponse]
|
|
76
76
|
describe 'update_environement_feature_flag_override test' do
|
|
@@ -33,14 +33,9 @@ describe 'FeatureFlagsApi' do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# unit tests for create_feature_flag
|
|
36
|
-
# Create
|
|
36
|
+
# Create Feature Flag
|
|
37
37
|
# Create feature flag.
|
|
38
|
-
# @param
|
|
39
|
-
# @param description Description of the flag purpose.
|
|
40
|
-
# @param key The flag identifier to use in code.
|
|
41
|
-
# @param type The variable type.
|
|
42
|
-
# @param allow_override_level Allow the flag to be overridden at a different level.
|
|
43
|
-
# @param default_value Default value for the flag used by environments and organizations.
|
|
38
|
+
# @param create_feature_flag_request Flag details.
|
|
44
39
|
# @param [Hash] opts the optional parameters
|
|
45
40
|
# @return [SuccessResponse]
|
|
46
41
|
describe 'create_feature_flag test' do
|
|
@@ -50,7 +45,7 @@ describe 'FeatureFlagsApi' do
|
|
|
50
45
|
end
|
|
51
46
|
|
|
52
47
|
# unit tests for delete_feature_flag
|
|
53
|
-
# Delete
|
|
48
|
+
# Delete Feature Flag
|
|
54
49
|
# Delete feature flag
|
|
55
50
|
# @param feature_flag_key The identifier for the feature flag.
|
|
56
51
|
# @param [Hash] opts the optional parameters
|
|
@@ -62,7 +57,7 @@ describe 'FeatureFlagsApi' do
|
|
|
62
57
|
end
|
|
63
58
|
|
|
64
59
|
# unit tests for update_feature_flag
|
|
65
|
-
#
|
|
60
|
+
# Replace Feature Flag
|
|
66
61
|
# Update feature flag.
|
|
67
62
|
# @param feature_flag_key The key identifier for the feature flag.
|
|
68
63
|
# @param name The name of the flag.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Kinde Management API
|
|
3
|
+
|
|
4
|
+
#Provides endpoints to manage your Kinde Businesses
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@kinde.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for KindeApi::IndustriesApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'IndustriesApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = KindeApi::IndustriesApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of IndustriesApi' do
|
|
30
|
+
it 'should create an instance of IndustriesApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(KindeApi::IndustriesApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for get_industries
|
|
36
|
+
# List industries and industry keys.
|
|
37
|
+
# Get a list of industries and associated industry keys.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :industry_key Industry Key.
|
|
40
|
+
# @option opts [String] :name Industry name.
|
|
41
|
+
# @return [SuccessResponse]
|
|
42
|
+
describe 'get_industries test' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
end
|
|
@@ -33,7 +33,7 @@ describe 'OAuthApi' do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# unit tests for get_user
|
|
36
|
-
#
|
|
36
|
+
# Get User Profile
|
|
37
37
|
# Contains the id, names and email of the currently logged in user.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @return [UserProfile]
|
|
@@ -54,4 +54,31 @@ describe 'OAuthApi' do
|
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
+
# unit tests for token_introspection
|
|
58
|
+
# Get token details
|
|
59
|
+
# Retrieve information about the provided token.
|
|
60
|
+
# @param [Hash] opts the optional parameters
|
|
61
|
+
# @option opts [String] :token The token to be introspected.
|
|
62
|
+
# @option opts [String] :token_type The provided token's type.
|
|
63
|
+
# @return [TokenIntrospect]
|
|
64
|
+
describe 'token_introspection test' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# unit tests for token_revocation
|
|
71
|
+
# Revoke token
|
|
72
|
+
# Revoke a previously issued token.
|
|
73
|
+
# @param [Hash] opts the optional parameters
|
|
74
|
+
# @option opts [String] :token The token to be revoked.
|
|
75
|
+
# @option opts [String] :client_id The identifier for your client.
|
|
76
|
+
# @option opts [String] :client_secret The secret associated with your client.
|
|
77
|
+
# @return [nil]
|
|
78
|
+
describe 'token_revocation test' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
57
84
|
end
|
|
@@ -57,6 +57,20 @@ describe 'OrganizationsApi' do
|
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
# unit tests for create_organization_user_permission
|
|
61
|
+
# Add Organization User Permission
|
|
62
|
+
# Add permission to an organization user.
|
|
63
|
+
# @param org_code The organization's code.
|
|
64
|
+
# @param user_id The user's id.
|
|
65
|
+
# @param create_organization_user_permission_request Permission details.
|
|
66
|
+
# @param [Hash] opts the optional parameters
|
|
67
|
+
# @return [SuccessResponse]
|
|
68
|
+
describe 'create_organization_user_permission test' do
|
|
69
|
+
it 'should work' do
|
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
60
74
|
# unit tests for create_organization_user_role
|
|
61
75
|
# Add Organization User Role
|
|
62
76
|
# Add role to an organization user.
|
|
@@ -71,8 +85,20 @@ describe 'OrganizationsApi' do
|
|
|
71
85
|
end
|
|
72
86
|
end
|
|
73
87
|
|
|
88
|
+
# unit tests for delete_organization
|
|
89
|
+
# Delete Organization
|
|
90
|
+
# Delete an organization.
|
|
91
|
+
# @param org_code The identifier for the organization.
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [nil]
|
|
94
|
+
describe 'delete_organization test' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
74
100
|
# unit tests for delete_organization_feature_flag_override
|
|
75
|
-
# Delete
|
|
101
|
+
# Delete Organization Feature Flag Override
|
|
76
102
|
# Delete organization feature flag override.
|
|
77
103
|
# @param org_code The identifier for the organization.
|
|
78
104
|
# @param feature_flag_key The identifier for the feature flag.
|
|
@@ -85,7 +111,7 @@ describe 'OrganizationsApi' do
|
|
|
85
111
|
end
|
|
86
112
|
|
|
87
113
|
# unit tests for delete_organization_feature_flag_overrides
|
|
88
|
-
# Delete
|
|
114
|
+
# Delete Organization Feature Flag Overrides
|
|
89
115
|
# Delete all organization feature flag overrides.
|
|
90
116
|
# @param org_code The identifier for the organization.
|
|
91
117
|
# @param [Hash] opts the optional parameters
|
|
@@ -96,6 +122,20 @@ describe 'OrganizationsApi' do
|
|
|
96
122
|
end
|
|
97
123
|
end
|
|
98
124
|
|
|
125
|
+
# unit tests for delete_organization_user_permission
|
|
126
|
+
# Delete Organization User Permission
|
|
127
|
+
# Delete permission for an organization user.
|
|
128
|
+
# @param org_code The organization's code.
|
|
129
|
+
# @param user_id The user's id.
|
|
130
|
+
# @param permission_id The permission id.
|
|
131
|
+
# @param [Hash] opts the optional parameters
|
|
132
|
+
# @return [SuccessResponse]
|
|
133
|
+
describe 'delete_organization_user_permission test' do
|
|
134
|
+
it 'should work' do
|
|
135
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
99
139
|
# unit tests for delete_organization_user_role
|
|
100
140
|
# Delete Organization User Role
|
|
101
141
|
# Delete role for an organization user.
|
|
@@ -123,7 +163,7 @@ describe 'OrganizationsApi' do
|
|
|
123
163
|
end
|
|
124
164
|
|
|
125
165
|
# unit tests for get_organization_feature_flags
|
|
126
|
-
# List
|
|
166
|
+
# List Organization Feature Flags
|
|
127
167
|
# Get all organization feature flags.
|
|
128
168
|
# @param org_code The identifier for the organization.
|
|
129
169
|
# @param [Hash] opts the optional parameters
|
|
@@ -134,6 +174,20 @@ describe 'OrganizationsApi' do
|
|
|
134
174
|
end
|
|
135
175
|
end
|
|
136
176
|
|
|
177
|
+
# unit tests for get_organization_user_permissions
|
|
178
|
+
# List Organization User Permissions
|
|
179
|
+
# Get permissions for an organization user.
|
|
180
|
+
# @param org_code The organization's code.
|
|
181
|
+
# @param user_id The user's id.
|
|
182
|
+
# @param [Hash] opts the optional parameters
|
|
183
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"roles\".
|
|
184
|
+
# @return [GetOrganizationsUserPermissionsResponse]
|
|
185
|
+
describe 'get_organization_user_permissions test' do
|
|
186
|
+
it 'should work' do
|
|
187
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
137
191
|
# unit tests for get_organization_user_roles
|
|
138
192
|
# List Organization User Roles
|
|
139
193
|
# Get roles for an organization user.
|
|
@@ -155,8 +209,9 @@ describe 'OrganizationsApi' do
|
|
|
155
209
|
# @option opts [String] :sort Field and order to sort the result by.
|
|
156
210
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
|
157
211
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
|
158
|
-
# @option opts [String] :permissions Filter by user permissions
|
|
159
|
-
# @
|
|
212
|
+
# @option opts [String] :permissions Filter by user permissions comma separated (where all match)
|
|
213
|
+
# @option opts [String] :roles Filter by user roles comma separated (where all match)
|
|
214
|
+
# @return [GetOrganizationUsersResponse]
|
|
160
215
|
describe 'get_organization_users test' do
|
|
161
216
|
it 'should work' do
|
|
162
217
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -196,7 +251,7 @@ describe 'OrganizationsApi' do
|
|
|
196
251
|
# @param org_code The identifier for the organization.
|
|
197
252
|
# @param [Hash] opts the optional parameters
|
|
198
253
|
# @option opts [UpdateOrganizationRequest] :update_organization_request Organization details.
|
|
199
|
-
# @return [
|
|
254
|
+
# @return [SuccessResponse]
|
|
200
255
|
describe 'update_organization test' do
|
|
201
256
|
it 'should work' do
|
|
202
257
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -204,7 +259,7 @@ describe 'OrganizationsApi' do
|
|
|
204
259
|
end
|
|
205
260
|
|
|
206
261
|
# unit tests for update_organization_feature_flag_override
|
|
207
|
-
# Update
|
|
262
|
+
# Update Organization Feature Flag Override
|
|
208
263
|
# Update organization feature flag override.
|
|
209
264
|
# @param org_code The identifier for the organization
|
|
210
265
|
# @param feature_flag_key The identifier for the feature flag
|
|
@@ -218,7 +273,7 @@ describe 'OrganizationsApi' do
|
|
|
218
273
|
end
|
|
219
274
|
|
|
220
275
|
# unit tests for update_organization_users
|
|
221
|
-
# Update
|
|
276
|
+
# Update Organization Users
|
|
222
277
|
# Update users that belong to an organization.
|
|
223
278
|
# @param org_code The organization's code.
|
|
224
279
|
# @param [Hash] opts the optional parameters
|
|
@@ -33,8 +33,8 @@ describe 'PermissionsApi' do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# unit tests for create_permission
|
|
36
|
-
# Create
|
|
37
|
-
# Create permission.
|
|
36
|
+
# Create Permission
|
|
37
|
+
# Create a new permission.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [CreatePermissionRequest] :create_permission_request Permission details.
|
|
40
40
|
# @return [SuccessResponse]
|
|
@@ -44,6 +44,18 @@ describe 'PermissionsApi' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
# unit tests for delete_permission
|
|
48
|
+
# Delete Permission
|
|
49
|
+
# Delete permission
|
|
50
|
+
# @param permission_id The identifier for the permission.
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [SuccessResponse]
|
|
53
|
+
describe 'delete_permission test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
47
59
|
# unit tests for get_permissions
|
|
48
60
|
# List Permissions
|
|
49
61
|
# The returned list can be sorted by permission name or permission ID in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter.
|
|
@@ -51,7 +63,7 @@ describe 'PermissionsApi' do
|
|
|
51
63
|
# @option opts [String] :sort Field and order to sort the result by.
|
|
52
64
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
|
53
65
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
|
54
|
-
# @return [
|
|
66
|
+
# @return [GetPermissionsResponse]
|
|
55
67
|
describe 'get_permissions test' do
|
|
56
68
|
it 'should work' do
|
|
57
69
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -59,7 +71,7 @@ describe 'PermissionsApi' do
|
|
|
59
71
|
end
|
|
60
72
|
|
|
61
73
|
# unit tests for update_permissions
|
|
62
|
-
# Update
|
|
74
|
+
# Update Permission
|
|
63
75
|
# Update permission
|
|
64
76
|
# @param permission_id The identifier for the permission.
|
|
65
77
|
# @param [Hash] opts the optional parameters
|
|
@@ -33,7 +33,7 @@ describe 'RolesApi' do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# unit tests for create_role
|
|
36
|
-
# Create
|
|
36
|
+
# Create Role
|
|
37
37
|
# Create role.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [CreateRoleRequest] :create_role_request Role details.
|
|
@@ -44,6 +44,33 @@ describe 'RolesApi' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
# unit tests for delete_role
|
|
48
|
+
# Delete Role
|
|
49
|
+
# Delete role
|
|
50
|
+
# @param role_id The identifier for the role.
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [SuccessResponse]
|
|
53
|
+
describe 'delete_role test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for get_role_permission
|
|
60
|
+
# Get Role Permissions
|
|
61
|
+
# Get permissions for a role.
|
|
62
|
+
# @param role_id The role's public id.
|
|
63
|
+
# @param [Hash] opts the optional parameters
|
|
64
|
+
# @option opts [String] :sort Field and order to sort the result by.
|
|
65
|
+
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
|
66
|
+
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
|
67
|
+
# @return [Array<RolesPermissionResponseInner>]
|
|
68
|
+
describe 'get_role_permission test' do
|
|
69
|
+
it 'should work' do
|
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
47
74
|
# unit tests for get_roles
|
|
48
75
|
# List Roles
|
|
49
76
|
# The returned list can be sorted by role name or role ID in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter.
|
|
@@ -51,19 +78,45 @@ describe 'RolesApi' do
|
|
|
51
78
|
# @option opts [String] :sort Field and order to sort the result by.
|
|
52
79
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
|
53
80
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
|
54
|
-
# @return [
|
|
81
|
+
# @return [GetRolesResponse]
|
|
55
82
|
describe 'get_roles test' do
|
|
56
83
|
it 'should work' do
|
|
57
84
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
58
85
|
end
|
|
59
86
|
end
|
|
60
87
|
|
|
88
|
+
# unit tests for remove_role_permission
|
|
89
|
+
# Remove Role Permission
|
|
90
|
+
# Remove a permission from a role.
|
|
91
|
+
# @param role_id The role's public id.
|
|
92
|
+
# @param permission_id The permission's public id.
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [SuccessResponse]
|
|
95
|
+
describe 'remove_role_permission test' do
|
|
96
|
+
it 'should work' do
|
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# unit tests for update_role_permissions
|
|
102
|
+
# Update Role Permissions
|
|
103
|
+
# Update role permissions.
|
|
104
|
+
# @param role_id The identifier for the role.
|
|
105
|
+
# @param update_role_permissions_request
|
|
106
|
+
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @return [UpdateRolePermissionsResponse]
|
|
108
|
+
describe 'update_role_permissions test' do
|
|
109
|
+
it 'should work' do
|
|
110
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
61
114
|
# unit tests for update_roles
|
|
115
|
+
# Update Role
|
|
62
116
|
# Update a role
|
|
63
|
-
# Update role
|
|
64
117
|
# @param role_id The identifier for the role.
|
|
65
118
|
# @param [Hash] opts the optional parameters
|
|
66
|
-
# @option opts [
|
|
119
|
+
# @option opts [UpdateRolesRequest] :update_roles_request Role details.
|
|
67
120
|
# @return [SuccessResponse]
|
|
68
121
|
describe 'update_roles test' do
|
|
69
122
|
it 'should work' do
|
|
@@ -33,7 +33,7 @@ describe 'SubscribersApi' do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# unit tests for create_subscriber
|
|
36
|
-
# Create
|
|
36
|
+
# Create Subscriber
|
|
37
37
|
# Create subscriber.
|
|
38
38
|
# @param first_name Subscriber's first name.
|
|
39
39
|
# @param last_name Subscriber's last name.
|
|
@@ -51,7 +51,7 @@ describe 'SubscribersApi' do
|
|
|
51
51
|
# Retrieve a subscriber record.
|
|
52
52
|
# @param subscriber_id The subscriber's id.
|
|
53
53
|
# @param [Hash] opts the optional parameters
|
|
54
|
-
# @return [
|
|
54
|
+
# @return [GetSubscriberResponse]
|
|
55
55
|
describe 'get_subscriber test' do
|
|
56
56
|
it 'should work' do
|
|
57
57
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -64,9 +64,8 @@ describe 'SubscribersApi' do
|
|
|
64
64
|
# @param [Hash] opts the optional parameters
|
|
65
65
|
# @option opts [String] :sort Field and order to sort the result by.
|
|
66
66
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
|
67
|
-
# @option opts [Integer] :subscriber_id ID of the subscriber to filter by.
|
|
68
67
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
|
69
|
-
# @return [
|
|
68
|
+
# @return [GetSubscribersResponse]
|
|
70
69
|
describe 'get_subscribers test' do
|
|
71
70
|
it 'should work' do
|
|
72
71
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|