# Artifact Registry V1 API - Class Google::Cloud::ArtifactRegistry::V1::MavenArtifact (v1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.1 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Artifact Registry V1 API class Google::Cloud::ArtifactRegistry::V1::MavenArtifact.

MavenArtifact represents a maven artifact.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #artifact_id

    def artifact_id() -> ::String

**Returns**

- (::String) --- Artifact ID for the artifact.

### #artifact_id=

    def artifact_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Artifact ID for the artifact.
**Returns**

- (::String) --- Artifact ID for the artifact.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Time the artifact was created.

### #group_id

    def group_id() -> ::String

**Returns**

- (::String) --- Group ID for the artifact. Example: com.google.guava

### #group_id=

    def group_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Group ID for the artifact. Example: com.google.guava
**Returns**

- (::String) --- Group ID for the artifact. Example: com.google.guava

### #name

    def name() -> ::String

**Returns**

- (::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.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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

    def pom_uri() -> ::String

**Returns**

- (::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

### #pom_uri=

    def pom_uri=(value) -> ::String

**Parameter**

- **value** (::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
**Returns**

- (::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

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Time the artifact was updated.

### #version

    def version() -> ::String

**Returns**

- (::String) --- Version of this artifact.

### #version=

    def version=(value) -> ::String

**Parameter**

- **value** (::String) --- Version of this artifact.
**Returns**

- (::String) --- Version of this artifact.