auth0 6.2.0 → 6.4.0
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/.fern/metadata.json +6 -5
- data/.fern/replay.lock +13 -1
- data/.version +1 -1
- data/CHANGELOG.md +13 -0
- data/EXAMPLES.md +44 -0
- data/examples/ruby-api/Gemfile.lock +1 -1
- data/lib/auth0/actions/client.rb +47 -6
- data/lib/auth0/actions/executions/client.rb +4 -1
- data/lib/auth0/actions/modules/client.rb +40 -6
- data/lib/auth0/actions/modules/versions/client.rb +19 -3
- data/lib/auth0/actions/triggers/bindings/client.rb +12 -2
- data/lib/auth0/actions/triggers/client.rb +4 -1
- data/lib/auth0/actions/versions/client.rb +27 -4
- data/lib/auth0/agents/client.rb +22 -4
- data/lib/auth0/anomaly/blocks/client.rb +6 -0
- data/lib/auth0/api/authentication_endpoints.rb +40 -0
- data/lib/auth0/attack_protection/bot_detection/client.rb +8 -2
- data/lib/auth0/attack_protection/breached_password_detection/client.rb +8 -2
- data/lib/auth0/attack_protection/brute_force_protection/client.rb +8 -2
- data/lib/auth0/attack_protection/captcha/client.rb +8 -2
- data/lib/auth0/attack_protection/phone_provider_protection/client.rb +8 -2
- data/lib/auth0/attack_protection/suspicious_ip_throttling/client.rb +8 -2
- data/lib/auth0/branding/client.rb +8 -2
- data/lib/auth0/branding/phone/providers/client.rb +31 -5
- data/lib/auth0/branding/phone/templates/client.rb +39 -7
- data/lib/auth0/branding/templates/client.rb +10 -1
- data/lib/auth0/branding/themes/client.rb +162 -4
- data/lib/auth0/client.rb +8 -8
- data/lib/auth0/client_grants/client.rb +28 -4
- data/lib/auth0/client_grants/organizations/client.rb +9 -1
- data/lib/auth0/clients/client.rb +46 -7
- data/lib/auth0/clients/connections/client.rb +11 -1
- data/lib/auth0/clients/credentials/client.rb +36 -7
- data/lib/auth0/clients/types/create_client_request_content.rb +4 -0
- data/lib/auth0/clients/types/update_client_request_content.rb +2 -0
- data/lib/auth0/connection_profiles/client.rb +30 -6
- data/lib/auth0/connections/client.rb +37 -4
- data/lib/auth0/connections/clients/client.rb +21 -2
- data/lib/auth0/connections/directory_provisioning/client.rb +73 -8
- data/lib/auth0/connections/directory_provisioning/synchronizations/client.rb +4 -1
- data/lib/auth0/connections/keys/client.rb +31 -8
- data/lib/auth0/connections/scim_configuration/client.rb +37 -6
- data/lib/auth0/connections/scim_configuration/tokens/client.rb +14 -2
- data/lib/auth0/connections/users/client.rb +6 -0
- data/lib/auth0/custom_domains/client.rb +43 -8
- data/lib/auth0/device_credentials/client.rb +25 -2
- data/lib/auth0/email_templates/client.rb +19 -4
- data/lib/auth0/emails/provider/client.rb +23 -3
- data/lib/auth0/event_streams/client.rb +38 -5
- data/lib/auth0/event_streams/deliveries/client.rb +19 -2
- data/lib/auth0/event_streams/redeliveries/client.rb +10 -1
- data/lib/auth0/events/client.rb +7 -0
- data/lib/auth0/experimentation/client.rb +29 -0
- data/lib/auth0/experimentation/experiments/client.rb +367 -0
- data/lib/auth0/experimentation/experiments/types/advance_ramp_request_content.rb +15 -0
- data/lib/auth0/experimentation/experiments/types/create_experiment_request_content.rb +27 -0
- data/lib/auth0/experimentation/experiments/types/list_experiments_request_parameters.rb +21 -0
- data/lib/auth0/experimentation/experiments/types/update_experiment_request_parameters.rb +25 -0
- data/lib/auth0/experimentation/experiments/types/update_experiment_status_request_content.rb +15 -0
- data/lib/auth0/experimentation/feature_flags/client.rb +280 -0
- data/lib/auth0/experimentation/feature_flags/types/create_feature_flag_request_content.rb +17 -0
- data/lib/auth0/experimentation/feature_flags/types/list_feature_flags_request_parameters.rb +19 -0
- data/lib/auth0/experimentation/feature_flags/types/update_feature_flag_request_content.rb +19 -0
- data/lib/auth0/experimentation/feature_flags/types/update_feature_flag_status_request_content.rb +15 -0
- data/lib/auth0/experimentation/feature_flags/variations/client.rb +230 -0
- data/lib/auth0/experimentation/feature_flags/variations/types/create_variation_request_content.rb +21 -0
- data/lib/auth0/experimentation/feature_flags/variations/types/update_variation_request_content.rb +23 -0
- data/lib/auth0/experimentation/segments/client.rb +228 -0
- data/lib/auth0/experimentation/segments/types/create_segment_request_content.rb +17 -0
- data/lib/auth0/experimentation/segments/types/list_segments_request_parameters.rb +17 -0
- data/lib/auth0/experimentation/segments/types/update_segment_request_content.rb +19 -0
- data/lib/auth0/flows/client.rb +28 -4
- data/lib/auth0/flows/executions/client.rb +23 -2
- data/lib/auth0/flows/vault/connections/client.rb +31 -4
- data/lib/auth0/forms/client.rb +27 -4
- data/lib/auth0/groups/client.rb +21 -2
- data/lib/auth0/groups/members/client.rb +10 -1
- data/lib/auth0/groups/roles/client.rb +20 -1
- data/lib/auth0/guardian/client.rb +77 -0
- data/lib/auth0/guardian/enrollments/client.rb +11 -2
- data/lib/auth0/guardian/factors/client.rb +21 -5
- data/lib/auth0/guardian/factors/duo/settings/client.rb +12 -3
- data/lib/auth0/guardian/factors/email/client.rb +93 -0
- data/lib/auth0/guardian/factors/email/types/set_email_factor_settings_request_content.rb +17 -0
- data/lib/auth0/guardian/factors/phone/client.rb +110 -8
- data/lib/auth0/guardian/factors/phone/types/set_phone_factor_settings_request_content.rb +17 -0
- data/lib/auth0/guardian/factors/push_notification/client.rb +48 -12
- data/lib/auth0/guardian/factors/sms/client.rb +32 -9
- data/lib/auth0/guardian/policies/client.rb +8 -2
- data/lib/auth0/guardian/types/set_guardian_settings_request_content.rb +17 -0
- data/lib/auth0/hooks/client.rb +33 -4
- data/lib/auth0/hooks/secrets/client.rb +38 -4
- data/lib/auth0/jobs/client.rb +4 -1
- data/lib/auth0/jobs/errors/client.rb +9 -4
- data/lib/auth0/jobs/users_exports/client.rb +4 -1
- data/lib/auth0/jobs/users_imports/client.rb +14 -6
- data/lib/auth0/jobs/verification_email/client.rb +4 -1
- data/lib/auth0/keys/custom_signing/client.rb +13 -2
- data/lib/auth0/keys/encryption/client.rb +33 -5
- data/lib/auth0/keys/network_acls/client.rb +19 -3
- data/lib/auth0/keys/signing/client.rb +21 -7
- data/lib/auth0/log_streams/client.rb +29 -7
- data/lib/auth0/logs/client.rb +16 -2
- data/lib/auth0/network_acls/client.rb +41 -4
- data/lib/auth0/organizations/client.rb +109 -10
- data/lib/auth0/organizations/client_grants/client.rb +25 -2
- data/lib/auth0/organizations/clients/client.rb +38 -4
- data/lib/auth0/organizations/connections/client.rb +37 -4
- data/lib/auth0/organizations/connections/types/create_organization_all_connection_request_parameters.rb +2 -0
- data/lib/auth0/organizations/connections/types/update_organization_connection_request_parameters.rb +2 -0
- data/lib/auth0/organizations/discovery_domains/client.rb +42 -5
- data/lib/auth0/organizations/enabled_connections/client.rb +36 -4
- data/lib/auth0/organizations/groups/client.rb +8 -1
- data/lib/auth0/organizations/groups/roles/client.rb +23 -1
- data/lib/auth0/organizations/invitations/client.rb +40 -3
- data/lib/auth0/organizations/members/client.rb +23 -1
- data/lib/auth0/organizations/members/effective_roles/client.rb +9 -1
- data/lib/auth0/organizations/members/effective_roles/sources/groups/client.rb +10 -1
- data/lib/auth0/organizations/members/roles/client.rb +24 -1
- data/lib/auth0/organizations/roles/groups/client.rb +9 -1
- data/lib/auth0/organizations/roles/members/client.rb +11 -1
- data/lib/auth0/organizations/types/search_organizations_request_parameters.rb +19 -0
- data/lib/auth0/prompts/client.rb +8 -2
- data/lib/auth0/prompts/custom_text/client.rb +20 -2
- data/lib/auth0/prompts/partials/client.rb +16 -2
- data/lib/auth0/prompts/rendering/client.rb +34 -4
- data/lib/auth0/rate_limit_policies/client.rb +37 -4
- data/lib/auth0/refresh_tokens/client.rb +25 -3
- data/lib/auth0/resource_servers/client.rb +102 -4
- data/lib/auth0/resource_servers/types/create_resource_server_request_content.rb +6 -0
- data/lib/auth0/resource_servers/types/search_resource_servers_request_parameters.rb +23 -0
- data/lib/auth0/resource_servers/types/update_resource_server_request_content.rb +6 -0
- data/lib/auth0/risk_assessments/settings/client.rb +8 -2
- data/lib/auth0/risk_assessments/settings/new_device/client.rb +8 -2
- data/lib/auth0/roles/client.rb +26 -4
- data/lib/auth0/roles/groups/client.rb +20 -1
- data/lib/auth0/roles/permissions/client.rb +27 -1
- data/lib/auth0/roles/users/client.rb +15 -1
- data/lib/auth0/rules/client.rb +33 -4
- data/lib/auth0/rules_configs/client.rb +19 -5
- data/lib/auth0/self_service_profiles/client.rb +23 -4
- data/lib/auth0/self_service_profiles/custom_text/client.rb +23 -3
- data/lib/auth0/self_service_profiles/sso_ticket/client.rb +10 -1
- data/lib/auth0/sessions/client.rb +14 -2
- data/lib/auth0/stats/client.rb +16 -5
- data/lib/auth0/supplemental_signals/client.rb +8 -2
- data/lib/auth0/tenants/settings/client.rb +11 -2
- data/lib/auth0/tenants/settings/types/update_tenant_settings_request_content.rb +2 -0
- data/lib/auth0/tickets/client.rb +8 -2
- data/lib/auth0/token_exchange_profiles/client.rb +26 -3
- data/lib/auth0/types/advance_ramp_response_content.rb +15 -0
- data/lib/auth0/types/allocation_item.rb +27 -0
- data/lib/auth0/types/allocation_request_item.rb +19 -0
- data/lib/auth0/types/{connection_deletion_behavior_enum.rb → allocation_strategy_enum.rb} +3 -3
- data/lib/auth0/types/anonymous_sessions.rb +10 -0
- data/lib/auth0/types/async_approval_notifications_channels_enum.rb +1 -0
- data/lib/auth0/types/authentication_flow_enum.rb +16 -0
- data/lib/auth0/types/client.rb +6 -0
- data/lib/auth0/types/client_my_organization_patch_configuration.rb +4 -0
- data/lib/auth0/types/client_my_organization_post_configuration.rb +4 -0
- data/lib/auth0/types/client_my_organization_response_configuration.rb +4 -0
- data/lib/auth0/types/client_oidc_backchannel_logout_initiators_enum.rb +1 -0
- data/lib/auth0/types/client_oidc_support_allowed_scopes_enum.rb +14 -0
- data/lib/auth0/types/client_oidc_support_post.rb +15 -0
- data/lib/auth0/types/connection_identity_provider_enum.rb +4 -13
- data/lib/auth0/types/connection_options_ad.rb +2 -0
- data/lib/auth0/types/connection_options_adfs.rb +2 -0
- data/lib/auth0/types/connection_options_azure_ad.rb +2 -0
- data/lib/auth0/types/connection_options_common_saml.rb +2 -0
- data/lib/auth0/types/connection_options_ping_federate.rb +2 -0
- data/lib/auth0/types/connection_options_saml.rb +2 -0
- data/lib/auth0/types/connection_properties_options.rb +4 -0
- data/lib/auth0/types/connection_strategy_enum.rb +4 -13
- data/lib/auth0/types/connection_thumbprints_sha384.rb +23 -0
- data/lib/auth0/types/connection_thumbprints_sha384ad.rb +23 -0
- data/lib/auth0/types/connection_thumbprints_sha384saml.rb +23 -0
- data/lib/auth0/types/create_anonymous_sessions.rb +10 -0
- data/lib/auth0/types/create_client_response_content.rb +6 -0
- data/lib/auth0/types/create_experiment_response_content.rb +45 -0
- data/lib/auth0/types/create_feature_flag_parameters.rb +23 -0
- data/lib/auth0/types/create_feature_flag_response_content.rb +23 -0
- data/lib/auth0/types/create_organization_all_connection_response_content.rb +2 -0
- data/lib/auth0/types/create_resource_server_response_content.rb +6 -0
- data/lib/auth0/types/create_segment_response_content.rb +21 -0
- data/lib/auth0/types/create_variation_response_content.rb +21 -0
- data/lib/auth0/types/{organization_deletion_behavior_enum.rb → default_config_enum.rb} +3 -3
- data/lib/auth0/types/experiment_list_item.rb +45 -0
- data/lib/auth0/types/experiment_status_enum.rb +15 -0
- data/lib/auth0/types/experiment_transition_status_enum.rb +14 -0
- data/lib/auth0/types/experiment_validation_error.rb +11 -0
- data/lib/auth0/types/feature_flag.rb +23 -0
- data/lib/auth0/types/feature_flag_config_param.rb +13 -0
- data/lib/auth0/types/feature_flag_config_param_type_enum.rb +15 -0
- data/lib/auth0/types/feature_flag_config_params.rb +23 -0
- data/lib/auth0/types/feature_flag_status_enum.rb +13 -0
- data/lib/auth0/types/feature_flag_type_enum.rb +12 -0
- data/lib/auth0/types/get_client_response_content.rb +6 -0
- data/lib/auth0/types/get_email_factor_settings_response_content.rb +11 -0
- data/lib/auth0/types/get_experiment_response_content.rb +45 -0
- data/lib/auth0/types/get_feature_flag_response_content.rb +23 -0
- data/lib/auth0/types/get_guardian_settings_response_content.rb +15 -0
- data/lib/auth0/types/get_organization_all_connection_response_content.rb +2 -0
- data/lib/auth0/types/get_phone_factor_settings_response_content.rb +11 -0
- data/lib/auth0/types/get_resource_server_response_content.rb +6 -0
- data/lib/auth0/types/get_segment_response_content.rb +21 -0
- data/lib/auth0/types/get_tenant_settings_response_content.rb +2 -0
- data/lib/auth0/types/get_variation_response_content.rb +21 -0
- data/lib/auth0/types/list_experiments_response_content.rb +11 -0
- data/lib/auth0/types/list_feature_flags_response_content.rb +11 -0
- data/lib/auth0/types/list_segments_response_content.rb +11 -0
- data/lib/auth0/types/list_variations_response_content.rb +9 -0
- data/lib/auth0/types/oauth_scope.rb +4 -3
- data/lib/auth0/types/organization_all_connection_post.rb +2 -0
- data/lib/auth0/types/organization_member_access_level_enum.rb +14 -0
- data/lib/auth0/types/organization_member_access_level_enum_with_null.rb +14 -0
- data/lib/auth0/types/organization_sort_field_enum.rb +13 -0
- data/lib/auth0/types/resource_server.rb +6 -0
- data/lib/auth0/types/resource_server_access_token.rb +10 -0
- data/lib/auth0/types/resource_server_access_token_claims_mapping.rb +10 -0
- data/lib/auth0/types/resource_server_access_token_custom_claims_mapping.rb +23 -0
- data/lib/auth0/types/resource_server_access_token_custom_claims_mapping_rule.rb +11 -0
- data/lib/auth0/types/resource_server_search_response.rb +55 -0
- data/lib/auth0/types/resource_server_sort_field_enum.rb +13 -0
- data/lib/auth0/types/resource_server_subject_type_authorization.rb +2 -0
- data/lib/auth0/types/resource_server_subject_type_authorization_anonymous_user.rb +10 -0
- data/lib/auth0/types/resource_server_subject_type_authorization_anonymous_user_policy_enum.rb +12 -0
- data/lib/auth0/types/rotate_client_secret_response_content.rb +6 -0
- data/lib/auth0/types/search_organization.rb +23 -0
- data/lib/auth0/types/{list_template_organizations_paginated_response_content.rb → search_organizations_paginated_response_content.rb} +3 -3
- data/lib/auth0/types/search_parser_enum.rb +12 -0
- data/lib/auth0/types/search_resource_servers_response_content.rb +11 -0
- data/lib/auth0/types/segment.rb +21 -0
- data/lib/auth0/types/segment_contains_expression.rb +9 -0
- data/lib/auth0/types/segment_ends_with_expression.rb +9 -0
- data/lib/auth0/types/segment_exists_expression.rb +9 -0
- data/lib/auth0/types/segment_match_conditions.rb +30 -0
- data/lib/auth0/types/segment_match_expression.rb +19 -0
- data/lib/auth0/types/segment_not_match_conditions.rb +30 -0
- data/lib/auth0/types/segment_rule.rb +11 -0
- data/lib/auth0/types/segment_starts_with_expression.rb +9 -0
- data/lib/auth0/types/segment_type_enum.rb +12 -0
- data/lib/auth0/types/segment_type_filter_enum.rb +12 -0
- data/lib/auth0/types/set_email_factor_settings_response_content.rb +11 -0
- data/lib/auth0/types/set_guardian_settings_response_content.rb +15 -0
- data/lib/auth0/types/set_phone_factor_settings_response_content.rb +11 -0
- data/lib/auth0/types/tenant_settings_sessions.rb +2 -0
- data/lib/auth0/types/tenant_settings_sessions_anonymous.rb +12 -0
- data/lib/auth0/types/update_anonymous_sessions.rb +10 -0
- data/lib/auth0/types/update_client_response_content.rb +6 -0
- data/lib/auth0/types/update_connection_options.rb +4 -0
- data/lib/auth0/types/update_experiment_response_content.rb +45 -0
- data/lib/auth0/types/update_experiment_status_response_content.rb +45 -0
- data/lib/auth0/types/update_feature_flag_parameters.rb +23 -0
- data/lib/auth0/types/update_feature_flag_response_content.rb +23 -0
- data/lib/auth0/types/update_feature_flag_status_response_content.rb +23 -0
- data/lib/auth0/types/update_organization_all_connection_response_content.rb +2 -0
- data/lib/auth0/types/update_resource_server_response_content.rb +6 -0
- data/lib/auth0/types/update_segment_response_content.rb +21 -0
- data/lib/auth0/types/update_tenant_settings_response_content.rb +2 -0
- data/lib/auth0/types/update_variation_overrides_map.rb +23 -0
- data/lib/auth0/types/update_variation_response_content.rb +21 -0
- data/lib/auth0/types/validate_experiment_response_content.rb +11 -0
- data/lib/auth0/types/variation.rb +21 -0
- data/lib/auth0/types/variation_overrides_map.rb +23 -0
- data/lib/auth0/user_attribute_profiles/client.rb +40 -6
- data/lib/auth0/user_blocks/client.rb +20 -2
- data/lib/auth0/user_grants/client.rb +17 -1
- data/lib/auth0/users/authentication_methods/client.rb +57 -9
- data/lib/auth0/users/authenticators/client.rb +3 -0
- data/lib/auth0/users/client.rb +75 -23
- data/lib/auth0/users/connected_accounts/client.rb +8 -1
- data/lib/auth0/users/effective_permissions/client.rb +9 -1
- data/lib/auth0/users/effective_permissions/sources/roles/client.rb +10 -1
- data/lib/auth0/users/effective_roles/client.rb +8 -1
- data/lib/auth0/users/effective_roles/sources/groups/client.rb +9 -1
- data/lib/auth0/users/enrollments/client.rb +9 -4
- data/lib/auth0/users/groups/client.rb +11 -1
- data/lib/auth0/users/identities/client.rb +17 -5
- data/lib/auth0/users/logs/client.rb +10 -1
- data/lib/auth0/users/multifactor/client.rb +9 -0
- data/lib/auth0/users/organizations/client.rb +9 -1
- data/lib/auth0/users/permissions/client.rb +27 -1
- data/lib/auth0/users/refresh_token/client.rb +12 -1
- data/lib/auth0/users/risk_assessments/client.rb +7 -0
- data/lib/auth0/users/roles/client.rb +21 -1
- data/lib/auth0/users/sessions/client.rb +12 -1
- data/lib/auth0/verifiable_credentials/verification/templates/client.rb +32 -4
- data/lib/auth0/version.rb +1 -1
- data/lib/auth0.rb +107 -18
- data/wiremock/wiremock-mappings.json +1246 -366
- metadata +108 -19
- data/lib/auth0/organization_templates/client.rb +0 -220
- data/lib/auth0/organization_templates/types/create_organization_template_request_content.rb +0 -35
- data/lib/auth0/organization_templates/types/list_organization_templates_request_parameters.rb +0 -13
- data/lib/auth0/organization_templates/types/list_template_organizations_request_parameters.rb +0 -15
- data/lib/auth0/organization_templates/types/update_organization_template_request_content.rb +0 -37
- data/lib/auth0/organizations/organization_template/client.rb +0 -117
- data/lib/auth0/types/list_organization_templates_paginated_response_content.rb +0 -11
- data/lib/auth0/types/organization_template.rb +0 -39
- data/lib/auth0/types/organization_template_allowed_strategy_enum.rb +0 -17
- data/lib/auth0/types/organization_template_assigned_organization.rb +0 -10
- data/lib/auth0/types/organization_template_role_visibility_enum.rb +0 -13
- data/lib/auth0/types/organization_template_role_visibility_override.rb +0 -12
- data/lib/auth0/types/organization_template_role_visibility_policy.rb +0 -12
- data/lib/auth0/types/organization_template_use_for_organization_discovery.rb +0 -12
|
@@ -44,6 +44,15 @@ module Auth0
|
|
|
44
44
|
# @option params [String, nil] :sort
|
|
45
45
|
# @option params [String, nil] :include_client_association_for
|
|
46
46
|
#
|
|
47
|
+
# @example
|
|
48
|
+
# client.organizations.list(
|
|
49
|
+
# include_totals: true,
|
|
50
|
+
# from: "from",
|
|
51
|
+
# take: 1,
|
|
52
|
+
# sort: "sort",
|
|
53
|
+
# include_client_association_for: "include_client_association_for"
|
|
54
|
+
# )
|
|
55
|
+
#
|
|
47
56
|
# @return [Auth0::Types::ListOrganizationsPaginatedResponseContent]
|
|
48
57
|
def list(request_options: {}, **params)
|
|
49
58
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -74,7 +83,7 @@ module Auth0
|
|
|
74
83
|
end
|
|
75
84
|
code = response.code.to_i
|
|
76
85
|
if code.between?(200, 299)
|
|
77
|
-
parsed_response = Auth0::Types::ListOrganizationsPaginatedResponseContent.load(response.body)
|
|
86
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationsPaginatedResponseContent.load(response.body))
|
|
78
87
|
[parsed_response, response]
|
|
79
88
|
else
|
|
80
89
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -95,6 +104,9 @@ module Auth0
|
|
|
95
104
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
96
105
|
# @option request_options [Integer] :timeout_in_seconds
|
|
97
106
|
#
|
|
107
|
+
# @example
|
|
108
|
+
# client.organizations.create(name: "name")
|
|
109
|
+
#
|
|
98
110
|
# @return [Auth0::Types::CreateOrganizationResponseContent]
|
|
99
111
|
def create(request_options: {}, **params)
|
|
100
112
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -112,7 +124,7 @@ module Auth0
|
|
|
112
124
|
end
|
|
113
125
|
code = response.code.to_i
|
|
114
126
|
if code.between?(200, 299)
|
|
115
|
-
Auth0::Types::CreateOrganizationResponseContent.load(response.body)
|
|
127
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateOrganizationResponseContent.load(response.body))
|
|
116
128
|
else
|
|
117
129
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
118
130
|
raise error_class.new(response.body, code: code)
|
|
@@ -130,6 +142,9 @@ module Auth0
|
|
|
130
142
|
# @option request_options [Integer] :timeout_in_seconds
|
|
131
143
|
# @option params [String] :name
|
|
132
144
|
#
|
|
145
|
+
# @example
|
|
146
|
+
# client.organizations.get_by_name(name: "name")
|
|
147
|
+
#
|
|
133
148
|
# @return [Auth0::Types::GetOrganizationByNameResponseContent]
|
|
134
149
|
def get_by_name(request_options: {}, **params)
|
|
135
150
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -146,13 +161,93 @@ module Auth0
|
|
|
146
161
|
end
|
|
147
162
|
code = response.code.to_i
|
|
148
163
|
if code.between?(200, 299)
|
|
149
|
-
Auth0::Types::GetOrganizationByNameResponseContent.load(response.body)
|
|
164
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetOrganizationByNameResponseContent.load(response.body))
|
|
150
165
|
else
|
|
151
166
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
152
167
|
raise error_class.new(response.body, code: code)
|
|
153
168
|
end
|
|
154
169
|
end
|
|
155
170
|
|
|
171
|
+
# Retrieve details of organizations matching a search criteria. It is possible to:
|
|
172
|
+
#
|
|
173
|
+
# - Specify a search criteria for organizations
|
|
174
|
+
# - Search via `name`
|
|
175
|
+
# - Search via `display_name`
|
|
176
|
+
# - Substring matching (`contains` and `ends-with`) requires at least 3 characters
|
|
177
|
+
# - Use wildcards
|
|
178
|
+
#
|
|
179
|
+
# The `q` query parameter can be used to get organizations that match the specified criteria on `name` OR
|
|
180
|
+
# `display_name`.
|
|
181
|
+
#
|
|
182
|
+
# This endpoint supports SCIM or Lucene filter syntax with low-latency, cursor-based pagination. Use the `parser`
|
|
183
|
+
# parameter to specify "scim" or "lucene" syntax (default: "lucene").
|
|
184
|
+
#
|
|
185
|
+
# Results are eventually consistent and may not reflect recent updates immediately.
|
|
186
|
+
#
|
|
187
|
+
# **Sortable fields:** `name`, `display_name`, `created_at` (ascending only). Defaults to insertion order (oldest
|
|
188
|
+
# first).
|
|
189
|
+
#
|
|
190
|
+
# @param request_options [Hash]
|
|
191
|
+
# @param params [Hash]
|
|
192
|
+
# @option request_options [String] :base_url
|
|
193
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
194
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
195
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
196
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
197
|
+
# @option params [String, nil] :q
|
|
198
|
+
# @option params [Auth0::Types::SearchParserEnum, nil] :parser
|
|
199
|
+
# @option params [Integer, nil] :take
|
|
200
|
+
# @option params [String, nil] :from
|
|
201
|
+
# @option params [Auth0::Types::OrganizationSortFieldEnum, nil] :sort
|
|
202
|
+
#
|
|
203
|
+
# @example
|
|
204
|
+
# client.organizations.search(
|
|
205
|
+
# q: "q",
|
|
206
|
+
# parser: "scim",
|
|
207
|
+
# take: 1,
|
|
208
|
+
# from: "from",
|
|
209
|
+
# sort: "name"
|
|
210
|
+
# )
|
|
211
|
+
#
|
|
212
|
+
# @return [Auth0::Types::SearchOrganizationsPaginatedResponseContent]
|
|
213
|
+
def search(request_options: {}, **params)
|
|
214
|
+
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
215
|
+
query_params = {}
|
|
216
|
+
query_params["q"] = params[:q] if params.key?(:q)
|
|
217
|
+
query_params["parser"] = params[:parser] if params.key?(:parser)
|
|
218
|
+
query_params["take"] = params.fetch(:take, 50)
|
|
219
|
+
query_params["from"] = params[:from] if params.key?(:from)
|
|
220
|
+
query_params["sort"] = params[:sort] if params.key?(:sort)
|
|
221
|
+
|
|
222
|
+
Auth0::Internal::CursorItemIterator.new(
|
|
223
|
+
cursor_field: :next_,
|
|
224
|
+
item_field: :organizations,
|
|
225
|
+
initial_cursor: query_params["from"]
|
|
226
|
+
) do |next_cursor|
|
|
227
|
+
query_params["from"] = next_cursor
|
|
228
|
+
request = Auth0::Internal::JSON::Request.new(
|
|
229
|
+
base_url: request_options[:base_url],
|
|
230
|
+
method: "GET",
|
|
231
|
+
path: "organizations/search",
|
|
232
|
+
query: query_params,
|
|
233
|
+
request_options: request_options
|
|
234
|
+
)
|
|
235
|
+
begin
|
|
236
|
+
response = @client.send(request)
|
|
237
|
+
rescue Net::HTTPRequestTimeout
|
|
238
|
+
raise Auth0::Errors::TimeoutError
|
|
239
|
+
end
|
|
240
|
+
code = response.code.to_i
|
|
241
|
+
if code.between?(200, 299)
|
|
242
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::SearchOrganizationsPaginatedResponseContent.load(response.body))
|
|
243
|
+
[parsed_response, response]
|
|
244
|
+
else
|
|
245
|
+
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
246
|
+
raise error_class.new(response.body, code: code)
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
|
|
156
251
|
# Retrieve details about a single Organization specified by ID.
|
|
157
252
|
#
|
|
158
253
|
# @param request_options [Hash]
|
|
@@ -164,6 +259,9 @@ module Auth0
|
|
|
164
259
|
# @option request_options [Integer] :timeout_in_seconds
|
|
165
260
|
# @option params [String] :id
|
|
166
261
|
#
|
|
262
|
+
# @example
|
|
263
|
+
# client.organizations.get(id: "id")
|
|
264
|
+
#
|
|
167
265
|
# @return [Auth0::Types::GetOrganizationResponseContent]
|
|
168
266
|
def get(request_options: {}, **params)
|
|
169
267
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -180,7 +278,7 @@ module Auth0
|
|
|
180
278
|
end
|
|
181
279
|
code = response.code.to_i
|
|
182
280
|
if code.between?(200, 299)
|
|
183
|
-
Auth0::Types::GetOrganizationResponseContent.load(response.body)
|
|
281
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetOrganizationResponseContent.load(response.body))
|
|
184
282
|
else
|
|
185
283
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
186
284
|
raise error_class.new(response.body, code: code)
|
|
@@ -201,6 +299,9 @@ module Auth0
|
|
|
201
299
|
# @option request_options [Integer] :timeout_in_seconds
|
|
202
300
|
# @option params [String] :id
|
|
203
301
|
#
|
|
302
|
+
# @example
|
|
303
|
+
# client.organizations.delete(id: "id")
|
|
304
|
+
#
|
|
204
305
|
# @return [untyped]
|
|
205
306
|
def delete(request_options: {}, **params)
|
|
206
307
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -235,6 +336,9 @@ module Auth0
|
|
|
235
336
|
# @option request_options [Integer] :timeout_in_seconds
|
|
236
337
|
# @option params [String] :id
|
|
237
338
|
#
|
|
339
|
+
# @example
|
|
340
|
+
# client.organizations.update(id: "id")
|
|
341
|
+
#
|
|
238
342
|
# @return [Auth0::Types::UpdateOrganizationResponseContent]
|
|
239
343
|
def update(request_options: {}, **params)
|
|
240
344
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -256,7 +360,7 @@ module Auth0
|
|
|
256
360
|
end
|
|
257
361
|
code = response.code.to_i
|
|
258
362
|
if code.between?(200, 299)
|
|
259
|
-
Auth0::Types::UpdateOrganizationResponseContent.load(response.body)
|
|
363
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateOrganizationResponseContent.load(response.body))
|
|
260
364
|
else
|
|
261
365
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
262
366
|
raise error_class.new(response.body, code: code)
|
|
@@ -298,11 +402,6 @@ module Auth0
|
|
|
298
402
|
@members ||= Auth0::Organizations::Members::Client.new(client: @client)
|
|
299
403
|
end
|
|
300
404
|
|
|
301
|
-
# @return [Auth0::OrganizationTemplate::Client]
|
|
302
|
-
def organization_template
|
|
303
|
-
@organization_template ||= Auth0::Organizations::OrganizationTemplate::Client.new(client: @client)
|
|
304
|
-
end
|
|
305
|
-
|
|
306
405
|
# @return [Auth0::Groups::Client]
|
|
307
406
|
def groups
|
|
308
407
|
@groups ||= Auth0::Organizations::Groups::Client.new(client: @client)
|
|
@@ -26,6 +26,17 @@ module Auth0
|
|
|
26
26
|
# @option params [Integer, nil] :per_page
|
|
27
27
|
# @option params [Boolean, nil] :include_totals
|
|
28
28
|
#
|
|
29
|
+
# @example
|
|
30
|
+
# client.organizations.client_grants.list(
|
|
31
|
+
# id: "id",
|
|
32
|
+
# audience: "audience",
|
|
33
|
+
# client_id: "client_id",
|
|
34
|
+
# grant_ids: ["grant_ids"],
|
|
35
|
+
# page: 1,
|
|
36
|
+
# per_page: 1,
|
|
37
|
+
# include_totals: true
|
|
38
|
+
# )
|
|
39
|
+
#
|
|
29
40
|
# @return [Auth0::Types::ListOrganizationClientGrantsOffsetPaginatedResponseContent]
|
|
30
41
|
def list(request_options: {}, **params)
|
|
31
42
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -58,7 +69,7 @@ module Auth0
|
|
|
58
69
|
end
|
|
59
70
|
code = response.code.to_i
|
|
60
71
|
if code.between?(200, 299)
|
|
61
|
-
parsed_response = Auth0::Types::ListOrganizationClientGrantsOffsetPaginatedResponseContent.load(response.body)
|
|
72
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationClientGrantsOffsetPaginatedResponseContent.load(response.body))
|
|
62
73
|
[parsed_response, response]
|
|
63
74
|
else
|
|
64
75
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -76,6 +87,12 @@ module Auth0
|
|
|
76
87
|
# @option request_options [Integer] :timeout_in_seconds
|
|
77
88
|
# @option params [String] :id
|
|
78
89
|
#
|
|
90
|
+
# @example
|
|
91
|
+
# client.organizations.client_grants.create(
|
|
92
|
+
# id: "id",
|
|
93
|
+
# grant_id: "grant_id"
|
|
94
|
+
# )
|
|
95
|
+
#
|
|
79
96
|
# @return [Auth0::Types::AssociateOrganizationClientGrantResponseContent]
|
|
80
97
|
def create(request_options: {}, **params)
|
|
81
98
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -97,7 +114,7 @@ module Auth0
|
|
|
97
114
|
end
|
|
98
115
|
code = response.code.to_i
|
|
99
116
|
if code.between?(200, 299)
|
|
100
|
-
Auth0::Types::AssociateOrganizationClientGrantResponseContent.load(response.body)
|
|
117
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::AssociateOrganizationClientGrantResponseContent.load(response.body))
|
|
101
118
|
else
|
|
102
119
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
103
120
|
raise error_class.new(response.body, code: code)
|
|
@@ -114,6 +131,12 @@ module Auth0
|
|
|
114
131
|
# @option params [String] :id
|
|
115
132
|
# @option params [String] :grant_id
|
|
116
133
|
#
|
|
134
|
+
# @example
|
|
135
|
+
# client.organizations.client_grants.delete(
|
|
136
|
+
# id: "id",
|
|
137
|
+
# grant_id: "grant_id"
|
|
138
|
+
# )
|
|
139
|
+
#
|
|
117
140
|
# @return [untyped]
|
|
118
141
|
def delete(request_options: {}, **params)
|
|
119
142
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -31,6 +31,13 @@ module Auth0
|
|
|
31
31
|
# @option params [String, nil] :from
|
|
32
32
|
# @option params [Integer, nil] :take
|
|
33
33
|
#
|
|
34
|
+
# @example
|
|
35
|
+
# client.organizations.clients.list(
|
|
36
|
+
# id: "id",
|
|
37
|
+
# from: "from",
|
|
38
|
+
# take: 1
|
|
39
|
+
# )
|
|
40
|
+
#
|
|
34
41
|
# @return [Auth0::Types::ListOrganizationClientsResponseContent]
|
|
35
42
|
def list(request_options: {}, **params)
|
|
36
43
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -58,7 +65,7 @@ module Auth0
|
|
|
58
65
|
end
|
|
59
66
|
code = response.code.to_i
|
|
60
67
|
if code.between?(200, 299)
|
|
61
|
-
parsed_response = Auth0::Types::ListOrganizationClientsResponseContent.load(response.body)
|
|
68
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationClientsResponseContent.load(response.body))
|
|
62
69
|
[parsed_response, response]
|
|
63
70
|
else
|
|
64
71
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -78,6 +85,15 @@ module Auth0
|
|
|
78
85
|
# @option request_options [Integer] :timeout_in_seconds
|
|
79
86
|
# @option params [String] :id
|
|
80
87
|
#
|
|
88
|
+
# @example
|
|
89
|
+
# client.organizations.clients.create(
|
|
90
|
+
# id: "id",
|
|
91
|
+
# clients: [{
|
|
92
|
+
# client_id: "client_id",
|
|
93
|
+
# use_for_member_access: true
|
|
94
|
+
# }]
|
|
95
|
+
# )
|
|
96
|
+
#
|
|
81
97
|
# @return [Array[Auth0::Types::OrganizationClient]]
|
|
82
98
|
def create(request_options: {}, **params)
|
|
83
99
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -99,7 +115,7 @@ module Auth0
|
|
|
99
115
|
end
|
|
100
116
|
code = response.code.to_i
|
|
101
117
|
if code.between?(200, 299)
|
|
102
|
-
Auth0::Types::CreateOrganizationClientsResponseContent.load(response.body)
|
|
118
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateOrganizationClientsResponseContent.load(response.body))
|
|
103
119
|
else
|
|
104
120
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
105
121
|
raise error_class.new(response.body, code: code)
|
|
@@ -117,6 +133,12 @@ module Auth0
|
|
|
117
133
|
# @option request_options [Integer] :timeout_in_seconds
|
|
118
134
|
# @option params [String] :id
|
|
119
135
|
#
|
|
136
|
+
# @example
|
|
137
|
+
# client.organizations.clients.delete(
|
|
138
|
+
# id: "id",
|
|
139
|
+
# clients: ["clients"]
|
|
140
|
+
# )
|
|
141
|
+
#
|
|
120
142
|
# @return [untyped]
|
|
121
143
|
def delete(request_options: {}, **params)
|
|
122
144
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -155,6 +177,12 @@ module Auth0
|
|
|
155
177
|
# @option params [String] :id
|
|
156
178
|
# @option params [String] :client_id
|
|
157
179
|
#
|
|
180
|
+
# @example
|
|
181
|
+
# client.organizations.clients.get(
|
|
182
|
+
# id: "id",
|
|
183
|
+
# client_id: "client_id"
|
|
184
|
+
# )
|
|
185
|
+
#
|
|
158
186
|
# @return [Auth0::Types::GetOrganizationClientResponseContent]
|
|
159
187
|
def get(request_options: {}, **params)
|
|
160
188
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -171,7 +199,7 @@ module Auth0
|
|
|
171
199
|
end
|
|
172
200
|
code = response.code.to_i
|
|
173
201
|
if code.between?(200, 299)
|
|
174
|
-
Auth0::Types::GetOrganizationClientResponseContent.load(response.body)
|
|
202
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetOrganizationClientResponseContent.load(response.body))
|
|
175
203
|
else
|
|
176
204
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
177
205
|
raise error_class.new(response.body, code: code)
|
|
@@ -190,6 +218,12 @@ module Auth0
|
|
|
190
218
|
# @option params [String] :id
|
|
191
219
|
# @option params [String] :client_id
|
|
192
220
|
#
|
|
221
|
+
# @example
|
|
222
|
+
# client.organizations.clients.update(
|
|
223
|
+
# id: "id",
|
|
224
|
+
# client_id: "client_id"
|
|
225
|
+
# )
|
|
226
|
+
#
|
|
193
227
|
# @return [Auth0::Types::UpdateOrganizationClientResponseContent]
|
|
194
228
|
def update(request_options: {}, **params)
|
|
195
229
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -211,7 +245,7 @@ module Auth0
|
|
|
211
245
|
end
|
|
212
246
|
code = response.code.to_i
|
|
213
247
|
if code.between?(200, 299)
|
|
214
|
-
Auth0::Types::UpdateOrganizationClientResponseContent.load(response.body)
|
|
248
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateOrganizationClientResponseContent.load(response.body))
|
|
215
249
|
else
|
|
216
250
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
217
251
|
raise error_class.new(response.body, code: code)
|
|
@@ -24,6 +24,15 @@ module Auth0
|
|
|
24
24
|
# @option params [Boolean, nil] :include_totals
|
|
25
25
|
# @option params [Boolean, nil] :is_enabled
|
|
26
26
|
#
|
|
27
|
+
# @example
|
|
28
|
+
# client.organizations.connections.list(
|
|
29
|
+
# id: "id",
|
|
30
|
+
# page: 1,
|
|
31
|
+
# per_page: 1,
|
|
32
|
+
# include_totals: true,
|
|
33
|
+
# is_enabled: true
|
|
34
|
+
# )
|
|
35
|
+
#
|
|
27
36
|
# @return [Auth0::Types::ListOrganizationAllConnectionsOffsetPaginatedResponseContent]
|
|
28
37
|
def list(request_options: {}, **params)
|
|
29
38
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -54,7 +63,7 @@ module Auth0
|
|
|
54
63
|
end
|
|
55
64
|
code = response.code.to_i
|
|
56
65
|
if code.between?(200, 299)
|
|
57
|
-
parsed_response = Auth0::Types::ListOrganizationAllConnectionsOffsetPaginatedResponseContent.load(response.body)
|
|
66
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationAllConnectionsOffsetPaginatedResponseContent.load(response.body))
|
|
58
67
|
[parsed_response, response]
|
|
59
68
|
else
|
|
60
69
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -72,6 +81,12 @@ module Auth0
|
|
|
72
81
|
# @option request_options [Integer] :timeout_in_seconds
|
|
73
82
|
# @option params [String] :id
|
|
74
83
|
#
|
|
84
|
+
# @example
|
|
85
|
+
# client.organizations.connections.create(
|
|
86
|
+
# id: "id",
|
|
87
|
+
# connection_id: "connection_id"
|
|
88
|
+
# )
|
|
89
|
+
#
|
|
75
90
|
# @return [Auth0::Types::CreateOrganizationAllConnectionResponseContent]
|
|
76
91
|
def create(request_options: {}, **params)
|
|
77
92
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -93,7 +108,7 @@ module Auth0
|
|
|
93
108
|
end
|
|
94
109
|
code = response.code.to_i
|
|
95
110
|
if code.between?(200, 299)
|
|
96
|
-
Auth0::Types::CreateOrganizationAllConnectionResponseContent.load(response.body)
|
|
111
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateOrganizationAllConnectionResponseContent.load(response.body))
|
|
97
112
|
else
|
|
98
113
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
99
114
|
raise error_class.new(response.body, code: code)
|
|
@@ -110,6 +125,12 @@ module Auth0
|
|
|
110
125
|
# @option params [String] :id
|
|
111
126
|
# @option params [String] :connection_id
|
|
112
127
|
#
|
|
128
|
+
# @example
|
|
129
|
+
# client.organizations.connections.get(
|
|
130
|
+
# id: "id",
|
|
131
|
+
# connection_id: "connection_id"
|
|
132
|
+
# )
|
|
133
|
+
#
|
|
113
134
|
# @return [Auth0::Types::GetOrganizationAllConnectionResponseContent]
|
|
114
135
|
def get(request_options: {}, **params)
|
|
115
136
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -126,7 +147,7 @@ module Auth0
|
|
|
126
147
|
end
|
|
127
148
|
code = response.code.to_i
|
|
128
149
|
if code.between?(200, 299)
|
|
129
|
-
Auth0::Types::GetOrganizationAllConnectionResponseContent.load(response.body)
|
|
150
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetOrganizationAllConnectionResponseContent.load(response.body))
|
|
130
151
|
else
|
|
131
152
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
132
153
|
raise error_class.new(response.body, code: code)
|
|
@@ -143,6 +164,12 @@ module Auth0
|
|
|
143
164
|
# @option params [String] :id
|
|
144
165
|
# @option params [String] :connection_id
|
|
145
166
|
#
|
|
167
|
+
# @example
|
|
168
|
+
# client.organizations.connections.delete(
|
|
169
|
+
# id: "id",
|
|
170
|
+
# connection_id: "connection_id"
|
|
171
|
+
# )
|
|
172
|
+
#
|
|
146
173
|
# @return [untyped]
|
|
147
174
|
def delete(request_options: {}, **params)
|
|
148
175
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -174,6 +201,12 @@ module Auth0
|
|
|
174
201
|
# @option params [String] :id
|
|
175
202
|
# @option params [String] :connection_id
|
|
176
203
|
#
|
|
204
|
+
# @example
|
|
205
|
+
# client.organizations.connections.update(
|
|
206
|
+
# id: "id",
|
|
207
|
+
# connection_id: "connection_id"
|
|
208
|
+
# )
|
|
209
|
+
#
|
|
177
210
|
# @return [Auth0::Types::UpdateOrganizationAllConnectionResponseContent]
|
|
178
211
|
def update(request_options: {}, **params)
|
|
179
212
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -195,7 +228,7 @@ module Auth0
|
|
|
195
228
|
end
|
|
196
229
|
code = response.code.to_i
|
|
197
230
|
if code.between?(200, 299)
|
|
198
|
-
Auth0::Types::UpdateOrganizationAllConnectionResponseContent.load(response.body)
|
|
231
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateOrganizationAllConnectionResponseContent.load(response.body))
|
|
199
232
|
else
|
|
200
233
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
201
234
|
raise error_class.new(response.body, code: code)
|
|
@@ -17,6 +17,8 @@ module Auth0
|
|
|
17
17
|
|
|
18
18
|
field :organization_access_level, -> { Auth0::Types::OrganizationAccessLevelEnum }, optional: true, nullable: false
|
|
19
19
|
|
|
20
|
+
field :organization_member_access_level, -> { Auth0::Types::OrganizationMemberAccessLevelEnum }, optional: true, nullable: false
|
|
21
|
+
|
|
20
22
|
field :is_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
21
23
|
|
|
22
24
|
field :connection_id, -> { String }, optional: false, nullable: false
|
data/lib/auth0/organizations/connections/types/update_organization_connection_request_parameters.rb
CHANGED
|
@@ -19,6 +19,8 @@ module Auth0
|
|
|
19
19
|
|
|
20
20
|
field :organization_access_level, -> { Auth0::Types::OrganizationAccessLevelEnumWithNull }, optional: true, nullable: false
|
|
21
21
|
|
|
22
|
+
field :organization_member_access_level, -> { Auth0::Types::OrganizationMemberAccessLevelEnumWithNull }, optional: true, nullable: false
|
|
23
|
+
|
|
22
24
|
field :is_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
23
25
|
end
|
|
24
26
|
end
|
|
@@ -26,6 +26,13 @@ module Auth0
|
|
|
26
26
|
# @option params [String, nil] :from
|
|
27
27
|
# @option params [Integer, nil] :take
|
|
28
28
|
#
|
|
29
|
+
# @example
|
|
30
|
+
# client.organizations.discovery_domains.list(
|
|
31
|
+
# id: "id",
|
|
32
|
+
# from: "from",
|
|
33
|
+
# take: 1
|
|
34
|
+
# )
|
|
35
|
+
#
|
|
29
36
|
# @return [Auth0::Types::ListOrganizationDiscoveryDomainsResponseContent]
|
|
30
37
|
def list(request_options: {}, **params)
|
|
31
38
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -53,7 +60,7 @@ module Auth0
|
|
|
53
60
|
end
|
|
54
61
|
code = response.code.to_i
|
|
55
62
|
if code.between?(200, 299)
|
|
56
|
-
parsed_response = Auth0::Types::ListOrganizationDiscoveryDomainsResponseContent.load(response.body)
|
|
63
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationDiscoveryDomainsResponseContent.load(response.body))
|
|
57
64
|
[parsed_response, response]
|
|
58
65
|
else
|
|
59
66
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -73,6 +80,12 @@ module Auth0
|
|
|
73
80
|
# @option request_options [Integer] :timeout_in_seconds
|
|
74
81
|
# @option params [String] :id
|
|
75
82
|
#
|
|
83
|
+
# @example
|
|
84
|
+
# client.organizations.discovery_domains.create(
|
|
85
|
+
# id: "id",
|
|
86
|
+
# domain: "domain"
|
|
87
|
+
# )
|
|
88
|
+
#
|
|
76
89
|
# @return [Auth0::Types::CreateOrganizationDiscoveryDomainResponseContent]
|
|
77
90
|
def create(request_options: {}, **params)
|
|
78
91
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -94,7 +107,7 @@ module Auth0
|
|
|
94
107
|
end
|
|
95
108
|
code = response.code.to_i
|
|
96
109
|
if code.between?(200, 299)
|
|
97
|
-
Auth0::Types::CreateOrganizationDiscoveryDomainResponseContent.load(response.body)
|
|
110
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateOrganizationDiscoveryDomainResponseContent.load(response.body))
|
|
98
111
|
else
|
|
99
112
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
100
113
|
raise error_class.new(response.body, code: code)
|
|
@@ -115,6 +128,12 @@ module Auth0
|
|
|
115
128
|
# @option params [String] :id
|
|
116
129
|
# @option params [String] :discovery_domain
|
|
117
130
|
#
|
|
131
|
+
# @example
|
|
132
|
+
# client.organizations.discovery_domains.get_by_name(
|
|
133
|
+
# id: "id",
|
|
134
|
+
# discovery_domain: "discovery_domain"
|
|
135
|
+
# )
|
|
136
|
+
#
|
|
118
137
|
# @return [Auth0::Types::GetOrganizationDiscoveryDomainByNameResponseContent]
|
|
119
138
|
def get_by_name(request_options: {}, **params)
|
|
120
139
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -131,7 +150,7 @@ module Auth0
|
|
|
131
150
|
end
|
|
132
151
|
code = response.code.to_i
|
|
133
152
|
if code.between?(200, 299)
|
|
134
|
-
Auth0::Types::GetOrganizationDiscoveryDomainByNameResponseContent.load(response.body)
|
|
153
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetOrganizationDiscoveryDomainByNameResponseContent.load(response.body))
|
|
135
154
|
else
|
|
136
155
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
137
156
|
raise error_class.new(response.body, code: code)
|
|
@@ -152,6 +171,12 @@ module Auth0
|
|
|
152
171
|
# @option params [String] :id
|
|
153
172
|
# @option params [String] :discovery_domain_id
|
|
154
173
|
#
|
|
174
|
+
# @example
|
|
175
|
+
# client.organizations.discovery_domains.get(
|
|
176
|
+
# id: "id",
|
|
177
|
+
# discovery_domain_id: "discovery_domain_id"
|
|
178
|
+
# )
|
|
179
|
+
#
|
|
155
180
|
# @return [Auth0::Types::GetOrganizationDiscoveryDomainResponseContent]
|
|
156
181
|
def get(request_options: {}, **params)
|
|
157
182
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -168,7 +193,7 @@ module Auth0
|
|
|
168
193
|
end
|
|
169
194
|
code = response.code.to_i
|
|
170
195
|
if code.between?(200, 299)
|
|
171
|
-
Auth0::Types::GetOrganizationDiscoveryDomainResponseContent.load(response.body)
|
|
196
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetOrganizationDiscoveryDomainResponseContent.load(response.body))
|
|
172
197
|
else
|
|
173
198
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
174
199
|
raise error_class.new(response.body, code: code)
|
|
@@ -187,6 +212,12 @@ module Auth0
|
|
|
187
212
|
# @option params [String] :id
|
|
188
213
|
# @option params [String] :discovery_domain_id
|
|
189
214
|
#
|
|
215
|
+
# @example
|
|
216
|
+
# client.organizations.discovery_domains.delete(
|
|
217
|
+
# id: "id",
|
|
218
|
+
# discovery_domain_id: "discovery_domain_id"
|
|
219
|
+
# )
|
|
220
|
+
#
|
|
190
221
|
# @return [untyped]
|
|
191
222
|
def delete(request_options: {}, **params)
|
|
192
223
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -222,6 +253,12 @@ module Auth0
|
|
|
222
253
|
# @option params [String] :id
|
|
223
254
|
# @option params [String] :discovery_domain_id
|
|
224
255
|
#
|
|
256
|
+
# @example
|
|
257
|
+
# client.organizations.discovery_domains.update(
|
|
258
|
+
# id: "id",
|
|
259
|
+
# discovery_domain_id: "discovery_domain_id"
|
|
260
|
+
# )
|
|
261
|
+
#
|
|
225
262
|
# @return [Auth0::Types::UpdateOrganizationDiscoveryDomainResponseContent]
|
|
226
263
|
def update(request_options: {}, **params)
|
|
227
264
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -243,7 +280,7 @@ module Auth0
|
|
|
243
280
|
end
|
|
244
281
|
code = response.code.to_i
|
|
245
282
|
if code.between?(200, 299)
|
|
246
|
-
Auth0::Types::UpdateOrganizationDiscoveryDomainResponseContent.load(response.body)
|
|
283
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateOrganizationDiscoveryDomainResponseContent.load(response.body))
|
|
247
284
|
else
|
|
248
285
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
249
286
|
raise error_class.new(response.body, code: code)
|