| 1 | package Google::Cloud::Geminidataanalytics::V1alpha::Credentials::Types; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Type::Library -base; | ||
| 7 | use Type::Utils -all; | ||
| 8 | use Types::Standard -types; | ||
| 9 | |||
| 10 | declare 'Credentials', | ||
| 11 | as InstanceOf['Google::Cloud::Geminidataanalytics::V1alpha::Credentials::Credentials']; | ||
| 12 | |||
| 13 | coerce 'Credentials', | ||
| 14 | from HashRef, via { 'Google::Cloud::Geminidataanalytics::V1alpha::Credentials::Credentials'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedCredentials', | ||
| 17 | as ArrayRef[Credentials()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedCredentials', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Geminidataanalytics::V1alpha::Credentials::Credentials'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringCredentials', | ||
| 23 | as HashRef[Credentials()]; | ||
| 24 | |||
| 25 | declare 'OAuthCredentials', | ||
| 26 | as InstanceOf['Google::Cloud::Geminidataanalytics::V1alpha::Credentials::OAuthCredentials']; | ||
| 27 | |||
| 28 | coerce 'OAuthCredentials', | ||
| 29 | from HashRef, via { 'Google::Cloud::Geminidataanalytics::V1alpha::Credentials::OAuthCredentials'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedOAuthCredentials', | ||
| 32 | as ArrayRef[OAuthCredentials()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedOAuthCredentials', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Geminidataanalytics::V1alpha::Credentials::OAuthCredentials'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringOAuthCredentials', | ||
| 38 | as HashRef[OAuthCredentials()]; | ||
| 39 | |||
| 40 | declare 'SecretBased', | ||
| 41 | as InstanceOf['Google::Cloud::Geminidataanalytics::V1alpha::Credentials::OAuthCredentials::SecretBased']; | ||
| 42 | |||
| 43 | coerce 'SecretBased', | ||
| 44 | from HashRef, via { 'Google::Cloud::Geminidataanalytics::V1alpha::Credentials::OAuthCredentials::SecretBased'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedSecretBased', | ||
| 47 | as ArrayRef[SecretBased()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedSecretBased', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Geminidataanalytics::V1alpha::Credentials::OAuthCredentials::SecretBased'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringSecretBased', | ||
| 53 | as HashRef[SecretBased()]; | ||
| 54 | |||
| 55 | declare 'TokenBased', | ||
| 56 | as InstanceOf['Google::Cloud::Geminidataanalytics::V1alpha::Credentials::OAuthCredentials::TokenBased']; | ||
| 57 | |||
| 58 | coerce 'TokenBased', | ||
| 59 | from HashRef, via { 'Google::Cloud::Geminidataanalytics::V1alpha::Credentials::OAuthCredentials::TokenBased'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedTokenBased', | ||
| 62 | as ArrayRef[TokenBased()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedTokenBased', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Geminidataanalytics::V1alpha::Credentials::OAuthCredentials::TokenBased'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringTokenBased', | ||
| 68 | as HashRef[TokenBased()]; | ||
| 69 | |||
| 70 | 1; | ||
| 71 | |||
| 72 | __END__ |