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
|
@@ -25,31 +25,39 @@ module Auth0
|
|
|
25
25
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
26
26
|
# @option request_options [Integer] :timeout_in_seconds
|
|
27
27
|
#
|
|
28
|
+
# @example
|
|
29
|
+
# client.jobs.users_imports.create
|
|
30
|
+
#
|
|
28
31
|
# @return [Auth0::Types::CreateImportUsersResponseContent]
|
|
29
32
|
def create(request_options: {}, **params)
|
|
30
33
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
31
34
|
body = Internal::Multipart::FormData.new
|
|
32
35
|
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
if params[:users]
|
|
37
|
+
body.add_file(
|
|
38
|
+
name: "users",
|
|
39
|
+
file: params[:users]
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
unless params[:connection_id].nil?
|
|
35
43
|
body.add(
|
|
36
44
|
name: "connection_id",
|
|
37
45
|
value: params[:connection_id]
|
|
38
46
|
)
|
|
39
47
|
end
|
|
40
|
-
|
|
48
|
+
unless params[:upsert].nil?
|
|
41
49
|
body.add(
|
|
42
50
|
name: "upsert",
|
|
43
51
|
value: params[:upsert]
|
|
44
52
|
)
|
|
45
53
|
end
|
|
46
|
-
|
|
54
|
+
unless params[:external_id].nil?
|
|
47
55
|
body.add(
|
|
48
56
|
name: "external_id",
|
|
49
57
|
value: params[:external_id]
|
|
50
58
|
)
|
|
51
59
|
end
|
|
52
|
-
|
|
60
|
+
unless params[:send_completion_email].nil?
|
|
53
61
|
body.add(
|
|
54
62
|
name: "send_completion_email",
|
|
55
63
|
value: params[:send_completion_email]
|
|
@@ -70,7 +78,7 @@ module Auth0
|
|
|
70
78
|
end
|
|
71
79
|
code = response.code.to_i
|
|
72
80
|
if code.between?(200, 299)
|
|
73
|
-
Auth0::Types::CreateImportUsersResponseContent.load(response.body)
|
|
81
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateImportUsersResponseContent.load(response.body))
|
|
74
82
|
else
|
|
75
83
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
76
84
|
raise error_class.new(response.body, code: code)
|
|
@@ -24,6 +24,9 @@ module Auth0
|
|
|
24
24
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
25
25
|
# @option request_options [Integer] :timeout_in_seconds
|
|
26
26
|
#
|
|
27
|
+
# @example
|
|
28
|
+
# client.jobs.verification_email.create(user_id: "user_id")
|
|
29
|
+
#
|
|
27
30
|
# @return [Auth0::Types::CreateVerificationEmailResponseContent]
|
|
28
31
|
def create(request_options: {}, **params)
|
|
29
32
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -41,7 +44,7 @@ module Auth0
|
|
|
41
44
|
end
|
|
42
45
|
code = response.code.to_i
|
|
43
46
|
if code.between?(200, 299)
|
|
44
|
-
Auth0::Types::CreateVerificationEmailResponseContent.load(response.body)
|
|
47
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateVerificationEmailResponseContent.load(response.body))
|
|
45
48
|
else
|
|
46
49
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
47
50
|
raise error_class.new(response.body, code: code)
|
|
@@ -21,6 +21,9 @@ module Auth0
|
|
|
21
21
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
22
22
|
# @option request_options [Integer] :timeout_in_seconds
|
|
23
23
|
#
|
|
24
|
+
# @example
|
|
25
|
+
# client.keys.custom_signing.get
|
|
26
|
+
#
|
|
24
27
|
# @return [Auth0::Types::GetCustomSigningKeysResponseContent]
|
|
25
28
|
def get(request_options: {}, **_params)
|
|
26
29
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -36,7 +39,7 @@ module Auth0
|
|
|
36
39
|
end
|
|
37
40
|
code = response.code.to_i
|
|
38
41
|
if code.between?(200, 299)
|
|
39
|
-
Auth0::Types::GetCustomSigningKeysResponseContent.load(response.body)
|
|
42
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetCustomSigningKeysResponseContent.load(response.body))
|
|
40
43
|
else
|
|
41
44
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
42
45
|
raise error_class.new(response.body, code: code)
|
|
@@ -53,6 +56,11 @@ module Auth0
|
|
|
53
56
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
54
57
|
# @option request_options [Integer] :timeout_in_seconds
|
|
55
58
|
#
|
|
59
|
+
# @example
|
|
60
|
+
# client.keys.custom_signing.set(keys: [{
|
|
61
|
+
# kty: "EC"
|
|
62
|
+
# }])
|
|
63
|
+
#
|
|
56
64
|
# @return [Auth0::Types::SetCustomSigningKeysResponseContent]
|
|
57
65
|
def set(request_options: {}, **params)
|
|
58
66
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -70,7 +78,7 @@ module Auth0
|
|
|
70
78
|
end
|
|
71
79
|
code = response.code.to_i
|
|
72
80
|
if code.between?(200, 299)
|
|
73
|
-
Auth0::Types::SetCustomSigningKeysResponseContent.load(response.body)
|
|
81
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::SetCustomSigningKeysResponseContent.load(response.body))
|
|
74
82
|
else
|
|
75
83
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
76
84
|
raise error_class.new(response.body, code: code)
|
|
@@ -87,6 +95,9 @@ module Auth0
|
|
|
87
95
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
88
96
|
# @option request_options [Integer] :timeout_in_seconds
|
|
89
97
|
#
|
|
98
|
+
# @example
|
|
99
|
+
# client.keys.custom_signing.delete
|
|
100
|
+
#
|
|
90
101
|
# @return [untyped]
|
|
91
102
|
def delete(request_options: {}, **_params)
|
|
92
103
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -24,6 +24,13 @@ module Auth0
|
|
|
24
24
|
# @option params [Integer, nil] :per_page
|
|
25
25
|
# @option params [Boolean, nil] :include_totals
|
|
26
26
|
#
|
|
27
|
+
# @example
|
|
28
|
+
# client.keys.encryption.list(
|
|
29
|
+
# page: 1,
|
|
30
|
+
# per_page: 1,
|
|
31
|
+
# include_totals: true
|
|
32
|
+
# )
|
|
33
|
+
#
|
|
27
34
|
# @return [Auth0::Types::ListEncryptionKeyOffsetPaginatedResponseContent]
|
|
28
35
|
def list(request_options: {}, **params)
|
|
29
36
|
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::ListEncryptionKeyOffsetPaginatedResponseContent.load(response.body)
|
|
63
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListEncryptionKeyOffsetPaginatedResponseContent.load(response.body))
|
|
57
64
|
[parsed_response, response]
|
|
58
65
|
else
|
|
59
66
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -72,6 +79,9 @@ module Auth0
|
|
|
72
79
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
73
80
|
# @option request_options [Integer] :timeout_in_seconds
|
|
74
81
|
#
|
|
82
|
+
# @example
|
|
83
|
+
# client.keys.encryption.create(type: "customer-provided-root-key")
|
|
84
|
+
#
|
|
75
85
|
# @return [Auth0::Types::CreateEncryptionKeyResponseContent]
|
|
76
86
|
def create(request_options: {}, **params)
|
|
77
87
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -89,7 +99,7 @@ module Auth0
|
|
|
89
99
|
end
|
|
90
100
|
code = response.code.to_i
|
|
91
101
|
if code.between?(200, 299)
|
|
92
|
-
Auth0::Types::CreateEncryptionKeyResponseContent.load(response.body)
|
|
102
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateEncryptionKeyResponseContent.load(response.body))
|
|
93
103
|
else
|
|
94
104
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
95
105
|
raise error_class.new(response.body, code: code)
|
|
@@ -106,6 +116,9 @@ module Auth0
|
|
|
106
116
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
107
117
|
# @option request_options [Integer] :timeout_in_seconds
|
|
108
118
|
#
|
|
119
|
+
# @example
|
|
120
|
+
# client.keys.encryption.rekey
|
|
121
|
+
#
|
|
109
122
|
# @return [untyped]
|
|
110
123
|
def rekey(request_options: {}, **_params)
|
|
111
124
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -137,6 +150,9 @@ module Auth0
|
|
|
137
150
|
# @option request_options [Integer] :timeout_in_seconds
|
|
138
151
|
# @option params [String] :kid
|
|
139
152
|
#
|
|
153
|
+
# @example
|
|
154
|
+
# client.keys.encryption.get(kid: "kid")
|
|
155
|
+
#
|
|
140
156
|
# @return [Auth0::Types::GetEncryptionKeyResponseContent]
|
|
141
157
|
def get(request_options: {}, **params)
|
|
142
158
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -153,7 +169,7 @@ module Auth0
|
|
|
153
169
|
end
|
|
154
170
|
code = response.code.to_i
|
|
155
171
|
if code.between?(200, 299)
|
|
156
|
-
Auth0::Types::GetEncryptionKeyResponseContent.load(response.body)
|
|
172
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetEncryptionKeyResponseContent.load(response.body))
|
|
157
173
|
else
|
|
158
174
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
159
175
|
raise error_class.new(response.body, code: code)
|
|
@@ -171,6 +187,12 @@ module Auth0
|
|
|
171
187
|
# @option request_options [Integer] :timeout_in_seconds
|
|
172
188
|
# @option params [String] :kid
|
|
173
189
|
#
|
|
190
|
+
# @example
|
|
191
|
+
# client.keys.encryption.import(
|
|
192
|
+
# kid: "kid",
|
|
193
|
+
# wrapped_key: "wrapped_key"
|
|
194
|
+
# )
|
|
195
|
+
#
|
|
174
196
|
# @return [Auth0::Types::ImportEncryptionKeyResponseContent]
|
|
175
197
|
def import(request_options: {}, **params)
|
|
176
198
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -192,7 +214,7 @@ module Auth0
|
|
|
192
214
|
end
|
|
193
215
|
code = response.code.to_i
|
|
194
216
|
if code.between?(200, 299)
|
|
195
|
-
Auth0::Types::ImportEncryptionKeyResponseContent.load(response.body)
|
|
217
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::ImportEncryptionKeyResponseContent.load(response.body))
|
|
196
218
|
else
|
|
197
219
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
198
220
|
raise error_class.new(response.body, code: code)
|
|
@@ -210,6 +232,9 @@ module Auth0
|
|
|
210
232
|
# @option request_options [Integer] :timeout_in_seconds
|
|
211
233
|
# @option params [String] :kid
|
|
212
234
|
#
|
|
235
|
+
# @example
|
|
236
|
+
# client.keys.encryption.delete(kid: "kid")
|
|
237
|
+
#
|
|
213
238
|
# @return [untyped]
|
|
214
239
|
def delete(request_options: {}, **params)
|
|
215
240
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -242,6 +267,9 @@ module Auth0
|
|
|
242
267
|
# @option request_options [Integer] :timeout_in_seconds
|
|
243
268
|
# @option params [String] :kid
|
|
244
269
|
#
|
|
270
|
+
# @example
|
|
271
|
+
# client.keys.encryption.create_public_wrapping_key(kid: "kid")
|
|
272
|
+
#
|
|
245
273
|
# @return [Auth0::Types::CreateEncryptionKeyPublicWrappingResponseContent]
|
|
246
274
|
def create_public_wrapping_key(request_options: {}, **params)
|
|
247
275
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -258,7 +286,7 @@ module Auth0
|
|
|
258
286
|
end
|
|
259
287
|
code = response.code.to_i
|
|
260
288
|
if code.between?(200, 299)
|
|
261
|
-
Auth0::Types::CreateEncryptionKeyPublicWrappingResponseContent.load(response.body)
|
|
289
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateEncryptionKeyPublicWrappingResponseContent.load(response.body))
|
|
262
290
|
else
|
|
263
291
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
264
292
|
raise error_class.new(response.body, code: code)
|
|
@@ -22,6 +22,9 @@ module Auth0
|
|
|
22
22
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
23
23
|
# @option request_options [Integer] :timeout_in_seconds
|
|
24
24
|
#
|
|
25
|
+
# @example
|
|
26
|
+
# client.keys.network_acls.list
|
|
27
|
+
#
|
|
25
28
|
# @return [Auth0::Types::GetAllKeysNetworkACLsResponseContent]
|
|
26
29
|
def list(request_options: {}, **_params)
|
|
27
30
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -37,7 +40,7 @@ module Auth0
|
|
|
37
40
|
end
|
|
38
41
|
code = response.code.to_i
|
|
39
42
|
if code.between?(200, 299)
|
|
40
|
-
Auth0::Types::GetAllKeysNetworkACLsResponseContent.load(response.body)
|
|
43
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetAllKeysNetworkACLsResponseContent.load(response.body))
|
|
41
44
|
else
|
|
42
45
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
43
46
|
raise error_class.new(response.body, code: code)
|
|
@@ -54,6 +57,13 @@ module Auth0
|
|
|
54
57
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
55
58
|
# @option request_options [Integer] :timeout_in_seconds
|
|
56
59
|
#
|
|
60
|
+
# @example
|
|
61
|
+
# client.keys.network_acls.create(
|
|
62
|
+
# name: "name",
|
|
63
|
+
# alg: "hmac-sha256",
|
|
64
|
+
# value: "value"
|
|
65
|
+
# )
|
|
66
|
+
#
|
|
57
67
|
# @return [Auth0::Types::CreateKeysNetworkACLsResponseContent]
|
|
58
68
|
def create(request_options: {}, **params)
|
|
59
69
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -71,7 +81,7 @@ module Auth0
|
|
|
71
81
|
end
|
|
72
82
|
code = response.code.to_i
|
|
73
83
|
if code.between?(200, 299)
|
|
74
|
-
Auth0::Types::CreateKeysNetworkACLsResponseContent.load(response.body)
|
|
84
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateKeysNetworkACLsResponseContent.load(response.body))
|
|
75
85
|
else
|
|
76
86
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
77
87
|
raise error_class.new(response.body, code: code)
|
|
@@ -89,6 +99,9 @@ module Auth0
|
|
|
89
99
|
# @option request_options [Integer] :timeout_in_seconds
|
|
90
100
|
# @option params [String] :id
|
|
91
101
|
#
|
|
102
|
+
# @example
|
|
103
|
+
# client.keys.network_acls.get(id: "id")
|
|
104
|
+
#
|
|
92
105
|
# @return [Auth0::Types::NetworkACLKey]
|
|
93
106
|
def get(request_options: {}, **params)
|
|
94
107
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -105,7 +118,7 @@ module Auth0
|
|
|
105
118
|
end
|
|
106
119
|
code = response.code.to_i
|
|
107
120
|
if code.between?(200, 299)
|
|
108
|
-
Auth0::Types::NetworkACLKey.load(response.body)
|
|
121
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::NetworkACLKey.load(response.body))
|
|
109
122
|
else
|
|
110
123
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
111
124
|
raise error_class.new(response.body, code: code)
|
|
@@ -123,6 +136,9 @@ module Auth0
|
|
|
123
136
|
# @option request_options [Integer] :timeout_in_seconds
|
|
124
137
|
# @option params [String] :id
|
|
125
138
|
#
|
|
139
|
+
# @example
|
|
140
|
+
# client.keys.network_acls.delete(id: "id")
|
|
141
|
+
#
|
|
126
142
|
# @return [untyped]
|
|
127
143
|
def delete(request_options: {}, **params)
|
|
128
144
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -21,6 +21,9 @@ module Auth0
|
|
|
21
21
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
22
22
|
# @option request_options [Integer] :timeout_in_seconds
|
|
23
23
|
#
|
|
24
|
+
# @example
|
|
25
|
+
# client.keys.signing.list
|
|
26
|
+
#
|
|
24
27
|
# @return [Array[Auth0::Types::SigningKeys]]
|
|
25
28
|
def list(request_options: {}, **_params)
|
|
26
29
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -35,10 +38,12 @@ module Auth0
|
|
|
35
38
|
raise Auth0::Errors::TimeoutError
|
|
36
39
|
end
|
|
37
40
|
code = response.code.to_i
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
if code.between?(200, 299)
|
|
42
|
+
Auth0::Internal::Types::Utils.coerce(Internal::Types::Array[Auth0::Types::SigningKeys], (response.body.to_s.empty? ? nil : JSON.parse(response.body, symbolize_names: true)))
|
|
43
|
+
else
|
|
44
|
+
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
45
|
+
raise error_class.new(response.body, code: code)
|
|
46
|
+
end
|
|
42
47
|
end
|
|
43
48
|
|
|
44
49
|
# Rotate the application signing key of your tenant.
|
|
@@ -51,6 +56,9 @@ module Auth0
|
|
|
51
56
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
52
57
|
# @option request_options [Integer] :timeout_in_seconds
|
|
53
58
|
#
|
|
59
|
+
# @example
|
|
60
|
+
# client.keys.signing.rotate
|
|
61
|
+
#
|
|
54
62
|
# @return [Auth0::Types::RotateSigningKeysResponseContent]
|
|
55
63
|
def rotate(request_options: {}, **_params)
|
|
56
64
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -66,7 +74,7 @@ module Auth0
|
|
|
66
74
|
end
|
|
67
75
|
code = response.code.to_i
|
|
68
76
|
if code.between?(200, 299)
|
|
69
|
-
Auth0::Types::RotateSigningKeysResponseContent.load(response.body)
|
|
77
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::RotateSigningKeysResponseContent.load(response.body))
|
|
70
78
|
else
|
|
71
79
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
72
80
|
raise error_class.new(response.body, code: code)
|
|
@@ -84,6 +92,9 @@ module Auth0
|
|
|
84
92
|
# @option request_options [Integer] :timeout_in_seconds
|
|
85
93
|
# @option params [String] :kid
|
|
86
94
|
#
|
|
95
|
+
# @example
|
|
96
|
+
# client.keys.signing.get(kid: "kid")
|
|
97
|
+
#
|
|
87
98
|
# @return [Auth0::Types::GetSigningKeysResponseContent]
|
|
88
99
|
def get(request_options: {}, **params)
|
|
89
100
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -100,7 +111,7 @@ module Auth0
|
|
|
100
111
|
end
|
|
101
112
|
code = response.code.to_i
|
|
102
113
|
if code.between?(200, 299)
|
|
103
|
-
Auth0::Types::GetSigningKeysResponseContent.load(response.body)
|
|
114
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetSigningKeysResponseContent.load(response.body))
|
|
104
115
|
else
|
|
105
116
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
106
117
|
raise error_class.new(response.body, code: code)
|
|
@@ -118,6 +129,9 @@ module Auth0
|
|
|
118
129
|
# @option request_options [Integer] :timeout_in_seconds
|
|
119
130
|
# @option params [String] :kid
|
|
120
131
|
#
|
|
132
|
+
# @example
|
|
133
|
+
# client.keys.signing.revoke(kid: "kid")
|
|
134
|
+
#
|
|
121
135
|
# @return [Auth0::Types::RevokedSigningKeysResponseContent]
|
|
122
136
|
def revoke(request_options: {}, **params)
|
|
123
137
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -134,7 +148,7 @@ module Auth0
|
|
|
134
148
|
end
|
|
135
149
|
code = response.code.to_i
|
|
136
150
|
if code.between?(200, 299)
|
|
137
|
-
Auth0::Types::RevokedSigningKeysResponseContent.load(response.body)
|
|
151
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::RevokedSigningKeysResponseContent.load(response.body))
|
|
138
152
|
else
|
|
139
153
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
140
154
|
raise error_class.new(response.body, code: code)
|
|
@@ -90,6 +90,9 @@ module Auth0
|
|
|
90
90
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
91
91
|
# @option request_options [Integer] :timeout_in_seconds
|
|
92
92
|
#
|
|
93
|
+
# @example
|
|
94
|
+
# client.log_streams.list
|
|
95
|
+
#
|
|
93
96
|
# @return [Array[Auth0::Types::LogStreamResponseSchema]]
|
|
94
97
|
def list(request_options: {}, **_params)
|
|
95
98
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -104,10 +107,12 @@ module Auth0
|
|
|
104
107
|
raise Auth0::Errors::TimeoutError
|
|
105
108
|
end
|
|
106
109
|
code = response.code.to_i
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
if code.between?(200, 299)
|
|
111
|
+
Auth0::Internal::Types::Utils.coerce(Internal::Types::Array[Auth0::Types::LogStreamResponseSchema], (response.body.to_s.empty? ? nil : JSON.parse(response.body, symbolize_names: true)))
|
|
112
|
+
else
|
|
113
|
+
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
114
|
+
raise error_class.new(response.body, code: code)
|
|
115
|
+
end
|
|
111
116
|
end
|
|
112
117
|
|
|
113
118
|
# Create a log stream.
|
|
@@ -316,6 +321,14 @@ module Auth0
|
|
|
316
321
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
317
322
|
# @option request_options [Integer] :timeout_in_seconds
|
|
318
323
|
#
|
|
324
|
+
# @example
|
|
325
|
+
# client.log_streams.create(
|
|
326
|
+
# type: "http",
|
|
327
|
+
# sink: {
|
|
328
|
+
# http_endpoint: "httpEndpoint"
|
|
329
|
+
# }
|
|
330
|
+
# )
|
|
331
|
+
#
|
|
319
332
|
# @return [Auth0::Types::CreateLogStreamResponseContent]
|
|
320
333
|
def create(request_options: {}, **params)
|
|
321
334
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -333,7 +346,7 @@ module Auth0
|
|
|
333
346
|
end
|
|
334
347
|
code = response.code.to_i
|
|
335
348
|
if code.between?(200, 299)
|
|
336
|
-
Auth0::Types::CreateLogStreamResponseContent.load(response.body)
|
|
349
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateLogStreamResponseContent.load(response.body))
|
|
337
350
|
else
|
|
338
351
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
339
352
|
raise error_class.new(response.body, code: code)
|
|
@@ -502,6 +515,9 @@ module Auth0
|
|
|
502
515
|
# @option request_options [Integer] :timeout_in_seconds
|
|
503
516
|
# @option params [String] :id
|
|
504
517
|
#
|
|
518
|
+
# @example
|
|
519
|
+
# client.log_streams.get(id: "id")
|
|
520
|
+
#
|
|
505
521
|
# @return [Auth0::Types::GetLogStreamResponseContent]
|
|
506
522
|
def get(request_options: {}, **params)
|
|
507
523
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -518,7 +534,7 @@ module Auth0
|
|
|
518
534
|
end
|
|
519
535
|
code = response.code.to_i
|
|
520
536
|
if code.between?(200, 299)
|
|
521
|
-
Auth0::Types::GetLogStreamResponseContent.load(response.body)
|
|
537
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetLogStreamResponseContent.load(response.body))
|
|
522
538
|
else
|
|
523
539
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
524
540
|
raise error_class.new(response.body, code: code)
|
|
@@ -536,6 +552,9 @@ module Auth0
|
|
|
536
552
|
# @option request_options [Integer] :timeout_in_seconds
|
|
537
553
|
# @option params [String] :id
|
|
538
554
|
#
|
|
555
|
+
# @example
|
|
556
|
+
# client.log_streams.delete(id: "id")
|
|
557
|
+
#
|
|
539
558
|
# @return [untyped]
|
|
540
559
|
def delete(request_options: {}, **params)
|
|
541
560
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -641,6 +660,9 @@ module Auth0
|
|
|
641
660
|
# @option request_options [Integer] :timeout_in_seconds
|
|
642
661
|
# @option params [String] :id
|
|
643
662
|
#
|
|
663
|
+
# @example
|
|
664
|
+
# client.log_streams.update(id: "id")
|
|
665
|
+
#
|
|
644
666
|
# @return [Auth0::Types::UpdateLogStreamResponseContent]
|
|
645
667
|
def update(request_options: {}, **params)
|
|
646
668
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -662,7 +684,7 @@ module Auth0
|
|
|
662
684
|
end
|
|
663
685
|
code = response.code.to_i
|
|
664
686
|
if code.between?(200, 299)
|
|
665
|
-
Auth0::Types::UpdateLogStreamResponseContent.load(response.body)
|
|
687
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateLogStreamResponseContent.load(response.body))
|
|
666
688
|
else
|
|
667
689
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
668
690
|
raise error_class.new(response.body, code: code)
|
data/lib/auth0/logs/client.rb
CHANGED
|
@@ -64,6 +64,17 @@ module Auth0
|
|
|
64
64
|
# @option params [Boolean, nil] :include_totals
|
|
65
65
|
# @option params [String, nil] :search
|
|
66
66
|
#
|
|
67
|
+
# @example
|
|
68
|
+
# client.logs.list(
|
|
69
|
+
# page: 1,
|
|
70
|
+
# per_page: 1,
|
|
71
|
+
# sort: "sort",
|
|
72
|
+
# fields: "fields",
|
|
73
|
+
# include_fields: true,
|
|
74
|
+
# include_totals: true,
|
|
75
|
+
# search: "search"
|
|
76
|
+
# )
|
|
77
|
+
#
|
|
67
78
|
# @return [Auth0::Types::ListLogOffsetPaginatedResponseContent]
|
|
68
79
|
def list(request_options: {}, **params)
|
|
69
80
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -97,7 +108,7 @@ module Auth0
|
|
|
97
108
|
end
|
|
98
109
|
code = response.code.to_i
|
|
99
110
|
if code.between?(200, 299)
|
|
100
|
-
parsed_response = Auth0::Types::ListLogOffsetPaginatedResponseContent.load(response.body)
|
|
111
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListLogOffsetPaginatedResponseContent.load(response.body))
|
|
101
112
|
[parsed_response, response]
|
|
102
113
|
else
|
|
103
114
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -117,6 +128,9 @@ module Auth0
|
|
|
117
128
|
# @option request_options [Integer] :timeout_in_seconds
|
|
118
129
|
# @option params [String] :id
|
|
119
130
|
#
|
|
131
|
+
# @example
|
|
132
|
+
# client.logs.get(id: "id")
|
|
133
|
+
#
|
|
120
134
|
# @return [Auth0::Types::GetLogResponseContent]
|
|
121
135
|
def get(request_options: {}, **params)
|
|
122
136
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -133,7 +147,7 @@ module Auth0
|
|
|
133
147
|
end
|
|
134
148
|
code = response.code.to_i
|
|
135
149
|
if code.between?(200, 299)
|
|
136
|
-
Auth0::Types::GetLogResponseContent.load(response.body)
|
|
150
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetLogResponseContent.load(response.body))
|
|
137
151
|
else
|
|
138
152
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
139
153
|
raise error_class.new(response.body, code: code)
|
|
@@ -23,6 +23,13 @@ module Auth0
|
|
|
23
23
|
# @option params [Integer, nil] :per_page
|
|
24
24
|
# @option params [Boolean, nil] :include_totals
|
|
25
25
|
#
|
|
26
|
+
# @example
|
|
27
|
+
# client.network_acls.list(
|
|
28
|
+
# page: 1,
|
|
29
|
+
# per_page: 1,
|
|
30
|
+
# include_totals: true
|
|
31
|
+
# )
|
|
32
|
+
#
|
|
26
33
|
# @return [Auth0::Types::ListNetworkACLsOffsetPaginatedResponseContent]
|
|
27
34
|
def list(request_options: {}, **params)
|
|
28
35
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -52,7 +59,7 @@ module Auth0
|
|
|
52
59
|
end
|
|
53
60
|
code = response.code.to_i
|
|
54
61
|
if code.between?(200, 299)
|
|
55
|
-
parsed_response = Auth0::Types::ListNetworkACLsOffsetPaginatedResponseContent.load(response.body)
|
|
62
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListNetworkACLsOffsetPaginatedResponseContent.load(response.body))
|
|
56
63
|
[parsed_response, response]
|
|
57
64
|
else
|
|
58
65
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -71,6 +78,16 @@ module Auth0
|
|
|
71
78
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
72
79
|
# @option request_options [Integer] :timeout_in_seconds
|
|
73
80
|
#
|
|
81
|
+
# @example
|
|
82
|
+
# client.network_acls.create(
|
|
83
|
+
# description: "description",
|
|
84
|
+
# active: true,
|
|
85
|
+
# rule: {
|
|
86
|
+
# action: {},
|
|
87
|
+
# scope: "management"
|
|
88
|
+
# }
|
|
89
|
+
# )
|
|
90
|
+
#
|
|
74
91
|
# @return [untyped]
|
|
75
92
|
def create(request_options: {}, **params)
|
|
76
93
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -104,6 +121,9 @@ module Auth0
|
|
|
104
121
|
# @option request_options [Integer] :timeout_in_seconds
|
|
105
122
|
# @option params [String] :id
|
|
106
123
|
#
|
|
124
|
+
# @example
|
|
125
|
+
# client.network_acls.get(id: "id")
|
|
126
|
+
#
|
|
107
127
|
# @return [Auth0::Types::GetNetworkACLsResponseContent]
|
|
108
128
|
def get(request_options: {}, **params)
|
|
109
129
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -120,7 +140,7 @@ module Auth0
|
|
|
120
140
|
end
|
|
121
141
|
code = response.code.to_i
|
|
122
142
|
if code.between?(200, 299)
|
|
123
|
-
Auth0::Types::GetNetworkACLsResponseContent.load(response.body)
|
|
143
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetNetworkACLsResponseContent.load(response.body))
|
|
124
144
|
else
|
|
125
145
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
126
146
|
raise error_class.new(response.body, code: code)
|
|
@@ -138,6 +158,17 @@ module Auth0
|
|
|
138
158
|
# @option request_options [Integer] :timeout_in_seconds
|
|
139
159
|
# @option params [String] :id
|
|
140
160
|
#
|
|
161
|
+
# @example
|
|
162
|
+
# client.network_acls.set(
|
|
163
|
+
# id: "id",
|
|
164
|
+
# description: "description",
|
|
165
|
+
# active: true,
|
|
166
|
+
# rule: {
|
|
167
|
+
# action: {},
|
|
168
|
+
# scope: "management"
|
|
169
|
+
# }
|
|
170
|
+
# )
|
|
171
|
+
#
|
|
141
172
|
# @return [Auth0::Types::SetNetworkACLsResponseContent]
|
|
142
173
|
def set(request_options: {}, **params)
|
|
143
174
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -159,7 +190,7 @@ module Auth0
|
|
|
159
190
|
end
|
|
160
191
|
code = response.code.to_i
|
|
161
192
|
if code.between?(200, 299)
|
|
162
|
-
Auth0::Types::SetNetworkACLsResponseContent.load(response.body)
|
|
193
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::SetNetworkACLsResponseContent.load(response.body))
|
|
163
194
|
else
|
|
164
195
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
165
196
|
raise error_class.new(response.body, code: code)
|
|
@@ -177,6 +208,9 @@ module Auth0
|
|
|
177
208
|
# @option request_options [Integer] :timeout_in_seconds
|
|
178
209
|
# @option params [String] :id
|
|
179
210
|
#
|
|
211
|
+
# @example
|
|
212
|
+
# client.network_acls.delete(id: "id")
|
|
213
|
+
#
|
|
180
214
|
# @return [untyped]
|
|
181
215
|
def delete(request_options: {}, **params)
|
|
182
216
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -209,6 +243,9 @@ module Auth0
|
|
|
209
243
|
# @option request_options [Integer] :timeout_in_seconds
|
|
210
244
|
# @option params [String] :id
|
|
211
245
|
#
|
|
246
|
+
# @example
|
|
247
|
+
# client.network_acls.update(id: "id")
|
|
248
|
+
#
|
|
212
249
|
# @return [Auth0::Types::UpdateNetworkACLResponseContent]
|
|
213
250
|
def update(request_options: {}, **params)
|
|
214
251
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -230,7 +267,7 @@ module Auth0
|
|
|
230
267
|
end
|
|
231
268
|
code = response.code.to_i
|
|
232
269
|
if code.between?(200, 299)
|
|
233
|
-
Auth0::Types::UpdateNetworkACLResponseContent.load(response.body)
|
|
270
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateNetworkACLResponseContent.load(response.body))
|
|
234
271
|
else
|
|
235
272
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
236
273
|
raise error_class.new(response.body, code: code)
|