| 1 | package Google::Cloud::Securitycenter::V2::Access::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 'Access', | ||
| 11 | as InstanceOf['Google::Cloud::Securitycenter::V2::Access::Access']; | ||
| 12 | |||
| 13 | coerce 'Access', | ||
| 14 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Access::Access'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedAccess', | ||
| 17 | as ArrayRef[Access()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedAccess', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Access::Access'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringAccess', | ||
| 23 | as HashRef[Access()]; | ||
| 24 | |||
| 25 | declare 'ServiceAccountDelegationInfo', | ||
| 26 | as InstanceOf['Google::Cloud::Securitycenter::V2::Access::ServiceAccountDelegationInfo']; | ||
| 27 | |||
| 28 | coerce 'ServiceAccountDelegationInfo', | ||
| 29 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Access::ServiceAccountDelegationInfo'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedServiceAccountDelegationInfo', | ||
| 32 | as ArrayRef[ServiceAccountDelegationInfo()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedServiceAccountDelegationInfo', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Access::ServiceAccountDelegationInfo'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringServiceAccountDelegationInfo', | ||
| 38 | as HashRef[ServiceAccountDelegationInfo()]; | ||
| 39 | |||
| 40 | declare 'Geolocation', | ||
| 41 | as InstanceOf['Google::Cloud::Securitycenter::V2::Access::Geolocation']; | ||
| 42 | |||
| 43 | coerce 'Geolocation', | ||
| 44 | from HashRef, via { 'Google::Cloud::Securitycenter::V2::Access::Geolocation'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedGeolocation', | ||
| 47 | as ArrayRef[Geolocation()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedGeolocation', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Securitycenter::V2::Access::Geolocation'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringGeolocation', | ||
| 53 | as HashRef[Geolocation()]; | ||
| 54 | |||
| 55 | 1; | ||
| 56 | |||
| 57 | __END__ |