| 1 | package WebService::Auth0::Management::Connections; | ||
| 2 | |||
| 3 | use Moo; | ||
| 4 | extends 'WebService::Auth0::Management::Base'; | ||
| 5 | with 'WebService::Auth0::Management::Role::Search', | ||
| 6 | 'WebService::Auth0::Management::Role::Create', | ||
| 7 | 'WebService::Auth0::Management::Role::Update', | ||
| 8 | 'WebService::Auth0::Management::Role::Delete', | ||
| 9 | 'WebService::Auth0::Management::Role::Get'; | ||
| 10 | |||
| 11 | sub path_suffix { 'connections' } | ||
| 12 | |||
| 13 | sub delete_users_by_email { | ||
| 14 | my ($self, $conn_id, $email) = @_; | ||
| 15 | return $self->DELETE($self->uri_for($conn_id, 'users', +{email=>$email})); | ||
| 16 | } | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | WebService::Auth0::Management::Connections - Users management API | ||
| 21 | |||
| 22 | =head1 SYNOPSIS | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | =head1 METHODS | ||
| 27 | |||
| 28 | This class defines the following methods: | ||
| 29 | |||
| 30 | =head2 search (\%params) | ||
| 31 | |||
| 32 | L<https://auth0.com/docs/api/management/v2#!/Connections/get_connections> | ||
| 33 | |||
| 34 | =head2 create (\%params) | ||
| 35 | |||
| 36 | L<https://auth0.com/docs/api/management/v2#!/Clients/post_clients> | ||
| 37 | |||
| 38 | =head2 get ($id) | ||
| 39 | |||
| 40 | L<https://auth0.com/docs/api/management/v2#!/Connections/get_connections_by_id> | ||
| 41 | |||
| 42 | =head2 delete ($conn_id) | ||
| 43 | |||
| 44 | L<https://auth0.com/docs/api/management/v2#!/Connections/delete_connections_by_id> | ||
| 45 | |||
| 46 | =head2 update ($conn_id, \%params) | ||
| 47 | |||
| 48 | L<https://auth0.com/docs/api/management/v2#!/Connections/delete_connections_by_id> | ||
| 49 | |||
| 50 | =head2 delete_users_by_email ($conn_id, $email) | ||
| 51 | |||
| 52 | L<https://auth0.com/docs/api/management/v2#!/Connections/delete_users_by_email> | ||
| 53 | |||
| 54 | =head1 SEE ALSO | ||
| 55 | |||
| 56 | L<WebService::Auth0>, L<https://auth0.com>. | ||
| 57 | |||
| 58 | =head1 AUTHOR | ||
| 59 | |||
| 60 | See L<WebService::Auth0> | ||
| 61 | |||
| 62 | =head1 COPYRIGHT & LICENSE | ||
| 63 | |||
| 64 | See L<WebService::Auth0> | ||
| 65 | |||
| 66 | =cut | ||
| 67 | |||
| 68 | 1; |