# Cloud Composer API . projects . locations . imageVersions

## Instance Methods

Close httplib2 connections.

List ImageVersions for provided location.

Retrieves the next page of results.

### Method Details

`close()`

    Close httplib2 connections.

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

    List ImageVersions for provided location.

    Args:
      parent: string, List ImageVersions in the given project and location, in the form: "projects/{projectId}/locations/{locationId}" (required)
      includePastReleases: boolean, Whether or not image versions from old releases should be included.
      pageSize: integer, The maximum number of image_versions 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:

        { # The ImageVersions in a project and location.
      "imageVersions": [ # The list of supported ImageVersions in a location.
        { # ImageVersion information
          "creationDisabled": True or False, # Whether it is impossible to create an environment with the image version.
          "imageVersionId": "A String", # The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b(.c)"
          "isDefault": True or False, # Whether this is the default ImageVersion used by Composer during environment creation if no input ImageVersion is specified.
          "releaseDate": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # The date of the version release.
            "day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
            "month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
            "year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
          },
          "supportedPythonVersions": [ # supported python versions
            "A String",
          ],
          "upgradeDisabled": True or False, # Whether it is impossible to upgrade an environment running with the image version.
        },
      ],
      "nextPageToken": "A String", # The page token used to query for the next page if one exists.
    }

`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.