Class: Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol

Inherits:
VAPI::Bindings::VapiEnum
  • Object
show all
Defined in:
/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb

Overview

``Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol`` enumerated type Defines different proxy protocols

Constant Summary

FTP =
ProxyProtocol.new('FTP')
HTTP =
ProxyProtocol.new('HTTP')
HTTPS =
ProxyProtocol.new('HTTPS')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol) ftp

proxy configuration for ftp.



1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1180

class ProxyProtocol < 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.techpreview.networking.proxy.proxy_protocol',
                ProxyProtocol)
        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 [ProxyProtocol] 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
                ProxyProtocol.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] ftp
    #     @return [Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol]
    #     proxy configuration for ftp.
    FTP = ProxyProtocol.new('FTP')

    # @!attribute [rw] http
    #     @return [Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol]
    #     proxy configuration for http.
    HTTP = ProxyProtocol.new('HTTP')

    # @!attribute [rw] https
    #     @return [Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol]
    #     proxy configuration for https.
    HTTPS = ProxyProtocol.new('HTTPS')

end

- (Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol) http

proxy configuration for http.



1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1180

class ProxyProtocol < 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.techpreview.networking.proxy.proxy_protocol',
                ProxyProtocol)
        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 [ProxyProtocol] 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
                ProxyProtocol.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] ftp
    #     @return [Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol]
    #     proxy configuration for ftp.
    FTP = ProxyProtocol.new('FTP')

    # @!attribute [rw] http
    #     @return [Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol]
    #     proxy configuration for http.
    HTTP = ProxyProtocol.new('HTTP')

    # @!attribute [rw] https
    #     @return [Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol]
    #     proxy configuration for https.
    HTTPS = ProxyProtocol.new('HTTPS')

end

- (Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol) https

proxy configuration for https.



1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1180

class ProxyProtocol < 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.techpreview.networking.proxy.proxy_protocol',
                ProxyProtocol)
        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 [ProxyProtocol] 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
                ProxyProtocol.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] ftp
    #     @return [Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol]
    #     proxy configuration for ftp.
    FTP = ProxyProtocol.new('FTP')

    # @!attribute [rw] http
    #     @return [Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol]
    #     proxy configuration for http.
    HTTP = ProxyProtocol.new('HTTP')

    # @!attribute [rw] https
    #     @return [Com::Vmware::Appliance::Techpreview::Networking::Proxy::ProxyProtocol]
    #     proxy configuration for https.
    HTTPS = ProxyProtocol.new('HTTPS')

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



1186
1187
1188
1189
1190
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1186

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.appliance.techpreview.networking.proxy.proxy_protocol',
        ProxyProtocol)
end

+ (ProxyProtocol) 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:

  • (ProxyProtocol)

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



1197
1198
1199
1200
1201
1202
1203
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking.rb', line 1197

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