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
Inherited Members
Namespace: Google.Apis.ArtifactRegistry.v1.Data
Assembly: Google.Apis.ArtifactRegistry.v1.dll
Syntax
public class Attachment : IDirectResponseSchema
Properties
Annotations
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.
Declaration
[JsonProperty("annotations")]
public virtual IDictionary<string, string> Annotations { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
AttachmentNamespace
The namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace
is set to artifactanalysis.googleapis.com
.
Declaration
[JsonProperty("attachmentNamespace")]
public virtual string AttachmentNamespace { get; set; }
Property Value
Type | Description |
---|---|
string |
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreateTimeRaw
Output only. The time when the attachment was created.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Files
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:
.
Declaration
[JsonProperty("files")]
public virtual IList<string> Files { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
Name
The name of the attachment. E.g. projects/p1/locations/us/repositories/repo/attachments/sbom
.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
OciVersionName
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
.
Declaration
[JsonProperty("ociVersionName")]
public virtual string OciVersionName { get; set; }
Property Value
Type | Description |
---|---|
string |
Target
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
.
Declaration
[JsonProperty("target")]
public virtual string Target { get; set; }
Property Value
Type | Description |
---|---|
string |
Type
Type of attachment. E.g. application/vnd.spdx+json
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
string |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
UpdateTimeRaw
Output only. The time when the attachment was last updated.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |