Class: Google::Apis::ContaineranalysisV1alpha1::File
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::File
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1alpha1/classes.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb
Overview
A file as part of a resource.
Instance Attribute Summary collapse
-
#digest ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Optional.
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.
4079 4080 4081 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4079 def initialize(**args) update!(**args) end |
Instance Attribute Details
#digest ⇒ Hash<String,String>
Optional. The digest(s) of the file.
Corresponds to the JSON property digest
4072 4073 4074 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4072 def digest @digest end |
#name ⇒ String
Optional. The name of the file.
Corresponds to the JSON property name
4077 4078 4079 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4077 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4084 4085 4086 4087 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4084 def update!(**args) @digest = args[:digest] if args.key?(:digest) @name = args[:name] if args.key?(:name) end |