| 1 | package Google::Cloud::Ces::V1::AgentTransfers::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 'ExpressionCondition', | ||
| 11 | as InstanceOf['Google::Cloud::Ces::V1::AgentTransfers::ExpressionCondition']; | ||
| 12 | |||
| 13 | coerce 'ExpressionCondition', | ||
| 14 | from HashRef, via { 'Google::Cloud::Ces::V1::AgentTransfers::ExpressionCondition'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedExpressionCondition', | ||
| 17 | as ArrayRef[ExpressionCondition()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedExpressionCondition', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::AgentTransfers::ExpressionCondition'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringExpressionCondition', | ||
| 23 | as HashRef[ExpressionCondition()]; | ||
| 24 | |||
| 25 | declare 'PythonCodeCondition', | ||
| 26 | as InstanceOf['Google::Cloud::Ces::V1::AgentTransfers::PythonCodeCondition']; | ||
| 27 | |||
| 28 | coerce 'PythonCodeCondition', | ||
| 29 | from HashRef, via { 'Google::Cloud::Ces::V1::AgentTransfers::PythonCodeCondition'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedPythonCodeCondition', | ||
| 32 | as ArrayRef[PythonCodeCondition()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedPythonCodeCondition', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::AgentTransfers::PythonCodeCondition'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringPythonCodeCondition', | ||
| 38 | as HashRef[PythonCodeCondition()]; | ||
| 39 | |||
| 40 | declare 'TransferRule', | ||
| 41 | as InstanceOf['Google::Cloud::Ces::V1::AgentTransfers::TransferRule']; | ||
| 42 | |||
| 43 | coerce 'TransferRule', | ||
| 44 | from HashRef, via { 'Google::Cloud::Ces::V1::AgentTransfers::TransferRule'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedTransferRule', | ||
| 47 | as ArrayRef[TransferRule()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedTransferRule', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::AgentTransfers::TransferRule'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringTransferRule', | ||
| 53 | as HashRef[TransferRule()]; | ||
| 54 | |||
| 55 | declare 'Direction', | ||
| 56 | as (Int | Str); | ||
| 57 | |||
| 58 | declare 'DeterministicTransfer', | ||
| 59 | as InstanceOf['Google::Cloud::Ces::V1::AgentTransfers::TransferRule::DeterministicTransfer']; | ||
| 60 | |||
| 61 | coerce 'DeterministicTransfer', | ||
| 62 | from HashRef, via { 'Google::Cloud::Ces::V1::AgentTransfers::TransferRule::DeterministicTransfer'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedDeterministicTransfer', | ||
| 65 | as ArrayRef[DeterministicTransfer()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedDeterministicTransfer', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::AgentTransfers::TransferRule::DeterministicTransfer'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringDeterministicTransfer', | ||
| 71 | as HashRef[DeterministicTransfer()]; | ||
| 72 | |||
| 73 | declare 'DisablePlannerTransfer', | ||
| 74 | as InstanceOf['Google::Cloud::Ces::V1::AgentTransfers::TransferRule::DisablePlannerTransfer']; | ||
| 75 | |||
| 76 | coerce 'DisablePlannerTransfer', | ||
| 77 | from HashRef, via { 'Google::Cloud::Ces::V1::AgentTransfers::TransferRule::DisablePlannerTransfer'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedDisablePlannerTransfer', | ||
| 80 | as ArrayRef[DisablePlannerTransfer()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedDisablePlannerTransfer', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::AgentTransfers::TransferRule::DisablePlannerTransfer'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringDisablePlannerTransfer', | ||
| 86 | as HashRef[DisablePlannerTransfer()]; | ||
| 87 | |||
| 88 | 1; | ||
| 89 | |||
| 90 | __END__ |