Class: Com::Vmware::Content::LibraryModel::LibraryType
- Inherits:
-
VAPI::Bindings::VapiEnum
- Object
- VAPI::Bindings::VapiEnum
- Com::Vmware::Content::LibraryModel::LibraryType
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb
Overview
The ``Com::Vmware::Content::LibraryModel::LibraryType`` enumerated type defines the type of a :class:`Com::Vmware::Content::LibraryModel` .
The type of a library can be used to determine which additional services can be performed with a library.
Constant Summary
- LOCAL =
LibraryType.new('LOCAL')
- SUBSCRIBED =
LibraryType.new('SUBSCRIBED')
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Content::LibraryModel::LibraryType) local
The library contents are defined and stored by the local Content Library Service installation.
-
- (Com::Vmware::Content::LibraryModel::LibraryType) subscribed
The library synchronizes its items and content from another published library.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
-
+ (LibraryType) 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::LibraryModel::LibraryType) local
The library contents are defined and stored by the local Content Library Service installation.
A local library can be retrieved and managed via the :class:`Com::Vmware::Content::LocalLibrary` .
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 1251 1252 1253 1254 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 1203 class LibraryType < 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_model.library_type', LibraryType) 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 [LibraryType] 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 LibraryType.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] local # @return [Com::Vmware::Content::LibraryModel::LibraryType] # The library contents are defined and stored by the local Content Library Service installation. # # A local library can be retrieved and managed via the :class:`Com::Vmware::Content::LocalLibrary` . LOCAL = LibraryType.new('LOCAL') # @!attribute [rw] subscribed # @return [Com::Vmware::Content::LibraryModel::LibraryType] # The library synchronizes its items and content from another published library. # # A subscribed library can be retrieved and managed via the :class:`Com::Vmware::Content::SubscribedLibrary` . SUBSCRIBED = LibraryType.new('SUBSCRIBED') end |
- (Com::Vmware::Content::LibraryModel::LibraryType) subscribed
The library synchronizes its items and content from another published library.
A subscribed library can be retrieved and managed via the :class:`Com::Vmware::Content::SubscribedLibrary` .
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 1251 1252 1253 1254 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 1203 class LibraryType < 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_model.library_type', LibraryType) 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 [LibraryType] 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 LibraryType.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] local # @return [Com::Vmware::Content::LibraryModel::LibraryType] # The library contents are defined and stored by the local Content Library Service installation. # # A local library can be retrieved and managed via the :class:`Com::Vmware::Content::LocalLibrary` . LOCAL = LibraryType.new('LOCAL') # @!attribute [rw] subscribed # @return [Com::Vmware::Content::LibraryModel::LibraryType] # The library synchronizes its items and content from another published library. # # A subscribed library can be retrieved and managed via the :class:`Com::Vmware::Content::SubscribedLibrary` . SUBSCRIBED = LibraryType.new('SUBSCRIBED') end |
Class Method Details
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
1209 1210 1211 1212 1213 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 1209 def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.content.library_model.library_type', LibraryType) end |
+ (LibraryType) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
1220 1221 1222 1223 1224 1225 1226 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/content.rb', line 1220 def from_string(value) begin const_get(value) rescue NameError LibraryType.new('UNKNOWN', value) end end |