Class: Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type
- Inherits:
-
VAPI::Bindings::VapiEnum
- Object
- VAPI::Bindings::VapiEnum
- Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel.rb
Overview
The ``Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type`` enumerated type defines the valid types for values in metadata elements.
Constant Summary
- LONG =
Type.new('LONG')
- STRING =
Type.new('STRING')
- STRING_LIST =
Type.new('STRING_LIST')
- STRUCTURE_REFERENCE =
Type.new('STRUCTURE_REFERENCE')
- STRUCTURE_REFERENCE_LIST =
Type.new('STRUCTURE_REFERENCE_LIST')
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type) long
Indicates the type of the value is a long (64 bit signed integer).
-
- (Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type) string
Indicates the type of the value is a string (a variable length sequence of characters).
-
- (Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type) string_list
Indicates the type of the value is a list of strings.
-
- (Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type) structure_reference
Indicates the type of the value is an identifier for a structure element.
-
- (Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type) structure_reference_list
Indicates the type of the value is a list of identifiers for a structure element.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
-
+ (Type) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
Instance Attribute Details
- (Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type) long
Indicates the type of the value is a long (64 bit signed integer).
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 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel.rb', line 1188 class Type < 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.vapi.metadata.metamodel.element_value.type', Type) 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 [Type] 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 Type.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] long # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a long (64 bit signed integer). LONG = Type.new('LONG') # @!attribute [rw] string # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a string (a variable length sequence of characters). The encoding is UTF-8. STRING = Type.new('STRING') # @!attribute [rw] string_list # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a list of strings. STRING_LIST = Type.new('STRING_LIST') # @!attribute [rw] structure_reference # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is an identifier for a structure element. STRUCTURE_REFERENCE = Type.new('STRUCTURE_REFERENCE') # @!attribute [rw] structure_reference_list # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a list of identifiers for a structure element. STRUCTURE_REFERENCE_LIST = Type.new('STRUCTURE_REFERENCE_LIST') end |
- (Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type) string
Indicates the type of the value is a string (a variable length sequence of characters). The encoding is UTF-8.
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 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel.rb', line 1188 class Type < 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.vapi.metadata.metamodel.element_value.type', Type) 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 [Type] 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 Type.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] long # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a long (64 bit signed integer). LONG = Type.new('LONG') # @!attribute [rw] string # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a string (a variable length sequence of characters). The encoding is UTF-8. STRING = Type.new('STRING') # @!attribute [rw] string_list # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a list of strings. STRING_LIST = Type.new('STRING_LIST') # @!attribute [rw] structure_reference # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is an identifier for a structure element. STRUCTURE_REFERENCE = Type.new('STRUCTURE_REFERENCE') # @!attribute [rw] structure_reference_list # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a list of identifiers for a structure element. STRUCTURE_REFERENCE_LIST = Type.new('STRUCTURE_REFERENCE_LIST') end |
- (Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type) string_list
Indicates the type of the value is a list of strings.
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 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel.rb', line 1188 class Type < 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.vapi.metadata.metamodel.element_value.type', Type) 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 [Type] 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 Type.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] long # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a long (64 bit signed integer). LONG = Type.new('LONG') # @!attribute [rw] string # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a string (a variable length sequence of characters). The encoding is UTF-8. STRING = Type.new('STRING') # @!attribute [rw] string_list # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a list of strings. STRING_LIST = Type.new('STRING_LIST') # @!attribute [rw] structure_reference # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is an identifier for a structure element. STRUCTURE_REFERENCE = Type.new('STRUCTURE_REFERENCE') # @!attribute [rw] structure_reference_list # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a list of identifiers for a structure element. STRUCTURE_REFERENCE_LIST = Type.new('STRUCTURE_REFERENCE_LIST') end |
- (Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type) structure_reference
Indicates the type of the value is an identifier for a structure element.
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 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel.rb', line 1188 class Type < 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.vapi.metadata.metamodel.element_value.type', Type) 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 [Type] 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 Type.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] long # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a long (64 bit signed integer). LONG = Type.new('LONG') # @!attribute [rw] string # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a string (a variable length sequence of characters). The encoding is UTF-8. STRING = Type.new('STRING') # @!attribute [rw] string_list # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a list of strings. STRING_LIST = Type.new('STRING_LIST') # @!attribute [rw] structure_reference # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is an identifier for a structure element. STRUCTURE_REFERENCE = Type.new('STRUCTURE_REFERENCE') # @!attribute [rw] structure_reference_list # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a list of identifiers for a structure element. STRUCTURE_REFERENCE_LIST = Type.new('STRUCTURE_REFERENCE_LIST') end |
- (Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type) structure_reference_list
Indicates the type of the value is a list of identifiers for a structure element.
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 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel.rb', line 1188 class Type < 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.vapi.metadata.metamodel.element_value.type', Type) 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 [Type] 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 Type.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] long # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a long (64 bit signed integer). LONG = Type.new('LONG') # @!attribute [rw] string # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a string (a variable length sequence of characters). The encoding is UTF-8. STRING = Type.new('STRING') # @!attribute [rw] string_list # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a list of strings. STRING_LIST = Type.new('STRING_LIST') # @!attribute [rw] structure_reference # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is an identifier for a structure element. STRUCTURE_REFERENCE = Type.new('STRUCTURE_REFERENCE') # @!attribute [rw] structure_reference_list # @return [Com::Vmware::Vapi::Metadata::Metamodel::ElementValue::Type] # Indicates the type of the value is a list of identifiers for a structure element. STRUCTURE_REFERENCE_LIST = Type.new('STRUCTURE_REFERENCE_LIST') end |
Class Method Details
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
1194 1195 1196 1197 1198 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel.rb', line 1194 def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.vapi.metadata.metamodel.element_value.type', Type) end |
+ (Type) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
1205 1206 1207 1208 1209 1210 1211 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/metamodel.rb', line 1205 def from_string(value) begin const_get(value) rescue NameError Type.new('UNKNOWN', value) end end |