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

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::Info`` class defines the uploaded file.

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Info) 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)



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

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

Instance Attribute Details

- (Fixnum) bytes_transferred

The number of bytes of this file that have been received by the server.

Returns:

  • (Fixnum)


316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 316

class Info < 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.info',
                {
                    'name' => VAPI::Bindings::StringType.instance,
                    'source_type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::SourceType'),
                    'size' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'checksum_info' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::File::ChecksumInfo')),
                    'source_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'upload_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'bytes_transferred' => VAPI::Bindings::IntegerType.instance,
                    'status' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferStatus'),
                    'error_message' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::LocalizableMessage')),
                },
                Info,
                false,
                nil)
        end
    end

    attr_accessor :name,
                  :source_type,
                  :size,
                  :checksum_info,
                  :source_endpoint,
                  :upload_endpoint,
                  :bytes_transferred,
                  :status,
                  :error_message

    # 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

- (Com::Vmware::Content::Library::Item::File::ChecksumInfo?) checksum_info

The checksum information of the file received by the server. If not specified the server does not verify the checksum.



316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 316

class Info < 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.info',
                {
                    'name' => VAPI::Bindings::StringType.instance,
                    'source_type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::SourceType'),
                    'size' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'checksum_info' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::File::ChecksumInfo')),
                    'source_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'upload_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'bytes_transferred' => VAPI::Bindings::IntegerType.instance,
                    'status' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferStatus'),
                    'error_message' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::LocalizableMessage')),
                },
                Info,
                false,
                nil)
        end
    end

    attr_accessor :name,
                  :source_type,
                  :size,
                  :checksum_info,
                  :source_endpoint,
                  :upload_endpoint,
                  :bytes_transferred,
                  :status,
                  :error_message

    # 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

- (Com::Vmware::Vapi::Std::LocalizableMessage?) error_message

Details about the transfer error. An error message is set if the status is :attr:`Com::Vmware::Content::Library::Item::TransferStatus.ERROR` .



316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 316

class Info < 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.info',
                {
                    'name' => VAPI::Bindings::StringType.instance,
                    'source_type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::SourceType'),
                    'size' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'checksum_info' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::File::ChecksumInfo')),
                    'source_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'upload_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'bytes_transferred' => VAPI::Bindings::IntegerType.instance,
                    'status' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferStatus'),
                    'error_message' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::LocalizableMessage')),
                },
                Info,
                false,
                nil)
        end
    end

    attr_accessor :name,
                  :source_type,
                  :size,
                  :checksum_info,
                  :source_endpoint,
                  :upload_endpoint,
                  :bytes_transferred,
                  :status,
                  :error_message

    # 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) name

The name of the file.

Returns:

  • (String)


316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 316

class Info < 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.info',
                {
                    'name' => VAPI::Bindings::StringType.instance,
                    'source_type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::SourceType'),
                    'size' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'checksum_info' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::File::ChecksumInfo')),
                    'source_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'upload_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'bytes_transferred' => VAPI::Bindings::IntegerType.instance,
                    'status' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferStatus'),
                    'error_message' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::LocalizableMessage')),
                },
                Info,
                false,
                nil)
        end
    end

    attr_accessor :name,
                  :source_type,
                  :size,
                  :checksum_info,
                  :source_endpoint,
                  :upload_endpoint,
                  :bytes_transferred,
                  :status,
                  :error_message

    # 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

- (Fixnum?) size

The file size, in bytes as received by the server. This field is guaranteed to be set when the server has completely received the file. This field won’t be set until the file status is :attr:`Com::Vmware::Content::Library::Item::TransferStatus.READY` .

Returns:

  • (Fixnum, nil)


316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 316

class Info < 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.info',
                {
                    'name' => VAPI::Bindings::StringType.instance,
                    'source_type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::SourceType'),
                    'size' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'checksum_info' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::File::ChecksumInfo')),
                    'source_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'upload_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'bytes_transferred' => VAPI::Bindings::IntegerType.instance,
                    'status' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferStatus'),
                    'error_message' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::LocalizableMessage')),
                },
                Info,
                false,
                nil)
        end
    end

    attr_accessor :name,
                  :source_type,
                  :size,
                  :checksum_info,
                  :source_endpoint,
                  :upload_endpoint,
                  :bytes_transferred,
                  :status,
                  :error_message

    # 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

- (Com::Vmware::Content::Library::Item::TransferEndpoint) source_endpoint

