Google Cloud Compute Engine Cloud Compute Engine Advice API

The Cloud Compute Engine Advice API from Google Cloud Compute Engine — 3 operation(s) for cloud compute engine advice.

GitHub OpenAPI

Operations 3

POST /compute/v1/projects/{project}/regions/{region}/advice/calendarMode Calendar mode advice #
POST /compute/v1/projects/{project}/regions/{region}/advice/capacity Capacity advice #
POST /compute/v1/projects/{project}/regions/{region}/advice/capacityHistory Capacity history advice #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-cloud-compute-engine:google-cloud-compute-engine-advice-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-cloud-compute-engine-advice-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Compute Engine Advice API
  version: v1
  description: Generated from Google's published Discovery document for Compute Engine API (compute v1, revision 20261106). 3 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://compute.googleapis.com
tags:
- name: Advice
paths:
  /compute/v1/projects/{project}/regions/{region}/advice/calendarMode:
    post:
      operationId: compute.advice.calendarMode
      summary: Calendar mode advice
      description: 'Advise how, where and when to create the requested amount of instances

        with specified accelerators, within the specified time and location limits.

        The method recommends creating future reservations for the requested

        resources.'
      parameters:
      - name: project
        in: path
        required: true
        description: Project ID for this request.
        schema:
          pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))
          type: string
      - name: region
        in: path
        required: true
        description: Name of the region for this request.
        schema:
          pattern: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?'
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CalendarModeAdviceRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CalendarModeAdviceResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/compute
      - apiKey: []
      tags:
      - Advice
  /compute/v1/projects/{project}/regions/{region}/advice/capacity:
    post:
      operationId: compute.advice.capacity
      summary: Capacity advice
      description: 'Advice on making real-time decisions (such as choosing zone or

        machine types) during deployment to maximize your chances of obtaining

        capacity.'
      parameters:
      - name: project
        in: path
        required: true
        description: Project ID for this request.
        schema:
          type: string
          pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))
      - name: region
        in: path
        required: true
        description: Name of the region for this request.
        schema:
          pattern: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?'
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CapacityAdviceRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CapacityAdviceResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/compute
      - apiKey: []
      tags:
      - Advice
  /compute/v1/projects/{project}/regions/{region}/advice/capacityHistory:
    post:
      operationId: compute.advice.capacityHistory
      summary: Capacity history advice
      description: Gets the capacity history.
      parameters:
      - name: project
        in: path
        required: true
        description: Project ID for this request.
        schema:
          pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))
          type: string
      - name: region
        in: path
        required: true
        description: Name of the region for this request.
        schema:
          type: string
          pattern: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CapacityHistoryRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CapacityHistoryResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/compute
      - apiKey: []
      tags:
      - Advice
