Artifact Registry API . projects . locations . repositories . dockerImages

Instance Methods

close()

Close httplib2 connections.

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

Lists docker images.

list_next(previous_request, previous_response)

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists docker images.

Args:
  parent: string, Required. The name of the parent resource whose docker images will be listed. (required)
  pageSize: integer, The maximum number of artifacts 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 response from listing docker images.
  "dockerImages": [ # The docker images returned.
    { # DockerImage represents a docker artifact.
      "imageSizeBytes": "A String", # Calculated size of the image.
      "mediaType": "A String", # Media type of this image, e.g. "application/vnd.docker.distribution.manifest.v2+json".
      "name": "A String", # Required. registry_location, project_id, repository_name and image id forms a unique image name:`projects//locations//repository//dockerImages/`. For example, "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" is the image's digest.
      "tags": [ # Tags attached to this image.
        "A String",
      ],
      "uploadTime": "A String", # Time the image was uploaded.
      "uri": "A String", # Required. URL to access the image. Example: us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf
    },
  ],
  "nextPageToken": "A String", # The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.
}
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.