Cloud TPU API . projects . locations . reservations

Instance Methods

close()

Close httplib2 connections.

list(parent, pageSize=None, pageToken=None, x__xgafv=None)

Retrieves the reservations for the given project in the given location.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Retrieves the reservations for the given project in the given location.

Args:
  parent: string, Required. The parent for reservations. (required)
  pageSize: integer, The maximum number of items to return.
  pageToken: string, The next_page_token value returned from a previous List request, if any.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for ListReservations.
  "nextPageToken": "A String", # The next page token or empty if none.
  "reservations": [ # The listed reservations.
    { # A reservation describes the amount of a resource 'allotted' for a defined period of time.
      "name": "A String", # The reservation name with the format: projects/{projectID}/locations/{location}/reservations/{reservationID}
      "standard": {
        "capacityUnits": "A String",
        "interval": { # 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. # The start and end time of the reservation.
          "endTime": "A String", # Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
          "startTime": "A String", # Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
        },
        "resourceType": "A String", # The resource type of the reservation.
        "size": 42, # The size of the reservation, in the units specified in the 'capacity_units' field.
        "usage": {
          "total": "A String", # The real-time value of usage within the reservation, with the unit specified in field capacity_units.
        },
      },
      "state": "A String", # Output only. The state of the Reservation.
    },
  ],
}
list_next()
Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call 'execute()' on to request the next
          page. Returns None if there are no more items in the collection.