Class: OCI::DataScience::Models::MultiNodeJobNodeConfigurationDetails
- Inherits:
-
JobNodeConfigurationDetails
- Object
- JobNodeConfigurationDetails
- OCI::DataScience::Models::MultiNodeJobNodeConfigurationDetails
- Defined in:
- lib/oci/data_science/models/multi_node_job_node_configuration_details.rb
Overview
MultiNodeJobNodeConfigurationDetails
Constant Summary collapse
- STARTUP_ORDER_ENUM =
[ STARTUP_ORDER_IN_ORDER = 'IN_ORDER'.freeze, STARTUP_ORDER_IN_PARALLEL = 'IN_PARALLEL'.freeze, STARTUP_ORDER_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Constants inherited from JobNodeConfigurationDetails
JobNodeConfigurationDetails::JOB_NODE_TYPE_ENUM
Instance Attribute Summary collapse
- #job_network_configuration ⇒ OCI::DataScience::Models::JobNetworkConfiguration
-
#job_node_group_configuration_details_list ⇒ Array<OCI::DataScience::Models::JobNodeGroupConfigurationDetails>
List of JobNodeGroupConfigurationDetails.
-
#maximum_runtime_in_minutes ⇒ Integer
A time bound for the execution of the job run.
-
#startup_order ⇒ String
The execution order of node groups.
Attributes inherited from JobNodeConfigurationDetails
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 = {}) ⇒ MultiNodeJobNodeConfigurationDetails
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.
Methods inherited from JobNodeConfigurationDetails
Constructor Details
#initialize(attributes = {}) ⇒ MultiNodeJobNodeConfigurationDetails
Initializes the object
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/oci/data_science/models/multi_node_job_node_configuration_details.rb', line 71 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['jobNodeType'] = 'MULTI_NODE' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.startup_order = attributes[:'startupOrder'] if attributes[:'startupOrder'] raise 'You cannot provide both :startupOrder and :startup_order' if attributes.key?(:'startupOrder') && attributes.key?(:'startup_order') self.startup_order = attributes[:'startup_order'] if attributes[:'startup_order'] self.maximum_runtime_in_minutes = attributes[:'maximumRuntimeInMinutes'] if attributes[:'maximumRuntimeInMinutes'] raise 'You cannot provide both :maximumRuntimeInMinutes and :maximum_runtime_in_minutes' if attributes.key?(:'maximumRuntimeInMinutes') && attributes.key?(:'maximum_runtime_in_minutes') self.maximum_runtime_in_minutes = attributes[:'maximum_runtime_in_minutes'] if attributes[:'maximum_runtime_in_minutes'] self.job_network_configuration = attributes[:'jobNetworkConfiguration'] if attributes[:'jobNetworkConfiguration'] raise 'You cannot provide both :jobNetworkConfiguration and :job_network_configuration' if attributes.key?(:'jobNetworkConfiguration') && attributes.key?(:'job_network_configuration') self.job_network_configuration = attributes[:'job_network_configuration'] if attributes[:'job_network_configuration'] self.job_node_group_configuration_details_list = attributes[:'jobNodeGroupConfigurationDetailsList'] if attributes[:'jobNodeGroupConfigurationDetailsList'] raise 'You cannot provide both :jobNodeGroupConfigurationDetailsList and :job_node_group_configuration_details_list' if attributes.key?(:'jobNodeGroupConfigurationDetailsList') && attributes.key?(:'job_node_group_configuration_details_list') self.job_node_group_configuration_details_list = attributes[:'job_node_group_configuration_details_list'] if attributes[:'job_node_group_configuration_details_list'] end |
Instance Attribute Details
#job_network_configuration ⇒ OCI::DataScience::Models::JobNetworkConfiguration
29 30 31 |
# File 'lib/oci/data_science/models/multi_node_job_node_configuration_details.rb', line 29 def job_network_configuration @job_network_configuration end |
#job_node_group_configuration_details_list ⇒ Array<OCI::DataScience::Models::JobNodeGroupConfigurationDetails>
List of JobNodeGroupConfigurationDetails
33 34 35 |
# File 'lib/oci/data_science/models/multi_node_job_node_configuration_details.rb', line 33 def job_node_group_configuration_details_list @job_node_group_configuration_details_list end |
#maximum_runtime_in_minutes ⇒ Integer
A time bound for the execution of the job run. Timer starts when the job run is in progress.
26 27 28 |
# File 'lib/oci/data_science/models/multi_node_job_node_configuration_details.rb', line 26 def maximum_runtime_in_minutes @maximum_runtime_in_minutes end |
#startup_order ⇒ String
The execution order of node groups
21 22 23 |
# File 'lib/oci/data_science/models/multi_node_job_node_configuration_details.rb', line 21 def startup_order @startup_order end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/oci/data_science/models/multi_node_job_node_configuration_details.rb', line 36 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'job_node_type': :'jobNodeType', 'startup_order': :'startupOrder', 'maximum_runtime_in_minutes': :'maximumRuntimeInMinutes', 'job_network_configuration': :'jobNetworkConfiguration', 'job_node_group_configuration_details_list': :'jobNodeGroupConfigurationDetailsList' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/oci/data_science/models/multi_node_job_node_configuration_details.rb', line 49 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'job_node_type': :'String', 'startup_order': :'String', 'maximum_runtime_in_minutes': :'Integer', 'job_network_configuration': :'OCI::DataScience::Models::JobNetworkConfiguration', 'job_node_group_configuration_details_list': :'Array<OCI::DataScience::Models::JobNodeGroupConfigurationDetails>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
126 127 128 129 130 131 132 133 134 135 |
# File 'lib/oci/data_science/models/multi_node_job_node_configuration_details.rb', line 126 def ==(other) return true if equal?(other) self.class == other.class && job_node_type == other.job_node_type && startup_order == other.startup_order && maximum_runtime_in_minutes == other.maximum_runtime_in_minutes && job_network_configuration == other.job_network_configuration && job_node_group_configuration_details_list == other.job_node_group_configuration_details_list end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/oci/data_science/models/multi_node_job_node_configuration_details.rb', line 160 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
140 141 142 |
# File 'lib/oci/data_science/models/multi_node_job_node_configuration_details.rb', line 140 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
149 150 151 |
# File 'lib/oci/data_science/models/multi_node_job_node_configuration_details.rb', line 149 def hash [job_node_type, startup_order, maximum_runtime_in_minutes, job_network_configuration, job_node_group_configuration_details_list].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
193 194 195 196 197 198 199 200 201 202 |
# File 'lib/oci/data_science/models/multi_node_job_node_configuration_details.rb', line 193 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
187 188 189 |
# File 'lib/oci/data_science/models/multi_node_job_node_configuration_details.rb', line 187 def to_s to_hash.to_s end |