Class: Google::Cloud::ArtifactRegistry::V1::Attachment
- Inherits:
-
Object
- Object
- Google::Cloud::ArtifactRegistry::V1::Attachment
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/devtools/artifactregistry/v1/attachment.rb
Overview
An Attachment refers to additional metadata that can be attached to artifacts in Artifact Registry. An attachment consists of one or more files.
Defined Under Namespace
Classes: AnnotationsEntry
Instance Attribute Summary collapse
-
#annotations ⇒ ::Google::Protobuf::Map{::String => ::String}
Optional.
-
#attachment_namespace ⇒ ::String
The namespace this attachment belongs to.
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#files ⇒ ::Array<::String>
Required.
-
#name ⇒ ::String
The name of the attachment.
-
#oci_version_name ⇒ ::String
readonly
Output only.
-
#target ⇒ ::String
Required.
-
#type ⇒ ::String
Type of attachment.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#annotations ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns 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.
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'proto_docs/google/devtools/artifactregistry/v1/attachment.rb', line 66 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#attachment_namespace ⇒ ::String
Returns The namespace this attachment belongs to.
E.g. If an attachment is created by artifact analysis, namespace is set
to artifactanalysis.googleapis.com.
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'proto_docs/google/devtools/artifactregistry/v1/attachment.rb', line 66 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The time when the attachment was created.
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'proto_docs/google/devtools/artifactregistry/v1/attachment.rb', line 66 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#files ⇒ ::Array<::String>
Returns 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>.
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'proto_docs/google/devtools/artifactregistry/v1/attachment.rb', line 66 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#name ⇒ ::String
Returns The name of the attachment. E.g.
projects/p1/locations/us/repositories/repo/attachments/sbom.
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'proto_docs/google/devtools/artifactregistry/v1/attachment.rb', line 66 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#oci_version_name ⇒ ::String (readonly)
Returns 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.
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'proto_docs/google/devtools/artifactregistry/v1/attachment.rb', line 66 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#target ⇒ ::String
Returns 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.
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'proto_docs/google/devtools/artifactregistry/v1/attachment.rb', line 66 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#type ⇒ ::String
Returns Type of attachment.
E.g. application/vnd.spdx+json.
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'proto_docs/google/devtools/artifactregistry/v1/attachment.rb', line 66 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The time when the attachment was last updated.
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'proto_docs/google/devtools/artifactregistry/v1/attachment.rb', line 66 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |