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
|
@@ -24,6 +24,15 @@ module Auth0
|
|
|
24
24
|
# @option params [Boolean, nil] :include_totals
|
|
25
25
|
# @option params [Boolean, nil] :is_enabled
|
|
26
26
|
#
|
|
27
|
+
# @example
|
|
28
|
+
# client.organizations.connections.list(
|
|
29
|
+
# id: "id",
|
|
30
|
+
# page: 1,
|
|
31
|
+
# per_page: 1,
|
|
32
|
+
# include_totals: true,
|
|
33
|
+
# is_enabled: true
|
|
34
|
+
# )
|
|
35
|
+
#
|
|
27
36
|
# @return [Auth0::Types::ListOrganizationAllConnectionsOffsetPaginatedResponseContent]
|
|
28
37
|
def list(request_options: {}, **params)
|
|
29
38
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -54,7 +63,7 @@ module Auth0
|
|
|
54
63
|
end
|
|
55
64
|
code = response.code.to_i
|
|
56
65
|
if code.between?(200, 299)
|
|
57
|
-
parsed_response = Auth0::Types::ListOrganizationAllConnectionsOffsetPaginatedResponseContent.load(response.body)
|
|
66
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationAllConnectionsOffsetPaginatedResponseContent.load(response.body))
|
|
58
67
|
[parsed_response, response]
|
|
59
68
|
else
|
|
60
69
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -72,6 +81,12 @@ module Auth0
|
|
|
72
81
|
# @option request_options [Integer] :timeout_in_seconds
|
|
73
82
|
# @option params [String] :id
|
|
74
83
|
#
|
|
84
|
+
# @example
|
|
85
|
+
# client.organizations.connections.create(
|
|
86
|
+
# id: "id",
|
|
87
|
+
# connection_id: "connection_id"
|
|
88
|
+
# )
|
|
89
|
+
#
|
|
75
90
|
# @return [Auth0::Types::CreateOrganizationAllConnectionResponseContent]
|
|
76
91
|
def create(request_options: {}, **params)
|
|
77
92
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -93,7 +108,7 @@ module Auth0
|
|
|
93
108
|
end
|
|
94
109
|
code = response.code.to_i
|
|
95
110
|
if code.between?(200, 299)
|
|
96
|
-
Auth0::Types::CreateOrganizationAllConnectionResponseContent.load(response.body)
|
|
111
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateOrganizationAllConnectionResponseContent.load(response.body))
|
|
97
112
|
else
|
|
98
113
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
99
114
|
raise error_class.new(response.body, code: code)
|
|
@@ -110,6 +125,12 @@ module Auth0
|
|
|
110
125
|
# @option params [String] :id
|
|
111
126
|
# @option params [String] :connection_id
|
|
112
127
|
#
|
|
128
|
+
# @example
|
|
129
|
+
# client.organizations.connections.get(
|
|
130
|
+
# id: "id",
|
|
131
|
+
# connection_id: "connection_id"
|
|
132
|
+
# )
|
|
133
|
+
#
|
|
113
134
|
# @return [Auth0::Types::GetOrganizationAllConnectionResponseContent]
|
|
114
135
|
def get(request_options: {}, **params)
|
|
115
136
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -126,7 +147,7 @@ module Auth0
|
|
|
126
147
|
end
|
|
127
148
|
code = response.code.to_i
|
|
128
149
|
if code.between?(200, 299)
|
|
129
|
-
Auth0::Types::GetOrganizationAllConnectionResponseContent.load(response.body)
|
|
150
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetOrganizationAllConnectionResponseContent.load(response.body))
|
|
130
151
|
else
|
|
131
152
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
132
153
|
raise error_class.new(response.body, code: code)
|
|
@@ -143,6 +164,12 @@ module Auth0
|
|
|
143
164
|
# @option params [String] :id
|
|
144
165
|
# @option params [String] :connection_id
|
|
145
166
|
#
|
|
167
|
+
# @example
|
|
168
|
+
# client.organizations.connections.delete(
|
|
169
|
+
# id: "id",
|
|
170
|
+
# connection_id: "connection_id"
|
|
171
|
+
# )
|
|
172
|
+
#
|
|
146
173
|
# @return [untyped]
|
|
147
174
|
def delete(request_options: {}, **params)
|
|
148
175
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -174,6 +201,12 @@ module Auth0
|
|
|
174
201
|
# @option params [String] :id
|
|
175
202
|
# @option params [String] :connection_id
|
|
176
203
|
#
|
|
204
|
+
# @example
|
|
205
|
+
# client.organizations.connections.update(
|
|
206
|
+
# id: "id",
|
|
207
|
+
# connection_id: "connection_id"
|
|
208
|
+
# )
|
|
209
|
+
#
|
|
177
210
|
# @return [Auth0::Types::UpdateOrganizationAllConnectionResponseContent]
|
|
178
211
|
def update(request_options: {}, **params)
|
|
179
212
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -195,7 +228,7 @@ module Auth0
|
|
|
195
228
|
end
|
|
196
229
|
code = response.code.to_i
|
|
197
230
|
if code.between?(200, 299)
|
|
198
|
-
Auth0::Types::UpdateOrganizationAllConnectionResponseContent.load(response.body)
|
|
231
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateOrganizationAllConnectionResponseContent.load(response.body))
|
|
199
232
|
else
|
|
200
233
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
201
234
|
raise error_class.new(response.body, code: code)
|
|
@@ -17,6 +17,8 @@ module Auth0
|
|
|
17
17
|
|
|
18
18
|
field :organization_access_level, -> { Auth0::Types::OrganizationAccessLevelEnum }, optional: true, nullable: false
|
|
19
19
|
|
|
20
|
+
field :organization_member_access_level, -> { Auth0::Types::OrganizationMemberAccessLevelEnum }, optional: true, nullable: false
|
|
21
|
+
|
|
20
22
|
field :is_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
21
23
|
|
|
22
24
|
field :connection_id, -> { String }, optional: false, nullable: false
|
data/lib/auth0/organizations/connections/types/update_organization_connection_request_parameters.rb
CHANGED
|
@@ -19,6 +19,8 @@ module Auth0
|
|
|
19
19
|
|
|
20
20
|
field :organization_access_level, -> { Auth0::Types::OrganizationAccessLevelEnumWithNull }, optional: true, nullable: false
|
|
21
21
|
|
|
22
|
+
field :organization_member_access_level, -> { Auth0::Types::OrganizationMemberAccessLevelEnumWithNull }, optional: true, nullable: false
|
|
23
|
+
|
|
22
24
|
field :is_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
23
25
|
end
|
|
24
26
|
end
|
|
@@ -26,6 +26,13 @@ module Auth0
|
|
|
26
26
|
# @option params [String, nil] :from
|
|
27
27
|
# @option params [Integer, nil] :take
|
|
28
28
|
#
|
|
29
|
+
# @example
|
|
30
|
+
# client.organizations.discovery_domains.list(
|
|
31
|
+
# id: "id",
|
|
32
|
+
# from: "from",
|
|
33
|
+
# take: 1
|
|
34
|
+
# )
|
|
35
|
+
#
|
|
29
36
|
# @return [Auth0::Types::ListOrganizationDiscoveryDomainsResponseContent]
|
|
30
37
|
def list(request_options: {}, **params)
|
|
31
38
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -53,7 +60,7 @@ module Auth0
|
|
|
53
60
|
end
|
|
54
61
|
code = response.code.to_i
|
|
55
62
|
if code.between?(200, 299)
|
|
56
|
-
parsed_response = Auth0::Types::ListOrganizationDiscoveryDomainsResponseContent.load(response.body)
|
|
63
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationDiscoveryDomainsResponseContent.load(response.body))
|
|
57
64
|
[parsed_response, response]
|
|
58
65
|
else
|
|
59
66
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -73,6 +80,12 @@ module Auth0
|
|
|
73
80
|
# @option request_options [Integer] :timeout_in_seconds
|
|
74
81
|
# @option params [String] :id
|
|
75
82
|
#
|
|
83
|
+
# @example
|
|
84
|
+
# client.organizations.discovery_domains.create(
|
|
85
|
+
# id: "id",
|
|
86
|
+
# domain: "domain"
|
|
87
|
+
# )
|
|
88
|
+
#
|
|
76
89
|
# @return [Auth0::Types::CreateOrganizationDiscoveryDomainResponseContent]
|
|
77
90
|
def create(request_options: {}, **params)
|
|
78
91
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -94,7 +107,7 @@ module Auth0
|
|
|
94
107
|
end
|
|
95
108
|
code = response.code.to_i
|
|
96
109
|
if code.between?(200, 299)
|
|
97
|
-
Auth0::Types::CreateOrganizationDiscoveryDomainResponseContent.load(response.body)
|
|
110
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateOrganizationDiscoveryDomainResponseContent.load(response.body))
|
|
98
111
|
else
|
|
99
112
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
100
113
|
raise error_class.new(response.body, code: code)
|
|
@@ -115,6 +128,12 @@ module Auth0
|
|
|
115
128
|
# @option params [String] :id
|
|
116
129
|
# @option params [String] :discovery_domain
|
|
117
130
|
#
|
|
131
|
+
# @example
|
|
132
|
+
# client.organizations.discovery_domains.get_by_name(
|
|
133
|
+
# id: "id",
|
|
134
|
+
# discovery_domain: "discovery_domain"
|
|
135
|
+
# )
|
|
136
|
+
#
|
|
118
137
|
# @return [Auth0::Types::GetOrganizationDiscoveryDomainByNameResponseContent]
|
|
119
138
|
def get_by_name(request_options: {}, **params)
|
|
120
139
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -131,7 +150,7 @@ module Auth0
|
|
|
131
150
|
end
|
|
132
151
|
code = response.code.to_i
|
|
133
152
|
if code.between?(200, 299)
|
|
134
|
-
Auth0::Types::GetOrganizationDiscoveryDomainByNameResponseContent.load(response.body)
|
|
153
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetOrganizationDiscoveryDomainByNameResponseContent.load(response.body))
|
|
135
154
|
else
|
|
136
155
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
137
156
|
raise error_class.new(response.body, code: code)
|
|
@@ -152,6 +171,12 @@ module Auth0
|
|
|
152
171
|
# @option params [String] :id
|
|
153
172
|
# @option params [String] :discovery_domain_id
|
|
154
173
|
#
|
|
174
|
+
# @example
|
|
175
|
+
# client.organizations.discovery_domains.get(
|
|
176
|
+
# id: "id",
|
|
177
|
+
# discovery_domain_id: "discovery_domain_id"
|
|
178
|
+
# )
|
|
179
|
+
#
|
|
155
180
|
# @return [Auth0::Types::GetOrganizationDiscoveryDomainResponseContent]
|
|
156
181
|
def get(request_options: {}, **params)
|
|
157
182
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -168,7 +193,7 @@ module Auth0
|
|
|
168
193
|
end
|
|
169
194
|
code = response.code.to_i
|
|
170
195
|
if code.between?(200, 299)
|
|
171
|
-
Auth0::Types::GetOrganizationDiscoveryDomainResponseContent.load(response.body)
|
|
196
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetOrganizationDiscoveryDomainResponseContent.load(response.body))
|
|
172
197
|
else
|
|
173
198
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
174
199
|
raise error_class.new(response.body, code: code)
|
|
@@ -187,6 +212,12 @@ module Auth0
|
|
|
187
212
|
# @option params [String] :id
|
|
188
213
|
# @option params [String] :discovery_domain_id
|
|
189
214
|
#
|
|
215
|
+
# @example
|
|
216
|
+
# client.organizations.discovery_domains.delete(
|
|
217
|
+
# id: "id",
|
|
218
|
+
# discovery_domain_id: "discovery_domain_id"
|
|
219
|
+
# )
|
|
220
|
+
#
|
|
190
221
|
# @return [untyped]
|
|
191
222
|
def delete(request_options: {}, **params)
|
|
192
223
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -222,6 +253,12 @@ module Auth0
|
|
|
222
253
|
# @option params [String] :id
|
|
223
254
|
# @option params [String] :discovery_domain_id
|
|
224
255
|
#
|
|
256
|
+
# @example
|
|
257
|
+
# client.organizations.discovery_domains.update(
|
|
258
|
+
# id: "id",
|
|
259
|
+
# discovery_domain_id: "discovery_domain_id"
|
|
260
|
+
# )
|
|
261
|
+
#
|
|
225
262
|
# @return [Auth0::Types::UpdateOrganizationDiscoveryDomainResponseContent]
|
|
226
263
|
def update(request_options: {}, **params)
|
|
227
264
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -243,7 +280,7 @@ module Auth0
|
|
|
243
280
|
end
|
|
244
281
|
code = response.code.to_i
|
|
245
282
|
if code.between?(200, 299)
|
|
246
|
-
Auth0::Types::UpdateOrganizationDiscoveryDomainResponseContent.load(response.body)
|
|
283
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateOrganizationDiscoveryDomainResponseContent.load(response.body))
|
|
247
284
|
else
|
|
248
285
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
249
286
|
raise error_class.new(response.body, code: code)
|
|
@@ -27,6 +27,14 @@ module Auth0
|
|
|
27
27
|
# @option params [Integer, nil] :per_page
|
|
28
28
|
# @option params [Boolean, nil] :include_totals
|
|
29
29
|
#
|
|
30
|
+
# @example
|
|
31
|
+
# client.organizations.enabled_connections.list(
|
|
32
|
+
# id: "id",
|
|
33
|
+
# page: 1,
|
|
34
|
+
# per_page: 1,
|
|
35
|
+
# include_totals: true
|
|
36
|
+
# )
|
|
37
|
+
#
|
|
30
38
|
# @return [Auth0::Types::ListOrganizationConnectionsOffsetPaginatedResponseContent]
|
|
31
39
|
def list(request_options: {}, **params)
|
|
32
40
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -56,7 +64,7 @@ module Auth0
|
|
|
56
64
|
end
|
|
57
65
|
code = response.code.to_i
|
|
58
66
|
if code.between?(200, 299)
|
|
59
|
-
parsed_response = Auth0::Types::ListOrganizationConnectionsOffsetPaginatedResponseContent.load(response.body)
|
|
67
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationConnectionsOffsetPaginatedResponseContent.load(response.body))
|
|
60
68
|
[parsed_response, response]
|
|
61
69
|
else
|
|
62
70
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -80,6 +88,12 @@ module Auth0
|
|
|
80
88
|
# @option request_options [Integer] :timeout_in_seconds
|
|
81
89
|
# @option params [String] :id
|
|
82
90
|
#
|
|
91
|
+
# @example
|
|
92
|
+
# client.organizations.enabled_connections.add(
|
|
93
|
+
# id: "id",
|
|
94
|
+
# connection_id: "connection_id"
|
|
95
|
+
# )
|
|
96
|
+
#
|
|
83
97
|
# @return [Auth0::Types::AddOrganizationConnectionResponseContent]
|
|
84
98
|
def add(request_options: {}, **params)
|
|
85
99
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -101,7 +115,7 @@ module Auth0
|
|
|
101
115
|
end
|
|
102
116
|
code = response.code.to_i
|
|
103
117
|
if code.between?(200, 299)
|
|
104
|
-
Auth0::Types::AddOrganizationConnectionResponseContent.load(response.body)
|
|
118
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::AddOrganizationConnectionResponseContent.load(response.body))
|
|
105
119
|
else
|
|
106
120
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
107
121
|
raise error_class.new(response.body, code: code)
|
|
@@ -122,6 +136,12 @@ module Auth0
|
|
|
122
136
|
# @option params [String] :id
|
|
123
137
|
# @option params [String] :connection_id
|
|
124
138
|
#
|
|
139
|
+
# @example
|
|
140
|
+
# client.organizations.enabled_connections.get(
|
|
141
|
+
# id: "id",
|
|
142
|
+
# connection_id: "connectionId"
|
|
143
|
+
# )
|
|
144
|
+
#
|
|
125
145
|
# @return [Auth0::Types::GetOrganizationConnectionResponseContent]
|
|
126
146
|
def get(request_options: {}, **params)
|
|
127
147
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -138,7 +158,7 @@ module Auth0
|
|
|
138
158
|
end
|
|
139
159
|
code = response.code.to_i
|
|
140
160
|
if code.between?(200, 299)
|
|
141
|
-
Auth0::Types::GetOrganizationConnectionResponseContent.load(response.body)
|
|
161
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetOrganizationConnectionResponseContent.load(response.body))
|
|
142
162
|
else
|
|
143
163
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
144
164
|
raise error_class.new(response.body, code: code)
|
|
@@ -160,6 +180,12 @@ module Auth0
|
|
|
160
180
|
# @option params [String] :id
|
|
161
181
|
# @option params [String] :connection_id
|
|
162
182
|
#
|
|
183
|
+
# @example
|
|
184
|
+
# client.organizations.enabled_connections.delete(
|
|
185
|
+
# id: "id",
|
|
186
|
+
# connection_id: "connectionId"
|
|
187
|
+
# )
|
|
188
|
+
#
|
|
163
189
|
# @return [untyped]
|
|
164
190
|
def delete(request_options: {}, **params)
|
|
165
191
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -193,6 +219,12 @@ module Auth0
|
|
|
193
219
|
# @option params [String] :id
|
|
194
220
|
# @option params [String] :connection_id
|
|
195
221
|
#
|
|
222
|
+
# @example
|
|
223
|
+
# client.organizations.enabled_connections.update(
|
|
224
|
+
# id: "id",
|
|
225
|
+
# connection_id: "connectionId"
|
|
226
|
+
# )
|
|
227
|
+
#
|
|
196
228
|
# @return [Auth0::Types::UpdateOrganizationConnectionResponseContent]
|
|
197
229
|
def update(request_options: {}, **params)
|
|
198
230
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -214,7 +246,7 @@ module Auth0
|
|
|
214
246
|
end
|
|
215
247
|
code = response.code.to_i
|
|
216
248
|
if code.between?(200, 299)
|
|
217
|
-
Auth0::Types::UpdateOrganizationConnectionResponseContent.load(response.body)
|
|
249
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::UpdateOrganizationConnectionResponseContent.load(response.body))
|
|
218
250
|
else
|
|
219
251
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
220
252
|
raise error_class.new(response.body, code: code)
|
|
@@ -24,6 +24,13 @@ module Auth0
|
|
|
24
24
|
# @option params [String, nil] :from
|
|
25
25
|
# @option params [Integer, nil] :take
|
|
26
26
|
#
|
|
27
|
+
# @example
|
|
28
|
+
# client.organizations.groups.list(
|
|
29
|
+
# organization_id: "organization_id",
|
|
30
|
+
# from: "from",
|
|
31
|
+
# take: 1
|
|
32
|
+
# )
|
|
33
|
+
#
|
|
27
34
|
# @return [Auth0::Types::ListOrganizationGroupsResponseContent]
|
|
28
35
|
def list(request_options: {}, **params)
|
|
29
36
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -51,7 +58,7 @@ module Auth0
|
|
|
51
58
|
end
|
|
52
59
|
code = response.code.to_i
|
|
53
60
|
if code.between?(200, 299)
|
|
54
|
-
parsed_response = Auth0::Types::ListOrganizationGroupsResponseContent.load(response.body)
|
|
61
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationGroupsResponseContent.load(response.body))
|
|
55
62
|
[parsed_response, response]
|
|
56
63
|
else
|
|
57
64
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -26,6 +26,14 @@ module Auth0
|
|
|
26
26
|
# @option params [String, nil] :from
|
|
27
27
|
# @option params [Integer, nil] :take
|
|
28
28
|
#
|
|
29
|
+
# @example
|
|
30
|
+
# client.organizations.groups.roles.list(
|
|
31
|
+
# organization_id: "organization_id",
|
|
32
|
+
# group_id: "group_id",
|
|
33
|
+
# from: "from",
|
|
34
|
+
# take: 1
|
|
35
|
+
# )
|
|
36
|
+
#
|
|
29
37
|
# @return [Auth0::Types::ListOrganizationGroupRolesResponseContent]
|
|
30
38
|
def list(request_options: {}, **params)
|
|
31
39
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -53,7 +61,7 @@ module Auth0
|
|
|
53
61
|
end
|
|
54
62
|
code = response.code.to_i
|
|
55
63
|
if code.between?(200, 299)
|
|
56
|
-
parsed_response = Auth0::Types::ListOrganizationGroupRolesResponseContent.load(response.body)
|
|
64
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationGroupRolesResponseContent.load(response.body))
|
|
57
65
|
[parsed_response, response]
|
|
58
66
|
else
|
|
59
67
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -74,6 +82,13 @@ module Auth0
|
|
|
74
82
|
# @option params [String] :organization_id
|
|
75
83
|
# @option params [String] :group_id
|
|
76
84
|
#
|
|
85
|
+
# @example
|
|
86
|
+
# client.organizations.groups.roles.create(
|
|
87
|
+
# organization_id: "organization_id",
|
|
88
|
+
# group_id: "group_id",
|
|
89
|
+
# roles: ["roles"]
|
|
90
|
+
# )
|
|
91
|
+
#
|
|
77
92
|
# @return [untyped]
|
|
78
93
|
def create(request_options: {}, **params)
|
|
79
94
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -112,6 +127,13 @@ module Auth0
|
|
|
112
127
|
# @option params [String] :organization_id
|
|
113
128
|
# @option params [String] :group_id
|
|
114
129
|
#
|
|
130
|
+
# @example
|
|
131
|
+
# client.organizations.groups.roles.delete(
|
|
132
|
+
# organization_id: "organization_id",
|
|
133
|
+
# group_id: "group_id",
|
|
134
|
+
# roles: ["roles"]
|
|
135
|
+
# )
|
|
136
|
+
#
|
|
115
137
|
# @return [untyped]
|
|
116
138
|
def delete(request_options: {}, **params)
|
|
117
139
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -31,6 +31,17 @@ module Auth0
|
|
|
31
31
|
# @option params [Boolean, nil] :include_fields
|
|
32
32
|
# @option params [String, nil] :sort
|
|
33
33
|
#
|
|
34
|
+
# @example
|
|
35
|
+
# client.organizations.invitations.list(
|
|
36
|
+
# id: "id",
|
|
37
|
+
# page: 1,
|
|
38
|
+
# per_page: 1,
|
|
39
|
+
# include_totals: true,
|
|
40
|
+
# fields: "fields",
|
|
41
|
+
# include_fields: true,
|
|
42
|
+
# sort: "sort"
|
|
43
|
+
# )
|
|
44
|
+
#
|
|
34
45
|
# @return [Auth0::Types::ListOrganizationInvitationsOffsetPaginatedResponseContent]
|
|
35
46
|
def list(request_options: {}, **params)
|
|
36
47
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -63,7 +74,7 @@ module Auth0
|
|
|
63
74
|
end
|
|
64
75
|
code = response.code.to_i
|
|
65
76
|
if code.between?(200, 299)
|
|
66
|
-
parsed_response = Auth0::Types::ListOrganizationInvitationsOffsetPaginatedResponseContent.load(response.body)
|
|
77
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationInvitationsOffsetPaginatedResponseContent.load(response.body))
|
|
67
78
|
[parsed_response, response]
|
|
68
79
|
else
|
|
69
80
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -86,6 +97,18 @@ module Auth0
|
|
|
86
97
|
# @option request_options [Integer] :timeout_in_seconds
|
|
87
98
|
# @option params [String] :id
|
|
88
99
|
#
|
|
100
|
+
# @example
|
|
101
|
+
# client.organizations.invitations.create(
|
|
102
|
+
# id: "id",
|
|
103
|
+
# inviter: {
|
|
104
|
+
# name: "name"
|
|
105
|
+
# },
|
|
106
|
+
# invitee: {
|
|
107
|
+
# email: "email"
|
|
108
|
+
# },
|
|
109
|
+
# client_id: "client_id"
|
|
110
|
+
# )
|
|
111
|
+
#
|
|
89
112
|
# @return [Auth0::Types::CreateOrganizationInvitationResponseContent]
|
|
90
113
|
def create(request_options: {}, **params)
|
|
91
114
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -107,7 +130,7 @@ module Auth0
|
|
|
107
130
|
end
|
|
108
131
|
code = response.code.to_i
|
|
109
132
|
if code.between?(200, 299)
|
|
110
|
-
Auth0::Types::CreateOrganizationInvitationResponseContent.load(response.body)
|
|
133
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::CreateOrganizationInvitationResponseContent.load(response.body))
|
|
111
134
|
else
|
|
112
135
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
113
136
|
raise error_class.new(response.body, code: code)
|
|
@@ -126,6 +149,14 @@ module Auth0
|
|
|
126
149
|
# @option params [String, nil] :fields
|
|
127
150
|
# @option params [Boolean, nil] :include_fields
|
|
128
151
|
#
|
|
152
|
+
# @example
|
|
153
|
+
# client.organizations.invitations.get(
|
|
154
|
+
# id: "id",
|
|
155
|
+
# invitation_id: "invitation_id",
|
|
156
|
+
# fields: "fields",
|
|
157
|
+
# include_fields: true
|
|
158
|
+
# )
|
|
159
|
+
#
|
|
129
160
|
# @return [Auth0::Types::GetOrganizationInvitationResponseContent]
|
|
130
161
|
def get(request_options: {}, **params)
|
|
131
162
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -147,7 +178,7 @@ module Auth0
|
|
|
147
178
|
end
|
|
148
179
|
code = response.code.to_i
|
|
149
180
|
if code.between?(200, 299)
|
|
150
|
-
Auth0::Types::GetOrganizationInvitationResponseContent.load(response.body)
|
|
181
|
+
(response.body.to_s.empty? ? nil : Auth0::Types::GetOrganizationInvitationResponseContent.load(response.body))
|
|
151
182
|
else
|
|
152
183
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
153
184
|
raise error_class.new(response.body, code: code)
|
|
@@ -164,6 +195,12 @@ module Auth0
|
|
|
164
195
|
# @option params [String] :id
|
|
165
196
|
# @option params [String] :invitation_id
|
|
166
197
|
#
|
|
198
|
+
# @example
|
|
199
|
+
# client.organizations.invitations.delete(
|
|
200
|
+
# id: "id",
|
|
201
|
+
# invitation_id: "invitation_id"
|
|
202
|
+
# )
|
|
203
|
+
#
|
|
167
204
|
# @return [untyped]
|
|
168
205
|
def delete(request_options: {}, **params)
|
|
169
206
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -51,6 +51,16 @@ module Auth0
|
|
|
51
51
|
# @option params [String, nil] :fields
|
|
52
52
|
# @option params [Boolean, nil] :include_fields
|
|
53
53
|
#
|
|
54
|
+
# @example
|
|
55
|
+
# client.organizations.members.list(
|
|
56
|
+
# id: "id",
|
|
57
|
+
# include_totals: true,
|
|
58
|
+
# from: "from",
|
|
59
|
+
# take: 1,
|
|
60
|
+
# fields: "fields",
|
|
61
|
+
# include_fields: true
|
|
62
|
+
# )
|
|
63
|
+
#
|
|
54
64
|
# @return [Auth0::Types::ListOrganizationMembersPaginatedResponseContent]
|
|
55
65
|
def list(request_options: {}, **params)
|
|
56
66
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -81,7 +91,7 @@ module Auth0
|
|
|
81
91
|
end
|
|
82
92
|
code = response.code.to_i
|
|
83
93
|
if code.between?(200, 299)
|
|
84
|
-
parsed_response = Auth0::Types::ListOrganizationMembersPaginatedResponseContent.load(response.body)
|
|
94
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationMembersPaginatedResponseContent.load(response.body))
|
|
85
95
|
[parsed_response, response]
|
|
86
96
|
else
|
|
87
97
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -107,6 +117,12 @@ module Auth0
|
|
|
107
117
|
# @option request_options [Integer] :timeout_in_seconds
|
|
108
118
|
# @option params [String] :id
|
|
109
119
|
#
|
|
120
|
+
# @example
|
|
121
|
+
# client.organizations.members.create(
|
|
122
|
+
# id: "id",
|
|
123
|
+
# members: ["members"]
|
|
124
|
+
# )
|
|
125
|
+
#
|
|
110
126
|
# @return [untyped]
|
|
111
127
|
def create(request_options: {}, **params)
|
|
112
128
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -142,6 +158,12 @@ module Auth0
|
|
|
142
158
|
# @option request_options [Integer] :timeout_in_seconds
|
|
143
159
|
# @option params [String] :id
|
|
144
160
|
#
|
|
161
|
+
# @example
|
|
162
|
+
# client.organizations.members.delete(
|
|
163
|
+
# id: "id",
|
|
164
|
+
# members: ["members"]
|
|
165
|
+
# )
|
|
166
|
+
#
|
|
145
167
|
# @return [untyped]
|
|
146
168
|
def delete(request_options: {}, **params)
|
|
147
169
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -26,6 +26,14 @@ module Auth0
|
|
|
26
26
|
# @option params [String, nil] :from
|
|
27
27
|
# @option params [Integer, nil] :take
|
|
28
28
|
#
|
|
29
|
+
# @example
|
|
30
|
+
# client.organizations.members.effective_roles.list(
|
|
31
|
+
# id: "id",
|
|
32
|
+
# user_id: "user_id",
|
|
33
|
+
# from: "from",
|
|
34
|
+
# take: 1
|
|
35
|
+
# )
|
|
36
|
+
#
|
|
29
37
|
# @return [Auth0::Types::ListOrganizationMemberEffectiveRolesResponseContent]
|
|
30
38
|
def list(request_options: {}, **params)
|
|
31
39
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -53,7 +61,7 @@ module Auth0
|
|
|
53
61
|
end
|
|
54
62
|
code = response.code.to_i
|
|
55
63
|
if code.between?(200, 299)
|
|
56
|
-
parsed_response = Auth0::Types::ListOrganizationMemberEffectiveRolesResponseContent.load(response.body)
|
|
64
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationMemberEffectiveRolesResponseContent.load(response.body))
|
|
57
65
|
[parsed_response, response]
|
|
58
66
|
else
|
|
59
67
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -29,6 +29,15 @@ module Auth0
|
|
|
29
29
|
# @option params [Integer, nil] :take
|
|
30
30
|
# @option params [String] :role_id
|
|
31
31
|
#
|
|
32
|
+
# @example
|
|
33
|
+
# client.organizations.members.effective_roles.sources.groups.list(
|
|
34
|
+
# id: "id",
|
|
35
|
+
# user_id: "user_id",
|
|
36
|
+
# from: "from",
|
|
37
|
+
# take: 1,
|
|
38
|
+
# role_id: "role_id"
|
|
39
|
+
# )
|
|
40
|
+
#
|
|
32
41
|
# @return [Auth0::Types::ListOrganizationMemberRoleSourceGroupsResponseContent]
|
|
33
42
|
def list(request_options: {}, **params)
|
|
34
43
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -57,7 +66,7 @@ module Auth0
|
|
|
57
66
|
end
|
|
58
67
|
code = response.code.to_i
|
|
59
68
|
if code.between?(200, 299)
|
|
60
|
-
parsed_response = Auth0::Types::ListOrganizationMemberRoleSourceGroupsResponseContent.load(response.body)
|
|
69
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationMemberRoleSourceGroupsResponseContent.load(response.body))
|
|
61
70
|
[parsed_response, response]
|
|
62
71
|
else
|
|
63
72
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -34,6 +34,15 @@ module Auth0
|
|
|
34
34
|
# @option params [Integer, nil] :per_page
|
|
35
35
|
# @option params [Boolean, nil] :include_totals
|
|
36
36
|
#
|
|
37
|
+
# @example
|
|
38
|
+
# client.organizations.members.roles.list(
|
|
39
|
+
# id: "id",
|
|
40
|
+
# user_id: "user_id",
|
|
41
|
+
# page: 1,
|
|
42
|
+
# per_page: 1,
|
|
43
|
+
# include_totals: true
|
|
44
|
+
# )
|
|
45
|
+
#
|
|
37
46
|
# @return [Auth0::Types::ListOrganizationMemberRolesOffsetPaginatedResponseContent]
|
|
38
47
|
def list(request_options: {}, **params)
|
|
39
48
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -63,7 +72,7 @@ module Auth0
|
|
|
63
72
|
end
|
|
64
73
|
code = response.code.to_i
|
|
65
74
|
if code.between?(200, 299)
|
|
66
|
-
parsed_response = Auth0::Types::ListOrganizationMemberRolesOffsetPaginatedResponseContent.load(response.body)
|
|
75
|
+
parsed_response = (response.body.to_s.empty? ? nil : Auth0::Types::ListOrganizationMemberRolesOffsetPaginatedResponseContent.load(response.body))
|
|
67
76
|
[parsed_response, response]
|
|
68
77
|
else
|
|
69
78
|
error_class = Auth0::Errors::ResponseError.subclass_for_code(code)
|
|
@@ -89,6 +98,13 @@ module Auth0
|
|
|
89
98
|
# @option params [String] :id
|
|
90
99
|
# @option params [String] :user_id
|
|
91
100
|
#
|
|
101
|
+
# @example
|
|
102
|
+
# client.organizations.members.roles.assign(
|
|
103
|
+
# id: "id",
|
|
104
|
+
# user_id: "user_id",
|
|
105
|
+
# roles: ["roles"]
|
|
106
|
+
# )
|
|
107
|
+
#
|
|
92
108
|
# @return [untyped]
|
|
93
109
|
def assign(request_options: {}, **params)
|
|
94
110
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|
|
@@ -132,6 +148,13 @@ module Auth0
|
|
|
132
148
|
# @option params [String] :id
|
|
133
149
|
# @option params [String] :user_id
|
|
134
150
|
#
|
|
151
|
+
# @example
|
|
152
|
+
# client.organizations.members.roles.delete(
|
|
153
|
+
# id: "id",
|
|
154
|
+
# user_id: "user_id",
|
|
155
|
+
# roles: ["roles"]
|
|
156
|
+
# )
|
|
157
|
+
#
|
|
135
158
|
# @return [untyped]
|
|
136
159
|
def delete(request_options: {}, **params)
|
|
137
160
|
params = Auth0::Internal::Types::Utils.normalize_keys(params)
|