class Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File

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

Attributes

create_time[RW]

The time when the File was created. Corresponds to the JSON property `createTime` @return [String]

hashes[RW]

The hashes of the file content. Corresponds to the JSON property `hashes` @return [Array<Google::Apis::ArtifactregistryV1beta2::HashProp>]

name[RW]

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. Corresponds to the JSON property `name` @return [String]

owner[RW]

The name of the Package or Version that owns this file, if any. Corresponds to the JSON property `owner` @return [String]

size_bytes[RW]

The size of the File in bytes. Corresponds to the JSON property `sizeBytes` @return [Fixnum]

update_time[RW]

The time when the File was last updated. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/artifactregistry_v1beta2/classes.rb, line 255
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/artifactregistry_v1beta2/classes.rb, line 260
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @hashes = args[:hashes] if args.key?(:hashes)
  @name = args[:name] if args.key?(:name)
  @owner = args[:owner] if args.key?(:owner)
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
  @update_time = args[:update_time] if args.key?(:update_time)
end