maven_artifacts
Creates, updates, deletes, gets or lists a maven_artifacts
resource.
Overview
Name | maven_artifacts |
Type | Resource |
Id | google.artifactregistry.maven_artifacts |
Fields
Name | Datatype | Description |
---|---|---|
name | 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. |
artifactId | string | Artifact ID for the artifact. |
createTime | string | Output only. Time the artifact was created. |
groupId | string | Group ID for the artifact. Example: com.google.guava |
pomUri | 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 | string | Output only. Time the artifact was updated. |
version | string | Version of this artifact. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, mavenArtifactsId, projectsId, repositoriesId | Gets a maven artifact. |
list | SELECT | locationsId, projectsId, repositoriesId | Lists maven artifacts. |
SELECT
examples
Lists maven artifacts.
SELECT
name,
artifactId,
createTime,
groupId,
pomUri,
updateTime,
version
FROM google.artifactregistry.maven_artifacts
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';