| 1 | package Google::Cloud::Workflows::Executions::V1::Executions::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 'ExecutionView', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'Execution', | ||
| 14 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::Execution']; | ||
| 15 | |||
| 16 | coerce 'Execution', | ||
| 17 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedExecution', | ||
| 20 | as ArrayRef[Execution()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedExecution', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringExecution', | ||
| 26 | as HashRef[Execution()]; | ||
| 27 | |||
| 28 | declare 'State', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'CallLogLevel', | ||
| 32 | as (Int | Str); | ||
| 33 | |||
| 34 | declare 'StackTraceElement', | ||
| 35 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::Execution::StackTraceElement']; | ||
| 36 | |||
| 37 | coerce 'StackTraceElement', | ||
| 38 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::StackTraceElement'->new($_) }; | ||
| 39 | |||
| 40 | declare 'RepeatedStackTraceElement', | ||
| 41 | as ArrayRef[StackTraceElement()]; | ||
| 42 | |||
| 43 | coerce 'RepeatedStackTraceElement', | ||
| 44 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::StackTraceElement'->new($_) } @$_ ] }; | ||
| 45 | |||
| 46 | declare 'MapStringStackTraceElement', | ||
| 47 | as HashRef[StackTraceElement()]; | ||
| 48 | |||
| 49 | declare 'Position', | ||
| 50 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::Execution::StackTraceElement::Position']; | ||
| 51 | |||
| 52 | coerce 'Position', | ||
| 53 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::StackTraceElement::Position'->new($_) }; | ||
| 54 | |||
| 55 | declare 'RepeatedPosition', | ||
| 56 | as ArrayRef[Position()]; | ||
| 57 | |||
| 58 | coerce 'RepeatedPosition', | ||
| 59 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::StackTraceElement::Position'->new($_) } @$_ ] }; | ||
| 60 | |||
| 61 | declare 'MapStringPosition', | ||
| 62 | as HashRef[Position()]; | ||
| 63 | |||
| 64 | declare 'StackTrace', | ||
| 65 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::Execution::StackTrace']; | ||
| 66 | |||
| 67 | coerce 'StackTrace', | ||
| 68 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::StackTrace'->new($_) }; | ||
| 69 | |||
| 70 | declare 'RepeatedStackTrace', | ||
| 71 | as ArrayRef[StackTrace()]; | ||
| 72 | |||
| 73 | coerce 'RepeatedStackTrace', | ||
| 74 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::StackTrace'->new($_) } @$_ ] }; | ||
| 75 | |||
| 76 | declare 'MapStringStackTrace', | ||
| 77 | as HashRef[StackTrace()]; | ||
| 78 | |||
| 79 | declare 'Error', | ||
| 80 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::Execution::Error']; | ||
| 81 | |||
| 82 | coerce 'Error', | ||
| 83 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::Error'->new($_) }; | ||
| 84 | |||
| 85 | declare 'RepeatedError', | ||
| 86 | as ArrayRef[Error()]; | ||
| 87 | |||
| 88 | coerce 'RepeatedError', | ||
| 89 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::Error'->new($_) } @$_ ] }; | ||
| 90 | |||
| 91 | declare 'MapStringError', | ||
| 92 | as HashRef[Error()]; | ||
| 93 | |||
| 94 | declare 'Status', | ||
| 95 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::Execution::Status']; | ||
| 96 | |||
| 97 | coerce 'Status', | ||
| 98 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::Status'->new($_) }; | ||
| 99 | |||
| 100 | declare 'RepeatedStatus', | ||
| 101 | as ArrayRef[Status()]; | ||
| 102 | |||
| 103 | coerce 'RepeatedStatus', | ||
| 104 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::Status'->new($_) } @$_ ] }; | ||
| 105 | |||
| 106 | declare 'MapStringStatus', | ||
| 107 | as HashRef[Status()]; | ||
| 108 | |||
| 109 | declare 'Step', | ||
| 110 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::Execution::Status::Step']; | ||
| 111 | |||
| 112 | coerce 'Step', | ||
| 113 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::Status::Step'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedStep', | ||
| 116 | as ArrayRef[Step()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedStep', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::Status::Step'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringStep', | ||
| 122 | as HashRef[Step()]; | ||
| 123 | |||
| 124 | declare 'StateError', | ||
| 125 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::Execution::StateError']; | ||
| 126 | |||
| 127 | coerce 'StateError', | ||
| 128 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::StateError'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedStateError', | ||
| 131 | as ArrayRef[StateError()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedStateError', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::StateError'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringStateError', | ||
| 137 | as HashRef[StateError()]; | ||
| 138 | |||
| 139 | declare 'Type', | ||
| 140 | as (Int | Str); | ||
| 141 | |||
| 142 | declare 'LabelsEntry', | ||
| 143 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::Execution::LabelsEntry']; | ||
| 144 | |||
| 145 | coerce 'LabelsEntry', | ||
| 146 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::LabelsEntry'->new($_) }; | ||
| 147 | |||
| 148 | declare 'RepeatedLabelsEntry', | ||
| 149 | as ArrayRef[LabelsEntry()]; | ||
| 150 | |||
| 151 | coerce 'RepeatedLabelsEntry', | ||
| 152 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::Execution::LabelsEntry'->new($_) } @$_ ] }; | ||
| 153 | |||
| 154 | declare 'MapStringLabelsEntry', | ||
| 155 | as HashRef[LabelsEntry()]; | ||
| 156 | |||
| 157 | declare 'ListExecutionsRequest', | ||
| 158 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::ListExecutionsRequest']; | ||
| 159 | |||
| 160 | coerce 'ListExecutionsRequest', | ||
| 161 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::ListExecutionsRequest'->new($_) }; | ||
| 162 | |||
| 163 | declare 'RepeatedListExecutionsRequest', | ||
| 164 | as ArrayRef[ListExecutionsRequest()]; | ||
| 165 | |||
| 166 | coerce 'RepeatedListExecutionsRequest', | ||
| 167 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::ListExecutionsRequest'->new($_) } @$_ ] }; | ||
| 168 | |||
| 169 | declare 'MapStringListExecutionsRequest', | ||
| 170 | as HashRef[ListExecutionsRequest()]; | ||
| 171 | |||
| 172 | declare 'ListExecutionsResponse', | ||
| 173 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::ListExecutionsResponse']; | ||
| 174 | |||
| 175 | coerce 'ListExecutionsResponse', | ||
| 176 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::ListExecutionsResponse'->new($_) }; | ||
| 177 | |||
| 178 | declare 'RepeatedListExecutionsResponse', | ||
| 179 | as ArrayRef[ListExecutionsResponse()]; | ||
| 180 | |||
| 181 | coerce 'RepeatedListExecutionsResponse', | ||
| 182 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::ListExecutionsResponse'->new($_) } @$_ ] }; | ||
| 183 | |||
| 184 | declare 'MapStringListExecutionsResponse', | ||
| 185 | as HashRef[ListExecutionsResponse()]; | ||
| 186 | |||
| 187 | declare 'CreateExecutionRequest', | ||
| 188 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::CreateExecutionRequest']; | ||
| 189 | |||
| 190 | coerce 'CreateExecutionRequest', | ||
| 191 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::CreateExecutionRequest'->new($_) }; | ||
| 192 | |||
| 193 | declare 'RepeatedCreateExecutionRequest', | ||
| 194 | as ArrayRef[CreateExecutionRequest()]; | ||
| 195 | |||
| 196 | coerce 'RepeatedCreateExecutionRequest', | ||
| 197 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::CreateExecutionRequest'->new($_) } @$_ ] }; | ||
| 198 | |||
| 199 | declare 'MapStringCreateExecutionRequest', | ||
| 200 | as HashRef[CreateExecutionRequest()]; | ||
| 201 | |||
| 202 | declare 'GetExecutionRequest', | ||
| 203 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::GetExecutionRequest']; | ||
| 204 | |||
| 205 | coerce 'GetExecutionRequest', | ||
| 206 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::GetExecutionRequest'->new($_) }; | ||
| 207 | |||
| 208 | declare 'RepeatedGetExecutionRequest', | ||
| 209 | as ArrayRef[GetExecutionRequest()]; | ||
| 210 | |||
| 211 | coerce 'RepeatedGetExecutionRequest', | ||
| 212 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::GetExecutionRequest'->new($_) } @$_ ] }; | ||
| 213 | |||
| 214 | declare 'MapStringGetExecutionRequest', | ||
| 215 | as HashRef[GetExecutionRequest()]; | ||
| 216 | |||
| 217 | declare 'CancelExecutionRequest', | ||
| 218 | as InstanceOf['Google::Cloud::Workflows::Executions::V1::Executions::CancelExecutionRequest']; | ||
| 219 | |||
| 220 | coerce 'CancelExecutionRequest', | ||
| 221 | from HashRef, via { 'Google::Cloud::Workflows::Executions::V1::Executions::CancelExecutionRequest'->new($_) }; | ||
| 222 | |||
| 223 | declare 'RepeatedCancelExecutionRequest', | ||
| 224 | as ArrayRef[CancelExecutionRequest()]; | ||
| 225 | |||
| 226 | coerce 'RepeatedCancelExecutionRequest', | ||
| 227 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::Executions::V1::Executions::CancelExecutionRequest'->new($_) } @$_ ] }; | ||
| 228 | |||
| 229 | declare 'MapStringCancelExecutionRequest', | ||
| 230 | as HashRef[CancelExecutionRequest()]; | ||
| 231 | |||
| 232 | 1; | ||
| 233 | |||
| 234 | __END__ |