| 1 | package Google::Cloud::Workflows::V1beta::Workflows::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 'Workflow', | ||
| 11 | as InstanceOf['Google::Cloud::Workflows::V1beta::Workflows::Workflow']; | ||
| 12 | |||
| 13 | coerce 'Workflow', | ||
| 14 | from HashRef, via { 'Google::Cloud::Workflows::V1beta::Workflows::Workflow'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedWorkflow', | ||
| 17 | as ArrayRef[Workflow()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedWorkflow', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::V1beta::Workflows::Workflow'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringWorkflow', | ||
| 23 | as HashRef[Workflow()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'LabelsEntry', | ||
| 29 | as InstanceOf['Google::Cloud::Workflows::V1beta::Workflows::Workflow::LabelsEntry']; | ||
| 30 | |||
| 31 | coerce 'LabelsEntry', | ||
| 32 | from HashRef, via { 'Google::Cloud::Workflows::V1beta::Workflows::Workflow::LabelsEntry'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedLabelsEntry', | ||
| 35 | as ArrayRef[LabelsEntry()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedLabelsEntry', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::V1beta::Workflows::Workflow::LabelsEntry'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringLabelsEntry', | ||
| 41 | as HashRef[LabelsEntry()]; | ||
| 42 | |||
| 43 | declare 'ListWorkflowsRequest', | ||
| 44 | as InstanceOf['Google::Cloud::Workflows::V1beta::Workflows::ListWorkflowsRequest']; | ||
| 45 | |||
| 46 | coerce 'ListWorkflowsRequest', | ||
| 47 | from HashRef, via { 'Google::Cloud::Workflows::V1beta::Workflows::ListWorkflowsRequest'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedListWorkflowsRequest', | ||
| 50 | as ArrayRef[ListWorkflowsRequest()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedListWorkflowsRequest', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::V1beta::Workflows::ListWorkflowsRequest'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringListWorkflowsRequest', | ||
| 56 | as HashRef[ListWorkflowsRequest()]; | ||
| 57 | |||
| 58 | declare 'ListWorkflowsResponse', | ||
| 59 | as InstanceOf['Google::Cloud::Workflows::V1beta::Workflows::ListWorkflowsResponse']; | ||
| 60 | |||
| 61 | coerce 'ListWorkflowsResponse', | ||
| 62 | from HashRef, via { 'Google::Cloud::Workflows::V1beta::Workflows::ListWorkflowsResponse'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedListWorkflowsResponse', | ||
| 65 | as ArrayRef[ListWorkflowsResponse()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedListWorkflowsResponse', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::V1beta::Workflows::ListWorkflowsResponse'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringListWorkflowsResponse', | ||
| 71 | as HashRef[ListWorkflowsResponse()]; | ||
| 72 | |||
| 73 | declare 'GetWorkflowRequest', | ||
| 74 | as InstanceOf['Google::Cloud::Workflows::V1beta::Workflows::GetWorkflowRequest']; | ||
| 75 | |||
| 76 | coerce 'GetWorkflowRequest', | ||
| 77 | from HashRef, via { 'Google::Cloud::Workflows::V1beta::Workflows::GetWorkflowRequest'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedGetWorkflowRequest', | ||
| 80 | as ArrayRef[GetWorkflowRequest()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedGetWorkflowRequest', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::V1beta::Workflows::GetWorkflowRequest'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringGetWorkflowRequest', | ||
| 86 | as HashRef[GetWorkflowRequest()]; | ||
| 87 | |||
| 88 | declare 'CreateWorkflowRequest', | ||
| 89 | as InstanceOf['Google::Cloud::Workflows::V1beta::Workflows::CreateWorkflowRequest']; | ||
| 90 | |||
| 91 | coerce 'CreateWorkflowRequest', | ||
| 92 | from HashRef, via { 'Google::Cloud::Workflows::V1beta::Workflows::CreateWorkflowRequest'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedCreateWorkflowRequest', | ||
| 95 | as ArrayRef[CreateWorkflowRequest()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedCreateWorkflowRequest', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::V1beta::Workflows::CreateWorkflowRequest'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringCreateWorkflowRequest', | ||
| 101 | as HashRef[CreateWorkflowRequest()]; | ||
| 102 | |||
| 103 | declare 'DeleteWorkflowRequest', | ||
| 104 | as InstanceOf['Google::Cloud::Workflows::V1beta::Workflows::DeleteWorkflowRequest']; | ||
| 105 | |||
| 106 | coerce 'DeleteWorkflowRequest', | ||
| 107 | from HashRef, via { 'Google::Cloud::Workflows::V1beta::Workflows::DeleteWorkflowRequest'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedDeleteWorkflowRequest', | ||
| 110 | as ArrayRef[DeleteWorkflowRequest()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedDeleteWorkflowRequest', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::V1beta::Workflows::DeleteWorkflowRequest'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringDeleteWorkflowRequest', | ||
| 116 | as HashRef[DeleteWorkflowRequest()]; | ||
| 117 | |||
| 118 | declare 'UpdateWorkflowRequest', | ||
| 119 | as InstanceOf['Google::Cloud::Workflows::V1beta::Workflows::UpdateWorkflowRequest']; | ||
| 120 | |||
| 121 | coerce 'UpdateWorkflowRequest', | ||
| 122 | from HashRef, via { 'Google::Cloud::Workflows::V1beta::Workflows::UpdateWorkflowRequest'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedUpdateWorkflowRequest', | ||
| 125 | as ArrayRef[UpdateWorkflowRequest()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedUpdateWorkflowRequest', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::V1beta::Workflows::UpdateWorkflowRequest'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringUpdateWorkflowRequest', | ||
| 131 | as HashRef[UpdateWorkflowRequest()]; | ||
| 132 | |||
| 133 | declare 'OperationMetadata', | ||
| 134 | as InstanceOf['Google::Cloud::Workflows::V1beta::Workflows::OperationMetadata']; | ||
| 135 | |||
| 136 | coerce 'OperationMetadata', | ||
| 137 | from HashRef, via { 'Google::Cloud::Workflows::V1beta::Workflows::OperationMetadata'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedOperationMetadata', | ||
| 140 | as ArrayRef[OperationMetadata()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedOperationMetadata', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Workflows::V1beta::Workflows::OperationMetadata'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringOperationMetadata', | ||
| 146 | as HashRef[OperationMetadata()]; | ||
| 147 | |||
| 148 | 1; | ||
| 149 | |||
| 150 | __END__ |