| 1 | package Google::Cloud::Eventarc::V1::GoogleApiSource::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 'GoogleApiSource', | ||
| 11 | as InstanceOf['Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource']; | ||
| 12 | |||
| 13 | coerce 'GoogleApiSource', | ||
| 14 | from HashRef, via { 'Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedGoogleApiSource', | ||
| 17 | as ArrayRef[GoogleApiSource()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedGoogleApiSource', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringGoogleApiSource', | ||
| 23 | as HashRef[GoogleApiSource()]; | ||
| 24 | |||
| 25 | declare 'ProjectSubscriptions', | ||
| 26 | as InstanceOf['Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource::ProjectSubscriptions']; | ||
| 27 | |||
| 28 | coerce 'ProjectSubscriptions', | ||
| 29 | from HashRef, via { 'Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource::ProjectSubscriptions'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedProjectSubscriptions', | ||
| 32 | as ArrayRef[ProjectSubscriptions()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedProjectSubscriptions', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource::ProjectSubscriptions'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringProjectSubscriptions', | ||
| 38 | as HashRef[ProjectSubscriptions()]; | ||
| 39 | |||
| 40 | declare 'OrganizationSubscription', | ||
| 41 | as InstanceOf['Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource::OrganizationSubscription']; | ||
| 42 | |||
| 43 | coerce 'OrganizationSubscription', | ||
| 44 | from HashRef, via { 'Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource::OrganizationSubscription'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedOrganizationSubscription', | ||
| 47 | as ArrayRef[OrganizationSubscription()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedOrganizationSubscription', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource::OrganizationSubscription'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringOrganizationSubscription', | ||
| 53 | as HashRef[OrganizationSubscription()]; | ||
| 54 | |||
| 55 | declare 'LabelsEntry', | ||
| 56 | as InstanceOf['Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource::LabelsEntry']; | ||
| 57 | |||
| 58 | coerce 'LabelsEntry', | ||
| 59 | from HashRef, via { 'Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource::LabelsEntry'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedLabelsEntry', | ||
| 62 | as ArrayRef[LabelsEntry()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedLabelsEntry', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource::LabelsEntry'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringLabelsEntry', | ||
| 68 | as HashRef[LabelsEntry()]; | ||
| 69 | |||
| 70 | declare 'AnnotationsEntry', | ||
| 71 | as InstanceOf['Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource::AnnotationsEntry']; | ||
| 72 | |||
| 73 | coerce 'AnnotationsEntry', | ||
| 74 | from HashRef, via { 'Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource::AnnotationsEntry'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedAnnotationsEntry', | ||
| 77 | as ArrayRef[AnnotationsEntry()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedAnnotationsEntry', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Eventarc::V1::GoogleApiSource::GoogleApiSource::AnnotationsEntry'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringAnnotationsEntry', | ||
| 83 | as HashRef[AnnotationsEntry()]; | ||
| 84 | |||
| 85 | 1; | ||
| 86 | |||
| 87 | __END__ |