Class: Com::Vmware::Appliance::Techpreview::Services::Status::ServiceStatus
- Inherits:
-
VAPI::Bindings::VapiEnum
- Object
- VAPI::Bindings::VapiEnum
- Com::Vmware::Appliance::Techpreview::Services::Status::ServiceStatus
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/services.rb
Overview
``Com::Vmware::Appliance::Techpreview::Services::Status::ServiceStatus`` enumerated type Defines service status
Constant Summary
- DOWN =
ServiceStatus.new('DOWN')
- UP =
ServiceStatus.new('UP')
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Appliance::Techpreview::Services::Status::ServiceStatus) down
Service is not running.
-
- (Com::Vmware::Appliance::Techpreview::Services::Status::ServiceStatus) up
Service is running.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
-
+ (ServiceStatus) 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::Techpreview::Services::Status::ServiceStatus) down
Service is not running.
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/services.rb', line 85 class ServiceStatus < 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.services.status.service_status', ServiceStatus) 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 [ServiceStatus] 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 ServiceStatus.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] down # @return [Com::Vmware::Appliance::Techpreview::Services::Status::ServiceStatus] # Service is not running. DOWN = ServiceStatus.new('DOWN') # @!attribute [rw] up # @return [Com::Vmware::Appliance::Techpreview::Services::Status::ServiceStatus] # Service is running. UP = ServiceStatus.new('UP') end |
- (Com::Vmware::Appliance::Techpreview::Services::Status::ServiceStatus) up
Service is running.
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/services.rb', line 85 class ServiceStatus < 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.services.status.service_status', ServiceStatus) 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 [ServiceStatus] 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 ServiceStatus.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] down # @return [Com::Vmware::Appliance::Techpreview::Services::Status::ServiceStatus] # Service is not running. DOWN = ServiceStatus.new('DOWN') # @!attribute [rw] up # @return [Com::Vmware::Appliance::Techpreview::Services::Status::ServiceStatus] # Service is running. UP = ServiceStatus.new('UP') end |
Class Method Details
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
91 92 93 94 95 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/services.rb', line 91 def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.appliance.techpreview.services.status.service_status', ServiceStatus) end |
+ (ServiceStatus) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
102 103 104 105 106 107 108 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/services.rb', line 102 def from_string(value) begin const_get(value) rescue NameError ServiceStatus.new('UNKNOWN', value) end end |