Class: IControl::LTConfig::Field
- Inherits:
-
Base
- Object
- Base
- IControl::LTConfig::Field
- Defined in:
- lib/icontrol/lt_config/field.rb,
lib/icontrol/lt_config.rb
Overview
The Field interface enables you to manage fields and field instances in the Loosely-Typed Configuration system.
Defined Under Namespace
Classes: EnabledStateSequenceSequence
Instance Method Summary (collapse)
-
- (String[]) application_data(opts)
Gets application data for one or more loosely-typed configuration fields for this classes.
-
- (EnabledState[]) clustered_state(opts)
Gets the clustered state for one or more specified loosely-typed configuration fields for this classes.
-
- (EnabledState[]) configsyncd_state(opts)
Gets the configsyncd state for one or more specified loosely-typed configuration fields for this classes.
-
- (String[]) db_variable_mirror_information(opts)
Gets db variable mirror information for one or more loosely-typed configuration fields for this classes.
-
- (String[]) default(opts)
Gets default value information for one or more loosely-typed configuration fields for this classes.
-
- (String[]) display_name(opts)
Gets display name information for one or more loosely-typed configuration fields for this classes.
-
- (String[]) list
Gets a list of loosely-typed configuration fields for this classes.
-
- (EnabledState[]) required_state(opts)
Gets the required state for one or more specified loosely-typed configuration fields for this classes.
-
- (Object) set_value(opts)
Sets the value for one loosely-typed configuration field instance for this class instance.
-
- (Object) set_values(opts)
Sets values for one or more loosely-typed configuration field instances for this class instances.
-
- (String[]) type_information(opts)
Gets type information for one or more loosely-typed configuration fields for this classes.
-
- (String) value(opts)
Gets the value for one loosely-typed configuration field instance for this class instance.
-
- (String[]) values(opts)
Gets values for one or more loosely-typed configuration field instances for this class instances.
-
- (String) version
Gets the version information for this interface.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
- (String[]) application_data(opts)
Gets application data for one or more loosely-typed configuration fields for this classes. This is the "back-end application hook".
19 20 21 22 |
# File 'lib/icontrol/lt_config/field.rb', line 19 def application_data(opts) check_params(opts,[:field_names]) super end |
- (EnabledState[]) clustered_state(opts)
Gets the clustered state for one or more specified loosely-typed configuration fields for this classes. If the field is clustered, that means don't use the default.
34 35 36 37 |
# File 'lib/icontrol/lt_config/field.rb', line 34 def clustered_state(opts) check_params(opts,[:field_names]) super end |
- (EnabledState[]) configsyncd_state(opts)
Gets the configsyncd state for one or more specified loosely-typed configuration fields for this classes. If the field is configsyncd, that means don't use the default.
49 50 51 52 |
# File 'lib/icontrol/lt_config/field.rb', line 49 def configsyncd_state(opts) check_params(opts,[:field_names]) super end |
- (String[]) db_variable_mirror_information(opts)
Gets db variable mirror information for one or more loosely-typed configuration fields for this classes. This, if non-empty, indicates which db variable should have its value mirrored with this field.
65 66 67 68 |
# File 'lib/icontrol/lt_config/field.rb', line 65 def db_variable_mirror_information(opts) check_params(opts,[:field_names]) super end |
- (String[]) default(opts)
Gets default value information for one or more loosely-typed configuration fields for this classes.
80 81 82 83 |
# File 'lib/icontrol/lt_config/field.rb', line 80 def default(opts) check_params(opts,[:field_names]) super end |
- (String[]) display_name(opts)
Gets display name information for one or more loosely-typed configuration fields for this classes.
95 96 97 98 |
# File 'lib/icontrol/lt_config/field.rb', line 95 def display_name(opts) check_params(opts,[:field_names]) super end |
- (String[]) list
Gets a list of loosely-typed configuration fields for this classes.
107 108 109 |
# File 'lib/icontrol/lt_config/field.rb', line 107 def list super end |
- (EnabledState[]) required_state(opts)
Gets the required state for one or more specified loosely-typed configuration fields for this classes. If the field is required, that means don't use the default.
121 122 123 124 |
# File 'lib/icontrol/lt_config/field.rb', line 121 def required_state(opts) check_params(opts,[:field_names]) super end |
- (Object) set_value(opts)
Sets the value for one loosely-typed configuration field instance for this class instance. This is for convenience, when you want to set just one value in just one class instance. Use set_values instead for greater efficiency when setting multiple field values.
199 200 201 202 |
# File 'lib/icontrol/lt_config/field.rb', line 199 def set_value(opts) check_params(opts,[:create_instances_if_needed,:class_instance_key,:field_instance_name,:value]) super end |
- (Object) set_values(opts)
Sets values for one or more loosely-typed configuration field instances for this class instances.
216 217 218 219 |
# File 'lib/icontrol/lt_config/field.rb', line 216 def set_values(opts) check_params(opts,[:create_instances_if_needed,:class_instance_keys,:field_instance_names,:values]) super end |
- (String[]) type_information(opts)
Gets type information for one or more loosely-typed configuration fields for this classes. (This is not to be confused with type; type information gives information relevant to the processing of a basic type, for example, type int might have type information specifying min and max value).
138 139 140 141 |
# File 'lib/icontrol/lt_config/field.rb', line 138 def type_information(opts) check_params(opts,[:field_names]) super end |
- (String) value(opts)
Gets the value for one loosely-typed configuration field instance for this class instance. This is for convenience, when you want to get just one value in just one class instance. Use get_values instead for greater efficiency when getting multiple field values.
156 157 158 159 |
# File 'lib/icontrol/lt_config/field.rb', line 156 def value(opts) check_params(opts,[:class_instance_key,:field_instance_name]) super end |
- (String[]) values(opts)
Gets values for one or more loosely-typed configuration field instances for this class instances.
172 173 174 175 |
# File 'lib/icontrol/lt_config/field.rb', line 172 def values(opts) check_params(opts,[:class_instance_keys,:field_instance_names]) super end |
- (String) version
Gets the version information for this interface.
181 182 183 |
# File 'lib/icontrol/lt_config/field.rb', line 181 def version super end |