Google Cloud Artifact Registry V1 Client - Class MavenArtifact (0.5.1)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getGroupId

Group ID for the artifact.

Example: com.google.guava

Returns
TypeDescription
string

setGroupId

Group ID for the artifact.

Example: com.google.guava

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getArtifactId

Artifact ID for the artifact.

Returns
TypeDescription
string

setArtifactId

Artifact ID for the artifact.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVersion

Version of this artifact.

Returns
TypeDescription
string

setVersion

Version of this artifact.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Time the artifact was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time the artifact was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. Time the artifact was updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Time the artifact was updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this