| 1 | package Google::Cloud::Contentwarehouse::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 'UpdateType', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'DatabaseType', | ||
| 14 | as (Int | Str); | ||
| 15 | |||
| 16 | declare 'AccessControlMode', | ||
| 17 | as (Int | Str); | ||
| 18 | |||
| 19 | declare 'DocumentCreatorDefaultRole', | ||
| 20 | as (Int | Str); | ||
| 21 | |||
| 22 | declare 'RequestMetadata', | ||
| 23 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::Common::RequestMetadata']; | ||
| 24 | |||
| 25 | coerce 'RequestMetadata', | ||
| 26 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Common::RequestMetadata'->new($_) }; | ||
| 27 | |||
| 28 | declare 'RepeatedRequestMetadata', | ||
| 29 | as ArrayRef[RequestMetadata()]; | ||
| 30 | |||
| 31 | coerce 'RepeatedRequestMetadata', | ||
| 32 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Common::RequestMetadata'->new($_) } @$_ ] }; | ||
| 33 | |||
| 34 | declare 'MapStringRequestMetadata', | ||
| 35 | as HashRef[RequestMetadata()]; | ||
| 36 | |||
| 37 | declare 'ResponseMetadata', | ||
| 38 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::Common::ResponseMetadata']; | ||
| 39 | |||
| 40 | coerce 'ResponseMetadata', | ||
| 41 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Common::ResponseMetadata'->new($_) }; | ||
| 42 | |||
| 43 | declare 'RepeatedResponseMetadata', | ||
| 44 | as ArrayRef[ResponseMetadata()]; | ||
| 45 | |||
| 46 | coerce 'RepeatedResponseMetadata', | ||
| 47 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Common::ResponseMetadata'->new($_) } @$_ ] }; | ||
| 48 | |||
| 49 | declare 'MapStringResponseMetadata', | ||
| 50 | as HashRef[ResponseMetadata()]; | ||
| 51 | |||
| 52 | declare 'UserInfo', | ||
| 53 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::Common::UserInfo']; | ||
| 54 | |||
| 55 | coerce 'UserInfo', | ||
| 56 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Common::UserInfo'->new($_) }; | ||
| 57 | |||
| 58 | declare 'RepeatedUserInfo', | ||
| 59 | as ArrayRef[UserInfo()]; | ||
| 60 | |||
| 61 | coerce 'RepeatedUserInfo', | ||
| 62 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Common::UserInfo'->new($_) } @$_ ] }; | ||
| 63 | |||
| 64 | declare 'MapStringUserInfo', | ||
| 65 | as HashRef[UserInfo()]; | ||
| 66 | |||
| 67 | declare 'UpdateOptions', | ||
| 68 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::Common::UpdateOptions']; | ||
| 69 | |||
| 70 | coerce 'UpdateOptions', | ||
| 71 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Common::UpdateOptions'->new($_) }; | ||
| 72 | |||
| 73 | declare 'RepeatedUpdateOptions', | ||
| 74 | as ArrayRef[UpdateOptions()]; | ||
| 75 | |||
| 76 | coerce 'RepeatedUpdateOptions', | ||
| 77 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Common::UpdateOptions'->new($_) } @$_ ] }; | ||
| 78 | |||
| 79 | declare 'MapStringUpdateOptions', | ||
| 80 | as HashRef[UpdateOptions()]; | ||
| 81 | |||
| 82 | declare 'MergeFieldsOptions', | ||
| 83 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::Common::MergeFieldsOptions']; | ||
| 84 | |||
| 85 | coerce 'MergeFieldsOptions', | ||
| 86 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Common::MergeFieldsOptions'->new($_) }; | ||
| 87 | |||
| 88 | declare 'RepeatedMergeFieldsOptions', | ||
| 89 | as ArrayRef[MergeFieldsOptions()]; | ||
| 90 | |||
| 91 | coerce 'RepeatedMergeFieldsOptions', | ||
| 92 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Common::MergeFieldsOptions'->new($_) } @$_ ] }; | ||
| 93 | |||
| 94 | declare 'MapStringMergeFieldsOptions', | ||
| 95 | as HashRef[MergeFieldsOptions()]; | ||
| 96 | |||
| 97 | 1; | ||
| 98 | |||
| 99 | __END__ |