| 1 | package Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::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 'CreateDocumentSchemaRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::CreateDocumentSchemaRequest']; | ||
| 12 | |||
| 13 | coerce 'CreateDocumentSchemaRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::CreateDocumentSchemaRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedCreateDocumentSchemaRequest', | ||
| 17 | as ArrayRef[CreateDocumentSchemaRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedCreateDocumentSchemaRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::CreateDocumentSchemaRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringCreateDocumentSchemaRequest', | ||
| 23 | as HashRef[CreateDocumentSchemaRequest()]; | ||
| 24 | |||
| 25 | declare 'GetDocumentSchemaRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::GetDocumentSchemaRequest']; | ||
| 27 | |||
| 28 | coerce 'GetDocumentSchemaRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::GetDocumentSchemaRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedGetDocumentSchemaRequest', | ||
| 32 | as ArrayRef[GetDocumentSchemaRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedGetDocumentSchemaRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::GetDocumentSchemaRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringGetDocumentSchemaRequest', | ||
| 38 | as HashRef[GetDocumentSchemaRequest()]; | ||
| 39 | |||
| 40 | declare 'UpdateDocumentSchemaRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::UpdateDocumentSchemaRequest']; | ||
| 42 | |||
| 43 | coerce 'UpdateDocumentSchemaRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::UpdateDocumentSchemaRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedUpdateDocumentSchemaRequest', | ||
| 47 | as ArrayRef[UpdateDocumentSchemaRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedUpdateDocumentSchemaRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::UpdateDocumentSchemaRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringUpdateDocumentSchemaRequest', | ||
| 53 | as HashRef[UpdateDocumentSchemaRequest()]; | ||
| 54 | |||
| 55 | declare 'DeleteDocumentSchemaRequest', | ||
| 56 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::DeleteDocumentSchemaRequest']; | ||
| 57 | |||
| 58 | coerce 'DeleteDocumentSchemaRequest', | ||
| 59 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::DeleteDocumentSchemaRequest'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedDeleteDocumentSchemaRequest', | ||
| 62 | as ArrayRef[DeleteDocumentSchemaRequest()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedDeleteDocumentSchemaRequest', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::DeleteDocumentSchemaRequest'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringDeleteDocumentSchemaRequest', | ||
| 68 | as HashRef[DeleteDocumentSchemaRequest()]; | ||
| 69 | |||
| 70 | declare 'ListDocumentSchemasRequest', | ||
| 71 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::ListDocumentSchemasRequest']; | ||
| 72 | |||
| 73 | coerce 'ListDocumentSchemasRequest', | ||
| 74 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::ListDocumentSchemasRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedListDocumentSchemasRequest', | ||
| 77 | as ArrayRef[ListDocumentSchemasRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedListDocumentSchemasRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::ListDocumentSchemasRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringListDocumentSchemasRequest', | ||
| 83 | as HashRef[ListDocumentSchemasRequest()]; | ||
| 84 | |||
| 85 | declare 'ListDocumentSchemasResponse', | ||
| 86 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::ListDocumentSchemasResponse']; | ||
| 87 | |||
| 88 | coerce 'ListDocumentSchemasResponse', | ||
| 89 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::ListDocumentSchemasResponse'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedListDocumentSchemasResponse', | ||
| 92 | as ArrayRef[ListDocumentSchemasResponse()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedListDocumentSchemasResponse', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::DocumentSchemaService::ListDocumentSchemasResponse'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringListDocumentSchemasResponse', | ||
| 98 | as HashRef[ListDocumentSchemasResponse()]; | ||
| 99 | |||
| 100 | 1; | ||
| 101 | |||
| 102 | __END__ |