Class: OCI::FleetAppsManagement::Models::RunbookImportDependencyFinderRequiredValue
- Inherits:
-
Object
- Object
- OCI::FleetAppsManagement::Models::RunbookImportDependencyFinderRequiredValue
- Defined in:
- lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb
Overview
Runbook import required value.
Constant Summary collapse
- RENDERING_COMPONENT_ENUM =
[ RENDERING_COMPONENT_SINGLE_CHOICE = 'SINGLE_CHOICE'.freeze, RENDERING_COMPONENT_MULTI_CHOICE = 'MULTI_CHOICE'.freeze, RENDERING_COMPONENT_INPUT_TEXT = 'INPUT_TEXT'.freeze, RENDERING_COMPONENT_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- EXPECTED_ASSIGNMENT_ENUM =
[ EXPECTED_ASSIGNMENT_TF_PACKAGE = 'TF_PACKAGE'.freeze, EXPECTED_ASSIGNMENT_NON_TF_PACKAGE = 'NON_TF_PACKAGE'.freeze, EXPECTED_ASSIGNMENT_CONFIG_FILE = 'CONFIG_FILE'.freeze, EXPECTED_ASSIGNMENT_NULL = 'NULL'.freeze, EXPECTED_ASSIGNMENT_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#expected_assignment ⇒ String
Expected assignment.
-
#field ⇒ String
[Required] Field for required value.
-
#label ⇒ String
Label for required value.
-
#placeholder_assignment ⇒ String
Placeholder assignment for required value.
-
#rendering_component ⇒ String
Rendering component value for required value.
-
#step_name ⇒ String
Step name for required value.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ RunbookImportDependencyFinderRequiredValue
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ RunbookImportDependencyFinderRequiredValue
Initializes the object
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 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 92 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.rendering_component = attributes[:'renderingComponent'] if attributes[:'renderingComponent'] raise 'You cannot provide both :renderingComponent and :rendering_component' if attributes.key?(:'renderingComponent') && attributes.key?(:'rendering_component') self.rendering_component = attributes[:'rendering_component'] if attributes[:'rendering_component'] self.label = attributes[:'label'] if attributes[:'label'] self.step_name = attributes[:'stepName'] if attributes[:'stepName'] raise 'You cannot provide both :stepName and :step_name' if attributes.key?(:'stepName') && attributes.key?(:'step_name') self.step_name = attributes[:'step_name'] if attributes[:'step_name'] self.placeholder_assignment = attributes[:'placeholderAssignment'] if attributes[:'placeholderAssignment'] raise 'You cannot provide both :placeholderAssignment and :placeholder_assignment' if attributes.key?(:'placeholderAssignment') && attributes.key?(:'placeholder_assignment') self.placeholder_assignment = attributes[:'placeholder_assignment'] if attributes[:'placeholder_assignment'] self.expected_assignment = attributes[:'expectedAssignment'] if attributes[:'expectedAssignment'] raise 'You cannot provide both :expectedAssignment and :expected_assignment' if attributes.key?(:'expectedAssignment') && attributes.key?(:'expected_assignment') self.expected_assignment = attributes[:'expected_assignment'] if attributes[:'expected_assignment'] self.field = attributes[:'field'] if attributes[:'field'] end |
Instance Attribute Details
#expected_assignment ⇒ String
Expected assignment.
46 47 48 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 46 def expected_assignment @expected_assignment end |
#field ⇒ String
[Required] Field for required value.
50 51 52 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 50 def field @field end |
#label ⇒ String
Label for required value.
33 34 35 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 33 def label @label end |
#placeholder_assignment ⇒ String
Placeholder assignment for required value.
41 42 43 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 41 def placeholder_assignment @placeholder_assignment end |
#rendering_component ⇒ String
Rendering component value for required value.
29 30 31 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 29 def rendering_component @rendering_component end |
#step_name ⇒ String
Step name for required value.
37 38 39 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 37 def step_name @step_name end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 53 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'rendering_component': :'renderingComponent', 'label': :'label', 'step_name': :'stepName', 'placeholder_assignment': :'placeholderAssignment', 'expected_assignment': :'expectedAssignment', 'field': :'field' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 67 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'rendering_component': :'String', 'label': :'String', 'step_name': :'String', 'placeholder_assignment': :'String', 'expected_assignment': :'String', 'field': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 160 def ==(other) return true if equal?(other) self.class == other.class && rendering_component == other.rendering_component && label == other.label && step_name == other.step_name && placeholder_assignment == other.placeholder_assignment && expected_assignment == other.expected_assignment && field == other.field end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 195 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
175 176 177 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 175 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
184 185 186 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 184 def hash [rendering_component, label, step_name, placeholder_assignment, expected_assignment, field].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
228 229 230 231 232 233 234 235 236 237 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 228 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
222 223 224 |
# File 'lib/oci/fleet_apps_management/models/runbook_import_dependency_finder_required_value.rb', line 222 def to_s to_hash.to_s end |