# Class QueryForecastsRequest (0.5.0)

0.5.0 (latest) 0.4.0 0.3.0 0.2.0 0.1.0

    QueryForecastsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The `QueryForecasts` request. Next : 14

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `parent` | `str` Required. The compute engine resource and location for the time series values to return. The format is: projects/{project}/locations/{location} or organizations/{organization}/locations/{location} or folders/{folder}/locations/{location} |
| `machine_family` | `str` The machine family to use to select the `Forecast` values to return. Possible values include "n1", and "n2d". Empty machine_family will return results matching all machine families. |
| `machine_shape` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-capacityplanner/latest/google.cloud.capacityplanner_v1beta.types.MachineShape` Optional. The machine shape for the time series values to return. |
| `disk_type` | `str` Optional. The disk_type for the `Forecast` values to return with request persistent-disk cloud_resource_type. Empty disk_type will return results matching all disk types. |
| `confidential_mode` | `bool` Optional. Whether the persistent disk is in confidential mode. |
| `gpu_type` | `str` Optional. The GPU type for the `Forecast` values to return. Sample values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type will return results matching all GPUs. |
| `tpu_type` | `str` Optional. The TPU type for the `Forecast` values to return. Empty tpu_type will return results matching all TPUs. |
| `cloud_resource_type` | `str` Required. The resource for the `Forecast` values to return. Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk", "gce-gpu" and "gce-tpu". Empty cloud_resource_type will return results matching all resources. |
| `forecast_type` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-capacityplanner/latest/google.cloud.capacityplanner_v1beta.types.Forecast.ForecastType` The type of forecast to use to select the `Forecast` values to return. FORECAST_TYPE_UNSPECIFIED will return results matching all the forecast types. |
| `prediction_interval` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-capacityplanner/latest/google.cloud.capacityplanner_v1beta.types.Forecast.PredictionInterval` The prediction interval to use to select the `Forecast` values to return. PREDICTION_INTERVAL_UNSPECIFIED will return results matching all prediction intervals. |
| `aggregation_method` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-capacityplanner/latest/google.cloud.capacityplanner_v1beta.types.UsageHistory.AggregationMethod` Aggregation Method of the historical usage for which the forecast is generated |