Artifact Registry v1 API - Class File (2.1.0)

Stay organized with collections Save and categorize content based on your preferences.
public sealed class File : IMessage<File>, IEquatable<File>, IDeepCloneable<File>, IBufferMessage, IMessage

Reference documentation and code samples for the Artifact Registry v1 API class File.

Files store content that is potentially associated with Packages or Versions.

Inheritance

Object > File

Namespace

Google.Cloud.ArtifactRegistry.V1

Assembly

Google.Cloud.ArtifactRegistry.V1.dll

Constructors

File()

public File()

File(File)

public File(File other)
Parameter
NameDescription
otherFile

Properties

CreateTime

public Timestamp CreateTime { get; set; }

The time when the File was created.

Property Value
TypeDescription
Timestamp

FileName

public FileName FileName { get; set; }

FileName-typed view over the Name resource name property.

Property Value
TypeDescription
FileName

Hashes

public RepeatedField<Hash> Hashes { get; }

The hashes of the file content.

Property Value
TypeDescription
RepeatedField<Hash>

Name

public string Name { get; set; }

The name of the file, for example: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt". If the file ID part contains slashes, they are escaped.

Property Value
TypeDescription
String

Owner

public string Owner { get; set; }

The name of the Package or Version that owns this file, if any.

Property Value
TypeDescription
String

SizeBytes

public long SizeBytes { get; set; }

The size of the File in bytes.

Property Value
TypeDescription
Int64

UpdateTime

public Timestamp UpdateTime { get; set; }

The time when the File was last updated.

Property Value
TypeDescription
Timestamp