| 1 | package Google::Cloud::Discoveryengine::V1alpha::Project::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 'Project', | ||
| 11 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Project::Project']; | ||
| 12 | |||
| 13 | coerce 'Project', | ||
| 14 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Project::Project'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedProject', | ||
| 17 | as ArrayRef[Project()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedProject', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Project::Project'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringProject', | ||
| 23 | as HashRef[Project()]; | ||
| 24 | |||
| 25 | declare 'ServiceTerms', | ||
| 26 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Project::Project::ServiceTerms']; | ||
| 27 | |||
| 28 | coerce 'ServiceTerms', | ||
| 29 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Project::Project::ServiceTerms'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedServiceTerms', | ||
| 32 | as ArrayRef[ServiceTerms()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedServiceTerms', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Project::Project::ServiceTerms'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringServiceTerms', | ||
| 38 | as HashRef[ServiceTerms()]; | ||
| 39 | |||
| 40 | declare 'State', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'ServiceTermsMapEntry', | ||
| 44 | as InstanceOf['Google::Cloud::Discoveryengine::V1alpha::Project::Project::ServiceTermsMapEntry']; | ||
| 45 | |||
| 46 | coerce 'ServiceTermsMapEntry', | ||
| 47 | from HashRef, via { 'Google::Cloud::Discoveryengine::V1alpha::Project::Project::ServiceTermsMapEntry'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedServiceTermsMapEntry', | ||
| 50 | as ArrayRef[ServiceTermsMapEntry()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedServiceTermsMapEntry', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Discoveryengine::V1alpha::Project::Project::ServiceTermsMapEntry'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringServiceTermsMapEntry', | ||
| 56 | as HashRef[ServiceTermsMapEntry()]; | ||
| 57 | |||
| 58 | 1; | ||
| 59 | |||
| 60 | __END__ |