Class: Google::Apis::ArtifactregistryV1::MavenArtifact
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::MavenArtifact
- 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
-
#artifact_id ⇒ String
Artifact ID for the artifact.
-
#create_time ⇒ String
Output only.
-
#group_id ⇒ String
Group ID for the artifact.
-
#name ⇒ String
Required.
-
#pom_uri ⇒ String
Required.
-
#update_time ⇒ String
Output only.
-
#version ⇒ String
Version of this artifact.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MavenArtifact
constructor
A new instance of MavenArtifact.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MavenArtifact
Returns a new instance of MavenArtifact.
1661 1662 1663 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1661 def initialize(**args) update!(**args) end |
Instance Attribute Details
#artifact_id ⇒ String
Artifact ID for the artifact.
Corresponds to the JSON property artifactId
1623 1624 1625 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1623 def artifact_id @artifact_id end |
#create_time ⇒ String
Output only. Time the artifact was created.
Corresponds to the JSON property createTime
1628 1629 1630 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1628 def create_time @create_time end |
#group_id ⇒ String
Group ID for the artifact. Example: com.google.guava
Corresponds to the JSON property groupId
1633 1634 1635 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1633 def group_id @group_id end |
#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.
Corresponds to the JSON property name
1643 1644 1645 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1643 def name @name end |
#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
Corresponds to the JSON property pomUri
1649 1650 1651 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1649 def pom_uri @pom_uri end |
#update_time ⇒ String
Output only. Time the artifact was updated.
Corresponds to the JSON property updateTime
1654 1655 1656 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1654 def update_time @update_time end |
#version ⇒ String
Version of this artifact.
Corresponds to the JSON property version
1659 1660 1661 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1659 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1666 1667 1668 1669 1670 1671 1672 1673 1674 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 1666 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 |