Reference documentation and code samples for the Artifact Registry V1 API class Google::Cloud::ArtifactRegistry::V1::Version.
The body of a version resource. A version resource represents a collection of components, such as files and other data. This may correspond to a version in many package management schemes.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — The time when the version was created.
#create_time=
def create_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — The time when the version was created.
Returns
- (::Google::Protobuf::Timestamp) — The time when the version was created.
#description
def description() -> ::String
Returns
- (::String) — Optional. Description of the version, as specified in its metadata.
#description=
def description=(value) -> ::String
Parameter
- value (::String) — Optional. Description of the version, as specified in its metadata.
Returns
- (::String) — Optional. Description of the version, as specified in its metadata.
#metadata
def metadata() -> ::Google::Protobuf::Struct
Returns
- (::Google::Protobuf::Struct) — Output only. Repository-specific Metadata stored against this version. The fields returned are defined by the underlying repository-specific resource. Currently, the resources could be: DockerImage MavenArtifact
#name
def name() -> ::String
Returns
- (::String) — The name of the version, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1". If the package or version ID parts contain slashes, the slashes are escaped.
#name=
def name=(value) -> ::String
Parameter
- value (::String) — The name of the version, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1". If the package or version ID parts contain slashes, the slashes are escaped.
Returns
- (::String) — The name of the version, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1". If the package or version ID parts contain slashes, the slashes are escaped.
#related_tags
def related_tags() -> ::Array<::Google::Cloud::ArtifactRegistry::V1::Tag>
Returns
- (::Array<::Google::Cloud::ArtifactRegistry::V1::Tag>) — Output only. A list of related tags. Will contain up to 100 tags that reference this version.
#related_tags=
def related_tags=(value) -> ::Array<::Google::Cloud::ArtifactRegistry::V1::Tag>
Parameter
- value (::Array<::Google::Cloud::ArtifactRegistry::V1::Tag>) — Output only. A list of related tags. Will contain up to 100 tags that reference this version.
Returns
- (::Array<::Google::Cloud::ArtifactRegistry::V1::Tag>) — Output only. A list of related tags. Will contain up to 100 tags that reference this version.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — The time when the version was last updated.
#update_time=
def update_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — The time when the version was last updated.
Returns
- (::Google::Protobuf::Timestamp) — The time when the version was last updated.