Class: Com::Vmware::Content::Library::Item::File::ChecksumInfo
- Inherits:
-
VAPI::Bindings::VapiStruct
- Object
- VAPI::Bindings::VapiStruct
- Com::Vmware::Content::Library::Item::File::ChecksumInfo
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item.rb
Overview
Provides checksums for a :class:`Com::Vmware::Content::Library::Item::File::Info` object.
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Content::Library::Item::File::ChecksumAlgorithm?) algorithm
The checksum algorithm ( ``SHA1``, ``MD5`` ) used to calculate the checksum.
-
- (String) checksum
The checksum value calculated with :attr:`Com::Vmware::Content::Library::Item::File::ChecksumInfo.algorithm` .
Class Method Summary (collapse)
-
+ (VAPI::Bindings::StructType) binding_type
Holds (gets or creates) the binding type metadata for this structure type.
Instance Method Summary (collapse)
-
- (ChecksumInfo) initialize(ruby_values = nil, struct_value = nil)
constructor
Constructs a new instance.
Constructor Details
- (ChecksumInfo) initialize(ruby_values = nil, struct_value = nil)
Constructs a new instance.
402 403 404 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item.rb', line 402 def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end |
Instance Attribute Details
- (Com::Vmware::Content::Library::Item::File::ChecksumAlgorithm?) algorithm
The checksum algorithm ( ``SHA1``, ``MD5`` ) used to calculate the checksum. If not specified the default checksum algorithm is :attr:`Com::Vmware::Content::Library::Item::File::ChecksumAlgorithm.SHA1` .
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item.rb', line 377 class ChecksumInfo < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.content.library.item.file.checksum_info', { 'algorithm' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::File::ChecksumAlgorithm')), 'checksum' => VAPI::Bindings::StringType.instance, }, ChecksumInfo, false, nil) end end attr_accessor :algorithm, :checksum # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end end |
- (String) checksum
The checksum value calculated with :attr:`Com::Vmware::Content::Library::Item::File::ChecksumInfo.algorithm` .
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item.rb', line 377 class ChecksumInfo < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.content.library.item.file.checksum_info', { 'algorithm' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::File::ChecksumAlgorithm')), 'checksum' => VAPI::Bindings::StringType.instance, }, ChecksumInfo, false, nil) end end attr_accessor :algorithm, :checksum # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end end |
Class Method Details
+ (VAPI::Bindings::StructType) binding_type
Holds (gets or creates) the binding type metadata for this structure type.
383 384 385 386 387 388 389 390 391 392 393 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item.rb', line 383 def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.content.library.item.file.checksum_info', { 'algorithm' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::File::ChecksumAlgorithm')), 'checksum' => VAPI::Bindings::StringType.instance, }, ChecksumInfo, false, nil) end |