Class: Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/artifactregistry_v1/classes.rb,
lib/google/apis/artifactregistry_v1/representations.rb,
lib/google/apis/artifactregistry_v1/representations.rb
Overview
Files store content that is potentially associated with Packages or Versions.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#fetch_time ⇒ String
Output only.
-
#hashes ⇒ Array<Google::Apis::ArtifactregistryV1::HashProp>
The hashes of the file content.
-
#name ⇒ String
The name of the file, for example: "projects/p1/locations/us-central1/ repositories/repo1/files/a%2Fb%2Fc.txt".
-
#owner ⇒ String
The name of the Package or Version that owns this file, if any.
-
#size_bytes ⇒ Fixnum
The size of the File in bytes.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsArtifactregistryV1File
constructor
A new instance of GoogleDevtoolsArtifactregistryV1File.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsArtifactregistryV1File
Returns a new instance of GoogleDevtoolsArtifactregistryV1File.
383 384 385 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 383 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the File was created.
Corresponds to the JSON property createTime
348 349 350 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 348 def create_time @create_time end |
#fetch_time ⇒ String
Output only. The time when the last attempt to refresh the file's data was
made. Only set when the repository is remote.
Corresponds to the JSON property fetchTime
354 355 356 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 354 def fetch_time @fetch_time end |
#hashes ⇒ Array<Google::Apis::ArtifactregistryV1::HashProp>
The hashes of the file content.
Corresponds to the JSON property hashes
359 360 361 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 359 def hashes @hashes end |
#name ⇒ 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.
Corresponds to the JSON property name
366 367 368 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 366 def name @name end |
#owner ⇒ String
The name of the Package or Version that owns this file, if any.
Corresponds to the JSON property owner
371 372 373 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 371 def owner @owner end |
#size_bytes ⇒ Fixnum
The size of the File in bytes.
Corresponds to the JSON property sizeBytes
376 377 378 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 376 def size_bytes @size_bytes end |
#update_time ⇒ String
Output only. The time when the File was last updated.
Corresponds to the JSON property updateTime
381 382 383 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 381 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
388 389 390 391 392 393 394 395 396 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 388 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @fetch_time = args[:fetch_time] if args.key?(:fetch_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 |