Class: Google::Apis::ArtifactregistryV1beta1::File

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/artifactregistry_v1beta1/classes.rb,
generated/google/apis/artifactregistry_v1beta1/representations.rb,
generated/google/apis/artifactregistry_v1beta1/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) ⇒ File

Returns a new instance of File.



202
203
204
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 202

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)


174
175
176
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 174

def create_time
  @create_time
end

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

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



179
180
181
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 179

def hashes
  @hashes
end

#nameString

The name of the file, for example: "projects/p1/locations/us-central1/ repositories/repo1/files/a/b/c.txt". Corresponds to the JSON property name

Returns:

  • (String)


185
186
187
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 185

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)


190
191
192
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 190

def owner
  @owner
end

#size_bytesFixnum

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

Returns:

  • (Fixnum)


195
196
197
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 195

def size_bytes
  @size_bytes
end

#update_timeString

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

Returns:

  • (String)


200
201
202
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 200

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



207
208
209
210
211
212
213
214
# File 'generated/google/apis/artifactregistry_v1beta1/classes.rb', line 207

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