Class: Com::Vmware::Content::Library::Item::Updatesession::File::ValidationResult

Inherits:
VAPI::Bindings::VapiStruct
  • Object
show all
Defined in:
/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb

Overview

The ``Com::Vmware::Content::Library::Item::Updatesession::File::ValidationResult`` class defines the result of validating the files in the session.

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (ValidationResult) initialize(ruby_values = nil, struct_value = nil)

Constructs a new instance.

Parameters:

  • ruby_values (Hash) (defaults to: nil)

    a map of initial property values (optional)

  • struct_value (VAPI::Data::StructValue) (defaults to: nil)

    a raw StructValue from the wire (optional)



436
437
438
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 436

def initialize(ruby_values=nil, struct_value=nil)
    super(self.class.binding_type, ruby_values, struct_value)
end

Instance Attribute Details

- (Boolean) has_errors

Whether the validation was succesful or not. In case of errors, the :attr:`Com::Vmware::Content::Library::Item::Updatesession::File::ValidationResult.missing_files` and :attr:`Com::Vmware::Content::Library::Item::Updatesession::File::ValidationResult.invalid_files` will contain at least one entry.

Returns:

  • (Boolean)


409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 409

class ValidationResult < 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.updatesession.file.validation_result',
                {
                    'has_errors' => VAPI::Bindings::BooleanType.instance,
                    'missing_files' => VAPI::Bindings::SetType.new(VAPI::Bindings::StringType.instance),
                    'invalid_files' => VAPI::Bindings::ListType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::ValidationError')),
                },
                ValidationResult,
                false,
                nil)
        end
    end

    attr_accessor :has_errors,
                  :missing_files,
                  :invalid_files

    # 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

- (Array<Com::Vmware::Content::Library::Item::Updatesession::File::ValidationError>) invalid_files

A list containing the files that have been identified as invalid and details about the error.



409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 409

class ValidationResult < 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.updatesession.file.validation_result',
                {
                    'has_errors' => VAPI::Bindings::BooleanType.instance,
                    'missing_files' => VAPI::Bindings::SetType.new(VAPI::Bindings::StringType.instance),
                    'invalid_files' => VAPI::Bindings::ListType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::ValidationError')),
                },
                ValidationResult,
                false,
                nil)
        end
    end

    attr_accessor :has_errors,
                  :missing_files,
                  :invalid_files

    # 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

- (Set<String>) missing_files

A set containing the names of the files that are required but the client hasn’t added.

Returns:

  • (Set<String>)


409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 409

class ValidationResult < 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.updatesession.file.validation_result',
                {
                    'has_errors' => VAPI::Bindings::BooleanType.instance,
                    'missing_files' => VAPI::Bindings::SetType.new(VAPI::Bindings::StringType.instance),
                    'invalid_files' => VAPI::Bindings::ListType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::ValidationError')),
                },
                ValidationResult,
                false,
                nil)
        end
    end

    attr_accessor :has_errors,
                  :missing_files,
                  :invalid_files

    # 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.

Returns:

  • (VAPI::Bindings::StructType)

    the binding type



415
416
417
418
419
420
421
422
423
424
425
426
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 415

def binding_type
    @binding_type ||= VAPI::Bindings::StructType.new(
        'com.vmware.content.library.item.updatesession.file.validation_result',
        {
            'has_errors' => VAPI::Bindings::BooleanType.instance,
            'missing_files' => VAPI::Bindings::SetType.new(VAPI::Bindings::StringType.instance),
            'invalid_files' => VAPI::Bindings::ListType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::ValidationError')),
        },
        ValidationResult,
        false,
        nil)
end