| 1 | package Google::Cloud::Networkconnectivity::V1alpha1::Hub::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 'State', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'Hub', | ||
| 14 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::Hub']; | ||
| 15 | |||
| 16 | coerce 'Hub', | ||
| 17 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::Hub'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedHub', | ||
| 20 | as ArrayRef[Hub()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedHub', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::Hub'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringHub', | ||
| 26 | as HashRef[Hub()]; | ||
| 27 | |||
| 28 | declare 'LabelsEntry', | ||
| 29 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::Hub::LabelsEntry']; | ||
| 30 | |||
| 31 | coerce 'LabelsEntry', | ||
| 32 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::Hub::LabelsEntry'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedLabelsEntry', | ||
| 35 | as ArrayRef[LabelsEntry()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedLabelsEntry', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::Hub::LabelsEntry'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringLabelsEntry', | ||
| 41 | as HashRef[LabelsEntry()]; | ||
| 42 | |||
| 43 | declare 'Spoke', | ||
| 44 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::Spoke']; | ||
| 45 | |||
| 46 | coerce 'Spoke', | ||
| 47 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::Spoke'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedSpoke', | ||
| 50 | as ArrayRef[Spoke()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedSpoke', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::Spoke'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringSpoke', | ||
| 56 | as HashRef[Spoke()]; | ||
| 57 | |||
| 58 | declare 'LabelsEntry', | ||
| 59 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::Spoke::LabelsEntry']; | ||
| 60 | |||
| 61 | coerce 'LabelsEntry', | ||
| 62 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::Spoke::LabelsEntry'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedLabelsEntry', | ||
| 65 | as ArrayRef[LabelsEntry()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedLabelsEntry', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::Spoke::LabelsEntry'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringLabelsEntry', | ||
| 71 | as HashRef[LabelsEntry()]; | ||
| 72 | |||
| 73 | declare 'ListHubsRequest', | ||
| 74 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListHubsRequest']; | ||
| 75 | |||
| 76 | coerce 'ListHubsRequest', | ||
| 77 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListHubsRequest'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedListHubsRequest', | ||
| 80 | as ArrayRef[ListHubsRequest()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedListHubsRequest', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListHubsRequest'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringListHubsRequest', | ||
| 86 | as HashRef[ListHubsRequest()]; | ||
| 87 | |||
| 88 | declare 'ListHubsResponse', | ||
| 89 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListHubsResponse']; | ||
| 90 | |||
| 91 | coerce 'ListHubsResponse', | ||
| 92 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListHubsResponse'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedListHubsResponse', | ||
| 95 | as ArrayRef[ListHubsResponse()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedListHubsResponse', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListHubsResponse'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringListHubsResponse', | ||
| 101 | as HashRef[ListHubsResponse()]; | ||
| 102 | |||
| 103 | declare 'GetHubRequest', | ||
| 104 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::GetHubRequest']; | ||
| 105 | |||
| 106 | coerce 'GetHubRequest', | ||
| 107 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::GetHubRequest'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedGetHubRequest', | ||
| 110 | as ArrayRef[GetHubRequest()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedGetHubRequest', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::GetHubRequest'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringGetHubRequest', | ||
| 116 | as HashRef[GetHubRequest()]; | ||
| 117 | |||
| 118 | declare 'CreateHubRequest', | ||
| 119 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::CreateHubRequest']; | ||
| 120 | |||
| 121 | coerce 'CreateHubRequest', | ||
| 122 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::CreateHubRequest'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedCreateHubRequest', | ||
| 125 | as ArrayRef[CreateHubRequest()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedCreateHubRequest', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::CreateHubRequest'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringCreateHubRequest', | ||
| 131 | as HashRef[CreateHubRequest()]; | ||
| 132 | |||
| 133 | declare 'UpdateHubRequest', | ||
| 134 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::UpdateHubRequest']; | ||
| 135 | |||
| 136 | coerce 'UpdateHubRequest', | ||
| 137 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::UpdateHubRequest'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedUpdateHubRequest', | ||
| 140 | as ArrayRef[UpdateHubRequest()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedUpdateHubRequest', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::UpdateHubRequest'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringUpdateHubRequest', | ||
| 146 | as HashRef[UpdateHubRequest()]; | ||
| 147 | |||
| 148 | declare 'DeleteHubRequest', | ||
| 149 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::DeleteHubRequest']; | ||
| 150 | |||
| 151 | coerce 'DeleteHubRequest', | ||
| 152 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::DeleteHubRequest'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedDeleteHubRequest', | ||
| 155 | as ArrayRef[DeleteHubRequest()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedDeleteHubRequest', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::DeleteHubRequest'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringDeleteHubRequest', | ||
| 161 | as HashRef[DeleteHubRequest()]; | ||
| 162 | |||
| 163 | declare 'ListSpokesRequest', | ||
| 164 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListSpokesRequest']; | ||
| 165 | |||
| 166 | coerce 'ListSpokesRequest', | ||
| 167 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListSpokesRequest'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedListSpokesRequest', | ||
| 170 | as ArrayRef[ListSpokesRequest()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedListSpokesRequest', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListSpokesRequest'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringListSpokesRequest', | ||
| 176 | as HashRef[ListSpokesRequest()]; | ||
| 177 | |||
| 178 | declare 'ListSpokesResponse', | ||
| 179 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListSpokesResponse']; | ||
| 180 | |||
| 181 | coerce 'ListSpokesResponse', | ||
| 182 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListSpokesResponse'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedListSpokesResponse', | ||
| 185 | as ArrayRef[ListSpokesResponse()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedListSpokesResponse', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::ListSpokesResponse'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringListSpokesResponse', | ||
| 191 | as HashRef[ListSpokesResponse()]; | ||
| 192 | |||
| 193 | declare 'GetSpokeRequest', | ||
| 194 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::GetSpokeRequest']; | ||
| 195 | |||
| 196 | coerce 'GetSpokeRequest', | ||
| 197 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::GetSpokeRequest'->new($_) }; | ||
| 198 | |||
| 199 | declare 'RepeatedGetSpokeRequest', | ||
| 200 | as ArrayRef[GetSpokeRequest()]; | ||
| 201 | |||
| 202 | coerce 'RepeatedGetSpokeRequest', | ||
| 203 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::GetSpokeRequest'->new($_) } @$_ ] }; | ||
| 204 | |||
| 205 | declare 'MapStringGetSpokeRequest', | ||
| 206 | as HashRef[GetSpokeRequest()]; | ||
| 207 | |||
| 208 | declare 'CreateSpokeRequest', | ||
| 209 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::CreateSpokeRequest']; | ||
| 210 | |||
| 211 | coerce 'CreateSpokeRequest', | ||
| 212 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::CreateSpokeRequest'->new($_) }; | ||
| 213 | |||
| 214 | declare 'RepeatedCreateSpokeRequest', | ||
| 215 | as ArrayRef[CreateSpokeRequest()]; | ||
| 216 | |||
| 217 | coerce 'RepeatedCreateSpokeRequest', | ||
| 218 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::CreateSpokeRequest'->new($_) } @$_ ] }; | ||
| 219 | |||
| 220 | declare 'MapStringCreateSpokeRequest', | ||
| 221 | as HashRef[CreateSpokeRequest()]; | ||
| 222 | |||
| 223 | declare 'UpdateSpokeRequest', | ||
| 224 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::UpdateSpokeRequest']; | ||
| 225 | |||
| 226 | coerce 'UpdateSpokeRequest', | ||
| 227 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::UpdateSpokeRequest'->new($_) }; | ||
| 228 | |||
| 229 | declare 'RepeatedUpdateSpokeRequest', | ||
| 230 | as ArrayRef[UpdateSpokeRequest()]; | ||
| 231 | |||
| 232 | coerce 'RepeatedUpdateSpokeRequest', | ||
| 233 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::UpdateSpokeRequest'->new($_) } @$_ ] }; | ||
| 234 | |||
| 235 | declare 'MapStringUpdateSpokeRequest', | ||
| 236 | as HashRef[UpdateSpokeRequest()]; | ||
| 237 | |||
| 238 | declare 'DeleteSpokeRequest', | ||
| 239 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::DeleteSpokeRequest']; | ||
| 240 | |||
| 241 | coerce 'DeleteSpokeRequest', | ||
| 242 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::DeleteSpokeRequest'->new($_) }; | ||
| 243 | |||
| 244 | declare 'RepeatedDeleteSpokeRequest', | ||
| 245 | as ArrayRef[DeleteSpokeRequest()]; | ||
| 246 | |||
| 247 | coerce 'RepeatedDeleteSpokeRequest', | ||
| 248 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::DeleteSpokeRequest'->new($_) } @$_ ] }; | ||
| 249 | |||
| 250 | declare 'MapStringDeleteSpokeRequest', | ||
| 251 | as HashRef[DeleteSpokeRequest()]; | ||
| 252 | |||
| 253 | declare 'RouterApplianceInstance', | ||
| 254 | as InstanceOf['Google::Cloud::Networkconnectivity::V1alpha1::Hub::RouterApplianceInstance']; | ||
| 255 | |||
| 256 | coerce 'RouterApplianceInstance', | ||
| 257 | from HashRef, via { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::RouterApplianceInstance'->new($_) }; | ||
| 258 | |||
| 259 | declare 'RepeatedRouterApplianceInstance', | ||
| 260 | as ArrayRef[RouterApplianceInstance()]; | ||
| 261 | |||
| 262 | coerce 'RepeatedRouterApplianceInstance', | ||
| 263 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Networkconnectivity::V1alpha1::Hub::RouterApplianceInstance'->new($_) } @$_ ] }; | ||
| 264 | |||
| 265 | declare 'MapStringRouterApplianceInstance', | ||
| 266 | as HashRef[RouterApplianceInstance()]; | ||
| 267 | |||
| 268 | 1; | ||
| 269 | |||
| 270 | __END__ |