Class: Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/artifactregistry_v1beta2/classes.rb,
lib/google/apis/artifactregistry_v1beta2/representations.rb,
lib/google/apis/artifactregistry_v1beta2/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsArtifactregistryV1beta2File

Returns a new instance of GoogleDevtoolsArtifactregistryV1beta2File.



255
256
257
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 255

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

The time when the File was created. Corresponds to the JSON property createTime

Returns:

  • (String)


226
227
228
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 226

def create_time
  @create_time
end

#hashesArray<Google::Apis::ArtifactregistryV1beta2::HashProp>

The hashes of the file content. Corresponds to the JSON property hashes



231
232
233
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 231

def hashes
  @hashes
end

#nameString

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

Returns:

  • (String)


238
239
240
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 238

def name
  @name
end

#ownerString

The name of the Package or Version that owns this file, if any. Corresponds to the JSON property owner

Returns:

  • (String)


243
244
245
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 243

def owner
  @owner
end

#size_bytesFixnum

The size of the File in bytes. Corresponds to the JSON property sizeBytes

Returns:

  • (Fixnum)


248
249
250
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 248

def size_bytes
  @size_bytes
end

#update_timeString

The time when the File was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


253
254
255
# File 'lib/google/apis/artifactregistry_v1beta2/classes.rb', line 253

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



260
261
262
263
264
265
266
267
# 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