clerk-http-client 0.0.1 → 2.0.0.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +155 -191
- data/clerk-http-client.gemspec +5 -5
- data/docs/ActorTokensApi.md +26 -26
- data/docs/AllowListBlockListApi.md +72 -74
- data/docs/BetaFeaturesApi.md +42 -41
- data/docs/ClientsApi.md +36 -37
- data/docs/CreateBulkInvitationsRequestInner.md +28 -0
- data/docs/CreateInvitationRequest.md +6 -4
- data/docs/{CreateOAuthApplicationRequest.md → CreateOauthApplicationRequest.md} +1 -1
- data/docs/CreateOrganizationInvitationBulkRequestInner.md +2 -2
- data/docs/CreateOrganizationInvitationRequest.md +5 -3
- data/docs/CreateOrganizationRequest.md +3 -3
- data/docs/CreateSAMLConnectionRequest.md +2 -0
- data/docs/CreateSessionRequest.md +18 -0
- data/docs/CreateSessionToken200Response.md +20 -0
- data/docs/CreateSessionTokenFromTemplateRequest.md +18 -0
- data/docs/CreateSessionTokenRequest.md +18 -0
- data/docs/CreateUserRequest.md +3 -3
- data/docs/CreateWaitlistEntryRequest.md +20 -0
- data/docs/DomainsApi.md +46 -48
- data/docs/EmailAddress.md +2 -0
- data/docs/EmailAddressVerification.md +3 -3
- data/docs/EmailAddressesApi.md +52 -52
- data/docs/EmailSMSTemplatesApi.md +60 -66
- data/docs/FromOauth.md +26 -0
- data/docs/FromOauthError.md +47 -0
- data/docs/{GetOAuthAccessToken200ResponseInner.md → GetOauthAccessToken200ResponseInner.md} +4 -2
- data/docs/Instance.md +24 -0
- data/docs/InstanceSettingsApi.md +114 -45
- data/docs/Invitation.md +1 -1
- data/docs/InvitationsApi.md +110 -38
- data/docs/JWKS.md +18 -0
- data/docs/JWKSApi.md +14 -15
- data/docs/JWKSKeysInner.md +32 -0
- data/docs/JWTTemplatesApi.md +62 -63
- data/docs/ListWaitlistEntries200Response.md +20 -0
- data/docs/MergeOrganizationMetadataRequest.md +2 -2
- data/docs/MiscellaneousApi.md +11 -7
- data/docs/{OAuthApplication.md → OauthApplication.md} +4 -0
- data/docs/{OAuthApplicationWithSecret.md → OauthApplicationWithSecret.md} +4 -0
- data/docs/{OAuthApplicationsApi.md → OauthApplicationsApi.md} +90 -94
- data/docs/Organization.md +2 -2
- data/docs/OrganizationDomainApi.md +15 -13
- data/docs/OrganizationDomainsApi.md +103 -33
- data/docs/OrganizationInvitation.md +6 -2
- data/docs/OrganizationInvitationWithPublicOrganizationData.md +4 -2
- data/docs/OrganizationInvitationsApi.md +76 -81
- data/docs/OrganizationMembership.md +2 -2
- data/docs/OrganizationMembershipsApi.md +66 -70
- data/docs/OrganizationWithLogo.md +2 -2
- data/docs/OrganizationsApi.md +87 -93
- data/docs/PhoneNumbersApi.md +52 -52
- data/docs/ProxyChecksApi.md +16 -15
- data/docs/{RedirectURLsApi.md → RedirectUrlsApi.md} +46 -48
- data/docs/RevokeInvitation200Response.md +1 -1
- data/docs/SAML.md +1 -1
- data/docs/SAMLAccount.md +1 -1
- data/docs/SAMLConnectionsApi.md +59 -60
- data/docs/SchemasSAMLConnection.md +2 -0
- data/docs/SessionsApi.md +203 -60
- data/docs/SignInTokensApi.md +26 -26
- data/docs/SignUp.md +4 -2
- data/docs/SignUpsApi.md +16 -15
- data/docs/TestingTokensApi.md +11 -12
- data/docs/UpdateOrganizationMembershipMetadataRequest.md +2 -2
- data/docs/UpdateOrganizationRequest.md +2 -2
- data/docs/UpdateSAMLConnectionRequest.md +2 -0
- data/docs/UpdateUserRequest.md +3 -3
- data/docs/User.md +3 -3
- data/docs/UsersApi.md +297 -294
- data/docs/WaitlistEntriesApi.md +157 -0
- data/docs/WaitlistEntry.md +32 -0
- data/docs/WaitlistEntryInvitation.md +36 -0
- data/docs/WebhooksApi.md +30 -33
- data/lib/clerk-http-client/api/actor_tokens_api.rb +10 -14
- data/lib/clerk-http-client/api/allow_list_block_list_api.rb +25 -33
- data/lib/clerk-http-client/api/beta_features_api.rb +13 -21
- data/lib/clerk-http-client/api/clients_api.rb +13 -17
- data/lib/clerk-http-client/api/domains_api.rb +16 -20
- data/lib/clerk-http-client/api/email_addresses_api.rb +19 -27
- data/lib/clerk-http-client/api/email_sms_templates_api.rb +19 -19
- data/lib/clerk-http-client/api/instance_settings_api.rb +78 -31
- data/lib/clerk-http-client/api/invitations_api.rb +82 -17
- data/lib/clerk-http-client/api/jwks_api.rb +7 -7
- data/lib/clerk-http-client/api/jwt_templates_api.rb +22 -30
- data/lib/clerk-http-client/api/miscellaneous_api.rb +4 -4
- data/lib/clerk-http-client/api/{o_auth_applications_api.rb → oauth_applications_api.rb} +53 -57
- data/lib/clerk-http-client/api/organization_domains_api.rb +92 -10
- data/lib/clerk-http-client/api/organization_invitations_api.rb +25 -29
- data/lib/clerk-http-client/api/organization_memberships_api.rb +22 -26
- data/lib/clerk-http-client/api/organizations_api.rb +30 -34
- data/lib/clerk-http-client/api/phone_numbers_api.rb +19 -27
- data/lib/clerk-http-client/api/proxy_checks_api.rb +7 -11
- data/lib/clerk-http-client/api/redirect_urls_api.rb +16 -20
- data/lib/clerk-http-client/api/saml_connections_api.rb +22 -23
- data/lib/clerk-http-client/api/sessions_api.rb +165 -20
- data/lib/clerk-http-client/api/sign_in_tokens_api.rb +10 -14
- data/lib/clerk-http-client/api/sign_ups_api.rb +7 -11
- data/lib/clerk-http-client/api/testing_tokens_api.rb +6 -6
- data/lib/clerk-http-client/api/users_api.rb +149 -92
- data/lib/clerk-http-client/api/waitlist_entries_api.rb +178 -0
- data/lib/clerk-http-client/api/webhooks_api.rb +10 -10
- data/lib/clerk-http-client/api_client.rb +1 -1
- data/lib/clerk-http-client/api_error.rb +1 -1
- data/lib/clerk-http-client/configuration.rb +1 -1
- data/lib/clerk-http-client/models/actor_token.rb +1 -1
- data/lib/clerk-http-client/models/add_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/admin.rb +1 -1
- data/lib/clerk-http-client/models/allowlist_identifier.rb +1 -1
- data/lib/clerk-http-client/models/blocklist_identifier.rb +1 -1
- data/lib/clerk-http-client/models/blocklist_identifiers.rb +1 -1
- data/lib/clerk-http-client/models/change_production_instance_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/clerk_error.rb +1 -1
- data/lib/clerk-http-client/models/clerk_errors.rb +1 -1
- data/lib/clerk-http-client/models/client.rb +1 -1
- data/lib/clerk-http-client/models/{c_name_target.rb → cname_target.rb} +1 -1
- data/lib/clerk-http-client/models/create_actor_token_request.rb +1 -1
- data/lib/clerk-http-client/models/create_allowlist_identifier_request.rb +1 -1
- data/lib/clerk-http-client/models/create_blocklist_identifier_request.rb +1 -1
- data/lib/clerk-http-client/models/create_bulk_invitations_request_inner.rb +305 -0
- data/lib/clerk-http-client/models/create_email_address_request.rb +1 -1
- data/lib/clerk-http-client/models/create_invitation_request.rb +57 -10
- data/lib/clerk-http-client/models/create_jwt_template_request.rb +1 -1
- data/lib/clerk-http-client/models/{create_o_auth_application_request.rb → create_oauth_application_request.rb} +1 -8
- data/lib/clerk-http-client/models/create_organization_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/create_organization_invitation_bulk_request_inner.rb +11 -7
- data/lib/clerk-http-client/models/create_organization_invitation_request.rb +50 -11
- data/lib/clerk-http-client/models/create_organization_membership_request.rb +1 -1
- data/lib/clerk-http-client/models/create_organization_request.rb +9 -12
- data/lib/clerk-http-client/models/create_phone_number_request.rb +1 -1
- data/lib/clerk-http-client/models/create_redirect_url_request.rb +1 -1
- data/lib/clerk-http-client/models/create_saml_connection_request.rb +13 -2
- data/lib/clerk-http-client/models/create_saml_connection_request_attribute_mapping.rb +1 -1
- data/lib/clerk-http-client/models/create_session_request.rb +215 -0
- data/lib/clerk-http-client/models/create_session_token200_response.rb +257 -0
- data/lib/clerk-http-client/models/create_session_token_from_template_request.rb +240 -0
- data/lib/clerk-http-client/models/create_session_token_request.rb +240 -0
- data/lib/clerk-http-client/models/create_sign_in_token_request.rb +1 -1
- data/lib/clerk-http-client/models/create_user_request.rb +13 -7
- data/lib/clerk-http-client/models/create_waitlist_entry_request.rb +232 -0
- data/lib/clerk-http-client/models/deleted_object.rb +1 -1
- data/lib/clerk-http-client/models/disable_mfa200_response.rb +1 -1
- data/lib/clerk-http-client/models/domain.rb +1 -1
- data/lib/clerk-http-client/models/domains.rb +1 -1
- data/lib/clerk-http-client/models/email_address.rb +12 -2
- data/lib/clerk-http-client/models/email_address_verification.rb +3 -3
- data/lib/clerk-http-client/models/from_o_auth.rb +324 -0
- data/{resources/templates/partial_anyof_module.mustache → lib/clerk-http-client/models/from_o_auth_error.rb} +29 -19
- data/lib/clerk-http-client/models/from_oauth.rb +324 -0
- data/{resources/templates/partial_oneof_module.mustache → lib/clerk-http-client/models/from_oauth_error.rb} +21 -54
- data/lib/clerk-http-client/models/{get_o_auth_access_token200_response_inner.rb → get_oauth_access_token200_response_inner.rb} +20 -7
- data/lib/clerk-http-client/models/identification_link.rb +3 -3
- data/lib/clerk-http-client/models/instance.rb +279 -0
- data/lib/clerk-http-client/models/instance_restrictions.rb +1 -1
- data/lib/clerk-http-client/models/invitation.rb +5 -3
- data/lib/clerk-http-client/models/jwks.rb +216 -0
- data/lib/clerk-http-client/models/jwks_keys_inner.rb +277 -0
- data/lib/clerk-http-client/models/jwt_template.rb +1 -1
- data/lib/clerk-http-client/models/list_waitlist_entries200_response.rb +240 -0
- data/lib/clerk-http-client/models/merge_organization_metadata_request.rb +9 -5
- data/lib/clerk-http-client/models/o_auth_application.rb +34 -2
- data/lib/clerk-http-client/models/o_auth_application_with_secret.rb +34 -2
- data/lib/clerk-http-client/models/o_auth_applications.rb +1 -1
- data/lib/clerk-http-client/models/oauth.rb +2 -2
- data/lib/clerk-http-client/models/oauth_application.rb +481 -0
- data/lib/clerk-http-client/models/oauth_application_with_secret.rb +498 -0
- data/lib/clerk-http-client/models/oauth_applications.rb +240 -0
- data/lib/clerk-http-client/models/organization.rb +10 -5
- data/lib/clerk-http-client/models/organization_domain.rb +1 -1
- data/lib/clerk-http-client/models/organization_domain_verification.rb +1 -1
- data/lib/clerk-http-client/models/organization_domains.rb +1 -1
- data/lib/clerk-http-client/models/organization_invitation.rb +31 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data.rb +20 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data_public_organization_data.rb +1 -1
- data/lib/clerk-http-client/models/organization_invitations.rb +1 -1
- data/lib/clerk-http-client/models/organization_invitations_with_public_organization_data.rb +1 -1
- data/lib/clerk-http-client/models/organization_membership.rb +9 -5
- data/lib/clerk-http-client/models/organization_membership_public_user_data.rb +1 -1
- data/lib/clerk-http-client/models/organization_memberships.rb +1 -1
- data/lib/clerk-http-client/models/organization_settings.rb +1 -1
- data/lib/clerk-http-client/models/organization_with_logo.rb +10 -5
- data/lib/clerk-http-client/models/organizations.rb +1 -1
- data/lib/clerk-http-client/models/otp.rb +1 -1
- data/lib/clerk-http-client/models/passkey.rb +1 -1
- data/lib/clerk-http-client/models/phone_number.rb +1 -1
- data/lib/clerk-http-client/models/phone_number_verification.rb +1 -1
- data/lib/clerk-http-client/models/preview_template_request.rb +1 -1
- data/lib/clerk-http-client/models/proxy_check.rb +1 -1
- data/lib/clerk-http-client/models/redirect_url.rb +1 -1
- data/lib/clerk-http-client/models/revoke_invitation200_response.rb +5 -3
- data/lib/clerk-http-client/models/revoke_organization_invitation_request.rb +1 -1
- data/lib/clerk-http-client/models/saml.rb +2 -2
- data/lib/clerk-http-client/models/saml_account.rb +5 -3
- data/lib/clerk-http-client/models/saml_account_saml_connection.rb +1 -1
- data/lib/clerk-http-client/models/saml_account_verification.rb +1 -1
- data/lib/clerk-http-client/models/saml_connection.rb +1 -1
- data/lib/clerk-http-client/models/saml_connections.rb +1 -1
- data/lib/clerk-http-client/models/schemas_passkey.rb +1 -1
- data/lib/clerk-http-client/models/schemas_passkey_verification.rb +1 -1
- data/lib/clerk-http-client/models/schemas_saml_connection.rb +12 -2
- data/lib/clerk-http-client/models/schemas_saml_connection_attribute_mapping.rb +1 -1
- data/lib/clerk-http-client/models/session.rb +1 -1
- data/lib/clerk-http-client/models/session_latest_activity.rb +1 -1
- data/lib/clerk-http-client/models/sign_in_token.rb +1 -1
- data/lib/clerk-http-client/models/sign_up.rb +21 -6
- data/lib/clerk-http-client/models/svix_url.rb +1 -1
- data/lib/clerk-http-client/models/template.rb +1 -1
- data/lib/clerk-http-client/models/testing_token.rb +1 -1
- data/lib/clerk-http-client/models/ticket.rb +1 -1
- data/lib/clerk-http-client/models/toggle_template_delivery_request.rb +1 -1
- data/lib/clerk-http-client/models/total_count.rb +1 -1
- data/lib/clerk-http-client/models/totp.rb +1 -1
- data/lib/clerk-http-client/models/update_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/update_email_address_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_auth_config200_response.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_auth_config_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_organization_settings_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_restrictions_request.rb +1 -1
- data/lib/clerk-http-client/models/{update_o_auth_application_request.rb → update_oauth_application_request.rb} +1 -1
- data/lib/clerk-http-client/models/update_organization_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/update_organization_membership_metadata_request.rb +9 -5
- data/lib/clerk-http-client/models/update_organization_membership_request.rb +1 -1
- data/lib/clerk-http-client/models/update_organization_request.rb +9 -5
- data/lib/clerk-http-client/models/update_phone_number_request.rb +1 -1
- data/lib/clerk-http-client/models/update_production_instance_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/update_saml_connection_request.rb +13 -2
- data/lib/clerk-http-client/models/update_saml_connection_request_attribute_mapping.rb +1 -1
- data/lib/clerk-http-client/models/update_sign_up_request.rb +1 -1
- data/lib/clerk-http-client/models/update_user_metadata_request.rb +1 -1
- data/lib/clerk-http-client/models/update_user_request.rb +13 -7
- data/lib/clerk-http-client/models/upsert_template_request.rb +1 -1
- data/lib/clerk-http-client/models/user.rb +13 -7
- data/lib/clerk-http-client/models/verify_client_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_domain_proxy_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_password200_response.rb +1 -1
- data/lib/clerk-http-client/models/verify_password_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_session_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_totp200_response.rb +1 -1
- data/lib/clerk-http-client/models/verify_totp_request.rb +1 -1
- data/lib/clerk-http-client/models/waitlist_entry.rb +369 -0
- data/lib/clerk-http-client/models/waitlist_entry_invitation.rb +397 -0
- data/lib/clerk-http-client/models/web3_signature.rb +3 -3
- data/lib/clerk-http-client/models/web3_wallet.rb +1 -1
- data/lib/clerk-http-client/models/web3_wallet_verification.rb +1 -1
- data/lib/clerk-http-client/version.rb +1 -1
- data/lib/clerk-http-client.rb +54 -59
- data/spec/api/actor_tokens_api_spec.rb +1 -1
- data/spec/api/allow_list_block_list_api_spec.rb +2 -2
- data/spec/api/beta_features_api_spec.rb +2 -2
- data/spec/api/clients_api_spec.rb +1 -1
- data/spec/api/domains_api_spec.rb +1 -1
- data/spec/api/email_addresses_api_spec.rb +2 -2
- data/spec/api/instance_settings_api_spec.rb +3 -3
- data/spec/api/invitations_api_spec.rb +1 -1
- data/spec/api/jwt_templates_api_spec.rb +2 -2
- data/spec/api/{o_auth_applications_api_spec.rb → oauth_applications_api_spec.rb} +15 -15
- data/spec/api/organizations_api_spec.rb +1 -1
- data/spec/api/phone_numbers_api_spec.rb +2 -2
- data/spec/api/proxy_checks_api_spec.rb +1 -1
- data/spec/api/redirect_urls_api_spec.rb +1 -1
- data/spec/api/saml_connections_api_spec.rb +1 -1
- data/spec/api/sign_in_tokens_api_spec.rb +1 -1
- data/spec/api/sign_ups_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +3 -3
- data/spec/api/waitlist_entries_api_spec.rb +63 -0
- data/spec/models/cname_target_spec.rb +48 -0
- data/spec/models/create_bulk_invitations_request_inner_spec.rb +66 -0
- data/spec/models/create_oauth_application_request_spec.rb +54 -0
- data/spec/models/create_session_request_spec.rb +36 -0
- data/spec/models/create_session_token200_response_spec.rb +46 -0
- data/spec/models/create_session_token_from_template_request_spec.rb +36 -0
- data/spec/models/create_session_token_request_spec.rb +36 -0
- data/spec/models/create_waitlist_entry_request_spec.rb +42 -0
- data/spec/models/from_o_auth_error_spec.rb +32 -0
- data/spec/models/from_o_auth_spec.rb +64 -0
- data/spec/models/from_oauth_error_spec.rb +32 -0
- data/spec/models/from_oauth_spec.rb +64 -0
- data/spec/models/get_oauth_access_token200_response_inner_spec.rb +90 -0
- data/spec/models/identification_link_spec.rb +1 -1
- data/spec/models/instance_spec.rb +58 -0
- data/spec/models/jwks_keys_inner_spec.rb +78 -0
- data/spec/models/jwks_spec.rb +36 -0
- data/spec/models/list_waitlist_entries200_response_spec.rb +42 -0
- data/spec/models/oauth_application_spec.rb +124 -0
- data/spec/models/oauth_application_with_secret_spec.rb +130 -0
- data/spec/models/oauth_applications_spec.rb +42 -0
- data/spec/models/oauth_spec.rb +1 -1
- data/spec/models/update_oauth_application_request_spec.rb +48 -0
- data/spec/models/waitlist_entry_invitation_spec.rb +98 -0
- data/spec/models/waitlist_entry_spec.rb +86 -0
- data/spec/spec_helper.rb +1 -1
- metadata +108 -74
- data/bin/fmt +0 -5
- data/bin/generate +0 -8
- data/bin/setup +0 -7
- data/openapitools.json +0 -7
- data/pkg/clerk-http-client-1.0.0.gem +0 -0
- data/resources/.DS_Store +0 -0
- data/resources/oas/bapi-2024-10-01.yml +0 -7238
- data/resources/templates/Gemfile.mustache +0 -9
- data/resources/templates/README.mustache +0 -163
- data/resources/templates/Rakefile.mustache +0 -10
- data/resources/templates/api.mustache +0 -257
- data/resources/templates/api_client.mustache +0 -246
- data/resources/templates/api_client_faraday_partial.mustache +0 -200
- data/resources/templates/api_client_httpx_partial.mustache +0 -134
- data/resources/templates/api_client_typhoeus_partial.mustache +0 -161
- data/resources/templates/api_doc.mustache +0 -132
- data/resources/templates/api_error.mustache +0 -50
- data/resources/templates/api_info.mustache +0 -12
- data/resources/templates/api_test.mustache +0 -47
- data/resources/templates/base_object.mustache +0 -114
- data/resources/templates/configuration.mustache +0 -491
- data/resources/templates/configuration_faraday_partial.mustache +0 -40
- data/resources/templates/configuration_httpx_partial.mustache +0 -11
- data/resources/templates/configuration_typhoeus_partial.mustache +0 -41
- data/resources/templates/gem.mustache +0 -89
- data/resources/templates/gemspec.mustache +0 -41
- data/resources/templates/git_push.sh.mustache +0 -57
- data/resources/templates/gitignore.mustache +0 -39
- data/resources/templates/gitlab-ci.mustache +0 -26
- data/resources/templates/model.mustache +0 -33
- data/resources/templates/model_doc.mustache +0 -12
- data/resources/templates/model_test.mustache +0 -82
- data/resources/templates/partial_model_enum_class.mustache +0 -23
- data/resources/templates/partial_model_generic.mustache +0 -377
- data/resources/templates/partial_model_generic_doc.mustache +0 -28
- data/resources/templates/partial_oneof_module_doc.mustache +0 -93
- data/resources/templates/rspec.mustache +0 -2
- data/resources/templates/rubocop.mustache +0 -148
- data/resources/templates/spec_helper.mustache +0 -103
- data/resources/templates/travis.mustache +0 -11
- data/resources/templates/version.mustache +0 -7
- data/sdk-generator-config.json +0 -20
- data/test.rb +0 -2
- /data/docs/{CNameTarget.md → CnameTarget.md} +0 -0
- /data/docs/{CreateRedirectURLRequest.md → CreateRedirectUrlRequest.md} +0 -0
- /data/docs/{OAuthApplications.md → OauthApplications.md} +0 -0
- /data/docs/{RedirectURL.md → RedirectUrl.md} +0 -0
- /data/docs/{SvixURL.md → SvixUrl.md} +0 -0
- /data/docs/{UpdateOAuthApplicationRequest.md → UpdateOauthApplicationRequest.md} +0 -0
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: support@clerk.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version:
|
9
|
+
Generator version: unset
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,28 +21,24 @@ module ClerkHttpClient
|
|
21
21
|
end
|
22
22
|
# Create an OAuth application
|
23
23
|
# Creates a new OAuth application with the given name and callback URL for an instance. The callback URL must be a valid url. All URL schemes are allowed such as `http://`, `https://`, `myapp://`, etc...
|
24
|
-
# @param create_o_auth_application_request [CreateOAuthApplicationRequest]
|
25
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [CreateOAuthApplicationRequest] :create_oauth_application_request
|
26
26
|
# @return [OAuthApplicationWithSecret]
|
27
27
|
|
28
|
-
def
|
29
|
-
data, _status_code, _headers =
|
28
|
+
def create_oauth_application(opts = {})
|
29
|
+
data, _status_code, _headers = create_oauth_application_with_http_info(opts)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
33
|
# Create an OAuth application
|
34
34
|
# Creates a new OAuth application with the given name and callback URL for an instance. The callback URL must be a valid url. All URL schemes are allowed such as `http://`, `https://`, `myapp://`, etc...
|
35
|
-
# @param create_o_auth_application_request [CreateOAuthApplicationRequest]
|
36
35
|
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [CreateOAuthApplicationRequest] :create_oauth_application_request
|
37
37
|
# @return [Array<(OAuthApplicationWithSecret, Integer, Hash)>] OAuthApplicationWithSecret data, response status code and response headers
|
38
38
|
# POST
|
39
|
-
def
|
39
|
+
def create_oauth_application_with_http_info(opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: OAuthApplicationsApi.
|
42
|
-
end
|
43
|
-
# verify the required parameter 'create_o_auth_application_request' is set
|
44
|
-
if @api_client.config.client_side_validation && create_o_auth_application_request.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'create_o_auth_application_request' when calling OAuthApplicationsApi.create_o_auth_application"
|
41
|
+
@api_client.config.logger.debug 'Calling API: OAuthApplicationsApi.create_oauth_application ...'
|
46
42
|
end
|
47
43
|
# resource path
|
48
44
|
local_var_path = '/oauth_applications'
|
@@ -64,7 +60,7 @@ module ClerkHttpClient
|
|
64
60
|
form_params = opts[:form_params] || {}
|
65
61
|
|
66
62
|
# http body (model)
|
67
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_oauth_application_request'])
|
68
64
|
|
69
65
|
# return_type
|
70
66
|
return_type = opts[:debug_return_type] || 'OAuthApplicationWithSecret'
|
@@ -73,7 +69,7 @@ module ClerkHttpClient
|
|
73
69
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
74
70
|
|
75
71
|
new_options = opts.merge(
|
76
|
-
:operation => :"OAuthApplicationsApi.
|
72
|
+
:operation => :"OAuthApplicationsApi.create_oauth_application",
|
77
73
|
:header_params => header_params,
|
78
74
|
:query_params => query_params,
|
79
75
|
:form_params => form_params,
|
@@ -84,7 +80,7 @@ module ClerkHttpClient
|
|
84
80
|
|
85
81
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
82
|
if @api_client.config.debugging
|
87
|
-
@api_client.config.logger.debug "API called: OAuthApplicationsApi#
|
83
|
+
@api_client.config.logger.debug "API called: OAuthApplicationsApi#create_oauth_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
84
|
end
|
89
85
|
return data, status_code, headers
|
90
86
|
end
|
@@ -95,8 +91,8 @@ module ClerkHttpClient
|
|
95
91
|
# @param [Hash] opts the optional parameters
|
96
92
|
# @return [DeletedObject]
|
97
93
|
|
98
|
-
def
|
99
|
-
data, _status_code, _headers =
|
94
|
+
def delete_oauth_application(oauth_application_id, opts = {})
|
95
|
+
data, _status_code, _headers = delete_oauth_application_with_http_info(oauth_application_id, opts)
|
100
96
|
data
|
101
97
|
end
|
102
98
|
|
@@ -106,13 +102,13 @@ module ClerkHttpClient
|
|
106
102
|
# @param [Hash] opts the optional parameters
|
107
103
|
# @return [Array<(DeletedObject, Integer, Hash)>] DeletedObject data, response status code and response headers
|
108
104
|
# DELETE
|
109
|
-
def
|
105
|
+
def delete_oauth_application_with_http_info(oauth_application_id, opts = {})
|
110
106
|
if @api_client.config.debugging
|
111
|
-
@api_client.config.logger.debug 'Calling API: OAuthApplicationsApi.
|
107
|
+
@api_client.config.logger.debug 'Calling API: OAuthApplicationsApi.delete_oauth_application ...'
|
112
108
|
end
|
113
109
|
# verify the required parameter 'oauth_application_id' is set
|
114
110
|
if @api_client.config.client_side_validation && oauth_application_id.nil?
|
115
|
-
fail ArgumentError, "Missing the required parameter 'oauth_application_id' when calling OAuthApplicationsApi.
|
111
|
+
fail ArgumentError, "Missing the required parameter 'oauth_application_id' when calling OAuthApplicationsApi.delete_oauth_application"
|
116
112
|
end
|
117
113
|
# resource path
|
118
114
|
local_var_path = '/oauth_applications/{oauth_application_id}'.sub('{' + 'oauth_application_id' + '}', CGI.escape(oauth_application_id.to_s))
|
@@ -138,7 +134,7 @@ module ClerkHttpClient
|
|
138
134
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
139
135
|
|
140
136
|
new_options = opts.merge(
|
141
|
-
:operation => :"OAuthApplicationsApi.
|
137
|
+
:operation => :"OAuthApplicationsApi.delete_oauth_application",
|
142
138
|
:header_params => header_params,
|
143
139
|
:query_params => query_params,
|
144
140
|
:form_params => form_params,
|
@@ -149,7 +145,7 @@ module ClerkHttpClient
|
|
149
145
|
|
150
146
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
151
147
|
if @api_client.config.debugging
|
152
|
-
@api_client.config.logger.debug "API called: OAuthApplicationsApi#
|
148
|
+
@api_client.config.logger.debug "API called: OAuthApplicationsApi#delete_oauth_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
153
149
|
end
|
154
150
|
return data, status_code, headers
|
155
151
|
end
|
@@ -160,8 +156,8 @@ module ClerkHttpClient
|
|
160
156
|
# @param [Hash] opts the optional parameters
|
161
157
|
# @return [OAuthApplication]
|
162
158
|
|
163
|
-
def
|
164
|
-
data, _status_code, _headers =
|
159
|
+
def get_oauth_application(oauth_application_id, opts = {})
|
160
|
+
data, _status_code, _headers = get_oauth_application_with_http_info(oauth_application_id, opts)
|
165
161
|
data
|
166
162
|
end
|
167
163
|
|
@@ -171,13 +167,13 @@ module ClerkHttpClient
|
|
171
167
|
# @param [Hash] opts the optional parameters
|
172
168
|
# @return [Array<(OAuthApplication, Integer, Hash)>] OAuthApplication data, response status code and response headers
|
173
169
|
# GET
|
174
|
-
def
|
170
|
+
def get_oauth_application_with_http_info(oauth_application_id, opts = {})
|
175
171
|
if @api_client.config.debugging
|
176
|
-
@api_client.config.logger.debug 'Calling API: OAuthApplicationsApi.
|
172
|
+
@api_client.config.logger.debug 'Calling API: OAuthApplicationsApi.get_oauth_application ...'
|
177
173
|
end
|
178
174
|
# verify the required parameter 'oauth_application_id' is set
|
179
175
|
if @api_client.config.client_side_validation && oauth_application_id.nil?
|
180
|
-
fail ArgumentError, "Missing the required parameter 'oauth_application_id' when calling OAuthApplicationsApi.
|
176
|
+
fail ArgumentError, "Missing the required parameter 'oauth_application_id' when calling OAuthApplicationsApi.get_oauth_application"
|
181
177
|
end
|
182
178
|
# resource path
|
183
179
|
local_var_path = '/oauth_applications/{oauth_application_id}'.sub('{' + 'oauth_application_id' + '}', CGI.escape(oauth_application_id.to_s))
|
@@ -203,7 +199,7 @@ module ClerkHttpClient
|
|
203
199
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
204
200
|
|
205
201
|
new_options = opts.merge(
|
206
|
-
:operation => :"OAuthApplicationsApi.
|
202
|
+
:operation => :"OAuthApplicationsApi.get_oauth_application",
|
207
203
|
:header_params => header_params,
|
208
204
|
:query_params => query_params,
|
209
205
|
:form_params => form_params,
|
@@ -214,7 +210,7 @@ module ClerkHttpClient
|
|
214
210
|
|
215
211
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
216
212
|
if @api_client.config.debugging
|
217
|
-
@api_client.config.logger.debug "API called: OAuthApplicationsApi#
|
213
|
+
@api_client.config.logger.debug "API called: OAuthApplicationsApi#get_oauth_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
218
214
|
end
|
219
215
|
return data, status_code, headers
|
220
216
|
end
|
@@ -226,8 +222,8 @@ module ClerkHttpClient
|
|
226
222
|
# @option opts [Float] :offset Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`. (default to 0)
|
227
223
|
# @return [OAuthApplications]
|
228
224
|
|
229
|
-
def
|
230
|
-
data, _status_code, _headers =
|
225
|
+
def list_oauth_applications(opts = {})
|
226
|
+
data, _status_code, _headers = list_oauth_applications_with_http_info(opts)
|
231
227
|
data
|
232
228
|
end
|
233
229
|
|
@@ -238,20 +234,20 @@ module ClerkHttpClient
|
|
238
234
|
# @option opts [Float] :offset Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`. (default to 0)
|
239
235
|
# @return [Array<(OAuthApplications, Integer, Hash)>] OAuthApplications data, response status code and response headers
|
240
236
|
# GET
|
241
|
-
def
|
237
|
+
def list_oauth_applications_with_http_info(opts = {})
|
242
238
|
if @api_client.config.debugging
|
243
|
-
@api_client.config.logger.debug 'Calling API: OAuthApplicationsApi.
|
239
|
+
@api_client.config.logger.debug 'Calling API: OAuthApplicationsApi.list_oauth_applications ...'
|
244
240
|
end
|
245
241
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
246
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OAuthApplicationsApi.
|
242
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OAuthApplicationsApi.list_oauth_applications, must be smaller than or equal to 500.'
|
247
243
|
end
|
248
244
|
|
249
245
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
250
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OAuthApplicationsApi.
|
246
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OAuthApplicationsApi.list_oauth_applications, must be greater than or equal to 1.'
|
251
247
|
end
|
252
248
|
|
253
249
|
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
254
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling OAuthApplicationsApi.
|
250
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling OAuthApplicationsApi.list_oauth_applications, must be greater than or equal to 0.'
|
255
251
|
end
|
256
252
|
|
257
253
|
# resource path
|
@@ -280,7 +276,7 @@ module ClerkHttpClient
|
|
280
276
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
281
277
|
|
282
278
|
new_options = opts.merge(
|
283
|
-
:operation => :"OAuthApplicationsApi.
|
279
|
+
:operation => :"OAuthApplicationsApi.list_oauth_applications",
|
284
280
|
:header_params => header_params,
|
285
281
|
:query_params => query_params,
|
286
282
|
:form_params => form_params,
|
@@ -291,7 +287,7 @@ module ClerkHttpClient
|
|
291
287
|
|
292
288
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
293
289
|
if @api_client.config.debugging
|
294
|
-
@api_client.config.logger.debug "API called: OAuthApplicationsApi#
|
290
|
+
@api_client.config.logger.debug "API called: OAuthApplicationsApi#list_oauth_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
295
291
|
end
|
296
292
|
return data, status_code, headers
|
297
293
|
end
|
@@ -302,8 +298,8 @@ module ClerkHttpClient
|
|
302
298
|
# @param [Hash] opts the optional parameters
|
303
299
|
# @return [OAuthApplicationWithSecret]
|
304
300
|
|
305
|
-
def
|
306
|
-
data, _status_code, _headers =
|
301
|
+
def rotate_oauth_application_secret(oauth_application_id, opts = {})
|
302
|
+
data, _status_code, _headers = rotate_oauth_application_secret_with_http_info(oauth_application_id, opts)
|
307
303
|
data
|
308
304
|
end
|
309
305
|
|
@@ -313,13 +309,13 @@ module ClerkHttpClient
|
|
313
309
|
# @param [Hash] opts the optional parameters
|
314
310
|
# @return [Array<(OAuthApplicationWithSecret, Integer, Hash)>] OAuthApplicationWithSecret data, response status code and response headers
|
315
311
|
# POST
|
316
|
-
def
|
312
|
+
def rotate_oauth_application_secret_with_http_info(oauth_application_id, opts = {})
|
317
313
|
if @api_client.config.debugging
|
318
|
-
@api_client.config.logger.debug 'Calling API: OAuthApplicationsApi.
|
314
|
+
@api_client.config.logger.debug 'Calling API: OAuthApplicationsApi.rotate_oauth_application_secret ...'
|
319
315
|
end
|
320
316
|
# verify the required parameter 'oauth_application_id' is set
|
321
317
|
if @api_client.config.client_side_validation && oauth_application_id.nil?
|
322
|
-
fail ArgumentError, "Missing the required parameter 'oauth_application_id' when calling OAuthApplicationsApi.
|
318
|
+
fail ArgumentError, "Missing the required parameter 'oauth_application_id' when calling OAuthApplicationsApi.rotate_oauth_application_secret"
|
323
319
|
end
|
324
320
|
# resource path
|
325
321
|
local_var_path = '/oauth_applications/{oauth_application_id}/rotate_secret'.sub('{' + 'oauth_application_id' + '}', CGI.escape(oauth_application_id.to_s))
|
@@ -345,7 +341,7 @@ module ClerkHttpClient
|
|
345
341
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
346
342
|
|
347
343
|
new_options = opts.merge(
|
348
|
-
:operation => :"OAuthApplicationsApi.
|
344
|
+
:operation => :"OAuthApplicationsApi.rotate_oauth_application_secret",
|
349
345
|
:header_params => header_params,
|
350
346
|
:query_params => query_params,
|
351
347
|
:form_params => form_params,
|
@@ -356,7 +352,7 @@ module ClerkHttpClient
|
|
356
352
|
|
357
353
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
358
354
|
if @api_client.config.debugging
|
359
|
-
@api_client.config.logger.debug "API called: OAuthApplicationsApi#
|
355
|
+
@api_client.config.logger.debug "API called: OAuthApplicationsApi#rotate_oauth_application_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
360
356
|
end
|
361
357
|
return data, status_code, headers
|
362
358
|
end
|
@@ -364,33 +360,33 @@ module ClerkHttpClient
|
|
364
360
|
# Update an OAuth application
|
365
361
|
# Updates an existing OAuth application
|
366
362
|
# @param oauth_application_id [String] The ID of the OAuth application to update
|
367
|
-
# @param
|
363
|
+
# @param update_oauth_application_request [UpdateOAuthApplicationRequest]
|
368
364
|
# @param [Hash] opts the optional parameters
|
369
365
|
# @return [OAuthApplication]
|
370
366
|
|
371
|
-
def
|
372
|
-
data, _status_code, _headers =
|
367
|
+
def update_oauth_application(oauth_application_id, update_oauth_application_request, opts = {})
|
368
|
+
data, _status_code, _headers = update_oauth_application_with_http_info(oauth_application_id, update_oauth_application_request, opts)
|
373
369
|
data
|
374
370
|
end
|
375
371
|
|
376
372
|
# Update an OAuth application
|
377
373
|
# Updates an existing OAuth application
|
378
374
|
# @param oauth_application_id [String] The ID of the OAuth application to update
|
379
|
-
# @param
|
375
|
+
# @param update_oauth_application_request [UpdateOAuthApplicationRequest]
|
380
376
|
# @param [Hash] opts the optional parameters
|
381
377
|
# @return [Array<(OAuthApplication, Integer, Hash)>] OAuthApplication data, response status code and response headers
|
382
378
|
# PATCH
|
383
|
-
def
|
379
|
+
def update_oauth_application_with_http_info(oauth_application_id, update_oauth_application_request, opts = {})
|
384
380
|
if @api_client.config.debugging
|
385
|
-
@api_client.config.logger.debug 'Calling API: OAuthApplicationsApi.
|
381
|
+
@api_client.config.logger.debug 'Calling API: OAuthApplicationsApi.update_oauth_application ...'
|
386
382
|
end
|
387
383
|
# verify the required parameter 'oauth_application_id' is set
|
388
384
|
if @api_client.config.client_side_validation && oauth_application_id.nil?
|
389
|
-
fail ArgumentError, "Missing the required parameter 'oauth_application_id' when calling OAuthApplicationsApi.
|
385
|
+
fail ArgumentError, "Missing the required parameter 'oauth_application_id' when calling OAuthApplicationsApi.update_oauth_application"
|
390
386
|
end
|
391
|
-
# verify the required parameter '
|
392
|
-
if @api_client.config.client_side_validation &&
|
393
|
-
fail ArgumentError, "Missing the required parameter '
|
387
|
+
# verify the required parameter 'update_oauth_application_request' is set
|
388
|
+
if @api_client.config.client_side_validation && update_oauth_application_request.nil?
|
389
|
+
fail ArgumentError, "Missing the required parameter 'update_oauth_application_request' when calling OAuthApplicationsApi.update_oauth_application"
|
394
390
|
end
|
395
391
|
# resource path
|
396
392
|
local_var_path = '/oauth_applications/{oauth_application_id}'.sub('{' + 'oauth_application_id' + '}', CGI.escape(oauth_application_id.to_s))
|
@@ -412,7 +408,7 @@ module ClerkHttpClient
|
|
412
408
|
form_params = opts[:form_params] || {}
|
413
409
|
|
414
410
|
# http body (model)
|
415
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
411
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_oauth_application_request)
|
416
412
|
|
417
413
|
# return_type
|
418
414
|
return_type = opts[:debug_return_type] || 'OAuthApplication'
|
@@ -421,7 +417,7 @@ module ClerkHttpClient
|
|
421
417
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
422
418
|
|
423
419
|
new_options = opts.merge(
|
424
|
-
:operation => :"OAuthApplicationsApi.
|
420
|
+
:operation => :"OAuthApplicationsApi.update_oauth_application",
|
425
421
|
:header_params => header_params,
|
426
422
|
:query_params => query_params,
|
427
423
|
:form_params => form_params,
|
@@ -432,7 +428,7 @@ module ClerkHttpClient
|
|
432
428
|
|
433
429
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
434
430
|
if @api_client.config.debugging
|
435
|
-
@api_client.config.logger.debug "API called: OAuthApplicationsApi#
|
431
|
+
@api_client.config.logger.debug "API called: OAuthApplicationsApi#update_oauth_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
436
432
|
end
|
437
433
|
return data, status_code, headers
|
438
434
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: support@clerk.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version:
|
9
|
+
Generator version: unset
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,8 +26,8 @@ module ClerkHttpClient
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [OrganizationDomain]
|
28
28
|
|
29
|
-
def
|
30
|
-
data, _status_code, _headers =
|
29
|
+
def create_organization_domain(organization_id, create_organization_domain_request, opts = {})
|
30
|
+
data, _status_code, _headers = create_organization_domain_with_http_info(organization_id, create_organization_domain_request, opts)
|
31
31
|
data
|
32
32
|
end
|
33
33
|
|
@@ -38,7 +38,7 @@ module ClerkHttpClient
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Array<(OrganizationDomain, Integer, Hash)>] OrganizationDomain data, response status code and response headers
|
40
40
|
# POST
|
41
|
-
def
|
41
|
+
def create_organization_domain_with_http_info(organization_id, create_organization_domain_request, opts = {})
|
42
42
|
if @api_client.config.debugging
|
43
43
|
@api_client.config.logger.debug 'Calling API: OrganizationDomainsApi.create_organization_domain ...'
|
44
44
|
end
|
@@ -102,8 +102,8 @@ module ClerkHttpClient
|
|
102
102
|
# @param [Hash] opts the optional parameters
|
103
103
|
# @return [DeletedObject]
|
104
104
|
|
105
|
-
def
|
106
|
-
data, _status_code, _headers =
|
105
|
+
def delete_organization_domain(organization_id, domain_id, opts = {})
|
106
|
+
data, _status_code, _headers = delete_organization_domain_with_http_info(organization_id, domain_id, opts)
|
107
107
|
data
|
108
108
|
end
|
109
109
|
|
@@ -114,7 +114,7 @@ module ClerkHttpClient
|
|
114
114
|
# @param [Hash] opts the optional parameters
|
115
115
|
# @return [Array<(DeletedObject, Integer, Hash)>] DeletedObject data, response status code and response headers
|
116
116
|
# DELETE
|
117
|
-
def
|
117
|
+
def delete_organization_domain_with_http_info(organization_id, domain_id, opts = {})
|
118
118
|
if @api_client.config.debugging
|
119
119
|
@api_client.config.logger.debug 'Calling API: OrganizationDomainsApi.delete_organization_domain ...'
|
120
120
|
end
|
@@ -176,8 +176,8 @@ module ClerkHttpClient
|
|
176
176
|
# @option opts [String] :enrollment_mode Filter domains by their enrollment mode
|
177
177
|
# @return [OrganizationDomains]
|
178
178
|
|
179
|
-
def
|
180
|
-
data, _status_code, _headers =
|
179
|
+
def list_organization_domains(organization_id, opts = {})
|
180
|
+
data, _status_code, _headers = list_organization_domains_with_http_info(organization_id, opts)
|
181
181
|
data
|
182
182
|
end
|
183
183
|
|
@@ -191,7 +191,7 @@ module ClerkHttpClient
|
|
191
191
|
# @option opts [String] :enrollment_mode Filter domains by their enrollment mode
|
192
192
|
# @return [Array<(OrganizationDomains, Integer, Hash)>] OrganizationDomains data, response status code and response headers
|
193
193
|
# GET
|
194
|
-
def
|
194
|
+
def list_organization_domains_with_http_info(organization_id, opts = {})
|
195
195
|
if @api_client.config.debugging
|
196
196
|
@api_client.config.logger.debug 'Calling API: OrganizationDomainsApi.list_organization_domains ...'
|
197
197
|
end
|
@@ -254,5 +254,87 @@ module ClerkHttpClient
|
|
254
254
|
end
|
255
255
|
return data, status_code, headers
|
256
256
|
end
|
257
|
+
|
258
|
+
# Update an organization domain.
|
259
|
+
# Updates the properties of an existing organization domain.
|
260
|
+
# @param organization_id [String] The ID of the organization the domain belongs to
|
261
|
+
# @param domain_id [String] The ID of the domain
|
262
|
+
# @param update_organization_domain_request [UpdateOrganizationDomainRequest]
|
263
|
+
# @param [Hash] opts the optional parameters
|
264
|
+
# @return [OrganizationDomain]
|
265
|
+
|
266
|
+
def update_organization_domain(organization_id, domain_id, update_organization_domain_request, opts = {})
|
267
|
+
data, _status_code, _headers = update_organization_domain_with_http_info(organization_id, domain_id, update_organization_domain_request, opts)
|
268
|
+
data
|
269
|
+
end
|
270
|
+
|
271
|
+
# Update an organization domain.
|
272
|
+
# Updates the properties of an existing organization domain.
|
273
|
+
# @param organization_id [String] The ID of the organization the domain belongs to
|
274
|
+
# @param domain_id [String] The ID of the domain
|
275
|
+
# @param update_organization_domain_request [UpdateOrganizationDomainRequest]
|
276
|
+
# @param [Hash] opts the optional parameters
|
277
|
+
# @return [Array<(OrganizationDomain, Integer, Hash)>] OrganizationDomain data, response status code and response headers
|
278
|
+
# PATCH
|
279
|
+
def update_organization_domain_with_http_info(organization_id, domain_id, update_organization_domain_request, opts = {})
|
280
|
+
if @api_client.config.debugging
|
281
|
+
@api_client.config.logger.debug 'Calling API: OrganizationDomainsApi.update_organization_domain ...'
|
282
|
+
end
|
283
|
+
# verify the required parameter 'organization_id' is set
|
284
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
285
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationDomainsApi.update_organization_domain"
|
286
|
+
end
|
287
|
+
# verify the required parameter 'domain_id' is set
|
288
|
+
if @api_client.config.client_side_validation && domain_id.nil?
|
289
|
+
fail ArgumentError, "Missing the required parameter 'domain_id' when calling OrganizationDomainsApi.update_organization_domain"
|
290
|
+
end
|
291
|
+
# verify the required parameter 'update_organization_domain_request' is set
|
292
|
+
if @api_client.config.client_side_validation && update_organization_domain_request.nil?
|
293
|
+
fail ArgumentError, "Missing the required parameter 'update_organization_domain_request' when calling OrganizationDomainsApi.update_organization_domain"
|
294
|
+
end
|
295
|
+
# resource path
|
296
|
+
local_var_path = '/organizations/{organization_id}/domains/{domain_id}'.sub('{' + 'organization_id' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'domain_id' + '}', CGI.escape(domain_id.to_s))
|
297
|
+
|
298
|
+
# query parameters
|
299
|
+
query_params = opts[:query_params] || {}
|
300
|
+
|
301
|
+
# header parameters
|
302
|
+
header_params = opts[:header_params] || {}
|
303
|
+
# HTTP header 'Accept' (if needed)
|
304
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
305
|
+
# HTTP header 'Content-Type'
|
306
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
307
|
+
if !content_type.nil?
|
308
|
+
header_params['Content-Type'] = content_type
|
309
|
+
end
|
310
|
+
|
311
|
+
# form parameters
|
312
|
+
form_params = opts[:form_params] || {}
|
313
|
+
|
314
|
+
# http body (model)
|
315
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_domain_request)
|
316
|
+
|
317
|
+
# return_type
|
318
|
+
return_type = opts[:debug_return_type] || 'OrganizationDomain'
|
319
|
+
|
320
|
+
# auth_names
|
321
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
322
|
+
|
323
|
+
new_options = opts.merge(
|
324
|
+
:operation => :"OrganizationDomainsApi.update_organization_domain",
|
325
|
+
:header_params => header_params,
|
326
|
+
:query_params => query_params,
|
327
|
+
:form_params => form_params,
|
328
|
+
:body => post_body,
|
329
|
+
:auth_names => auth_names,
|
330
|
+
:return_type => return_type
|
331
|
+
)
|
332
|
+
|
333
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
334
|
+
if @api_client.config.debugging
|
335
|
+
@api_client.config.logger.debug "API called: OrganizationDomainsApi#update_organization_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
336
|
+
end
|
337
|
+
return data, status_code, headers
|
338
|
+
end
|
257
339
|
end
|
258
340
|
end
|