kinde_sdk 1.6.4 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/kinde_sdk/auth_controller.rb +2 -0
- data/app/helpers/auth_helper.rb +4 -4
- data/kinde_api/Gemfile +9 -0
- data/kinde_api/README.md +316 -47
- data/kinde_api/Rakefile +10 -0
- data/kinde_api/docs/APIsApi.md +569 -60
- data/kinde_api/docs/AddAPIScopeRequest.md +20 -0
- data/kinde_api/docs/AddAPIsRequest.md +4 -4
- data/kinde_api/docs/AddOrganizationUsersRequestUsersInner.md +1 -1
- data/kinde_api/docs/AddRoleScopeRequest.md +18 -0
- data/kinde_api/docs/AddRoleScopeResponse.md +20 -0
- data/kinde_api/docs/ApplicationsApi.md +465 -38
- data/kinde_api/docs/AuthorizeAppApiResponse.md +24 -0
- data/kinde_api/docs/BillingAgreementsApi.md +157 -0
- data/kinde_api/docs/BillingEntitlementsApi.md +89 -0
- data/kinde_api/docs/BillingMeterUsageApi.md +77 -0
- data/kinde_api/docs/BusinessApi.md +27 -66
- data/kinde_api/docs/CallbacksApi.md +25 -25
- data/kinde_api/docs/Category.md +20 -0
- data/kinde_api/docs/ConnectedAppsApi.md +8 -8
- data/kinde_api/docs/Connection.md +22 -0
- data/kinde_api/docs/ConnectionConnection.md +24 -0
- data/kinde_api/docs/ConnectionsApi.md +439 -0
- data/kinde_api/docs/CreateApiScopesResponse.md +22 -0
- data/kinde_api/docs/CreateApiScopesResponseScope.md +18 -0
- data/kinde_api/docs/CreateApisResponse.md +22 -0
- data/kinde_api/docs/CreateApisResponseApi.md +18 -0
- data/kinde_api/docs/CreateApplicationRequest.md +3 -3
- data/kinde_api/docs/CreateApplicationResponseApplication.md +4 -4
- data/kinde_api/docs/CreateBillingAgreementRequest.md +24 -0
- data/kinde_api/docs/CreateCategoryRequest.md +20 -0
- data/kinde_api/docs/CreateCategoryResponse.md +22 -0
- data/kinde_api/docs/CreateCategoryResponseCategory.md +18 -0
- data/kinde_api/docs/CreateConnectionRequest.md +28 -0
- data/kinde_api/docs/CreateConnectionRequestOptions.md +51 -0
- data/kinde_api/docs/CreateConnectionRequestOptionsOneOf.md +22 -0
- data/kinde_api/docs/CreateConnectionRequestOptionsOneOf1.md +34 -0
- data/kinde_api/docs/CreateConnectionRequestOptionsOneOf2.md +44 -0
- data/kinde_api/docs/CreateConnectionResponse.md +22 -0
- data/kinde_api/docs/CreateConnectionResponseConnection.md +18 -0
- data/kinde_api/docs/CreateEnvironmentVariableRequest.md +22 -0
- data/kinde_api/docs/CreateEnvironmentVariableResponse.md +22 -0
- data/kinde_api/docs/CreateEnvironmentVariableResponseEnvironmentVariable.md +18 -0
- data/kinde_api/docs/CreateIdentityResponse.md +22 -0
- data/kinde_api/docs/CreateIdentityResponseIdentity.md +18 -0
- data/kinde_api/docs/CreateMeterUsageRecordRequest.md +26 -0
- data/kinde_api/docs/CreateMeterUsageRecordResponse.md +20 -0
- data/kinde_api/docs/CreateOrganizationRequest.md +17 -7
- data/kinde_api/docs/CreateOrganizationResponse.md +4 -4
- data/kinde_api/docs/CreateOrganizationResponseOrganization.md +4 -2
- data/kinde_api/docs/CreatePropertyRequest.md +30 -0
- data/kinde_api/docs/CreatePropertyResponse.md +22 -0
- data/kinde_api/docs/CreatePropertyResponseProperty.md +18 -0
- data/kinde_api/docs/CreateRolesResponse.md +22 -0
- data/kinde_api/docs/CreateRolesResponseRole.md +18 -0
- data/kinde_api/docs/CreateUserIdentityRequest.md +24 -0
- data/kinde_api/docs/CreateUserRequest.md +3 -1
- data/kinde_api/docs/CreateUserRequestIdentitiesInner.md +3 -1
- data/kinde_api/docs/CreateUserRequestIdentitiesInnerDetails.md +7 -1
- data/kinde_api/docs/CreateUserRequestProfile.md +3 -1
- data/kinde_api/docs/CreateUserResponse.md +1 -1
- data/kinde_api/docs/CreateWebHookRequest.md +24 -0
- data/kinde_api/docs/CreateWebhookResponse.md +22 -0
- data/kinde_api/docs/CreateWebhookResponseWebhook.md +20 -0
- data/kinde_api/docs/DeleteApiResponse.md +20 -0
- data/kinde_api/docs/DeleteEnvironmentVariableResponse.md +20 -0
- data/kinde_api/docs/DeleteRoleScopeResponse.md +20 -0
- data/kinde_api/docs/DeleteWebhookResponse.md +20 -0
- data/kinde_api/docs/EnvironmentVariable.md +26 -0
- data/kinde_api/docs/EnvironmentVariablesApi.md +356 -0
- data/kinde_api/docs/EnvironmentsApi.md +281 -5
- data/kinde_api/docs/EventType.md +26 -0
- data/kinde_api/docs/FeatureFlagsApi.md +4 -4
- data/kinde_api/docs/GetApiResponse.md +22 -0
- data/kinde_api/docs/GetApiResponseApi.md +28 -0
- data/kinde_api/docs/GetApiResponseApiApplicationsInner.md +24 -0
- data/kinde_api/docs/GetApiResponseApiScopesInner.md +20 -0
- data/kinde_api/docs/GetApiScopeResponse.md +22 -0
- data/kinde_api/docs/GetApiScopesResponse.md +22 -0
- data/kinde_api/docs/GetApiScopesResponseScopesInner.md +22 -0
- data/kinde_api/docs/GetApisResponse.md +24 -0
- data/kinde_api/docs/GetApisResponseApisInner.md +26 -0
- data/kinde_api/docs/GetApisResponseApisInnerScopesInner.md +20 -0
- data/kinde_api/docs/GetApplicationResponseApplication.md +11 -5
- data/kinde_api/docs/GetBillingAgreementsResponse.md +24 -0
- data/kinde_api/docs/GetBillingAgreementsResponseAgreementsInner.md +26 -0
- data/kinde_api/docs/GetBillingAgreementsResponseAgreementsInnerEntitlementsInner.md +20 -0
- data/kinde_api/docs/GetBillingEntitlementsResponse.md +26 -0
- data/kinde_api/docs/GetBillingEntitlementsResponseEntitlementsInner.md +32 -0
- data/kinde_api/docs/GetBillingEntitlementsResponsePlansInner.md +20 -0
- data/kinde_api/docs/GetBusinessResponse.md +22 -0
- data/kinde_api/docs/GetBusinessResponseBusiness.md +38 -0
- data/kinde_api/docs/GetCategoriesResponse.md +24 -0
- data/kinde_api/docs/GetConnectionsResponse.md +24 -0
- data/kinde_api/docs/GetEnvironmentResponse.md +22 -0
- data/kinde_api/docs/GetEnvironmentResponseEnvironment.md +68 -0
- data/kinde_api/docs/GetEnvironmentResponseEnvironmentBackgroundColor.md +22 -0
- data/kinde_api/docs/GetEnvironmentResponseEnvironmentLinkColor.md +22 -0
- data/kinde_api/docs/GetEnvironmentVariableResponse.md +22 -0
- data/kinde_api/docs/GetEnvironmentVariablesResponse.md +24 -0
- data/kinde_api/docs/GetEventResponse.md +22 -0
- data/kinde_api/docs/GetEventResponseEvent.md +26 -0
- data/kinde_api/docs/GetEventTypesResponse.md +22 -0
- data/kinde_api/docs/GetIdentitiesResponse.md +24 -0
- data/kinde_api/docs/GetIndustriesResponse.md +22 -0
- data/kinde_api/docs/GetIndustriesResponseIndustriesInner.md +20 -0
- data/kinde_api/docs/GetOrganizationResponse.md +72 -0
- data/kinde_api/docs/GetOrganizationResponseBilling.md +20 -0
- data/kinde_api/docs/GetOrganizationResponseBillingAgreementsInner.md +20 -0
- data/kinde_api/docs/GetOrganizationUsersResponse.md +2 -2
- data/kinde_api/docs/GetOrganizationsResponse.md +4 -4
- data/kinde_api/docs/GetPropertiesResponse.md +24 -0
- data/kinde_api/docs/GetPropertyValuesResponse.md +24 -0
- data/kinde_api/docs/GetRoleResponse.md +22 -0
- data/kinde_api/docs/GetRoleResponseRole.md +26 -0
- data/kinde_api/docs/GetTimezonesResponse.md +22 -0
- data/kinde_api/docs/GetTimezonesResponseTimezonesInner.md +20 -0
- data/kinde_api/docs/GetUserMfaResponse.md +22 -0
- data/kinde_api/docs/GetUserMfaResponseMfa.md +30 -0
- data/kinde_api/docs/GetUserSessionsResponse.md +24 -0
- data/kinde_api/docs/GetUserSessionsResponseSessionsInner.md +40 -0
- data/kinde_api/docs/GetWebhooksResponse.md +22 -0
- data/kinde_api/docs/IdentitiesApi.md +219 -0
- data/kinde_api/docs/Identity.md +34 -0
- data/kinde_api/docs/IndustriesApi.md +14 -21
- data/kinde_api/docs/LogoutRedirectUrls.md +6 -2
- data/kinde_api/docs/MFAApi.md +77 -0
- data/kinde_api/docs/NotFoundResponse.md +18 -0
- data/kinde_api/docs/NotFoundResponseErrors.md +20 -0
- data/kinde_api/docs/OAuthApi.md +32 -97
- data/kinde_api/docs/OrganizationItemSchema.md +28 -0
- data/kinde_api/docs/OrganizationUser.md +17 -11
- data/kinde_api/docs/OrganizationsApi.md +1440 -210
- data/kinde_api/docs/Permissions.md +1 -1
- data/kinde_api/docs/PermissionsApi.md +7 -7
- data/kinde_api/docs/PropertiesApi.md +297 -0
- data/kinde_api/docs/Property.md +28 -0
- data/kinde_api/docs/PropertyCategoriesApi.md +227 -0
- data/kinde_api/docs/PropertyValue.md +26 -0
- data/kinde_api/docs/ReadEnvLogoResponse.md +22 -0
- data/kinde_api/docs/ReadEnvLogoResponseLogosInner.md +20 -0
- data/kinde_api/docs/ReadLogoResponse.md +22 -0
- data/kinde_api/docs/ReadLogoResponseLogosInner.md +22 -0
- data/kinde_api/docs/ReplaceConnectionRequest.md +24 -0
- data/kinde_api/docs/ReplaceConnectionRequestOptions.md +51 -0
- data/kinde_api/docs/ReplaceConnectionRequestOptionsOneOf.md +32 -0
- data/kinde_api/docs/ReplaceConnectionRequestOptionsOneOf1.md +40 -0
- data/kinde_api/docs/ReplaceMFARequest.md +20 -0
- data/kinde_api/docs/ReplaceOrganizationMFARequest.md +18 -0
- data/kinde_api/docs/RolePermissionsResponse.md +24 -0
- data/kinde_api/docs/RoleScopesResponse.md +22 -0
- data/kinde_api/docs/Roles.md +4 -2
- data/kinde_api/docs/RolesApi.md +338 -54
- data/kinde_api/docs/Scopes.md +24 -0
- data/kinde_api/docs/SearchApi.md +89 -0
- data/kinde_api/docs/SearchUsersResponse.md +22 -0
- data/kinde_api/docs/SearchUsersResponseResultsInner.md +46 -0
- data/kinde_api/docs/SetUserPasswordRequest.md +26 -0
- data/kinde_api/docs/SubscribersApi.md +4 -4
- data/kinde_api/docs/SuccessResponse.md +2 -2
- data/kinde_api/docs/TimezonesApi.md +14 -21
- data/kinde_api/docs/TokenIntrospect.md +5 -5
- data/kinde_api/docs/UpdateAPIApplicationsRequestApplicationsInner.md +4 -4
- data/kinde_api/docs/UpdateAPIScopeRequest.md +18 -0
- data/kinde_api/docs/UpdateApplicationRequest.md +5 -1
- data/kinde_api/docs/UpdateApplicationTokensRequest.md +26 -0
- data/kinde_api/docs/UpdateApplicationsPropertyRequest.md +18 -0
- data/kinde_api/docs/UpdateApplicationsPropertyRequestValue.md +49 -0
- data/kinde_api/docs/UpdateBusinessRequest.md +36 -0
- data/kinde_api/docs/UpdateCategoryRequest.md +18 -0
- data/kinde_api/docs/UpdateConnectionRequest.md +24 -0
- data/kinde_api/docs/UpdateEnvironmentVariableRequest.md +22 -0
- data/kinde_api/docs/UpdateEnvironmentVariableResponse.md +20 -0
- data/kinde_api/docs/UpdateIdentityRequest.md +18 -0
- data/kinde_api/docs/UpdateOrganizationPropertiesRequest.md +18 -0
- data/kinde_api/docs/UpdateOrganizationRequest.md +27 -15
- data/kinde_api/docs/UpdateOrganizationSessionsRequest.md +24 -0
- data/kinde_api/docs/UpdateOrganizationUsersRequestUsersInner.md +2 -2
- data/kinde_api/docs/UpdateOrganizationUsersResponse.md +3 -1
- data/kinde_api/docs/UpdatePropertyRequest.md +24 -0
- data/kinde_api/docs/UpdateUserRequest.md +5 -1
- data/kinde_api/docs/UpdateUserResponse.md +1 -1
- data/kinde_api/docs/UpdateWebHookRequest.md +22 -0
- data/kinde_api/docs/UpdateWebhookResponse.md +22 -0
- data/kinde_api/docs/UpdateWebhookResponseWebhook.md +18 -0
- data/kinde_api/docs/User.md +6 -2
- data/kinde_api/docs/UserProfileV2.md +17 -13
- data/kinde_api/docs/UsersApi.md +893 -99
- data/kinde_api/docs/UsersResponseUsersInner.md +6 -2
- data/kinde_api/docs/Webhook.md +28 -0
- data/kinde_api/docs/WebhooksApi.md +423 -0
- data/kinde_api/git_push.sh +57 -0
- data/kinde_api/kinde_api.gemspec +38 -0
- data/kinde_api/lib/kinde_api/api/apis_api.rb +640 -127
- data/kinde_api/lib/kinde_api/api/applications_api.rb +524 -112
- data/kinde_api/lib/kinde_api/api/billing_agreements_api.rb +166 -0
- data/kinde_api/lib/kinde_api/api/billing_entitlements_api.rb +105 -0
- data/kinde_api/lib/kinde_api/api/billing_meter_usage_api.rb +90 -0
- data/kinde_api/lib/kinde_api/api/business_api.rb +61 -126
- data/kinde_api/lib/kinde_api/api/callbacks_api.rb +152 -172
- data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +57 -67
- data/kinde_api/lib/kinde_api/api/connections_api.rb +433 -0
- data/kinde_api/lib/kinde_api/api/environment_variables_api.rb +347 -0
- data/kinde_api/lib/kinde_api/api/environments_api.rb +327 -78
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +68 -88
- data/kinde_api/lib/kinde_api/api/identities_api.rb +222 -0
- data/kinde_api/lib/kinde_api/api/industries_api.rb +29 -34
- data/kinde_api/lib/kinde_api/api/mfa_api.rb +90 -0
- data/kinde_api/lib/kinde_api/api/o_auth_api.rb +104 -129
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +1689 -544
- data/kinde_api/lib/kinde_api/api/permissions_api.rb +76 -80
- data/kinde_api/lib/kinde_api/api/properties_api.rb +300 -0
- data/kinde_api/lib/kinde_api/api/property_categories_api.rb +237 -0
- data/kinde_api/lib/kinde_api/api/roles_api.rb +432 -166
- data/kinde_api/lib/kinde_api/api/search_api.rb +97 -0
- data/kinde_api/lib/kinde_api/api/subscribers_api.rb +59 -60
- data/kinde_api/lib/kinde_api/api/timezones_api.rb +29 -34
- data/kinde_api/lib/kinde_api/api/users_api.rb +900 -150
- data/kinde_api/lib/kinde_api/api/webhooks_api.rb +404 -0
- data/kinde_api/lib/kinde_api/api_client.rb +79 -68
- data/kinde_api/lib/kinde_api/api_error.rb +16 -16
- data/kinde_api/lib/kinde_api/configuration.rb +101 -24
- data/kinde_api/lib/kinde_api/models/add_api_scope_request.rb +235 -0
- data/kinde_api/lib/kinde_api/models/add_apis_request.rb +54 -49
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +40 -42
- data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +53 -51
- data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +52 -50
- data/kinde_api/lib/kinde_api/models/add_role_scope_request.rb +225 -0
- data/kinde_api/lib/kinde_api/models/add_role_scope_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/api_result.rb +38 -40
- data/kinde_api/lib/kinde_api/models/applications.rb +55 -50
- data/kinde_api/lib/kinde_api/models/authorize_app_api_response.rb +250 -0
- data/kinde_api/lib/kinde_api/models/category.rb +228 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +44 -45
- data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +44 -45
- data/kinde_api/lib/kinde_api/models/connection.rb +239 -0
- data/kinde_api/lib/kinde_api/models/connection_connection.rb +246 -0
- data/kinde_api/lib/kinde_api/models/create_api_scopes_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_api_scopes_response_scope.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_apis_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_apis_response_api.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_application_request.rb +60 -52
- data/kinde_api/lib/kinde_api/models/create_application_response.rb +50 -49
- data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +51 -50
- data/kinde_api/lib/kinde_api/models/create_billing_agreement_request.rb +260 -0
- data/kinde_api/lib/kinde_api/models/create_category_request.rb +274 -0
- data/kinde_api/lib/kinde_api/models/create_category_response.rb +237 -0
- data/kinde_api/lib/kinde_api/models/create_category_response_category.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_connection_request.rb +306 -0
- data/kinde_api/lib/kinde_api/models/create_connection_request_options.rb +106 -0
- data/kinde_api/lib/kinde_api/models/create_connection_request_options_one_of.rb +241 -0
- data/kinde_api/lib/kinde_api/models/create_connection_request_options_one_of1.rb +303 -0
- data/kinde_api/lib/kinde_api/models/create_connection_request_options_one_of2.rb +333 -0
- data/kinde_api/lib/kinde_api/models/create_connection_response.rb +237 -0
- data/kinde_api/lib/kinde_api/models/create_connection_response_connection.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_environment_variable_request.rb +250 -0
- data/kinde_api/lib/kinde_api/models/create_environment_variable_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_environment_variable_response_environment_variable.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +87 -77
- data/kinde_api/lib/kinde_api/models/create_identity_response.rb +237 -0
- data/kinde_api/lib/kinde_api/models/create_identity_response_identity.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_meter_usage_record_request.rb +309 -0
- data/kinde_api/lib/kinde_api/models/create_meter_usage_record_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +175 -100
- data/kinde_api/lib/kinde_api/models/create_organization_response.rb +57 -50
- data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +49 -42
- data/kinde_api/lib/kinde_api/models/create_organization_user_permission_request.rb +38 -41
- data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +38 -41
- data/kinde_api/lib/kinde_api/models/create_permission_request.rb +50 -49
- data/kinde_api/lib/kinde_api/models/create_property_request.rb +356 -0
- data/kinde_api/lib/kinde_api/models/create_property_response.rb +237 -0
- data/kinde_api/lib/kinde_api/models/create_property_response_property.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_role_request.rb +56 -53
- data/kinde_api/lib/kinde_api/models/create_roles_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_roles_response_role.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +38 -41
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +38 -41
- data/kinde_api/lib/kinde_api/models/create_user_identity_request.rb +284 -0
- data/kinde_api/lib/kinde_api/models/create_user_request.rb +62 -50
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +60 -52
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +67 -40
- data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +54 -45
- data/kinde_api/lib/kinde_api/models/create_user_response.rb +53 -51
- data/kinde_api/lib/kinde_api/models/create_web_hook_request.rb +268 -0
- data/kinde_api/lib/kinde_api/models/create_webhook_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_webhook_response_webhook.rb +228 -0
- data/kinde_api/lib/kinde_api/models/delete_api_response.rb +228 -0
- data/kinde_api/lib/kinde_api/models/delete_environment_variable_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/delete_role_scope_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/delete_webhook_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/environment_variable.rb +261 -0
- data/kinde_api/lib/kinde_api/models/error.rb +44 -44
- data/kinde_api/lib/kinde_api/models/error_response.rb +40 -42
- data/kinde_api/lib/kinde_api/models/event_type.rb +255 -0
- data/kinde_api/lib/kinde_api/models/get_api_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_api_response_api.rb +272 -0
- data/kinde_api/lib/kinde_api/models/get_api_response_api_applications_inner.rb +285 -0
- data/kinde_api/lib/kinde_api/models/get_api_response_api_scopes_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/get_api_scope_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_api_scopes_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_api_scopes_response_scopes_inner.rb +240 -0
- data/kinde_api/lib/kinde_api/models/get_apis_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_apis_response_apis_inner.rb +261 -0
- data/kinde_api/lib/kinde_api/models/get_apis_response_apis_inner_scopes_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/get_application_response.rb +50 -49
- data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +126 -57
- data/kinde_api/lib/kinde_api/models/get_applications_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_billing_agreements_response.rb +252 -0
- data/kinde_api/lib/kinde_api/models/get_billing_agreements_response_agreements_inner.rb +262 -0
- data/kinde_api/lib/kinde_api/models/get_billing_agreements_response_agreements_inner_entitlements_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/get_billing_entitlements_response.rb +264 -0
- data/kinde_api/lib/kinde_api/models/get_billing_entitlements_response_entitlements_inner.rb +290 -0
- data/kinde_api/lib/kinde_api/models/get_billing_entitlements_response_plans_inner.rb +229 -0
- data/kinde_api/lib/kinde_api/models/get_business_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_business_response_business.rb +326 -0
- data/kinde_api/lib/kinde_api/models/get_categories_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_connections_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_environment_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_environment_response_environment.rb +526 -0
- data/kinde_api/lib/kinde_api/models/get_environment_response_environment_background_color.rb +237 -0
- data/kinde_api/lib/kinde_api/models/get_environment_response_environment_link_color.rb +237 -0
- data/kinde_api/lib/kinde_api/models/get_environment_variable_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_environment_variables_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_event_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_event_response_event.rb +257 -0
- data/kinde_api/lib/kinde_api/models/get_event_types_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_identities_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_industries_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_industries_response_industries_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +52 -50
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +52 -52
- data/kinde_api/lib/kinde_api/models/get_organization_response.rb +547 -0
- data/kinde_api/lib/kinde_api/models/get_organization_response_billing.rb +232 -0
- data/kinde_api/lib/kinde_api/models/get_organization_response_billing_agreements_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/get_organization_users_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +52 -50
- data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_properties_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_property_values_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +40 -42
- data/kinde_api/lib/kinde_api/models/get_role_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_role_response_role.rb +260 -0
- data/kinde_api/lib/kinde_api/models/get_roles_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +52 -50
- data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_timezones_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_timezones_response_timezones_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/get_user_mfa_response.rb +237 -0
- data/kinde_api/lib/kinde_api/models/get_user_mfa_response_mfa.rb +280 -0
- data/kinde_api/lib/kinde_api/models/get_user_sessions_response.rb +248 -0
- data/kinde_api/lib/kinde_api/models/get_user_sessions_response_sessions_inner.rb +331 -0
- data/kinde_api/lib/kinde_api/models/get_webhooks_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/identity.rb +300 -0
- data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +60 -42
- data/kinde_api/lib/kinde_api/models/not_found_response.rb +219 -0
- data/kinde_api/lib/kinde_api/models/not_found_response_errors.rb +228 -0
- data/kinde_api/lib/kinde_api/models/organization_item_schema.rb +272 -0
- data/kinde_api/lib/kinde_api/models/organization_user.rb +122 -62
- data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +73 -59
- data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +47 -46
- data/kinde_api/lib/kinde_api/models/organization_user_role.rb +55 -50
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +55 -50
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions_permissions.rb +38 -41
- data/kinde_api/lib/kinde_api/models/permissions.rb +57 -54
- data/kinde_api/lib/kinde_api/models/property.rb +264 -0
- data/kinde_api/lib/kinde_api/models/property_value.rb +257 -0
- data/kinde_api/lib/kinde_api/models/read_env_logo_response.rb +242 -0
- data/kinde_api/lib/kinde_api/models/read_env_logo_response_logos_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/read_logo_response.rb +242 -0
- data/kinde_api/lib/kinde_api/models/read_logo_response_logos_inner.rb +240 -0
- data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +40 -42
- data/kinde_api/lib/kinde_api/models/replace_connection_request.rb +251 -0
- data/kinde_api/lib/kinde_api/models/replace_connection_request_options.rb +106 -0
- data/kinde_api/lib/kinde_api/models/replace_connection_request_options_one_of.rb +293 -0
- data/kinde_api/lib/kinde_api/models/replace_connection_request_options_one_of1.rb +313 -0
- data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +40 -42
- data/kinde_api/lib/kinde_api/models/replace_mfa_request.rb +276 -0
- data/kinde_api/lib/kinde_api/models/replace_organization_mfa_request.rb +249 -0
- data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +40 -42
- data/kinde_api/lib/kinde_api/models/role.rb +63 -53
- data/kinde_api/lib/kinde_api/models/role_permissions_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/role_scopes_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/roles.rb +68 -53
- data/kinde_api/lib/kinde_api/models/scopes.rb +250 -0
- data/kinde_api/lib/kinde_api/models/search_users_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/search_users_response_results_inner.rb +374 -0
- data/kinde_api/lib/kinde_api/models/set_user_password_request.rb +311 -0
- data/kinde_api/lib/kinde_api/models/subscriber.rb +63 -54
- data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +71 -58
- data/kinde_api/lib/kinde_api/models/success_response.rb +47 -46
- data/kinde_api/lib/kinde_api/models/token_error_response.rb +44 -45
- data/kinde_api/lib/kinde_api/models/token_introspect.rb +63 -58
- data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +42 -44
- data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +48 -49
- data/kinde_api/lib/kinde_api/models/update_api_scope_request.rb +220 -0
- data/kinde_api/lib/kinde_api/models/update_application_request.rb +78 -54
- data/kinde_api/lib/kinde_api/models/update_application_tokens_request.rb +260 -0
- data/kinde_api/lib/kinde_api/models/update_applications_property_request.rb +224 -0
- data/kinde_api/lib/kinde_api/models/update_applications_property_request_value.rb +106 -0
- data/kinde_api/lib/kinde_api/models/update_business_request.rb +320 -0
- data/kinde_api/lib/kinde_api/models/update_category_request.rb +220 -0
- data/kinde_api/lib/kinde_api/models/update_connection_request.rb +251 -0
- data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +40 -43
- data/kinde_api/lib/kinde_api/models/update_environment_variable_request.rb +240 -0
- data/kinde_api/lib/kinde_api/models/update_environment_variable_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/update_identity_request.rb +220 -0
- data/kinde_api/lib/kinde_api/models/update_organization_properties_request.rb +225 -0
- data/kinde_api/lib/kinde_api/models/update_organization_request.rb +209 -91
- data/kinde_api/lib/kinde_api/models/update_organization_sessions_request.rb +284 -0
- data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +40 -42
- data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +59 -55
- data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +76 -57
- data/kinde_api/lib/kinde_api/models/update_property_request.rb +265 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +40 -42
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +44 -45
- data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +66 -56
- data/kinde_api/lib/kinde_api/models/update_roles_request.rb +61 -56
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +75 -52
- data/kinde_api/lib/kinde_api/models/update_user_response.rb +75 -67
- data/kinde_api/lib/kinde_api/models/update_web_hook_request.rb +243 -0
- data/kinde_api/lib/kinde_api/models/update_webhook_response.rb +237 -0
- data/kinde_api/lib/kinde_api/models/update_webhook_response_webhook.rb +219 -0
- data/kinde_api/lib/kinde_api/models/user.rb +138 -97
- data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +47 -46
- data/kinde_api/lib/kinde_api/models/user_identity.rb +44 -45
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +38 -41
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +113 -79
- data/kinde_api/lib/kinde_api/models/users_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +138 -98
- data/kinde_api/lib/kinde_api/models/webhook.rb +267 -0
- data/kinde_api/lib/kinde_api/version.rb +12 -12
- data/kinde_api/lib/kinde_api.rb +160 -36
- data/kinde_api/spec/api/billing_agreements_api_spec.rb +62 -0
- data/kinde_api/spec/api/billing_entitlements_api_spec.rb +52 -0
- data/kinde_api/spec/api/billing_meter_usage_api_spec.rb +47 -0
- data/kinde_api/spec/api/connections_api_spec.rb +112 -0
- data/kinde_api/spec/api/environment_variables_api_spec.rb +95 -0
- data/kinde_api/spec/api/identities_api_spec.rb +72 -0
- data/kinde_api/spec/api/mfa_api_spec.rb +47 -0
- data/kinde_api/spec/api/properties_api_spec.rb +87 -0
- data/kinde_api/spec/api/property_categories_api_spec.rb +75 -0
- data/kinde_api/spec/api/search_api_spec.rb +52 -0
- data/kinde_api/spec/api/webhooks_api_spec.rb +106 -0
- data/kinde_api/spec/api_client_spec.rb +27 -21
- data/kinde_api/spec/configuration_spec.rb +14 -14
- data/kinde_api/spec/models/add_api_scope_request_spec.rb +40 -0
- data/kinde_api/spec/models/add_role_scope_request_spec.rb +34 -0
- data/kinde_api/spec/models/add_role_scope_response_spec.rb +40 -0
- data/kinde_api/spec/models/authorize_app_api_response_spec.rb +52 -0
- data/kinde_api/spec/models/category_spec.rb +40 -0
- data/kinde_api/spec/models/connection_connection_spec.rb +52 -0
- data/kinde_api/spec/models/connection_spec.rb +46 -0
- data/kinde_api/spec/models/create_api_scopes_response_scope_spec.rb +34 -0
- data/kinde_api/spec/models/create_api_scopes_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_apis_response_api_spec.rb +34 -0
- data/kinde_api/spec/models/create_apis_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_billing_agreement_request_spec.rb +52 -0
- data/kinde_api/spec/models/create_category_request_spec.rb +44 -0
- data/kinde_api/spec/models/create_category_response_category_spec.rb +34 -0
- data/kinde_api/spec/models/create_category_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_connection_request_options_one_of1_spec.rb +82 -0
- data/kinde_api/spec/models/create_connection_request_options_one_of2_spec.rb +100 -0
- data/kinde_api/spec/models/create_connection_request_options_one_of_spec.rb +46 -0
- data/kinde_api/spec/models/create_connection_request_options_spec.rb +31 -0
- data/kinde_api/spec/models/create_connection_request_spec.rb +68 -0
- data/kinde_api/spec/models/create_connection_response_connection_spec.rb +34 -0
- data/kinde_api/spec/models/create_connection_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_environment_variable_request_spec.rb +46 -0
- data/kinde_api/spec/models/create_environment_variable_response_environment_variable_spec.rb +34 -0
- data/kinde_api/spec/models/create_environment_variable_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_identity_response_identity_spec.rb +34 -0
- data/kinde_api/spec/models/create_identity_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_meter_usage_record_request_spec.rb +62 -0
- data/kinde_api/spec/models/create_meter_usage_record_response_spec.rb +40 -0
- data/kinde_api/spec/models/create_property_request_spec.rb +78 -0
- data/kinde_api/spec/models/create_property_response_property_spec.rb +34 -0
- data/kinde_api/spec/models/create_property_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_roles_response_role_spec.rb +34 -0
- data/kinde_api/spec/models/create_roles_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_user_identity_request_spec.rb +56 -0
- data/kinde_api/spec/models/create_web_hook_request_spec.rb +52 -0
- data/kinde_api/spec/models/create_webhook_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_webhook_response_webhook_spec.rb +40 -0
- data/kinde_api/spec/models/delete_api_response_spec.rb +40 -0
- data/kinde_api/spec/models/delete_environment_variable_response_spec.rb +40 -0
- data/kinde_api/spec/models/delete_role_scope_response_spec.rb +40 -0
- data/kinde_api/spec/models/delete_webhook_response_spec.rb +40 -0
- data/kinde_api/spec/models/environment_variable_spec.rb +58 -0
- data/kinde_api/spec/models/event_type_spec.rb +58 -0
- data/kinde_api/spec/models/get_api_response_api_applications_inner_spec.rb +56 -0
- data/kinde_api/spec/models/get_api_response_api_scopes_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_api_response_api_spec.rb +64 -0
- data/kinde_api/spec/models/get_api_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_api_scope_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_api_scopes_response_scopes_inner_spec.rb +46 -0
- data/kinde_api/spec/models/get_api_scopes_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_apis_response_apis_inner_scopes_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_apis_response_apis_inner_spec.rb +58 -0
- data/kinde_api/spec/models/get_apis_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_billing_agreements_response_agreements_inner_entitlements_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_billing_agreements_response_agreements_inner_spec.rb +58 -0
- data/kinde_api/spec/models/get_billing_agreements_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_billing_entitlements_response_entitlements_inner_spec.rb +76 -0
- data/kinde_api/spec/models/get_billing_entitlements_response_plans_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_billing_entitlements_response_spec.rb +58 -0
- data/kinde_api/spec/models/get_business_response_business_spec.rb +94 -0
- data/kinde_api/spec/models/get_business_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_categories_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_connections_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_environment_response_environment_background_color_spec.rb +46 -0
- data/kinde_api/spec/models/get_environment_response_environment_link_color_spec.rb +46 -0
- data/kinde_api/spec/models/get_environment_response_environment_spec.rb +192 -0
- data/kinde_api/spec/models/get_environment_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_environment_variable_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_environment_variables_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_event_response_event_spec.rb +58 -0
- data/kinde_api/spec/models/get_event_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_event_types_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_identities_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_industries_response_industries_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_industries_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_organization_response_billing_agreements_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_organization_response_billing_spec.rb +40 -0
- data/kinde_api/spec/models/get_organization_response_spec.rb +204 -0
- data/kinde_api/spec/models/get_properties_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_property_values_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_role_response_role_spec.rb +58 -0
- data/kinde_api/spec/models/get_role_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_timezones_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_timezones_response_timezones_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_user_mfa_response_mfa_spec.rb +70 -0
- data/kinde_api/spec/models/get_user_mfa_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_user_sessions_response_sessions_inner_spec.rb +100 -0
- data/kinde_api/spec/models/get_user_sessions_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_webhooks_response_spec.rb +46 -0
- data/kinde_api/spec/models/identity_spec.rb +82 -0
- data/kinde_api/spec/models/not_found_response_errors_spec.rb +40 -0
- data/kinde_api/spec/models/not_found_response_spec.rb +34 -0
- data/kinde_api/spec/models/organization_item_schema_spec.rb +64 -0
- data/kinde_api/spec/models/property_spec.rb +64 -0
- data/kinde_api/spec/models/property_value_spec.rb +58 -0
- data/kinde_api/spec/models/read_env_logo_response_logos_inner_spec.rb +40 -0
- data/kinde_api/spec/models/read_env_logo_response_spec.rb +46 -0
- data/kinde_api/spec/models/read_logo_response_logos_inner_spec.rb +46 -0
- data/kinde_api/spec/models/read_logo_response_spec.rb +46 -0
- data/kinde_api/spec/models/replace_connection_request_options_one_of1_spec.rb +88 -0
- data/kinde_api/spec/models/replace_connection_request_options_one_of_spec.rb +76 -0
- data/kinde_api/spec/models/replace_connection_request_options_spec.rb +31 -0
- data/kinde_api/spec/models/replace_connection_request_spec.rb +52 -0
- data/kinde_api/spec/models/replace_mfa_request_spec.rb +48 -0
- data/kinde_api/spec/models/replace_organization_mfa_request_spec.rb +38 -0
- data/kinde_api/spec/models/role_permissions_response_spec.rb +52 -0
- data/kinde_api/spec/models/role_scopes_response_spec.rb +46 -0
- data/kinde_api/spec/models/scopes_spec.rb +52 -0
- data/kinde_api/spec/models/search_users_response_results_inner_spec.rb +118 -0
- data/kinde_api/spec/models/search_users_response_spec.rb +46 -0
- data/kinde_api/spec/models/set_user_password_request_spec.rb +66 -0
- data/kinde_api/spec/models/update_api_scope_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_application_tokens_request_spec.rb +58 -0
- data/kinde_api/spec/models/update_applications_property_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_applications_property_request_value_spec.rb +31 -0
- data/kinde_api/spec/models/update_business_request_spec.rb +88 -0
- data/kinde_api/spec/models/update_category_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_connection_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_environment_variable_request_spec.rb +46 -0
- data/kinde_api/spec/models/update_environment_variable_response_spec.rb +40 -0
- data/kinde_api/spec/models/update_identity_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_organization_properties_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_organization_sessions_request_spec.rb +56 -0
- data/kinde_api/spec/models/update_property_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_web_hook_request_spec.rb +46 -0
- data/kinde_api/spec/models/update_webhook_response_spec.rb +46 -0
- data/kinde_api/spec/models/update_webhook_response_webhook_spec.rb +34 -0
- data/kinde_api/spec/models/webhook_spec.rb +64 -0
- data/kinde_api/spec/spec_helper.rb +63 -62
- data/lib/kinde_sdk/client.rb +80 -0
- data/lib/kinde_sdk/version.rb +1 -1
- data/lib/kinde_sdk.rb +7 -4
- data/spec/examples.txt +27 -22
- data/spec/kinde_sdk_spec.rb +94 -0
- metadata +566 -2
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
=begin
|
2
|
+
#Kinde Management API
|
3
|
+
|
4
|
+
# Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1
|
7
|
+
Contact: support@kinde.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
|
+
|
11
|
+
=end
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
@@ -19,12 +19,178 @@ module KindeApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add organization logo
|
23
|
+
# Add organization logo <div> <code>update:organizations</code> </div>
|
24
|
+
# @param org_code [String] The organization's code.
|
25
|
+
# @param type [String] The type of logo to add.
|
26
|
+
# @param logo [File] The logo file to upload.
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [SuccessResponse]
|
29
|
+
def add_organization_logo(org_code, type, logo, opts = {})
|
30
|
+
data, _status_code, _headers = add_organization_logo_with_http_info(org_code, type, logo, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Add organization logo
|
35
|
+
# Add organization logo <div> <code>update:organizations</code> </div>
|
36
|
+
# @param org_code [String] The organization's code.
|
37
|
+
# @param type [String] The type of logo to add.
|
38
|
+
# @param logo [File] The logo file to upload.
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
41
|
+
def add_organization_logo_with_http_info(org_code, type, logo, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.add_organization_logo ...'
|
44
|
+
end
|
45
|
+
# verify the required parameter 'org_code' is set
|
46
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.add_organization_logo"
|
48
|
+
end
|
49
|
+
# verify the required parameter 'type' is set
|
50
|
+
if @api_client.config.client_side_validation && type.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'type' when calling OrganizationsApi.add_organization_logo"
|
52
|
+
end
|
53
|
+
# verify enum value
|
54
|
+
allowable_values = ["dark", "light"]
|
55
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(type)
|
56
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
|
57
|
+
end
|
58
|
+
# verify the required parameter 'logo' is set
|
59
|
+
if @api_client.config.client_side_validation && logo.nil?
|
60
|
+
fail ArgumentError, "Missing the required parameter 'logo' when calling OrganizationsApi.add_organization_logo"
|
61
|
+
end
|
62
|
+
# resource path
|
63
|
+
local_var_path = '/api/v1/organizations/{org_code}/logos/{type}'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'type' + '}', CGI.escape(type.to_s))
|
64
|
+
|
65
|
+
# query parameters
|
66
|
+
query_params = opts[:query_params] || {}
|
67
|
+
|
68
|
+
# header parameters
|
69
|
+
header_params = opts[:header_params] || {}
|
70
|
+
# HTTP header 'Accept' (if needed)
|
71
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
72
|
+
# HTTP header 'Content-Type'
|
73
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
74
|
+
if !content_type.nil?
|
75
|
+
header_params['Content-Type'] = content_type
|
76
|
+
end
|
77
|
+
|
78
|
+
# form parameters
|
79
|
+
form_params = opts[:form_params] || {}
|
80
|
+
form_params['logo'] = logo
|
81
|
+
|
82
|
+
# http body (model)
|
83
|
+
post_body = opts[:debug_body]
|
84
|
+
|
85
|
+
# return_type
|
86
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
87
|
+
|
88
|
+
# auth_names
|
89
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
90
|
+
|
91
|
+
new_options = opts.merge(
|
92
|
+
:operation => :"OrganizationsApi.add_organization_logo",
|
93
|
+
:header_params => header_params,
|
94
|
+
:query_params => query_params,
|
95
|
+
:form_params => form_params,
|
96
|
+
:body => post_body,
|
97
|
+
:auth_names => auth_names,
|
98
|
+
:return_type => return_type
|
99
|
+
)
|
100
|
+
|
101
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#add_organization_logo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
104
|
+
end
|
105
|
+
return data, status_code, headers
|
106
|
+
end
|
107
|
+
|
108
|
+
# Add scope to organization user api
|
109
|
+
# Add a scope to an organization user api. <div> <code>create:organization_user_api_scopes</code> </div>
|
110
|
+
# @param org_code [String] The identifier for the organization.
|
111
|
+
# @param user_id [String] User ID
|
112
|
+
# @param api_id [String] API ID
|
113
|
+
# @param scope_id [String] Scope ID
|
114
|
+
# @param [Hash] opts the optional parameters
|
115
|
+
# @return [nil]
|
116
|
+
def add_organization_user_api_scope(org_code, user_id, api_id, scope_id, opts = {})
|
117
|
+
add_organization_user_api_scope_with_http_info(org_code, user_id, api_id, scope_id, opts)
|
118
|
+
nil
|
119
|
+
end
|
120
|
+
|
121
|
+
# Add scope to organization user api
|
122
|
+
# Add a scope to an organization user api. <div> <code>create:organization_user_api_scopes</code> </div>
|
123
|
+
# @param org_code [String] The identifier for the organization.
|
124
|
+
# @param user_id [String] User ID
|
125
|
+
# @param api_id [String] API ID
|
126
|
+
# @param scope_id [String] Scope ID
|
127
|
+
# @param [Hash] opts the optional parameters
|
128
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
129
|
+
def add_organization_user_api_scope_with_http_info(org_code, user_id, api_id, scope_id, opts = {})
|
130
|
+
if @api_client.config.debugging
|
131
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.add_organization_user_api_scope ...'
|
132
|
+
end
|
133
|
+
# verify the required parameter 'org_code' is set
|
134
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
135
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.add_organization_user_api_scope"
|
136
|
+
end
|
137
|
+
# verify the required parameter 'user_id' is set
|
138
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
139
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.add_organization_user_api_scope"
|
140
|
+
end
|
141
|
+
# verify the required parameter 'api_id' is set
|
142
|
+
if @api_client.config.client_side_validation && api_id.nil?
|
143
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling OrganizationsApi.add_organization_user_api_scope"
|
144
|
+
end
|
145
|
+
# verify the required parameter 'scope_id' is set
|
146
|
+
if @api_client.config.client_side_validation && scope_id.nil?
|
147
|
+
fail ArgumentError, "Missing the required parameter 'scope_id' when calling OrganizationsApi.add_organization_user_api_scope"
|
148
|
+
end
|
149
|
+
# resource path
|
150
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/apis/{api_id}/scopes/{scope_id}'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)).sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s)).sub('{' + 'scope_id' + '}', CGI.escape(scope_id.to_s))
|
151
|
+
|
152
|
+
# query parameters
|
153
|
+
query_params = opts[:query_params] || {}
|
154
|
+
|
155
|
+
# header parameters
|
156
|
+
header_params = opts[:header_params] || {}
|
157
|
+
# HTTP header 'Accept' (if needed)
|
158
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
159
|
+
|
160
|
+
# form parameters
|
161
|
+
form_params = opts[:form_params] || {}
|
162
|
+
|
163
|
+
# http body (model)
|
164
|
+
post_body = opts[:debug_body]
|
165
|
+
|
166
|
+
# return_type
|
167
|
+
return_type = opts[:debug_return_type]
|
168
|
+
|
169
|
+
# auth_names
|
170
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
171
|
+
|
172
|
+
new_options = opts.merge(
|
173
|
+
:operation => :"OrganizationsApi.add_organization_user_api_scope",
|
174
|
+
:header_params => header_params,
|
175
|
+
:query_params => query_params,
|
176
|
+
:form_params => form_params,
|
177
|
+
:body => post_body,
|
178
|
+
:auth_names => auth_names,
|
179
|
+
:return_type => return_type
|
180
|
+
)
|
181
|
+
|
182
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
183
|
+
if @api_client.config.debugging
|
184
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#add_organization_user_api_scope\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
185
|
+
end
|
186
|
+
return data, status_code, headers
|
187
|
+
end
|
22
188
|
|
23
189
|
# Add Organization Users
|
24
|
-
# Add existing users to an organization.
|
190
|
+
# Add existing users to an organization. <div> <code>create:organization_users</code> </div>
|
25
191
|
# @param org_code [String] The organization's code.
|
26
192
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @option opts [AddOrganizationUsersRequest] :add_organization_users_request
|
193
|
+
# @option opts [AddOrganizationUsersRequest] :add_organization_users_request
|
28
194
|
# @return [AddOrganizationUsersResponse]
|
29
195
|
def add_organization_users(org_code, opts = {})
|
30
196
|
data, _status_code, _headers = add_organization_users_with_http_info(org_code, opts)
|
@@ -32,10 +198,10 @@ module KindeApi
|
|
32
198
|
end
|
33
199
|
|
34
200
|
# Add Organization Users
|
35
|
-
# Add existing users to an organization.
|
201
|
+
# Add existing users to an organization. <div> <code>create:organization_users</code> </div>
|
36
202
|
# @param org_code [String] The organization's code.
|
37
203
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [AddOrganizationUsersRequest] :add_organization_users_request
|
204
|
+
# @option opts [AddOrganizationUsersRequest] :add_organization_users_request
|
39
205
|
# @return [Array<(AddOrganizationUsersResponse, Integer, Hash)>] AddOrganizationUsersResponse data, response status code and response headers
|
40
206
|
def add_organization_users_with_http_info(org_code, opts = {})
|
41
207
|
if @api_client.config.debugging
|
@@ -43,12 +209,10 @@ module KindeApi
|
|
43
209
|
end
|
44
210
|
# verify the required parameter 'org_code' is set
|
45
211
|
if @api_client.config.client_side_validation && org_code.nil?
|
46
|
-
|
47
|
-
"Missing the required parameter 'org_code' when calling OrganizationsApi.add_organization_users"
|
212
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.add_organization_users"
|
48
213
|
end
|
49
|
-
|
50
214
|
# resource path
|
51
|
-
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{org_code}', CGI.escape(org_code.to_s))
|
215
|
+
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
52
216
|
|
53
217
|
# query parameters
|
54
218
|
query_params = opts[:query_params] || {}
|
@@ -56,17 +220,18 @@ module KindeApi
|
|
56
220
|
# header parameters
|
57
221
|
header_params = opts[:header_params] || {}
|
58
222
|
# HTTP header 'Accept' (if needed)
|
59
|
-
header_params['Accept'] =
|
60
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
223
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
224
|
# HTTP header 'Content-Type'
|
62
225
|
content_type = @api_client.select_header_content_type(['application/json'])
|
63
|
-
|
226
|
+
if !content_type.nil?
|
227
|
+
header_params['Content-Type'] = content_type
|
228
|
+
end
|
64
229
|
|
65
230
|
# form parameters
|
66
231
|
form_params = opts[:form_params] || {}
|
67
232
|
|
68
233
|
# http body (model)
|
69
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:add_organization_users_request])
|
234
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'add_organization_users_request'])
|
70
235
|
|
71
236
|
# return_type
|
72
237
|
return_type = opts[:debug_return_type] || 'AddOrganizationUsersResponse'
|
@@ -75,24 +240,24 @@ module KindeApi
|
|
75
240
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
76
241
|
|
77
242
|
new_options = opts.merge(
|
78
|
-
operation
|
79
|
-
header_params
|
80
|
-
query_params
|
81
|
-
form_params
|
82
|
-
body
|
83
|
-
auth_names
|
84
|
-
return_type
|
243
|
+
:operation => :"OrganizationsApi.add_organization_users",
|
244
|
+
:header_params => header_params,
|
245
|
+
:query_params => query_params,
|
246
|
+
:form_params => form_params,
|
247
|
+
:body => post_body,
|
248
|
+
:auth_names => auth_names,
|
249
|
+
:return_type => return_type
|
85
250
|
)
|
86
251
|
|
87
252
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
88
253
|
if @api_client.config.debugging
|
89
254
|
@api_client.config.logger.debug "API called: OrganizationsApi#add_organization_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
255
|
end
|
91
|
-
|
256
|
+
return data, status_code, headers
|
92
257
|
end
|
93
258
|
|
94
|
-
# Create
|
95
|
-
# Create
|
259
|
+
# Create organization
|
260
|
+
# Create a new organization. To learn more read about [multi tenancy using organizations](https://docs.kinde.com/build/organizations/multi-tenancy-using-organizations/) <div> <code>create:organizations</code> </div>
|
96
261
|
# @param create_organization_request [CreateOrganizationRequest] Organization details.
|
97
262
|
# @param [Hash] opts the optional parameters
|
98
263
|
# @return [CreateOrganizationResponse]
|
@@ -101,8 +266,8 @@ module KindeApi
|
|
101
266
|
data
|
102
267
|
end
|
103
268
|
|
104
|
-
# Create
|
105
|
-
# Create
|
269
|
+
# Create organization
|
270
|
+
# Create a new organization. To learn more read about [multi tenancy using organizations](https://docs.kinde.com/build/organizations/multi-tenancy-using-organizations/) <div> <code>create:organizations</code> </div>
|
106
271
|
# @param create_organization_request [CreateOrganizationRequest] Organization details.
|
107
272
|
# @param [Hash] opts the optional parameters
|
108
273
|
# @return [Array<(CreateOrganizationResponse, Integer, Hash)>] CreateOrganizationResponse data, response status code and response headers
|
@@ -112,10 +277,8 @@ module KindeApi
|
|
112
277
|
end
|
113
278
|
# verify the required parameter 'create_organization_request' is set
|
114
279
|
if @api_client.config.client_side_validation && create_organization_request.nil?
|
115
|
-
|
116
|
-
"Missing the required parameter 'create_organization_request' when calling OrganizationsApi.create_organization"
|
280
|
+
fail ArgumentError, "Missing the required parameter 'create_organization_request' when calling OrganizationsApi.create_organization"
|
117
281
|
end
|
118
|
-
|
119
282
|
# resource path
|
120
283
|
local_var_path = '/api/v1/organization'
|
121
284
|
|
@@ -125,11 +288,12 @@ module KindeApi
|
|
125
288
|
# header parameters
|
126
289
|
header_params = opts[:header_params] || {}
|
127
290
|
# HTTP header 'Accept' (if needed)
|
128
|
-
header_params['Accept'] =
|
129
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
291
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
130
292
|
# HTTP header 'Content-Type'
|
131
293
|
content_type = @api_client.select_header_content_type(['application/json'])
|
132
|
-
|
294
|
+
if !content_type.nil?
|
295
|
+
header_params['Content-Type'] = content_type
|
296
|
+
end
|
133
297
|
|
134
298
|
# form parameters
|
135
299
|
form_params = opts[:form_params] || {}
|
@@ -144,67 +308,59 @@ module KindeApi
|
|
144
308
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
145
309
|
|
146
310
|
new_options = opts.merge(
|
147
|
-
operation
|
148
|
-
header_params
|
149
|
-
query_params
|
150
|
-
form_params
|
151
|
-
body
|
152
|
-
auth_names
|
153
|
-
return_type
|
311
|
+
:operation => :"OrganizationsApi.create_organization",
|
312
|
+
:header_params => header_params,
|
313
|
+
:query_params => query_params,
|
314
|
+
:form_params => form_params,
|
315
|
+
:body => post_body,
|
316
|
+
:auth_names => auth_names,
|
317
|
+
:return_type => return_type
|
154
318
|
)
|
155
319
|
|
156
320
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
157
321
|
if @api_client.config.debugging
|
158
322
|
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
159
323
|
end
|
160
|
-
|
324
|
+
return data, status_code, headers
|
161
325
|
end
|
162
326
|
|
163
327
|
# Add Organization User Permission
|
164
|
-
# Add permission to an organization user.
|
328
|
+
# Add permission to an organization user. <div> <code>create:organization_user_permissions</code> </div>
|
165
329
|
# @param org_code [String] The organization's code.
|
166
330
|
# @param user_id [String] The user's id.
|
167
331
|
# @param create_organization_user_permission_request [CreateOrganizationUserPermissionRequest] Permission details.
|
168
332
|
# @param [Hash] opts the optional parameters
|
169
333
|
# @return [SuccessResponse]
|
170
334
|
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)
|
335
|
+
data, _status_code, _headers = create_organization_user_permission_with_http_info(org_code, user_id, create_organization_user_permission_request, opts)
|
173
336
|
data
|
174
337
|
end
|
175
338
|
|
176
339
|
# Add Organization User Permission
|
177
|
-
# Add permission to an organization user.
|
340
|
+
# Add permission to an organization user. <div> <code>create:organization_user_permissions</code> </div>
|
178
341
|
# @param org_code [String] The organization's code.
|
179
342
|
# @param user_id [String] The user's id.
|
180
343
|
# @param create_organization_user_permission_request [CreateOrganizationUserPermissionRequest] Permission details.
|
181
344
|
# @param [Hash] opts the optional parameters
|
182
345
|
# @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 = {})
|
346
|
+
def create_organization_user_permission_with_http_info(org_code, user_id, create_organization_user_permission_request, opts = {})
|
185
347
|
if @api_client.config.debugging
|
186
348
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_user_permission ...'
|
187
349
|
end
|
188
350
|
# verify the required parameter 'org_code' is set
|
189
351
|
if @api_client.config.client_side_validation && org_code.nil?
|
190
|
-
|
191
|
-
"Missing the required parameter 'org_code' when calling OrganizationsApi.create_organization_user_permission"
|
352
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.create_organization_user_permission"
|
192
353
|
end
|
193
354
|
# verify the required parameter 'user_id' is set
|
194
355
|
if @api_client.config.client_side_validation && user_id.nil?
|
195
|
-
|
196
|
-
"Missing the required parameter 'user_id' when calling OrganizationsApi.create_organization_user_permission"
|
356
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.create_organization_user_permission"
|
197
357
|
end
|
198
358
|
# verify the required parameter 'create_organization_user_permission_request' is set
|
199
359
|
if @api_client.config.client_side_validation && create_organization_user_permission_request.nil?
|
200
|
-
|
201
|
-
"Missing the required parameter 'create_organization_user_permission_request' when calling OrganizationsApi.create_organization_user_permission"
|
360
|
+
fail ArgumentError, "Missing the required parameter 'create_organization_user_permission_request' when calling OrganizationsApi.create_organization_user_permission"
|
202
361
|
end
|
203
|
-
|
204
362
|
# 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
|
-
)
|
363
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
208
364
|
|
209
365
|
# query parameters
|
210
366
|
query_params = opts[:query_params] || {}
|
@@ -212,11 +368,12 @@ module KindeApi
|
|
212
368
|
# header parameters
|
213
369
|
header_params = opts[:header_params] || {}
|
214
370
|
# HTTP header 'Accept' (if needed)
|
215
|
-
header_params['Accept'] =
|
216
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
371
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
217
372
|
# HTTP header 'Content-Type'
|
218
373
|
content_type = @api_client.select_header_content_type(['application/json'])
|
219
|
-
|
374
|
+
if !content_type.nil?
|
375
|
+
header_params['Content-Type'] = content_type
|
376
|
+
end
|
220
377
|
|
221
378
|
# form parameters
|
222
379
|
form_params = opts[:form_params] || {}
|
@@ -231,67 +388,59 @@ module KindeApi
|
|
231
388
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
232
389
|
|
233
390
|
new_options = opts.merge(
|
234
|
-
operation
|
235
|
-
header_params
|
236
|
-
query_params
|
237
|
-
form_params
|
238
|
-
body
|
239
|
-
auth_names
|
240
|
-
return_type
|
391
|
+
:operation => :"OrganizationsApi.create_organization_user_permission",
|
392
|
+
:header_params => header_params,
|
393
|
+
:query_params => query_params,
|
394
|
+
:form_params => form_params,
|
395
|
+
:body => post_body,
|
396
|
+
:auth_names => auth_names,
|
397
|
+
:return_type => return_type
|
241
398
|
)
|
242
399
|
|
243
400
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
244
401
|
if @api_client.config.debugging
|
245
402
|
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_user_permission\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
246
403
|
end
|
247
|
-
|
404
|
+
return data, status_code, headers
|
248
405
|
end
|
249
406
|
|
250
407
|
# Add Organization User Role
|
251
|
-
# Add role to an organization user.
|
408
|
+
# Add role to an organization user. <div> <code>create:organization_user_roles</code> </div>
|
252
409
|
# @param org_code [String] The organization's code.
|
253
410
|
# @param user_id [String] The user's id.
|
254
411
|
# @param create_organization_user_role_request [CreateOrganizationUserRoleRequest] Role details.
|
255
412
|
# @param [Hash] opts the optional parameters
|
256
413
|
# @return [SuccessResponse]
|
257
414
|
def create_organization_user_role(org_code, user_id, create_organization_user_role_request, opts = {})
|
258
|
-
data, _status_code, _headers = create_organization_user_role_with_http_info(org_code, user_id,
|
259
|
-
create_organization_user_role_request, opts)
|
415
|
+
data, _status_code, _headers = create_organization_user_role_with_http_info(org_code, user_id, create_organization_user_role_request, opts)
|
260
416
|
data
|
261
417
|
end
|
262
418
|
|
263
419
|
# Add Organization User Role
|
264
|
-
# Add role to an organization user.
|
420
|
+
# Add role to an organization user. <div> <code>create:organization_user_roles</code> </div>
|
265
421
|
# @param org_code [String] The organization's code.
|
266
422
|
# @param user_id [String] The user's id.
|
267
423
|
# @param create_organization_user_role_request [CreateOrganizationUserRoleRequest] Role details.
|
268
424
|
# @param [Hash] opts the optional parameters
|
269
425
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
270
|
-
def create_organization_user_role_with_http_info(org_code, user_id, create_organization_user_role_request,
|
271
|
-
opts = {})
|
426
|
+
def create_organization_user_role_with_http_info(org_code, user_id, create_organization_user_role_request, opts = {})
|
272
427
|
if @api_client.config.debugging
|
273
428
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_user_role ...'
|
274
429
|
end
|
275
430
|
# verify the required parameter 'org_code' is set
|
276
431
|
if @api_client.config.client_side_validation && org_code.nil?
|
277
|
-
|
278
|
-
"Missing the required parameter 'org_code' when calling OrganizationsApi.create_organization_user_role"
|
432
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.create_organization_user_role"
|
279
433
|
end
|
280
434
|
# verify the required parameter 'user_id' is set
|
281
435
|
if @api_client.config.client_side_validation && user_id.nil?
|
282
|
-
|
283
|
-
"Missing the required parameter 'user_id' when calling OrganizationsApi.create_organization_user_role"
|
436
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.create_organization_user_role"
|
284
437
|
end
|
285
438
|
# verify the required parameter 'create_organization_user_role_request' is set
|
286
439
|
if @api_client.config.client_side_validation && create_organization_user_role_request.nil?
|
287
|
-
|
288
|
-
"Missing the required parameter 'create_organization_user_role_request' when calling OrganizationsApi.create_organization_user_role"
|
440
|
+
fail ArgumentError, "Missing the required parameter 'create_organization_user_role_request' when calling OrganizationsApi.create_organization_user_role"
|
289
441
|
end
|
290
|
-
|
291
442
|
# resource path
|
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
|
-
)
|
443
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
295
444
|
|
296
445
|
# query parameters
|
297
446
|
query_params = opts[:query_params] || {}
|
@@ -299,11 +448,12 @@ module KindeApi
|
|
299
448
|
# header parameters
|
300
449
|
header_params = opts[:header_params] || {}
|
301
450
|
# HTTP header 'Accept' (if needed)
|
302
|
-
header_params['Accept'] =
|
303
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
451
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
304
452
|
# HTTP header 'Content-Type'
|
305
453
|
content_type = @api_client.select_header_content_type(['application/json'])
|
306
|
-
|
454
|
+
if !content_type.nil?
|
455
|
+
header_params['Content-Type'] = content_type
|
456
|
+
end
|
307
457
|
|
308
458
|
# form parameters
|
309
459
|
form_params = opts[:form_params] || {}
|
@@ -318,49 +468,47 @@ module KindeApi
|
|
318
468
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
319
469
|
|
320
470
|
new_options = opts.merge(
|
321
|
-
operation
|
322
|
-
header_params
|
323
|
-
query_params
|
324
|
-
form_params
|
325
|
-
body
|
326
|
-
auth_names
|
327
|
-
return_type
|
471
|
+
:operation => :"OrganizationsApi.create_organization_user_role",
|
472
|
+
:header_params => header_params,
|
473
|
+
:query_params => query_params,
|
474
|
+
:form_params => form_params,
|
475
|
+
:body => post_body,
|
476
|
+
:auth_names => auth_names,
|
477
|
+
:return_type => return_type
|
328
478
|
)
|
329
479
|
|
330
480
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
331
481
|
if @api_client.config.debugging
|
332
482
|
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_user_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
333
483
|
end
|
334
|
-
|
484
|
+
return data, status_code, headers
|
335
485
|
end
|
336
486
|
|
337
487
|
# Delete Organization
|
338
|
-
# Delete an organization.
|
488
|
+
# Delete an organization. <div> <code>delete:organizations</code> </div>
|
339
489
|
# @param org_code [String] The identifier for the organization.
|
340
490
|
# @param [Hash] opts the optional parameters
|
341
|
-
# @return [
|
491
|
+
# @return [SuccessResponse]
|
342
492
|
def delete_organization(org_code, opts = {})
|
343
|
-
delete_organization_with_http_info(org_code, opts)
|
344
|
-
|
493
|
+
data, _status_code, _headers = delete_organization_with_http_info(org_code, opts)
|
494
|
+
data
|
345
495
|
end
|
346
496
|
|
347
497
|
# Delete Organization
|
348
|
-
# Delete an organization.
|
498
|
+
# Delete an organization. <div> <code>delete:organizations</code> </div>
|
349
499
|
# @param org_code [String] The identifier for the organization.
|
350
500
|
# @param [Hash] opts the optional parameters
|
351
|
-
# @return [Array<(
|
501
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
352
502
|
def delete_organization_with_http_info(org_code, opts = {})
|
353
503
|
if @api_client.config.debugging
|
354
504
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization ...'
|
355
505
|
end
|
356
506
|
# verify the required parameter 'org_code' is set
|
357
507
|
if @api_client.config.client_side_validation && org_code.nil?
|
358
|
-
|
359
|
-
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization"
|
508
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization"
|
360
509
|
end
|
361
|
-
|
362
510
|
# resource path
|
363
|
-
local_var_path = '/api/v1/organization/{org_code}'.sub('{org_code}', CGI.escape(org_code.to_s))
|
511
|
+
local_var_path = '/api/v1/organization/{org_code}'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
364
512
|
|
365
513
|
# query parameters
|
366
514
|
query_params = opts[:query_params] || {}
|
@@ -368,8 +516,7 @@ module KindeApi
|
|
368
516
|
# header parameters
|
369
517
|
header_params = opts[:header_params] || {}
|
370
518
|
# HTTP header 'Accept' (if needed)
|
371
|
-
header_params['Accept'] =
|
372
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
519
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
373
520
|
|
374
521
|
# form parameters
|
375
522
|
form_params = opts[:form_params] || {}
|
@@ -378,42 +525,41 @@ module KindeApi
|
|
378
525
|
post_body = opts[:debug_body]
|
379
526
|
|
380
527
|
# return_type
|
381
|
-
return_type = opts[:debug_return_type]
|
528
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
382
529
|
|
383
530
|
# auth_names
|
384
531
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
385
532
|
|
386
533
|
new_options = opts.merge(
|
387
|
-
operation
|
388
|
-
header_params
|
389
|
-
query_params
|
390
|
-
form_params
|
391
|
-
body
|
392
|
-
auth_names
|
393
|
-
return_type
|
534
|
+
:operation => :"OrganizationsApi.delete_organization",
|
535
|
+
:header_params => header_params,
|
536
|
+
:query_params => query_params,
|
537
|
+
:form_params => form_params,
|
538
|
+
:body => post_body,
|
539
|
+
:auth_names => auth_names,
|
540
|
+
:return_type => return_type
|
394
541
|
)
|
395
542
|
|
396
543
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
397
544
|
if @api_client.config.debugging
|
398
545
|
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
399
546
|
end
|
400
|
-
|
547
|
+
return data, status_code, headers
|
401
548
|
end
|
402
549
|
|
403
550
|
# Delete Organization Feature Flag Override
|
404
|
-
# Delete organization feature flag override.
|
551
|
+
# Delete organization feature flag override. <div> <code>delete:organization_feature_flags</code> </div>
|
405
552
|
# @param org_code [String] The identifier for the organization.
|
406
553
|
# @param feature_flag_key [String] The identifier for the feature flag.
|
407
554
|
# @param [Hash] opts the optional parameters
|
408
555
|
# @return [SuccessResponse]
|
409
556
|
def delete_organization_feature_flag_override(org_code, feature_flag_key, opts = {})
|
410
|
-
data, _status_code, _headers = delete_organization_feature_flag_override_with_http_info(org_code,
|
411
|
-
feature_flag_key, opts)
|
557
|
+
data, _status_code, _headers = delete_organization_feature_flag_override_with_http_info(org_code, feature_flag_key, opts)
|
412
558
|
data
|
413
559
|
end
|
414
560
|
|
415
561
|
# Delete Organization Feature Flag Override
|
416
|
-
# Delete organization feature flag override.
|
562
|
+
# Delete organization feature flag override. <div> <code>delete:organization_feature_flags</code> </div>
|
417
563
|
# @param org_code [String] The identifier for the organization.
|
418
564
|
# @param feature_flag_key [String] The identifier for the feature flag.
|
419
565
|
# @param [Hash] opts the optional parameters
|
@@ -424,19 +570,14 @@ module KindeApi
|
|
424
570
|
end
|
425
571
|
# verify the required parameter 'org_code' is set
|
426
572
|
if @api_client.config.client_side_validation && org_code.nil?
|
427
|
-
|
428
|
-
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_feature_flag_override"
|
573
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_feature_flag_override"
|
429
574
|
end
|
430
575
|
# verify the required parameter 'feature_flag_key' is set
|
431
576
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
432
|
-
|
433
|
-
"Missing the required parameter 'feature_flag_key' when calling OrganizationsApi.delete_organization_feature_flag_override"
|
577
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling OrganizationsApi.delete_organization_feature_flag_override"
|
434
578
|
end
|
435
|
-
|
436
579
|
# resource path
|
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
|
-
)
|
580
|
+
local_var_path = '/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'feature_flag_key' + '}', CGI.escape(feature_flag_key.to_s))
|
440
581
|
|
441
582
|
# query parameters
|
442
583
|
query_params = opts[:query_params] || {}
|
@@ -444,8 +585,7 @@ module KindeApi
|
|
444
585
|
# header parameters
|
445
586
|
header_params = opts[:header_params] || {}
|
446
587
|
# HTTP header 'Accept' (if needed)
|
447
|
-
header_params['Accept'] =
|
448
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
588
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
449
589
|
|
450
590
|
# form parameters
|
451
591
|
form_params = opts[:form_params] || {}
|
@@ -460,24 +600,24 @@ module KindeApi
|
|
460
600
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
461
601
|
|
462
602
|
new_options = opts.merge(
|
463
|
-
operation
|
464
|
-
header_params
|
465
|
-
query_params
|
466
|
-
form_params
|
467
|
-
body
|
468
|
-
auth_names
|
469
|
-
return_type
|
603
|
+
:operation => :"OrganizationsApi.delete_organization_feature_flag_override",
|
604
|
+
:header_params => header_params,
|
605
|
+
:query_params => query_params,
|
606
|
+
:form_params => form_params,
|
607
|
+
:body => post_body,
|
608
|
+
:auth_names => auth_names,
|
609
|
+
:return_type => return_type
|
470
610
|
)
|
471
611
|
|
472
612
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
473
613
|
if @api_client.config.debugging
|
474
614
|
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_feature_flag_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
475
615
|
end
|
476
|
-
|
616
|
+
return data, status_code, headers
|
477
617
|
end
|
478
618
|
|
479
619
|
# Delete Organization Feature Flag Overrides
|
480
|
-
# Delete all organization feature flag overrides.
|
620
|
+
# Delete all organization feature flag overrides. <div> <code>delete:organization_feature_flags</code> </div>
|
481
621
|
# @param org_code [String] The identifier for the organization.
|
482
622
|
# @param [Hash] opts the optional parameters
|
483
623
|
# @return [SuccessResponse]
|
@@ -487,7 +627,7 @@ module KindeApi
|
|
487
627
|
end
|
488
628
|
|
489
629
|
# Delete Organization Feature Flag Overrides
|
490
|
-
# Delete all organization feature flag overrides.
|
630
|
+
# Delete all organization feature flag overrides. <div> <code>delete:organization_feature_flags</code> </div>
|
491
631
|
# @param org_code [String] The identifier for the organization.
|
492
632
|
# @param [Hash] opts the optional parameters
|
493
633
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
@@ -497,13 +637,10 @@ module KindeApi
|
|
497
637
|
end
|
498
638
|
# verify the required parameter 'org_code' is set
|
499
639
|
if @api_client.config.client_side_validation && org_code.nil?
|
500
|
-
|
501
|
-
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_feature_flag_overrides"
|
640
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_feature_flag_overrides"
|
502
641
|
end
|
503
|
-
|
504
642
|
# resource path
|
505
|
-
local_var_path = '/api/v1/organizations/{org_code}/feature_flags'.sub('{org_code}',
|
506
|
-
CGI.escape(org_code.to_s))
|
643
|
+
local_var_path = '/api/v1/organizations/{org_code}/feature_flags'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
507
644
|
|
508
645
|
# query parameters
|
509
646
|
query_params = opts[:query_params] || {}
|
@@ -511,8 +648,7 @@ module KindeApi
|
|
511
648
|
# header parameters
|
512
649
|
header_params = opts[:header_params] || {}
|
513
650
|
# HTTP header 'Accept' (if needed)
|
514
|
-
header_params['Accept'] =
|
515
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
651
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
516
652
|
|
517
653
|
# form parameters
|
518
654
|
form_params = opts[:form_params] || {}
|
@@ -527,66 +663,47 @@ module KindeApi
|
|
527
663
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
528
664
|
|
529
665
|
new_options = opts.merge(
|
530
|
-
operation
|
531
|
-
header_params
|
532
|
-
query_params
|
533
|
-
form_params
|
534
|
-
body
|
535
|
-
auth_names
|
536
|
-
return_type
|
666
|
+
:operation => :"OrganizationsApi.delete_organization_feature_flag_overrides",
|
667
|
+
:header_params => header_params,
|
668
|
+
:query_params => query_params,
|
669
|
+
:form_params => form_params,
|
670
|
+
:body => post_body,
|
671
|
+
:auth_names => auth_names,
|
672
|
+
:return_type => return_type
|
537
673
|
)
|
538
674
|
|
539
675
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
540
676
|
if @api_client.config.debugging
|
541
677
|
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_feature_flag_overrides\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
542
678
|
end
|
543
|
-
|
679
|
+
return data, status_code, headers
|
544
680
|
end
|
545
681
|
|
546
|
-
# Delete
|
547
|
-
# Delete
|
682
|
+
# Delete organization handle
|
683
|
+
# Delete organization handle <div> <code>delete:organization_handles</code> </div>
|
548
684
|
# @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
685
|
# @param [Hash] opts the optional parameters
|
552
686
|
# @return [SuccessResponse]
|
553
|
-
def
|
554
|
-
data, _status_code, _headers =
|
555
|
-
permission_id, opts)
|
687
|
+
def delete_organization_handle(org_code, opts = {})
|
688
|
+
data, _status_code, _headers = delete_organization_handle_with_http_info(org_code, opts)
|
556
689
|
data
|
557
690
|
end
|
558
691
|
|
559
|
-
# Delete
|
560
|
-
# Delete
|
692
|
+
# Delete organization handle
|
693
|
+
# Delete organization handle <div> <code>delete:organization_handles</code> </div>
|
561
694
|
# @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
695
|
# @param [Hash] opts the optional parameters
|
565
696
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
566
|
-
def
|
697
|
+
def delete_organization_handle_with_http_info(org_code, opts = {})
|
567
698
|
if @api_client.config.debugging
|
568
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
699
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_handle ...'
|
569
700
|
end
|
570
701
|
# verify the required parameter 'org_code' is set
|
571
702
|
if @api_client.config.client_side_validation && org_code.nil?
|
572
|
-
|
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"
|
703
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_handle"
|
579
704
|
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
705
|
# resource path
|
587
|
-
local_var_path = '/api/v1/
|
588
|
-
'{permission_id}', CGI.escape(permission_id.to_s)
|
589
|
-
)
|
706
|
+
local_var_path = '/api/v1/organization/{org_code}/handle'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
590
707
|
|
591
708
|
# query parameters
|
592
709
|
query_params = opts[:query_params] || {}
|
@@ -594,8 +711,7 @@ module KindeApi
|
|
594
711
|
# header parameters
|
595
712
|
header_params = opts[:header_params] || {}
|
596
713
|
# HTTP header 'Accept' (if needed)
|
597
|
-
header_params['Accept'] =
|
598
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
714
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
599
715
|
|
600
716
|
# form parameters
|
601
717
|
form_params = opts[:form_params] || {}
|
@@ -610,65 +726,58 @@ module KindeApi
|
|
610
726
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
611
727
|
|
612
728
|
new_options = opts.merge(
|
613
|
-
operation
|
614
|
-
header_params
|
615
|
-
query_params
|
616
|
-
form_params
|
617
|
-
body
|
618
|
-
auth_names
|
619
|
-
return_type
|
729
|
+
:operation => :"OrganizationsApi.delete_organization_handle",
|
730
|
+
:header_params => header_params,
|
731
|
+
:query_params => query_params,
|
732
|
+
:form_params => form_params,
|
733
|
+
:body => post_body,
|
734
|
+
:auth_names => auth_names,
|
735
|
+
:return_type => return_type
|
620
736
|
)
|
621
737
|
|
622
738
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
623
739
|
if @api_client.config.debugging
|
624
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
740
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_handle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
625
741
|
end
|
626
|
-
|
742
|
+
return data, status_code, headers
|
627
743
|
end
|
628
744
|
|
629
|
-
# Delete
|
630
|
-
# Delete
|
745
|
+
# Delete organization logo
|
746
|
+
# Delete organization logo <div> <code>update:organizations</code> </div>
|
631
747
|
# @param org_code [String] The organization's code.
|
632
|
-
# @param
|
633
|
-
# @param role_id [String] The role id.
|
748
|
+
# @param type [String] The type of logo to delete.
|
634
749
|
# @param [Hash] opts the optional parameters
|
635
750
|
# @return [SuccessResponse]
|
636
|
-
def
|
637
|
-
data, _status_code, _headers =
|
751
|
+
def delete_organization_logo(org_code, type, opts = {})
|
752
|
+
data, _status_code, _headers = delete_organization_logo_with_http_info(org_code, type, opts)
|
638
753
|
data
|
639
754
|
end
|
640
755
|
|
641
|
-
# Delete
|
642
|
-
# Delete
|
756
|
+
# Delete organization logo
|
757
|
+
# Delete organization logo <div> <code>update:organizations</code> </div>
|
643
758
|
# @param org_code [String] The organization's code.
|
644
|
-
# @param
|
645
|
-
# @param role_id [String] The role id.
|
759
|
+
# @param type [String] The type of logo to delete.
|
646
760
|
# @param [Hash] opts the optional parameters
|
647
761
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
648
|
-
def
|
762
|
+
def delete_organization_logo_with_http_info(org_code, type, opts = {})
|
649
763
|
if @api_client.config.debugging
|
650
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
764
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_logo ...'
|
651
765
|
end
|
652
766
|
# verify the required parameter 'org_code' is set
|
653
767
|
if @api_client.config.client_side_validation && org_code.nil?
|
654
|
-
|
655
|
-
"Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_user_role"
|
768
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_logo"
|
656
769
|
end
|
657
|
-
# verify the required parameter '
|
658
|
-
if @api_client.config.client_side_validation &&
|
659
|
-
|
660
|
-
"Missing the required parameter 'user_id' when calling OrganizationsApi.delete_organization_user_role"
|
770
|
+
# verify the required parameter 'type' is set
|
771
|
+
if @api_client.config.client_side_validation && type.nil?
|
772
|
+
fail ArgumentError, "Missing the required parameter 'type' when calling OrganizationsApi.delete_organization_logo"
|
661
773
|
end
|
662
|
-
# verify
|
663
|
-
|
664
|
-
|
665
|
-
|
774
|
+
# verify enum value
|
775
|
+
allowable_values = ["dark", "light"]
|
776
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(type)
|
777
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
|
666
778
|
end
|
667
|
-
|
668
779
|
# resource path
|
669
|
-
local_var_path = '/api/v1/organizations/{org_code}/
|
670
|
-
'{role_id}', CGI.escape(role_id.to_s)
|
671
|
-
)
|
780
|
+
local_var_path = '/api/v1/organizations/{org_code}/logos/{type}'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'type' + '}', CGI.escape(type.to_s))
|
672
781
|
|
673
782
|
# query parameters
|
674
783
|
query_params = opts[:query_params] || {}
|
@@ -676,8 +785,7 @@ module KindeApi
|
|
676
785
|
# header parameters
|
677
786
|
header_params = opts[:header_params] || {}
|
678
787
|
# HTTP header 'Accept' (if needed)
|
679
|
-
header_params['Accept'] =
|
680
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
788
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
681
789
|
|
682
790
|
# form parameters
|
683
791
|
form_params = opts[:form_params] || {}
|
@@ -692,53 +800,73 @@ module KindeApi
|
|
692
800
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
693
801
|
|
694
802
|
new_options = opts.merge(
|
695
|
-
operation
|
696
|
-
header_params
|
697
|
-
query_params
|
698
|
-
form_params
|
699
|
-
body
|
700
|
-
auth_names
|
701
|
-
return_type
|
803
|
+
:operation => :"OrganizationsApi.delete_organization_logo",
|
804
|
+
:header_params => header_params,
|
805
|
+
:query_params => query_params,
|
806
|
+
:form_params => form_params,
|
807
|
+
:body => post_body,
|
808
|
+
:auth_names => auth_names,
|
809
|
+
:return_type => return_type
|
702
810
|
)
|
703
811
|
|
704
812
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
705
813
|
if @api_client.config.debugging
|
706
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
814
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_logo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
707
815
|
end
|
708
|
-
|
816
|
+
return data, status_code, headers
|
709
817
|
end
|
710
818
|
|
711
|
-
#
|
712
|
-
#
|
819
|
+
# Delete scope from organization user API
|
820
|
+
# Delete a scope from an organization user api you previously created. <div> <code>delete:organization_user_api_scopes</code> </div>
|
821
|
+
# @param org_code [String] The identifier for the organization.
|
822
|
+
# @param user_id [String] User ID
|
823
|
+
# @param api_id [String] API ID
|
824
|
+
# @param scope_id [String] Scope ID
|
713
825
|
# @param [Hash] opts the optional parameters
|
714
|
-
# @
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
data
|
826
|
+
# @return [nil]
|
827
|
+
def delete_organization_user_api_scope(org_code, user_id, api_id, scope_id, opts = {})
|
828
|
+
delete_organization_user_api_scope_with_http_info(org_code, user_id, api_id, scope_id, opts)
|
829
|
+
nil
|
719
830
|
end
|
720
831
|
|
721
|
-
#
|
722
|
-
#
|
832
|
+
# Delete scope from organization user API
|
833
|
+
# Delete a scope from an organization user api you previously created. <div> <code>delete:organization_user_api_scopes</code> </div>
|
834
|
+
# @param org_code [String] The identifier for the organization.
|
835
|
+
# @param user_id [String] User ID
|
836
|
+
# @param api_id [String] API ID
|
837
|
+
# @param scope_id [String] Scope ID
|
723
838
|
# @param [Hash] opts the optional parameters
|
724
|
-
# @
|
725
|
-
|
726
|
-
def get_organization_with_http_info(opts = {})
|
839
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
840
|
+
def delete_organization_user_api_scope_with_http_info(org_code, user_id, api_id, scope_id, opts = {})
|
727
841
|
if @api_client.config.debugging
|
728
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
842
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_user_api_scope ...'
|
843
|
+
end
|
844
|
+
# verify the required parameter 'org_code' is set
|
845
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
846
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_user_api_scope"
|
847
|
+
end
|
848
|
+
# verify the required parameter 'user_id' is set
|
849
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
850
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.delete_organization_user_api_scope"
|
851
|
+
end
|
852
|
+
# verify the required parameter 'api_id' is set
|
853
|
+
if @api_client.config.client_side_validation && api_id.nil?
|
854
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling OrganizationsApi.delete_organization_user_api_scope"
|
855
|
+
end
|
856
|
+
# verify the required parameter 'scope_id' is set
|
857
|
+
if @api_client.config.client_side_validation && scope_id.nil?
|
858
|
+
fail ArgumentError, "Missing the required parameter 'scope_id' when calling OrganizationsApi.delete_organization_user_api_scope"
|
729
859
|
end
|
730
860
|
# resource path
|
731
|
-
local_var_path = '/api/v1/
|
861
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/apis/{api_id}/scopes/{scope_id}'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)).sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s)).sub('{' + 'scope_id' + '}', CGI.escape(scope_id.to_s))
|
732
862
|
|
733
863
|
# query parameters
|
734
864
|
query_params = opts[:query_params] || {}
|
735
|
-
query_params[:code] = opts[:code] unless opts[:code].nil?
|
736
865
|
|
737
866
|
# header parameters
|
738
867
|
header_params = opts[:header_params] || {}
|
739
868
|
# HTTP header 'Accept' (if needed)
|
740
|
-
header_params['Accept'] =
|
741
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
869
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
742
870
|
|
743
871
|
# form parameters
|
744
872
|
form_params = opts[:form_params] || {}
|
@@ -747,56 +875,65 @@ module KindeApi
|
|
747
875
|
post_body = opts[:debug_body]
|
748
876
|
|
749
877
|
# return_type
|
750
|
-
return_type = opts[:debug_return_type]
|
878
|
+
return_type = opts[:debug_return_type]
|
751
879
|
|
752
880
|
# auth_names
|
753
881
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
754
882
|
|
755
883
|
new_options = opts.merge(
|
756
|
-
operation
|
757
|
-
header_params
|
758
|
-
query_params
|
759
|
-
form_params
|
760
|
-
body
|
761
|
-
auth_names
|
762
|
-
return_type
|
884
|
+
:operation => :"OrganizationsApi.delete_organization_user_api_scope",
|
885
|
+
:header_params => header_params,
|
886
|
+
:query_params => query_params,
|
887
|
+
:form_params => form_params,
|
888
|
+
:body => post_body,
|
889
|
+
:auth_names => auth_names,
|
890
|
+
:return_type => return_type
|
763
891
|
)
|
764
892
|
|
765
|
-
data, status_code, headers = @api_client.call_api(:
|
893
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
766
894
|
if @api_client.config.debugging
|
767
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
895
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_user_api_scope\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
768
896
|
end
|
769
|
-
|
897
|
+
return data, status_code, headers
|
770
898
|
end
|
771
899
|
|
772
|
-
#
|
773
|
-
#
|
774
|
-
# @param org_code [String] The
|
900
|
+
# Delete Organization User Permission
|
901
|
+
# Delete permission for an organization user. <div> <code>delete:organization_user_permissions</code> </div>
|
902
|
+
# @param org_code [String] The organization's code.
|
903
|
+
# @param user_id [String] The user's id.
|
904
|
+
# @param permission_id [String] The permission id.
|
775
905
|
# @param [Hash] opts the optional parameters
|
776
|
-
# @return [
|
777
|
-
def
|
778
|
-
data, _status_code, _headers =
|
906
|
+
# @return [SuccessResponse]
|
907
|
+
def delete_organization_user_permission(org_code, user_id, permission_id, opts = {})
|
908
|
+
data, _status_code, _headers = delete_organization_user_permission_with_http_info(org_code, user_id, permission_id, opts)
|
779
909
|
data
|
780
910
|
end
|
781
911
|
|
782
|
-
#
|
783
|
-
#
|
784
|
-
# @param org_code [String] The
|
912
|
+
# Delete Organization User Permission
|
913
|
+
# Delete permission for an organization user. <div> <code>delete:organization_user_permissions</code> </div>
|
914
|
+
# @param org_code [String] The organization's code.
|
915
|
+
# @param user_id [String] The user's id.
|
916
|
+
# @param permission_id [String] The permission id.
|
785
917
|
# @param [Hash] opts the optional parameters
|
786
|
-
# @return [Array<(
|
787
|
-
def
|
918
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
919
|
+
def delete_organization_user_permission_with_http_info(org_code, user_id, permission_id, opts = {})
|
788
920
|
if @api_client.config.debugging
|
789
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
921
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_user_permission ...'
|
790
922
|
end
|
791
923
|
# verify the required parameter 'org_code' is set
|
792
924
|
if @api_client.config.client_side_validation && org_code.nil?
|
793
|
-
|
794
|
-
|
925
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_user_permission"
|
926
|
+
end
|
927
|
+
# verify the required parameter 'user_id' is set
|
928
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
929
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.delete_organization_user_permission"
|
930
|
+
end
|
931
|
+
# verify the required parameter 'permission_id' is set
|
932
|
+
if @api_client.config.client_side_validation && permission_id.nil?
|
933
|
+
fail ArgumentError, "Missing the required parameter 'permission_id' when calling OrganizationsApi.delete_organization_user_permission"
|
795
934
|
end
|
796
|
-
|
797
935
|
# resource path
|
798
|
-
local_var_path = '/api/v1/organizations/{org_code}/
|
799
|
-
CGI.escape(org_code.to_s))
|
936
|
+
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('{' + 'permission_id' + '}', CGI.escape(permission_id.to_s))
|
800
937
|
|
801
938
|
# query parameters
|
802
939
|
query_params = opts[:query_params] || {}
|
@@ -804,8 +941,7 @@ module KindeApi
|
|
804
941
|
# header parameters
|
805
942
|
header_params = opts[:header_params] || {}
|
806
943
|
# HTTP header 'Accept' (if needed)
|
807
|
-
header_params['Accept'] =
|
808
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
944
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
809
945
|
|
810
946
|
# form parameters
|
811
947
|
form_params = opts[:form_params] || {}
|
@@ -814,76 +950,73 @@ module KindeApi
|
|
814
950
|
post_body = opts[:debug_body]
|
815
951
|
|
816
952
|
# return_type
|
817
|
-
return_type = opts[:debug_return_type] || '
|
953
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
818
954
|
|
819
955
|
# auth_names
|
820
956
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
821
957
|
|
822
958
|
new_options = opts.merge(
|
823
|
-
operation
|
824
|
-
header_params
|
825
|
-
query_params
|
826
|
-
form_params
|
827
|
-
body
|
828
|
-
auth_names
|
829
|
-
return_type
|
959
|
+
:operation => :"OrganizationsApi.delete_organization_user_permission",
|
960
|
+
:header_params => header_params,
|
961
|
+
:query_params => query_params,
|
962
|
+
:form_params => form_params,
|
963
|
+
:body => post_body,
|
964
|
+
:auth_names => auth_names,
|
965
|
+
:return_type => return_type
|
830
966
|
)
|
831
967
|
|
832
|
-
data, status_code, headers = @api_client.call_api(:
|
968
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
833
969
|
if @api_client.config.debugging
|
834
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
970
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_user_permission\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
835
971
|
end
|
836
|
-
|
972
|
+
return data, status_code, headers
|
837
973
|
end
|
838
974
|
|
839
|
-
#
|
840
|
-
#
|
975
|
+
# Delete Organization User Role
|
976
|
+
# Delete role for an organization user. <div> <code>delete:organization_user_roles</code> </div>
|
841
977
|
# @param org_code [String] The organization's code.
|
842
978
|
# @param user_id [String] The user's id.
|
979
|
+
# @param role_id [String] The role id.
|
843
980
|
# @param [Hash] opts the optional parameters
|
844
|
-
# @
|
845
|
-
|
846
|
-
|
847
|
-
data, _status_code, _headers = get_organization_user_permissions_with_http_info(org_code, user_id, opts)
|
981
|
+
# @return [SuccessResponse]
|
982
|
+
def delete_organization_user_role(org_code, user_id, role_id, opts = {})
|
983
|
+
data, _status_code, _headers = delete_organization_user_role_with_http_info(org_code, user_id, role_id, opts)
|
848
984
|
data
|
849
985
|
end
|
850
986
|
|
851
|
-
#
|
852
|
-
#
|
987
|
+
# Delete Organization User Role
|
988
|
+
# Delete role for an organization user. <div> <code>delete:organization_user_roles</code> </div>
|
853
989
|
# @param org_code [String] The organization's code.
|
854
990
|
# @param user_id [String] The user's id.
|
991
|
+
# @param role_id [String] The role id.
|
855
992
|
# @param [Hash] opts the optional parameters
|
856
|
-
# @
|
857
|
-
|
858
|
-
def get_organization_user_permissions_with_http_info(org_code, user_id, opts = {})
|
993
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
994
|
+
def delete_organization_user_role_with_http_info(org_code, user_id, role_id, opts = {})
|
859
995
|
if @api_client.config.debugging
|
860
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
996
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_user_role ...'
|
861
997
|
end
|
862
998
|
# verify the required parameter 'org_code' is set
|
863
999
|
if @api_client.config.client_side_validation && org_code.nil?
|
864
|
-
|
865
|
-
"Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_user_permissions"
|
1000
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_user_role"
|
866
1001
|
end
|
867
1002
|
# verify the required parameter 'user_id' is set
|
868
1003
|
if @api_client.config.client_side_validation && user_id.nil?
|
869
|
-
|
870
|
-
|
1004
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.delete_organization_user_role"
|
1005
|
+
end
|
1006
|
+
# verify the required parameter 'role_id' is set
|
1007
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
1008
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling OrganizationsApi.delete_organization_user_role"
|
871
1009
|
end
|
872
|
-
|
873
1010
|
# resource path
|
874
|
-
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/
|
875
|
-
'{user_id}', CGI.escape(user_id.to_s)
|
876
|
-
)
|
1011
|
+
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('{' + 'role_id' + '}', CGI.escape(role_id.to_s))
|
877
1012
|
|
878
1013
|
# query parameters
|
879
1014
|
query_params = opts[:query_params] || {}
|
880
|
-
query_params[:expand] = opts[:expand] unless opts[:expand].nil?
|
881
1015
|
|
882
1016
|
# header parameters
|
883
1017
|
header_params = opts[:header_params] || {}
|
884
1018
|
# HTTP header 'Accept' (if needed)
|
885
|
-
header_params['Accept'] =
|
886
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
1019
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
887
1020
|
|
888
1021
|
# form parameters
|
889
1022
|
form_params = opts[:form_params] || {}
|
@@ -892,64 +1025,871 @@ module KindeApi
|
|
892
1025
|
post_body = opts[:debug_body]
|
893
1026
|
|
894
1027
|
# return_type
|
895
|
-
return_type = opts[:debug_return_type] || '
|
1028
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
896
1029
|
|
897
1030
|
# auth_names
|
898
1031
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
899
1032
|
|
900
1033
|
new_options = opts.merge(
|
901
|
-
operation
|
902
|
-
header_params
|
903
|
-
query_params
|
904
|
-
form_params
|
905
|
-
body
|
906
|
-
auth_names
|
907
|
-
return_type
|
1034
|
+
:operation => :"OrganizationsApi.delete_organization_user_role",
|
1035
|
+
:header_params => header_params,
|
1036
|
+
:query_params => query_params,
|
1037
|
+
:form_params => form_params,
|
1038
|
+
:body => post_body,
|
1039
|
+
:auth_names => auth_names,
|
1040
|
+
:return_type => return_type
|
908
1041
|
)
|
909
1042
|
|
910
|
-
data, status_code, headers = @api_client.call_api(:
|
1043
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
911
1044
|
if @api_client.config.debugging
|
912
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
1045
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_user_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
913
1046
|
end
|
914
|
-
|
1047
|
+
return data, status_code, headers
|
915
1048
|
end
|
916
1049
|
|
917
|
-
#
|
918
|
-
#
|
919
|
-
# @param
|
920
|
-
# @param
|
1050
|
+
# Enable connection
|
1051
|
+
# Enable an auth connection for an organization. <div> <code>create:organization_connections</code> </div>
|
1052
|
+
# @param organization_code [String] The unique code for the organization.
|
1053
|
+
# @param connection_id [String] The identifier for the connection.
|
921
1054
|
# @param [Hash] opts the optional parameters
|
922
|
-
# @return [
|
923
|
-
def
|
924
|
-
|
925
|
-
|
1055
|
+
# @return [nil]
|
1056
|
+
def enable_org_connection(organization_code, connection_id, opts = {})
|
1057
|
+
enable_org_connection_with_http_info(organization_code, connection_id, opts)
|
1058
|
+
nil
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
# Enable connection
|
1062
|
+
# Enable an auth connection for an organization. <div> <code>create:organization_connections</code> </div>
|
1063
|
+
# @param organization_code [String] The unique code for the organization.
|
1064
|
+
# @param connection_id [String] The identifier for the connection.
|
1065
|
+
# @param [Hash] opts the optional parameters
|
1066
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1067
|
+
def enable_org_connection_with_http_info(organization_code, connection_id, opts = {})
|
1068
|
+
if @api_client.config.debugging
|
1069
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.enable_org_connection ...'
|
1070
|
+
end
|
1071
|
+
# verify the required parameter 'organization_code' is set
|
1072
|
+
if @api_client.config.client_side_validation && organization_code.nil?
|
1073
|
+
fail ArgumentError, "Missing the required parameter 'organization_code' when calling OrganizationsApi.enable_org_connection"
|
1074
|
+
end
|
1075
|
+
# verify the required parameter 'connection_id' is set
|
1076
|
+
if @api_client.config.client_side_validation && connection_id.nil?
|
1077
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling OrganizationsApi.enable_org_connection"
|
1078
|
+
end
|
1079
|
+
# resource path
|
1080
|
+
local_var_path = '/api/v1/organizations/{organization_code}/connections/{connection_id}'.sub('{' + 'organization_code' + '}', CGI.escape(organization_code.to_s)).sub('{' + 'connection_id' + '}', CGI.escape(connection_id.to_s))
|
1081
|
+
|
1082
|
+
# query parameters
|
1083
|
+
query_params = opts[:query_params] || {}
|
1084
|
+
|
1085
|
+
# header parameters
|
1086
|
+
header_params = opts[:header_params] || {}
|
1087
|
+
# HTTP header 'Accept' (if needed)
|
1088
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1089
|
+
|
1090
|
+
# form parameters
|
1091
|
+
form_params = opts[:form_params] || {}
|
1092
|
+
|
1093
|
+
# http body (model)
|
1094
|
+
post_body = opts[:debug_body]
|
1095
|
+
|
1096
|
+
# return_type
|
1097
|
+
return_type = opts[:debug_return_type]
|
1098
|
+
|
1099
|
+
# auth_names
|
1100
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1101
|
+
|
1102
|
+
new_options = opts.merge(
|
1103
|
+
:operation => :"OrganizationsApi.enable_org_connection",
|
1104
|
+
:header_params => header_params,
|
1105
|
+
:query_params => query_params,
|
1106
|
+
:form_params => form_params,
|
1107
|
+
:body => post_body,
|
1108
|
+
:auth_names => auth_names,
|
1109
|
+
:return_type => return_type
|
1110
|
+
)
|
1111
|
+
|
1112
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1113
|
+
if @api_client.config.debugging
|
1114
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#enable_org_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1115
|
+
end
|
1116
|
+
return data, status_code, headers
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
# Get an organization user's MFA configuration
|
1120
|
+
# Get an organization user’s MFA configuration. <div> <code>read:organization_user_mfa</code> </div>
|
1121
|
+
# @param org_code [String] The identifier for the organization.
|
1122
|
+
# @param user_id [String] The identifier for the user
|
1123
|
+
# @param [Hash] opts the optional parameters
|
1124
|
+
# @return [GetUserMfaResponse]
|
1125
|
+
def get_org_user_mfa(org_code, user_id, opts = {})
|
1126
|
+
data, _status_code, _headers = get_org_user_mfa_with_http_info(org_code, user_id, opts)
|
1127
|
+
data
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
# Get an organization user's MFA configuration
|
1131
|
+
# Get an organization user’s MFA configuration. <div> <code>read:organization_user_mfa</code> </div>
|
1132
|
+
# @param org_code [String] The identifier for the organization.
|
1133
|
+
# @param user_id [String] The identifier for the user
|
1134
|
+
# @param [Hash] opts the optional parameters
|
1135
|
+
# @return [Array<(GetUserMfaResponse, Integer, Hash)>] GetUserMfaResponse data, response status code and response headers
|
1136
|
+
def get_org_user_mfa_with_http_info(org_code, user_id, opts = {})
|
1137
|
+
if @api_client.config.debugging
|
1138
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_org_user_mfa ...'
|
1139
|
+
end
|
1140
|
+
# verify the required parameter 'org_code' is set
|
1141
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
1142
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.get_org_user_mfa"
|
1143
|
+
end
|
1144
|
+
# verify the required parameter 'user_id' is set
|
1145
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
1146
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.get_org_user_mfa"
|
1147
|
+
end
|
1148
|
+
# resource path
|
1149
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/mfa'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
1150
|
+
|
1151
|
+
# query parameters
|
1152
|
+
query_params = opts[:query_params] || {}
|
1153
|
+
|
1154
|
+
# header parameters
|
1155
|
+
header_params = opts[:header_params] || {}
|
1156
|
+
# HTTP header 'Accept' (if needed)
|
1157
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1158
|
+
|
1159
|
+
# form parameters
|
1160
|
+
form_params = opts[:form_params] || {}
|
1161
|
+
|
1162
|
+
# http body (model)
|
1163
|
+
post_body = opts[:debug_body]
|
1164
|
+
|
1165
|
+
# return_type
|
1166
|
+
return_type = opts[:debug_return_type] || 'GetUserMfaResponse'
|
1167
|
+
|
1168
|
+
# auth_names
|
1169
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1170
|
+
|
1171
|
+
new_options = opts.merge(
|
1172
|
+
:operation => :"OrganizationsApi.get_org_user_mfa",
|
1173
|
+
:header_params => header_params,
|
1174
|
+
:query_params => query_params,
|
1175
|
+
:form_params => form_params,
|
1176
|
+
:body => post_body,
|
1177
|
+
:auth_names => auth_names,
|
1178
|
+
:return_type => return_type
|
1179
|
+
)
|
1180
|
+
|
1181
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1182
|
+
if @api_client.config.debugging
|
1183
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_org_user_mfa\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1184
|
+
end
|
1185
|
+
return data, status_code, headers
|
1186
|
+
end
|
1187
|
+
|
1188
|
+
# Get organization
|
1189
|
+
# Retrieve organization details by code. <div> <code>read:organizations</code> </div>
|
1190
|
+
# @param [Hash] opts the optional parameters
|
1191
|
+
# @option opts [String] :code The organization's code.
|
1192
|
+
# @return [GetOrganizationResponse]
|
1193
|
+
def get_organization(opts = {})
|
1194
|
+
data, _status_code, _headers = get_organization_with_http_info(opts)
|
1195
|
+
data
|
1196
|
+
end
|
1197
|
+
|
1198
|
+
# Get organization
|
1199
|
+
# Retrieve organization details by code. <div> <code>read:organizations</code> </div>
|
1200
|
+
# @param [Hash] opts the optional parameters
|
1201
|
+
# @option opts [String] :code The organization's code.
|
1202
|
+
# @return [Array<(GetOrganizationResponse, Integer, Hash)>] GetOrganizationResponse data, response status code and response headers
|
1203
|
+
def get_organization_with_http_info(opts = {})
|
1204
|
+
if @api_client.config.debugging
|
1205
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization ...'
|
1206
|
+
end
|
1207
|
+
# resource path
|
1208
|
+
local_var_path = '/api/v1/organization'
|
1209
|
+
|
1210
|
+
# query parameters
|
1211
|
+
query_params = opts[:query_params] || {}
|
1212
|
+
query_params[:'code'] = opts[:'code'] if !opts[:'code'].nil?
|
1213
|
+
|
1214
|
+
# header parameters
|
1215
|
+
header_params = opts[:header_params] || {}
|
1216
|
+
# HTTP header 'Accept' (if needed)
|
1217
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1218
|
+
|
1219
|
+
# form parameters
|
1220
|
+
form_params = opts[:form_params] || {}
|
1221
|
+
|
1222
|
+
# http body (model)
|
1223
|
+
post_body = opts[:debug_body]
|
1224
|
+
|
1225
|
+
# return_type
|
1226
|
+
return_type = opts[:debug_return_type] || 'GetOrganizationResponse'
|
1227
|
+
|
1228
|
+
# auth_names
|
1229
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1230
|
+
|
1231
|
+
new_options = opts.merge(
|
1232
|
+
:operation => :"OrganizationsApi.get_organization",
|
1233
|
+
:header_params => header_params,
|
1234
|
+
:query_params => query_params,
|
1235
|
+
:form_params => form_params,
|
1236
|
+
:body => post_body,
|
1237
|
+
:auth_names => auth_names,
|
1238
|
+
:return_type => return_type
|
1239
|
+
)
|
1240
|
+
|
1241
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1242
|
+
if @api_client.config.debugging
|
1243
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1244
|
+
end
|
1245
|
+
return data, status_code, headers
|
1246
|
+
end
|
1247
|
+
|
1248
|
+
# Get connections
|
1249
|
+
# Gets all connections for an organization. <div> <code>read:organization_connections</code> </div>
|
1250
|
+
# @param organization_code [String] The organization code.
|
1251
|
+
# @param [Hash] opts the optional parameters
|
1252
|
+
# @return [GetConnectionsResponse]
|
1253
|
+
def get_organization_connections(organization_code, opts = {})
|
1254
|
+
data, _status_code, _headers = get_organization_connections_with_http_info(organization_code, opts)
|
1255
|
+
data
|
1256
|
+
end
|
1257
|
+
|
1258
|
+
# Get connections
|
1259
|
+
# Gets all connections for an organization. <div> <code>read:organization_connections</code> </div>
|
1260
|
+
# @param organization_code [String] The organization code.
|
1261
|
+
# @param [Hash] opts the optional parameters
|
1262
|
+
# @return [Array<(GetConnectionsResponse, Integer, Hash)>] GetConnectionsResponse data, response status code and response headers
|
1263
|
+
def get_organization_connections_with_http_info(organization_code, opts = {})
|
1264
|
+
if @api_client.config.debugging
|
1265
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_connections ...'
|
1266
|
+
end
|
1267
|
+
# verify the required parameter 'organization_code' is set
|
1268
|
+
if @api_client.config.client_side_validation && organization_code.nil?
|
1269
|
+
fail ArgumentError, "Missing the required parameter 'organization_code' when calling OrganizationsApi.get_organization_connections"
|
1270
|
+
end
|
1271
|
+
# resource path
|
1272
|
+
local_var_path = '/api/v1/organizations/{organization_code}/connections'.sub('{' + 'organization_code' + '}', CGI.escape(organization_code.to_s))
|
1273
|
+
|
1274
|
+
# query parameters
|
1275
|
+
query_params = opts[:query_params] || {}
|
1276
|
+
|
1277
|
+
# header parameters
|
1278
|
+
header_params = opts[:header_params] || {}
|
1279
|
+
# HTTP header 'Accept' (if needed)
|
1280
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1281
|
+
|
1282
|
+
# form parameters
|
1283
|
+
form_params = opts[:form_params] || {}
|
1284
|
+
|
1285
|
+
# http body (model)
|
1286
|
+
post_body = opts[:debug_body]
|
1287
|
+
|
1288
|
+
# return_type
|
1289
|
+
return_type = opts[:debug_return_type] || 'GetConnectionsResponse'
|
1290
|
+
|
1291
|
+
# auth_names
|
1292
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1293
|
+
|
1294
|
+
new_options = opts.merge(
|
1295
|
+
:operation => :"OrganizationsApi.get_organization_connections",
|
1296
|
+
:header_params => header_params,
|
1297
|
+
:query_params => query_params,
|
1298
|
+
:form_params => form_params,
|
1299
|
+
:body => post_body,
|
1300
|
+
:auth_names => auth_names,
|
1301
|
+
:return_type => return_type
|
1302
|
+
)
|
1303
|
+
|
1304
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1305
|
+
if @api_client.config.debugging
|
1306
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1307
|
+
end
|
1308
|
+
return data, status_code, headers
|
1309
|
+
end
|
1310
|
+
|
1311
|
+
# List Organization Feature Flags
|
1312
|
+
# Get all organization feature flags. <div> <code>read:organization_feature_flags</code> </div>
|
1313
|
+
# @param org_code [String] The identifier for the organization.
|
1314
|
+
# @param [Hash] opts the optional parameters
|
1315
|
+
# @return [GetOrganizationFeatureFlagsResponse]
|
1316
|
+
def get_organization_feature_flags(org_code, opts = {})
|
1317
|
+
data, _status_code, _headers = get_organization_feature_flags_with_http_info(org_code, opts)
|
1318
|
+
data
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
# List Organization Feature Flags
|
1322
|
+
# Get all organization feature flags. <div> <code>read:organization_feature_flags</code> </div>
|
1323
|
+
# @param org_code [String] The identifier for the organization.
|
1324
|
+
# @param [Hash] opts the optional parameters
|
1325
|
+
# @return [Array<(GetOrganizationFeatureFlagsResponse, Integer, Hash)>] GetOrganizationFeatureFlagsResponse data, response status code and response headers
|
1326
|
+
def get_organization_feature_flags_with_http_info(org_code, opts = {})
|
1327
|
+
if @api_client.config.debugging
|
1328
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_feature_flags ...'
|
1329
|
+
end
|
1330
|
+
# verify the required parameter 'org_code' is set
|
1331
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
1332
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_feature_flags"
|
1333
|
+
end
|
1334
|
+
# resource path
|
1335
|
+
local_var_path = '/api/v1/organizations/{org_code}/feature_flags'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
1336
|
+
|
1337
|
+
# query parameters
|
1338
|
+
query_params = opts[:query_params] || {}
|
1339
|
+
|
1340
|
+
# header parameters
|
1341
|
+
header_params = opts[:header_params] || {}
|
1342
|
+
# HTTP header 'Accept' (if needed)
|
1343
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
1344
|
+
|
1345
|
+
# form parameters
|
1346
|
+
form_params = opts[:form_params] || {}
|
1347
|
+
|
1348
|
+
# http body (model)
|
1349
|
+
post_body = opts[:debug_body]
|
1350
|
+
|
1351
|
+
# return_type
|
1352
|
+
return_type = opts[:debug_return_type] || 'GetOrganizationFeatureFlagsResponse'
|
1353
|
+
|
1354
|
+
# auth_names
|
1355
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1356
|
+
|
1357
|
+
new_options = opts.merge(
|
1358
|
+
:operation => :"OrganizationsApi.get_organization_feature_flags",
|
1359
|
+
:header_params => header_params,
|
1360
|
+
:query_params => query_params,
|
1361
|
+
:form_params => form_params,
|
1362
|
+
:body => post_body,
|
1363
|
+
:auth_names => auth_names,
|
1364
|
+
:return_type => return_type
|
1365
|
+
)
|
1366
|
+
|
1367
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1368
|
+
if @api_client.config.debugging
|
1369
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_feature_flags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1370
|
+
end
|
1371
|
+
return data, status_code, headers
|
1372
|
+
end
|
1373
|
+
|
1374
|
+
# Get Organization Property Values
|
1375
|
+
# Gets properties for an organization by org code. <div> <code>read:organization_properties</code> </div>
|
1376
|
+
# @param org_code [String] The organization's code.
|
1377
|
+
# @param [Hash] opts the optional parameters
|
1378
|
+
# @return [GetPropertyValuesResponse]
|
1379
|
+
def get_organization_property_values(org_code, opts = {})
|
1380
|
+
data, _status_code, _headers = get_organization_property_values_with_http_info(org_code, opts)
|
1381
|
+
data
|
1382
|
+
end
|
1383
|
+
|
1384
|
+
# Get Organization Property Values
|
1385
|
+
# Gets properties for an organization by org code. <div> <code>read:organization_properties</code> </div>
|
1386
|
+
# @param org_code [String] The organization's code.
|
1387
|
+
# @param [Hash] opts the optional parameters
|
1388
|
+
# @return [Array<(GetPropertyValuesResponse, Integer, Hash)>] GetPropertyValuesResponse data, response status code and response headers
|
1389
|
+
def get_organization_property_values_with_http_info(org_code, opts = {})
|
1390
|
+
if @api_client.config.debugging
|
1391
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_property_values ...'
|
1392
|
+
end
|
1393
|
+
# verify the required parameter 'org_code' is set
|
1394
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
1395
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_property_values"
|
1396
|
+
end
|
1397
|
+
# resource path
|
1398
|
+
local_var_path = '/api/v1/organizations/{org_code}/properties'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
1399
|
+
|
1400
|
+
# query parameters
|
1401
|
+
query_params = opts[:query_params] || {}
|
1402
|
+
|
1403
|
+
# header parameters
|
1404
|
+
header_params = opts[:header_params] || {}
|
1405
|
+
# HTTP header 'Accept' (if needed)
|
1406
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
1407
|
+
|
1408
|
+
# form parameters
|
1409
|
+
form_params = opts[:form_params] || {}
|
1410
|
+
|
1411
|
+
# http body (model)
|
1412
|
+
post_body = opts[:debug_body]
|
1413
|
+
|
1414
|
+
# return_type
|
1415
|
+
return_type = opts[:debug_return_type] || 'GetPropertyValuesResponse'
|
1416
|
+
|
1417
|
+
# auth_names
|
1418
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1419
|
+
|
1420
|
+
new_options = opts.merge(
|
1421
|
+
:operation => :"OrganizationsApi.get_organization_property_values",
|
1422
|
+
:header_params => header_params,
|
1423
|
+
:query_params => query_params,
|
1424
|
+
:form_params => form_params,
|
1425
|
+
:body => post_body,
|
1426
|
+
:auth_names => auth_names,
|
1427
|
+
:return_type => return_type
|
1428
|
+
)
|
1429
|
+
|
1430
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1431
|
+
if @api_client.config.debugging
|
1432
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_property_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1433
|
+
end
|
1434
|
+
return data, status_code, headers
|
1435
|
+
end
|
1436
|
+
|
1437
|
+
# List Organization User Permissions
|
1438
|
+
# Get permissions for an organization user. <div> <code>read:organization_user_permissions</code> </div>
|
1439
|
+
# @param org_code [String] The organization's code.
|
1440
|
+
# @param user_id [String] The user's id.
|
1441
|
+
# @param [Hash] opts the optional parameters
|
1442
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"roles\".
|
1443
|
+
# @return [GetOrganizationsUserPermissionsResponse]
|
1444
|
+
def get_organization_user_permissions(org_code, user_id, opts = {})
|
1445
|
+
data, _status_code, _headers = get_organization_user_permissions_with_http_info(org_code, user_id, opts)
|
1446
|
+
data
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
# List Organization User Permissions
|
1450
|
+
# Get permissions for an organization user. <div> <code>read:organization_user_permissions</code> </div>
|
1451
|
+
# @param org_code [String] The organization's code.
|
1452
|
+
# @param user_id [String] The user's id.
|
1453
|
+
# @param [Hash] opts the optional parameters
|
1454
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"roles\".
|
1455
|
+
# @return [Array<(GetOrganizationsUserPermissionsResponse, Integer, Hash)>] GetOrganizationsUserPermissionsResponse data, response status code and response headers
|
1456
|
+
def get_organization_user_permissions_with_http_info(org_code, user_id, opts = {})
|
1457
|
+
if @api_client.config.debugging
|
1458
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_user_permissions ...'
|
1459
|
+
end
|
1460
|
+
# verify the required parameter 'org_code' is set
|
1461
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
1462
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_user_permissions"
|
1463
|
+
end
|
1464
|
+
# verify the required parameter 'user_id' is set
|
1465
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
1466
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.get_organization_user_permissions"
|
1467
|
+
end
|
1468
|
+
# resource path
|
1469
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
1470
|
+
|
1471
|
+
# query parameters
|
1472
|
+
query_params = opts[:query_params] || {}
|
1473
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
1474
|
+
|
1475
|
+
# header parameters
|
1476
|
+
header_params = opts[:header_params] || {}
|
1477
|
+
# HTTP header 'Accept' (if needed)
|
1478
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
1479
|
+
|
1480
|
+
# form parameters
|
1481
|
+
form_params = opts[:form_params] || {}
|
1482
|
+
|
1483
|
+
# http body (model)
|
1484
|
+
post_body = opts[:debug_body]
|
1485
|
+
|
1486
|
+
# return_type
|
1487
|
+
return_type = opts[:debug_return_type] || 'GetOrganizationsUserPermissionsResponse'
|
1488
|
+
|
1489
|
+
# auth_names
|
1490
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1491
|
+
|
1492
|
+
new_options = opts.merge(
|
1493
|
+
:operation => :"OrganizationsApi.get_organization_user_permissions",
|
1494
|
+
:header_params => header_params,
|
1495
|
+
:query_params => query_params,
|
1496
|
+
:form_params => form_params,
|
1497
|
+
:body => post_body,
|
1498
|
+
:auth_names => auth_names,
|
1499
|
+
:return_type => return_type
|
1500
|
+
)
|
1501
|
+
|
1502
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1503
|
+
if @api_client.config.debugging
|
1504
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_user_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1505
|
+
end
|
1506
|
+
return data, status_code, headers
|
1507
|
+
end
|
1508
|
+
|
1509
|
+
# List Organization User Roles
|
1510
|
+
# Get roles for an organization user. <div> <code>read:organization_user_roles</code> </div>
|
1511
|
+
# @param org_code [String] The organization's code.
|
1512
|
+
# @param user_id [String] The user's id.
|
1513
|
+
# @param [Hash] opts the optional parameters
|
1514
|
+
# @return [GetOrganizationsUserRolesResponse]
|
1515
|
+
def get_organization_user_roles(org_code, user_id, opts = {})
|
1516
|
+
data, _status_code, _headers = get_organization_user_roles_with_http_info(org_code, user_id, opts)
|
1517
|
+
data
|
926
1518
|
end
|
927
1519
|
|
928
1520
|
# List Organization User Roles
|
929
|
-
# Get roles for an organization user.
|
1521
|
+
# Get roles for an organization user. <div> <code>read:organization_user_roles</code> </div>
|
1522
|
+
# @param org_code [String] The organization's code.
|
1523
|
+
# @param user_id [String] The user's id.
|
1524
|
+
# @param [Hash] opts the optional parameters
|
1525
|
+
# @return [Array<(GetOrganizationsUserRolesResponse, Integer, Hash)>] GetOrganizationsUserRolesResponse data, response status code and response headers
|
1526
|
+
def get_organization_user_roles_with_http_info(org_code, user_id, opts = {})
|
1527
|
+
if @api_client.config.debugging
|
1528
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_user_roles ...'
|
1529
|
+
end
|
1530
|
+
# verify the required parameter 'org_code' is set
|
1531
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
1532
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_user_roles"
|
1533
|
+
end
|
1534
|
+
# verify the required parameter 'user_id' is set
|
1535
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
1536
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.get_organization_user_roles"
|
1537
|
+
end
|
1538
|
+
# resource path
|
1539
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/roles'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
1540
|
+
|
1541
|
+
# query parameters
|
1542
|
+
query_params = opts[:query_params] || {}
|
1543
|
+
|
1544
|
+
# header parameters
|
1545
|
+
header_params = opts[:header_params] || {}
|
1546
|
+
# HTTP header 'Accept' (if needed)
|
1547
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
1548
|
+
|
1549
|
+
# form parameters
|
1550
|
+
form_params = opts[:form_params] || {}
|
1551
|
+
|
1552
|
+
# http body (model)
|
1553
|
+
post_body = opts[:debug_body]
|
1554
|
+
|
1555
|
+
# return_type
|
1556
|
+
return_type = opts[:debug_return_type] || 'GetOrganizationsUserRolesResponse'
|
1557
|
+
|
1558
|
+
# auth_names
|
1559
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1560
|
+
|
1561
|
+
new_options = opts.merge(
|
1562
|
+
:operation => :"OrganizationsApi.get_organization_user_roles",
|
1563
|
+
:header_params => header_params,
|
1564
|
+
:query_params => query_params,
|
1565
|
+
:form_params => form_params,
|
1566
|
+
:body => post_body,
|
1567
|
+
:auth_names => auth_names,
|
1568
|
+
:return_type => return_type
|
1569
|
+
)
|
1570
|
+
|
1571
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1572
|
+
if @api_client.config.debugging
|
1573
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_user_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1574
|
+
end
|
1575
|
+
return data, status_code, headers
|
1576
|
+
end
|
1577
|
+
|
1578
|
+
# Get organization users
|
1579
|
+
# Get user details for all members of an organization. <div> <code>read:organization_users</code> </div>
|
1580
|
+
# @param org_code [String] The organization's code.
|
1581
|
+
# @param [Hash] opts the optional parameters
|
1582
|
+
# @option opts [String] :sort Field and order to sort the result by.
|
1583
|
+
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
1584
|
+
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
1585
|
+
# @option opts [String] :permissions Filter by user permissions comma separated (where all match)
|
1586
|
+
# @option opts [String] :roles Filter by user roles comma separated (where all match)
|
1587
|
+
# @return [GetOrganizationUsersResponse]
|
1588
|
+
def get_organization_users(org_code, opts = {})
|
1589
|
+
data, _status_code, _headers = get_organization_users_with_http_info(org_code, opts)
|
1590
|
+
data
|
1591
|
+
end
|
1592
|
+
|
1593
|
+
# Get organization users
|
1594
|
+
# Get user details for all members of an organization. <div> <code>read:organization_users</code> </div>
|
1595
|
+
# @param org_code [String] The organization's code.
|
1596
|
+
# @param [Hash] opts the optional parameters
|
1597
|
+
# @option opts [String] :sort Field and order to sort the result by.
|
1598
|
+
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
1599
|
+
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
1600
|
+
# @option opts [String] :permissions Filter by user permissions comma separated (where all match)
|
1601
|
+
# @option opts [String] :roles Filter by user roles comma separated (where all match)
|
1602
|
+
# @return [Array<(GetOrganizationUsersResponse, Integer, Hash)>] GetOrganizationUsersResponse data, response status code and response headers
|
1603
|
+
def get_organization_users_with_http_info(org_code, opts = {})
|
1604
|
+
if @api_client.config.debugging
|
1605
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_users ...'
|
1606
|
+
end
|
1607
|
+
# verify the required parameter 'org_code' is set
|
1608
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
1609
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_users"
|
1610
|
+
end
|
1611
|
+
allowable_values = ["name_asc", "name_desc", "email_asc", "email_desc", "id_asc", "id_desc"]
|
1612
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
1613
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
1614
|
+
end
|
1615
|
+
# resource path
|
1616
|
+
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
1617
|
+
|
1618
|
+
# query parameters
|
1619
|
+
query_params = opts[:query_params] || {}
|
1620
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
1621
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1622
|
+
query_params[:'next_token'] = opts[:'next_token'] if !opts[:'next_token'].nil?
|
1623
|
+
query_params[:'permissions'] = opts[:'permissions'] if !opts[:'permissions'].nil?
|
1624
|
+
query_params[:'roles'] = opts[:'roles'] if !opts[:'roles'].nil?
|
1625
|
+
|
1626
|
+
# header parameters
|
1627
|
+
header_params = opts[:header_params] || {}
|
1628
|
+
# HTTP header 'Accept' (if needed)
|
1629
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1630
|
+
|
1631
|
+
# form parameters
|
1632
|
+
form_params = opts[:form_params] || {}
|
1633
|
+
|
1634
|
+
# http body (model)
|
1635
|
+
post_body = opts[:debug_body]
|
1636
|
+
|
1637
|
+
# return_type
|
1638
|
+
return_type = opts[:debug_return_type] || 'GetOrganizationUsersResponse'
|
1639
|
+
|
1640
|
+
# auth_names
|
1641
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1642
|
+
|
1643
|
+
new_options = opts.merge(
|
1644
|
+
:operation => :"OrganizationsApi.get_organization_users",
|
1645
|
+
:header_params => header_params,
|
1646
|
+
:query_params => query_params,
|
1647
|
+
:form_params => form_params,
|
1648
|
+
:body => post_body,
|
1649
|
+
:auth_names => auth_names,
|
1650
|
+
:return_type => return_type
|
1651
|
+
)
|
1652
|
+
|
1653
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1654
|
+
if @api_client.config.debugging
|
1655
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1656
|
+
end
|
1657
|
+
return data, status_code, headers
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
# Get organizations
|
1661
|
+
# Get a list of organizations. <div> <code>read:organizations</code> </div>
|
1662
|
+
# @param [Hash] opts the optional parameters
|
1663
|
+
# @option opts [String] :sort Field and order to sort the result by.
|
1664
|
+
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
1665
|
+
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
1666
|
+
# @return [GetOrganizationsResponse]
|
1667
|
+
def get_organizations(opts = {})
|
1668
|
+
data, _status_code, _headers = get_organizations_with_http_info(opts)
|
1669
|
+
data
|
1670
|
+
end
|
1671
|
+
|
1672
|
+
# Get organizations
|
1673
|
+
# Get a list of organizations. <div> <code>read:organizations</code> </div>
|
1674
|
+
# @param [Hash] opts the optional parameters
|
1675
|
+
# @option opts [String] :sort Field and order to sort the result by.
|
1676
|
+
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
1677
|
+
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
1678
|
+
# @return [Array<(GetOrganizationsResponse, Integer, Hash)>] GetOrganizationsResponse data, response status code and response headers
|
1679
|
+
def get_organizations_with_http_info(opts = {})
|
1680
|
+
if @api_client.config.debugging
|
1681
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organizations ...'
|
1682
|
+
end
|
1683
|
+
allowable_values = ["name_asc", "name_desc", "email_asc", "email_desc"]
|
1684
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
1685
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
1686
|
+
end
|
1687
|
+
# resource path
|
1688
|
+
local_var_path = '/api/v1/organizations'
|
1689
|
+
|
1690
|
+
# query parameters
|
1691
|
+
query_params = opts[:query_params] || {}
|
1692
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
1693
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
1694
|
+
query_params[:'next_token'] = opts[:'next_token'] if !opts[:'next_token'].nil?
|
1695
|
+
|
1696
|
+
# header parameters
|
1697
|
+
header_params = opts[:header_params] || {}
|
1698
|
+
# HTTP header 'Accept' (if needed)
|
1699
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1700
|
+
|
1701
|
+
# form parameters
|
1702
|
+
form_params = opts[:form_params] || {}
|
1703
|
+
|
1704
|
+
# http body (model)
|
1705
|
+
post_body = opts[:debug_body]
|
1706
|
+
|
1707
|
+
# return_type
|
1708
|
+
return_type = opts[:debug_return_type] || 'GetOrganizationsResponse'
|
1709
|
+
|
1710
|
+
# auth_names
|
1711
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1712
|
+
|
1713
|
+
new_options = opts.merge(
|
1714
|
+
:operation => :"OrganizationsApi.get_organizations",
|
1715
|
+
:header_params => header_params,
|
1716
|
+
:query_params => query_params,
|
1717
|
+
:form_params => form_params,
|
1718
|
+
:body => post_body,
|
1719
|
+
:auth_names => auth_names,
|
1720
|
+
:return_type => return_type
|
1721
|
+
)
|
1722
|
+
|
1723
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1724
|
+
if @api_client.config.debugging
|
1725
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1726
|
+
end
|
1727
|
+
return data, status_code, headers
|
1728
|
+
end
|
1729
|
+
|
1730
|
+
# Read organization logo details
|
1731
|
+
# Read organization logo details <div> <code>read:organizations</code> </div>
|
1732
|
+
# @param org_code [String] The organization's code.
|
1733
|
+
# @param [Hash] opts the optional parameters
|
1734
|
+
# @return [ReadLogoResponse]
|
1735
|
+
def read_organization_logo(org_code, opts = {})
|
1736
|
+
data, _status_code, _headers = read_organization_logo_with_http_info(org_code, opts)
|
1737
|
+
data
|
1738
|
+
end
|
1739
|
+
|
1740
|
+
# Read organization logo details
|
1741
|
+
# Read organization logo details <div> <code>read:organizations</code> </div>
|
1742
|
+
# @param org_code [String] The organization's code.
|
1743
|
+
# @param [Hash] opts the optional parameters
|
1744
|
+
# @return [Array<(ReadLogoResponse, Integer, Hash)>] ReadLogoResponse data, response status code and response headers
|
1745
|
+
def read_organization_logo_with_http_info(org_code, opts = {})
|
1746
|
+
if @api_client.config.debugging
|
1747
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.read_organization_logo ...'
|
1748
|
+
end
|
1749
|
+
# verify the required parameter 'org_code' is set
|
1750
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
1751
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.read_organization_logo"
|
1752
|
+
end
|
1753
|
+
# resource path
|
1754
|
+
local_var_path = '/api/v1/organizations/{org_code}/logos'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
1755
|
+
|
1756
|
+
# query parameters
|
1757
|
+
query_params = opts[:query_params] || {}
|
1758
|
+
|
1759
|
+
# header parameters
|
1760
|
+
header_params = opts[:header_params] || {}
|
1761
|
+
# HTTP header 'Accept' (if needed)
|
1762
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1763
|
+
|
1764
|
+
# form parameters
|
1765
|
+
form_params = opts[:form_params] || {}
|
1766
|
+
|
1767
|
+
# http body (model)
|
1768
|
+
post_body = opts[:debug_body]
|
1769
|
+
|
1770
|
+
# return_type
|
1771
|
+
return_type = opts[:debug_return_type] || 'ReadLogoResponse'
|
1772
|
+
|
1773
|
+
# auth_names
|
1774
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1775
|
+
|
1776
|
+
new_options = opts.merge(
|
1777
|
+
:operation => :"OrganizationsApi.read_organization_logo",
|
1778
|
+
:header_params => header_params,
|
1779
|
+
:query_params => query_params,
|
1780
|
+
:form_params => form_params,
|
1781
|
+
:body => post_body,
|
1782
|
+
:auth_names => auth_names,
|
1783
|
+
:return_type => return_type
|
1784
|
+
)
|
1785
|
+
|
1786
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1787
|
+
if @api_client.config.debugging
|
1788
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#read_organization_logo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1789
|
+
end
|
1790
|
+
return data, status_code, headers
|
1791
|
+
end
|
1792
|
+
|
1793
|
+
# Remove connection
|
1794
|
+
# Turn off an auth connection for an organization <div> <code>delete:organization_connections</code> </div>
|
1795
|
+
# @param organization_code [String] The unique code for the organization.
|
1796
|
+
# @param connection_id [String] The identifier for the connection.
|
1797
|
+
# @param [Hash] opts the optional parameters
|
1798
|
+
# @return [SuccessResponse]
|
1799
|
+
def remove_org_connection(organization_code, connection_id, opts = {})
|
1800
|
+
data, _status_code, _headers = remove_org_connection_with_http_info(organization_code, connection_id, opts)
|
1801
|
+
data
|
1802
|
+
end
|
1803
|
+
|
1804
|
+
# Remove connection
|
1805
|
+
# Turn off an auth connection for an organization <div> <code>delete:organization_connections</code> </div>
|
1806
|
+
# @param organization_code [String] The unique code for the organization.
|
1807
|
+
# @param connection_id [String] The identifier for the connection.
|
1808
|
+
# @param [Hash] opts the optional parameters
|
1809
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
1810
|
+
def remove_org_connection_with_http_info(organization_code, connection_id, opts = {})
|
1811
|
+
if @api_client.config.debugging
|
1812
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.remove_org_connection ...'
|
1813
|
+
end
|
1814
|
+
# verify the required parameter 'organization_code' is set
|
1815
|
+
if @api_client.config.client_side_validation && organization_code.nil?
|
1816
|
+
fail ArgumentError, "Missing the required parameter 'organization_code' when calling OrganizationsApi.remove_org_connection"
|
1817
|
+
end
|
1818
|
+
# verify the required parameter 'connection_id' is set
|
1819
|
+
if @api_client.config.client_side_validation && connection_id.nil?
|
1820
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling OrganizationsApi.remove_org_connection"
|
1821
|
+
end
|
1822
|
+
# resource path
|
1823
|
+
local_var_path = '/api/v1/organizations/{organization_code}/connections/{connection_id}'.sub('{' + 'organization_code' + '}', CGI.escape(organization_code.to_s)).sub('{' + 'connection_id' + '}', CGI.escape(connection_id.to_s))
|
1824
|
+
|
1825
|
+
# query parameters
|
1826
|
+
query_params = opts[:query_params] || {}
|
1827
|
+
|
1828
|
+
# header parameters
|
1829
|
+
header_params = opts[:header_params] || {}
|
1830
|
+
# HTTP header 'Accept' (if needed)
|
1831
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1832
|
+
|
1833
|
+
# form parameters
|
1834
|
+
form_params = opts[:form_params] || {}
|
1835
|
+
|
1836
|
+
# http body (model)
|
1837
|
+
post_body = opts[:debug_body]
|
1838
|
+
|
1839
|
+
# return_type
|
1840
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
1841
|
+
|
1842
|
+
# auth_names
|
1843
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1844
|
+
|
1845
|
+
new_options = opts.merge(
|
1846
|
+
:operation => :"OrganizationsApi.remove_org_connection",
|
1847
|
+
:header_params => header_params,
|
1848
|
+
:query_params => query_params,
|
1849
|
+
:form_params => form_params,
|
1850
|
+
:body => post_body,
|
1851
|
+
:auth_names => auth_names,
|
1852
|
+
:return_type => return_type
|
1853
|
+
)
|
1854
|
+
|
1855
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1856
|
+
if @api_client.config.debugging
|
1857
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#remove_org_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1858
|
+
end
|
1859
|
+
return data, status_code, headers
|
1860
|
+
end
|
1861
|
+
|
1862
|
+
# Remove Organization User
|
1863
|
+
# Remove user from an organization. <div> <code>delete:organization_users</code> </div>
|
930
1864
|
# @param org_code [String] The organization's code.
|
931
1865
|
# @param user_id [String] The user's id.
|
932
1866
|
# @param [Hash] opts the optional parameters
|
933
|
-
# @return [
|
934
|
-
def
|
1867
|
+
# @return [SuccessResponse]
|
1868
|
+
def remove_organization_user(org_code, user_id, opts = {})
|
1869
|
+
data, _status_code, _headers = remove_organization_user_with_http_info(org_code, user_id, opts)
|
1870
|
+
data
|
1871
|
+
end
|
1872
|
+
|
1873
|
+
# Remove Organization User
|
1874
|
+
# Remove user from an organization. <div> <code>delete:organization_users</code> </div>
|
1875
|
+
# @param org_code [String] The organization's code.
|
1876
|
+
# @param user_id [String] The user's id.
|
1877
|
+
# @param [Hash] opts the optional parameters
|
1878
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
1879
|
+
def remove_organization_user_with_http_info(org_code, user_id, opts = {})
|
935
1880
|
if @api_client.config.debugging
|
936
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
1881
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.remove_organization_user ...'
|
937
1882
|
end
|
938
1883
|
# verify the required parameter 'org_code' is set
|
939
1884
|
if @api_client.config.client_side_validation && org_code.nil?
|
940
|
-
|
941
|
-
"Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_user_roles"
|
1885
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.remove_organization_user"
|
942
1886
|
end
|
943
1887
|
# verify the required parameter 'user_id' is set
|
944
1888
|
if @api_client.config.client_side_validation && user_id.nil?
|
945
|
-
|
946
|
-
"Missing the required parameter 'user_id' when calling OrganizationsApi.get_organization_user_roles"
|
1889
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.remove_organization_user"
|
947
1890
|
end
|
948
|
-
|
949
1891
|
# resource path
|
950
|
-
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}
|
951
|
-
'{user_id}', CGI.escape(user_id.to_s)
|
952
|
-
)
|
1892
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
953
1893
|
|
954
1894
|
# query parameters
|
955
1895
|
query_params = opts[:query_params] || {}
|
@@ -957,8 +1897,7 @@ module KindeApi
|
|
957
1897
|
# header parameters
|
958
1898
|
header_params = opts[:header_params] || {}
|
959
1899
|
# HTTP header 'Accept' (if needed)
|
960
|
-
header_params['Accept'] =
|
961
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
1900
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
962
1901
|
|
963
1902
|
# form parameters
|
964
1903
|
form_params = opts[:form_params] || {}
|
@@ -967,156 +1906,147 @@ module KindeApi
|
|
967
1906
|
post_body = opts[:debug_body]
|
968
1907
|
|
969
1908
|
# return_type
|
970
|
-
return_type = opts[:debug_return_type] || '
|
1909
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
971
1910
|
|
972
1911
|
# auth_names
|
973
1912
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
974
1913
|
|
975
1914
|
new_options = opts.merge(
|
976
|
-
operation
|
977
|
-
header_params
|
978
|
-
query_params
|
979
|
-
form_params
|
980
|
-
body
|
981
|
-
auth_names
|
982
|
-
return_type
|
1915
|
+
:operation => :"OrganizationsApi.remove_organization_user",
|
1916
|
+
:header_params => header_params,
|
1917
|
+
:query_params => query_params,
|
1918
|
+
:form_params => form_params,
|
1919
|
+
:body => post_body,
|
1920
|
+
:auth_names => auth_names,
|
1921
|
+
:return_type => return_type
|
983
1922
|
)
|
984
1923
|
|
985
|
-
data, status_code, headers = @api_client.call_api(:
|
1924
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
986
1925
|
if @api_client.config.debugging
|
987
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
1926
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#remove_organization_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
988
1927
|
end
|
989
|
-
|
1928
|
+
return data, status_code, headers
|
990
1929
|
end
|
991
1930
|
|
992
|
-
#
|
993
|
-
#
|
994
|
-
# @param org_code [String] The organization
|
1931
|
+
# Replace Organization MFA Configuration
|
1932
|
+
# Replace Organization MFA Configuration. <div> <code>update:organization_mfa</code> </div>
|
1933
|
+
# @param org_code [String] The identifier for the organization
|
1934
|
+
# @param replace_organization_mfa_request [ReplaceOrganizationMFARequest] MFA details.
|
995
1935
|
# @param [Hash] opts the optional parameters
|
996
|
-
# @
|
997
|
-
|
998
|
-
|
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]
|
1002
|
-
def get_organization_users(org_code, opts = {})
|
1003
|
-
data, _status_code, _headers = get_organization_users_with_http_info(org_code, opts)
|
1936
|
+
# @return [SuccessResponse]
|
1937
|
+
def replace_organization_mfa(org_code, replace_organization_mfa_request, opts = {})
|
1938
|
+
data, _status_code, _headers = replace_organization_mfa_with_http_info(org_code, replace_organization_mfa_request, opts)
|
1004
1939
|
data
|
1005
1940
|
end
|
1006
1941
|
|
1007
|
-
#
|
1008
|
-
#
|
1009
|
-
# @param org_code [String] The organization
|
1942
|
+
# Replace Organization MFA Configuration
|
1943
|
+
# Replace Organization MFA Configuration. <div> <code>update:organization_mfa</code> </div>
|
1944
|
+
# @param org_code [String] The identifier for the organization
|
1945
|
+
# @param replace_organization_mfa_request [ReplaceOrganizationMFARequest] MFA details.
|
1010
1946
|
# @param [Hash] opts the optional parameters
|
1011
|
-
# @
|
1012
|
-
|
1013
|
-
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
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
|
1017
|
-
def get_organization_users_with_http_info(org_code, opts = {})
|
1947
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
1948
|
+
def replace_organization_mfa_with_http_info(org_code, replace_organization_mfa_request, opts = {})
|
1018
1949
|
if @api_client.config.debugging
|
1019
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
1950
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.replace_organization_mfa ...'
|
1020
1951
|
end
|
1021
1952
|
# verify the required parameter 'org_code' is set
|
1022
1953
|
if @api_client.config.client_side_validation && org_code.nil?
|
1023
|
-
|
1024
|
-
"Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_users"
|
1954
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.replace_organization_mfa"
|
1025
1955
|
end
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
1956
|
+
# verify the required parameter 'replace_organization_mfa_request' is set
|
1957
|
+
if @api_client.config.client_side_validation && replace_organization_mfa_request.nil?
|
1958
|
+
fail ArgumentError, "Missing the required parameter 'replace_organization_mfa_request' when calling OrganizationsApi.replace_organization_mfa"
|
1030
1959
|
end
|
1031
|
-
|
1032
1960
|
# resource path
|
1033
|
-
local_var_path = '/api/v1/organizations/{org_code}/
|
1961
|
+
local_var_path = '/api/v1/organizations/{org_code}/mfa'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
1034
1962
|
|
1035
1963
|
# query parameters
|
1036
1964
|
query_params = opts[: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?
|
1042
1965
|
|
1043
1966
|
# header parameters
|
1044
1967
|
header_params = opts[:header_params] || {}
|
1045
1968
|
# HTTP header 'Accept' (if needed)
|
1046
|
-
header_params['Accept'] =
|
1047
|
-
|
1969
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1970
|
+
# HTTP header 'Content-Type'
|
1971
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1972
|
+
if !content_type.nil?
|
1973
|
+
header_params['Content-Type'] = content_type
|
1974
|
+
end
|
1048
1975
|
|
1049
1976
|
# form parameters
|
1050
1977
|
form_params = opts[:form_params] || {}
|
1051
1978
|
|
1052
1979
|
# http body (model)
|
1053
|
-
post_body = opts[:debug_body]
|
1980
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(replace_organization_mfa_request)
|
1054
1981
|
|
1055
1982
|
# return_type
|
1056
|
-
return_type = opts[:debug_return_type] || '
|
1983
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
1057
1984
|
|
1058
1985
|
# auth_names
|
1059
1986
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1060
1987
|
|
1061
1988
|
new_options = opts.merge(
|
1062
|
-
operation
|
1063
|
-
header_params
|
1064
|
-
query_params
|
1065
|
-
form_params
|
1066
|
-
body
|
1067
|
-
auth_names
|
1068
|
-
return_type
|
1989
|
+
:operation => :"OrganizationsApi.replace_organization_mfa",
|
1990
|
+
:header_params => header_params,
|
1991
|
+
:query_params => query_params,
|
1992
|
+
:form_params => form_params,
|
1993
|
+
:body => post_body,
|
1994
|
+
:auth_names => auth_names,
|
1995
|
+
:return_type => return_type
|
1069
1996
|
)
|
1070
1997
|
|
1071
|
-
data, status_code, headers = @api_client.call_api(:
|
1998
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1072
1999
|
if @api_client.config.debugging
|
1073
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
2000
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#replace_organization_mfa\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1074
2001
|
end
|
1075
|
-
|
2002
|
+
return data, status_code, headers
|
1076
2003
|
end
|
1077
2004
|
|
1078
|
-
#
|
1079
|
-
#
|
2005
|
+
# Reset specific organization MFA for a user
|
2006
|
+
# Reset a specific organization MFA factor for a user. <div> <code>delete:organization_user_mfa</code> </div>
|
2007
|
+
# @param org_code [String] The identifier for the organization.
|
2008
|
+
# @param user_id [String] The identifier for the user
|
2009
|
+
# @param factor_id [String] The identifier for the MFA factor
|
1080
2010
|
# @param [Hash] opts the optional parameters
|
1081
|
-
# @
|
1082
|
-
|
1083
|
-
|
1084
|
-
# @return [GetOrganizationsResponse]
|
1085
|
-
def get_organizations(opts = {})
|
1086
|
-
data, _status_code, _headers = get_organizations_with_http_info(opts)
|
2011
|
+
# @return [SuccessResponse]
|
2012
|
+
def reset_org_user_mfa(org_code, user_id, factor_id, opts = {})
|
2013
|
+
data, _status_code, _headers = reset_org_user_mfa_with_http_info(org_code, user_id, factor_id, opts)
|
1087
2014
|
data
|
1088
2015
|
end
|
1089
2016
|
|
1090
|
-
#
|
1091
|
-
#
|
2017
|
+
# Reset specific organization MFA for a user
|
2018
|
+
# Reset a specific organization MFA factor for a user. <div> <code>delete:organization_user_mfa</code> </div>
|
2019
|
+
# @param org_code [String] The identifier for the organization.
|
2020
|
+
# @param user_id [String] The identifier for the user
|
2021
|
+
# @param factor_id [String] The identifier for the MFA factor
|
1092
2022
|
# @param [Hash] opts the optional parameters
|
1093
|
-
# @
|
1094
|
-
|
1095
|
-
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
1096
|
-
# @return [Array<(GetOrganizationsResponse, Integer, Hash)>] GetOrganizationsResponse data, response status code and response headers
|
1097
|
-
def get_organizations_with_http_info(opts = {})
|
2023
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
2024
|
+
def reset_org_user_mfa_with_http_info(org_code, user_id, factor_id, opts = {})
|
1098
2025
|
if @api_client.config.debugging
|
1099
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
2026
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.reset_org_user_mfa ...'
|
1100
2027
|
end
|
1101
|
-
|
1102
|
-
if @api_client.config.client_side_validation &&
|
1103
|
-
|
2028
|
+
# verify the required parameter 'org_code' is set
|
2029
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
2030
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.reset_org_user_mfa"
|
2031
|
+
end
|
2032
|
+
# verify the required parameter 'user_id' is set
|
2033
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
2034
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.reset_org_user_mfa"
|
2035
|
+
end
|
2036
|
+
# verify the required parameter 'factor_id' is set
|
2037
|
+
if @api_client.config.client_side_validation && factor_id.nil?
|
2038
|
+
fail ArgumentError, "Missing the required parameter 'factor_id' when calling OrganizationsApi.reset_org_user_mfa"
|
1104
2039
|
end
|
1105
|
-
|
1106
2040
|
# resource path
|
1107
|
-
local_var_path = '/api/v1/organizations'
|
2041
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/mfa/{factor_id}'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)).sub('{' + 'factor_id' + '}', CGI.escape(factor_id.to_s))
|
1108
2042
|
|
1109
2043
|
# query parameters
|
1110
2044
|
query_params = opts[: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?
|
1114
2045
|
|
1115
2046
|
# header parameters
|
1116
2047
|
header_params = opts[:header_params] || {}
|
1117
2048
|
# HTTP header 'Accept' (if needed)
|
1118
|
-
header_params['Accept'] =
|
1119
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
2049
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1120
2050
|
|
1121
2051
|
# form parameters
|
1122
2052
|
form_params = opts[:form_params] || {}
|
@@ -1125,64 +2055,59 @@ module KindeApi
|
|
1125
2055
|
post_body = opts[:debug_body]
|
1126
2056
|
|
1127
2057
|
# return_type
|
1128
|
-
return_type = opts[:debug_return_type] || '
|
2058
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
1129
2059
|
|
1130
2060
|
# auth_names
|
1131
2061
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1132
2062
|
|
1133
2063
|
new_options = opts.merge(
|
1134
|
-
operation
|
1135
|
-
header_params
|
1136
|
-
query_params
|
1137
|
-
form_params
|
1138
|
-
body
|
1139
|
-
auth_names
|
1140
|
-
return_type
|
2064
|
+
:operation => :"OrganizationsApi.reset_org_user_mfa",
|
2065
|
+
:header_params => header_params,
|
2066
|
+
:query_params => query_params,
|
2067
|
+
:form_params => form_params,
|
2068
|
+
:body => post_body,
|
2069
|
+
:auth_names => auth_names,
|
2070
|
+
:return_type => return_type
|
1141
2071
|
)
|
1142
2072
|
|
1143
|
-
data, status_code, headers = @api_client.call_api(:
|
2073
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1144
2074
|
if @api_client.config.debugging
|
1145
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
2075
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#reset_org_user_mfa\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1146
2076
|
end
|
1147
|
-
|
2077
|
+
return data, status_code, headers
|
1148
2078
|
end
|
1149
2079
|
|
1150
|
-
#
|
1151
|
-
#
|
1152
|
-
# @param org_code [String] The organization
|
1153
|
-
# @param user_id [String] The user
|
2080
|
+
# Reset all organization MFA for a user
|
2081
|
+
# Reset all organization MFA factors for a user. <div> <code>delete:organization_user_mfa</code> </div>
|
2082
|
+
# @param org_code [String] The identifier for the organization.
|
2083
|
+
# @param user_id [String] The identifier for the user
|
1154
2084
|
# @param [Hash] opts the optional parameters
|
1155
2085
|
# @return [SuccessResponse]
|
1156
|
-
def
|
1157
|
-
data, _status_code, _headers =
|
2086
|
+
def reset_org_user_mfa_all(org_code, user_id, opts = {})
|
2087
|
+
data, _status_code, _headers = reset_org_user_mfa_all_with_http_info(org_code, user_id, opts)
|
1158
2088
|
data
|
1159
2089
|
end
|
1160
2090
|
|
1161
|
-
#
|
1162
|
-
#
|
1163
|
-
# @param org_code [String] The organization
|
1164
|
-
# @param user_id [String] The user
|
2091
|
+
# Reset all organization MFA for a user
|
2092
|
+
# Reset all organization MFA factors for a user. <div> <code>delete:organization_user_mfa</code> </div>
|
2093
|
+
# @param org_code [String] The identifier for the organization.
|
2094
|
+
# @param user_id [String] The identifier for the user
|
1165
2095
|
# @param [Hash] opts the optional parameters
|
1166
2096
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
1167
|
-
def
|
2097
|
+
def reset_org_user_mfa_all_with_http_info(org_code, user_id, opts = {})
|
1168
2098
|
if @api_client.config.debugging
|
1169
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
2099
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.reset_org_user_mfa_all ...'
|
1170
2100
|
end
|
1171
2101
|
# verify the required parameter 'org_code' is set
|
1172
2102
|
if @api_client.config.client_side_validation && org_code.nil?
|
1173
|
-
|
1174
|
-
"Missing the required parameter 'org_code' when calling OrganizationsApi.remove_organization_user"
|
2103
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.reset_org_user_mfa_all"
|
1175
2104
|
end
|
1176
2105
|
# verify the required parameter 'user_id' is set
|
1177
2106
|
if @api_client.config.client_side_validation && user_id.nil?
|
1178
|
-
|
1179
|
-
"Missing the required parameter 'user_id' when calling OrganizationsApi.remove_organization_user"
|
2107
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.reset_org_user_mfa_all"
|
1180
2108
|
end
|
1181
|
-
|
1182
2109
|
# resource path
|
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
|
-
)
|
2110
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/mfa'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
1186
2111
|
|
1187
2112
|
# query parameters
|
1188
2113
|
query_params = opts[:query_params] || {}
|
@@ -1190,8 +2115,7 @@ module KindeApi
|
|
1190
2115
|
# header parameters
|
1191
2116
|
header_params = opts[:header_params] || {}
|
1192
2117
|
# HTTP header 'Accept' (if needed)
|
1193
|
-
header_params['Accept'] =
|
1194
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
2118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1195
2119
|
|
1196
2120
|
# form parameters
|
1197
2121
|
form_params = opts[:form_params] || {}
|
@@ -1206,26 +2130,27 @@ module KindeApi
|
|
1206
2130
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1207
2131
|
|
1208
2132
|
new_options = opts.merge(
|
1209
|
-
operation
|
1210
|
-
header_params
|
1211
|
-
query_params
|
1212
|
-
form_params
|
1213
|
-
body
|
1214
|
-
auth_names
|
1215
|
-
return_type
|
2133
|
+
:operation => :"OrganizationsApi.reset_org_user_mfa_all",
|
2134
|
+
:header_params => header_params,
|
2135
|
+
:query_params => query_params,
|
2136
|
+
:form_params => form_params,
|
2137
|
+
:body => post_body,
|
2138
|
+
:auth_names => auth_names,
|
2139
|
+
:return_type => return_type
|
1216
2140
|
)
|
1217
2141
|
|
1218
2142
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1219
2143
|
if @api_client.config.debugging
|
1220
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
2144
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#reset_org_user_mfa_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1221
2145
|
end
|
1222
|
-
|
2146
|
+
return data, status_code, headers
|
1223
2147
|
end
|
1224
2148
|
|
1225
2149
|
# Update Organization
|
1226
|
-
# Update an organization.
|
2150
|
+
# Update an organization. <div> <code>update:organizations</code> </div>
|
1227
2151
|
# @param org_code [String] The identifier for the organization.
|
1228
2152
|
# @param [Hash] opts the optional parameters
|
2153
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"billing\".
|
1229
2154
|
# @option opts [UpdateOrganizationRequest] :update_organization_request Organization details.
|
1230
2155
|
# @return [SuccessResponse]
|
1231
2156
|
def update_organization(org_code, opts = {})
|
@@ -1234,9 +2159,10 @@ module KindeApi
|
|
1234
2159
|
end
|
1235
2160
|
|
1236
2161
|
# Update Organization
|
1237
|
-
# Update an organization.
|
2162
|
+
# Update an organization. <div> <code>update:organizations</code> </div>
|
1238
2163
|
# @param org_code [String] The identifier for the organization.
|
1239
2164
|
# @param [Hash] opts the optional parameters
|
2165
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"billing\".
|
1240
2166
|
# @option opts [UpdateOrganizationRequest] :update_organization_request Organization details.
|
1241
2167
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
1242
2168
|
def update_organization_with_http_info(org_code, opts = {})
|
@@ -1245,30 +2171,34 @@ module KindeApi
|
|
1245
2171
|
end
|
1246
2172
|
# verify the required parameter 'org_code' is set
|
1247
2173
|
if @api_client.config.client_side_validation && org_code.nil?
|
1248
|
-
|
1249
|
-
|
2174
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization"
|
2175
|
+
end
|
2176
|
+
allowable_values = ["billing"]
|
2177
|
+
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
2178
|
+
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
1250
2179
|
end
|
1251
|
-
|
1252
2180
|
# resource path
|
1253
|
-
local_var_path = '/api/v1/organization/{org_code}'.sub('{org_code}', CGI.escape(org_code.to_s))
|
2181
|
+
local_var_path = '/api/v1/organization/{org_code}'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
1254
2182
|
|
1255
2183
|
# query parameters
|
1256
2184
|
query_params = opts[:query_params] || {}
|
2185
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
1257
2186
|
|
1258
2187
|
# header parameters
|
1259
2188
|
header_params = opts[:header_params] || {}
|
1260
2189
|
# HTTP header 'Accept' (if needed)
|
1261
|
-
header_params['Accept'] =
|
1262
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
2190
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1263
2191
|
# HTTP header 'Content-Type'
|
1264
2192
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1265
|
-
|
2193
|
+
if !content_type.nil?
|
2194
|
+
header_params['Content-Type'] = content_type
|
2195
|
+
end
|
1266
2196
|
|
1267
2197
|
# form parameters
|
1268
2198
|
form_params = opts[:form_params] || {}
|
1269
2199
|
|
1270
2200
|
# http body (model)
|
1271
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:update_organization_request])
|
2201
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_organization_request'])
|
1272
2202
|
|
1273
2203
|
# return_type
|
1274
2204
|
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
@@ -1277,37 +2207,36 @@ module KindeApi
|
|
1277
2207
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1278
2208
|
|
1279
2209
|
new_options = opts.merge(
|
1280
|
-
operation
|
1281
|
-
header_params
|
1282
|
-
query_params
|
1283
|
-
form_params
|
1284
|
-
body
|
1285
|
-
auth_names
|
1286
|
-
return_type
|
2210
|
+
:operation => :"OrganizationsApi.update_organization",
|
2211
|
+
:header_params => header_params,
|
2212
|
+
:query_params => query_params,
|
2213
|
+
:form_params => form_params,
|
2214
|
+
:body => post_body,
|
2215
|
+
:auth_names => auth_names,
|
2216
|
+
:return_type => return_type
|
1287
2217
|
)
|
1288
2218
|
|
1289
2219
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1290
2220
|
if @api_client.config.debugging
|
1291
2221
|
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1292
2222
|
end
|
1293
|
-
|
2223
|
+
return data, status_code, headers
|
1294
2224
|
end
|
1295
2225
|
|
1296
2226
|
# Update Organization Feature Flag Override
|
1297
|
-
# Update organization feature flag override.
|
2227
|
+
# Update organization feature flag override. <div> <code>update:organization_feature_flags</code> </div>
|
1298
2228
|
# @param org_code [String] The identifier for the organization
|
1299
2229
|
# @param feature_flag_key [String] The identifier for the feature flag
|
1300
2230
|
# @param value [String] Override value
|
1301
2231
|
# @param [Hash] opts the optional parameters
|
1302
2232
|
# @return [SuccessResponse]
|
1303
2233
|
def update_organization_feature_flag_override(org_code, feature_flag_key, value, opts = {})
|
1304
|
-
data, _status_code, _headers = update_organization_feature_flag_override_with_http_info(org_code,
|
1305
|
-
feature_flag_key, value, opts)
|
2234
|
+
data, _status_code, _headers = update_organization_feature_flag_override_with_http_info(org_code, feature_flag_key, value, opts)
|
1306
2235
|
data
|
1307
2236
|
end
|
1308
2237
|
|
1309
2238
|
# Update Organization Feature Flag Override
|
1310
|
-
# Update organization feature flag override.
|
2239
|
+
# Update organization feature flag override. <div> <code>update:organization_feature_flags</code> </div>
|
1311
2240
|
# @param org_code [String] The identifier for the organization
|
1312
2241
|
# @param feature_flag_key [String] The identifier for the feature flag
|
1313
2242
|
# @param value [String] Override value
|
@@ -1319,34 +2248,177 @@ module KindeApi
|
|
1319
2248
|
end
|
1320
2249
|
# verify the required parameter 'org_code' is set
|
1321
2250
|
if @api_client.config.client_side_validation && org_code.nil?
|
1322
|
-
|
1323
|
-
"Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization_feature_flag_override"
|
2251
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization_feature_flag_override"
|
1324
2252
|
end
|
1325
2253
|
# verify the required parameter 'feature_flag_key' is set
|
1326
2254
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
1327
|
-
|
1328
|
-
"Missing the required parameter 'feature_flag_key' when calling OrganizationsApi.update_organization_feature_flag_override"
|
2255
|
+
fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling OrganizationsApi.update_organization_feature_flag_override"
|
1329
2256
|
end
|
1330
2257
|
# verify the required parameter 'value' is set
|
1331
2258
|
if @api_client.config.client_side_validation && value.nil?
|
1332
|
-
|
1333
|
-
|
2259
|
+
fail ArgumentError, "Missing the required parameter 'value' when calling OrganizationsApi.update_organization_feature_flag_override"
|
2260
|
+
end
|
2261
|
+
# resource path
|
2262
|
+
local_var_path = '/api/v1/organizations/{org_code}/feature_flags/{feature_flag_key}'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'feature_flag_key' + '}', CGI.escape(feature_flag_key.to_s))
|
2263
|
+
|
2264
|
+
# query parameters
|
2265
|
+
query_params = opts[:query_params] || {}
|
2266
|
+
query_params[:'value'] = value
|
2267
|
+
|
2268
|
+
# header parameters
|
2269
|
+
header_params = opts[:header_params] || {}
|
2270
|
+
# HTTP header 'Accept' (if needed)
|
2271
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
2272
|
+
|
2273
|
+
# form parameters
|
2274
|
+
form_params = opts[:form_params] || {}
|
2275
|
+
|
2276
|
+
# http body (model)
|
2277
|
+
post_body = opts[:debug_body]
|
2278
|
+
|
2279
|
+
# return_type
|
2280
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
2281
|
+
|
2282
|
+
# auth_names
|
2283
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
2284
|
+
|
2285
|
+
new_options = opts.merge(
|
2286
|
+
:operation => :"OrganizationsApi.update_organization_feature_flag_override",
|
2287
|
+
:header_params => header_params,
|
2288
|
+
:query_params => query_params,
|
2289
|
+
:form_params => form_params,
|
2290
|
+
:body => post_body,
|
2291
|
+
:auth_names => auth_names,
|
2292
|
+
:return_type => return_type
|
2293
|
+
)
|
2294
|
+
|
2295
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2296
|
+
if @api_client.config.debugging
|
2297
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_feature_flag_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1334
2298
|
end
|
2299
|
+
return data, status_code, headers
|
2300
|
+
end
|
2301
|
+
|
2302
|
+
# Update Organization Property values
|
2303
|
+
# Update organization property values. <div> <code>update:organization_properties</code> </div>
|
2304
|
+
# @param org_code [String] The identifier for the organization
|
2305
|
+
# @param update_organization_properties_request [UpdateOrganizationPropertiesRequest] Properties to update.
|
2306
|
+
# @param [Hash] opts the optional parameters
|
2307
|
+
# @return [SuccessResponse]
|
2308
|
+
def update_organization_properties(org_code, update_organization_properties_request, opts = {})
|
2309
|
+
data, _status_code, _headers = update_organization_properties_with_http_info(org_code, update_organization_properties_request, opts)
|
2310
|
+
data
|
2311
|
+
end
|
1335
2312
|
|
2313
|
+
# Update Organization Property values
|
2314
|
+
# Update organization property values. <div> <code>update:organization_properties</code> </div>
|
2315
|
+
# @param org_code [String] The identifier for the organization
|
2316
|
+
# @param update_organization_properties_request [UpdateOrganizationPropertiesRequest] Properties to update.
|
2317
|
+
# @param [Hash] opts the optional parameters
|
2318
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
2319
|
+
def update_organization_properties_with_http_info(org_code, update_organization_properties_request, opts = {})
|
2320
|
+
if @api_client.config.debugging
|
2321
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_properties ...'
|
2322
|
+
end
|
2323
|
+
# verify the required parameter 'org_code' is set
|
2324
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
2325
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization_properties"
|
2326
|
+
end
|
2327
|
+
# verify the required parameter 'update_organization_properties_request' is set
|
2328
|
+
if @api_client.config.client_side_validation && update_organization_properties_request.nil?
|
2329
|
+
fail ArgumentError, "Missing the required parameter 'update_organization_properties_request' when calling OrganizationsApi.update_organization_properties"
|
2330
|
+
end
|
1336
2331
|
# resource path
|
1337
|
-
local_var_path = '/api/v1/organizations/{org_code}/
|
1338
|
-
|
2332
|
+
local_var_path = '/api/v1/organizations/{org_code}/properties'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
2333
|
+
|
2334
|
+
# query parameters
|
2335
|
+
query_params = opts[:query_params] || {}
|
2336
|
+
|
2337
|
+
# header parameters
|
2338
|
+
header_params = opts[:header_params] || {}
|
2339
|
+
# HTTP header 'Accept' (if needed)
|
2340
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
2341
|
+
# HTTP header 'Content-Type'
|
2342
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2343
|
+
if !content_type.nil?
|
2344
|
+
header_params['Content-Type'] = content_type
|
2345
|
+
end
|
2346
|
+
|
2347
|
+
# form parameters
|
2348
|
+
form_params = opts[:form_params] || {}
|
2349
|
+
|
2350
|
+
# http body (model)
|
2351
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_properties_request)
|
2352
|
+
|
2353
|
+
# return_type
|
2354
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
2355
|
+
|
2356
|
+
# auth_names
|
2357
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
2358
|
+
|
2359
|
+
new_options = opts.merge(
|
2360
|
+
:operation => :"OrganizationsApi.update_organization_properties",
|
2361
|
+
:header_params => header_params,
|
2362
|
+
:query_params => query_params,
|
2363
|
+
:form_params => form_params,
|
2364
|
+
:body => post_body,
|
2365
|
+
:auth_names => auth_names,
|
2366
|
+
:return_type => return_type
|
1339
2367
|
)
|
1340
2368
|
|
2369
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2370
|
+
if @api_client.config.debugging
|
2371
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_properties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2372
|
+
end
|
2373
|
+
return data, status_code, headers
|
2374
|
+
end
|
2375
|
+
|
2376
|
+
# Update Organization Property value
|
2377
|
+
# Update organization property value. <div> <code>update:organization_properties</code> </div>
|
2378
|
+
# @param org_code [String] The identifier for the organization
|
2379
|
+
# @param property_key [String] The identifier for the property
|
2380
|
+
# @param value [String] The new property value
|
2381
|
+
# @param [Hash] opts the optional parameters
|
2382
|
+
# @return [SuccessResponse]
|
2383
|
+
def update_organization_property(org_code, property_key, value, opts = {})
|
2384
|
+
data, _status_code, _headers = update_organization_property_with_http_info(org_code, property_key, value, opts)
|
2385
|
+
data
|
2386
|
+
end
|
2387
|
+
|
2388
|
+
# Update Organization Property value
|
2389
|
+
# Update organization property value. <div> <code>update:organization_properties</code> </div>
|
2390
|
+
# @param org_code [String] The identifier for the organization
|
2391
|
+
# @param property_key [String] The identifier for the property
|
2392
|
+
# @param value [String] The new property value
|
2393
|
+
# @param [Hash] opts the optional parameters
|
2394
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
2395
|
+
def update_organization_property_with_http_info(org_code, property_key, value, opts = {})
|
2396
|
+
if @api_client.config.debugging
|
2397
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_property ...'
|
2398
|
+
end
|
2399
|
+
# verify the required parameter 'org_code' is set
|
2400
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
2401
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization_property"
|
2402
|
+
end
|
2403
|
+
# verify the required parameter 'property_key' is set
|
2404
|
+
if @api_client.config.client_side_validation && property_key.nil?
|
2405
|
+
fail ArgumentError, "Missing the required parameter 'property_key' when calling OrganizationsApi.update_organization_property"
|
2406
|
+
end
|
2407
|
+
# verify the required parameter 'value' is set
|
2408
|
+
if @api_client.config.client_side_validation && value.nil?
|
2409
|
+
fail ArgumentError, "Missing the required parameter 'value' when calling OrganizationsApi.update_organization_property"
|
2410
|
+
end
|
2411
|
+
# resource path
|
2412
|
+
local_var_path = '/api/v1/organizations/{org_code}/properties/{property_key}'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'property_key' + '}', CGI.escape(property_key.to_s))
|
2413
|
+
|
1341
2414
|
# query parameters
|
1342
2415
|
query_params = opts[:query_params] || {}
|
1343
|
-
query_params[:value] = value
|
2416
|
+
query_params[:'value'] = value
|
1344
2417
|
|
1345
2418
|
# header parameters
|
1346
2419
|
header_params = opts[:header_params] || {}
|
1347
2420
|
# HTTP header 'Accept' (if needed)
|
1348
|
-
header_params['Accept'] =
|
1349
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
2421
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
1350
2422
|
|
1351
2423
|
# form parameters
|
1352
2424
|
form_params = opts[:form_params] || {}
|
@@ -1361,27 +2433,101 @@ module KindeApi
|
|
1361
2433
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1362
2434
|
|
1363
2435
|
new_options = opts.merge(
|
1364
|
-
operation
|
1365
|
-
header_params
|
1366
|
-
query_params
|
1367
|
-
form_params
|
1368
|
-
body
|
1369
|
-
auth_names
|
1370
|
-
return_type
|
2436
|
+
:operation => :"OrganizationsApi.update_organization_property",
|
2437
|
+
:header_params => header_params,
|
2438
|
+
:query_params => query_params,
|
2439
|
+
:form_params => form_params,
|
2440
|
+
:body => post_body,
|
2441
|
+
:auth_names => auth_names,
|
2442
|
+
:return_type => return_type
|
2443
|
+
)
|
2444
|
+
|
2445
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2446
|
+
if @api_client.config.debugging
|
2447
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_property\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2448
|
+
end
|
2449
|
+
return data, status_code, headers
|
2450
|
+
end
|
2451
|
+
|
2452
|
+
# Update organization session configuration
|
2453
|
+
# Update the organization's session configuration. <div> <code>update:organizations</code> </div>
|
2454
|
+
# @param org_code [String] The organization's code.
|
2455
|
+
# @param update_organization_sessions_request [UpdateOrganizationSessionsRequest] Organization session configuration.
|
2456
|
+
# @param [Hash] opts the optional parameters
|
2457
|
+
# @return [SuccessResponse]
|
2458
|
+
def update_organization_sessions(org_code, update_organization_sessions_request, opts = {})
|
2459
|
+
data, _status_code, _headers = update_organization_sessions_with_http_info(org_code, update_organization_sessions_request, opts)
|
2460
|
+
data
|
2461
|
+
end
|
2462
|
+
|
2463
|
+
# Update organization session configuration
|
2464
|
+
# Update the organization's session configuration. <div> <code>update:organizations</code> </div>
|
2465
|
+
# @param org_code [String] The organization's code.
|
2466
|
+
# @param update_organization_sessions_request [UpdateOrganizationSessionsRequest] Organization session configuration.
|
2467
|
+
# @param [Hash] opts the optional parameters
|
2468
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
2469
|
+
def update_organization_sessions_with_http_info(org_code, update_organization_sessions_request, opts = {})
|
2470
|
+
if @api_client.config.debugging
|
2471
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_sessions ...'
|
2472
|
+
end
|
2473
|
+
# verify the required parameter 'org_code' is set
|
2474
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
2475
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization_sessions"
|
2476
|
+
end
|
2477
|
+
# verify the required parameter 'update_organization_sessions_request' is set
|
2478
|
+
if @api_client.config.client_side_validation && update_organization_sessions_request.nil?
|
2479
|
+
fail ArgumentError, "Missing the required parameter 'update_organization_sessions_request' when calling OrganizationsApi.update_organization_sessions"
|
2480
|
+
end
|
2481
|
+
# resource path
|
2482
|
+
local_var_path = '/api/v1/organizations/{org_code}/sessions'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
2483
|
+
|
2484
|
+
# query parameters
|
2485
|
+
query_params = opts[:query_params] || {}
|
2486
|
+
|
2487
|
+
# header parameters
|
2488
|
+
header_params = opts[:header_params] || {}
|
2489
|
+
# HTTP header 'Accept' (if needed)
|
2490
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2491
|
+
# HTTP header 'Content-Type'
|
2492
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2493
|
+
if !content_type.nil?
|
2494
|
+
header_params['Content-Type'] = content_type
|
2495
|
+
end
|
2496
|
+
|
2497
|
+
# form parameters
|
2498
|
+
form_params = opts[:form_params] || {}
|
2499
|
+
|
2500
|
+
# http body (model)
|
2501
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_sessions_request)
|
2502
|
+
|
2503
|
+
# return_type
|
2504
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
2505
|
+
|
2506
|
+
# auth_names
|
2507
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
2508
|
+
|
2509
|
+
new_options = opts.merge(
|
2510
|
+
:operation => :"OrganizationsApi.update_organization_sessions",
|
2511
|
+
:header_params => header_params,
|
2512
|
+
:query_params => query_params,
|
2513
|
+
:form_params => form_params,
|
2514
|
+
:body => post_body,
|
2515
|
+
:auth_names => auth_names,
|
2516
|
+
:return_type => return_type
|
1371
2517
|
)
|
1372
2518
|
|
1373
2519
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1374
2520
|
if @api_client.config.debugging
|
1375
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
2521
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1376
2522
|
end
|
1377
|
-
|
2523
|
+
return data, status_code, headers
|
1378
2524
|
end
|
1379
2525
|
|
1380
2526
|
# Update Organization Users
|
1381
|
-
# Update users that belong to an organization.
|
2527
|
+
# Update users that belong to an organization. <div> <code>update:organization_users</code> </div>
|
1382
2528
|
# @param org_code [String] The organization's code.
|
1383
2529
|
# @param [Hash] opts the optional parameters
|
1384
|
-
# @option opts [UpdateOrganizationUsersRequest] :update_organization_users_request
|
2530
|
+
# @option opts [UpdateOrganizationUsersRequest] :update_organization_users_request
|
1385
2531
|
# @return [UpdateOrganizationUsersResponse]
|
1386
2532
|
def update_organization_users(org_code, opts = {})
|
1387
2533
|
data, _status_code, _headers = update_organization_users_with_http_info(org_code, opts)
|
@@ -1389,10 +2535,10 @@ module KindeApi
|
|
1389
2535
|
end
|
1390
2536
|
|
1391
2537
|
# Update Organization Users
|
1392
|
-
# Update users that belong to an organization.
|
2538
|
+
# Update users that belong to an organization. <div> <code>update:organization_users</code> </div>
|
1393
2539
|
# @param org_code [String] The organization's code.
|
1394
2540
|
# @param [Hash] opts the optional parameters
|
1395
|
-
# @option opts [UpdateOrganizationUsersRequest] :update_organization_users_request
|
2541
|
+
# @option opts [UpdateOrganizationUsersRequest] :update_organization_users_request
|
1396
2542
|
# @return [Array<(UpdateOrganizationUsersResponse, Integer, Hash)>] UpdateOrganizationUsersResponse data, response status code and response headers
|
1397
2543
|
def update_organization_users_with_http_info(org_code, opts = {})
|
1398
2544
|
if @api_client.config.debugging
|
@@ -1400,12 +2546,10 @@ module KindeApi
|
|
1400
2546
|
end
|
1401
2547
|
# verify the required parameter 'org_code' is set
|
1402
2548
|
if @api_client.config.client_side_validation && org_code.nil?
|
1403
|
-
|
1404
|
-
"Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization_users"
|
2549
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.update_organization_users"
|
1405
2550
|
end
|
1406
|
-
|
1407
2551
|
# resource path
|
1408
|
-
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{org_code}', CGI.escape(org_code.to_s))
|
2552
|
+
local_var_path = '/api/v1/organizations/{org_code}/users'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
1409
2553
|
|
1410
2554
|
# query parameters
|
1411
2555
|
query_params = opts[:query_params] || {}
|
@@ -1413,17 +2557,18 @@ module KindeApi
|
|
1413
2557
|
# header parameters
|
1414
2558
|
header_params = opts[:header_params] || {}
|
1415
2559
|
# HTTP header 'Accept' (if needed)
|
1416
|
-
header_params['Accept'] =
|
1417
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
2560
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1418
2561
|
# HTTP header 'Content-Type'
|
1419
2562
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1420
|
-
|
2563
|
+
if !content_type.nil?
|
2564
|
+
header_params['Content-Type'] = content_type
|
2565
|
+
end
|
1421
2566
|
|
1422
2567
|
# form parameters
|
1423
2568
|
form_params = opts[:form_params] || {}
|
1424
2569
|
|
1425
2570
|
# http body (model)
|
1426
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:update_organization_users_request])
|
2571
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_organization_users_request'])
|
1427
2572
|
|
1428
2573
|
# return_type
|
1429
2574
|
return_type = opts[:debug_return_type] || 'UpdateOrganizationUsersResponse'
|
@@ -1432,20 +2577,20 @@ module KindeApi
|
|
1432
2577
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
1433
2578
|
|
1434
2579
|
new_options = opts.merge(
|
1435
|
-
operation
|
1436
|
-
header_params
|
1437
|
-
query_params
|
1438
|
-
form_params
|
1439
|
-
body
|
1440
|
-
auth_names
|
1441
|
-
return_type
|
2580
|
+
:operation => :"OrganizationsApi.update_organization_users",
|
2581
|
+
:header_params => header_params,
|
2582
|
+
:query_params => query_params,
|
2583
|
+
:form_params => form_params,
|
2584
|
+
:body => post_body,
|
2585
|
+
:auth_names => auth_names,
|
2586
|
+
:return_type => return_type
|
1442
2587
|
)
|
1443
2588
|
|
1444
2589
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1445
2590
|
if @api_client.config.debugging
|
1446
2591
|
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1447
2592
|
end
|
1448
|
-
|
2593
|
+
return data, status_code, headers
|
1449
2594
|
end
|
1450
2595
|
end
|
1451
2596
|
end
|