| 1 | package Google::Cloud::Capacityplanner::V1beta::UsageService::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 'QueryUsageHistoriesRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::QueryUsageHistoriesRequest']; | ||
| 12 | |||
| 13 | coerce 'QueryUsageHistoriesRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::QueryUsageHistoriesRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedQueryUsageHistoriesRequest', | ||
| 17 | as ArrayRef[QueryUsageHistoriesRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedQueryUsageHistoriesRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::QueryUsageHistoriesRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringQueryUsageHistoriesRequest', | ||
| 23 | as HashRef[QueryUsageHistoriesRequest()]; | ||
| 24 | |||
| 25 | declare 'QueryUsageHistoriesResponse', | ||
| 26 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::QueryUsageHistoriesResponse']; | ||
| 27 | |||
| 28 | coerce 'QueryUsageHistoriesResponse', | ||
| 29 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::QueryUsageHistoriesResponse'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedQueryUsageHistoriesResponse', | ||
| 32 | as ArrayRef[QueryUsageHistoriesResponse()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedQueryUsageHistoriesResponse', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::QueryUsageHistoriesResponse'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringQueryUsageHistoriesResponse', | ||
| 38 | as HashRef[QueryUsageHistoriesResponse()]; | ||
| 39 | |||
| 40 | declare 'QueryForecastsRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::QueryForecastsRequest']; | ||
| 42 | |||
| 43 | coerce 'QueryForecastsRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::QueryForecastsRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedQueryForecastsRequest', | ||
| 47 | as ArrayRef[QueryForecastsRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedQueryForecastsRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::QueryForecastsRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringQueryForecastsRequest', | ||
| 53 | as HashRef[QueryForecastsRequest()]; | ||
| 54 | |||
| 55 | declare 'QueryForecastsResponse', | ||
| 56 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::QueryForecastsResponse']; | ||
| 57 | |||
| 58 | coerce 'QueryForecastsResponse', | ||
| 59 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::QueryForecastsResponse'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedQueryForecastsResponse', | ||
| 62 | as ArrayRef[QueryForecastsResponse()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedQueryForecastsResponse', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::QueryForecastsResponse'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringQueryForecastsResponse', | ||
| 68 | as HashRef[QueryForecastsResponse()]; | ||
| 69 | |||
| 70 | declare 'QueryReservationsRequest', | ||
| 71 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::QueryReservationsRequest']; | ||
| 72 | |||
| 73 | coerce 'QueryReservationsRequest', | ||
| 74 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::QueryReservationsRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedQueryReservationsRequest', | ||
| 77 | as ArrayRef[QueryReservationsRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedQueryReservationsRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::QueryReservationsRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringQueryReservationsRequest', | ||
| 83 | as HashRef[QueryReservationsRequest()]; | ||
| 84 | |||
| 85 | declare 'ReservationType', | ||
| 86 | as (Int | Str); | ||
| 87 | |||
| 88 | declare 'ShareType', | ||
| 89 | as (Int | Str); | ||
| 90 | |||
| 91 | declare 'OwnershipType', | ||
| 92 | as (Int | Str); | ||
| 93 | |||
| 94 | declare 'ReservationDataLevel', | ||
| 95 | as (Int | Str); | ||
| 96 | |||
| 97 | declare 'QueryReservationsResponse', | ||
| 98 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::QueryReservationsResponse']; | ||
| 99 | |||
| 100 | coerce 'QueryReservationsResponse', | ||
| 101 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::QueryReservationsResponse'->new($_) }; | ||
| 102 | |||
| 103 | declare 'RepeatedQueryReservationsResponse', | ||
| 104 | as ArrayRef[QueryReservationsResponse()]; | ||
| 105 | |||
| 106 | coerce 'RepeatedQueryReservationsResponse', | ||
| 107 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::QueryReservationsResponse'->new($_) } @$_ ] }; | ||
| 108 | |||
| 109 | declare 'MapStringQueryReservationsResponse', | ||
| 110 | as HashRef[QueryReservationsResponse()]; | ||
| 111 | |||
| 112 | declare 'Point', | ||
| 113 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::Point']; | ||
| 114 | |||
| 115 | coerce 'Point', | ||
| 116 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::Point'->new($_) }; | ||
| 117 | |||
| 118 | declare 'RepeatedPoint', | ||
| 119 | as ArrayRef[Point()]; | ||
| 120 | |||
| 121 | coerce 'RepeatedPoint', | ||
| 122 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::Point'->new($_) } @$_ ] }; | ||
| 123 | |||
| 124 | declare 'MapStringPoint', | ||
| 125 | as HashRef[Point()]; | ||
| 126 | |||
| 127 | declare 'Forecast', | ||
| 128 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::Forecast']; | ||
| 129 | |||
| 130 | coerce 'Forecast', | ||
| 131 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::Forecast'->new($_) }; | ||
| 132 | |||
| 133 | declare 'RepeatedForecast', | ||
| 134 | as ArrayRef[Forecast()]; | ||
| 135 | |||
| 136 | coerce 'RepeatedForecast', | ||
| 137 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::Forecast'->new($_) } @$_ ] }; | ||
| 138 | |||
| 139 | declare 'MapStringForecast', | ||
| 140 | as HashRef[Forecast()]; | ||
| 141 | |||
| 142 | declare 'ForecastType', | ||
| 143 | as (Int | Str); | ||
| 144 | |||
| 145 | declare 'Bounds', | ||
| 146 | as (Int | Str); | ||
| 147 | |||
| 148 | declare 'PredictionInterval', | ||
| 149 | as (Int | Str); | ||
| 150 | |||
| 151 | declare 'UsageHistory', | ||
| 152 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::UsageHistory']; | ||
| 153 | |||
| 154 | coerce 'UsageHistory', | ||
| 155 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::UsageHistory'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedUsageHistory', | ||
| 158 | as ArrayRef[UsageHistory()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedUsageHistory', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::UsageHistory'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringUsageHistory', | ||
| 164 | as HashRef[UsageHistory()]; | ||
| 165 | |||
| 166 | declare 'AggregationMethod', | ||
| 167 | as (Int | Str); | ||
| 168 | |||
| 169 | declare 'TimeSeries', | ||
| 170 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::TimeSeries']; | ||
| 171 | |||
| 172 | coerce 'TimeSeries', | ||
| 173 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::TimeSeries'->new($_) }; | ||
| 174 | |||
| 175 | declare 'RepeatedTimeSeries', | ||
| 176 | as ArrayRef[TimeSeries()]; | ||
| 177 | |||
| 178 | coerce 'RepeatedTimeSeries', | ||
| 179 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::TimeSeries'->new($_) } @$_ ] }; | ||
| 180 | |||
| 181 | declare 'MapStringTimeSeries', | ||
| 182 | as HashRef[TimeSeries()]; | ||
| 183 | |||
| 184 | declare 'LocationType', | ||
| 185 | as (Int | Str); | ||
| 186 | |||
| 187 | declare 'ReservationData', | ||
| 188 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::ReservationData']; | ||
| 189 | |||
| 190 | coerce 'ReservationData', | ||
| 191 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ReservationData'->new($_) }; | ||
| 192 | |||
| 193 | declare 'RepeatedReservationData', | ||
| 194 | as ArrayRef[ReservationData()]; | ||
| 195 | |||
| 196 | coerce 'RepeatedReservationData', | ||
| 197 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ReservationData'->new($_) } @$_ ] }; | ||
| 198 | |||
| 199 | declare 'MapStringReservationData', | ||
| 200 | as HashRef[ReservationData()]; | ||
| 201 | |||
| 202 | declare 'MachineShape', | ||
| 203 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::MachineShape']; | ||
| 204 | |||
| 205 | coerce 'MachineShape', | ||
| 206 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::MachineShape'->new($_) }; | ||
| 207 | |||
| 208 | declare 'RepeatedMachineShape', | ||
| 209 | as ArrayRef[MachineShape()]; | ||
| 210 | |||
| 211 | coerce 'RepeatedMachineShape', | ||
| 212 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::MachineShape'->new($_) } @$_ ] }; | ||
| 213 | |||
| 214 | declare 'MapStringMachineShape', | ||
| 215 | as HashRef[MachineShape()]; | ||
| 216 | |||
| 217 | declare 'ExportUsageHistoriesRequest', | ||
| 218 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::ExportUsageHistoriesRequest']; | ||
| 219 | |||
| 220 | coerce 'ExportUsageHistoriesRequest', | ||
| 221 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ExportUsageHistoriesRequest'->new($_) }; | ||
| 222 | |||
| 223 | declare 'RepeatedExportUsageHistoriesRequest', | ||
| 224 | as ArrayRef[ExportUsageHistoriesRequest()]; | ||
| 225 | |||
| 226 | coerce 'RepeatedExportUsageHistoriesRequest', | ||
| 227 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ExportUsageHistoriesRequest'->new($_) } @$_ ] }; | ||
| 228 | |||
| 229 | declare 'MapStringExportUsageHistoriesRequest', | ||
| 230 | as HashRef[ExportUsageHistoriesRequest()]; | ||
| 231 | |||
| 232 | declare 'ExportForecastsRequest', | ||
| 233 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::ExportForecastsRequest']; | ||
| 234 | |||
| 235 | coerce 'ExportForecastsRequest', | ||
| 236 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ExportForecastsRequest'->new($_) }; | ||
| 237 | |||
| 238 | declare 'RepeatedExportForecastsRequest', | ||
| 239 | as ArrayRef[ExportForecastsRequest()]; | ||
| 240 | |||
| 241 | coerce 'RepeatedExportForecastsRequest', | ||
| 242 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ExportForecastsRequest'->new($_) } @$_ ] }; | ||
| 243 | |||
| 244 | declare 'MapStringExportForecastsRequest', | ||
| 245 | as HashRef[ExportForecastsRequest()]; | ||
| 246 | |||
| 247 | declare 'ExportReservationsUsageRequest', | ||
| 248 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::ExportReservationsUsageRequest']; | ||
| 249 | |||
| 250 | coerce 'ExportReservationsUsageRequest', | ||
| 251 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ExportReservationsUsageRequest'->new($_) }; | ||
| 252 | |||
| 253 | declare 'RepeatedExportReservationsUsageRequest', | ||
| 254 | as ArrayRef[ExportReservationsUsageRequest()]; | ||
| 255 | |||
| 256 | coerce 'RepeatedExportReservationsUsageRequest', | ||
| 257 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ExportReservationsUsageRequest'->new($_) } @$_ ] }; | ||
| 258 | |||
| 259 | declare 'MapStringExportReservationsUsageRequest', | ||
| 260 | as HashRef[ExportReservationsUsageRequest()]; | ||
| 261 | |||
| 262 | declare 'ShareType', | ||
| 263 | as (Int | Str); | ||
| 264 | |||
| 265 | declare 'OutputConfig', | ||
| 266 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::OutputConfig']; | ||
| 267 | |||
| 268 | coerce 'OutputConfig', | ||
| 269 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::OutputConfig'->new($_) }; | ||
| 270 | |||
| 271 | declare 'RepeatedOutputConfig', | ||
| 272 | as ArrayRef[OutputConfig()]; | ||
| 273 | |||
| 274 | coerce 'RepeatedOutputConfig', | ||
| 275 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::OutputConfig'->new($_) } @$_ ] }; | ||
| 276 | |||
| 277 | declare 'MapStringOutputConfig', | ||
| 278 | as HashRef[OutputConfig()]; | ||
| 279 | |||
| 280 | declare 'GcsDestination', | ||
| 281 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::GcsDestination']; | ||
| 282 | |||
| 283 | coerce 'GcsDestination', | ||
| 284 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::GcsDestination'->new($_) }; | ||
| 285 | |||
| 286 | declare 'RepeatedGcsDestination', | ||
| 287 | as ArrayRef[GcsDestination()]; | ||
| 288 | |||
| 289 | coerce 'RepeatedGcsDestination', | ||
| 290 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::GcsDestination'->new($_) } @$_ ] }; | ||
| 291 | |||
| 292 | declare 'MapStringGcsDestination', | ||
| 293 | as HashRef[GcsDestination()]; | ||
| 294 | |||
| 295 | declare 'BigQueryDestination', | ||
| 296 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::BigQueryDestination']; | ||
| 297 | |||
| 298 | coerce 'BigQueryDestination', | ||
| 299 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::BigQueryDestination'->new($_) }; | ||
| 300 | |||
| 301 | declare 'RepeatedBigQueryDestination', | ||
| 302 | as ArrayRef[BigQueryDestination()]; | ||
| 303 | |||
| 304 | coerce 'RepeatedBigQueryDestination', | ||
| 305 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::BigQueryDestination'->new($_) } @$_ ] }; | ||
| 306 | |||
| 307 | declare 'MapStringBigQueryDestination', | ||
| 308 | as HashRef[BigQueryDestination()]; | ||
| 309 | |||
| 310 | declare 'PartitionKey', | ||
| 311 | as (Int | Str); | ||
| 312 | |||
| 313 | declare 'WriteDisposition', | ||
| 314 | as (Int | Str); | ||
| 315 | |||
| 316 | declare 'CreateDisposition', | ||
| 317 | as (Int | Str); | ||
| 318 | |||
| 319 | declare 'OperationMetadata', | ||
| 320 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::OperationMetadata']; | ||
| 321 | |||
| 322 | coerce 'OperationMetadata', | ||
| 323 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::OperationMetadata'->new($_) }; | ||
| 324 | |||
| 325 | declare 'RepeatedOperationMetadata', | ||
| 326 | as ArrayRef[OperationMetadata()]; | ||
| 327 | |||
| 328 | coerce 'RepeatedOperationMetadata', | ||
| 329 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::OperationMetadata'->new($_) } @$_ ] }; | ||
| 330 | |||
| 331 | declare 'MapStringOperationMetadata', | ||
| 332 | as HashRef[OperationMetadata()]; | ||
| 333 | |||
| 334 | declare 'ExportUsageHistoriesResponse', | ||
| 335 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::ExportUsageHistoriesResponse']; | ||
| 336 | |||
| 337 | coerce 'ExportUsageHistoriesResponse', | ||
| 338 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ExportUsageHistoriesResponse'->new($_) }; | ||
| 339 | |||
| 340 | declare 'RepeatedExportUsageHistoriesResponse', | ||
| 341 | as ArrayRef[ExportUsageHistoriesResponse()]; | ||
| 342 | |||
| 343 | coerce 'RepeatedExportUsageHistoriesResponse', | ||
| 344 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ExportUsageHistoriesResponse'->new($_) } @$_ ] }; | ||
| 345 | |||
| 346 | declare 'MapStringExportUsageHistoriesResponse', | ||
| 347 | as HashRef[ExportUsageHistoriesResponse()]; | ||
| 348 | |||
| 349 | declare 'ExportForecastsResponse', | ||
| 350 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::ExportForecastsResponse']; | ||
| 351 | |||
| 352 | coerce 'ExportForecastsResponse', | ||
| 353 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ExportForecastsResponse'->new($_) }; | ||
| 354 | |||
| 355 | declare 'RepeatedExportForecastsResponse', | ||
| 356 | as ArrayRef[ExportForecastsResponse()]; | ||
| 357 | |||
| 358 | coerce 'RepeatedExportForecastsResponse', | ||
| 359 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ExportForecastsResponse'->new($_) } @$_ ] }; | ||
| 360 | |||
| 361 | declare 'MapStringExportForecastsResponse', | ||
| 362 | as HashRef[ExportForecastsResponse()]; | ||
| 363 | |||
| 364 | declare 'ExportReservationsUsageResponse', | ||
| 365 | as InstanceOf['Google::Cloud::Capacityplanner::V1beta::UsageService::ExportReservationsUsageResponse']; | ||
| 366 | |||
| 367 | coerce 'ExportReservationsUsageResponse', | ||
| 368 | from HashRef, via { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ExportReservationsUsageResponse'->new($_) }; | ||
| 369 | |||
| 370 | declare 'RepeatedExportReservationsUsageResponse', | ||
| 371 | as ArrayRef[ExportReservationsUsageResponse()]; | ||
| 372 | |||
| 373 | coerce 'RepeatedExportReservationsUsageResponse', | ||
| 374 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Capacityplanner::V1beta::UsageService::ExportReservationsUsageResponse'->new($_) } @$_ ] }; | ||
| 375 | |||
| 376 | declare 'MapStringExportReservationsUsageResponse', | ||
| 377 | as HashRef[ExportReservationsUsageResponse()]; | ||
| 378 | |||
| 379 | 1; | ||
| 380 | |||
| 381 | __END__ |