| 1 | package Google::Firestore::Admin::V1::Operation::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 'OperationState', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'IndexOperationMetadata', | ||
| 14 | as InstanceOf['Google::Firestore::Admin::V1::Operation::IndexOperationMetadata']; | ||
| 15 | |||
| 16 | coerce 'IndexOperationMetadata', | ||
| 17 | from HashRef, via { 'Google::Firestore::Admin::V1::Operation::IndexOperationMetadata'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedIndexOperationMetadata', | ||
| 20 | as ArrayRef[IndexOperationMetadata()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedIndexOperationMetadata', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Operation::IndexOperationMetadata'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringIndexOperationMetadata', | ||
| 26 | as HashRef[IndexOperationMetadata()]; | ||
| 27 | |||
| 28 | declare 'FieldOperationMetadata', | ||
| 29 | as InstanceOf['Google::Firestore::Admin::V1::Operation::FieldOperationMetadata']; | ||
| 30 | |||
| 31 | coerce 'FieldOperationMetadata', | ||
| 32 | from HashRef, via { 'Google::Firestore::Admin::V1::Operation::FieldOperationMetadata'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedFieldOperationMetadata', | ||
| 35 | as ArrayRef[FieldOperationMetadata()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedFieldOperationMetadata', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Operation::FieldOperationMetadata'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringFieldOperationMetadata', | ||
| 41 | as HashRef[FieldOperationMetadata()]; | ||
| 42 | |||
| 43 | declare 'IndexConfigDelta', | ||
| 44 | as InstanceOf['Google::Firestore::Admin::V1::Operation::FieldOperationMetadata::IndexConfigDelta']; | ||
| 45 | |||
| 46 | coerce 'IndexConfigDelta', | ||
| 47 | from HashRef, via { 'Google::Firestore::Admin::V1::Operation::FieldOperationMetadata::IndexConfigDelta'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedIndexConfigDelta', | ||
| 50 | as ArrayRef[IndexConfigDelta()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedIndexConfigDelta', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Operation::FieldOperationMetadata::IndexConfigDelta'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringIndexConfigDelta', | ||
| 56 | as HashRef[IndexConfigDelta()]; | ||
| 57 | |||
| 58 | declare 'ChangeType', | ||
| 59 | as (Int | Str); | ||
| 60 | |||
| 61 | declare 'TtlConfigDelta', | ||
| 62 | as InstanceOf['Google::Firestore::Admin::V1::Operation::FieldOperationMetadata::TtlConfigDelta']; | ||
| 63 | |||
| 64 | coerce 'TtlConfigDelta', | ||
| 65 | from HashRef, via { 'Google::Firestore::Admin::V1::Operation::FieldOperationMetadata::TtlConfigDelta'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedTtlConfigDelta', | ||
| 68 | as ArrayRef[TtlConfigDelta()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedTtlConfigDelta', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Operation::FieldOperationMetadata::TtlConfigDelta'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringTtlConfigDelta', | ||
| 74 | as HashRef[TtlConfigDelta()]; | ||
| 75 | |||
| 76 | declare 'ChangeType', | ||
| 77 | as (Int | Str); | ||
| 78 | |||
| 79 | declare 'ExportDocumentsMetadata', | ||
| 80 | as InstanceOf['Google::Firestore::Admin::V1::Operation::ExportDocumentsMetadata']; | ||
| 81 | |||
| 82 | coerce 'ExportDocumentsMetadata', | ||
| 83 | from HashRef, via { 'Google::Firestore::Admin::V1::Operation::ExportDocumentsMetadata'->new($_) }; | ||
| 84 | |||
| 85 | declare 'RepeatedExportDocumentsMetadata', | ||
| 86 | as ArrayRef[ExportDocumentsMetadata()]; | ||
| 87 | |||
| 88 | coerce 'RepeatedExportDocumentsMetadata', | ||
| 89 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Operation::ExportDocumentsMetadata'->new($_) } @$_ ] }; | ||
| 90 | |||
| 91 | declare 'MapStringExportDocumentsMetadata', | ||
| 92 | as HashRef[ExportDocumentsMetadata()]; | ||
| 93 | |||
| 94 | declare 'ImportDocumentsMetadata', | ||
| 95 | as InstanceOf['Google::Firestore::Admin::V1::Operation::ImportDocumentsMetadata']; | ||
| 96 | |||
| 97 | coerce 'ImportDocumentsMetadata', | ||
| 98 | from HashRef, via { 'Google::Firestore::Admin::V1::Operation::ImportDocumentsMetadata'->new($_) }; | ||
| 99 | |||
| 100 | declare 'RepeatedImportDocumentsMetadata', | ||
| 101 | as ArrayRef[ImportDocumentsMetadata()]; | ||
| 102 | |||
| 103 | coerce 'RepeatedImportDocumentsMetadata', | ||
| 104 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Operation::ImportDocumentsMetadata'->new($_) } @$_ ] }; | ||
| 105 | |||
| 106 | declare 'MapStringImportDocumentsMetadata', | ||
| 107 | as HashRef[ImportDocumentsMetadata()]; | ||
| 108 | |||
| 109 | declare 'BulkDeleteDocumentsMetadata', | ||
| 110 | as InstanceOf['Google::Firestore::Admin::V1::Operation::BulkDeleteDocumentsMetadata']; | ||
| 111 | |||
| 112 | coerce 'BulkDeleteDocumentsMetadata', | ||
| 113 | from HashRef, via { 'Google::Firestore::Admin::V1::Operation::BulkDeleteDocumentsMetadata'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedBulkDeleteDocumentsMetadata', | ||
| 116 | as ArrayRef[BulkDeleteDocumentsMetadata()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedBulkDeleteDocumentsMetadata', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Operation::BulkDeleteDocumentsMetadata'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringBulkDeleteDocumentsMetadata', | ||
| 122 | as HashRef[BulkDeleteDocumentsMetadata()]; | ||
| 123 | |||
| 124 | declare 'ExportDocumentsResponse', | ||
| 125 | as InstanceOf['Google::Firestore::Admin::V1::Operation::ExportDocumentsResponse']; | ||
| 126 | |||
| 127 | coerce 'ExportDocumentsResponse', | ||
| 128 | from HashRef, via { 'Google::Firestore::Admin::V1::Operation::ExportDocumentsResponse'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedExportDocumentsResponse', | ||
| 131 | as ArrayRef[ExportDocumentsResponse()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedExportDocumentsResponse', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Operation::ExportDocumentsResponse'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringExportDocumentsResponse', | ||
| 137 | as HashRef[ExportDocumentsResponse()]; | ||
| 138 | |||
| 139 | declare 'RestoreDatabaseMetadata', | ||
| 140 | as InstanceOf['Google::Firestore::Admin::V1::Operation::RestoreDatabaseMetadata']; | ||
| 141 | |||
| 142 | coerce 'RestoreDatabaseMetadata', | ||
| 143 | from HashRef, via { 'Google::Firestore::Admin::V1::Operation::RestoreDatabaseMetadata'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedRestoreDatabaseMetadata', | ||
| 146 | as ArrayRef[RestoreDatabaseMetadata()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedRestoreDatabaseMetadata', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Operation::RestoreDatabaseMetadata'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringRestoreDatabaseMetadata', | ||
| 152 | as HashRef[RestoreDatabaseMetadata()]; | ||
| 153 | |||
| 154 | declare 'CloneDatabaseMetadata', | ||
| 155 | as InstanceOf['Google::Firestore::Admin::V1::Operation::CloneDatabaseMetadata']; | ||
| 156 | |||
| 157 | coerce 'CloneDatabaseMetadata', | ||
| 158 | from HashRef, via { 'Google::Firestore::Admin::V1::Operation::CloneDatabaseMetadata'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedCloneDatabaseMetadata', | ||
| 161 | as ArrayRef[CloneDatabaseMetadata()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedCloneDatabaseMetadata', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Operation::CloneDatabaseMetadata'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringCloneDatabaseMetadata', | ||
| 167 | as HashRef[CloneDatabaseMetadata()]; | ||
| 168 | |||
| 169 | declare 'Progress', | ||
| 170 | as InstanceOf['Google::Firestore::Admin::V1::Operation::Progress']; | ||
| 171 | |||
| 172 | coerce 'Progress', | ||
| 173 | from HashRef, via { 'Google::Firestore::Admin::V1::Operation::Progress'->new($_) }; | ||
| 174 | |||
| 175 | declare 'RepeatedProgress', | ||
| 176 | as ArrayRef[Progress()]; | ||
| 177 | |||
| 178 | coerce 'RepeatedProgress', | ||
| 179 | from ArrayRef[HashRef], via { [ map { 'Google::Firestore::Admin::V1::Operation::Progress'->new($_) } @$_ ] }; | ||
| 180 | |||
| 181 | declare 'MapStringProgress', | ||
| 182 | as HashRef[Progress()]; | ||
| 183 | |||
| 184 | 1; | ||
| 185 | |||
| 186 | __END__ |