Class List Method List File List

# Class: Com::Vmware::Appliance::Recovery::RestoreService::LocationType

Inherits:
  VAPI::Bindings::VapiEnum
  - Object
  - VAPI::Bindings::VapiEnum
  - Com::Vmware::Appliance::Recovery::RestoreService::LocationType
  show all
Defined in:
  /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/recovery.rb

## Overview

``Com::Vmware::Appliance::Recovery::Restore::LocationType`` enumerated type Defines type of all locations for backup/restore

## Constant Summary

FTPS =

      LocationType.new('FTPS')

HTTP =

      LocationType.new('HTTP')

SCP =

      LocationType.new('SCP')

HTTPS =

      LocationType.new('HTTPS')

FTP =

      LocationType.new('FTP')

## Instance Attribute Summary (collapse)

- - (Com::Vmware::Appliance::Recovery::Restore::LocationType) ftp

  Destination is FTP server.

- - (Com::Vmware::Appliance::Recovery::Restore::LocationType) ftps

  Destination is FTPS server.

- - (Com::Vmware::Appliance::Recovery::Restore::LocationType) http

  Destination is HTTP server.

- - (Com::Vmware::Appliance::Recovery::Restore::LocationType) https

  Destination is HTTPS server.

- - (Com::Vmware::Appliance::Recovery::Restore::LocationType) scp

  Destination is SSH server.

## Class Method Summary (collapse)

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

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

- + (LocationType) from_string(value)

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

## Instance Attribute Details

### - (`Com::Vmware::Appliance::Recovery::Restore::LocationType`) ftp

Destination is FTP server

Returns:

- (`Com::Vmware::Appliance::Recovery::Restore::LocationType`)

    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/recovery.rb', line 603

    class LocationType < 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.appliance.recovery.restore.location_type',
                    LocationType)
            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 [LocationType] 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
                    LocationType.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] ftps
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is FTPS server
        FTPS = LocationType.new('FTPS')

        # @!attribute [rw] http
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is HTTP server
        HTTP = LocationType.new('HTTP')

        # @!attribute [rw] scp
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is SSH server
        SCP = LocationType.new('SCP')

        # @!attribute [rw] https
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is HTTPS server
        HTTPS = LocationType.new('HTTPS')

        # @!attribute [rw] ftp
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is FTP server
        FTP = LocationType.new('FTP')

    end

### - (`Com::Vmware::Appliance::Recovery::Restore::LocationType`) ftps

Destination is FTPS server

Returns:

- (`Com::Vmware::Appliance::Recovery::Restore::LocationType`)

    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/recovery.rb', line 603

    class LocationType < 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.appliance.recovery.restore.location_type',
                    LocationType)
            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 [LocationType] 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
                    LocationType.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] ftps
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is FTPS server
        FTPS = LocationType.new('FTPS')

        # @!attribute [rw] http
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is HTTP server
        HTTP = LocationType.new('HTTP')

        # @!attribute [rw] scp
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is SSH server
        SCP = LocationType.new('SCP')

        # @!attribute [rw] https
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is HTTPS server
        HTTPS = LocationType.new('HTTPS')

        # @!attribute [rw] ftp
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is FTP server
        FTP = LocationType.new('FTP')

    end

### - (`Com::Vmware::Appliance::Recovery::Restore::LocationType`) http

Destination is HTTP server

Returns:

- (`Com::Vmware::Appliance::Recovery::Restore::LocationType`)

    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/recovery.rb', line 603

    class LocationType < 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.appliance.recovery.restore.location_type',
                    LocationType)
            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 [LocationType] 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
                    LocationType.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] ftps
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is FTPS server
        FTPS = LocationType.new('FTPS')

        # @!attribute [rw] http
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is HTTP server
        HTTP = LocationType.new('HTTP')

        # @!attribute [rw] scp
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is SSH server
        SCP = LocationType.new('SCP')

        # @!attribute [rw] https
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is HTTPS server
        HTTPS = LocationType.new('HTTPS')

        # @!attribute [rw] ftp
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is FTP server
        FTP = LocationType.new('FTP')

    end

### - (`Com::Vmware::Appliance::Recovery::Restore::LocationType`) https

Destination is HTTPS server

Returns:

- (`Com::Vmware::Appliance::Recovery::Restore::LocationType`)

    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/recovery.rb', line 603

    class LocationType < 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.appliance.recovery.restore.location_type',
                    LocationType)
            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 [LocationType] 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
                    LocationType.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] ftps
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is FTPS server
        FTPS = LocationType.new('FTPS')

        # @!attribute [rw] http
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is HTTP server
        HTTP = LocationType.new('HTTP')

        # @!attribute [rw] scp
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is SSH server
        SCP = LocationType.new('SCP')

        # @!attribute [rw] https
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is HTTPS server
        HTTPS = LocationType.new('HTTPS')

        # @!attribute [rw] ftp
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is FTP server
        FTP = LocationType.new('FTP')

    end

### - (`Com::Vmware::Appliance::Recovery::Restore::LocationType`) scp

Destination is SSH server

Returns:

- (`Com::Vmware::Appliance::Recovery::Restore::LocationType`)

    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/recovery.rb', line 603

    class LocationType < 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.appliance.recovery.restore.location_type',
                    LocationType)
            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 [LocationType] 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
                    LocationType.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] ftps
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is FTPS server
        FTPS = LocationType.new('FTPS')

        # @!attribute [rw] http
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is HTTP server
        HTTP = LocationType.new('HTTP')

        # @!attribute [rw] scp
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is SSH server
        SCP = LocationType.new('SCP')

        # @!attribute [rw] https
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is HTTPS server
        HTTPS = LocationType.new('HTTPS')

        # @!attribute [rw] ftp
        #     @return [Com::Vmware::Appliance::Recovery::Restore::LocationType]
        #     Destination is FTP server
        FTP = LocationType.new('FTP')

    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

    609
    610
    611
    612
    613
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/recovery.rb', line 609

    def binding_type
        @binding_type ||= VAPI::Bindings::EnumType.new(
            'com.vmware.appliance.recovery.restore.location_type',
            LocationType)
    end

### + (`LocationType`) 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:

- (`LocationType`) —

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

    620
    621
    622
    623
    624
    625
    626
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/recovery.rb', line 620

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