| 1 | package Google::Cloud::Cloudcontrolspartner::V1::PartnerPermissions::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 'PartnerPermissions', | ||
| 11 | as InstanceOf['Google::Cloud::Cloudcontrolspartner::V1::PartnerPermissions::PartnerPermissions']; | ||
| 12 | |||
| 13 | coerce 'PartnerPermissions', | ||
| 14 | from HashRef, via { 'Google::Cloud::Cloudcontrolspartner::V1::PartnerPermissions::PartnerPermissions'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedPartnerPermissions', | ||
| 17 | as ArrayRef[PartnerPermissions()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedPartnerPermissions', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Cloudcontrolspartner::V1::PartnerPermissions::PartnerPermissions'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringPartnerPermissions', | ||
| 23 | as HashRef[PartnerPermissions()]; | ||
| 24 | |||
| 25 | declare 'Permission', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'GetPartnerPermissionsRequest', | ||
| 29 | as InstanceOf['Google::Cloud::Cloudcontrolspartner::V1::PartnerPermissions::GetPartnerPermissionsRequest']; | ||
| 30 | |||
| 31 | coerce 'GetPartnerPermissionsRequest', | ||
| 32 | from HashRef, via { 'Google::Cloud::Cloudcontrolspartner::V1::PartnerPermissions::GetPartnerPermissionsRequest'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedGetPartnerPermissionsRequest', | ||
| 35 | as ArrayRef[GetPartnerPermissionsRequest()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedGetPartnerPermissionsRequest', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Cloudcontrolspartner::V1::PartnerPermissions::GetPartnerPermissionsRequest'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringGetPartnerPermissionsRequest', | ||
| 41 | as HashRef[GetPartnerPermissionsRequest()]; | ||
| 42 | |||
| 43 | 1; | ||
| 44 | |||
| 45 | __END__ |