Artifact Registry V1 API - Class Google::Cloud::ArtifactRegistry::V1::File (v0.4.0)

Reference documentation and code samples for the Artifact Registry V1 API class Google::Cloud::ArtifactRegistry::V1::File.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#create_time=

def create_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
Returns

#hashes

def hashes() -> ::Array<::Google::Cloud::ArtifactRegistry::V1::Hash>
Returns

#hashes=

def hashes=(value) -> ::Array<::Google::Cloud::ArtifactRegistry::V1::Hash>
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::String) — 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.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#owner

def owner() -> ::String
Returns
  • (::String) — The name of the Package or Version that owns this file, if any.

#owner=

def owner=(value) -> ::String
Parameter
  • value (::String) — The name of the Package or Version that owns this file, if any.
Returns
  • (::String) — The name of the Package or Version that owns this file, if any.

#size_bytes

def size_bytes() -> ::Integer
Returns
  • (::Integer) — The size of the File in bytes.

#size_bytes=

def size_bytes=(value) -> ::Integer
Parameter
  • value (::Integer) — The size of the File in bytes.
Returns
  • (::Integer) — The size of the File in bytes.

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns

#update_time=

def update_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
Returns