Class: Google::Apis::ArtifactregistryV1::MavenArtifact

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/artifactregistry_v1/classes.rb,
lib/google/apis/artifactregistry_v1/representations.rb,
lib/google/apis/artifactregistry_v1/representations.rb

Overview

MavenArtifact represents a maven artifact.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MavenArtifact

Returns a new instance of MavenArtifact.



1877
1878
1879
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1877

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#artifact_idString

Artifact ID for the artifact. Corresponds to the JSON property artifactId

Returns:

  • (String)


1839
1840
1841
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1839

def artifact_id
  @artifact_id
end

#create_timeString

Output only. Time the artifact was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1844
1845
1846
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1844

def create_time
  @create_time
end

#group_idString

Group ID for the artifact. Example: com.google.guava Corresponds to the JSON property groupId

Returns:

  • (String)


1849
1850
1851
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1849

def group_id
  @group_id
end

#nameString

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. Corresponds to the JSON property name

Returns:

  • (String)


1859
1860
1861
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1859

def name
  @name
end

#pom_uriString

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 Corresponds to the JSON property pomUri

Returns:

  • (String)


1865
1866
1867
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1865

def pom_uri
  @pom_uri
end

#update_timeString

Output only. Time the artifact was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1870
1871
1872
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1870

def update_time
  @update_time
end

#versionString

Version of this artifact. Corresponds to the JSON property version

Returns:

  • (String)


1875
1876
1877
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1875

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1882
1883
1884
1885
1886
1887
1888
1889
1890
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1882

def update!(**args)
  @artifact_id = args[:artifact_id] if args.key?(:artifact_id)
  @create_time = args[:create_time] if args.key?(:create_time)
  @group_id = args[:group_id] if args.key?(:group_id)
  @name = args[:name] if args.key?(:name)
  @pom_uri = args[:pom_uri] if args.key?(:pom_uri)
  @update_time = args[:update_time] if args.key?(:update_time)
  @version = args[:version] if args.key?(:version)
end