Class UploadGenericArtifactRequest
The request to upload a generic artifact. The created GenericArtifact will have the resource name {parent}/genericArtifacts/package_id:version_id. The created file will have the resource name {parent}/files/package_id:version_id:filename.
Implements
Inherited Members
Namespace: Google.Apis.ArtifactRegistry.v1.Data
Assembly: Google.Apis.ArtifactRegistry.v1.dll
Syntax
public class UploadGenericArtifactRequest : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Filename
The name of the file of the generic artifact to be uploaded. E.g. example-file.zip
The filename is limited
to letters, numbers, and url safe characters, i.e. [a-zA-Z0-9-_.~@].
Declaration
[JsonProperty("filename")]
public virtual string Filename { get; set; }
Property Value
Type | Description |
---|---|
string |
PackageId
The ID of the package of the generic artifact. If the package does not exist, a new package will be created.
The package_id
should start and end with a letter or number, only contain letters, numbers, hyphens,
underscores, and periods, and not exceed 256 characters.
Declaration
[JsonProperty("packageId")]
public virtual string PackageId { get; set; }
Property Value
Type | Description |
---|---|
string |
VersionId
The ID of the version of the generic artifact. If the version does not exist, a new version will be created.
The version_id must start and end with a letter or number, can only contain lowercase letters, numbers,
hyphens and periods, i.e. [a-z0-9-.] and cannot exceed a total of 128 characters. Creating a version called
latest
is not allowed.
Declaration
[JsonProperty("versionId")]
public virtual string VersionId { get; set; }
Property Value
Type | Description |
---|---|
string |