components:
  schemas:
    AcceleratorConfig:
      type: object
      properties:
        acceleratorCount:
          type: integer
          format: int32
          description: The number of the guest accelerator cards exposed to this instance.
        acceleratorType:
          description: 'Full or partial URL of the accelerator type resource to attach to this

            instance. For example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100

            If you are creating an instance template, specify only the

            accelerator name.

            See GPUs on Compute Engine

            for a full list of accelerator types.'
          type: string
      description: 'A specification of the type and number of accelerator cards attached to the

        instance.'
    CapacityAdviceResponseRecommendationShard:
      type: object
      properties:
        provisioningModel:
          type: string
          description: The provisioning model that you want to view recommendations for.
          enum:
          - FLEX_START
          - RESERVATION_BOUND
          - SPOT
          - STANDARD
        machineType:
          type: string
          description: The machine type corresponds to the instance selection in the request.
        instanceCount:
          format: int32
          description: The number of instances.
          type: integer
        zone:
          readOnly: true
          description: Output only. The zone name for this shard.
          type: string
      description: 'Shards represent blocks of uniform capacity in recommendations.

        Each shard is for a single zone and a single machine shape. Each shard

        defines a size expressed as the number of VMs.'
    CapacityAdviceRequestInstancePropertiesScheduling:
      description: Defines the instance scheduling options.
      properties:
        provisioningModel:
          type: string
          description: Specifies the provisioning model.
          enum:
          - FLEX_START
          - RESERVATION_BOUND
          - SPOT
          - STANDARD
      type: object
    FutureResourcesSpecTargetResources:
      description: Specification of reserved resources.
      type: object
      properties:
        specificSkuResources:
          $ref: '#/components/schemas/FutureResourcesSpecSpecificSKUResources'
        aggregateResources:
          $ref: '#/components/schemas/FutureResourcesSpecAggregateResources'
    FutureResourcesSpecAggregateResources:
      properties:
        vmFamily:
          type: string
          description: 'The VM family that all instances scheduled against this reservation

            must belong to. Use for TPU reservations.'
          enum:
          - VM_FAMILY_CLOUD_TPU_DEVICE_CT3
          - VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L
          - VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP
          - VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E
          - VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P
          - VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P
          - VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P
          - VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X
        workloadType:
          enum:
          - BATCH
          - SERVING
          - UNSPECIFIED
          description: Workload type. Use for TPU reservations.
          type: string
        acceleratorCount:
          format: int64
          description: Size of the request, in accelerator (chip) count.
          type: string
      type: object
    CapacityHistoryResponsePreemptionRecord:
      properties:
        interval:
          $ref: '#/components/schemas/Interval'
          description: The time interval for this preemption record.
        preemptionRate:
          description: 'The preemption rate during the interval, representing the fraction of

            Spot VMs that were preempted. Range: 0.0 to 1.0. Preemption rate is

            calculated as (total preempted Spots) / (total Spots that stopped

            running).'
          format: double
          type: number
      type: object
      description: A record of Spot VM preemption history.
    FutureResourcesSpecLocationPolicyLocation:
      description: Preference for a single specified location.
      properties:
        preference:
          enum:
          - ALLOW
          - DENY
          - PREFERENCE_UNSPECIFIED
          description: Preference for this location.
          type: string
      type: object
    CalendarModeRecommendation:
      type: object
      properties:
        recommendationsPerSpec:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/FutureResourcesRecommendation'
          description: 'Recommendations for every future resource specification passed in

            CalendarModeAdviceRequest. Keys of the map correspond to keys

            specified in the request.'
      description: 'A single recommendation to create requested resources. Contains detailed

        recommendations for every future resources specification specified in

        CalendarModeAdviceRequest.'
    FutureResourcesSpecLocationPolicy:
      properties:
        locations:
          additionalProperties:
            $ref: '#/components/schemas/FutureResourcesSpecLocationPolicyLocation'
          type: object
          description: 'Preferences for specified locations.

            Keys of the map are locations - zones, in format of ''zones/''.

            Values are preferences for the zones.

            If a zone is not specified in this map, it is ALLOWed.'
      description: Specification of locations to create resources in.
      type: object
    CapacityHistoryRequestInstanceProperties:
      type: object
      description: Instance properties for this request.
      properties:
        scheduling:
          $ref: '#/components/schemas/CapacityHistoryRequestInstancePropertiesScheduling'
          description: Specifies the scheduling options.
        machineType:
          type: string
          description: The machine type for the VM, such as `n2-standard-4`.
    CapacityAdviceRequestInstanceFlexibilityPolicy:
      properties:
        instanceSelections:
          additionalProperties:
            $ref: '#/components/schemas/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection'
          type: object
          description: 'Named instance selections to configure properties.

            The key is an arbitrary, unique RFC1035 string that identifies the

            instance selection.'
      description: Specification of alternative, flexible instance configurations.
      type: object
    CapacityHistoryRequestInstancePropertiesScheduling:
      properties:
        provisioningModel:
          type: string
          description: 'The provisioning model to get capacity history for.

            This field must be set to SPOT.


            For more information, see

            Compute Engine instances provisioning models.'
          enum:
          - FLEX_START
          - RESERVATION_BOUND
          - SPOT
          - STANDARD
      type: object
      description: Scheduling options.
    FutureResourcesRecommendation:
      type: object
      description: 'Recommendation for single resources specification, to be created in the

        future.'
      properties:
        location:
          description: 'The advised location for resource usage. When a zone, in format

            ''zones/''.

            If not set, it means that no location is recommended - see

            other_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: '#/components/schemas/FutureResourcesRecommendationOtherLocation'
          description: 'List of locations in the request scope that were not

            recommended. Keys of the map are zones, in format ''zones/''.

            The 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.
    FutureResourcesSpecSpecificSKUResources:
      properties:
        localSsdPartitions:
          description: 'Local SSD partitions. You do not have to include SSD partitions that

            are built in the machine type.'
          type: array
          items:
            $ref: '#/components/schemas/FutureResourcesSpecLocalSsdPartition'
        machineType:
          description: 'The machine type to use for instances that will use the reservation.

            This field only accepts machine type names. e.g. n2-standard-4

            and does not accept machine type full or partial url. e.g.

            projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4.

            Use for GPU reservations.'
          type: string
        instanceCount:
          format: int64
          description: Size of the request, in instance count.
          type: string
      type: object
    CapacityAdviceResponseRecommendationScores:
      type: object
      description: Groups information about a shard of capacity.
      properties:
        obtainability:
          format: double
          type: number
          description: 'The obtainability score indicates the likelihood of successfully

            obtaining (provisioning) the requested number of VMs.

            The score range is 0.0 through 1.0. Higher is better.'
        estimatedUptime:
          type: string
          description: 'The estimated run time of the majority of Spot VMs in the request

            before preemption. The estimate is best-effort only. It is based on

            historical data and current conditions.'
          format: google-duration
    CalendarModeAdviceResponse:
      description: 'A response containing the recommended way of creating the specified resources

        in the future. It contains (will contain) multiple recommendations that can

        be analyzed by the customer and the best one can be picked.'
      type: object
      properties:
        recommendations:
          items:
            $ref: '#/components/schemas/CalendarModeRecommendation'
          description: 'Recommendations where, how and when to create the requested resources

            in order to maximize their obtainability and minimize cost.'
          type: array
    FutureResourcesSpec:
      properties:
        timeRangeSpec:
          $ref: '#/components/schemas/FlexibleTimeRange'
          description: 'Specification of a time range in which the resources may be created.

            The time range specifies start of resource use and planned end of resource

            use.'
        targetResources:
          $ref: '#/components/schemas/FutureResourcesSpecTargetResources'
          description: Specification of the reserved resources.
        locationPolicy:
          $ref: '#/components/schemas/FutureResourcesSpecLocationPolicy'
          description: 'Optional location policy allowing to exclude some zone(s) in which

            the resources must not be created.'
        deploymentType:
          description: 'Indicates if the reservation allocation strategy is static (DENSE) or

            dynamic (STANDARD). Defaults to DENSE.'
          type: string
          enum:
          - DENSE
          - DEPLOYMENT_TYPE_UNSPECIFIED
      type: object
      description: 'Specification of resources to be created at some time in the future within an

        optionally specified set of locations, and within the specified time range.'
    CapacityHistoryRequest:
      type: object
      properties:
        instanceProperties:
          $ref: '#/components/schemas/CapacityHistoryRequestInstanceProperties'
          description: Instance properties for this request.
        types:
          description: List of history types to get capacity history for.
          items:
            enum:
            - HISTORY_TYPE_UNSPECIFIED
            - PREEMPTION
            - PRICE
            type: string
          type: array
        locationPolicy:
          $ref: '#/components/schemas/CapacityHistoryRequestLocationPolicy'
          description: Location policy for this request.
      description: A request to get the capacity history.
    CapacityAdviceRequestDistributionPolicy:
      properties:
        targetShape:
          description: Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or BALANCED.
          enum:
          - ANY
          - ANY_SINGLE_ZONE
          - BALANCED
          - TARGET_SHAPE_UNSPECIFIED
          type: string
        zones:
          description: Zones where Capacity Advisor looks for capacity.
          items:
            $ref: '#/components/schemas/CapacityAdviceRequestDistributionPolicyZoneConfiguration'
          type: array
      description: Distribution policy.
      type: object
    CapacityHistoryResponsePriceRecord:
      type: object
      properties:
        listPrice:
          $ref: '#/components/schemas/Money'
          description: The Spot VM list price during the interval.
        interval:
          $ref: '#/components/schemas/Interval'
          description: The time interval for this price record.
      description: A record of price history.
    FlexibleTimeRange:
      description: 'Specifies a flexible time range with flexible start time and duration.


        It is possible to specify a contradictory time range that cannot be matched

        by any Interval. This causes a validation error.'
      type: object
      properties:
        maxDuration:
          format: google-duration
          type: string
        startTimeNotLaterThan:
          type: string
          format: google-datetime
        startTimeNotEarlierThan:
          type: string
          format: google-datetime
        minDuration:
          type: string
          format: google-duration
    Interval:
      type: object
      properties:
        endTime:
          format: google-datetime
          description: 'Optional. Exclusive end of the interval.


            If specified, a Timestamp matching this interval will have to be before the

            end.'
          type: string
        startTime:
          description: 'Optional. Inclusive start of the interval.


            If specified, a Timestamp matching this interval will have to be the same

            or after the start.'
          format: google-datetime
          type: string
      description: 'Represents a time interval, encoded as a Timestamp start (inclusive) and a

        Timestamp end (exclusive).


        The start must be less than or equal to the end.

        When the start equals the end, the interval is empty (matches no time).

        When both start and end are unspecified, the interval matches any time.'
    CapacityHistoryRequestLocationPolicy:
      description: Location policy for this request.
      type: object
      properties:
        location:
          type: string
          description: "The region or zone to get capacity history for.\n\nIt can be a partial or full URL. For example, the following are valid\nvalues: \n   \n   \n     - https://www.googleapis.com/compute/v1/projects/project/zones/zone \n   - projects/project/zones/zone \n   - zones/zone\n\n\n\nThis field is optional."
    FutureResourcesRecommendationOtherLocation:
      properties:
        details:
          type: string
          description: 'Details (human readable) describing the situation.

            For example, if status is CONDITION_NOT_MET, then

            details contain information about the parameters of the time window

            that 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

        that were allowed but not used by the response.'
      type: object
    CapacityAdviceRequest:
      properties:
        size:
          type: integer
          description: The number of VM instances to request.
          format: int32
        distributionPolicy:
          $ref: '#/components/schemas/CapacityAdviceRequestDistributionPolicy'
          description: 'Policy specifying the distribution of instances across

            zones within the requested region.'
        instanceProperties:
          $ref: '#/components/schemas/CapacityAdviceRequestInstanceProperties'
          description: Instance properties for this request.
        instanceFlexibilityPolicy:
          $ref: '#/components/schemas/CapacityAdviceRequestInstanceFlexibilityPolicy'
          description: Policy for instance selectors.
      type: object
      description: 'A request to provide Assistant Scores. These scores determine VM

        obtainability and preemption likelihood.'
    CapacityHistoryResponse:
      properties:
        machineType:
          type: string
          description: The machine type for which the capacity history is returned.
        location:
          description: 'Output only. The location (region or zone) for which the capacity history is returned.

            It is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.'
          type: string
          readOnly: true
        preemptionHistory:
          items:
            $ref: '#/components/schemas/CapacityHistoryResponsePreemptionRecord'
          description: The preemption history for the requested machine type and location.
          type: array
        priceHistory:
          items:
            $ref: '#/components/schemas/CapacityHistoryResponsePriceRecord'
          type: array
          description: The price history for the requested machine type and location.
      type: object
      description: Contains the capacity history.
    CapacityAdviceResponseRecommendation:
      properties:
        scores:
          $ref: '#/components/schemas/CapacityAdviceResponseRecommendationScores'
          description: Scores for the recommendation.
        shards:
          type: array
          description: Shards represent blocks of uniform capacity in recommendations.
          items:
            $ref: '#/components/schemas/CapacityAdviceResponseRecommendationShard'
      description: Recommendation.
      type: object
    CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection:
      type: object
      properties:
        guestAccelerators:
          items:
            $ref: '#/components/schemas/AcceleratorConfig'
          type: array
          description: Accelerators configuration.
        disks:
          items:
            $ref: '#/components/schemas/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk'
          type: array
          description: Local SSDs.
        machineTypes:
          description: Full machine-type names, e.g. "n1-standard-16".
          items:
            type: string
          type: array
      description: Machine specification.
    CapacityAdviceResponse:
      description: A response contains scoring recommendations.
      type: object
      properties:
        recommendations:
          items:
            $ref: '#/components/schemas/CapacityAdviceResponseRecommendation'
          type: array
          description: 'Initially the API will provide one recommendation which balances the

            individual scores according to the service provider''s preference.'
    CapacityAdviceRequestInstanceProperties:
      description: Instance provisioning properties.
      type: object
      properties:
        scheduling:
          $ref: '#/components/schemas/CapacityAdviceRequestInstancePropertiesScheduling'
          description: Specifies the scheduling options.
    FutureResourcesSpecLocalSsdPartition:
      properties:
        diskInterface:
          type: string
          description: Disk interface. Defaults to SCSI.
          enum:
          - NVME
          - SCSI
        diskSizeGb:
          description: The size of the disk in GB.
          type: string
          format: int64
      type: object
    CapacityAdviceRequestDistributionPolicyZoneConfiguration:
      type: object
      description: Zone configuration for the distribution policy.
      properties:
        zone:
          type: string
          description: "The URL of the zone. It can be a\npartial or full URL. For example, the following are valid values: \n   \n   \n     - https://www.googleapis.com/compute/v1/projects/project/zones/zone \n   - projects/project/zones/zone \n   - zones/zone"
    CalendarModeAdviceRequest:
      description: 'A request to recommend the best way to consume the specified resources in the

        future.'
      properties:
        futureResourcesSpecs:
          description: 'Specification of resources to create in the future.

            The key of the map is an arbitrary string specified by the caller.

            Value of the map is a specification of required resources and their

            constraints. Currently only one value is allowed in this map.'
          type: object
          additionalProperties:
            $ref: '#/components/schemas/FutureResourcesSpec'
      type: object
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    Money:
      properties:
        nanos:
          description: 'Number of nano (10^-9) units of the amount.

            The value must be between -999,999,999 and +999,999,999 inclusive.

            If `units` is positive, `nanos` must be positive or zero.

            If `units` is zero, `nanos` can be positive, zero, or negative.

            If `units` is negative, `nanos` must be negative or zero.

            For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.'
          format: int32
          type: integer
        currencyCode:
          description: The three-letter currency code defined in ISO 4217.
          type: string
        units:
          description: 'The whole units of the amount.

            For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.'
          format: int64
          type: string
      type: object
      description: Represents an amount of money with its currency type.
    CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk:
      type: object
      properties:
        type:
          type: string
          description: Specifies the type of the disk.
          enum:
          - DISK_TYPE_UNSPECIFIED
          - SCRATCH
      description: Attached disk configuration.
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/devstorage.read_only: View your data in Google Cloud Storage
            https://www.googleapis.com/auth/compute: View and manage your Google Compute Engine resources
            https://www.googleapis.com/auth/devstorage.read_write: Manage your data in Cloud Storage and see the email address of your Google Account
            https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
            https://www.googleapis.com/auth/compute.readonly: View your Google Compute Engine resources
            https://www.googleapis.com/auth/devstorage.full_control: Manage your data and permissions in Cloud Storage and see the email address for your Google Account
externalDocs:
  url: https://cloud.google.com/compute/
x-provenance:
  method: harvested
  publisher: Google
  source: https://www.googleapis.com/discovery/v1/apis/compute/v1/rest
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)