| 1 | package Google::Cloud::Run::V2::Service::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 'CreateServiceRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Run::V2::Service::CreateServiceRequest']; | ||
| 12 | |||
| 13 | coerce 'CreateServiceRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Run::V2::Service::CreateServiceRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedCreateServiceRequest', | ||
| 17 | as ArrayRef[CreateServiceRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedCreateServiceRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Service::CreateServiceRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringCreateServiceRequest', | ||
| 23 | as HashRef[CreateServiceRequest()]; | ||
| 24 | |||
| 25 | declare 'UpdateServiceRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Run::V2::Service::UpdateServiceRequest']; | ||
| 27 | |||
| 28 | coerce 'UpdateServiceRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Run::V2::Service::UpdateServiceRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedUpdateServiceRequest', | ||
| 32 | as ArrayRef[UpdateServiceRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedUpdateServiceRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Service::UpdateServiceRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringUpdateServiceRequest', | ||
| 38 | as HashRef[UpdateServiceRequest()]; | ||
| 39 | |||
| 40 | declare 'ListServicesRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Run::V2::Service::ListServicesRequest']; | ||
| 42 | |||
| 43 | coerce 'ListServicesRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Run::V2::Service::ListServicesRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedListServicesRequest', | ||
| 47 | as ArrayRef[ListServicesRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedListServicesRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Service::ListServicesRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringListServicesRequest', | ||
| 53 | as HashRef[ListServicesRequest()]; | ||
| 54 | |||
| 55 | declare 'ListServicesResponse', | ||
| 56 | as InstanceOf['Google::Cloud::Run::V2::Service::ListServicesResponse']; | ||
| 57 | |||
| 58 | coerce 'ListServicesResponse', | ||
| 59 | from HashRef, via { 'Google::Cloud::Run::V2::Service::ListServicesResponse'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedListServicesResponse', | ||
| 62 | as ArrayRef[ListServicesResponse()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedListServicesResponse', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Service::ListServicesResponse'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringListServicesResponse', | ||
| 68 | as HashRef[ListServicesResponse()]; | ||
| 69 | |||
| 70 | declare 'GetServiceRequest', | ||
| 71 | as InstanceOf['Google::Cloud::Run::V2::Service::GetServiceRequest']; | ||
| 72 | |||
| 73 | coerce 'GetServiceRequest', | ||
| 74 | from HashRef, via { 'Google::Cloud::Run::V2::Service::GetServiceRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedGetServiceRequest', | ||
| 77 | as ArrayRef[GetServiceRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedGetServiceRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Service::GetServiceRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringGetServiceRequest', | ||
| 83 | as HashRef[GetServiceRequest()]; | ||
| 84 | |||
| 85 | declare 'DeleteServiceRequest', | ||
| 86 | as InstanceOf['Google::Cloud::Run::V2::Service::DeleteServiceRequest']; | ||
| 87 | |||
| 88 | coerce 'DeleteServiceRequest', | ||
| 89 | from HashRef, via { 'Google::Cloud::Run::V2::Service::DeleteServiceRequest'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedDeleteServiceRequest', | ||
| 92 | as ArrayRef[DeleteServiceRequest()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedDeleteServiceRequest', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Service::DeleteServiceRequest'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringDeleteServiceRequest', | ||
| 98 | as HashRef[DeleteServiceRequest()]; | ||
| 99 | |||
| 100 | declare 'Service', | ||
| 101 | as InstanceOf['Google::Cloud::Run::V2::Service::Service']; | ||
| 102 | |||
| 103 | coerce 'Service', | ||
| 104 | from HashRef, via { 'Google::Cloud::Run::V2::Service::Service'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedService', | ||
| 107 | as ArrayRef[Service()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedService', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Service::Service'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringService', | ||
| 113 | as HashRef[Service()]; | ||
| 114 | |||
| 115 | declare 'MultiRegionSettings', | ||
| 116 | as InstanceOf['Google::Cloud::Run::V2::Service::Service::MultiRegionSettings']; | ||
| 117 | |||
| 118 | coerce 'MultiRegionSettings', | ||
| 119 | from HashRef, via { 'Google::Cloud::Run::V2::Service::Service::MultiRegionSettings'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedMultiRegionSettings', | ||
| 122 | as ArrayRef[MultiRegionSettings()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedMultiRegionSettings', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Service::Service::MultiRegionSettings'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringMultiRegionSettings', | ||
| 128 | as HashRef[MultiRegionSettings()]; | ||
| 129 | |||
| 130 | declare 'LabelsEntry', | ||
| 131 | as InstanceOf['Google::Cloud::Run::V2::Service::Service::LabelsEntry']; | ||
| 132 | |||
| 133 | coerce 'LabelsEntry', | ||
| 134 | from HashRef, via { 'Google::Cloud::Run::V2::Service::Service::LabelsEntry'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedLabelsEntry', | ||
| 137 | as ArrayRef[LabelsEntry()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedLabelsEntry', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Service::Service::LabelsEntry'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringLabelsEntry', | ||
| 143 | as HashRef[LabelsEntry()]; | ||
| 144 | |||
| 145 | declare 'AnnotationsEntry', | ||
| 146 | as InstanceOf['Google::Cloud::Run::V2::Service::Service::AnnotationsEntry']; | ||
| 147 | |||
| 148 | coerce 'AnnotationsEntry', | ||
| 149 | from HashRef, via { 'Google::Cloud::Run::V2::Service::Service::AnnotationsEntry'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedAnnotationsEntry', | ||
| 152 | as ArrayRef[AnnotationsEntry()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedAnnotationsEntry', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Run::V2::Service::Service::AnnotationsEntry'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringAnnotationsEntry', | ||
| 158 | as HashRef[AnnotationsEntry()]; | ||
| 159 | |||
| 160 | 1; | ||
| 161 | |||
| 162 | __END__ |