maven_artifacts
Creates, updates, deletes, gets or lists a maven_artifacts
resource.
Overview
Name | maven_artifacts |
Type | Resource |
Id | google.artifactregistry.maven_artifacts |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
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 (google-datetime) | 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 (google-datetime) | Output only. Time the artifact was updated. |
version | string | Version of this artifact. |
Successful response
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 (google-datetime) | 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 (google-datetime) | Output only. Time the artifact was updated. |
version | string | Version of this artifact. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , repositoriesId , mavenArtifactsId | Gets a maven artifact. | |
list | select | projectsId , locationsId , repositoriesId | pageSize , pageToken | Lists maven artifacts. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
mavenArtifactsId | string | |
projectsId | string | |
repositoriesId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
Gets a maven artifact.
SELECT
name,
artifactId,
createTime,
groupId,
pomUri,
updateTime,
version
FROM google.artifactregistry.maven_artifacts
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND mavenArtifactsId = '{{ mavenArtifactsId }}' -- required;
Lists maven artifacts.
SELECT
name,
artifactId,
createTime,
groupId,
pomUri,
updateTime,
version
FROM google.artifactregistry.maven_artifacts
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';