Class List Method List File List

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

Inherits:
  VAPI::Bindings::VapiEnum
  - Object
  - VAPI::Bindings::VapiEnum
  - Com::Vmware::Content::Library::Item::Updatesession::File::SourceType
  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::SourceType`` enumerated type defines how the file content is retrieved.

## Constant Summary

NONE =

      SourceType.new('NONE')

PUSH =

      SourceType.new('PUSH')

PULL =

      SourceType.new('PULL')

## Instance Attribute Summary (collapse)

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

  No source type has been requested.

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

  The server is pulling content from a URL.

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

  The client is uploading content using HTTP(S) PUT requests.

## Class Method Summary (collapse)

- + (VAPI::Bindings::EnumType) binding_type

  Holds (gets or creates) the binding type metadata for this enumeration type.

- + (SourceType) from_string(value)

  Converts from a string value (perhaps off the wire) to an instance of this enum type.

## Instance Attribute Details

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

No source type has been requested.

Returns:

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

    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 453

    class SourceType < VAPI::Bindings::VapiEnum

        class << self
            # Holds (gets or creates) the binding type metadata for this enumeration type.
            # @scope class
            # @return [VAPI::Bindings::EnumType] the binding type
            def binding_type
                @binding_type ||= VAPI::Bindings::EnumType.new(
                    'com.vmware.content.library.item.updatesession.file.source_type',
                    SourceType)
            end

            # Converts from a string value (perhaps off the wire) to an instance
            # of this enum type.
            # @param value [String] the actual value of the enum instance
            # @return [SourceType] the instance found for the value, otherwise
            #         an unknown instance will be built for the value
            def from_string(value)
                begin
                    const_get(value)
                rescue NameError
                    SourceType.new('UNKNOWN', value)
                end
            end
        end

        private

        # Constructs a new instance.
        # @param value [String] the actual value of the enum instance
        # @param unknown [String] the unknown value when value is 'UKNOWN'
        def initialize(value, unknown=nil)
            super(self.class.binding_type, value, unknown)
        end

        public

        # @!attribute [rw] none
        #     @return [Com::Vmware::Content::Library::Item::Updatesession::File::SourceType]
        #     No source type has been requested.
        NONE = SourceType.new('NONE')

        # @!attribute [rw] push
        #     @return [Com::Vmware::Content::Library::Item::Updatesession::File::SourceType]
        #     The client is uploading content using HTTP(S) PUT requests.
        PUSH = SourceType.new('PUSH')

        # @!attribute [rw] pull
        #     @return [Com::Vmware::Content::Library::Item::Updatesession::File::SourceType]
        #     The server is pulling content from a URL. The URL scheme can be  ``http`` ,  ``https`` ,  ``file`` , or  ``ds`` .
        PULL = SourceType.new('PULL')

    end

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

The server is pulling content from a URL. The URL scheme can be ``http`` , ``https`` , ``file`` , or ``ds`` .

Returns:

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

    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 453

    class SourceType < VAPI::Bindings::VapiEnum

        class << self
            # Holds (gets or creates) the binding type metadata for this enumeration type.
            # @scope class
            # @return [VAPI::Bindings::EnumType] the binding type
            def binding_type
                @binding_type ||= VAPI::Bindings::EnumType.new(
                    'com.vmware.content.library.item.updatesession.file.source_type',
                    SourceType)
            end

            # Converts from a string value (perhaps off the wire) to an instance
            # of this enum type.
            # @param value [String] the actual value of the enum instance
            # @return [SourceType] the instance found for the value, otherwise
            #         an unknown instance will be built for the value
            def from_string(value)
                begin
                    const_get(value)
                rescue NameError
                    SourceType.new('UNKNOWN', value)
                end
            end
        end

        private

        # Constructs a new instance.
        # @param value [String] the actual value of the enum instance
        # @param unknown [String] the unknown value when value is 'UKNOWN'
        def initialize(value, unknown=nil)
            super(self.class.binding_type, value, unknown)
        end

        public

        # @!attribute [rw] none
        #     @return [Com::Vmware::Content::Library::Item::Updatesession::File::SourceType]
        #     No source type has been requested.
        NONE = SourceType.new('NONE')

        # @!attribute [rw] push
        #     @return [Com::Vmware::Content::Library::Item::Updatesession::File::SourceType]
        #     The client is uploading content using HTTP(S) PUT requests.
        PUSH = SourceType.new('PUSH')

        # @!attribute [rw] pull
        #     @return [Com::Vmware::Content::Library::Item::Updatesession::File::SourceType]
        #     The server is pulling content from a URL. The URL scheme can be  ``http`` ,  ``https`` ,  ``file`` , or  ``ds`` .
        PULL = SourceType.new('PULL')

    end

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

The client is uploading content using HTTP(S) PUT requests.

Returns:

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

    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 453

    class SourceType < VAPI::Bindings::VapiEnum

        class << self
            # Holds (gets or creates) the binding type metadata for this enumeration type.
            # @scope class
            # @return [VAPI::Bindings::EnumType] the binding type
            def binding_type
                @binding_type ||= VAPI::Bindings::EnumType.new(
                    'com.vmware.content.library.item.updatesession.file.source_type',
                    SourceType)
            end

            # Converts from a string value (perhaps off the wire) to an instance
            # of this enum type.
            # @param value [String] the actual value of the enum instance
            # @return [SourceType] the instance found for the value, otherwise
            #         an unknown instance will be built for the value
            def from_string(value)
                begin
                    const_get(value)
                rescue NameError
                    SourceType.new('UNKNOWN', value)
                end
            end
        end

        private

        # Constructs a new instance.
        # @param value [String] the actual value of the enum instance
        # @param unknown [String] the unknown value when value is 'UKNOWN'
        def initialize(value, unknown=nil)
            super(self.class.binding_type, value, unknown)
        end

        public

        # @!attribute [rw] none
        #     @return [Com::Vmware::Content::Library::Item::Updatesession::File::SourceType]
        #     No source type has been requested.
        NONE = SourceType.new('NONE')

        # @!attribute [rw] push
        #     @return [Com::Vmware::Content::Library::Item::Updatesession::File::SourceType]
        #     The client is uploading content using HTTP(S) PUT requests.
        PUSH = SourceType.new('PUSH')

        # @!attribute [rw] pull
        #     @return [Com::Vmware::Content::Library::Item::Updatesession::File::SourceType]
        #     The server is pulling content from a URL. The URL scheme can be  ``http`` ,  ``https`` ,  ``file`` , or  ``ds`` .
        PULL = SourceType.new('PULL')

    end

## Class Method Details

### + (`VAPI::Bindings::EnumType`) binding_type

Holds (gets or creates) the binding type metadata for this enumeration type.

Returns:

- (`VAPI::Bindings::EnumType`) —

  the binding type

    459
    460
    461
    462
    463
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 459

    def binding_type
        @binding_type ||= VAPI::Bindings::EnumType.new(
            'com.vmware.content.library.item.updatesession.file.source_type',
            SourceType)
    end

### + (`SourceType`) from_string(value)

Converts from a string value (perhaps off the wire) to an instance of this enum type.

Parameters:

- value (`String`) —

  the actual value of the enum instance

Returns:

- (`SourceType`) —

  the instance found for the value, otherwise an unknown instance will be built for the value

    470
    471
    472
    473
    474
    475
    476
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content/library/item/updatesession.rb', line 470

    def from_string(value)
        begin
            const_get(value)
        rescue NameError
            SourceType.new('UNKNOWN', value)
        end
    end