{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-calendar-mode-advice-response-schema.json",
  "title": "CalendarModeAdviceResponse",
  "description": "A response containing the recommended way of creating the specified resources\nin the future. It contains (will contain) multiple recommendations that can\nbe analyzed by the customer and the best one can be picked.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-advice-api-openapi.yml#/components/schemas/CalendarModeAdviceResponse",
  "type": "object",
  "properties": {
    "recommendations": {
      "items": {
        "$ref": "#/$defs/CalendarModeRecommendation"
      },
      "description": "Recommendations where, how and when to create the requested resources\nin order to maximize their obtainability and minimize cost.",
      "type": "array"
    }
  },
  "$defs": {
    "CalendarModeRecommendation": {
      "type": "object",
      "properties": {
        "recommendationsPerSpec": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/FutureResourcesRecommendation"
          },
          "description": "Recommendations for every future resource specification passed in\nCalendarModeAdviceRequest. Keys of the map correspond to keys\nspecified in the request."
        }
      },
      "description": "A single recommendation to create requested resources. Contains detailed\nrecommendations for every future resources specification specified in\nCalendarModeAdviceRequest."
    },
    "FutureResourcesRecommendation": {
      "type": "object",
      "description": "Recommendation for single resources specification, to be created in the\nfuture.",
      "properties": {
        "location": {
          "description": "The advised location for resource usage. When a zone, in format\n'zones/'.\nIf not set, it means that no location is recommended - see\nother_locations for details.",
          "type": "string"
        },
        "recommendationType": {
          "description": "Type of recommendation. Currently only FUTURE_RESERVATION is supported.",
          "enum": [
            "FUTURE_RESERVATION",
            "RECOMMENDATION_TYPE_UNSPECIFIED"
          ],
          "type": "string"
        },
        "endTime": {
          "type": "string",
          "format": "google-datetime"
        },
        "otherLocations": {
          "additionalProperties": {
            "$ref": "#/$defs/FutureResourcesRecommendationOtherLocation"
          },
          "description": "List of locations in the request scope that were not\nrecommended. Keys of the map are zones, in format 'zones/'.\nThe values are status information indicating the recommendation status.",
          "type": "object"
        },
        "startTime": {
          "type": "string",
          "format": "google-datetime"
        },
        "recommendationId": {
          "type": "string",
          "description": "Unique id of the recommendation, a UUID string generated by the API."
        }
      }
    },
    "FutureResourcesRecommendationOtherLocation": {
      "properties": {
        "details": {
          "type": "string",
          "description": "Details (human readable) describing the situation.\nFor example, if status is CONDITION_NOT_MET, then\ndetails contain information about the parameters of the time window\nthat did not meet the required conditions."
        },
        "status": {
          "enum": [
            "CONDITIONS_NOT_MET",
            "NOT_SUPPORTED",
            "NO_CAPACITY",
            "OTHER_LOCATION_STATUS_UNDEFINED",
            "RECOMMENDED"
          ],
          "description": "Status of recommendation in this location.",
          "type": "string"
        }
      },
      "description": "Information about recommendation status for locations\nthat were allowed but not used by the response.",
      "type": "object"
    }
  }
}