| 1 | package Google::Cloud::Contentwarehouse::V1::RuleEngine::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 'RuleSet', | ||
| 11 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleSet']; | ||
| 12 | |||
| 13 | coerce 'RuleSet', | ||
| 14 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleSet'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedRuleSet', | ||
| 17 | as ArrayRef[RuleSet()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedRuleSet', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleSet'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringRuleSet', | ||
| 23 | as HashRef[RuleSet()]; | ||
| 24 | |||
| 25 | declare 'Rule', | ||
| 26 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::Rule']; | ||
| 27 | |||
| 28 | coerce 'Rule', | ||
| 29 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::Rule'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedRule', | ||
| 32 | as ArrayRef[Rule()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedRule', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::Rule'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringRule', | ||
| 38 | as HashRef[Rule()]; | ||
| 39 | |||
| 40 | declare 'TriggerType', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'Action', | ||
| 44 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::Action']; | ||
| 45 | |||
| 46 | coerce 'Action', | ||
| 47 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::Action'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedAction', | ||
| 50 | as ArrayRef[Action()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedAction', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::Action'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringAction', | ||
| 56 | as HashRef[Action()]; | ||
| 57 | |||
| 58 | declare 'AccessControlAction', | ||
| 59 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::AccessControlAction']; | ||
| 60 | |||
| 61 | coerce 'AccessControlAction', | ||
| 62 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::AccessControlAction'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedAccessControlAction', | ||
| 65 | as ArrayRef[AccessControlAction()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedAccessControlAction', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::AccessControlAction'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringAccessControlAction', | ||
| 71 | as HashRef[AccessControlAction()]; | ||
| 72 | |||
| 73 | declare 'OperationType', | ||
| 74 | as (Int | Str); | ||
| 75 | |||
| 76 | declare 'DataValidationAction', | ||
| 77 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::DataValidationAction']; | ||
| 78 | |||
| 79 | coerce 'DataValidationAction', | ||
| 80 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::DataValidationAction'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedDataValidationAction', | ||
| 83 | as ArrayRef[DataValidationAction()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedDataValidationAction', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::DataValidationAction'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringDataValidationAction', | ||
| 89 | as HashRef[DataValidationAction()]; | ||
| 90 | |||
| 91 | declare 'ConditionsEntry', | ||
| 92 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::DataValidationAction::ConditionsEntry']; | ||
| 93 | |||
| 94 | coerce 'ConditionsEntry', | ||
| 95 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::DataValidationAction::ConditionsEntry'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedConditionsEntry', | ||
| 98 | as ArrayRef[ConditionsEntry()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedConditionsEntry', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::DataValidationAction::ConditionsEntry'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringConditionsEntry', | ||
| 104 | as HashRef[ConditionsEntry()]; | ||
| 105 | |||
| 106 | declare 'DataUpdateAction', | ||
| 107 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::DataUpdateAction']; | ||
| 108 | |||
| 109 | coerce 'DataUpdateAction', | ||
| 110 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::DataUpdateAction'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedDataUpdateAction', | ||
| 113 | as ArrayRef[DataUpdateAction()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedDataUpdateAction', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::DataUpdateAction'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringDataUpdateAction', | ||
| 119 | as HashRef[DataUpdateAction()]; | ||
| 120 | |||
| 121 | declare 'EntriesEntry', | ||
| 122 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::DataUpdateAction::EntriesEntry']; | ||
| 123 | |||
| 124 | coerce 'EntriesEntry', | ||
| 125 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::DataUpdateAction::EntriesEntry'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedEntriesEntry', | ||
| 128 | as ArrayRef[EntriesEntry()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedEntriesEntry', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::DataUpdateAction::EntriesEntry'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringEntriesEntry', | ||
| 134 | as HashRef[EntriesEntry()]; | ||
| 135 | |||
| 136 | declare 'AddToFolderAction', | ||
| 137 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::AddToFolderAction']; | ||
| 138 | |||
| 139 | coerce 'AddToFolderAction', | ||
| 140 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::AddToFolderAction'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedAddToFolderAction', | ||
| 143 | as ArrayRef[AddToFolderAction()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedAddToFolderAction', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::AddToFolderAction'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringAddToFolderAction', | ||
| 149 | as HashRef[AddToFolderAction()]; | ||
| 150 | |||
| 151 | declare 'RemoveFromFolderAction', | ||
| 152 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::RemoveFromFolderAction']; | ||
| 153 | |||
| 154 | coerce 'RemoveFromFolderAction', | ||
| 155 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::RemoveFromFolderAction'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedRemoveFromFolderAction', | ||
| 158 | as ArrayRef[RemoveFromFolderAction()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedRemoveFromFolderAction', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::RemoveFromFolderAction'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringRemoveFromFolderAction', | ||
| 164 | as HashRef[RemoveFromFolderAction()]; | ||
| 165 | |||
| 166 | declare 'PublishAction', | ||
| 167 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::PublishAction']; | ||
| 168 | |||
| 169 | coerce 'PublishAction', | ||
| 170 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::PublishAction'->new($_) }; | ||
| 171 | |||
| 172 | declare 'RepeatedPublishAction', | ||
| 173 | as ArrayRef[PublishAction()]; | ||
| 174 | |||
| 175 | coerce 'RepeatedPublishAction', | ||
| 176 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::PublishAction'->new($_) } @$_ ] }; | ||
| 177 | |||
| 178 | declare 'MapStringPublishAction', | ||
| 179 | as HashRef[PublishAction()]; | ||
| 180 | |||
| 181 | declare 'DeleteDocumentAction', | ||
| 182 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::DeleteDocumentAction']; | ||
| 183 | |||
| 184 | coerce 'DeleteDocumentAction', | ||
| 185 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::DeleteDocumentAction'->new($_) }; | ||
| 186 | |||
| 187 | declare 'RepeatedDeleteDocumentAction', | ||
| 188 | as ArrayRef[DeleteDocumentAction()]; | ||
| 189 | |||
| 190 | coerce 'RepeatedDeleteDocumentAction', | ||
| 191 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::DeleteDocumentAction'->new($_) } @$_ ] }; | ||
| 192 | |||
| 193 | declare 'MapStringDeleteDocumentAction', | ||
| 194 | as HashRef[DeleteDocumentAction()]; | ||
| 195 | |||
| 196 | declare 'RuleEngineOutput', | ||
| 197 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleEngineOutput']; | ||
| 198 | |||
| 199 | coerce 'RuleEngineOutput', | ||
| 200 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleEngineOutput'->new($_) }; | ||
| 201 | |||
| 202 | declare 'RepeatedRuleEngineOutput', | ||
| 203 | as ArrayRef[RuleEngineOutput()]; | ||
| 204 | |||
| 205 | coerce 'RepeatedRuleEngineOutput', | ||
| 206 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleEngineOutput'->new($_) } @$_ ] }; | ||
| 207 | |||
| 208 | declare 'MapStringRuleEngineOutput', | ||
| 209 | as HashRef[RuleEngineOutput()]; | ||
| 210 | |||
| 211 | declare 'RuleEvaluatorOutput', | ||
| 212 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleEvaluatorOutput']; | ||
| 213 | |||
| 214 | coerce 'RuleEvaluatorOutput', | ||
| 215 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleEvaluatorOutput'->new($_) }; | ||
| 216 | |||
| 217 | declare 'RepeatedRuleEvaluatorOutput', | ||
| 218 | as ArrayRef[RuleEvaluatorOutput()]; | ||
| 219 | |||
| 220 | coerce 'RepeatedRuleEvaluatorOutput', | ||
| 221 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleEvaluatorOutput'->new($_) } @$_ ] }; | ||
| 222 | |||
| 223 | declare 'MapStringRuleEvaluatorOutput', | ||
| 224 | as HashRef[RuleEvaluatorOutput()]; | ||
| 225 | |||
| 226 | declare 'InvalidRule', | ||
| 227 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::InvalidRule']; | ||
| 228 | |||
| 229 | coerce 'InvalidRule', | ||
| 230 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::InvalidRule'->new($_) }; | ||
| 231 | |||
| 232 | declare 'RepeatedInvalidRule', | ||
| 233 | as ArrayRef[InvalidRule()]; | ||
| 234 | |||
| 235 | coerce 'RepeatedInvalidRule', | ||
| 236 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::InvalidRule'->new($_) } @$_ ] }; | ||
| 237 | |||
| 238 | declare 'MapStringInvalidRule', | ||
| 239 | as HashRef[InvalidRule()]; | ||
| 240 | |||
| 241 | declare 'ActionExecutorOutput', | ||
| 242 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::ActionExecutorOutput']; | ||
| 243 | |||
| 244 | coerce 'ActionExecutorOutput', | ||
| 245 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::ActionExecutorOutput'->new($_) }; | ||
| 246 | |||
| 247 | declare 'RepeatedActionExecutorOutput', | ||
| 248 | as ArrayRef[ActionExecutorOutput()]; | ||
| 249 | |||
| 250 | coerce 'RepeatedActionExecutorOutput', | ||
| 251 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::ActionExecutorOutput'->new($_) } @$_ ] }; | ||
| 252 | |||
| 253 | declare 'MapStringActionExecutorOutput', | ||
| 254 | as HashRef[ActionExecutorOutput()]; | ||
| 255 | |||
| 256 | declare 'RuleActionsPair', | ||
| 257 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleActionsPair']; | ||
| 258 | |||
| 259 | coerce 'RuleActionsPair', | ||
| 260 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleActionsPair'->new($_) }; | ||
| 261 | |||
| 262 | declare 'RepeatedRuleActionsPair', | ||
| 263 | as ArrayRef[RuleActionsPair()]; | ||
| 264 | |||
| 265 | coerce 'RepeatedRuleActionsPair', | ||
| 266 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleActionsPair'->new($_) } @$_ ] }; | ||
| 267 | |||
| 268 | declare 'MapStringRuleActionsPair', | ||
| 269 | as HashRef[RuleActionsPair()]; | ||
| 270 | |||
| 271 | declare 'ActionOutput', | ||
| 272 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::RuleEngine::ActionOutput']; | ||
| 273 | |||
| 274 | coerce 'ActionOutput', | ||
| 275 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::ActionOutput'->new($_) }; | ||
| 276 | |||
| 277 | declare 'RepeatedActionOutput', | ||
| 278 | as ArrayRef[ActionOutput()]; | ||
| 279 | |||
| 280 | coerce 'RepeatedActionOutput', | ||
| 281 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::RuleEngine::ActionOutput'->new($_) } @$_ ] }; | ||
| 282 | |||
| 283 | declare 'MapStringActionOutput', | ||
| 284 | as HashRef[ActionOutput()]; | ||
| 285 | |||
| 286 | declare 'State', | ||
| 287 | as (Int | Str); | ||
| 288 | |||
| 289 | 1; | ||
| 290 | |||
| 291 | __END__ |