kinde_sdk 1.6.4 → 1.6.5
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 +54 -0
- data/lib/kinde_sdk/version.rb +1 -1
- data/lib/kinde_sdk.rb +7 -4
- metadata +565 -1
@@ -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,29 +19,178 @@ module KindeApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add scope to API application
|
23
|
+
# Add a scope to an API application. <div> <code>create:api_application_scopes</code> </div>
|
24
|
+
# @param api_id [String] API ID
|
25
|
+
# @param application_id [String] Application ID
|
26
|
+
# @param scope_id [String] Scope ID
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [nil]
|
29
|
+
def add_api_application_scope(api_id, application_id, scope_id, opts = {})
|
30
|
+
add_api_application_scope_with_http_info(api_id, application_id, scope_id, opts)
|
31
|
+
nil
|
32
|
+
end
|
33
|
+
|
34
|
+
# Add scope to API application
|
35
|
+
# Add a scope to an API application. <div> <code>create:api_application_scopes</code> </div>
|
36
|
+
# @param api_id [String] API ID
|
37
|
+
# @param application_id [String] Application ID
|
38
|
+
# @param scope_id [String] Scope ID
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
41
|
+
def add_api_application_scope_with_http_info(api_id, application_id, scope_id, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.add_api_application_scope ...'
|
44
|
+
end
|
45
|
+
# verify the required parameter 'api_id' is set
|
46
|
+
if @api_client.config.client_side_validation && api_id.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.add_api_application_scope"
|
48
|
+
end
|
49
|
+
# verify the required parameter 'application_id' is set
|
50
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling APIsApi.add_api_application_scope"
|
52
|
+
end
|
53
|
+
# verify the required parameter 'scope_id' is set
|
54
|
+
if @api_client.config.client_side_validation && scope_id.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'scope_id' when calling APIsApi.add_api_application_scope"
|
56
|
+
end
|
57
|
+
# resource path
|
58
|
+
local_var_path = '/api/v1/apis/{api_id}/applications/{application_id}/scopes/{scope_id}'.sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s)).sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s)).sub('{' + 'scope_id' + '}', CGI.escape(scope_id.to_s))
|
59
|
+
|
60
|
+
# query parameters
|
61
|
+
query_params = opts[:query_params] || {}
|
62
|
+
|
63
|
+
# header parameters
|
64
|
+
header_params = opts[:header_params] || {}
|
65
|
+
# HTTP header 'Accept' (if needed)
|
66
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
67
|
+
|
68
|
+
# form parameters
|
69
|
+
form_params = opts[:form_params] || {}
|
70
|
+
|
71
|
+
# http body (model)
|
72
|
+
post_body = opts[:debug_body]
|
73
|
+
|
74
|
+
# return_type
|
75
|
+
return_type = opts[:debug_return_type]
|
76
|
+
|
77
|
+
# auth_names
|
78
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
79
|
+
|
80
|
+
new_options = opts.merge(
|
81
|
+
:operation => :"APIsApi.add_api_application_scope",
|
82
|
+
:header_params => header_params,
|
83
|
+
:query_params => query_params,
|
84
|
+
:form_params => form_params,
|
85
|
+
:body => post_body,
|
86
|
+
:auth_names => auth_names,
|
87
|
+
:return_type => return_type
|
88
|
+
)
|
89
|
+
|
90
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
91
|
+
if @api_client.config.debugging
|
92
|
+
@api_client.config.logger.debug "API called: APIsApi#add_api_application_scope\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
93
|
+
end
|
94
|
+
return data, status_code, headers
|
95
|
+
end
|
96
|
+
|
97
|
+
# Create API scope
|
98
|
+
# Create a new API scope. <div> <code>create:api_scopes</code> </div>
|
99
|
+
# @param api_id [String] API ID
|
100
|
+
# @param add_api_scope_request [AddAPIScopeRequest]
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [CreateApiScopesResponse]
|
103
|
+
def add_api_scope(api_id, add_api_scope_request, opts = {})
|
104
|
+
data, _status_code, _headers = add_api_scope_with_http_info(api_id, add_api_scope_request, opts)
|
105
|
+
data
|
106
|
+
end
|
107
|
+
|
108
|
+
# Create API scope
|
109
|
+
# Create a new API scope. <div> <code>create:api_scopes</code> </div>
|
110
|
+
# @param api_id [String] API ID
|
111
|
+
# @param add_api_scope_request [AddAPIScopeRequest]
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @return [Array<(CreateApiScopesResponse, Integer, Hash)>] CreateApiScopesResponse data, response status code and response headers
|
114
|
+
def add_api_scope_with_http_info(api_id, add_api_scope_request, opts = {})
|
115
|
+
if @api_client.config.debugging
|
116
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.add_api_scope ...'
|
117
|
+
end
|
118
|
+
# verify the required parameter 'api_id' is set
|
119
|
+
if @api_client.config.client_side_validation && api_id.nil?
|
120
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.add_api_scope"
|
121
|
+
end
|
122
|
+
# verify the required parameter 'add_api_scope_request' is set
|
123
|
+
if @api_client.config.client_side_validation && add_api_scope_request.nil?
|
124
|
+
fail ArgumentError, "Missing the required parameter 'add_api_scope_request' when calling APIsApi.add_api_scope"
|
125
|
+
end
|
126
|
+
# resource path
|
127
|
+
local_var_path = '/api/v1/apis/{api_id}/scopes'.sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s))
|
128
|
+
|
129
|
+
# query parameters
|
130
|
+
query_params = opts[:query_params] || {}
|
131
|
+
|
132
|
+
# header parameters
|
133
|
+
header_params = opts[:header_params] || {}
|
134
|
+
# HTTP header 'Accept' (if needed)
|
135
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
136
|
+
# HTTP header 'Content-Type'
|
137
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
138
|
+
if !content_type.nil?
|
139
|
+
header_params['Content-Type'] = content_type
|
140
|
+
end
|
141
|
+
|
142
|
+
# form parameters
|
143
|
+
form_params = opts[:form_params] || {}
|
144
|
+
|
145
|
+
# http body (model)
|
146
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(add_api_scope_request)
|
147
|
+
|
148
|
+
# return_type
|
149
|
+
return_type = opts[:debug_return_type] || 'CreateApiScopesResponse'
|
150
|
+
|
151
|
+
# auth_names
|
152
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
153
|
+
|
154
|
+
new_options = opts.merge(
|
155
|
+
:operation => :"APIsApi.add_api_scope",
|
156
|
+
:header_params => header_params,
|
157
|
+
:query_params => query_params,
|
158
|
+
:form_params => form_params,
|
159
|
+
:body => post_body,
|
160
|
+
:auth_names => auth_names,
|
161
|
+
:return_type => return_type
|
162
|
+
)
|
163
|
+
|
164
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
165
|
+
if @api_client.config.debugging
|
166
|
+
@api_client.config.logger.debug "API called: APIsApi#add_api_scope\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
167
|
+
end
|
168
|
+
return data, status_code, headers
|
169
|
+
end
|
22
170
|
|
23
|
-
#
|
24
|
-
#
|
25
|
-
# @param add_apis_request [AddAPIsRequest]
|
171
|
+
# Create API
|
172
|
+
# Register a new API. For more information read [Register and manage APIs](https://docs.kinde.com/developer-tools/your-apis/register-manage-apis/). <div> <code>create:apis</code> </div>
|
173
|
+
# @param add_apis_request [AddAPIsRequest]
|
26
174
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [
|
175
|
+
# @return [CreateApisResponse]
|
28
176
|
def add_apis(add_apis_request, opts = {})
|
29
177
|
data, _status_code, _headers = add_apis_with_http_info(add_apis_request, opts)
|
30
178
|
data
|
31
179
|
end
|
32
180
|
|
33
|
-
#
|
34
|
-
#
|
35
|
-
# @param add_apis_request [AddAPIsRequest]
|
181
|
+
# Create API
|
182
|
+
# Register a new API. For more information read [Register and manage APIs](https://docs.kinde.com/developer-tools/your-apis/register-manage-apis/). <div> <code>create:apis</code> </div>
|
183
|
+
# @param add_apis_request [AddAPIsRequest]
|
36
184
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
185
|
+
# @return [Array<(CreateApisResponse, Integer, Hash)>] CreateApisResponse data, response status code and response headers
|
38
186
|
def add_apis_with_http_info(add_apis_request, opts = {})
|
39
|
-
|
187
|
+
if @api_client.config.debugging
|
188
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.add_apis ...'
|
189
|
+
end
|
40
190
|
# verify the required parameter 'add_apis_request' is set
|
41
191
|
if @api_client.config.client_side_validation && add_apis_request.nil?
|
42
|
-
|
192
|
+
fail ArgumentError, "Missing the required parameter 'add_apis_request' when calling APIsApi.add_apis"
|
43
193
|
end
|
44
|
-
|
45
194
|
# resource path
|
46
195
|
local_var_path = '/api/v1/apis'
|
47
196
|
|
@@ -51,11 +200,12 @@ module KindeApi
|
|
51
200
|
# header parameters
|
52
201
|
header_params = opts[:header_params] || {}
|
53
202
|
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] =
|
55
|
-
@api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
203
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
56
204
|
# HTTP header 'Content-Type'
|
57
205
|
content_type = @api_client.select_header_content_type(['application/json'])
|
58
|
-
|
206
|
+
if !content_type.nil?
|
207
|
+
header_params['Content-Type'] = content_type
|
208
|
+
end
|
59
209
|
|
60
210
|
# form parameters
|
61
211
|
form_params = opts[:form_params] || {}
|
@@ -64,52 +214,53 @@ module KindeApi
|
|
64
214
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(add_apis_request)
|
65
215
|
|
66
216
|
# return_type
|
67
|
-
return_type = opts[:debug_return_type] || '
|
217
|
+
return_type = opts[:debug_return_type] || 'CreateApisResponse'
|
68
218
|
|
69
219
|
# auth_names
|
70
220
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
71
221
|
|
72
222
|
new_options = opts.merge(
|
73
|
-
operation
|
74
|
-
header_params
|
75
|
-
query_params
|
76
|
-
form_params
|
77
|
-
body
|
78
|
-
auth_names
|
79
|
-
return_type
|
223
|
+
:operation => :"APIsApi.add_apis",
|
224
|
+
:header_params => header_params,
|
225
|
+
:query_params => query_params,
|
226
|
+
:form_params => form_params,
|
227
|
+
:body => post_body,
|
228
|
+
:auth_names => auth_names,
|
229
|
+
:return_type => return_type
|
80
230
|
)
|
81
231
|
|
82
232
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
83
233
|
if @api_client.config.debugging
|
84
234
|
@api_client.config.logger.debug "API called: APIsApi#add_apis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
85
235
|
end
|
86
|
-
|
236
|
+
return data, status_code, headers
|
87
237
|
end
|
88
238
|
|
89
239
|
# Delete API
|
90
|
-
#
|
91
|
-
# @param api_id [String] The API's
|
240
|
+
# Delete an API you previously created. <div> <code>delete:apis</code> </div>
|
241
|
+
# @param api_id [String] The API's ID.
|
92
242
|
# @param [Hash] opts the optional parameters
|
93
|
-
# @return [
|
243
|
+
# @return [DeleteApiResponse]
|
94
244
|
def delete_api(api_id, opts = {})
|
95
245
|
data, _status_code, _headers = delete_api_with_http_info(api_id, opts)
|
96
246
|
data
|
97
247
|
end
|
98
248
|
|
99
249
|
# Delete API
|
100
|
-
#
|
101
|
-
# @param api_id [String] The API's
|
250
|
+
# Delete an API you previously created. <div> <code>delete:apis</code> </div>
|
251
|
+
# @param api_id [String] The API's ID.
|
102
252
|
# @param [Hash] opts the optional parameters
|
103
|
-
# @return [Array<(
|
253
|
+
# @return [Array<(DeleteApiResponse, Integer, Hash)>] DeleteApiResponse data, response status code and response headers
|
104
254
|
def delete_api_with_http_info(api_id, opts = {})
|
105
|
-
|
255
|
+
if @api_client.config.debugging
|
256
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.delete_api ...'
|
257
|
+
end
|
106
258
|
# verify the required parameter 'api_id' is set
|
107
259
|
if @api_client.config.client_side_validation && api_id.nil?
|
108
|
-
|
260
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.delete_api"
|
109
261
|
end
|
110
|
-
|
111
262
|
# resource path
|
112
|
-
local_var_path = '/api/v1/apis/{api_id}'.sub('{api_id}', CGI.escape(api_id.to_s))
|
263
|
+
local_var_path = '/api/v1/apis/{api_id}'.sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s))
|
113
264
|
|
114
265
|
# query parameters
|
115
266
|
query_params = opts[:query_params] || {}
|
@@ -117,8 +268,7 @@ module KindeApi
|
|
117
268
|
# header parameters
|
118
269
|
header_params = opts[:header_params] || {}
|
119
270
|
# HTTP header 'Accept' (if needed)
|
120
|
-
header_params['Accept'] =
|
121
|
-
@api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
271
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
122
272
|
|
123
273
|
# form parameters
|
124
274
|
form_params = opts[:form_params] || {}
|
@@ -127,52 +277,197 @@ module KindeApi
|
|
127
277
|
post_body = opts[:debug_body]
|
128
278
|
|
129
279
|
# return_type
|
130
|
-
return_type = opts[:debug_return_type] || '
|
280
|
+
return_type = opts[:debug_return_type] || 'DeleteApiResponse'
|
131
281
|
|
132
282
|
# auth_names
|
133
283
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
134
284
|
|
135
285
|
new_options = opts.merge(
|
136
|
-
operation
|
137
|
-
header_params
|
138
|
-
query_params
|
139
|
-
form_params
|
140
|
-
body
|
141
|
-
auth_names
|
142
|
-
return_type
|
286
|
+
:operation => :"APIsApi.delete_api",
|
287
|
+
:header_params => header_params,
|
288
|
+
:query_params => query_params,
|
289
|
+
:form_params => form_params,
|
290
|
+
:body => post_body,
|
291
|
+
:auth_names => auth_names,
|
292
|
+
:return_type => return_type
|
143
293
|
)
|
144
294
|
|
145
295
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
146
296
|
if @api_client.config.debugging
|
147
297
|
@api_client.config.logger.debug "API called: APIsApi#delete_api\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
148
298
|
end
|
149
|
-
|
299
|
+
return data, status_code, headers
|
300
|
+
end
|
301
|
+
|
302
|
+
# Delete API application scope
|
303
|
+
# Delete an API application scope you previously created. <div> <code>delete:apis_application_scopes</code> </div>
|
304
|
+
# @param api_id [String] API ID
|
305
|
+
# @param application_id [String] Application ID
|
306
|
+
# @param scope_id [String] Scope ID
|
307
|
+
# @param [Hash] opts the optional parameters
|
308
|
+
# @return [nil]
|
309
|
+
def delete_api_appliation_scope(api_id, application_id, scope_id, opts = {})
|
310
|
+
delete_api_appliation_scope_with_http_info(api_id, application_id, scope_id, opts)
|
311
|
+
nil
|
312
|
+
end
|
313
|
+
|
314
|
+
# Delete API application scope
|
315
|
+
# Delete an API application scope you previously created. <div> <code>delete:apis_application_scopes</code> </div>
|
316
|
+
# @param api_id [String] API ID
|
317
|
+
# @param application_id [String] Application ID
|
318
|
+
# @param scope_id [String] Scope ID
|
319
|
+
# @param [Hash] opts the optional parameters
|
320
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
321
|
+
def delete_api_appliation_scope_with_http_info(api_id, application_id, scope_id, opts = {})
|
322
|
+
if @api_client.config.debugging
|
323
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.delete_api_appliation_scope ...'
|
324
|
+
end
|
325
|
+
# verify the required parameter 'api_id' is set
|
326
|
+
if @api_client.config.client_side_validation && api_id.nil?
|
327
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.delete_api_appliation_scope"
|
328
|
+
end
|
329
|
+
# verify the required parameter 'application_id' is set
|
330
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
331
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling APIsApi.delete_api_appliation_scope"
|
332
|
+
end
|
333
|
+
# verify the required parameter 'scope_id' is set
|
334
|
+
if @api_client.config.client_side_validation && scope_id.nil?
|
335
|
+
fail ArgumentError, "Missing the required parameter 'scope_id' when calling APIsApi.delete_api_appliation_scope"
|
336
|
+
end
|
337
|
+
# resource path
|
338
|
+
local_var_path = '/api/v1/apis/{api_id}/applications/{application_id}/scopes/{scope_id}'.sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s)).sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s)).sub('{' + 'scope_id' + '}', CGI.escape(scope_id.to_s))
|
339
|
+
|
340
|
+
# query parameters
|
341
|
+
query_params = opts[:query_params] || {}
|
342
|
+
|
343
|
+
# header parameters
|
344
|
+
header_params = opts[:header_params] || {}
|
345
|
+
# HTTP header 'Accept' (if needed)
|
346
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
347
|
+
|
348
|
+
# form parameters
|
349
|
+
form_params = opts[:form_params] || {}
|
350
|
+
|
351
|
+
# http body (model)
|
352
|
+
post_body = opts[:debug_body]
|
353
|
+
|
354
|
+
# return_type
|
355
|
+
return_type = opts[:debug_return_type]
|
356
|
+
|
357
|
+
# auth_names
|
358
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
359
|
+
|
360
|
+
new_options = opts.merge(
|
361
|
+
:operation => :"APIsApi.delete_api_appliation_scope",
|
362
|
+
:header_params => header_params,
|
363
|
+
:query_params => query_params,
|
364
|
+
:form_params => form_params,
|
365
|
+
:body => post_body,
|
366
|
+
:auth_names => auth_names,
|
367
|
+
:return_type => return_type
|
368
|
+
)
|
369
|
+
|
370
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
371
|
+
if @api_client.config.debugging
|
372
|
+
@api_client.config.logger.debug "API called: APIsApi#delete_api_appliation_scope\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
373
|
+
end
|
374
|
+
return data, status_code, headers
|
150
375
|
end
|
151
376
|
|
152
|
-
#
|
153
|
-
#
|
154
|
-
# @param api_id [String]
|
377
|
+
# Delete API scope
|
378
|
+
# Delete an API scope you previously created. <div> <code>delete:apis_scopes</code> </div>
|
379
|
+
# @param api_id [String] API ID
|
380
|
+
# @param scope_id [String] Scope ID
|
155
381
|
# @param [Hash] opts the optional parameters
|
156
|
-
# @return [
|
382
|
+
# @return [nil]
|
383
|
+
def delete_api_scope(api_id, scope_id, opts = {})
|
384
|
+
delete_api_scope_with_http_info(api_id, scope_id, opts)
|
385
|
+
nil
|
386
|
+
end
|
387
|
+
|
388
|
+
# Delete API scope
|
389
|
+
# Delete an API scope you previously created. <div> <code>delete:apis_scopes</code> </div>
|
390
|
+
# @param api_id [String] API ID
|
391
|
+
# @param scope_id [String] Scope ID
|
392
|
+
# @param [Hash] opts the optional parameters
|
393
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
394
|
+
def delete_api_scope_with_http_info(api_id, scope_id, opts = {})
|
395
|
+
if @api_client.config.debugging
|
396
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.delete_api_scope ...'
|
397
|
+
end
|
398
|
+
# verify the required parameter 'api_id' is set
|
399
|
+
if @api_client.config.client_side_validation && api_id.nil?
|
400
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.delete_api_scope"
|
401
|
+
end
|
402
|
+
# verify the required parameter 'scope_id' is set
|
403
|
+
if @api_client.config.client_side_validation && scope_id.nil?
|
404
|
+
fail ArgumentError, "Missing the required parameter 'scope_id' when calling APIsApi.delete_api_scope"
|
405
|
+
end
|
406
|
+
# resource path
|
407
|
+
local_var_path = '/api/v1/apis/{api_id}/scopes/{scope_id}'.sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s)).sub('{' + 'scope_id' + '}', CGI.escape(scope_id.to_s))
|
408
|
+
|
409
|
+
# query parameters
|
410
|
+
query_params = opts[:query_params] || {}
|
411
|
+
|
412
|
+
# header parameters
|
413
|
+
header_params = opts[:header_params] || {}
|
414
|
+
# HTTP header 'Accept' (if needed)
|
415
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
416
|
+
|
417
|
+
# form parameters
|
418
|
+
form_params = opts[:form_params] || {}
|
419
|
+
|
420
|
+
# http body (model)
|
421
|
+
post_body = opts[:debug_body]
|
422
|
+
|
423
|
+
# return_type
|
424
|
+
return_type = opts[:debug_return_type]
|
425
|
+
|
426
|
+
# auth_names
|
427
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
428
|
+
|
429
|
+
new_options = opts.merge(
|
430
|
+
:operation => :"APIsApi.delete_api_scope",
|
431
|
+
:header_params => header_params,
|
432
|
+
:query_params => query_params,
|
433
|
+
:form_params => form_params,
|
434
|
+
:body => post_body,
|
435
|
+
:auth_names => auth_names,
|
436
|
+
:return_type => return_type
|
437
|
+
)
|
438
|
+
|
439
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
440
|
+
if @api_client.config.debugging
|
441
|
+
@api_client.config.logger.debug "API called: APIsApi#delete_api_scope\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
442
|
+
end
|
443
|
+
return data, status_code, headers
|
444
|
+
end
|
445
|
+
|
446
|
+
# Get API
|
447
|
+
# Retrieve API details by ID. <div> <code>read:apis</code> </div>
|
448
|
+
# @param api_id [String] The API's ID.
|
449
|
+
# @param [Hash] opts the optional parameters
|
450
|
+
# @return [GetApiResponse]
|
157
451
|
def get_api(api_id, opts = {})
|
158
452
|
data, _status_code, _headers = get_api_with_http_info(api_id, opts)
|
159
453
|
data
|
160
454
|
end
|
161
455
|
|
162
|
-
#
|
163
|
-
#
|
164
|
-
# @param api_id [String] The API's
|
456
|
+
# Get API
|
457
|
+
# Retrieve API details by ID. <div> <code>read:apis</code> </div>
|
458
|
+
# @param api_id [String] The API's ID.
|
165
459
|
# @param [Hash] opts the optional parameters
|
166
|
-
# @return [Array<(
|
460
|
+
# @return [Array<(GetApiResponse, Integer, Hash)>] GetApiResponse data, response status code and response headers
|
167
461
|
def get_api_with_http_info(api_id, opts = {})
|
168
|
-
|
462
|
+
if @api_client.config.debugging
|
463
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.get_api ...'
|
464
|
+
end
|
169
465
|
# verify the required parameter 'api_id' is set
|
170
466
|
if @api_client.config.client_side_validation && api_id.nil?
|
171
|
-
|
467
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.get_api"
|
172
468
|
end
|
173
|
-
|
174
469
|
# resource path
|
175
|
-
local_var_path = '/api/v1/apis/{api_id}'.sub('{api_id}', CGI.escape(api_id.to_s))
|
470
|
+
local_var_path = '/api/v1/apis/{api_id}'.sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s))
|
176
471
|
|
177
472
|
# query parameters
|
178
473
|
query_params = opts[:query_params] || {}
|
@@ -180,8 +475,7 @@ module KindeApi
|
|
180
475
|
# header parameters
|
181
476
|
header_params = opts[:header_params] || {}
|
182
477
|
# HTTP header 'Accept' (if needed)
|
183
|
-
header_params['Accept'] =
|
184
|
-
@api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
478
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
185
479
|
|
186
480
|
# form parameters
|
187
481
|
form_params = opts[:form_params] || {}
|
@@ -190,54 +484,194 @@ module KindeApi
|
|
190
484
|
post_body = opts[:debug_body]
|
191
485
|
|
192
486
|
# return_type
|
193
|
-
return_type = opts[:debug_return_type] || '
|
487
|
+
return_type = opts[:debug_return_type] || 'GetApiResponse'
|
194
488
|
|
195
489
|
# auth_names
|
196
490
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
197
491
|
|
198
492
|
new_options = opts.merge(
|
199
|
-
operation
|
200
|
-
header_params
|
201
|
-
query_params
|
202
|
-
form_params
|
203
|
-
body
|
204
|
-
auth_names
|
205
|
-
return_type
|
493
|
+
:operation => :"APIsApi.get_api",
|
494
|
+
:header_params => header_params,
|
495
|
+
:query_params => query_params,
|
496
|
+
:form_params => form_params,
|
497
|
+
:body => post_body,
|
498
|
+
:auth_names => auth_names,
|
499
|
+
:return_type => return_type
|
206
500
|
)
|
207
501
|
|
208
502
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
209
503
|
if @api_client.config.debugging
|
210
504
|
@api_client.config.logger.debug "API called: APIsApi#get_api\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
211
505
|
end
|
212
|
-
|
506
|
+
return data, status_code, headers
|
507
|
+
end
|
508
|
+
|
509
|
+
# Get API scope
|
510
|
+
# Retrieve API scope by API ID. <div> <code>read:api_scopes</code> </div>
|
511
|
+
# @param api_id [String] API ID
|
512
|
+
# @param scope_id [String] Scope ID
|
513
|
+
# @param [Hash] opts the optional parameters
|
514
|
+
# @return [GetApiScopeResponse]
|
515
|
+
def get_api_scope(api_id, scope_id, opts = {})
|
516
|
+
data, _status_code, _headers = get_api_scope_with_http_info(api_id, scope_id, opts)
|
517
|
+
data
|
518
|
+
end
|
519
|
+
|
520
|
+
# Get API scope
|
521
|
+
# Retrieve API scope by API ID. <div> <code>read:api_scopes</code> </div>
|
522
|
+
# @param api_id [String] API ID
|
523
|
+
# @param scope_id [String] Scope ID
|
524
|
+
# @param [Hash] opts the optional parameters
|
525
|
+
# @return [Array<(GetApiScopeResponse, Integer, Hash)>] GetApiScopeResponse data, response status code and response headers
|
526
|
+
def get_api_scope_with_http_info(api_id, scope_id, opts = {})
|
527
|
+
if @api_client.config.debugging
|
528
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.get_api_scope ...'
|
529
|
+
end
|
530
|
+
# verify the required parameter 'api_id' is set
|
531
|
+
if @api_client.config.client_side_validation && api_id.nil?
|
532
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.get_api_scope"
|
533
|
+
end
|
534
|
+
# verify the required parameter 'scope_id' is set
|
535
|
+
if @api_client.config.client_side_validation && scope_id.nil?
|
536
|
+
fail ArgumentError, "Missing the required parameter 'scope_id' when calling APIsApi.get_api_scope"
|
537
|
+
end
|
538
|
+
# resource path
|
539
|
+
local_var_path = '/api/v1/apis/{api_id}/scopes/{scope_id}'.sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s)).sub('{' + 'scope_id' + '}', CGI.escape(scope_id.to_s))
|
540
|
+
|
541
|
+
# query parameters
|
542
|
+
query_params = opts[:query_params] || {}
|
543
|
+
|
544
|
+
# header parameters
|
545
|
+
header_params = opts[:header_params] || {}
|
546
|
+
# HTTP header 'Accept' (if needed)
|
547
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
548
|
+
|
549
|
+
# form parameters
|
550
|
+
form_params = opts[:form_params] || {}
|
551
|
+
|
552
|
+
# http body (model)
|
553
|
+
post_body = opts[:debug_body]
|
554
|
+
|
555
|
+
# return_type
|
556
|
+
return_type = opts[:debug_return_type] || 'GetApiScopeResponse'
|
557
|
+
|
558
|
+
# auth_names
|
559
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
560
|
+
|
561
|
+
new_options = opts.merge(
|
562
|
+
:operation => :"APIsApi.get_api_scope",
|
563
|
+
:header_params => header_params,
|
564
|
+
:query_params => query_params,
|
565
|
+
:form_params => form_params,
|
566
|
+
:body => post_body,
|
567
|
+
:auth_names => auth_names,
|
568
|
+
:return_type => return_type
|
569
|
+
)
|
570
|
+
|
571
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
572
|
+
if @api_client.config.debugging
|
573
|
+
@api_client.config.logger.debug "API called: APIsApi#get_api_scope\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
574
|
+
end
|
575
|
+
return data, status_code, headers
|
213
576
|
end
|
214
577
|
|
215
|
-
#
|
216
|
-
#
|
578
|
+
# Get API scopes
|
579
|
+
# Retrieve API scopes by API ID. <div> <code>read:api_scopes</code> </div>
|
580
|
+
# @param api_id [String] API ID
|
217
581
|
# @param [Hash] opts the optional parameters
|
218
|
-
# @return [
|
582
|
+
# @return [GetApiScopesResponse]
|
583
|
+
def get_api_scopes(api_id, opts = {})
|
584
|
+
data, _status_code, _headers = get_api_scopes_with_http_info(api_id, opts)
|
585
|
+
data
|
586
|
+
end
|
587
|
+
|
588
|
+
# Get API scopes
|
589
|
+
# Retrieve API scopes by API ID. <div> <code>read:api_scopes</code> </div>
|
590
|
+
# @param api_id [String] API ID
|
591
|
+
# @param [Hash] opts the optional parameters
|
592
|
+
# @return [Array<(GetApiScopesResponse, Integer, Hash)>] GetApiScopesResponse data, response status code and response headers
|
593
|
+
def get_api_scopes_with_http_info(api_id, opts = {})
|
594
|
+
if @api_client.config.debugging
|
595
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.get_api_scopes ...'
|
596
|
+
end
|
597
|
+
# verify the required parameter 'api_id' is set
|
598
|
+
if @api_client.config.client_side_validation && api_id.nil?
|
599
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.get_api_scopes"
|
600
|
+
end
|
601
|
+
# resource path
|
602
|
+
local_var_path = '/api/v1/apis/{api_id}/scopes'.sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s))
|
603
|
+
|
604
|
+
# query parameters
|
605
|
+
query_params = opts[:query_params] || {}
|
606
|
+
|
607
|
+
# header parameters
|
608
|
+
header_params = opts[:header_params] || {}
|
609
|
+
# HTTP header 'Accept' (if needed)
|
610
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
611
|
+
|
612
|
+
# form parameters
|
613
|
+
form_params = opts[:form_params] || {}
|
614
|
+
|
615
|
+
# http body (model)
|
616
|
+
post_body = opts[:debug_body]
|
617
|
+
|
618
|
+
# return_type
|
619
|
+
return_type = opts[:debug_return_type] || 'GetApiScopesResponse'
|
620
|
+
|
621
|
+
# auth_names
|
622
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
623
|
+
|
624
|
+
new_options = opts.merge(
|
625
|
+
:operation => :"APIsApi.get_api_scopes",
|
626
|
+
:header_params => header_params,
|
627
|
+
:query_params => query_params,
|
628
|
+
:form_params => form_params,
|
629
|
+
:body => post_body,
|
630
|
+
:auth_names => auth_names,
|
631
|
+
:return_type => return_type
|
632
|
+
)
|
633
|
+
|
634
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
635
|
+
if @api_client.config.debugging
|
636
|
+
@api_client.config.logger.debug "API called: APIsApi#get_api_scopes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
637
|
+
end
|
638
|
+
return data, status_code, headers
|
639
|
+
end
|
640
|
+
|
641
|
+
# Get APIs
|
642
|
+
# Returns a list of your APIs. The APIs are returned sorted by name. <div> <code>read:apis</code> </div>
|
643
|
+
# @param [Hash] opts the optional parameters
|
644
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"scopes\".
|
645
|
+
# @return [GetApisResponse]
|
219
646
|
def get_apis(opts = {})
|
220
647
|
data, _status_code, _headers = get_apis_with_http_info(opts)
|
221
648
|
data
|
222
649
|
end
|
223
650
|
|
224
|
-
#
|
225
|
-
# Returns a list of APIs.
|
651
|
+
# Get APIs
|
652
|
+
# Returns a list of your APIs. The APIs are returned sorted by name. <div> <code>read:apis</code> </div>
|
226
653
|
# @param [Hash] opts the optional parameters
|
227
|
-
# @
|
654
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"scopes\".
|
655
|
+
# @return [Array<(GetApisResponse, Integer, Hash)>] GetApisResponse data, response status code and response headers
|
228
656
|
def get_apis_with_http_info(opts = {})
|
229
|
-
|
657
|
+
if @api_client.config.debugging
|
658
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.get_apis ...'
|
659
|
+
end
|
660
|
+
allowable_values = ["scopes"]
|
661
|
+
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
662
|
+
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
663
|
+
end
|
230
664
|
# resource path
|
231
665
|
local_var_path = '/api/v1/apis'
|
232
666
|
|
233
667
|
# query parameters
|
234
668
|
query_params = opts[:query_params] || {}
|
669
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
235
670
|
|
236
671
|
# header parameters
|
237
672
|
header_params = opts[:header_params] || {}
|
238
673
|
# HTTP header 'Accept' (if needed)
|
239
|
-
header_params['Accept'] =
|
240
|
-
@api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
674
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
241
675
|
|
242
676
|
# form parameters
|
243
677
|
form_params = opts[:form_params] || {}
|
@@ -246,61 +680,59 @@ module KindeApi
|
|
246
680
|
post_body = opts[:debug_body]
|
247
681
|
|
248
682
|
# return_type
|
249
|
-
return_type = opts[:debug_return_type] || '
|
683
|
+
return_type = opts[:debug_return_type] || 'GetApisResponse'
|
250
684
|
|
251
685
|
# auth_names
|
252
686
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
253
687
|
|
254
688
|
new_options = opts.merge(
|
255
|
-
operation
|
256
|
-
header_params
|
257
|
-
query_params
|
258
|
-
form_params
|
259
|
-
body
|
260
|
-
auth_names
|
261
|
-
return_type
|
689
|
+
:operation => :"APIsApi.get_apis",
|
690
|
+
:header_params => header_params,
|
691
|
+
:query_params => query_params,
|
692
|
+
:form_params => form_params,
|
693
|
+
:body => post_body,
|
694
|
+
:auth_names => auth_names,
|
695
|
+
:return_type => return_type
|
262
696
|
)
|
263
697
|
|
264
698
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
265
699
|
if @api_client.config.debugging
|
266
700
|
@api_client.config.logger.debug "API called: APIsApi#get_apis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
267
701
|
end
|
268
|
-
|
702
|
+
return data, status_code, headers
|
269
703
|
end
|
270
704
|
|
271
|
-
#
|
272
|
-
#
|
273
|
-
# @param api_id [String] The
|
274
|
-
# @param update_api_applications_request [UpdateAPIApplicationsRequest] The applications you want to
|
705
|
+
# Authorize API applications
|
706
|
+
# Authorize applications to be allowed to request access tokens for an API <div> <code>update:apis</code> </div>
|
707
|
+
# @param api_id [String] The API's ID.
|
708
|
+
# @param update_api_applications_request [UpdateAPIApplicationsRequest] The applications you want to authorize.
|
275
709
|
# @param [Hash] opts the optional parameters
|
276
|
-
# @return [
|
710
|
+
# @return [AuthorizeAppApiResponse]
|
277
711
|
def update_api_applications(api_id, update_api_applications_request, opts = {})
|
278
|
-
data, _status_code, _headers = update_api_applications_with_http_info(api_id, update_api_applications_request,
|
279
|
-
opts)
|
712
|
+
data, _status_code, _headers = update_api_applications_with_http_info(api_id, update_api_applications_request, opts)
|
280
713
|
data
|
281
714
|
end
|
282
715
|
|
283
|
-
#
|
284
|
-
#
|
285
|
-
# @param api_id [String] The
|
286
|
-
# @param update_api_applications_request [UpdateAPIApplicationsRequest] The applications you want to
|
716
|
+
# Authorize API applications
|
717
|
+
# Authorize applications to be allowed to request access tokens for an API <div> <code>update:apis</code> </div>
|
718
|
+
# @param api_id [String] The API's ID.
|
719
|
+
# @param update_api_applications_request [UpdateAPIApplicationsRequest] The applications you want to authorize.
|
287
720
|
# @param [Hash] opts the optional parameters
|
288
|
-
# @return [Array<(
|
721
|
+
# @return [Array<(AuthorizeAppApiResponse, Integer, Hash)>] AuthorizeAppApiResponse data, response status code and response headers
|
289
722
|
def update_api_applications_with_http_info(api_id, update_api_applications_request, opts = {})
|
290
|
-
|
723
|
+
if @api_client.config.debugging
|
724
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.update_api_applications ...'
|
725
|
+
end
|
291
726
|
# verify the required parameter 'api_id' is set
|
292
727
|
if @api_client.config.client_side_validation && api_id.nil?
|
293
|
-
|
728
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.update_api_applications"
|
294
729
|
end
|
295
|
-
|
296
730
|
# verify the required parameter 'update_api_applications_request' is set
|
297
731
|
if @api_client.config.client_side_validation && update_api_applications_request.nil?
|
298
|
-
|
299
|
-
"Missing the required parameter 'update_api_applications_request' when calling APIsApi.update_api_applications"
|
732
|
+
fail ArgumentError, "Missing the required parameter 'update_api_applications_request' when calling APIsApi.update_api_applications"
|
300
733
|
end
|
301
|
-
|
302
734
|
# resource path
|
303
|
-
local_var_path = '/api/v1/apis/{api_id}/applications'.sub('{api_id}', CGI.escape(api_id.to_s))
|
735
|
+
local_var_path = '/api/v1/apis/{api_id}/applications'.sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s))
|
304
736
|
|
305
737
|
# query parameters
|
306
738
|
query_params = opts[:query_params] || {}
|
@@ -308,11 +740,12 @@ module KindeApi
|
|
308
740
|
# header parameters
|
309
741
|
header_params = opts[:header_params] || {}
|
310
742
|
# HTTP header 'Accept' (if needed)
|
311
|
-
header_params['Accept'] =
|
312
|
-
@api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
743
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
313
744
|
# HTTP header 'Content-Type'
|
314
745
|
content_type = @api_client.select_header_content_type(['application/json'])
|
315
|
-
|
746
|
+
if !content_type.nil?
|
747
|
+
header_params['Content-Type'] = content_type
|
748
|
+
end
|
316
749
|
|
317
750
|
# form parameters
|
318
751
|
form_params = opts[:form_params] || {}
|
@@ -321,26 +754,106 @@ module KindeApi
|
|
321
754
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_api_applications_request)
|
322
755
|
|
323
756
|
# return_type
|
324
|
-
return_type = opts[:debug_return_type] || '
|
757
|
+
return_type = opts[:debug_return_type] || 'AuthorizeAppApiResponse'
|
325
758
|
|
326
759
|
# auth_names
|
327
760
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
328
761
|
|
329
762
|
new_options = opts.merge(
|
330
|
-
operation
|
331
|
-
header_params
|
332
|
-
query_params
|
333
|
-
form_params
|
334
|
-
body
|
335
|
-
auth_names
|
336
|
-
return_type
|
763
|
+
:operation => :"APIsApi.update_api_applications",
|
764
|
+
:header_params => header_params,
|
765
|
+
:query_params => query_params,
|
766
|
+
:form_params => form_params,
|
767
|
+
:body => post_body,
|
768
|
+
:auth_names => auth_names,
|
769
|
+
:return_type => return_type
|
337
770
|
)
|
338
771
|
|
339
772
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
340
773
|
if @api_client.config.debugging
|
341
774
|
@api_client.config.logger.debug "API called: APIsApi#update_api_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
342
775
|
end
|
343
|
-
|
776
|
+
return data, status_code, headers
|
777
|
+
end
|
778
|
+
|
779
|
+
# Update API scope
|
780
|
+
# Update an API scope. <div> <code>update:api_scopes</code> </div>
|
781
|
+
# @param api_id [String] API ID
|
782
|
+
# @param scope_id [String] Scope ID
|
783
|
+
# @param update_api_scope_request [UpdateAPIScopeRequest]
|
784
|
+
# @param [Hash] opts the optional parameters
|
785
|
+
# @return [nil]
|
786
|
+
def update_api_scope(api_id, scope_id, update_api_scope_request, opts = {})
|
787
|
+
update_api_scope_with_http_info(api_id, scope_id, update_api_scope_request, opts)
|
788
|
+
nil
|
789
|
+
end
|
790
|
+
|
791
|
+
# Update API scope
|
792
|
+
# Update an API scope. <div> <code>update:api_scopes</code> </div>
|
793
|
+
# @param api_id [String] API ID
|
794
|
+
# @param scope_id [String] Scope ID
|
795
|
+
# @param update_api_scope_request [UpdateAPIScopeRequest]
|
796
|
+
# @param [Hash] opts the optional parameters
|
797
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
798
|
+
def update_api_scope_with_http_info(api_id, scope_id, update_api_scope_request, opts = {})
|
799
|
+
if @api_client.config.debugging
|
800
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.update_api_scope ...'
|
801
|
+
end
|
802
|
+
# verify the required parameter 'api_id' is set
|
803
|
+
if @api_client.config.client_side_validation && api_id.nil?
|
804
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.update_api_scope"
|
805
|
+
end
|
806
|
+
# verify the required parameter 'scope_id' is set
|
807
|
+
if @api_client.config.client_side_validation && scope_id.nil?
|
808
|
+
fail ArgumentError, "Missing the required parameter 'scope_id' when calling APIsApi.update_api_scope"
|
809
|
+
end
|
810
|
+
# verify the required parameter 'update_api_scope_request' is set
|
811
|
+
if @api_client.config.client_side_validation && update_api_scope_request.nil?
|
812
|
+
fail ArgumentError, "Missing the required parameter 'update_api_scope_request' when calling APIsApi.update_api_scope"
|
813
|
+
end
|
814
|
+
# resource path
|
815
|
+
local_var_path = '/api/v1/apis/{api_id}/scopes/{scope_id}'.sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s)).sub('{' + 'scope_id' + '}', CGI.escape(scope_id.to_s))
|
816
|
+
|
817
|
+
# query parameters
|
818
|
+
query_params = opts[:query_params] || {}
|
819
|
+
|
820
|
+
# header parameters
|
821
|
+
header_params = opts[:header_params] || {}
|
822
|
+
# HTTP header 'Accept' (if needed)
|
823
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
824
|
+
# HTTP header 'Content-Type'
|
825
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
826
|
+
if !content_type.nil?
|
827
|
+
header_params['Content-Type'] = content_type
|
828
|
+
end
|
829
|
+
|
830
|
+
# form parameters
|
831
|
+
form_params = opts[:form_params] || {}
|
832
|
+
|
833
|
+
# http body (model)
|
834
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_api_scope_request)
|
835
|
+
|
836
|
+
# return_type
|
837
|
+
return_type = opts[:debug_return_type]
|
838
|
+
|
839
|
+
# auth_names
|
840
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
841
|
+
|
842
|
+
new_options = opts.merge(
|
843
|
+
:operation => :"APIsApi.update_api_scope",
|
844
|
+
:header_params => header_params,
|
845
|
+
:query_params => query_params,
|
846
|
+
:form_params => form_params,
|
847
|
+
:body => post_body,
|
848
|
+
:auth_names => auth_names,
|
849
|
+
:return_type => return_type
|
850
|
+
)
|
851
|
+
|
852
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
853
|
+
if @api_client.config.debugging
|
854
|
+
@api_client.config.logger.debug "API called: APIsApi#update_api_scope\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
855
|
+
end
|
856
|
+
return data, status_code, headers
|
344
857
|
end
|
345
858
|
end
|
346
859
|
end
|