Class List Method List File List

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

Inherits:
  VAPI::Bindings::VapiStruct
  - Object
  - VAPI::Bindings::VapiStruct
  - Com::Vmware::Content::Library::Item::Updatesession::File::Info
  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)

- - (Fixnum) bytes_transferred

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

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

  The checksum information of the file received by the server.

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

  Details about the transfer error.

- - (String) name

  The name of the file.

- - (Fixnum?) size

  The file size, in bytes as received by the server.

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

  A source endpoint from which to retrieve the file.

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

  The source type ( ``NONE``, ``PUSH``, ``PULL`` ) from which the file is being retrieved.

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

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

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

  An upload endpoint to which the client can push the content.

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

- - (Info) initialize(ruby_values = nil, struct_value = nil) constructor

  Constructs a new instance.

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

Returns:

- (`Com::Vmware::Content::Library::Item::File::ChecksumInfo`, `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::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` .

Returns:

- (`Com::Vmware::Vapi::Std::LocalizableMessage`, `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

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

Returns:

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

    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.

Returns:

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

    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.

Returns:

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

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

Returns:

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

    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