Artifact Registry API . projects . locations . repositories . mavenArtifacts

Instance Methods

close()

Close httplib2 connections.

get(name, x__xgafv=None)

Gets a maven artifact.

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

Lists maven artifacts.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
get(name, x__xgafv=None)
Gets a maven artifact.

Args:
  name: string, Required. The name of the maven artifact. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # MavenArtifact represents a maven artifact.
  "artifactId": "A String", # Artifact ID for the artifact.
  "createTime": "A String", # Output only. Time the artifact was created.
  "groupId": "A String", # Group ID for the artifact. Example: com.google.guava
  "name": "A String", # Required. registry_location, project_id, repository_name and maven_artifact forms a unique artifact For example, "projects/test-project/locations/us-west4/repositories/test-repo/mavenArtifacts/ com.google.guava:guava:31.0-jre", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and "com.google.guava:guava:31.0-jre" is the maven artifact.
  "pomUri": "A String", # Required. URL to access the pom file of the artifact. Example: us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/31.0/guava-31.0.pom
  "updateTime": "A String", # Output only. Time the artifact was updated.
  "version": "A String", # Version of this artifact.
}
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists maven artifacts.

Args:
  parent: string, Required. The name of the parent resource whose maven artifacts 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 maven artifacts.
  "mavenArtifacts": [ # The maven artifacts returned.
    { # MavenArtifact represents a maven artifact.
      "artifactId": "A String", # Artifact ID for the artifact.
      "createTime": "A String", # Output only. Time the artifact was created.
      "groupId": "A String", # Group ID for the artifact. Example: com.google.guava
      "name": "A String", # Required. registry_location, project_id, repository_name and maven_artifact forms a unique artifact For example, "projects/test-project/locations/us-west4/repositories/test-repo/mavenArtifacts/ com.google.guava:guava:31.0-jre", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and "com.google.guava:guava:31.0-jre" is the maven artifact.
      "pomUri": "A String", # Required. URL to access the pom file of the artifact. Example: us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/31.0/guava-31.0.pom
      "updateTime": "A String", # Output only. Time the artifact was updated.
      "version": "A String", # Version of this artifact.
    },
  ],
  "nextPageToken": "A String", # The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.
}
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.