| 1 | package WebService::Auth0::Management::ClientGrants; | ||
| 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 | |||
| 10 | sub path_suffix { 'client-grants' } | ||
| 11 | |||
| 12 | sub all { return shift->search(+{}) } | ||
| 13 | |||
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | WebService::Auth0::Management::Users - Users management API | ||
| 17 | |||
| 18 | =head1 SYNOPSIS | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | =head1 METHODS | ||
| 23 | |||
| 24 | This class defines the following methods: | ||
| 25 | |||
| 26 | =head2 search (\%params) | ||
| 27 | |||
| 28 | L<https://auth0.com/docs/api/management/v2#!/Client_Grants/get_client_grants> | ||
| 29 | |||
| 30 | Either get all the client grants, or search for client grants filterd by | ||
| 31 | audience. | ||
| 32 | |||
| 33 | =head2 all | ||
| 34 | |||
| 35 | Gets all the client grants. Is basically a shortcut for '->search(+{})'. See | ||
| 36 | L<https://auth0.com/docs/api/management/v2#!/Client_Grants/get_client_grants> for | ||
| 37 | more. | ||
| 38 | |||
| 39 | =head2 create (\%params) | ||
| 40 | |||
| 41 | L<https://auth0.com/docs/api/management/v2#!/Client_Grants/post_client_grants> | ||
| 42 | |||
| 43 | =head2 delete ($client_grant_id) | ||
| 44 | |||
| 45 | L<https://auth0.com/docs/api/management/v2#!/Client_Grants/delete_client_grants_by_id> | ||
| 46 | |||
| 47 | =head2 update ($client_grant_id, \%params) | ||
| 48 | |||
| 49 | L<https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id> | ||
| 50 | |||
| 51 | =head1 SEE ALSO | ||
| 52 | |||
| 53 | L<WebService::Auth0>, L<https://auth0.com>. | ||
| 54 | |||
| 55 | =head1 AUTHOR | ||
| 56 | |||
| 57 | See L<WebService::Auth0> | ||
| 58 | |||
| 59 | =head1 COPYRIGHT & LICENSE | ||
| 60 | |||
| 61 | See L<WebService::Auth0> | ||
| 62 | |||
| 63 | =cut | ||
| 64 | |||
| 65 | 1; |