auth0 6.2.0 → 6.3.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 +3 -3
- data/.fern/replay.lock +7 -1
- data/.version +1 -1
- data/CHANGELOG.md +7 -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 +2 -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 +19 -0
- data/lib/auth0/experimentation/experiments/client.rb +63 -0
- data/lib/auth0/experimentation/experiments/types/advance_ramp_request_content.rb +15 -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 -5
- 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/organization_template/client.rb +16 -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 +4 -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 +4 -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/anonymous_sessions.rb +10 -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/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_organization_all_connection_response_content.rb +2 -0
- data/lib/auth0/types/create_resource_server_response_content.rb +4 -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_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 +4 -0
- data/lib/auth0/types/get_tenant_settings_response_content.rb +2 -0
- data/lib/auth0/types/oauth_scope.rb +1 -2
- 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 +4 -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 +53 -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/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_organization_all_connection_response_content.rb +2 -0
- data/lib/auth0/types/update_resource_server_response_content.rb +4 -0
- data/lib/auth0/types/update_tenant_settings_response_content.rb +2 -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 +54 -9
- 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 +46 -16
- data/wiremock/wiremock-mappings.json +333 -191
- metadata +40 -10
- 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/types/list_organization_templates_paginated_response_content.rb +0 -11
- data/lib/auth0/types/organization_template_assigned_organization.rb +0 -10
|
@@ -26,6 +26,9 @@ module Auth0
|
|
|
26
26
|
# @option request_options [Integer] :timeout_in_seconds
|
|
27
27
|
# @option params [String] :client_id
|
|
28
28
|
#
|
|
29
|
+
# @example
|
|
30
|
+
# client.clients.credentials.list(client_id: "client_id")
|
|
31
|
+
#
|
|
29
32
|
# @return [Array[Auth0::Types::ClientCredential]]
|
|
30
33
|
def list(request_options: {}, **params)
|
|
31
34
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -41,10 +44,12 @@ module Auth0
|
|
|
41
44
|
raise Auth0::Errors::TimeoutError
|
|
42
45
|
end
|
|
43
46
|
code = response.code.to_i
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
if code.between?(200, 299)
|
|
48
|
+
Auth0::Internal::Types::Utils.coerce(Internal::Types::Array[Auth0::Types::ClientCredential], (response.body.to_s.empty? ? nil : JSON.parse(response.body, symbolize_names: true)))
|
|
49
|
+
else
|
|
50
|
+
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
51
|
+
raise error_class.new(response.body, code: code)
|
|
52
|
+
end
|
|
48
53
|
end
|
|
49
54
|
|
|
50
55
|
# Create a client credential associated to your application. Credentials can be used to configure Private Key
|
|
@@ -123,6 +128,12 @@ module Auth0
|
|
|
123
128
|
# @option request_options [Integer] :timeout_in_seconds
|
|
124
129
|
# @option params [String] :client_id
|
|
125
130
|
#
|
|
131
|
+
# @example
|
|
132
|
+
# client.clients.credentials.create(
|
|
133
|
+
# client_id: "client_id",
|
|
134
|
+
# credential_type: "public_key"
|
|
135
|
+
# )
|
|
136
|
+
#
|
|
126
137
|
# @return [Auth0::Types::PostClientCredentialResponseContent]
|
|
127
138
|
def create(request_options: {}, **params)
|
|
128
139
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -144,7 +155,7 @@ module Auth0
|
|
|
144
155
|
end
|
|
145
156
|
code = response.code.to_i
|
|
146
157
|
if code.between?(200, 299)
|
|
147
|
-
Auth0::Types::PostClientCredentialResponseContent.load(response.body)
|
|
158
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::PostClientCredentialResponseContent.load(response.body))
|
|
148
159
|
else
|
|
149
160
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
150
161
|
raise error_class.new(response.body, code: code)
|
|
@@ -167,6 +178,12 @@ module Auth0
|
|
|
167
178
|
# @option params [String] :client_id
|
|
168
179
|
# @option params [String] :credential_id
|
|
169
180
|
#
|
|
181
|
+
# @example
|
|
182
|
+
# client.clients.credentials.get(
|
|
183
|
+
# client_id: "client_id",
|
|
184
|
+
# credential_id: "credential_id"
|
|
185
|
+
# )
|
|
186
|
+
#
|
|
170
187
|
# @return [Auth0::Types::GetClientCredentialResponseContent]
|
|
171
188
|
def get(request_options: {}, **params)
|
|
172
189
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -183,7 +200,7 @@ module Auth0
|
|
|
183
200
|
end
|
|
184
201
|
code = response.code.to_i
|
|
185
202
|
if code.between?(200, 299)
|
|
186
|
-
Auth0::Types::GetClientCredentialResponseContent.load(response.body)
|
|
203
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetClientCredentialResponseContent.load(response.body))
|
|
187
204
|
else
|
|
188
205
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
189
206
|
raise error_class.new(response.body, code: code)
|
|
@@ -204,6 +221,12 @@ module Auth0
|
|
|
204
221
|
# @option params [String] :client_id
|
|
205
222
|
# @option params [String] :credential_id
|
|
206
223
|
#
|
|
224
|
+
# @example
|
|
225
|
+
# client.clients.credentials.delete(
|
|
226
|
+
# client_id: "client_id",
|
|
227
|
+
# credential_id: "credential_id"
|
|
228
|
+
# )
|
|
229
|
+
#
|
|
207
230
|
# @return [untyped]
|
|
208
231
|
def delete(request_options: {}, **params)
|
|
209
232
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -239,6 +262,12 @@ module Auth0
|
|
|
239
262
|
# @option params [String] :client_id
|
|
240
263
|
# @option params [String] :credential_id
|
|
241
264
|
#
|
|
265
|
+
# @example
|
|
266
|
+
# client.clients.credentials.update(
|
|
267
|
+
# client_id: "client_id",
|
|
268
|
+
# credential_id: "credential_id"
|
|
269
|
+
# )
|
|
270
|
+
#
|
|
242
271
|
# @return [Auth0::Types::PatchClientCredentialResponseContent]
|
|
243
272
|
def update(request_options: {}, **params)
|
|
244
273
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -260,7 +289,7 @@ module Auth0
|
|
|
260
289
|
end
|
|
261
290
|
code = response.code.to_i
|
|
262
291
|
if code.between?(200, 299)
|
|
263
|
-
Auth0::Types::PatchClientCredentialResponseContent.load(response.body)
|
|
292
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::PatchClientCredentialResponseContent.load(response.body))
|
|
264
293
|
else
|
|
265
294
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
266
295
|
raise error_class.new(response.body, code: code)
|
|
@@ -106,6 +106,8 @@ module Auth0
|
|
|
106
106
|
|
|
107
107
|
field :identity_assertion_authorization_grant, -> { Auth0::Types::CreateIdentityAssertionAuthorizationGrant }, optional: true, nullable: false
|
|
108
108
|
|
|
109
|
+
field :anonymous_sessions, -> { Auth0::Types::CreateAnonymousSessions }, optional: true, nullable: false
|
|
110
|
+
|
|
109
111
|
field :third_party_security_mode, -> { Auth0::Types::ClientThirdPartySecurityModeEnum }, optional: true, nullable: false
|
|
110
112
|
|
|
111
113
|
field :redirection_policy, -> { Auth0::Types::ClientRedirectionPolicyEnum }, optional: true, nullable: false
|
|
@@ -66,6 +66,8 @@ module Auth0
|
|
|
66
66
|
|
|
67
67
|
field :identity_assertion_authorization_grant, -> { Auth0::Types::UpdateIdentityAssertionAuthorizationGrant }, optional: true, nullable: false
|
|
68
68
|
|
|
69
|
+
field :anonymous_sessions, -> { Auth0::Types::UpdateAnonymousSessions }, optional: true, nullable: false
|
|
70
|
+
|
|
69
71
|
field :form_template, -> { String }, optional: true, nullable: false
|
|
70
72
|
|
|
71
73
|
field :addons, -> { Auth0::Types::ClientAddons }, optional: true, nullable: false
|
|
@@ -22,6 +22,12 @@ module Auth0
|
|
|
22
22
|
# @option params [String, nil] :from
|
|
23
23
|
# @option params [Integer, nil] :take
|
|
24
24
|
#
|
|
25
|
+
# @example
|
|
26
|
+
# client.connection_profiles.list(
|
|
27
|
+
# from: "from",
|
|
28
|
+
# take: 1
|
|
29
|
+
# )
|
|
30
|
+
#
|
|
25
31
|
# @return [Auth0::Types::ListConnectionProfilesPaginatedResponseContent]
|
|
26
32
|
def list(request_options: {}, **params)
|
|
27
33
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -49,7 +55,7 @@ module Auth0
|
|
|
49
55
|
end
|
|
50
56
|
code = response.code.to_i
|
|
51
57
|
if code.between?(200, 299)
|
|
52
|
-
parsed_response = Auth0::Types::ListConnectionProfilesPaginatedResponseContent.load(response.body)
|
|
58
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListConnectionProfilesPaginatedResponseContent.load(response.body))
|
|
53
59
|
[parsed_response, response]
|
|
54
60
|
else
|
|
55
61
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -68,6 +74,9 @@ module Auth0
|
|
|
68
74
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
69
75
|
# @option request_options [Integer] :timeout_in_seconds
|
|
70
76
|
#
|
|
77
|
+
# @example
|
|
78
|
+
# client.connection_profiles.create(name: "name")
|
|
79
|
+
#
|
|
71
80
|
# @return [Auth0::Types::CreateConnectionProfileResponseContent]
|
|
72
81
|
def create(request_options: {}, **params)
|
|
73
82
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -85,7 +94,7 @@ module Auth0
|
|
|
85
94
|
end
|
|
86
95
|
code = response.code.to_i
|
|
87
96
|
if code.between?(200, 299)
|
|
88
|
-
Auth0::Types::CreateConnectionProfileResponseContent.load(response.body)
|
|
97
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateConnectionProfileResponseContent.load(response.body))
|
|
89
98
|
else
|
|
90
99
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
91
100
|
raise error_class.new(response.body, code: code)
|
|
@@ -102,6 +111,9 @@ module Auth0
|
|
|
102
111
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
103
112
|
# @option request_options [Integer] :timeout_in_seconds
|
|
104
113
|
#
|
|
114
|
+
# @example
|
|
115
|
+
# client.connection_profiles.list_templates
|
|
116
|
+
#
|
|
105
117
|
# @return [Auth0::Types::ListConnectionProfileTemplateResponseContent]
|
|
106
118
|
def list_templates(request_options: {}, **_params)
|
|
107
119
|
request = Auth0::Internal::JSON::Request.new(
|
|
@@ -117,7 +129,7 @@ module Auth0
|
|
|
117
129
|
end
|
|
118
130
|
code = response.code.to_i
|
|
119
131
|
if code.between?(200, 299)
|
|
120
|
-
Auth0::Types::ListConnectionProfileTemplateResponseContent.load(response.body)
|
|
132
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::ListConnectionProfileTemplateResponseContent.load(response.body))
|
|
121
133
|
else
|
|
122
134
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
123
135
|
raise error_class.new(response.body, code: code)
|
|
@@ -135,6 +147,9 @@ module Auth0
|
|
|
135
147
|
# @option request_options [Integer] :timeout_in_seconds
|
|
136
148
|
# @option params [String] :id
|
|
137
149
|
#
|
|
150
|
+
# @example
|
|
151
|
+
# client.connection_profiles.get_template(id: "id")
|
|
152
|
+
#
|
|
138
153
|
# @return [Auth0::Types::GetConnectionProfileTemplateResponseContent]
|
|
139
154
|
def get_template(request_options: {}, **params)
|
|
140
155
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -151,7 +166,7 @@ module Auth0
|
|
|
151
166
|
end
|
|
152
167
|
code = response.code.to_i
|
|
153
168
|
if code.between?(200, 299)
|
|
154
|
-
Auth0::Types::GetConnectionProfileTemplateResponseContent.load(response.body)
|
|
169
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetConnectionProfileTemplateResponseContent.load(response.body))
|
|
155
170
|
else
|
|
156
171
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
157
172
|
raise error_class.new(response.body, code: code)
|
|
@@ -169,6 +184,9 @@ module Auth0
|
|
|
169
184
|
# @option request_options [Integer] :timeout_in_seconds
|
|
170
185
|
# @option params [String] :id
|
|
171
186
|
#
|
|
187
|
+
# @example
|
|
188
|
+
# client.connection_profiles.get(id: "id")
|
|
189
|
+
#
|
|
172
190
|
# @return [Auth0::Types::GetConnectionProfileResponseContent]
|
|
173
191
|
def get(request_options: {}, **params)
|
|
174
192
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -185,7 +203,7 @@ module Auth0
|
|
|
185
203
|
end
|
|
186
204
|
code = response.code.to_i
|
|
187
205
|
if code.between?(200, 299)
|
|
188
|
-
Auth0::Types::GetConnectionProfileResponseContent.load(response.body)
|
|
206
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetConnectionProfileResponseContent.load(response.body))
|
|
189
207
|
else
|
|
190
208
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
191
209
|
raise error_class.new(response.body, code: code)
|
|
@@ -203,6 +221,9 @@ module Auth0
|
|
|
203
221
|
# @option request_options [Integer] :timeout_in_seconds
|
|
204
222
|
# @option params [String] :id
|
|
205
223
|
#
|
|
224
|
+
# @example
|
|
225
|
+
# client.connection_profiles.delete(id: "id")
|
|
226
|
+
#
|
|
206
227
|
# @return [untyped]
|
|
207
228
|
def delete(request_options: {}, **params)
|
|
208
229
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -235,6 +256,9 @@ module Auth0
|
|
|
235
256
|
# @option request_options [Integer] :timeout_in_seconds
|
|
236
257
|
# @option params [String] :id
|
|
237
258
|
#
|
|
259
|
+
# @example
|
|
260
|
+
# client.connection_profiles.update(id: "id")
|
|
261
|
+
#
|
|
238
262
|
# @return [Auth0::Types::UpdateConnectionProfileResponseContent]
|
|
239
263
|
def update(request_options: {}, **params)
|
|
240
264
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -256,7 +280,7 @@ module Auth0
|
|
|
256
280
|
end
|
|
257
281
|
code = response.code.to_i
|
|
258
282
|
if code.between?(200, 299)
|
|
259
|
-
Auth0::Types::UpdateConnectionProfileResponseContent.load(response.body)
|
|
283
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateConnectionProfileResponseContent.load(response.body))
|
|
260
284
|
else
|
|
261
285
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
262
286
|
raise error_class.new(response.body, code: code)
|
|
@@ -47,6 +47,17 @@ module Auth0
|
|
|
47
47
|
# @option params [String, nil] :fields
|
|
48
48
|
# @option params [Boolean, nil] :include_fields
|
|
49
49
|
#
|
|
50
|
+
# @example
|
|
51
|
+
# client.connections.list(
|
|
52
|
+
# include_totals: true,
|
|
53
|
+
# from: "from",
|
|
54
|
+
# take: 1,
|
|
55
|
+
# strategy: ["ad"],
|
|
56
|
+
# name: "name",
|
|
57
|
+
# fields: "fields",
|
|
58
|
+
# include_fields: true
|
|
59
|
+
# )
|
|
60
|
+
#
|
|
50
61
|
# @return [Auth0::Types::ListConnectionsCheckpointPaginatedResponseContent]
|
|
51
62
|
def list(request_options: {}, **params)
|
|
52
63
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -79,7 +90,7 @@ module Auth0
|
|
|
79
90
|
end
|
|
80
91
|
code = response.code.to_i
|
|
81
92
|
if code.between?(200, 299)
|
|
82
|
-
parsed_response = Auth0::Types::ListConnectionsCheckpointPaginatedResponseContent.load(response.body)
|
|
93
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListConnectionsCheckpointPaginatedResponseContent.load(response.body))
|
|
83
94
|
[parsed_response, response]
|
|
84
95
|
else
|
|
85
96
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -102,6 +113,12 @@ module Auth0
|
|
|
102
113
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
103
114
|
# @option request_options [Integer] :timeout_in_seconds
|
|
104
115
|
#
|
|
116
|
+
# @example
|
|
117
|
+
# client.connections.create(
|
|
118
|
+
# name: "name",
|
|
119
|
+
# strategy: "ad"
|
|
120
|
+
# )
|
|
121
|
+
#
|
|
105
122
|
# @return [Auth0::Types::CreateConnectionResponseContent]
|
|
106
123
|
def create(request_options: {}, **params)
|
|
107
124
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -119,7 +136,7 @@ module Auth0
|
|
|
119
136
|
end
|
|
120
137
|
code = response.code.to_i
|
|
121
138
|
if code.between?(200, 299)
|
|
122
|
-
Auth0::Types::CreateConnectionResponseContent.load(response.body)
|
|
139
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateConnectionResponseContent.load(response.body))
|
|
123
140
|
else
|
|
124
141
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
125
142
|
raise error_class.new(response.body, code: code)
|
|
@@ -140,6 +157,13 @@ module Auth0
|
|
|
140
157
|
# @option params [String, nil] :fields
|
|
141
158
|
# @option params [Boolean, nil] :include_fields
|
|
142
159
|
#
|
|
160
|
+
# @example
|
|
161
|
+
# client.connections.get(
|
|
162
|
+
# id: "id",
|
|
163
|
+
# fields: "fields",
|
|
164
|
+
# include_fields: true
|
|
165
|
+
# )
|
|
166
|
+
#
|
|
143
167
|
# @return [Auth0::Types::GetConnectionResponseContent]
|
|
144
168
|
def get(request_options: {}, **params)
|
|
145
169
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -161,7 +185,7 @@ module Auth0
|
|
|
161
185
|
end
|
|
162
186
|
code = response.code.to_i
|
|
163
187
|
if code.between?(200, 299)
|
|
164
|
-
Auth0::Types::GetConnectionResponseContent.load(response.body)
|
|
188
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetConnectionResponseContent.load(response.body))
|
|
165
189
|
else
|
|
166
190
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
167
191
|
raise error_class.new(response.body, code: code)
|
|
@@ -185,6 +209,9 @@ module Auth0
|
|
|
185
209
|
# @option request_options [Integer] :timeout_in_seconds
|
|
186
210
|
# @option params [String] :id
|
|
187
211
|
#
|
|
212
|
+
# @example
|
|
213
|
+
# client.connections.delete(id: "id")
|
|
214
|
+
#
|
|
188
215
|
# @return [untyped]
|
|
189
216
|
def delete(request_options: {}, **params)
|
|
190
217
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -222,6 +249,9 @@ module Auth0
|
|
|
222
249
|
# @option request_options [Integer] :timeout_in_seconds
|
|
223
250
|
# @option params [String] :id
|
|
224
251
|
#
|
|
252
|
+
# @example
|
|
253
|
+
# client.connections.update(id: "id")
|
|
254
|
+
#
|
|
225
255
|
# @return [Auth0::Types::UpdateConnectionResponseContent]
|
|
226
256
|
def update(request_options: {}, **params)
|
|
227
257
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -243,7 +273,7 @@ module Auth0
|
|
|
243
273
|
end
|
|
244
274
|
code = response.code.to_i
|
|
245
275
|
if code.between?(200, 299)
|
|
246
|
-
Auth0::Types::UpdateConnectionResponseContent.load(response.body)
|
|
276
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateConnectionResponseContent.load(response.body))
|
|
247
277
|
else
|
|
248
278
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
249
279
|
raise error_class.new(response.body, code: code)
|
|
@@ -262,6 +292,9 @@ module Auth0
|
|
|
262
292
|
# @option request_options [Integer] :timeout_in_seconds
|
|
263
293
|
# @option params [String] :id
|
|
264
294
|
#
|
|
295
|
+
# @example
|
|
296
|
+
# client.connections.check_status(id: "id")
|
|
297
|
+
#
|
|
265
298
|
# @return [untyped]
|
|
266
299
|
def check_status(request_options: {}, **params)
|
|
267
300
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -29,6 +29,13 @@ module Auth0
|
|
|
29
29
|
# @option params [Integer, nil] :take
|
|
30
30
|
# @option params [String, nil] :from
|
|
31
31
|
#
|
|
32
|
+
# @example
|
|
33
|
+
# client.connections.clients.get(
|
|
34
|
+
# id: "id",
|
|
35
|
+
# take: 1,
|
|
36
|
+
# from: "from"
|
|
37
|
+
# )
|
|
38
|
+
#
|
|
32
39
|
# @return [Auth0::Types::GetConnectionEnabledClientsResponseContent]
|
|
33
40
|
def get(request_options: {}, **params)
|
|
34
41
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -56,7 +63,7 @@ module Auth0
|
|
|
56
63
|
end
|
|
57
64
|
code = response.code.to_i
|
|
58
65
|
if code.between?(200, 299)
|
|
59
|
-
parsed_response = Auth0::Types::GetConnectionEnabledClientsResponseContent.load(response.body)
|
|
66
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::GetConnectionEnabledClientsResponseContent.load(response.body))
|
|
60
67
|
[parsed_response, response]
|
|
61
68
|
else
|
|
62
69
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -74,14 +81,26 @@ module Auth0
|
|
|
74
81
|
# @option request_options [Integer] :timeout_in_seconds
|
|
75
82
|
# @option params [String] :id
|
|
76
83
|
#
|
|
84
|
+
# @example
|
|
85
|
+
# client.connections.clients.update(
|
|
86
|
+
# id: "id",
|
|
87
|
+
# request: [{
|
|
88
|
+
# client_id: "client_id",
|
|
89
|
+
# status: true
|
|
90
|
+
# }]
|
|
91
|
+
# )
|
|
92
|
+
#
|
|
77
93
|
# @return [untyped]
|
|
78
94
|
def update(request_options: {}, **params)
|
|
79
95
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
96
|
+
path_param_names = %i[id]
|
|
97
|
+
body_params = params.except(*path_param_names)
|
|
98
|
+
|
|
80
99
|
request = Auth0::Internal::JSON::Request.new(
|
|
81
100
|
base_url: request_options[:base_url],
|
|
82
101
|
method: "PATCH",
|
|
83
102
|
path: "connections/#{URI.encode_uri_component(params[:id].to_s)}/clients",
|
|
84
|
-
body:
|
|
103
|
+
body: body_params,
|
|
85
104
|
request_options: request_options
|
|
86
105
|
)
|
|
87
106
|
begin
|
|
@@ -23,6 +23,12 @@ module Auth0
|
|
|
23
23
|
# @option params [String, nil] :from
|
|
24
24
|
# @option params [Integer, nil] :take
|
|
25
25
|
#
|
|
26
|
+
# @example
|
|
27
|
+
# client.connections.directory_provisioning.list(
|
|
28
|
+
# from: "from",
|
|
29
|
+
# take: 1
|
|
30
|
+
# )
|
|
31
|
+
#
|
|
26
32
|
# @return [Auth0::Types::ListDirectoryProvisioningsResponseContent]
|
|
27
33
|
def list(request_options: {}, **params)
|
|
28
34
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -50,7 +56,7 @@ module Auth0
|
|
|
50
56
|
end
|
|
51
57
|
code = response.code.to_i
|
|
52
58
|
if code.between?(200, 299)
|
|
53
|
-
parsed_response = Auth0::Types::ListDirectoryProvisioningsResponseContent.load(response.body)
|
|
59
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListDirectoryProvisioningsResponseContent.load(response.body))
|
|
54
60
|
[parsed_response, response]
|
|
55
61
|
else
|
|
56
62
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -70,6 +76,9 @@ module Auth0
|
|
|
70
76
|
# @option request_options [Integer] :timeout_in_seconds
|
|
71
77
|
# @option params [String] :id
|
|
72
78
|
#
|
|
79
|
+
# @example
|
|
80
|
+
# client.connections.directory_provisioning.get(id: "id")
|
|
81
|
+
#
|
|
73
82
|
# @return [Auth0::Types::GetDirectoryProvisioningResponseContent]
|
|
74
83
|
def get(request_options: {}, **params)
|
|
75
84
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -86,7 +95,7 @@ module Auth0
|
|
|
86
95
|
end
|
|
87
96
|
code = response.code.to_i
|
|
88
97
|
if code.between?(200, 299)
|
|
89
|
-
Auth0::Types::GetDirectoryProvisioningResponseContent.load(response.body)
|
|
98
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetDirectoryProvisioningResponseContent.load(response.body))
|
|
90
99
|
else
|
|
91
100
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
92
101
|
raise error_class.new(response.body, code: code)
|
|
@@ -104,14 +113,23 @@ module Auth0
|
|
|
104
113
|
# @option request_options [Integer] :timeout_in_seconds
|
|
105
114
|
# @option params [String] :id
|
|
106
115
|
#
|
|
116
|
+
# @example
|
|
117
|
+
# client.connections.directory_provisioning.create(
|
|
118
|
+
# id: "id",
|
|
119
|
+
# request: {}
|
|
120
|
+
# )
|
|
121
|
+
#
|
|
107
122
|
# @return [Auth0::Types::CreateDirectoryProvisioningResponseContent]
|
|
108
123
|
def create(request_options: {}, **params)
|
|
109
124
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
125
|
+
path_param_names = %i[id]
|
|
126
|
+
body_params = params.except(*path_param_names)
|
|
127
|
+
|
|
110
128
|
request = Auth0::Internal::JSON::Request.new(
|
|
111
129
|
base_url: request_options[:base_url],
|
|
112
130
|
method: "POST",
|
|
113
131
|
path: "connections/#{URI.encode_uri_component(params[:id].to_s)}/directory-provisioning",
|
|
114
|
-
body:
|
|
132
|
+
body: body_params,
|
|
115
133
|
request_options: request_options
|
|
116
134
|
)
|
|
117
135
|
begin
|
|
@@ -121,7 +139,7 @@ module Auth0
|
|
|
121
139
|
end
|
|
122
140
|
code = response.code.to_i
|
|
123
141
|
if code.between?(200, 299)
|
|
124
|
-
Auth0::Types::CreateDirectoryProvisioningResponseContent.load(response.body)
|
|
142
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateDirectoryProvisioningResponseContent.load(response.body))
|
|
125
143
|
else
|
|
126
144
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
127
145
|
raise error_class.new(response.body, code: code)
|
|
@@ -139,6 +157,9 @@ module Auth0
|
|
|
139
157
|
# @option request_options [Integer] :timeout_in_seconds
|
|
140
158
|
# @option params [String] :id
|
|
141
159
|
#
|
|
160
|
+
# @example
|
|
161
|
+
# client.connections.directory_provisioning.delete(id: "id")
|
|
162
|
+
#
|
|
142
163
|
# @return [untyped]
|
|
143
164
|
def delete(request_options: {}, **params)
|
|
144
165
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -171,14 +192,23 @@ module Auth0
|
|
|
171
192
|
# @option request_options [Integer] :timeout_in_seconds
|
|
172
193
|
# @option params [String] :id
|
|
173
194
|
#
|
|
195
|
+
# @example
|
|
196
|
+
# client.connections.directory_provisioning.update(
|
|
197
|
+
# id: "id",
|
|
198
|
+
# request: {}
|
|
199
|
+
# )
|
|
200
|
+
#
|
|
174
201
|
# @return [Auth0::Types::UpdateDirectoryProvisioningResponseContent]
|
|
175
202
|
def update(request_options: {}, **params)
|
|
176
203
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
204
|
+
path_param_names = %i[id]
|
|
205
|
+
body_params = params.except(*path_param_names)
|
|
206
|
+
|
|
177
207
|
request = Auth0::Internal::JSON::Request.new(
|
|
178
208
|
base_url: request_options[:base_url],
|
|
179
209
|
method: "PATCH",
|
|
180
210
|
path: "connections/#{URI.encode_uri_component(params[:id].to_s)}/directory-provisioning",
|
|
181
|
-
body:
|
|
211
|
+
body: body_params,
|
|
182
212
|
request_options: request_options
|
|
183
213
|
)
|
|
184
214
|
begin
|
|
@@ -188,7 +218,7 @@ module Auth0
|
|
|
188
218
|
end
|
|
189
219
|
code = response.code.to_i
|
|
190
220
|
if code.between?(200, 299)
|
|
191
|
-
Auth0::Types::UpdateDirectoryProvisioningResponseContent.load(response.body)
|
|
221
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateDirectoryProvisioningResponseContent.load(response.body))
|
|
192
222
|
else
|
|
193
223
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
194
224
|
raise error_class.new(response.body, code: code)
|
|
@@ -206,6 +236,9 @@ module Auth0
|
|
|
206
236
|
# @option request_options [Integer] :timeout_in_seconds
|
|
207
237
|
# @option params [String] :id
|
|
208
238
|
#
|
|
239
|
+
# @example
|
|
240
|
+
# client.connections.directory_provisioning.get_default_mapping(id: "id")
|
|
241
|
+
#
|
|
209
242
|
# @return [Auth0::Types::GetDirectoryProvisioningDefaultMappingResponseContent]
|
|
210
243
|
def get_default_mapping(request_options: {}, **params)
|
|
211
244
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -222,7 +255,7 @@ module Auth0
|
|
|
222
255
|
end
|
|
223
256
|
code = response.code.to_i
|
|
224
257
|
if code.between?(200, 299)
|
|
225
|
-
Auth0::Types::GetDirectoryProvisioningDefaultMappingResponseContent.load(response.body)
|
|
258
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetDirectoryProvisioningDefaultMappingResponseContent.load(response.body))
|
|
226
259
|
else
|
|
227
260
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
228
261
|
raise error_class.new(response.body, code: code)
|
|
@@ -243,6 +276,14 @@ module Auth0
|
|
|
243
276
|
# @option params [Integer, nil] :take
|
|
244
277
|
# @option params [String, nil] :q
|
|
245
278
|
#
|
|
279
|
+
# @example
|
|
280
|
+
# client.connections.directory_provisioning.list_synchronized_groups(
|
|
281
|
+
# id: "id",
|
|
282
|
+
# from: "from",
|
|
283
|
+
# take: 1,
|
|
284
|
+
# q: "q"
|
|
285
|
+
# )
|
|
286
|
+
#
|
|
246
287
|
# @return [Auth0::Types::ListSynchronizedGroupsResponseContent]
|
|
247
288
|
def list_synchronized_groups(request_options: {}, **params)
|
|
248
289
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -271,7 +312,7 @@ module Auth0
|
|
|
271
312
|
end
|
|
272
313
|
code = response.code.to_i
|
|
273
314
|
if code.between?(200, 299)
|
|
274
|
-
parsed_response = Auth0::Types::ListSynchronizedGroupsResponseContent.load(response.body)
|
|
315
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListSynchronizedGroupsResponseContent.load(response.body))
|
|
275
316
|
[parsed_response, response]
|
|
276
317
|
else
|
|
277
318
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -291,6 +332,14 @@ module Auth0
|
|
|
291
332
|
# @option request_options [Integer] :timeout_in_seconds
|
|
292
333
|
# @option params [String] :id
|
|
293
334
|
#
|
|
335
|
+
# @example
|
|
336
|
+
# client.connections.directory_provisioning.add_synchronized_group_selections(
|
|
337
|
+
# id: "id",
|
|
338
|
+
# groups: [{
|
|
339
|
+
# id: "id"
|
|
340
|
+
# }]
|
|
341
|
+
# )
|
|
342
|
+
#
|
|
294
343
|
# @return [untyped]
|
|
295
344
|
def add_synchronized_group_selections(request_options: {}, **params)
|
|
296
345
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -328,6 +377,14 @@ module Auth0
|
|
|
328
377
|
# @option request_options [Integer] :timeout_in_seconds
|
|
329
378
|
# @option params [String] :id
|
|
330
379
|
#
|
|
380
|
+
# @example
|
|
381
|
+
# client.connections.directory_provisioning.set(
|
|
382
|
+
# id: "id",
|
|
383
|
+
# groups: [{
|
|
384
|
+
# id: "id"
|
|
385
|
+
# }]
|
|
386
|
+
# )
|
|
387
|
+
#
|
|
331
388
|
# @return [untyped]
|
|
332
389
|
def set(request_options: {}, **params)
|
|
333
390
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -365,6 +422,14 @@ module Auth0
|
|
|
365
422
|
# @option request_options [Integer] :timeout_in_seconds
|
|
366
423
|
# @option params [String] :id
|
|
367
424
|
#
|
|
425
|
+
# @example
|
|
426
|
+
# client.connections.directory_provisioning.delete_synchronized_group_selections(
|
|
427
|
+
# id: "id",
|
|
428
|
+
# groups: [{
|
|
429
|
+
# id: "id"
|
|
430
|
+
# }]
|
|
431
|
+
# )
|
|
432
|
+
#
|
|
368
433
|
# @return [untyped]
|
|
369
434
|
def delete_synchronized_group_selections(request_options: {}, **params)
|
|
370
435
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -23,6 +23,9 @@ module Auth0
|
|
|
23
23
|
# @option request_options [Integer] :timeout_in_seconds
|
|
24
24
|
# @option params [String] :id
|
|
25
25
|
#
|
|
26
|
+
# @example
|
|
27
|
+
# client.connections.directory_provisioning.synchronizations.create(id: "id")
|
|
28
|
+
#
|
|
26
29
|
# @return [Auth0::Types::CreateDirectorySynchronizationResponseContent]
|
|
27
30
|
def create(request_options: {}, **params)
|
|
28
31
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -39,7 +42,7 @@ module Auth0
|
|
|
39
42
|
end
|
|
40
43
|
code = response.code.to_i
|
|
41
44
|
if code.between?(200, 299)
|
|
42
|
-
Auth0::Types::CreateDirectorySynchronizationResponseContent.load(response.body)
|
|
45
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateDirectorySynchronizationResponseContent.load(response.body))
|
|
43
46
|
else
|
|
44
47
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
45
48
|
raise error_class.new(response.body, code: code)
|