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.
Parameters | |
---|---|
Name | Description |
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 |
Google\Protobuf\Timestamp
Output only. Time the artifact was created. |
↳ update_time |
Google\Protobuf\Timestamp
Output only. Time the artifact was updated. |
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.
Returns | |
---|---|
Type | Description |
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.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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
Returns | |
---|---|
Type | Description |
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
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getGroupId
Group ID for the artifact.
Example: com.google.guava
Returns | |
---|---|
Type | Description |
string |
setGroupId
Group ID for the artifact.
Example: com.google.guava
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getArtifactId
Artifact ID for the artifact.
Returns | |
---|---|
Type | Description |
string |
setArtifactId
Artifact ID for the artifact.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getVersion
Version of this artifact.
Returns | |
---|---|
Type | Description |
string |
setVersion
Version of this artifact.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCreateTime
Output only. Time the artifact was created.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasCreateTime
clearCreateTime
setCreateTime
Output only. Time the artifact was created.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getUpdateTime
Output only. Time the artifact was updated.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Time the artifact was updated.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |