Class: Google::Apis::OndemandscanningV1beta1::HashProp

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

Overview

Container message for hash values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HashProp

Returns a new instance of HashProp.



1253
1254
1255
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1253

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

Instance Attribute Details

#typeString

Required. The type of hash that was performed, e.g. "SHA-256". Corresponds to the JSON property type

Returns:

  • (String)


1245
1246
1247
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1245

def type
  @type
end

#valueString

Required. The hash value. Corresponds to the JSON property value NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


1251
1252
1253
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1251

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1258
1259
1260
1261
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1258

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