| 1 | package Google::Cloud::Connectors::V1::Common::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 'LaunchStage', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'OperationMetadata', | ||
| 14 | as InstanceOf['Google::Cloud::Connectors::V1::Common::OperationMetadata']; | ||
| 15 | |||
| 16 | coerce 'OperationMetadata', | ||
| 17 | from HashRef, via { 'Google::Cloud::Connectors::V1::Common::OperationMetadata'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedOperationMetadata', | ||
| 20 | as ArrayRef[OperationMetadata()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedOperationMetadata', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Common::OperationMetadata'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringOperationMetadata', | ||
| 26 | as HashRef[OperationMetadata()]; | ||
| 27 | |||
| 28 | declare 'ConfigVariableTemplate', | ||
| 29 | as InstanceOf['Google::Cloud::Connectors::V1::Common::ConfigVariableTemplate']; | ||
| 30 | |||
| 31 | coerce 'ConfigVariableTemplate', | ||
| 32 | from HashRef, via { 'Google::Cloud::Connectors::V1::Common::ConfigVariableTemplate'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedConfigVariableTemplate', | ||
| 35 | as ArrayRef[ConfigVariableTemplate()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedConfigVariableTemplate', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Common::ConfigVariableTemplate'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringConfigVariableTemplate', | ||
| 41 | as HashRef[ConfigVariableTemplate()]; | ||
| 42 | |||
| 43 | declare 'ValueType', | ||
| 44 | as (Int | Str); | ||
| 45 | |||
| 46 | declare 'State', | ||
| 47 | as (Int | Str); | ||
| 48 | |||
| 49 | declare 'Secret', | ||
| 50 | as InstanceOf['Google::Cloud::Connectors::V1::Common::Secret']; | ||
| 51 | |||
| 52 | coerce 'Secret', | ||
| 53 | from HashRef, via { 'Google::Cloud::Connectors::V1::Common::Secret'->new($_) }; | ||
| 54 | |||
| 55 | declare 'RepeatedSecret', | ||
| 56 | as ArrayRef[Secret()]; | ||
| 57 | |||
| 58 | coerce 'RepeatedSecret', | ||
| 59 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Common::Secret'->new($_) } @$_ ] }; | ||
| 60 | |||
| 61 | declare 'MapStringSecret', | ||
| 62 | as HashRef[Secret()]; | ||
| 63 | |||
| 64 | declare 'EnumOption', | ||
| 65 | as InstanceOf['Google::Cloud::Connectors::V1::Common::EnumOption']; | ||
| 66 | |||
| 67 | coerce 'EnumOption', | ||
| 68 | from HashRef, via { 'Google::Cloud::Connectors::V1::Common::EnumOption'->new($_) }; | ||
| 69 | |||
| 70 | declare 'RepeatedEnumOption', | ||
| 71 | as ArrayRef[EnumOption()]; | ||
| 72 | |||
| 73 | coerce 'RepeatedEnumOption', | ||
| 74 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Common::EnumOption'->new($_) } @$_ ] }; | ||
| 75 | |||
| 76 | declare 'MapStringEnumOption', | ||
| 77 | as HashRef[EnumOption()]; | ||
| 78 | |||
| 79 | declare 'ConfigVariable', | ||
| 80 | as InstanceOf['Google::Cloud::Connectors::V1::Common::ConfigVariable']; | ||
| 81 | |||
| 82 | coerce 'ConfigVariable', | ||
| 83 | from HashRef, via { 'Google::Cloud::Connectors::V1::Common::ConfigVariable'->new($_) }; | ||
| 84 | |||
| 85 | declare 'RepeatedConfigVariable', | ||
| 86 | as ArrayRef[ConfigVariable()]; | ||
| 87 | |||
| 88 | coerce 'RepeatedConfigVariable', | ||
| 89 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Common::ConfigVariable'->new($_) } @$_ ] }; | ||
| 90 | |||
| 91 | declare 'MapStringConfigVariable', | ||
| 92 | as HashRef[ConfigVariable()]; | ||
| 93 | |||
| 94 | declare 'RoleGrant', | ||
| 95 | as InstanceOf['Google::Cloud::Connectors::V1::Common::RoleGrant']; | ||
| 96 | |||
| 97 | coerce 'RoleGrant', | ||
| 98 | from HashRef, via { 'Google::Cloud::Connectors::V1::Common::RoleGrant'->new($_) }; | ||
| 99 | |||
| 100 | declare 'RepeatedRoleGrant', | ||
| 101 | as ArrayRef[RoleGrant()]; | ||
| 102 | |||
| 103 | coerce 'RepeatedRoleGrant', | ||
| 104 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Common::RoleGrant'->new($_) } @$_ ] }; | ||
| 105 | |||
| 106 | declare 'MapStringRoleGrant', | ||
| 107 | as HashRef[RoleGrant()]; | ||
| 108 | |||
| 109 | declare 'Principal', | ||
| 110 | as (Int | Str); | ||
| 111 | |||
| 112 | declare 'Resource', | ||
| 113 | as InstanceOf['Google::Cloud::Connectors::V1::Common::RoleGrant::Resource']; | ||
| 114 | |||
| 115 | coerce 'Resource', | ||
| 116 | from HashRef, via { 'Google::Cloud::Connectors::V1::Common::RoleGrant::Resource'->new($_) }; | ||
| 117 | |||
| 118 | declare 'RepeatedResource', | ||
| 119 | as ArrayRef[Resource()]; | ||
| 120 | |||
| 121 | coerce 'RepeatedResource', | ||
| 122 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Common::RoleGrant::Resource'->new($_) } @$_ ] }; | ||
| 123 | |||
| 124 | declare 'MapStringResource', | ||
| 125 | as HashRef[Resource()]; | ||
| 126 | |||
| 127 | declare 'Type', | ||
| 128 | as (Int | Str); | ||
| 129 | |||
| 130 | declare 'AuthorizationCodeLink', | ||
| 131 | as InstanceOf['Google::Cloud::Connectors::V1::Common::AuthorizationCodeLink']; | ||
| 132 | |||
| 133 | coerce 'AuthorizationCodeLink', | ||
| 134 | from HashRef, via { 'Google::Cloud::Connectors::V1::Common::AuthorizationCodeLink'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedAuthorizationCodeLink', | ||
| 137 | as ArrayRef[AuthorizationCodeLink()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedAuthorizationCodeLink', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Connectors::V1::Common::AuthorizationCodeLink'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringAuthorizationCodeLink', | ||
| 143 | as HashRef[AuthorizationCodeLink()]; | ||
| 144 | |||
| 145 | 1; | ||
| 146 | |||
| 147 | __END__ |