Class: Google::Apis::ContaineranalysisV1alpha1::File

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ File

Returns a new instance of File.



4412
4413
4414
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4412

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

Instance Attribute Details

#digestHash<String,String>

Optional. The digest(s) of the file. Corresponds to the JSON property digest

Returns:

  • (Hash<String,String>)


4405
4406
4407
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4405

def digest
  @digest
end

#nameString

Optional. The name of the file. Corresponds to the JSON property name

Returns:

  • (String)


4410
4411
4412
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4410

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4417
4418
4419
4420
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4417

def update!(**args)
  @digest = args[:digest] if args.key?(:digest)
  @name = args[:name] if args.key?(:name)
end