public sealed class Attachment : IMessage<Attachment>, IEquatable<Attachment>, IDeepCloneable<Attachment>, IBufferMessage, IMessage
Reference documentation and code samples for the Artifact Registry v1 API class Attachment.
An Attachment refers to additional metadata that can be attached to artifacts in Artifact Registry. An attachment consists of one or more files.
Implements
IMessageAttachment, IEquatableAttachment, IDeepCloneableAttachment, IBufferMessage, IMessageNamespace
Google.Cloud.ArtifactRegistry.V1Assembly
Google.Cloud.ArtifactRegistry.V1.dll
Constructors
Attachment()
public Attachment()
Attachment(Attachment)
public Attachment(Attachment other)
Parameter | |
---|---|
Name | Description |
other |
Attachment |
Properties
Annotations
public MapField<string, string> Annotations { get; }
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.
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
AttachmentName
public AttachmentName AttachmentName { get; set; }
AttachmentName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
AttachmentName |
AttachmentNamespace
public string AttachmentNamespace { get; set; }
The namespace this attachment belongs to.
E.g. If an attachment is created by artifact analysis, namespace is set
to artifactanalysis.googleapis.com
.
Property Value | |
---|---|
Type | Description |
string |
CreateTime
public Timestamp CreateTime { get; set; }
Output only. The time when the attachment was created.
Property Value | |
---|---|
Type | Description |
Timestamp |
Files
public RepeatedField<string> Files { get; }
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>
.
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |
FilesAsFileNames
public ResourceNameList<FileName> FilesAsFileNames { get; }
Property Value | |
---|---|
Type | Description |
ResourceNameListFileName |
Name
public string Name { get; set; }
The name of the attachment. E.g.
projects/p1/locations/us/repositories/repo/attachments/sbom
.
Property Value | |
---|---|
Type | Description |
string |
OciVersionName
public string OciVersionName { get; set; }
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
.
Property Value | |
---|---|
Type | Description |
string |
Target
public string Target { get; set; }
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
.
Property Value | |
---|---|
Type | Description |
string |
Type
public string Type { get; set; }
Type of attachment.
E.g. application/vnd.spdx+json
Property Value | |
---|---|
Type | Description |
string |
UpdateTime
public Timestamp UpdateTime { get; set; }
Output only. The time when the attachment was last updated.
Property Value | |
---|---|
Type | Description |
Timestamp |