Class: Google::Apis::OndemandscanningV1::File

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/ondemandscanning_v1/classes.rb,
lib/google/apis/ondemandscanning_v1/representations.rb,
lib/google/apis/ondemandscanning_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ File

Returns a new instance of File.



1197
1198
1199
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1197

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

Instance Attribute Details

#digestHash<String,String>

Corresponds to the JSON property digest

Returns:

  • (Hash<String,String>)


1190
1191
1192
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1190

def digest
  @digest
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


1195
1196
1197
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1195

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1202
1203
1204
1205
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1202

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