Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class MavenArtifact.
MavenArtifact represents a maven artifact.
Generated from protobuf message google.devtools.artifactregistry.v1.MavenArtifact
Namespace
Google \ Cloud \ ArtifactRegistry \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ 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.
↳ pom_uri
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
↳ group_id
string
Group ID for the artifact. Example: com.google.guava
↳ artifact_id
string
Artifact ID for the artifact.
↳ version
string
Version of this artifact.
↳ create_time
↳ update_time
getName
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.
string
setName
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.
var
string
$this
getPomUri
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
string
setPomUri
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
var
string
$this
getGroupId
Group ID for the artifact.
Example: com.google.guava
string
setGroupId
Group ID for the artifact.
Example: com.google.guava
var
string
$this
getArtifactId
Artifact ID for the artifact.
string
setArtifactId
Artifact ID for the artifact.
var
string
$this
getVersion
Version of this artifact.
string
setVersion
Version of this artifact.
var
string
$this
getCreateTime
Output only. Time the artifact was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Time the artifact was created.
$this
getUpdateTime
Output only. Time the artifact was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Time the artifact was updated.
$this