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,11 +19,12 @@ module KindeApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
|
22
23
|
# Add Organization Users
|
23
24
|
# Add existing users to an organization.
|
24
25
|
# @param org_code [String] The organization's code.
|
25
26
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [AddOrganizationUsersRequest] :add_organization_users_request
|
27
|
+
# @option opts [AddOrganizationUsersRequest] :add_organization_users_request
|
27
28
|
# @return [AddOrganizationUsersResponse]
|
28
29
|
def add_organization_users(org_code, opts = {})
|
29
30
|
data, _status_code, _headers = add_organization_users_with_http_info(org_code, opts)
|
@@ -34,7 +35,7 @@ module KindeApi
|
|
34
35
|
# Add existing users to an organization.
|
35
36
|
# @param org_code [String] The organization's code.
|
36
37
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @option opts [AddOrganizationUsersRequest] :add_organization_users_request
|
38
|
+
# @option opts [AddOrganizationUsersRequest] :add_organization_users_request
|
38
39
|
# @return [Array<(AddOrganizationUsersResponse, Integer, Hash)>] AddOrganizationUsersResponse data, response status code and response headers
|
39
40
|
def add_organization_users_with_http_info(org_code, opts = {})
|
40
41
|
if @api_client.config.debugging
|
@@ -42,10 +43,12 @@ module KindeApi
|
|
42
43
|
end
|
43
44
|
# verify the required parameter 'org_code' is set
|
44
45
|
if @api_client.config.client_side_validation && org_code.nil?
|
45
|
-
|
46
|
+
raise ArgumentError,
|
47
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.add_organization_users"
|
46
48
|
end
|
49
|
+
|
47
50
|
# resource path
|
48
|
-
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{
|
51
|
+
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{org_code}', CGI.escape(org_code.to_s))
|
49
52
|
|
50
53
|
# query parameters
|
51
54
|
query_params = opts[:query_params] || {}
|
@@ -53,18 +56,17 @@ module KindeApi
|
|
53
56
|
# header parameters
|
54
57
|
header_params = opts[:header_params] || {}
|
55
58
|
# HTTP header 'Accept' (if needed)
|
56
|
-
header_params['Accept'] =
|
59
|
+
header_params['Accept'] =
|
60
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
57
61
|
# HTTP header 'Content-Type'
|
58
62
|
content_type = @api_client.select_header_content_type(['application/json'])
|
59
|
-
|
60
|
-
header_params['Content-Type'] = content_type
|
61
|
-
end
|
63
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
62
64
|
|
63
65
|
# form parameters
|
64
66
|
form_params = opts[:form_params] || {}
|
65
67
|
|
66
68
|
# http body (model)
|
67
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:
|
69
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:add_organization_users_request])
|
68
70
|
|
69
71
|
# return_type
|
70
72
|
return_type = opts[:debug_return_type] || 'AddOrganizationUsersResponse'
|
@@ -73,41 +75,47 @@ module KindeApi
|
|
73
75
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
74
76
|
|
75
77
|
new_options = opts.merge(
|
76
|
-
:
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
:
|
81
|
-
|
82
|
-
:
|
78
|
+
operation: :"OrganizationsApi.add_organization_users",
|
79
|
+
header_params:,
|
80
|
+
query_params:,
|
81
|
+
form_params:,
|
82
|
+
body: post_body,
|
83
|
+
auth_names:,
|
84
|
+
return_type:
|
83
85
|
)
|
84
86
|
|
85
87
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
88
|
if @api_client.config.debugging
|
87
89
|
@api_client.config.logger.debug "API called: OrganizationsApi#add_organization_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
90
|
end
|
89
|
-
|
91
|
+
[data, status_code, headers]
|
90
92
|
end
|
91
93
|
|
92
94
|
# Create Organization
|
93
95
|
# Create an organization.
|
96
|
+
# @param create_organization_request [CreateOrganizationRequest] Organization details.
|
94
97
|
# @param [Hash] opts the optional parameters
|
95
|
-
# @option opts [CreateOrganizationRequest] :create_organization_request Organization details.
|
96
98
|
# @return [CreateOrganizationResponse]
|
97
|
-
def create_organization(opts = {})
|
98
|
-
data, _status_code, _headers = create_organization_with_http_info(opts)
|
99
|
+
def create_organization(create_organization_request, opts = {})
|
100
|
+
data, _status_code, _headers = create_organization_with_http_info(create_organization_request, opts)
|
99
101
|
data
|
100
102
|
end
|
101
103
|
|
102
104
|
# Create Organization
|
103
105
|
# Create an organization.
|
106
|
+
# @param create_organization_request [CreateOrganizationRequest] Organization details.
|
104
107
|
# @param [Hash] opts the optional parameters
|
105
|
-
# @option opts [CreateOrganizationRequest] :create_organization_request Organization details.
|
106
108
|
# @return [Array<(CreateOrganizationResponse, Integer, Hash)>] CreateOrganizationResponse data, response status code and response headers
|
107
|
-
def create_organization_with_http_info(opts = {})
|
109
|
+
def create_organization_with_http_info(create_organization_request, opts = {})
|
108
110
|
if @api_client.config.debugging
|
109
111
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization ...'
|
110
112
|
end
|
113
|
+
# verify the required parameter 'create_organization_request' is set
|
114
|
+
if @api_client.config.client_side_validation && create_organization_request.nil?
|
115
|
+
raise ArgumentError,
|
116
|
+
"Missing the required parameter 'create_organization_request' when calling OrganizationsApi.create_organization"
|
117
|
+
end
|
118
|
+
|
111
119
|
# resource path
|
112
120
|
local_var_path = '/api/v1/organization'
|
113
121
|
|
@@ -117,18 +125,17 @@ module KindeApi
|
|
117
125
|
# header parameters
|
118
126
|
header_params = opts[:header_params] || {}
|
119
127
|
# HTTP header 'Accept' (if needed)
|
120
|
-
header_params['Accept'] =
|
128
|
+
header_params['Accept'] =
|
129
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
121
130
|
# HTTP header 'Content-Type'
|
122
131
|
content_type = @api_client.select_header_content_type(['application/json'])
|
123
|
-
|
124
|
-
header_params['Content-Type'] = content_type
|
125
|
-
end
|
132
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
126
133
|
|
127
134
|
# form parameters
|
128
135
|
form_params = opts[:form_params] || {}
|
129
136
|
|
130
137
|
# http body (model)
|
131
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
138
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_organization_request)
|
132
139
|
|
133
140
|
# return_type
|
134
141
|
return_type = opts[:debug_return_type] || 'CreateOrganizationResponse'
|
@@ -137,20 +144,107 @@ module KindeApi
|
|
137
144
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
138
145
|
|
139
146
|
new_options = opts.merge(
|
140
|
-
:
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
:
|
145
|
-
|
146
|
-
:
|
147
|
+
operation: :"OrganizationsApi.create_organization",
|
148
|
+
header_params:,
|
149
|
+
query_params:,
|
150
|
+
form_params:,
|
151
|
+
body: post_body,
|
152
|
+
auth_names:,
|
153
|
+
return_type:
|
147
154
|
)
|
148
155
|
|
149
156
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
150
157
|
if @api_client.config.debugging
|
151
158
|
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
152
159
|
end
|
153
|
-
|
160
|
+
[data, status_code, headers]
|
161
|
+
end
|
162
|
+
|
163
|
+
# Add Organization User Permission
|
164
|
+
# Add permission to an organization user.
|
165
|
+
# @param org_code [String] The organization's code.
|
166
|
+
# @param user_id [String] The user's id.
|
167
|
+
# @param create_organization_user_permission_request [CreateOrganizationUserPermissionRequest] Permission details.
|
168
|
+
# @param [Hash] opts the optional parameters
|
169
|
+
# @return [SuccessResponse]
|
170
|
+
def create_organization_user_permission(org_code, user_id, create_organization_user_permission_request, opts = {})
|
171
|
+
data, _status_code, _headers = create_organization_user_permission_with_http_info(org_code, user_id,
|
172
|
+
create_organization_user_permission_request, opts)
|
173
|
+
data
|
174
|
+
end
|
175
|
+
|
176
|
+
# Add Organization User Permission
|
177
|
+
# Add permission to an organization user.
|
178
|
+
# @param org_code [String] The organization's code.
|
179
|
+
# @param user_id [String] The user's id.
|
180
|
+
# @param create_organization_user_permission_request [CreateOrganizationUserPermissionRequest] Permission details.
|
181
|
+
# @param [Hash] opts the optional parameters
|
182
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
183
|
+
def create_organization_user_permission_with_http_info(org_code, user_id,
|
184
|
+
create_organization_user_permission_request, opts = {})
|
185
|
+
if @api_client.config.debugging
|
186
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_user_permission ...'
|
187
|
+
end
|
188
|
+
# verify the required parameter 'org_code' is set
|
189
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
190
|
+
raise ArgumentError,
|
191
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.create_organization_user_permission"
|
192
|
+
end
|
193
|
+
# verify the required parameter 'user_id' is set
|
194
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
195
|
+
raise ArgumentError,
|
196
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.create_organization_user_permission"
|
197
|
+
end
|
198
|
+
# verify the required parameter 'create_organization_user_permission_request' is set
|
199
|
+
if @api_client.config.client_side_validation && create_organization_user_permission_request.nil?
|
200
|
+
raise ArgumentError,
|
201
|
+
"Missing the required parameter 'create_organization_user_permission_request' when calling OrganizationsApi.create_organization_user_permission"
|
202
|
+
end
|
203
|
+
|
204
|
+
# resource path
|
205
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
206
|
+
'{user_id}', CGI.escape(user_id.to_s)
|
207
|
+
)
|
208
|
+
|
209
|
+
# query parameters
|
210
|
+
query_params = opts[:query_params] || {}
|
211
|
+
|
212
|
+
# header parameters
|
213
|
+
header_params = opts[:header_params] || {}
|
214
|
+
# HTTP header 'Accept' (if needed)
|
215
|
+
header_params['Accept'] =
|
216
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
217
|
+
# HTTP header 'Content-Type'
|
218
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
219
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
220
|
+
|
221
|
+
# form parameters
|
222
|
+
form_params = opts[:form_params] || {}
|
223
|
+
|
224
|
+
# http body (model)
|
225
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_organization_user_permission_request)
|
226
|
+
|
227
|
+
# return_type
|
228
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
229
|
+
|
230
|
+
# auth_names
|
231
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
232
|
+
|
233
|
+
new_options = opts.merge(
|
234
|
+
operation: :"OrganizationsApi.create_organization_user_permission",
|
235
|
+
header_params:,
|
236
|
+
query_params:,
|
237
|
+
form_params:,
|
238
|
+
body: post_body,
|
239
|
+
auth_names:,
|
240
|
+
return_type:
|
241
|
+
)
|
242
|
+
|
243
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
244
|
+
if @api_client.config.debugging
|
245
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_user_permission\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
246
|
+
end
|
247
|
+
[data, status_code, headers]
|
154
248
|
end
|
155
249
|
|
156
250
|
# Add Organization User Role
|
@@ -161,7 +255,8 @@ module KindeApi
|
|
161
255
|
# @param [Hash] opts the optional parameters
|
162
256
|
# @return [SuccessResponse]
|
163
257
|
def create_organization_user_role(org_code, user_id, create_organization_user_role_request, opts = {})
|
164
|
-
data, _status_code, _headers = create_organization_user_role_with_http_info(org_code, user_id,
|
258
|
+
data, _status_code, _headers = create_organization_user_role_with_http_info(org_code, user_id,
|
259
|
+
create_organization_user_role_request, opts)
|
165
260
|
data
|
166
261
|
end
|
167
262
|
|
@@ -172,24 +267,31 @@ module KindeApi
|
|
172
267
|
# @param create_organization_user_role_request [CreateOrganizationUserRoleRequest] Role details.
|
173
268
|
# @param [Hash] opts the optional parameters
|
174
269
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
175
|
-
def create_organization_user_role_with_http_info(org_code, user_id, create_organization_user_role_request,
|
270
|
+
def create_organization_user_role_with_http_info(org_code, user_id, create_organization_user_role_request,
|
271
|
+
opts = {})
|
176
272
|
if @api_client.config.debugging
|
177
273
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_user_role ...'
|
178
274
|
end
|
179
275
|
# verify the required parameter 'org_code' is set
|
180
276
|
if @api_client.config.client_side_validation && org_code.nil?
|
181
|
-
|
277
|
+
raise ArgumentError,
|
278
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.create_organization_user_role"
|
182
279
|
end
|
183
280
|
# verify the required parameter 'user_id' is set
|
184
281
|
if @api_client.config.client_side_validation && user_id.nil?
|
185
|
-
|
282
|
+
raise ArgumentError,
|
283
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.create_organization_user_role"
|
186
284
|
end
|
187
285
|
# verify the required parameter 'create_organization_user_role_request' is set
|
188
286
|
if @api_client.config.client_side_validation && create_organization_user_role_request.nil?
|
189
|
-
|
287
|
+
raise ArgumentError,
|
288
|
+
"Missing the required parameter 'create_organization_user_role_request' when calling OrganizationsApi.create_organization_user_role"
|
190
289
|
end
|
290
|
+
|
191
291
|
# resource path
|
192
|
-
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles'.sub('{
|
292
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
293
|
+
'{user_id}', CGI.escape(user_id.to_s)
|
294
|
+
)
|
193
295
|
|
194
296
|
# query parameters
|
195
297
|
query_params = opts[:query_params] || {}
|
@@ -197,12 +299,11 @@ module KindeApi
|
|
197
299
|
# header parameters
|
198
300
|
header_params = opts[:header_params] || {}
|
199
301
|
# HTTP header 'Accept' (if needed)
|
200
|
-
header_params['Accept'] =
|
302
|
+
header_params['Accept'] =
|
303
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
201
304
|
# HTTP header 'Content-Type'
|
202
305
|
content_type = @api_client.select_header_content_type(['application/json'])
|
203
|
-
|
204
|
-
header_params['Content-Type'] = content_type
|
205
|
-
end
|
306
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
206
307
|
|
207
308
|
# form parameters
|
208
309
|
form_params = opts[:form_params] || {}
|
@@ -217,34 +318,101 @@ module KindeApi
|
|
217
318
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
218
319
|
|
219
320
|
new_options = opts.merge(
|
220
|
-
:
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
:
|
225
|
-
|
226
|
-
:
|
321
|
+
operation: :"OrganizationsApi.create_organization_user_role",
|
322
|
+
header_params:,
|
323
|
+
query_params:,
|
324
|
+
form_params:,
|
325
|
+
body: post_body,
|
326
|
+
auth_names:,
|
327
|
+
return_type:
|
227
328
|
)
|
228
329
|
|
229
330
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
230
331
|
if @api_client.config.debugging
|
231
332
|
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_user_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
232
333
|
end
|
233
|
-
|
334
|
+
[data, status_code, headers]
|
335
|
+
end
|
336
|
+
|
337
|
+
# Delete Organization
|
338
|
+
# Delete an organization.
|
339
|
+
# @param org_code [String] The identifier for the organization.
|
340
|
+
# @param [Hash] opts the optional parameters
|
341
|
+
# @return [nil]
|
342
|
+
def delete_organization(org_code, opts = {})
|
343
|
+
delete_organization_with_http_info(org_code, opts)
|
344
|
+
nil
|
345
|
+
end
|
346
|
+
|
347
|
+
# Delete Organization
|
348
|
+
# Delete an organization.
|
349
|
+
# @param org_code [String] The identifier for the organization.
|
350
|
+
# @param [Hash] opts the optional parameters
|
351
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
352
|
+
def delete_organization_with_http_info(org_code, opts = {})
|
353
|
+
if @api_client.config.debugging
|
354
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization ...'
|
355
|
+
end
|
356
|
+
# verify the required parameter 'org_code' is set
|
357
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
358
|
+
raise ArgumentError,
|
359
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization"
|
360
|
+
end
|
361
|
+
|
362
|
+
# resource path
|
363
|
+
local_var_path = '/api/v1/organization/{org_code}'.sub('{org_code}', CGI.escape(org_code.to_s))
|
364
|
+
|
365
|
+
# query parameters
|
366
|
+
query_params = opts[:query_params] || {}
|
367
|
+
|
368
|
+
# header parameters
|
369
|
+
header_params = opts[:header_params] || {}
|
370
|
+
# HTTP header 'Accept' (if needed)
|
371
|
+
header_params['Accept'] =
|
372
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
373
|
+
|
374
|
+
# form parameters
|
375
|
+
form_params = opts[:form_params] || {}
|
376
|
+
|
377
|
+
# http body (model)
|
378
|
+
post_body = opts[:debug_body]
|
379
|
+
|
380
|
+
# return_type
|
381
|
+
return_type = opts[:debug_return_type]
|
382
|
+
|
383
|
+
# auth_names
|
384
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
385
|
+
|
386
|
+
new_options = opts.merge(
|
387
|
+
operation: :"OrganizationsApi.delete_organization",
|
388
|
+
header_params:,
|
389
|
+
query_params:,
|
390
|
+
form_params:,
|
391
|
+
body: post_body,
|
392
|
+
auth_names:,
|
393
|
+
return_type:
|
394
|
+
)
|
395
|
+
|
396
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
397
|
+
if @api_client.config.debugging
|
398
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
399
|
+
end
|
400
|
+
[data, status_code, headers]
|
234
401
|
end
|
235
402
|
|
236
|
-
# Delete
|
403
|
+
# Delete Organization Feature Flag Override
|
237
404
|
# Delete organization feature flag override.
|
238
405
|
# @param org_code [String] The identifier for the organization.
|
239
406
|
# @param feature_flag_key [String] The identifier for the feature flag.
|
240
407
|
# @param [Hash] opts the optional parameters
|
241
408
|
# @return [SuccessResponse]
|
242
409
|
def delete_organization_feature_flag_override(org_code, feature_flag_key, opts = {})
|
243
|
-
data, _status_code, _headers = delete_organization_feature_flag_override_with_http_info(org_code,
|
410
|
+
data, _status_code, _headers = delete_organization_feature_flag_override_with_http_info(org_code,
|
411
|
+
feature_flag_key, opts)
|
244
412
|
data
|
245
413
|
end
|
246
414
|
|
247
|
-
# Delete
|
415
|
+
# Delete Organization Feature Flag Override
|
248
416
|
# Delete organization feature flag override.
|
249
417
|
# @param org_code [String] The identifier for the organization.
|
250
418
|
# @param feature_flag_key [String] The identifier for the feature flag.
|
@@ -256,14 +424,19 @@ module KindeApi
|
|
256
424
|
end
|
257
425
|
# verify the required parameter 'org_code' is set
|
258
426
|
if @api_client.config.client_side_validation && org_code.nil?
|
259
|
-
|
427
|
+
raise ArgumentError,
|
428
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_feature_flag_override"
|
260
429
|
end
|
261
430
|
# verify the required parameter 'feature_flag_key' is set
|
262
431
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
263
|
-
|
432
|
+
raise ArgumentError,
|
433
|
+
"Missing the required parameter 'feature_flag_key' when calling OrganizationsApi.delete_organization_feature_flag_override"
|
264
434
|
end
|
435
|
+
|
265
436
|
# resource path
|
266
|
-
local_var_path = '/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}'.sub('{
|
437
|
+
local_var_path = '/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
438
|
+
'{feature_flag_key}', CGI.escape(feature_flag_key.to_s)
|
439
|
+
)
|
267
440
|
|
268
441
|
# query parameters
|
269
442
|
query_params = opts[:query_params] || {}
|
@@ -271,7 +444,8 @@ module KindeApi
|
|
271
444
|
# header parameters
|
272
445
|
header_params = opts[:header_params] || {}
|
273
446
|
# HTTP header 'Accept' (if needed)
|
274
|
-
header_params['Accept'] =
|
447
|
+
header_params['Accept'] =
|
448
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
275
449
|
|
276
450
|
# form parameters
|
277
451
|
form_params = opts[:form_params] || {}
|
@@ -286,23 +460,23 @@ module KindeApi
|
|
286
460
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
287
461
|
|
288
462
|
new_options = opts.merge(
|
289
|
-
:
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
:
|
294
|
-
|
295
|
-
:
|
463
|
+
operation: :"OrganizationsApi.delete_organization_feature_flag_override",
|
464
|
+
header_params:,
|
465
|
+
query_params:,
|
466
|
+
form_params:,
|
467
|
+
body: post_body,
|
468
|
+
auth_names:,
|
469
|
+
return_type:
|
296
470
|
)
|
297
471
|
|
298
472
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
299
473
|
if @api_client.config.debugging
|
300
474
|
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_feature_flag_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
301
475
|
end
|
302
|
-
|
476
|
+
[data, status_code, headers]
|
303
477
|
end
|
304
478
|
|
305
|
-
# Delete
|
479
|
+
# Delete Organization Feature Flag Overrides
|
306
480
|
# Delete all organization feature flag overrides.
|
307
481
|
# @param org_code [String] The identifier for the organization.
|
308
482
|
# @param [Hash] opts the optional parameters
|
@@ -312,7 +486,7 @@ module KindeApi
|
|
312
486
|
data
|
313
487
|
end
|
314
488
|
|
315
|
-
# Delete
|
489
|
+
# Delete Organization Feature Flag Overrides
|
316
490
|
# Delete all organization feature flag overrides.
|
317
491
|
# @param org_code [String] The identifier for the organization.
|
318
492
|
# @param [Hash] opts the optional parameters
|
@@ -323,10 +497,13 @@ module KindeApi
|
|
323
497
|
end
|
324
498
|
# verify the required parameter 'org_code' is set
|
325
499
|
if @api_client.config.client_side_validation && org_code.nil?
|
326
|
-
|
500
|
+
raise ArgumentError,
|
501
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_feature_flag_overrides"
|
327
502
|
end
|
503
|
+
|
328
504
|
# resource path
|
329
|
-
local_var_path = '/api/v1/organizations/{org_code}/feature_flags'.sub('{
|
505
|
+
local_var_path = '/api/v1/organizations/{org_code}/feature_flags'.sub('{org_code}',
|
506
|
+
CGI.escape(org_code.to_s))
|
330
507
|
|
331
508
|
# query parameters
|
332
509
|
query_params = opts[:query_params] || {}
|
@@ -334,7 +511,8 @@ module KindeApi
|
|
334
511
|
# header parameters
|
335
512
|
header_params = opts[:header_params] || {}
|
336
513
|
# HTTP header 'Accept' (if needed)
|
337
|
-
header_params['Accept'] =
|
514
|
+
header_params['Accept'] =
|
515
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
338
516
|
|
339
517
|
# form parameters
|
340
518
|
form_params = opts[:form_params] || {}
|
@@ -349,20 +527,103 @@ module KindeApi
|
|
349
527
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
350
528
|
|
351
529
|
new_options = opts.merge(
|
352
|
-
:
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
:
|
357
|
-
|
358
|
-
:
|
530
|
+
operation: :"OrganizationsApi.delete_organization_feature_flag_overrides",
|
531
|
+
header_params:,
|
532
|
+
query_params:,
|
533
|
+
form_params:,
|
534
|
+
body: post_body,
|
535
|
+
auth_names:,
|
536
|
+
return_type:
|
359
537
|
)
|
360
538
|
|
361
539
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
362
540
|
if @api_client.config.debugging
|
363
541
|
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_feature_flag_overrides\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
364
542
|
end
|
365
|
-
|
543
|
+
[data, status_code, headers]
|
544
|
+
end
|
545
|
+
|
546
|
+
# Delete Organization User Permission
|
547
|
+
# Delete permission for an organization user.
|
548
|
+
# @param org_code [String] The organization's code.
|
549
|
+
# @param user_id [String] The user's id.
|
550
|
+
# @param permission_id [String] The permission id.
|
551
|
+
# @param [Hash] opts the optional parameters
|
552
|
+
# @return [SuccessResponse]
|
553
|
+
def delete_organization_user_permission(org_code, user_id, permission_id, opts = {})
|
554
|
+
data, _status_code, _headers = delete_organization_user_permission_with_http_info(org_code, user_id,
|
555
|
+
permission_id, opts)
|
556
|
+
data
|
557
|
+
end
|
558
|
+
|
559
|
+
# Delete Organization User Permission
|
560
|
+
# Delete permission for an organization user.
|
561
|
+
# @param org_code [String] The organization's code.
|
562
|
+
# @param user_id [String] The user's id.
|
563
|
+
# @param permission_id [String] The permission id.
|
564
|
+
# @param [Hash] opts the optional parameters
|
565
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
566
|
+
def delete_organization_user_permission_with_http_info(org_code, user_id, permission_id, opts = {})
|
567
|
+
if @api_client.config.debugging
|
568
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_user_permission ...'
|
569
|
+
end
|
570
|
+
# verify the required parameter 'org_code' is set
|
571
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
572
|
+
raise ArgumentError,
|
573
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_user_permission"
|
574
|
+
end
|
575
|
+
# verify the required parameter 'user_id' is set
|
576
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
577
|
+
raise ArgumentError,
|
578
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.delete_organization_user_permission"
|
579
|
+
end
|
580
|
+
# verify the required parameter 'permission_id' is set
|
581
|
+
if @api_client.config.client_side_validation && permission_id.nil?
|
582
|
+
raise ArgumentError,
|
583
|
+
"Missing the required parameter 'permission_id' when calling OrganizationsApi.delete_organization_user_permission"
|
584
|
+
end
|
585
|
+
|
586
|
+
# resource path
|
587
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions/{permission_id}'.sub('{org_code}', CGI.escape(org_code.to_s)).sub('{user_id}', CGI.escape(user_id.to_s)).sub(
|
588
|
+
'{permission_id}', CGI.escape(permission_id.to_s)
|
589
|
+
)
|
590
|
+
|
591
|
+
# query parameters
|
592
|
+
query_params = opts[:query_params] || {}
|
593
|
+
|
594
|
+
# header parameters
|
595
|
+
header_params = opts[:header_params] || {}
|
596
|
+
# HTTP header 'Accept' (if needed)
|
597
|
+
header_params['Accept'] =
|
598
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
599
|
+
|
600
|
+
# form parameters
|
601
|
+
form_params = opts[:form_params] || {}
|
602
|
+
|
603
|
+
# http body (model)
|
604
|
+
post_body = opts[:debug_body]
|
605
|
+
|
606
|
+
# return_type
|
607
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
608
|
+
|
609
|
+
# auth_names
|
610
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
611
|
+
|
612
|
+
new_options = opts.merge(
|
613
|
+
operation: :"OrganizationsApi.delete_organization_user_permission",
|
614
|
+
header_params:,
|
615
|
+
query_params:,
|
616
|
+
form_params:,
|
617
|
+
body: post_body,
|
618
|
+
auth_names:,
|
619
|
+
return_type:
|
620
|
+
)
|
621
|
+
|
622
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
623
|
+
if @api_client.config.debugging
|
624
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_user_permission\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
625
|
+
end
|
626
|
+
[data, status_code, headers]
|
366
627
|
end
|
367
628
|
|
368
629
|
# Delete Organization User Role
|
@@ -390,18 +651,24 @@ module KindeApi
|
|
390
651
|
end
|
391
652
|
# verify the required parameter 'org_code' is set
|
392
653
|
if @api_client.config.client_side_validation && org_code.nil?
|
393
|
-
|
654
|
+
raise ArgumentError,
|
655
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_user_role"
|
394
656
|
end
|
395
657
|
# verify the required parameter 'user_id' is set
|
396
658
|
if @api_client.config.client_side_validation && user_id.nil?
|
397
|
-
|
659
|
+
raise ArgumentError,
|
660
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.delete_organization_user_role"
|
398
661
|
end
|
399
662
|
# verify the required parameter 'role_id' is set
|
400
663
|
if @api_client.config.client_side_validation && role_id.nil?
|
401
|
-
|
664
|
+
raise ArgumentError,
|
665
|
+
"Missing the required parameter 'role_id' when calling OrganizationsApi.delete_organization_user_role"
|
402
666
|
end
|
667
|
+
|
403
668
|
# resource path
|
404
|
-
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles/{role_id}'.sub('{
|
669
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles/{role_id}'.sub('{org_code}', CGI.escape(org_code.to_s)).sub('{user_id}', CGI.escape(user_id.to_s)).sub(
|
670
|
+
'{role_id}', CGI.escape(role_id.to_s)
|
671
|
+
)
|
405
672
|
|
406
673
|
# query parameters
|
407
674
|
query_params = opts[:query_params] || {}
|
@@ -409,7 +676,8 @@ module KindeApi
|
|
409
676
|
# header parameters
|
410
677
|
header_params = opts[:header_params] || {}
|
411
678
|
# HTTP header 'Accept' (if needed)
|
412
|
-
header_params['Accept'] =
|
679
|
+
header_params['Accept'] =
|
680
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
413
681
|
|
414
682
|
# form parameters
|
415
683
|
form_params = opts[:form_params] || {}
|
@@ -424,24 +692,24 @@ module KindeApi
|
|
424
692
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
425
693
|
|
426
694
|
new_options = opts.merge(
|
427
|
-
:
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
:
|
432
|
-
|
433
|
-
:
|
695
|
+
operation: :"OrganizationsApi.delete_organization_user_role",
|
696
|
+
header_params:,
|
697
|
+
query_params:,
|
698
|
+
form_params:,
|
699
|
+
body: post_body,
|
700
|
+
auth_names:,
|
701
|
+
return_type:
|
434
702
|
)
|
435
703
|
|
436
704
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
437
705
|
if @api_client.config.debugging
|
438
706
|
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_user_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
439
707
|
end
|
440
|
-
|
708
|
+
[data, status_code, headers]
|
441
709
|
end
|
442
710
|
|
443
711
|
# Get Organization
|
444
|
-
# Gets an organization given the organization's code.
|
712
|
+
# Gets an organization given the organization's code.
|
445
713
|
# @param [Hash] opts the optional parameters
|
446
714
|
# @option opts [String] :code The organization's code.
|
447
715
|
# @return [Organization]
|
@@ -451,7 +719,7 @@ module KindeApi
|
|
451
719
|
end
|
452
720
|
|
453
721
|
# Get Organization
|
454
|
-
# Gets an organization given the organization's code.
|
722
|
+
# Gets an organization given the organization's code.
|
455
723
|
# @param [Hash] opts the optional parameters
|
456
724
|
# @option opts [String] :code The organization's code.
|
457
725
|
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
@@ -464,12 +732,13 @@ module KindeApi
|
|
464
732
|
|
465
733
|
# query parameters
|
466
734
|
query_params = opts[:query_params] || {}
|
467
|
-
query_params[:
|
735
|
+
query_params[:code] = opts[:code] unless opts[:code].nil?
|
468
736
|
|
469
737
|
# header parameters
|
470
738
|
header_params = opts[:header_params] || {}
|
471
739
|
# HTTP header 'Accept' (if needed)
|
472
|
-
header_params['Accept'] =
|
740
|
+
header_params['Accept'] =
|
741
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
473
742
|
|
474
743
|
# form parameters
|
475
744
|
form_params = opts[:form_params] || {}
|
@@ -484,23 +753,23 @@ module KindeApi
|
|
484
753
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
485
754
|
|
486
755
|
new_options = opts.merge(
|
487
|
-
:
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
:
|
492
|
-
|
493
|
-
:
|
756
|
+
operation: :"OrganizationsApi.get_organization",
|
757
|
+
header_params:,
|
758
|
+
query_params:,
|
759
|
+
form_params:,
|
760
|
+
body: post_body,
|
761
|
+
auth_names:,
|
762
|
+
return_type:
|
494
763
|
)
|
495
764
|
|
496
765
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
497
766
|
if @api_client.config.debugging
|
498
767
|
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
499
768
|
end
|
500
|
-
|
769
|
+
[data, status_code, headers]
|
501
770
|
end
|
502
771
|
|
503
|
-
# List
|
772
|
+
# List Organization Feature Flags
|
504
773
|
# Get all organization feature flags.
|
505
774
|
# @param org_code [String] The identifier for the organization.
|
506
775
|
# @param [Hash] opts the optional parameters
|
@@ -510,7 +779,7 @@ module KindeApi
|
|
510
779
|
data
|
511
780
|
end
|
512
781
|
|
513
|
-
# List
|
782
|
+
# List Organization Feature Flags
|
514
783
|
# Get all organization feature flags.
|
515
784
|
# @param org_code [String] The identifier for the organization.
|
516
785
|
# @param [Hash] opts the optional parameters
|
@@ -521,10 +790,13 @@ module KindeApi
|
|
521
790
|
end
|
522
791
|
# verify the required parameter 'org_code' is set
|
523
792
|
if @api_client.config.client_side_validation && org_code.nil?
|
524
|
-
|
793
|
+
raise ArgumentError,
|
794
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_feature_flags"
|
525
795
|
end
|
796
|
+
|
526
797
|
# resource path
|
527
|
-
local_var_path = '/api/v1/organizations/{org_code}/feature_flags'.sub('{
|
798
|
+
local_var_path = '/api/v1/organizations/{org_code}/feature_flags'.sub('{org_code}',
|
799
|
+
CGI.escape(org_code.to_s))
|
528
800
|
|
529
801
|
# query parameters
|
530
802
|
query_params = opts[:query_params] || {}
|
@@ -532,7 +804,8 @@ module KindeApi
|
|
532
804
|
# header parameters
|
533
805
|
header_params = opts[:header_params] || {}
|
534
806
|
# HTTP header 'Accept' (if needed)
|
535
|
-
header_params['Accept'] =
|
807
|
+
header_params['Accept'] =
|
808
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
536
809
|
|
537
810
|
# form parameters
|
538
811
|
form_params = opts[:form_params] || {}
|
@@ -547,20 +820,98 @@ module KindeApi
|
|
547
820
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
548
821
|
|
549
822
|
new_options = opts.merge(
|
550
|
-
:
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
:
|
555
|
-
|
556
|
-
:
|
823
|
+
operation: :"OrganizationsApi.get_organization_feature_flags",
|
824
|
+
header_params:,
|
825
|
+
query_params:,
|
826
|
+
form_params:,
|
827
|
+
body: post_body,
|
828
|
+
auth_names:,
|
829
|
+
return_type:
|
557
830
|
)
|
558
831
|
|
559
832
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
560
833
|
if @api_client.config.debugging
|
561
834
|
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_feature_flags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
562
835
|
end
|
563
|
-
|
836
|
+
[data, status_code, headers]
|
837
|
+
end
|
838
|
+
|
839
|
+
# List Organization User Permissions
|
840
|
+
# Get permissions for an organization user.
|
841
|
+
# @param org_code [String] The organization's code.
|
842
|
+
# @param user_id [String] The user's id.
|
843
|
+
# @param [Hash] opts the optional parameters
|
844
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"roles\".
|
845
|
+
# @return [GetOrganizationsUserPermissionsResponse]
|
846
|
+
def get_organization_user_permissions(org_code, user_id, opts = {})
|
847
|
+
data, _status_code, _headers = get_organization_user_permissions_with_http_info(org_code, user_id, opts)
|
848
|
+
data
|
849
|
+
end
|
850
|
+
|
851
|
+
# List Organization User Permissions
|
852
|
+
# Get permissions for an organization user.
|
853
|
+
# @param org_code [String] The organization's code.
|
854
|
+
# @param user_id [String] The user's id.
|
855
|
+
# @param [Hash] opts the optional parameters
|
856
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"roles\".
|
857
|
+
# @return [Array<(GetOrganizationsUserPermissionsResponse, Integer, Hash)>] GetOrganizationsUserPermissionsResponse data, response status code and response headers
|
858
|
+
def get_organization_user_permissions_with_http_info(org_code, user_id, opts = {})
|
859
|
+
if @api_client.config.debugging
|
860
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_user_permissions ...'
|
861
|
+
end
|
862
|
+
# verify the required parameter 'org_code' is set
|
863
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
864
|
+
raise ArgumentError,
|
865
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_user_permissions"
|
866
|
+
end
|
867
|
+
# verify the required parameter 'user_id' is set
|
868
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
869
|
+
raise ArgumentError,
|
870
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.get_organization_user_permissions"
|
871
|
+
end
|
872
|
+
|
873
|
+
# resource path
|
874
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
875
|
+
'{user_id}', CGI.escape(user_id.to_s)
|
876
|
+
)
|
877
|
+
|
878
|
+
# query parameters
|
879
|
+
query_params = opts[:query_params] || {}
|
880
|
+
query_params[:expand] = opts[:expand] unless opts[:expand].nil?
|
881
|
+
|
882
|
+
# header parameters
|
883
|
+
header_params = opts[:header_params] || {}
|
884
|
+
# HTTP header 'Accept' (if needed)
|
885
|
+
header_params['Accept'] =
|
886
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
887
|
+
|
888
|
+
# form parameters
|
889
|
+
form_params = opts[:form_params] || {}
|
890
|
+
|
891
|
+
# http body (model)
|
892
|
+
post_body = opts[:debug_body]
|
893
|
+
|
894
|
+
# return_type
|
895
|
+
return_type = opts[:debug_return_type] || 'GetOrganizationsUserPermissionsResponse'
|
896
|
+
|
897
|
+
# auth_names
|
898
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
899
|
+
|
900
|
+
new_options = opts.merge(
|
901
|
+
operation: :"OrganizationsApi.get_organization_user_permissions",
|
902
|
+
header_params:,
|
903
|
+
query_params:,
|
904
|
+
form_params:,
|
905
|
+
body: post_body,
|
906
|
+
auth_names:,
|
907
|
+
return_type:
|
908
|
+
)
|
909
|
+
|
910
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
911
|
+
if @api_client.config.debugging
|
912
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_user_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
913
|
+
end
|
914
|
+
[data, status_code, headers]
|
564
915
|
end
|
565
916
|
|
566
917
|
# List Organization User Roles
|
@@ -586,14 +937,19 @@ module KindeApi
|
|
586
937
|
end
|
587
938
|
# verify the required parameter 'org_code' is set
|
588
939
|
if @api_client.config.client_side_validation && org_code.nil?
|
589
|
-
|
940
|
+
raise ArgumentError,
|
941
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_user_roles"
|
590
942
|
end
|
591
943
|
# verify the required parameter 'user_id' is set
|
592
944
|
if @api_client.config.client_side_validation && user_id.nil?
|
593
|
-
|
945
|
+
raise ArgumentError,
|
946
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.get_organization_user_roles"
|
594
947
|
end
|
948
|
+
|
595
949
|
# resource path
|
596
|
-
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles'.sub('{
|
950
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
951
|
+
'{user_id}', CGI.escape(user_id.to_s)
|
952
|
+
)
|
597
953
|
|
598
954
|
# query parameters
|
599
955
|
query_params = opts[:query_params] || {}
|
@@ -601,7 +957,8 @@ module KindeApi
|
|
601
957
|
# header parameters
|
602
958
|
header_params = opts[:header_params] || {}
|
603
959
|
# HTTP header 'Accept' (if needed)
|
604
|
-
header_params['Accept'] =
|
960
|
+
header_params['Accept'] =
|
961
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
605
962
|
|
606
963
|
# form parameters
|
607
964
|
form_params = opts[:form_params] || {}
|
@@ -616,20 +973,20 @@ module KindeApi
|
|
616
973
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
617
974
|
|
618
975
|
new_options = opts.merge(
|
619
|
-
:
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
:
|
624
|
-
|
625
|
-
:
|
976
|
+
operation: :"OrganizationsApi.get_organization_user_roles",
|
977
|
+
header_params:,
|
978
|
+
query_params:,
|
979
|
+
form_params:,
|
980
|
+
body: post_body,
|
981
|
+
auth_names:,
|
982
|
+
return_type:
|
626
983
|
)
|
627
984
|
|
628
985
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
629
986
|
if @api_client.config.debugging
|
630
987
|
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_user_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
631
988
|
end
|
632
|
-
|
989
|
+
[data, status_code, headers]
|
633
990
|
end
|
634
991
|
|
635
992
|
# List Organization Users
|
@@ -639,8 +996,9 @@ module KindeApi
|
|
639
996
|
# @option opts [String] :sort Field and order to sort the result by.
|
640
997
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
641
998
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
642
|
-
# @option opts [String] :permissions Filter by user permissions
|
643
|
-
# @
|
999
|
+
# @option opts [String] :permissions Filter by user permissions comma separated (where all match)
|
1000
|
+
# @option opts [String] :roles Filter by user roles comma separated (where all match)
|
1001
|
+
# @return [GetOrganizationUsersResponse]
|
644
1002
|
def get_organization_users(org_code, opts = {})
|
645
1003
|
data, _status_code, _headers = get_organization_users_with_http_info(org_code, opts)
|
646
1004
|
data
|
@@ -653,34 +1011,40 @@ module KindeApi
|
|
653
1011
|
# @option opts [String] :sort Field and order to sort the result by.
|
654
1012
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
655
1013
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
656
|
-
# @option opts [String] :permissions Filter by user permissions
|
657
|
-
# @
|
1014
|
+
# @option opts [String] :permissions Filter by user permissions comma separated (where all match)
|
1015
|
+
# @option opts [String] :roles Filter by user roles comma separated (where all match)
|
1016
|
+
# @return [Array<(GetOrganizationUsersResponse, Integer, Hash)>] GetOrganizationUsersResponse data, response status code and response headers
|
658
1017
|
def get_organization_users_with_http_info(org_code, opts = {})
|
659
1018
|
if @api_client.config.debugging
|
660
1019
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_users ...'
|
661
1020
|
end
|
662
1021
|
# verify the required parameter 'org_code' is set
|
663
1022
|
if @api_client.config.client_side_validation && org_code.nil?
|
664
|
-
|
1023
|
+
raise ArgumentError,
|
1024
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_users"
|
665
1025
|
end
|
666
|
-
|
667
|
-
|
668
|
-
|
1026
|
+
|
1027
|
+
allowable_values = %w[name_asc name_desc email_asc email_desc]
|
1028
|
+
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
1029
|
+
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
669
1030
|
end
|
1031
|
+
|
670
1032
|
# resource path
|
671
|
-
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{
|
1033
|
+
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{org_code}', CGI.escape(org_code.to_s))
|
672
1034
|
|
673
1035
|
# query parameters
|
674
1036
|
query_params = opts[:query_params] || {}
|
675
|
-
query_params[:
|
676
|
-
query_params[:
|
677
|
-
query_params[:
|
678
|
-
query_params[:
|
1037
|
+
query_params[:sort] = opts[:sort] unless opts[:sort].nil?
|
1038
|
+
query_params[:page_size] = opts[:page_size] unless opts[:page_size].nil?
|
1039
|
+
query_params[:next_token] = opts[:next_token] unless opts[:next_token].nil?
|
1040
|
+
query_params[:permissions] = opts[:permissions] unless opts[:permissions].nil?
|
1041
|
+
query_params[:roles] = opts[:roles] unless opts[:roles].nil?
|
679
1042
|
|
680
1043
|
# header parameters
|
681
1044
|
header_params = opts[:header_params] || {}
|
682
1045
|
# HTTP header 'Accept' (if needed)
|
683
|
-
header_params['Accept'] =
|
1046
|
+
header_params['Accept'] =
|
1047
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
684
1048
|
|
685
1049
|
# form parameters
|
686
1050
|
form_params = opts[:form_params] || {}
|
@@ -689,30 +1053,30 @@ module KindeApi
|
|
689
1053
|
post_body = opts[:debug_body]
|
690
1054
|
|
691
1055
|
# return_type
|
692
|
-
return_type = opts[:debug_return_type] || '
|
1056
|
+
return_type = opts[:debug_return_type] || 'GetOrganizationUsersResponse'
|
693
1057
|
|
694
1058
|
# auth_names
|
695
1059
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
696
1060
|
|
697
1061
|
new_options = opts.merge(
|
698
|
-
:
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
:
|
703
|
-
|
704
|
-
:
|
1062
|
+
operation: :"OrganizationsApi.get_organization_users",
|
1063
|
+
header_params:,
|
1064
|
+
query_params:,
|
1065
|
+
form_params:,
|
1066
|
+
body: post_body,
|
1067
|
+
auth_names:,
|
1068
|
+
return_type:
|
705
1069
|
)
|
706
1070
|
|
707
1071
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
708
1072
|
if @api_client.config.debugging
|
709
1073
|
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
710
1074
|
end
|
711
|
-
|
1075
|
+
[data, status_code, headers]
|
712
1076
|
end
|
713
1077
|
|
714
1078
|
# List Organizations
|
715
|
-
# Get a list of organizations.
|
1079
|
+
# Get a list of organizations.
|
716
1080
|
# @param [Hash] opts the optional parameters
|
717
1081
|
# @option opts [String] :sort Field and order to sort the result by.
|
718
1082
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
@@ -724,7 +1088,7 @@ module KindeApi
|
|
724
1088
|
end
|
725
1089
|
|
726
1090
|
# List Organizations
|
727
|
-
# Get a list of organizations.
|
1091
|
+
# Get a list of organizations.
|
728
1092
|
# @param [Hash] opts the optional parameters
|
729
1093
|
# @option opts [String] :sort Field and order to sort the result by.
|
730
1094
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
@@ -734,23 +1098,25 @@ module KindeApi
|
|
734
1098
|
if @api_client.config.debugging
|
735
1099
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organizations ...'
|
736
1100
|
end
|
737
|
-
allowable_values = [
|
738
|
-
if @api_client.config.client_side_validation && opts[:
|
739
|
-
|
1101
|
+
allowable_values = %w[name_asc name_desc email_asc email_desc]
|
1102
|
+
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
1103
|
+
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
740
1104
|
end
|
1105
|
+
|
741
1106
|
# resource path
|
742
1107
|
local_var_path = '/api/v1/organizations'
|
743
1108
|
|
744
1109
|
# query parameters
|
745
1110
|
query_params = opts[:query_params] || {}
|
746
|
-
query_params[:
|
747
|
-
query_params[:
|
748
|
-
query_params[:
|
1111
|
+
query_params[:sort] = opts[:sort] unless opts[:sort].nil?
|
1112
|
+
query_params[:page_size] = opts[:page_size] unless opts[:page_size].nil?
|
1113
|
+
query_params[:next_token] = opts[:next_token] unless opts[:next_token].nil?
|
749
1114
|
|
750
1115
|
# header parameters
|
751
1116
|
header_params = opts[:header_params] || {}
|
752
1117
|
# HTTP header 'Accept' (if needed)
|
753
|
-
header_params['Accept'] =
|
1118
|
+
header_params['Accept'] =
|
1119
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
754
1120
|
|
755
1121
|
# form parameters
|
756
1122
|
form_params = opts[:form_params] || {}
|
@@ -765,20 +1131,20 @@ module KindeApi
|
|
765
1131
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
766
1132
|
|
767
1133
|
new_options = opts.merge(
|
768
|
-
:
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
:
|
773
|
-
|
774
|
-
:
|
1134
|
+
operation: :"OrganizationsApi.get_organizations",
|
1135
|
+
header_params:,
|
1136
|
+
query_params:,
|
1137
|
+
form_params:,
|
1138
|
+
body: post_body,
|
1139
|
+
auth_names:,
|
1140
|
+
return_type:
|
775
1141
|
)
|
776
1142
|
|
777
1143
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
778
1144
|
if @api_client.config.debugging
|
779
1145
|
@api_client.config.logger.debug "API called: OrganizationsApi#get_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
780
1146
|
end
|
781
|
-
|
1147
|
+
[data, status_code, headers]
|
782
1148
|
end
|
783
1149
|
|
784
1150
|
# Remove Organization User
|
@@ -804,14 +1170,19 @@ module KindeApi
|
|
804
1170
|
end
|
805
1171
|
# verify the required parameter 'org_code' is set
|
806
1172
|
if @api_client.config.client_side_validation && org_code.nil?
|
807
|
-
|
1173
|
+
raise ArgumentError,
|
1174
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.remove_organization_user"
|
808
1175
|
end
|
809
1176
|
# verify the required parameter 'user_id' is set
|
810
1177
|
if @api_client.config.client_side_validation && user_id.nil?
|
811
|
-
|
1178
|
+
raise ArgumentError,
|
1179
|
+
"Missing the required parameter 'user_id' when calling OrganizationsApi.remove_organization_user"
|
812
1180
|
end
|
1181
|
+
|
813
1182
|
# resource path
|
814
|
-
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}'.sub('{
|
1183
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
1184
|
+
'{user_id}', CGI.escape(user_id.to_s)
|
1185
|
+
)
|
815
1186
|
|
816
1187
|
# query parameters
|
817
1188
|
query_params = opts[:query_params] || {}
|
@@ -819,7 +1190,8 @@ module KindeApi
|
|
819
1190
|
# header parameters
|
820
1191
|
header_params = opts[:header_params] || {}
|
821
1192
|
# HTTP header 'Accept' (if needed)
|
822
|
-
header_params['Accept'] =
|
1193
|
+
header_params['Accept'] =
|
1194
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
823
1195
|
|
824
1196
|
# form parameters
|
825
1197
|
form_params = opts[:form_params] || {}
|
@@ -834,20 +1206,20 @@ module KindeApi
|
|
834
1206
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
835
1207
|
|
836
1208
|
new_options = opts.merge(
|
837
|
-
:
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
:
|
842
|
-
|
843
|
-
:
|
1209
|
+
operation: :"OrganizationsApi.remove_organization_user",
|
1210
|
+
header_params:,
|
1211
|
+
query_params:,
|
1212
|
+
form_params:,
|
1213
|
+
body: post_body,
|
1214
|
+
auth_names:,
|
1215
|
+
return_type:
|
844
1216
|
)
|
845
1217
|
|
846
1218
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
847
1219
|
if @api_client.config.debugging
|
848
1220
|
@api_client.config.logger.debug "API called: OrganizationsApi#remove_organization_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
849
1221
|
end
|
850
|
-
|
1222
|
+
[data, status_code, headers]
|
851
1223
|
end
|
852
1224
|
|
853
1225
|
# Update Organization
|
@@ -855,10 +1227,10 @@ module KindeApi
|
|
855
1227
|
# @param org_code [String] The identifier for the organization.
|
856
1228
|
# @param [Hash] opts the optional parameters
|
857
1229
|
# @option opts [UpdateOrganizationRequest] :update_organization_request Organization details.
|
858
|
-
# @return [
|
1230
|
+
# @return [SuccessResponse]
|
859
1231
|
def update_organization(org_code, opts = {})
|
860
|
-
update_organization_with_http_info(org_code, opts)
|
861
|
-
|
1232
|
+
data, _status_code, _headers = update_organization_with_http_info(org_code, opts)
|
1233
|
+
data
|
862
1234
|
end
|
863
1235
|
|
864
1236
|
# Update Organization
|
@@ -866,17 +1238,19 @@ module KindeApi
|
|
866
1238
|
# @param org_code [String] The identifier for the organization.
|
867
1239
|
# @param [Hash] opts the optional parameters
|
868
1240
|
# @option opts [UpdateOrganizationRequest] :update_organization_request Organization details.
|
869
|
-
# @return [Array<(
|
1241
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
870
1242
|
def update_organization_with_http_info(org_code, opts = {})
|
871
1243
|
if @api_client.config.debugging
|
872
1244
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization ...'
|
873
1245
|
end
|
874
1246
|
# verify the required parameter 'org_code' is set
|
875
1247
|
if @api_client.config.client_side_validation && org_code.nil?
|
876
|
-
|
1248
|
+
raise ArgumentError,
|
1249
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization"
|
877
1250
|
end
|
1251
|
+
|
878
1252
|
# resource path
|
879
|
-
local_var_path = '/api/v1/organization/{org_code}'.sub('{
|
1253
|
+
local_var_path = '/api/v1/organization/{org_code}'.sub('{org_code}', CGI.escape(org_code.to_s))
|
880
1254
|
|
881
1255
|
# query parameters
|
882
1256
|
query_params = opts[:query_params] || {}
|
@@ -884,43 +1258,42 @@ module KindeApi
|
|
884
1258
|
# header parameters
|
885
1259
|
header_params = opts[:header_params] || {}
|
886
1260
|
# HTTP header 'Accept' (if needed)
|
887
|
-
header_params['Accept'] =
|
1261
|
+
header_params['Accept'] =
|
1262
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
888
1263
|
# HTTP header 'Content-Type'
|
889
1264
|
content_type = @api_client.select_header_content_type(['application/json'])
|
890
|
-
|
891
|
-
header_params['Content-Type'] = content_type
|
892
|
-
end
|
1265
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
893
1266
|
|
894
1267
|
# form parameters
|
895
1268
|
form_params = opts[:form_params] || {}
|
896
1269
|
|
897
1270
|
# http body (model)
|
898
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:
|
1271
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:update_organization_request])
|
899
1272
|
|
900
1273
|
# return_type
|
901
|
-
return_type = opts[:debug_return_type]
|
1274
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
902
1275
|
|
903
1276
|
# auth_names
|
904
1277
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
905
1278
|
|
906
1279
|
new_options = opts.merge(
|
907
|
-
:
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
:
|
912
|
-
|
913
|
-
:
|
1280
|
+
operation: :"OrganizationsApi.update_organization",
|
1281
|
+
header_params:,
|
1282
|
+
query_params:,
|
1283
|
+
form_params:,
|
1284
|
+
body: post_body,
|
1285
|
+
auth_names:,
|
1286
|
+
return_type:
|
914
1287
|
)
|
915
1288
|
|
916
1289
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
917
1290
|
if @api_client.config.debugging
|
918
1291
|
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
919
1292
|
end
|
920
|
-
|
1293
|
+
[data, status_code, headers]
|
921
1294
|
end
|
922
1295
|
|
923
|
-
# Update
|
1296
|
+
# Update Organization Feature Flag Override
|
924
1297
|
# Update organization feature flag override.
|
925
1298
|
# @param org_code [String] The identifier for the organization
|
926
1299
|
# @param feature_flag_key [String] The identifier for the feature flag
|
@@ -928,11 +1301,12 @@ module KindeApi
|
|
928
1301
|
# @param [Hash] opts the optional parameters
|
929
1302
|
# @return [SuccessResponse]
|
930
1303
|
def update_organization_feature_flag_override(org_code, feature_flag_key, value, opts = {})
|
931
|
-
data, _status_code, _headers = update_organization_feature_flag_override_with_http_info(org_code,
|
1304
|
+
data, _status_code, _headers = update_organization_feature_flag_override_with_http_info(org_code,
|
1305
|
+
feature_flag_key, value, opts)
|
932
1306
|
data
|
933
1307
|
end
|
934
1308
|
|
935
|
-
# Update
|
1309
|
+
# Update Organization Feature Flag Override
|
936
1310
|
# Update organization feature flag override.
|
937
1311
|
# @param org_code [String] The identifier for the organization
|
938
1312
|
# @param feature_flag_key [String] The identifier for the feature flag
|
@@ -945,27 +1319,34 @@ module KindeApi
|
|
945
1319
|
end
|
946
1320
|
# verify the required parameter 'org_code' is set
|
947
1321
|
if @api_client.config.client_side_validation && org_code.nil?
|
948
|
-
|
1322
|
+
raise ArgumentError,
|
1323
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization_feature_flag_override"
|
949
1324
|
end
|
950
1325
|
# verify the required parameter 'feature_flag_key' is set
|
951
1326
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
952
|
-
|
1327
|
+
raise ArgumentError,
|
1328
|
+
"Missing the required parameter 'feature_flag_key' when calling OrganizationsApi.update_organization_feature_flag_override"
|
953
1329
|
end
|
954
1330
|
# verify the required parameter 'value' is set
|
955
1331
|
if @api_client.config.client_side_validation && value.nil?
|
956
|
-
|
1332
|
+
raise ArgumentError,
|
1333
|
+
"Missing the required parameter 'value' when calling OrganizationsApi.update_organization_feature_flag_override"
|
957
1334
|
end
|
1335
|
+
|
958
1336
|
# resource path
|
959
|
-
local_var_path = '/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}'.sub('{
|
1337
|
+
local_var_path = '/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}'.sub('{org_code}', CGI.escape(org_code.to_s)).sub(
|
1338
|
+
'{feature_flag_key}', CGI.escape(feature_flag_key.to_s)
|
1339
|
+
)
|
960
1340
|
|
961
1341
|
# query parameters
|
962
1342
|
query_params = opts[:query_params] || {}
|
963
|
-
query_params[:
|
1343
|
+
query_params[:value] = value
|
964
1344
|
|
965
1345
|
# header parameters
|
966
1346
|
header_params = opts[:header_params] || {}
|
967
1347
|
# HTTP header 'Accept' (if needed)
|
968
|
-
header_params['Accept'] =
|
1348
|
+
header_params['Accept'] =
|
1349
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
969
1350
|
|
970
1351
|
# form parameters
|
971
1352
|
form_params = opts[:form_params] || {}
|
@@ -980,38 +1361,38 @@ module KindeApi
|
|
980
1361
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
981
1362
|
|
982
1363
|
new_options = opts.merge(
|
983
|
-
:
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
:
|
988
|
-
|
989
|
-
:
|
1364
|
+
operation: :"OrganizationsApi.update_organization_feature_flag_override",
|
1365
|
+
header_params:,
|
1366
|
+
query_params:,
|
1367
|
+
form_params:,
|
1368
|
+
body: post_body,
|
1369
|
+
auth_names:,
|
1370
|
+
return_type:
|
990
1371
|
)
|
991
1372
|
|
992
1373
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
993
1374
|
if @api_client.config.debugging
|
994
1375
|
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_feature_flag_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
995
1376
|
end
|
996
|
-
|
1377
|
+
[data, status_code, headers]
|
997
1378
|
end
|
998
1379
|
|
999
|
-
# Update
|
1380
|
+
# Update Organization Users
|
1000
1381
|
# Update users that belong to an organization.
|
1001
1382
|
# @param org_code [String] The organization's code.
|
1002
1383
|
# @param [Hash] opts the optional parameters
|
1003
|
-
# @option opts [UpdateOrganizationUsersRequest] :update_organization_users_request
|
1384
|
+
# @option opts [UpdateOrganizationUsersRequest] :update_organization_users_request
|
1004
1385
|
# @return [UpdateOrganizationUsersResponse]
|
1005
1386
|
def update_organization_users(org_code, opts = {})
|
1006
1387
|
data, _status_code, _headers = update_organization_users_with_http_info(org_code, opts)
|
1007
1388
|
data
|
1008
1389
|
end
|
1009
1390
|
|
1010
|
-
# Update
|
1391
|
+
# Update Organization Users
|
1011
1392
|
# Update users that belong to an organization.
|
1012
1393
|
# @param org_code [String] The organization's code.
|
1013
1394
|
# @param [Hash] opts the optional parameters
|
1014
|
-
# @option opts [UpdateOrganizationUsersRequest] :update_organization_users_request
|
1395
|
+
# @option opts [UpdateOrganizationUsersRequest] :update_organization_users_request
|
1015
1396
|
# @return [Array<(UpdateOrganizationUsersResponse, Integer, Hash)>] UpdateOrganizationUsersResponse data, response status code and response headers
|
1016
1397
|
def update_organization_users_with_http_info(org_code, opts = {})
|
1017
1398
|
if @api_client.config.debugging
|
@@ -1019,10 +1400,12 @@ module KindeApi
|
|
1019
1400
|
end
|
1020
1401
|
# verify the required parameter 'org_code' is set
|
1021
1402
|
if @api_client.config.client_side_validation && org_code.nil?
|
1022
|
-
|
1403
|
+
raise ArgumentError,
|
1404
|
+
"Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization_users"
|
1023
1405
|
end
|
1406
|
+
|
1024
1407
|
# resource path
|
1025
|
-
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{
|
1408
|
+
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{org_code}', CGI.escape(org_code.to_s))
|
1026
1409
|
|
1027
1410
|
# query parameters
|
1028
1411
|
query_params = opts[:query_params] || {}
|
@@ -1030,18 +1413,17 @@ module KindeApi
|
|
1030
1413
|
# header parameters
|
1031
1414
|
header_params = opts[:header_params] || {}
|
1032
1415
|
# HTTP header 'Accept' (if needed)
|
1033
|
-
header_params['Accept'] =
|
1416
|
+
header_params['Accept'] =
|
1417
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
1034
1418
|
# HTTP header 'Content-Type'
|
1035
1419
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1036
|
-
|
1037
|
-
header_params['Content-Type'] = content_type
|
1038
|
-
end
|
1420
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
1039
1421
|
|
1040
1422
|
# form parameters
|
1041
1423
|
form_params = opts[:form_params] || {}
|
1042
1424
|
|
1043
1425
|
# http body (model)
|
1044
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:
|
1426
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:update_organization_users_request])
|
1045
1427
|
|
1046
1428
|
# return_type
|
1047
1429
|
return_type = opts[:debug_return_type] || 'UpdateOrganizationUsersResponse'
|
@@ -1050,20 +1432,20 @@ module KindeApi
|
|
1050
1432
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1051
1433
|
|
1052
1434
|
new_options = opts.merge(
|
1053
|
-
:
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
:
|
1058
|
-
|
1059
|
-
:
|
1435
|
+
operation: :"OrganizationsApi.update_organization_users",
|
1436
|
+
header_params:,
|
1437
|
+
query_params:,
|
1438
|
+
form_params:,
|
1439
|
+
body: post_body,
|
1440
|
+
auth_names:,
|
1441
|
+
return_type:
|
1060
1442
|
)
|
1061
1443
|
|
1062
1444
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1063
1445
|
if @api_client.config.debugging
|
1064
1446
|
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1065
1447
|
end
|
1066
|
-
|
1448
|
+
[data, status_code, headers]
|
1067
1449
|
end
|
1068
1450
|
end
|
1069
1451
|
end
|