A source endpoint from which to retrieve the file. This field is optional and it is only relevant when the value of ``sourceType`` is :attr:`Com::Vmware::Content::Library::Item::Updatesession::File::SourceType.PULL` .



316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 316

class Info < 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.info',
                {
                    'name' => VAPI::Bindings::StringType.instance,
                    'source_type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::SourceType'),
                    'size' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'checksum_info' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::File::ChecksumInfo')),
                    'source_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'upload_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'bytes_transferred' => VAPI::Bindings::IntegerType.instance,
                    'status' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferStatus'),
                    'error_message' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::LocalizableMessage')),
                },
                Info,
                false,
                nil)
        end
    end

    attr_accessor :name,
                  :source_type,
                  :size,
                  :checksum_info,
                  :source_endpoint,
                  :upload_endpoint,
                  :bytes_transferred,
                  :status,
                  :error_message

    # 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

- (Com::Vmware::Content::Library::Item::Updatesession::File::SourceType) source_type

The source type ( ``NONE``, ``PUSH``, ``PULL`` ) from which the file is being retrieved. This may be :attr:`Com::Vmware::Content::Library::Item::Updatesession::File::SourceType.NONE` if the file is not being changed.



316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 316

class Info < 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.info',
                {
                    'name' => VAPI::Bindings::StringType.instance,
                    'source_type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::SourceType'),
                    'size' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'checksum_info' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::File::ChecksumInfo')),
                    'source_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'upload_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'bytes_transferred' => VAPI::Bindings::IntegerType.instance,
                    'status' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferStatus'),
                    'error_message' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::LocalizableMessage')),
                },
                Info,
                false,
                nil)
        end
    end

    attr_accessor :name,
                  :source_type,
                  :size,
                  :checksum_info,
                  :source_endpoint,
                  :upload_endpoint,
                  :bytes_transferred,
                  :status,
                  :error_message

    # 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

- (Com::Vmware::Content::Library::Item::TransferStatus) status

The transfer status ( ``WAITING_FOR_TRANSFER``, ``TRANSFERRING``, ``READY``, ``VALIDATING``, ``ERROR`` ) of this file.



316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 316

class Info < 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.info',
                {
                    'name' => VAPI::Bindings::StringType.instance,
                    'source_type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::SourceType'),
                    'size' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'checksum_info' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::File::ChecksumInfo')),
                    'source_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'upload_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'bytes_transferred' => VAPI::Bindings::IntegerType.instance,
                    'status' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferStatus'),
                    'error_message' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::LocalizableMessage')),
                },
                Info,
                false,
                nil)
        end
    end

    attr_accessor :name,
                  :source_type,
                  :size,
                  :checksum_info,
                  :source_endpoint,
                  :upload_endpoint,
                  :bytes_transferred,
                  :status,
                  :error_message

    # 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

- (Com::Vmware::Content::Library::Item::TransferEndpoint) upload_endpoint

An upload endpoint to which the client can push the content. This field is optional and it is only relevant when the value of ``sourceType`` is :attr:`Com::Vmware::Content::Library::Item::Updatesession::File::SourceType.PUSH` .



316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 316

class Info < 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.info',
                {
                    'name' => VAPI::Bindings::StringType.instance,
                    'source_type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::SourceType'),
                    'size' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
                    'checksum_info' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::File::ChecksumInfo')),
                    'source_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'upload_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
                    'bytes_transferred' => VAPI::Bindings::IntegerType.instance,
                    'status' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferStatus'),
                    'error_message' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::LocalizableMessage')),
                },
                Info,
                false,
                nil)
        end
    end

    attr_accessor :name,
                  :source_type,
                  :size,
                  :checksum_info,
                  :source_endpoint,
                  :upload_endpoint,
                  :bytes_transferred,
                  :status,
                  :error_message

    # 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



322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 322

def binding_type
    @binding_type ||= VAPI::Bindings::StructType.new(
        'com.vmware.content.library.item.updatesession.file.info',
        {
            'name' => VAPI::Bindings::StringType.instance,
            'source_type' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::Updatesession::File::SourceType'),
            'size' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::IntegerType.instance),
            'checksum_info' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::File::ChecksumInfo')),
            'source_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
            'upload_endpoint' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferEndpoint')),
            'bytes_transferred' => VAPI::Bindings::IntegerType.instance,
            'status' => VAPI::Bindings::ReferenceType.new('Com::Vmware::Content::Library::Item::TransferStatus'),
            'error_message' => VAPI::Bindings::OptionalType.new(VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Std::LocalizableMessage')),
        },
        Info,
        false,
        nil)
end