Class: Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType
- Inherits:
-
VAPI::Bindings::VapiEnum
- Object
- VAPI::Bindings::VapiEnum
- Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb
Overview
The ``Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType`` enumerated type defines the valid MAC address origins for a virtual Ethernet adapter.
Constant Summary
- MANUAL =
MacAddressType.new('MANUAL')
- GENERATED =
MacAddressType.new('GENERATED')
- ASSIGNED =
MacAddressType.new('ASSIGNED')
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType) assigned
MAC address is assigned by vCenter Server.
-
- (Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType) generated
MAC address is generated automatically.
-
- (Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType) manual
MAC address is assigned statically.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
-
+ (MacAddressType) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
Instance Attribute Details
- (Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType) assigned
MAC address is assigned by vCenter Server.
3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3197 class MacAddressType < 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.vcenter.vm.hardware.ethernet.mac_address_type', MacAddressType) 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 [MacAddressType] 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 MacAddressType.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] manual # @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType] # MAC address is assigned statically. MANUAL = MacAddressType.new('MANUAL') # @!attribute [rw] generated # @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType] # MAC address is generated automatically. GENERATED = MacAddressType.new('GENERATED') # @!attribute [rw] assigned # @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType] # MAC address is assigned by vCenter Server. ASSIGNED = MacAddressType.new('ASSIGNED') end |
- (Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType) generated
MAC address is generated automatically.
3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3197 class MacAddressType < 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.vcenter.vm.hardware.ethernet.mac_address_type', MacAddressType) 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 [MacAddressType] 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 MacAddressType.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] manual # @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType] # MAC address is assigned statically. MANUAL = MacAddressType.new('MANUAL') # @!attribute [rw] generated # @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType] # MAC address is generated automatically. GENERATED = MacAddressType.new('GENERATED') # @!attribute [rw] assigned # @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType] # MAC address is assigned by vCenter Server. ASSIGNED = MacAddressType.new('ASSIGNED') end |
- (Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType) manual
MAC address is assigned statically.
3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3197 class MacAddressType < 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.vcenter.vm.hardware.ethernet.mac_address_type', MacAddressType) 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 [MacAddressType] 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 MacAddressType.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] manual # @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType] # MAC address is assigned statically. MANUAL = MacAddressType.new('MANUAL') # @!attribute [rw] generated # @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType] # MAC address is generated automatically. GENERATED = MacAddressType.new('GENERATED') # @!attribute [rw] assigned # @return [Com::Vmware::Vcenter::Vm::Hardware::Ethernet::MacAddressType] # MAC address is assigned by vCenter Server. ASSIGNED = MacAddressType.new('ASSIGNED') end |
Class Method Details
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
3203 3204 3205 3206 3207 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3203 def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vcenter.vm.hardware.ethernet.mac_address_type', MacAddressType) end |
+ (MacAddressType) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
3214 3215 3216 3217 3218 3219 3220 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 3214 def from_string(value) begin const_get(value) rescue NameError MacAddressType.new('UNKNOWN', value) end end |