| 1 | package Google::Cloud::Chronicle::V1::Entity::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 'Entity', | ||
| 11 | as InstanceOf['Google::Cloud::Chronicle::V1::Entity::Entity']; | ||
| 12 | |||
| 13 | coerce 'Entity', | ||
| 14 | from HashRef, via { 'Google::Cloud::Chronicle::V1::Entity::Entity'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedEntity', | ||
| 17 | as ArrayRef[Entity()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedEntity', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Chronicle::V1::Entity::Entity'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringEntity', | ||
| 23 | as HashRef[Entity()]; | ||
| 24 | |||
| 25 | declare 'Watchlist', | ||
| 26 | as InstanceOf['Google::Cloud::Chronicle::V1::Entity::Watchlist']; | ||
| 27 | |||
| 28 | coerce 'Watchlist', | ||
| 29 | from HashRef, via { 'Google::Cloud::Chronicle::V1::Entity::Watchlist'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedWatchlist', | ||
| 32 | as ArrayRef[Watchlist()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedWatchlist', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Chronicle::V1::Entity::Watchlist'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringWatchlist', | ||
| 38 | as HashRef[Watchlist()]; | ||
| 39 | |||
| 40 | declare 'EntityPopulationMechanism', | ||
| 41 | as InstanceOf['Google::Cloud::Chronicle::V1::Entity::Watchlist::EntityPopulationMechanism']; | ||
| 42 | |||
| 43 | coerce 'EntityPopulationMechanism', | ||
| 44 | from HashRef, via { 'Google::Cloud::Chronicle::V1::Entity::Watchlist::EntityPopulationMechanism'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedEntityPopulationMechanism', | ||
| 47 | as ArrayRef[EntityPopulationMechanism()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedEntityPopulationMechanism', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Chronicle::V1::Entity::Watchlist::EntityPopulationMechanism'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringEntityPopulationMechanism', | ||
| 53 | as HashRef[EntityPopulationMechanism()]; | ||
| 54 | |||
| 55 | declare 'Manual', | ||
| 56 | as InstanceOf['Google::Cloud::Chronicle::V1::Entity::Watchlist::EntityPopulationMechanism::Manual']; | ||
| 57 | |||
| 58 | coerce 'Manual', | ||
| 59 | from HashRef, via { 'Google::Cloud::Chronicle::V1::Entity::Watchlist::EntityPopulationMechanism::Manual'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedManual', | ||
| 62 | as ArrayRef[Manual()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedManual', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Chronicle::V1::Entity::Watchlist::EntityPopulationMechanism::Manual'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringManual', | ||
| 68 | as HashRef[Manual()]; | ||
| 69 | |||
| 70 | declare 'EntityCount', | ||
| 71 | as InstanceOf['Google::Cloud::Chronicle::V1::Entity::Watchlist::EntityCount']; | ||
| 72 | |||
| 73 | coerce 'EntityCount', | ||
| 74 | from HashRef, via { 'Google::Cloud::Chronicle::V1::Entity::Watchlist::EntityCount'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedEntityCount', | ||
| 77 | as ArrayRef[EntityCount()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedEntityCount', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Chronicle::V1::Entity::Watchlist::EntityCount'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringEntityCount', | ||
| 83 | as HashRef[EntityCount()]; | ||
| 84 | |||
| 85 | declare 'WatchlistUserPreferences', | ||
| 86 | as InstanceOf['Google::Cloud::Chronicle::V1::Entity::WatchlistUserPreferences']; | ||
| 87 | |||
| 88 | coerce 'WatchlistUserPreferences', | ||
| 89 | from HashRef, via { 'Google::Cloud::Chronicle::V1::Entity::WatchlistUserPreferences'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedWatchlistUserPreferences', | ||
| 92 | as ArrayRef[WatchlistUserPreferences()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedWatchlistUserPreferences', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Chronicle::V1::Entity::WatchlistUserPreferences'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringWatchlistUserPreferences', | ||
| 98 | as HashRef[WatchlistUserPreferences()]; | ||
| 99 | |||
| 100 | declare 'GetWatchlistRequest', | ||
| 101 | as InstanceOf['Google::Cloud::Chronicle::V1::Entity::GetWatchlistRequest']; | ||
| 102 | |||
| 103 | coerce 'GetWatchlistRequest', | ||
| 104 | from HashRef, via { 'Google::Cloud::Chronicle::V1::Entity::GetWatchlistRequest'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedGetWatchlistRequest', | ||
| 107 | as ArrayRef[GetWatchlistRequest()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedGetWatchlistRequest', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Chronicle::V1::Entity::GetWatchlistRequest'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringGetWatchlistRequest', | ||
| 113 | as HashRef[GetWatchlistRequest()]; | ||
| 114 | |||
| 115 | declare 'ListWatchlistsRequest', | ||
| 116 | as InstanceOf['Google::Cloud::Chronicle::V1::Entity::ListWatchlistsRequest']; | ||
| 117 | |||
| 118 | coerce 'ListWatchlistsRequest', | ||
| 119 | from HashRef, via { 'Google::Cloud::Chronicle::V1::Entity::ListWatchlistsRequest'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedListWatchlistsRequest', | ||
| 122 | as ArrayRef[ListWatchlistsRequest()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedListWatchlistsRequest', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Chronicle::V1::Entity::ListWatchlistsRequest'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringListWatchlistsRequest', | ||
| 128 | as HashRef[ListWatchlistsRequest()]; | ||
| 129 | |||
| 130 | declare 'ListWatchlistsResponse', | ||
| 131 | as InstanceOf['Google::Cloud::Chronicle::V1::Entity::ListWatchlistsResponse']; | ||
| 132 | |||
| 133 | coerce 'ListWatchlistsResponse', | ||
| 134 | from HashRef, via { 'Google::Cloud::Chronicle::V1::Entity::ListWatchlistsResponse'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedListWatchlistsResponse', | ||
| 137 | as ArrayRef[ListWatchlistsResponse()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedListWatchlistsResponse', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Chronicle::V1::Entity::ListWatchlistsResponse'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringListWatchlistsResponse', | ||
| 143 | as HashRef[ListWatchlistsResponse()]; | ||
| 144 | |||
| 145 | declare 'CreateWatchlistRequest', | ||
| 146 | as InstanceOf['Google::Cloud::Chronicle::V1::Entity::CreateWatchlistRequest']; | ||
| 147 | |||
| 148 | coerce 'CreateWatchlistRequest', | ||
| 149 | from HashRef, via { 'Google::Cloud::Chronicle::V1::Entity::CreateWatchlistRequest'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedCreateWatchlistRequest', | ||
| 152 | as ArrayRef[CreateWatchlistRequest()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedCreateWatchlistRequest', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Chronicle::V1::Entity::CreateWatchlistRequest'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringCreateWatchlistRequest', | ||
| 158 | as HashRef[CreateWatchlistRequest()]; | ||
| 159 | |||
| 160 | declare 'UpdateWatchlistRequest', | ||
| 161 | as InstanceOf['Google::Cloud::Chronicle::V1::Entity::UpdateWatchlistRequest']; | ||
| 162 | |||
| 163 | coerce 'UpdateWatchlistRequest', | ||
| 164 | from HashRef, via { 'Google::Cloud::Chronicle::V1::Entity::UpdateWatchlistRequest'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedUpdateWatchlistRequest', | ||
| 167 | as ArrayRef[UpdateWatchlistRequest()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedUpdateWatchlistRequest', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Chronicle::V1::Entity::UpdateWatchlistRequest'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringUpdateWatchlistRequest', | ||
| 173 | as HashRef[UpdateWatchlistRequest()]; | ||
| 174 | |||
| 175 | declare 'DeleteWatchlistRequest', | ||
| 176 | as InstanceOf['Google::Cloud::Chronicle::V1::Entity::DeleteWatchlistRequest']; | ||
| 177 | |||
| 178 | coerce 'DeleteWatchlistRequest', | ||
| 179 | from HashRef, via { 'Google::Cloud::Chronicle::V1::Entity::DeleteWatchlistRequest'->new($_) }; | ||
| 180 | |||
| 181 | declare 'RepeatedDeleteWatchlistRequest', | ||
| 182 | as ArrayRef[DeleteWatchlistRequest()]; | ||
| 183 | |||
| 184 | coerce 'RepeatedDeleteWatchlistRequest', | ||
| 185 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Chronicle::V1::Entity::DeleteWatchlistRequest'->new($_) } @$_ ] }; | ||
| 186 | |||
| 187 | declare 'MapStringDeleteWatchlistRequest', | ||
| 188 | as HashRef[DeleteWatchlistRequest()]; | ||
| 189 | |||
| 190 | 1; | ||
| 191 | |||
| 192 | __END__ |