Artifact Registry V1 API - Class Google::Cloud::ArtifactRegistry::V1::Attachment (v1.2.0)

Reference documentation and code samples for the Artifact Registry V1 API class Google::Cloud::ArtifactRegistry::V1::Attachment.

An Attachment refers to additional metadata that can be attached to artifacts in Artifact Registry. An attachment consists of one or more files.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#annotations

def annotations() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. User annotations. These attributes can only be set and used by the user, and not by Artifact Registry. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

#annotations=

def annotations=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Optional. User annotations. These attributes can only be set and used by the user, and not by Artifact Registry. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. User annotations. These attributes can only be set and used by the user, and not by Artifact Registry. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

#attachment_namespace

def attachment_namespace() -> ::String
Returns
  • (::String) — The namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace is set to artifactanalysis.googleapis.com.

#attachment_namespace=

def attachment_namespace=(value) -> ::String
Parameter
  • value (::String) — The namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace is set to artifactanalysis.googleapis.com.
Returns
  • (::String) — The namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace is set to artifactanalysis.googleapis.com.

#create_time

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

#files

def files() -> ::Array<::String>
Returns
  • (::Array<::String>) — Required. The files that belong to this attachment. If the file ID part contains slashes, they are escaped. E.g. projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>.

#files=

def files=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Required. The files that belong to this attachment. If the file ID part contains slashes, they are escaped. E.g. projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>.
Returns
  • (::Array<::String>) — Required. The files that belong to this attachment. If the file ID part contains slashes, they are escaped. E.g. projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>.

#name

def name() -> ::String
Returns
  • (::String) — The name of the attachment. E.g. projects/p1/locations/us/repositories/repo/attachments/sbom.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The name of the attachment. E.g. projects/p1/locations/us/repositories/repo/attachments/sbom.
Returns
  • (::String) — The name of the attachment. E.g. projects/p1/locations/us/repositories/repo/attachments/sbom.

#oci_version_name

def oci_version_name() -> ::String
Returns
  • (::String) — Output only. The name of the OCI version that this attachment created. Only populated for Docker attachments. E.g. projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1.

#target

def target() -> ::String
Returns
  • (::String) — Required. The target the attachment is for, can be a Version, Package or Repository. E.g. projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1.

#target=

def target=(value) -> ::String
Parameter
  • value (::String) — Required. The target the attachment is for, can be a Version, Package or Repository. E.g. projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1.
Returns
  • (::String) — Required. The target the attachment is for, can be a Version, Package or Repository. E.g. projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1.

#type

def type() -> ::String
Returns
  • (::String) — Type of attachment. E.g. application/vnd.spdx+json

#type=

def type=(value) -> ::String
Parameter
  • value (::String) — Type of attachment. E.g. application/vnd.spdx+json
Returns
  • (::String) — Type of attachment. E.g. application/vnd.spdx+json

#update_time

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