Class: Google::Apis::ArtifactregistryV1beta1::File
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1beta1::File
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/artifactregistry_v1beta1/classes.rb,
lib/google/apis/artifactregistry_v1beta1/representations.rb,
lib/google/apis/artifactregistry_v1beta1/representations.rb
Overview
Files store content that is potentially associated with Packages or Versions.
Instance Attribute Summary collapse
-
#create_time ⇒ String
The time when the File was created.
-
#hashes ⇒ Array<Google::Apis::ArtifactregistryV1beta1::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
The time when the File was last updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ File
constructor
A new instance of File.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ File
Returns a new instance of File.
205 206 207 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 205 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
The time when the File was created.
Corresponds to the JSON property createTime
176 177 178 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 176 def create_time @create_time end |
#hashes ⇒ Array<Google::Apis::ArtifactregistryV1beta1::HashProp>
The hashes of the file content.
Corresponds to the JSON property hashes
181 182 183 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 181 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
188 189 190 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 188 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
193 194 195 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 193 def owner @owner end |
#size_bytes ⇒ Fixnum
The size of the File in bytes.
Corresponds to the JSON property sizeBytes
198 199 200 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 198 def size_bytes @size_bytes end |
#update_time ⇒ String
The time when the File was last updated.
Corresponds to the JSON property updateTime
203 204 205 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 203 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
210 211 212 213 214 215 216 217 |
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 210 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 |