Resource: Attachment
An Attachment refers to additional metadata that can be attached to artifacts in Artifact Registry. An attachment consists of one or more files.
JSON representation |
---|
{ "name": string, "target": string, "type": string, "attachmentNamespace": string, "annotations": { string: string, ... }, "createTime": string, "updateTime": string, "files": [ string ], "ociVersionName": string } |
Fields | |
---|---|
name |
The name of the attachment. E.g. |
target |
Required. The target the attachment is for, can be a Version, Package or Repository. E.g. |
type |
Type of attachment. E.g. |
attachmentNamespace |
The namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace is set to |
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. An object containing a list of |
createTime |
Output only. The time when the attachment was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The time when the attachment was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
files[] |
Required. The files that belong to this attachment. If the file ID part contains slashes, they are escaped. E.g. |
ociVersionName |
Output only. The name of the OCI version that this attachment created. Only populated for Docker attachments. E.g. |
Methods |
|
---|---|
|
Creates an attachment. |
|
Deletes an attachment. |
|
Gets an attachment. |
|
Lists attachments. |