| 1 | package Google::Cloud::Connectors::V1::Authconfig::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 'AuthType', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'AuthConfig', | ||
| 14 | as InstanceOf['Google::Cloud::Connectors::V1::Authconfig::AuthConfig']; | ||
| 15 | |||
| 16 | coerce 'AuthConfig', | ||
| 17 | from HashRef, via { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfig'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedAuthConfig', | ||
| 20 | as ArrayRef[AuthConfig()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedAuthConfig', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfig'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringAuthConfig', | ||
| 26 | as HashRef[AuthConfig()]; | ||
| 27 | |||
| 28 | declare 'UserPassword', | ||
| 29 | as InstanceOf['Google::Cloud::Connectors::V1::Authconfig::AuthConfig::UserPassword']; | ||
| 30 | |||
| 31 | coerce 'UserPassword', | ||
| 32 | from HashRef, via { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfig::UserPassword'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedUserPassword', | ||
| 35 | as ArrayRef[UserPassword()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedUserPassword', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfig::UserPassword'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringUserPassword', | ||
| 41 | as HashRef[UserPassword()]; | ||
| 42 | |||
| 43 | declare 'Oauth2JwtBearer', | ||
| 44 | as InstanceOf['Google::Cloud::Connectors::V1::Authconfig::AuthConfig::Oauth2JwtBearer']; | ||
| 45 | |||
| 46 | coerce 'Oauth2JwtBearer', | ||
| 47 | from HashRef, via { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfig::Oauth2JwtBearer'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedOauth2JwtBearer', | ||
| 50 | as ArrayRef[Oauth2JwtBearer()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedOauth2JwtBearer', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfig::Oauth2JwtBearer'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringOauth2JwtBearer', | ||
| 56 | as HashRef[Oauth2JwtBearer()]; | ||
| 57 | |||
| 58 | declare 'JwtClaims', | ||
| 59 | as InstanceOf['Google::Cloud::Connectors::V1::Authconfig::AuthConfig::Oauth2JwtBearer::JwtClaims']; | ||
| 60 | |||
| 61 | coerce 'JwtClaims', | ||
| 62 | from HashRef, via { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfig::Oauth2JwtBearer::JwtClaims'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedJwtClaims', | ||
| 65 | as ArrayRef[JwtClaims()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedJwtClaims', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfig::Oauth2JwtBearer::JwtClaims'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringJwtClaims', | ||
| 71 | as HashRef[JwtClaims()]; | ||
| 72 | |||
| 73 | declare 'Oauth2ClientCredentials', | ||
| 74 | as InstanceOf['Google::Cloud::Connectors::V1::Authconfig::AuthConfig::Oauth2ClientCredentials']; | ||
| 75 | |||
| 76 | coerce 'Oauth2ClientCredentials', | ||
| 77 | from HashRef, via { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfig::Oauth2ClientCredentials'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedOauth2ClientCredentials', | ||
| 80 | as ArrayRef[Oauth2ClientCredentials()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedOauth2ClientCredentials', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfig::Oauth2ClientCredentials'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringOauth2ClientCredentials', | ||
| 86 | as HashRef[Oauth2ClientCredentials()]; | ||
| 87 | |||
| 88 | declare 'SshPublicKey', | ||
| 89 | as InstanceOf['Google::Cloud::Connectors::V1::Authconfig::AuthConfig::SshPublicKey']; | ||
| 90 | |||
| 91 | coerce 'SshPublicKey', | ||
| 92 | from HashRef, via { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfig::SshPublicKey'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedSshPublicKey', | ||
| 95 | as ArrayRef[SshPublicKey()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedSshPublicKey', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfig::SshPublicKey'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringSshPublicKey', | ||
| 101 | as HashRef[SshPublicKey()]; | ||
| 102 | |||
| 103 | declare 'AuthConfigTemplate', | ||
| 104 | as InstanceOf['Google::Cloud::Connectors::V1::Authconfig::AuthConfigTemplate']; | ||
| 105 | |||
| 106 | coerce 'AuthConfigTemplate', | ||
| 107 | from HashRef, via { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfigTemplate'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedAuthConfigTemplate', | ||
| 110 | as ArrayRef[AuthConfigTemplate()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedAuthConfigTemplate', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Authconfig::AuthConfigTemplate'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringAuthConfigTemplate', | ||
| 116 | as HashRef[AuthConfigTemplate()]; | ||
| 117 | |||
| 118 | 1; | ||
| 119 | |||
| 120 | __END__ |