| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||
| 2 | package Twilio::Rest::Iam::V1; | ||||||||||
| 3 | |||||||||||
| 4 | 3 | ▶ | use 5.016; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 3 | ▶ | use parent 'Twilio::Version'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 3 | our $VERSION = '2.001'; | |||||||||
| 10 | |||||||||||
| 11 | 11 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 12 | 11 | my ($class, $domain) = @_; | |||||||||
| 13 | 11 | my $self = $class->SUPER::new($domain); | |||||||||
| 14 | 11 | $self->{version} = 'v1'; | |||||||||
| 15 | 11 | return $self; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client. | ||||||||||
| 19 | 3 | ▶ | sub api_key { | ||||||||
|
Subroutine
api_key: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 20 | 3 | my ($self, $sid) = @_; | |||||||||
| 21 | 3 | require Twilio::Rest::Iam::V1::ApiKey; | |||||||||
| 22 | 3 | my $list = Twilio::Rest::Iam::V1::ApiKeyList->new($self); | |||||||||
| 23 | 3 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 1 | ▶ | sub get_api_keys { | ||||||||
|
Subroutine
get_api_keys: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 27 | 1 | my ($self) = @_; | |||||||||
| 28 | 1 | require Twilio::Rest::Iam::V1::GetApiKeys; | |||||||||
| 29 | 1 | return Twilio::Rest::Iam::V1::GetApiKeysList->new($self); | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 1 | ▶ | sub new_api_key { | ||||||||
|
Subroutine
new_api_key: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 33 | 1 | my ($self) = @_; | |||||||||
| 34 | 1 | require Twilio::Rest::Iam::V1::NewApiKey; | |||||||||
| 35 | 1 | return Twilio::Rest::Iam::V1::NewApiKeyList->new($self); | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | 4 | ▶ | sub oauth_apps { | ||||||||
|
Subroutine
oauth_apps: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 39 | 4 | my ($self, $sid) = @_; | |||||||||
| 40 | 4 | require Twilio::Rest::Iam::V1::OAuthApp; | |||||||||
| 41 | 4 | my $list = Twilio::Rest::Iam::V1::OAuthAppList->new($self); | |||||||||
| 42 | 4 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | 1 | ▶ | sub role_permission { | ||||||||
|
Subroutine
role_permission: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 46 | 1 | my ($self, $role_sid) = @_; | |||||||||
| 47 | 1 | require Twilio::Rest::Iam::V1::RolePermission; | |||||||||
| 48 | 1 | return Twilio::Rest::Iam::V1::RolePermissionList->new($self, $role_sid); | |||||||||
| 49 | } | ||||||||||
| 50 | |||||||||||
| 51 | 1 | ▶ | sub token { | ||||||||
|
Subroutine
token: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 52 | 1 | my ($self) = @_; | |||||||||
| 53 | 1 | require Twilio::Rest::Iam::V1::Token; | |||||||||
| 54 | 1 | return Twilio::Rest::Iam::V1::TokenList->new($self); | |||||||||
| 55 | } | ||||||||||
| 56 | |||||||||||
| 57 | 3 | 1; | |||||||||
| 58 | |||||||||||
| 59 | __END__ | ||||||||||