kinde_sdk 1.2.1 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/kinde_api/README.md +100 -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/ConnectedAppsApi.md +12 -6
- 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 +16 -2
- data/kinde_api/docs/CreateOrganizationUserPermissionRequest.md +18 -0
- data/kinde_api/docs/CreateUserRequest.md +2 -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 +334 -40
- data/kinde_api/docs/Permissions.md +3 -1
- 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 +310 -18
- 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 +15 -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 +171 -23
- 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 +346 -0
- data/kinde_api/lib/kinde_api/api/applications_api.rb +362 -0
- data/kinde_api/lib/kinde_api/api/business_api.rb +212 -0
- data/kinde_api/lib/kinde_api/api/callbacks_api.rb +463 -80
- data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +66 -54
- data/kinde_api/lib/kinde_api/api/environments_api.rb +86 -69
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +98 -119
- data/kinde_api/lib/kinde_api/api/industries_api.rb +84 -0
- data/kinde_api/lib/kinde_api/api/o_auth_api.rb +168 -38
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +632 -250
- data/kinde_api/lib/kinde_api/api/permissions_api.rb +133 -66
- data/kinde_api/lib/kinde_api/api/roles_api.rb +361 -76
- data/kinde_api/lib/kinde_api/api/subscribers_api.rb +66 -68
- data/kinde_api/lib/kinde_api/api/timezones_api.rb +84 -0
- data/kinde_api/lib/kinde_api/api/users_api.rb +267 -115
- data/kinde_api/lib/kinde_api/api_client.rb +64 -68
- data/kinde_api/lib/kinde_api/api_error.rb +16 -16
- data/kinde_api/lib/kinde_api/configuration.rb +18 -19
- data/kinde_api/lib/kinde_api/models/add_apis_request.rb +235 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +42 -38
- data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +51 -51
- data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +50 -50
- data/kinde_api/lib/kinde_api/models/api.rb +262 -0
- data/kinde_api/lib/kinde_api/models/api_applications_inner.rb +237 -0
- data/kinde_api/lib/kinde_api/models/api_result.rb +40 -36
- data/kinde_api/lib/kinde_api/models/apis.rb +246 -0
- data/kinde_api/lib/kinde_api/models/applications.rb +232 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +45 -42
- data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +45 -42
- data/kinde_api/lib/kinde_api/models/create_application_request.rb +266 -0
- data/kinde_api/lib/kinde_api/models/create_application_response.rb +238 -0
- data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +326 -0
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +129 -75
- data/kinde_api/lib/kinde_api/models/create_organization_response.rb +50 -53
- data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +41 -36
- data/kinde_api/lib/kinde_api/models/create_organization_user_permission_request.rb +223 -0
- data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +41 -36
- data/kinde_api/lib/kinde_api/models/create_permission_request.rb +49 -48
- data/kinde_api/lib/kinde_api/models/create_role_request.rb +53 -54
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +41 -36
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +41 -36
- data/kinde_api/lib/kinde_api/models/create_user_request.rb +55 -45
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +51 -47
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +41 -36
- data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +45 -42
- data/kinde_api/lib/kinde_api/models/create_user_response.rb +50 -50
- data/kinde_api/lib/kinde_api/models/error.rb +44 -42
- data/kinde_api/lib/kinde_api/models/error_response.rb +42 -38
- data/kinde_api/lib/kinde_api/models/get_application_response.rb +238 -0
- data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +255 -0
- data/kinde_api/lib/kinde_api/models/get_applications_response.rb +56 -57
- data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +54 -55
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +50 -50
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +52 -50
- data/kinde_api/lib/kinde_api/models/{get_organizations_users_response.rb → get_organization_users_response.rb} +55 -56
- data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +54 -55
- data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +54 -55
- data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +248 -0
- data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +42 -38
- data/kinde_api/lib/kinde_api/models/get_roles_response.rb +248 -0
- data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +248 -0
- data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +224 -0
- data/kinde_api/lib/kinde_api/models/organization.rb +56 -54
- data/kinde_api/lib/kinde_api/models/organization_user.rb +63 -79
- data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +243 -0
- data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +227 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role.rb +50 -53
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +232 -0
- data/kinde_api/lib/kinde_api/models/{application.rb → organization_user_role_permissions_permissions.rb} +43 -47
- data/kinde_api/lib/kinde_api/models/permissions.rb +59 -50
- data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +42 -38
- data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +224 -0
- data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +224 -0
- data/kinde_api/lib/kinde_api/models/role.rb +236 -0
- data/kinde_api/lib/kinde_api/models/roles.rb +57 -49
- data/kinde_api/lib/kinde_api/models/roles_permission_response_inner.rb +237 -0
- data/kinde_api/lib/kinde_api/models/subscriber.rb +237 -0
- data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +242 -0
- data/kinde_api/lib/kinde_api/models/success_response.rb +46 -45
- data/kinde_api/lib/kinde_api/models/token_error_response.rb +231 -0
- data/kinde_api/lib/kinde_api/models/token_introspect.rb +257 -0
- data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +228 -0
- data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +236 -0
- data/kinde_api/lib/kinde_api/models/update_application_request.rb +250 -0
- data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +228 -0
- data/kinde_api/lib/kinde_api/models/update_organization_request.rb +119 -67
- data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +43 -39
- data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +55 -57
- data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +57 -65
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +224 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +231 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +240 -0
- data/kinde_api/lib/kinde_api/models/update_roles_request.rb +255 -0
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +53 -54
- data/kinde_api/lib/kinde_api/models/update_user_response.rb +273 -0
- data/kinde_api/lib/kinde_api/models/user.rb +104 -120
- data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +227 -0
- data/kinde_api/lib/kinde_api/models/user_identity.rb +45 -42
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +41 -36
- data/kinde_api/lib/kinde_api/models/user_profile.rb +62 -66
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +74 -84
- data/kinde_api/lib/kinde_api/models/users_response.rb +54 -55
- data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +328 -0
- data/kinde_api/lib/kinde_api/version.rb +11 -11
- data/kinde_api/lib/kinde_api.rb +71 -16
- data/kinde_api/spec/api/apis_api_spec.rb +94 -0
- data/kinde_api/spec/api/applications_api_spec.rb +97 -0
- data/kinde_api/spec/api/business_api_spec.rb +74 -0
- data/kinde_api/spec/api/callbacks_api_spec.rb +85 -22
- data/kinde_api/spec/api/connected_apps_api_spec.rb +16 -15
- data/kinde_api/spec/api/environments_api_spec.rb +19 -20
- data/kinde_api/spec/api/feature_flags_api_spec.rb +17 -23
- data/kinde_api/spec/api/industries_api_spec.rb +47 -0
- data/kinde_api/spec/api/o_auth_api_spec.rb +41 -15
- data/kinde_api/spec/api/organizations_api_spec.rb +93 -39
- data/kinde_api/spec/api/permissions_api_spec.rb +30 -19
- data/kinde_api/spec/api/roles_api_spec.rb +71 -19
- data/kinde_api/spec/api/subscribers_api_spec.rb +18 -20
- data/kinde_api/spec/api/timezones_api_spec.rb +47 -0
- data/kinde_api/spec/api/users_api_spec.rb +51 -24
- data/kinde_api/spec/api_client_spec.rb +20 -15
- data/kinde_api/spec/configuration_spec.rb +11 -11
- data/kinde_api/spec/models/add_apis_request_spec.rb +39 -0
- 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 +51 -0
- data/kinde_api/spec/models/api_result_spec.rb +11 -12
- data/kinde_api/spec/models/api_spec.rb +63 -0
- data/kinde_api/spec/models/apis_spec.rb +51 -0
- data/kinde_api/spec/models/applications_spec.rb +45 -0
- 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 +43 -0
- data/kinde_api/spec/models/create_application_response_application_spec.rb +45 -0
- data/kinde_api/spec/models/create_application_response_spec.rb +45 -0
- data/kinde_api/spec/models/create_feature_flag_request_spec.rb +71 -0
- data/kinde_api/spec/models/create_organization_request_spec.rb +58 -17
- 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 +33 -0
- 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 +57 -0
- data/kinde_api/spec/models/get_application_response_spec.rb +45 -0
- data/kinde_api/spec/models/get_applications_response_spec.rb +16 -17
- 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 +51 -0
- data/kinde_api/spec/models/get_organizations_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_organizations_user_permissions_response_spec.rb +45 -0
- data/kinde_api/spec/models/get_organizations_user_roles_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_permissions_response_spec.rb +51 -0
- data/kinde_api/spec/models/get_redirect_callback_urls_response_spec.rb +11 -12
- data/kinde_api/spec/models/get_roles_response_spec.rb +51 -0
- data/kinde_api/spec/models/get_subscriber_response_spec.rb +45 -0
- data/kinde_api/spec/models/get_subscribers_response_spec.rb +51 -0
- data/kinde_api/spec/models/logout_redirect_urls_spec.rb +33 -0
- data/kinde_api/spec/models/organization_spec.rb +19 -14
- data/kinde_api/spec/models/organization_user_permission_roles_inner_spec.rb +39 -0
- data/kinde_api/spec/models/organization_user_permission_spec.rb +57 -0
- data/kinde_api/spec/models/organization_user_role_permissions_permissions_spec.rb +33 -0
- data/kinde_api/spec/models/organization_user_role_permissions_spec.rb +45 -0
- 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 +33 -0
- data/kinde_api/spec/models/replace_redirect_callback_urls_request_spec.rb +33 -0
- data/kinde_api/spec/models/role_spec.rb +51 -0
- data/kinde_api/spec/models/roles_permission_response_inner_spec.rb +51 -0
- data/kinde_api/spec/models/roles_spec.rb +20 -15
- data/kinde_api/spec/models/subscriber_spec.rb +51 -0
- data/kinde_api/spec/models/subscribers_subscriber_spec.rb +57 -0
- data/kinde_api/spec/models/success_response_spec.rb +13 -14
- data/kinde_api/spec/models/token_error_response_spec.rb +39 -0
- data/kinde_api/spec/models/token_introspect_spec.rb +57 -0
- data/kinde_api/spec/models/update_api_applications_request_applications_inner_spec.rb +39 -0
- data/kinde_api/spec/models/update_api_applications_request_spec.rb +33 -0
- data/kinde_api/spec/models/update_application_request_spec.rb +51 -0
- data/kinde_api/spec/models/update_environement_feature_flag_override_request_spec.rb +33 -0
- data/kinde_api/spec/models/update_organization_request_spec.rb +57 -16
- 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 +39 -0
- data/kinde_api/spec/models/update_role_permissions_request_spec.rb +33 -0
- data/kinde_api/spec/models/update_role_permissions_response_spec.rb +51 -0
- data/kinde_api/spec/models/update_roles_request_spec.rb +51 -0
- data/kinde_api/spec/models/update_user_request_spec.rb +15 -16
- data/kinde_api/spec/models/update_user_response_spec.rb +69 -0
- data/kinde_api/spec/models/user_identities_inner_spec.rb +39 -0
- 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 +33 -34
- data/kinde_api/spec/models/users_response_spec.rb +15 -16
- data/kinde_api/spec/models/users_response_users_inner_spec.rb +105 -0
- data/kinde_api/spec/spec_helper.rb +61 -63
- data/lib/kinde_sdk/version.rb +1 -1
- data/spec/kinde_sdk_spec.rb +0 -46
- metadata +201 -29
- data/Gemfile +0 -15
- data/LICENSE +0 -21
- data/README.md +0 -445
- data/Rakefile +0 -10
- data/kinde_api/.gitignore +0 -39
- data/kinde_api/.rspec +0 -2
- data/kinde_api/docs/Application.md +0 -20
- data/kinde_api/spec/models/application_spec.rb +0 -40
- data/kinde_api/spec/models/get_organizations_users_response_spec.rb +0 -52
- 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
|
# Create User
|
23
|
-
# Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
|
24
|
+
# Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
|
24
25
|
# @param [Hash] opts the optional parameters
|
25
26
|
# @option opts [CreateUserRequest] :create_user_request The details of the user to create.
|
26
27
|
# @return [CreateUserResponse]
|
@@ -30,14 +31,12 @@ module KindeApi
|
|
30
31
|
end
|
31
32
|
|
32
33
|
# Create User
|
33
|
-
# Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
|
34
|
+
# Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
|
34
35
|
# @param [Hash] opts the optional parameters
|
35
36
|
# @option opts [CreateUserRequest] :create_user_request The details of the user to create.
|
36
37
|
# @return [Array<(CreateUserResponse, Integer, Hash)>] CreateUserResponse data, response status code and response headers
|
37
38
|
def create_user_with_http_info(opts = {})
|
38
|
-
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.create_user ...'
|
40
|
-
end
|
39
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.create_user ...' if @api_client.config.debugging
|
41
40
|
# resource path
|
42
41
|
local_var_path = '/api/v1/user'
|
43
42
|
|
@@ -47,18 +46,17 @@ module KindeApi
|
|
47
46
|
# header parameters
|
48
47
|
header_params = opts[:header_params] || {}
|
49
48
|
# HTTP header 'Accept' (if needed)
|
50
|
-
header_params['Accept'] =
|
49
|
+
header_params['Accept'] =
|
50
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
51
51
|
# HTTP header 'Content-Type'
|
52
52
|
content_type = @api_client.select_header_content_type(['application/json'])
|
53
|
-
|
54
|
-
header_params['Content-Type'] = content_type
|
55
|
-
end
|
53
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
56
54
|
|
57
55
|
# form parameters
|
58
56
|
form_params = opts[:form_params] || {}
|
59
57
|
|
60
58
|
# http body (model)
|
61
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:
|
59
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:create_user_request])
|
62
60
|
|
63
61
|
# return_type
|
64
62
|
return_type = opts[:debug_return_type] || 'CreateUserResponse'
|
@@ -67,52 +65,59 @@ module KindeApi
|
|
67
65
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
68
66
|
|
69
67
|
new_options = opts.merge(
|
70
|
-
:
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
:
|
75
|
-
|
76
|
-
:
|
68
|
+
operation: :"UsersApi.create_user",
|
69
|
+
header_params:,
|
70
|
+
query_params:,
|
71
|
+
form_params:,
|
72
|
+
body: post_body,
|
73
|
+
auth_names:,
|
74
|
+
return_type:
|
77
75
|
)
|
78
76
|
|
79
77
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
78
|
if @api_client.config.debugging
|
81
79
|
@api_client.config.logger.debug "API called: UsersApi#create_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
80
|
end
|
83
|
-
|
81
|
+
[data, status_code, headers]
|
84
82
|
end
|
85
83
|
|
86
84
|
# Delete User
|
87
|
-
# Delete a user record.
|
85
|
+
# Delete a user record.
|
86
|
+
# @param id [String] The user's id.
|
88
87
|
# @param [Hash] opts the optional parameters
|
89
|
-
# @option opts [
|
88
|
+
# @option opts [Boolean] :is_delete_profile Delete all data and remove the user's profile from all of Kinde, including the subscriber list
|
90
89
|
# @return [SuccessResponse]
|
91
|
-
def delete_user(opts = {})
|
92
|
-
data, _status_code, _headers = delete_user_with_http_info(opts)
|
90
|
+
def delete_user(id, opts = {})
|
91
|
+
data, _status_code, _headers = delete_user_with_http_info(id, opts)
|
93
92
|
data
|
94
93
|
end
|
95
94
|
|
96
95
|
# Delete User
|
97
|
-
# Delete a user record.
|
96
|
+
# Delete a user record.
|
97
|
+
# @param id [String] The user's id.
|
98
98
|
# @param [Hash] opts the optional parameters
|
99
|
-
# @option opts [
|
99
|
+
# @option opts [Boolean] :is_delete_profile Delete all data and remove the user's profile from all of Kinde, including the subscriber list
|
100
100
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
101
|
-
def delete_user_with_http_info(opts = {})
|
102
|
-
if @api_client.config.debugging
|
103
|
-
|
101
|
+
def delete_user_with_http_info(id, opts = {})
|
102
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.delete_user ...' if @api_client.config.debugging
|
103
|
+
# verify the required parameter 'id' is set
|
104
|
+
if @api_client.config.client_side_validation && id.nil?
|
105
|
+
raise ArgumentError, "Missing the required parameter 'id' when calling UsersApi.delete_user"
|
104
106
|
end
|
107
|
+
|
105
108
|
# resource path
|
106
109
|
local_var_path = '/api/v1/user'
|
107
110
|
|
108
111
|
# query parameters
|
109
112
|
query_params = opts[:query_params] || {}
|
110
|
-
query_params[:
|
113
|
+
query_params[:id] = id
|
114
|
+
query_params[:is_delete_profile] = opts[:is_delete_profile] unless opts[:is_delete_profile].nil?
|
111
115
|
|
112
116
|
# header parameters
|
113
117
|
header_params = opts[:header_params] || {}
|
114
118
|
# HTTP header 'Accept' (if needed)
|
115
|
-
header_params['Accept'] =
|
119
|
+
header_params['Accept'] =
|
120
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
116
121
|
|
117
122
|
# form parameters
|
118
123
|
form_params = opts[:form_params] || {}
|
@@ -127,26 +132,27 @@ module KindeApi
|
|
127
132
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
128
133
|
|
129
134
|
new_options = opts.merge(
|
130
|
-
:
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
:
|
135
|
-
|
136
|
-
:
|
135
|
+
operation: :"UsersApi.delete_user",
|
136
|
+
header_params:,
|
137
|
+
query_params:,
|
138
|
+
form_params:,
|
139
|
+
body: post_body,
|
140
|
+
auth_names:,
|
141
|
+
return_type:
|
137
142
|
)
|
138
143
|
|
139
144
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
140
145
|
if @api_client.config.debugging
|
141
146
|
@api_client.config.logger.debug "API called: UsersApi#delete_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
147
|
end
|
143
|
-
|
148
|
+
[data, status_code, headers]
|
144
149
|
end
|
145
150
|
|
146
151
|
# Get User
|
147
|
-
# Retrieve a user record.
|
152
|
+
# Retrieve a user record.
|
148
153
|
# @param id [String] The user's id.
|
149
154
|
# @param [Hash] opts the optional parameters
|
155
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
|
150
156
|
# @return [User]
|
151
157
|
def get_user_data(id, opts = {})
|
152
158
|
data, _status_code, _headers = get_user_data_with_http_info(id, opts)
|
@@ -154,29 +160,31 @@ module KindeApi
|
|
154
160
|
end
|
155
161
|
|
156
162
|
# Get User
|
157
|
-
# Retrieve a user record.
|
163
|
+
# Retrieve a user record.
|
158
164
|
# @param id [String] The user's id.
|
159
165
|
# @param [Hash] opts the optional parameters
|
166
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
|
160
167
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
161
168
|
def get_user_data_with_http_info(id, opts = {})
|
162
|
-
if @api_client.config.debugging
|
163
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.get_user_data ...'
|
164
|
-
end
|
169
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.get_user_data ...' if @api_client.config.debugging
|
165
170
|
# verify the required parameter 'id' is set
|
166
171
|
if @api_client.config.client_side_validation && id.nil?
|
167
|
-
|
172
|
+
raise ArgumentError, "Missing the required parameter 'id' when calling UsersApi.get_user_data"
|
168
173
|
end
|
174
|
+
|
169
175
|
# resource path
|
170
176
|
local_var_path = '/api/v1/user'
|
171
177
|
|
172
178
|
# query parameters
|
173
179
|
query_params = opts[:query_params] || {}
|
174
|
-
query_params[:
|
180
|
+
query_params[:id] = id
|
181
|
+
query_params[:expand] = opts[:expand] unless opts[:expand].nil?
|
175
182
|
|
176
183
|
# header parameters
|
177
184
|
header_params = opts[:header_params] || {}
|
178
185
|
# HTTP header 'Accept' (if needed)
|
179
|
-
header_params['Accept'] =
|
186
|
+
header_params['Accept'] =
|
187
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
180
188
|
|
181
189
|
# form parameters
|
182
190
|
form_params = opts[:form_params] || {}
|
@@ -191,30 +199,30 @@ module KindeApi
|
|
191
199
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
192
200
|
|
193
201
|
new_options = opts.merge(
|
194
|
-
:
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
:
|
199
|
-
|
200
|
-
:
|
202
|
+
operation: :"UsersApi.get_user_data",
|
203
|
+
header_params:,
|
204
|
+
query_params:,
|
205
|
+
form_params:,
|
206
|
+
body: post_body,
|
207
|
+
auth_names:,
|
208
|
+
return_type:
|
201
209
|
)
|
202
210
|
|
203
211
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
204
212
|
if @api_client.config.debugging
|
205
213
|
@api_client.config.logger.debug "API called: UsersApi#get_user_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
206
214
|
end
|
207
|
-
|
215
|
+
[data, status_code, headers]
|
208
216
|
end
|
209
217
|
|
210
218
|
# List Users
|
211
|
-
# The returned list can be sorted by full name or email address 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.
|
219
|
+
# The returned list can be sorted by full name or email address 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.
|
212
220
|
# @param [Hash] opts the optional parameters
|
213
|
-
# @option opts [String] :sort Field and order to sort the result by.
|
214
221
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
215
222
|
# @option opts [String] :user_id ID of the user to filter by.
|
216
223
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
217
224
|
# @option opts [String] :email Filter the results by email address. The query string should be comma separated and url encoded.
|
225
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
|
218
226
|
# @return [UsersResponse]
|
219
227
|
def get_users(opts = {})
|
220
228
|
data, _status_code, _headers = get_users_with_http_info(opts)
|
@@ -222,37 +230,32 @@ module KindeApi
|
|
222
230
|
end
|
223
231
|
|
224
232
|
# List Users
|
225
|
-
# The returned list can be sorted by full name or email address 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.
|
233
|
+
# The returned list can be sorted by full name or email address 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.
|
226
234
|
# @param [Hash] opts the optional parameters
|
227
|
-
# @option opts [String] :sort Field and order to sort the result by.
|
228
235
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
229
236
|
# @option opts [String] :user_id ID of the user to filter by.
|
230
237
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
231
238
|
# @option opts [String] :email Filter the results by email address. The query string should be comma separated and url encoded.
|
239
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
|
232
240
|
# @return [Array<(UsersResponse, Integer, Hash)>] UsersResponse data, response status code and response headers
|
233
241
|
def get_users_with_http_info(opts = {})
|
234
|
-
if @api_client.config.debugging
|
235
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.get_users ...'
|
236
|
-
end
|
237
|
-
allowable_values = ["name_asc", "name_desc", "email_asc", "email_desc"]
|
238
|
-
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
239
|
-
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
240
|
-
end
|
242
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.get_users ...' if @api_client.config.debugging
|
241
243
|
# resource path
|
242
244
|
local_var_path = '/api/v1/users'
|
243
245
|
|
244
246
|
# query parameters
|
245
247
|
query_params = opts[:query_params] || {}
|
246
|
-
query_params[:
|
247
|
-
query_params[:
|
248
|
-
query_params[:
|
249
|
-
query_params[:
|
250
|
-
query_params[:
|
248
|
+
query_params[:page_size] = opts[:page_size] unless opts[:page_size].nil?
|
249
|
+
query_params[:user_id] = opts[:user_id] unless opts[:user_id].nil?
|
250
|
+
query_params[:next_token] = opts[:next_token] unless opts[:next_token].nil?
|
251
|
+
query_params[:email] = opts[:email] unless opts[:email].nil?
|
252
|
+
query_params[:expand] = opts[:expand] unless opts[:expand].nil?
|
251
253
|
|
252
254
|
# header parameters
|
253
255
|
header_params = opts[:header_params] || {}
|
254
256
|
# HTTP header 'Accept' (if needed)
|
255
|
-
header_params['Accept'] =
|
257
|
+
header_params['Accept'] =
|
258
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
256
259
|
|
257
260
|
# form parameters
|
258
261
|
form_params = opts[:form_params] || {}
|
@@ -267,63 +270,128 @@ module KindeApi
|
|
267
270
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
268
271
|
|
269
272
|
new_options = opts.merge(
|
270
|
-
:
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
:
|
275
|
-
|
276
|
-
:
|
273
|
+
operation: :"UsersApi.get_users",
|
274
|
+
header_params:,
|
275
|
+
query_params:,
|
276
|
+
form_params:,
|
277
|
+
body: post_body,
|
278
|
+
auth_names:,
|
279
|
+
return_type:
|
277
280
|
)
|
278
281
|
|
279
282
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
280
283
|
if @api_client.config.debugging
|
281
284
|
@api_client.config.logger.debug "API called: UsersApi#get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
282
285
|
end
|
283
|
-
|
286
|
+
[data, status_code, headers]
|
287
|
+
end
|
288
|
+
|
289
|
+
# Refresh User Claims and Invalidate Cache
|
290
|
+
# Refreshes the user's claims and invalidates the current cache.
|
291
|
+
# @param user_id [String] The id of the user whose claims needs to be updated.
|
292
|
+
# @param [Hash] opts the optional parameters
|
293
|
+
# @return [SuccessResponse]
|
294
|
+
def refresh_user_claims(user_id, opts = {})
|
295
|
+
data, _status_code, _headers = refresh_user_claims_with_http_info(user_id, opts)
|
296
|
+
data
|
297
|
+
end
|
298
|
+
|
299
|
+
# Refresh User Claims and Invalidate Cache
|
300
|
+
# Refreshes the user's claims and invalidates the current cache.
|
301
|
+
# @param user_id [String] The id of the user whose claims needs to be updated.
|
302
|
+
# @param [Hash] opts the optional parameters
|
303
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
304
|
+
def refresh_user_claims_with_http_info(user_id, opts = {})
|
305
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.refresh_user_claims ...' if @api_client.config.debugging
|
306
|
+
# verify the required parameter 'user_id' is set
|
307
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
308
|
+
raise ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.refresh_user_claims"
|
309
|
+
end
|
310
|
+
|
311
|
+
# resource path
|
312
|
+
local_var_path = '/api/v1/users/{user_id}/refresh_claims'.sub('{user_id}', CGI.escape(user_id.to_s))
|
313
|
+
|
314
|
+
# query parameters
|
315
|
+
query_params = opts[:query_params] || {}
|
316
|
+
|
317
|
+
# header parameters
|
318
|
+
header_params = opts[:header_params] || {}
|
319
|
+
# HTTP header 'Accept' (if needed)
|
320
|
+
header_params['Accept'] =
|
321
|
+
@api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
322
|
+
|
323
|
+
# form parameters
|
324
|
+
form_params = opts[:form_params] || {}
|
325
|
+
|
326
|
+
# http body (model)
|
327
|
+
post_body = opts[:debug_body]
|
328
|
+
|
329
|
+
# return_type
|
330
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
331
|
+
|
332
|
+
# auth_names
|
333
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
334
|
+
|
335
|
+
new_options = opts.merge(
|
336
|
+
operation: :"UsersApi.refresh_user_claims",
|
337
|
+
header_params:,
|
338
|
+
query_params:,
|
339
|
+
form_params:,
|
340
|
+
body: post_body,
|
341
|
+
auth_names:,
|
342
|
+
return_type:
|
343
|
+
)
|
344
|
+
|
345
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
346
|
+
if @api_client.config.debugging
|
347
|
+
@api_client.config.logger.debug "API called: UsersApi#refresh_user_claims\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
348
|
+
end
|
349
|
+
[data, status_code, headers]
|
284
350
|
end
|
285
351
|
|
286
352
|
# Update User
|
287
|
-
# Update a user record.
|
353
|
+
# Update a user record.
|
354
|
+
# @param id [String] The user's id.
|
288
355
|
# @param update_user_request [UpdateUserRequest] The user to update.
|
289
356
|
# @param [Hash] opts the optional parameters
|
290
|
-
# @
|
291
|
-
|
292
|
-
|
293
|
-
data, _status_code, _headers = update_user_with_http_info(update_user_request, opts)
|
357
|
+
# @return [UpdateUserResponse]
|
358
|
+
def update_user(id, update_user_request, opts = {})
|
359
|
+
data, _status_code, _headers = update_user_with_http_info(id, update_user_request, opts)
|
294
360
|
data
|
295
361
|
end
|
296
362
|
|
297
363
|
# Update User
|
298
|
-
# Update a user record.
|
364
|
+
# Update a user record.
|
365
|
+
# @param id [String] The user's id.
|
299
366
|
# @param update_user_request [UpdateUserRequest] The user to update.
|
300
367
|
# @param [Hash] opts the optional parameters
|
301
|
-
# @
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
368
|
+
# @return [Array<(UpdateUserResponse, Integer, Hash)>] UpdateUserResponse data, response status code and response headers
|
369
|
+
def update_user_with_http_info(id, update_user_request, opts = {})
|
370
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.update_user ...' if @api_client.config.debugging
|
371
|
+
# verify the required parameter 'id' is set
|
372
|
+
if @api_client.config.client_side_validation && id.nil?
|
373
|
+
raise ArgumentError, "Missing the required parameter 'id' when calling UsersApi.update_user"
|
306
374
|
end
|
307
375
|
# verify the required parameter 'update_user_request' is set
|
308
376
|
if @api_client.config.client_side_validation && update_user_request.nil?
|
309
|
-
|
377
|
+
raise ArgumentError, "Missing the required parameter 'update_user_request' when calling UsersApi.update_user"
|
310
378
|
end
|
379
|
+
|
311
380
|
# resource path
|
312
381
|
local_var_path = '/api/v1/user'
|
313
382
|
|
314
383
|
# query parameters
|
315
384
|
query_params = opts[:query_params] || {}
|
316
|
-
query_params[:
|
385
|
+
query_params[:id] = id
|
317
386
|
|
318
387
|
# header parameters
|
319
388
|
header_params = opts[:header_params] || {}
|
320
389
|
# HTTP header 'Accept' (if needed)
|
321
|
-
header_params['Accept'] =
|
390
|
+
header_params['Accept'] =
|
391
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
322
392
|
# HTTP header 'Content-Type'
|
323
393
|
content_type = @api_client.select_header_content_type(['application/json'])
|
324
|
-
|
325
|
-
header_params['Content-Type'] = content_type
|
326
|
-
end
|
394
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
327
395
|
|
328
396
|
# form parameters
|
329
397
|
form_params = opts[:form_params] || {}
|
@@ -332,26 +400,110 @@ module KindeApi
|
|
332
400
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_user_request)
|
333
401
|
|
334
402
|
# return_type
|
335
|
-
return_type = opts[:debug_return_type] || '
|
403
|
+
return_type = opts[:debug_return_type] || 'UpdateUserResponse'
|
336
404
|
|
337
405
|
# auth_names
|
338
406
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
339
407
|
|
340
408
|
new_options = opts.merge(
|
341
|
-
:
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
:
|
346
|
-
|
347
|
-
:
|
409
|
+
operation: :"UsersApi.update_user",
|
410
|
+
header_params:,
|
411
|
+
query_params:,
|
412
|
+
form_params:,
|
413
|
+
body: post_body,
|
414
|
+
auth_names:,
|
415
|
+
return_type:
|
348
416
|
)
|
349
417
|
|
350
418
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
351
419
|
if @api_client.config.debugging
|
352
420
|
@api_client.config.logger.debug "API called: UsersApi#update_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
353
421
|
end
|
354
|
-
|
422
|
+
[data, status_code, headers]
|
423
|
+
end
|
424
|
+
|
425
|
+
# Update User Feature Flag Override
|
426
|
+
# Update user feature flag override.
|
427
|
+
# @param user_id [String] The identifier for the user
|
428
|
+
# @param feature_flag_key [String] The identifier for the feature flag
|
429
|
+
# @param value [String] Override value
|
430
|
+
# @param [Hash] opts the optional parameters
|
431
|
+
# @return [SuccessResponse]
|
432
|
+
def update_user_feature_flag_override(user_id, feature_flag_key, value, opts = {})
|
433
|
+
data, _status_code, _headers = update_user_feature_flag_override_with_http_info(user_id, feature_flag_key, value,
|
434
|
+
opts)
|
435
|
+
data
|
436
|
+
end
|
437
|
+
|
438
|
+
# Update User Feature Flag Override
|
439
|
+
# Update user feature flag override.
|
440
|
+
# @param user_id [String] The identifier for the user
|
441
|
+
# @param feature_flag_key [String] The identifier for the feature flag
|
442
|
+
# @param value [String] Override value
|
443
|
+
# @param [Hash] opts the optional parameters
|
444
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
445
|
+
def update_user_feature_flag_override_with_http_info(user_id, feature_flag_key, value, opts = {})
|
446
|
+
if @api_client.config.debugging
|
447
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.update_user_feature_flag_override ...'
|
448
|
+
end
|
449
|
+
# verify the required parameter 'user_id' is set
|
450
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
451
|
+
raise ArgumentError,
|
452
|
+
"Missing the required parameter 'user_id' when calling UsersApi.update_user_feature_flag_override"
|
453
|
+
end
|
454
|
+
# verify the required parameter 'feature_flag_key' is set
|
455
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
456
|
+
raise ArgumentError,
|
457
|
+
"Missing the required parameter 'feature_flag_key' when calling UsersApi.update_user_feature_flag_override"
|
458
|
+
end
|
459
|
+
# verify the required parameter 'value' is set
|
460
|
+
if @api_client.config.client_side_validation && value.nil?
|
461
|
+
raise ArgumentError,
|
462
|
+
"Missing the required parameter 'value' when calling UsersApi.update_user_feature_flag_override"
|
463
|
+
end
|
464
|
+
|
465
|
+
# resource path
|
466
|
+
local_var_path = '/api/v1/users/{user_id}/feature_flags/{feature_flag_key}'.sub('{user_id}', CGI.escape(user_id.to_s)).sub(
|
467
|
+
'{feature_flag_key}', CGI.escape(feature_flag_key.to_s)
|
468
|
+
)
|
469
|
+
|
470
|
+
# query parameters
|
471
|
+
query_params = opts[:query_params] || {}
|
472
|
+
query_params[:value] = value
|
473
|
+
|
474
|
+
# header parameters
|
475
|
+
header_params = opts[:header_params] || {}
|
476
|
+
# HTTP header 'Accept' (if needed)
|
477
|
+
header_params['Accept'] =
|
478
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
479
|
+
|
480
|
+
# form parameters
|
481
|
+
form_params = opts[:form_params] || {}
|
482
|
+
|
483
|
+
# http body (model)
|
484
|
+
post_body = opts[:debug_body]
|
485
|
+
|
486
|
+
# return_type
|
487
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
488
|
+
|
489
|
+
# auth_names
|
490
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
491
|
+
|
492
|
+
new_options = opts.merge(
|
493
|
+
operation: :"UsersApi.update_user_feature_flag_override",
|
494
|
+
header_params:,
|
495
|
+
query_params:,
|
496
|
+
form_params:,
|
497
|
+
body: post_body,
|
498
|
+
auth_names:,
|
499
|
+
return_type:
|
500
|
+
)
|
501
|
+
|
502
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
503
|
+
if @api_client.config.debugging
|
504
|
+
@api_client.config.logger.debug "API called: UsersApi#update_user_feature_flag_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
505
|
+
end
|
506
|
+
[data, status_code, headers]
|
355
507
|
end
|
356
508
|
end
|
357
509
|
end
|