| 1 | package Google::Cloud::Dataplex::V1::ApprovalWorkflow::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 'ChangeRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Dataplex::V1::ApprovalWorkflow::ChangeRequest']; | ||
| 12 | |||
| 13 | coerce 'ChangeRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Dataplex::V1::ApprovalWorkflow::ChangeRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedChangeRequest', | ||
| 17 | as ArrayRef[ChangeRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedChangeRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dataplex::V1::ApprovalWorkflow::ChangeRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringChangeRequest', | ||
| 23 | as HashRef[ChangeRequest()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'ChangeType', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'LabelsEntry', | ||
| 32 | as InstanceOf['Google::Cloud::Dataplex::V1::ApprovalWorkflow::ChangeRequest::LabelsEntry']; | ||
| 33 | |||
| 34 | coerce 'LabelsEntry', | ||
| 35 | from HashRef, via { 'Google::Cloud::Dataplex::V1::ApprovalWorkflow::ChangeRequest::LabelsEntry'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedLabelsEntry', | ||
| 38 | as ArrayRef[LabelsEntry()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedLabelsEntry', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dataplex::V1::ApprovalWorkflow::ChangeRequest::LabelsEntry'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringLabelsEntry', | ||
| 44 | as HashRef[LabelsEntry()]; | ||
| 45 | |||
| 46 | declare 'DataProductAccessRequest', | ||
| 47 | as InstanceOf['Google::Cloud::Dataplex::V1::ApprovalWorkflow::DataProductAccessRequest']; | ||
| 48 | |||
| 49 | coerce 'DataProductAccessRequest', | ||
| 50 | from HashRef, via { 'Google::Cloud::Dataplex::V1::ApprovalWorkflow::DataProductAccessRequest'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedDataProductAccessRequest', | ||
| 53 | as ArrayRef[DataProductAccessRequest()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedDataProductAccessRequest', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dataplex::V1::ApprovalWorkflow::DataProductAccessRequest'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringDataProductAccessRequest', | ||
| 59 | as HashRef[DataProductAccessRequest()]; | ||
| 60 | |||
| 61 | 1; | ||
| 62 | |||
| 63 | __END__ |