# Cloud TPU API . projects . locations . acceleratorTypes

## Instance Methods

Gets AcceleratorType.

Lists accelerator types supported by this API.

Retrieves the next page of results.

### Method Details

`get(name, x__xgafv=None)`

    Gets AcceleratorType.

    Args:
      name: string, The resource name. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # A accelerator type that a Node can be configured with.
        "name": "A String", # The resource name.
        "type": "A String", # the accelerator type.
      }

`list(parent, pageToken=None, orderBy=None, pageSize=None, filter=None, x__xgafv=None)`

    Lists accelerator types supported by this API.

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

    Returns:
      An object of the form:

        { # Response for ListAcceleratorTypes.
        "nextPageToken": "A String", # The next page token or empty if none.
        "unreachable": [ # Locations that could not be reached.
          "A String",
        ],
        "acceleratorTypes": [ # The listed nodes.
          { # A accelerator type that a Node can be configured with.
            "name": "A String", # The resource name.
            "type": "A String", # the accelerator type.
          },
        ],
      }

`list_next(previous_request, previous_response)`

    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.