Class: OCI::DataFlow::Models::UpdateSqlEndpointDetails
- Inherits:
-
Object
- Object
- OCI::DataFlow::Models::UpdateSqlEndpointDetails
- Defined in:
- lib/oci/data_flow/models/update_sql_endpoint_details.rb
Overview
The information about all updatable parameters of a SQL Endpoint.
Instance Attribute Summary collapse
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#description ⇒ String
The description of CreateSQLEndpointDetails.
-
#display_name ⇒ String
The SQL Endpoint name, which can be changed.
-
#driver_shape ⇒ String
The shape of the SQL Endpoint driver instance.
- #driver_shape_config ⇒ OCI::DataFlow::Models::ShapeConfig
-
#executor_shape ⇒ String
The shape of the SQL Endpoint worker instance.
- #executor_shape_config ⇒ OCI::DataFlow::Models::ShapeConfig
-
#freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource.
-
#lake_id ⇒ String
OCI lake OCID.
-
#max_executor_count ⇒ Integer
The maximum number of executors.
-
#metastore_id ⇒ String
Metastore OCID.
-
#min_executor_count ⇒ Integer
The minimum number of executors.
-
#spark_advanced_configurations ⇒ Hash<String, String>
The Spark configuration passed to the running process.
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 = {}) ⇒ UpdateSqlEndpointDetails
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 = {}) ⇒ UpdateSqlEndpointDetails
Initializes the object
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 132 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. = attributes[:'definedTags'] if attributes[:'definedTags'] raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags') self. = attributes[:'defined_tags'] if attributes[:'defined_tags'] self. = attributes[:'freeformTags'] if attributes[:'freeformTags'] raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags') self. = attributes[:'freeform_tags'] if attributes[:'freeform_tags'] self.display_name = attributes[:'displayName'] if attributes[:'displayName'] raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name') self.display_name = attributes[:'display_name'] if attributes[:'display_name'] self.description = attributes[:'description'] if attributes[:'description'] self.driver_shape = attributes[:'driverShape'] if attributes[:'driverShape'] raise 'You cannot provide both :driverShape and :driver_shape' if attributes.key?(:'driverShape') && attributes.key?(:'driver_shape') self.driver_shape = attributes[:'driver_shape'] if attributes[:'driver_shape'] self.driver_shape_config = attributes[:'driverShapeConfig'] if attributes[:'driverShapeConfig'] raise 'You cannot provide both :driverShapeConfig and :driver_shape_config' if attributes.key?(:'driverShapeConfig') && attributes.key?(:'driver_shape_config') self.driver_shape_config = attributes[:'driver_shape_config'] if attributes[:'driver_shape_config'] self.executor_shape = attributes[:'executorShape'] if attributes[:'executorShape'] raise 'You cannot provide both :executorShape and :executor_shape' if attributes.key?(:'executorShape') && attributes.key?(:'executor_shape') self.executor_shape = attributes[:'executor_shape'] if attributes[:'executor_shape'] self.executor_shape_config = attributes[:'executorShapeConfig'] if attributes[:'executorShapeConfig'] raise 'You cannot provide both :executorShapeConfig and :executor_shape_config' if attributes.key?(:'executorShapeConfig') && attributes.key?(:'executor_shape_config') self.executor_shape_config = attributes[:'executor_shape_config'] if attributes[:'executor_shape_config'] self.min_executor_count = attributes[:'minExecutorCount'] if attributes[:'minExecutorCount'] raise 'You cannot provide both :minExecutorCount and :min_executor_count' if attributes.key?(:'minExecutorCount') && attributes.key?(:'min_executor_count') self.min_executor_count = attributes[:'min_executor_count'] if attributes[:'min_executor_count'] self.max_executor_count = attributes[:'maxExecutorCount'] if attributes[:'maxExecutorCount'] raise 'You cannot provide both :maxExecutorCount and :max_executor_count' if attributes.key?(:'maxExecutorCount') && attributes.key?(:'max_executor_count') self.max_executor_count = attributes[:'max_executor_count'] if attributes[:'max_executor_count'] self. = attributes[:'metastoreId'] if attributes[:'metastoreId'] raise 'You cannot provide both :metastoreId and :metastore_id' if attributes.key?(:'metastoreId') && attributes.key?(:'metastore_id') self. = attributes[:'metastore_id'] if attributes[:'metastore_id'] self.lake_id = attributes[:'lakeId'] if attributes[:'lakeId'] raise 'You cannot provide both :lakeId and :lake_id' if attributes.key?(:'lakeId') && attributes.key?(:'lake_id') self.lake_id = attributes[:'lake_id'] if attributes[:'lake_id'] self.spark_advanced_configurations = attributes[:'sparkAdvancedConfigurations'] if attributes[:'sparkAdvancedConfigurations'] raise 'You cannot provide both :sparkAdvancedConfigurations and :spark_advanced_configurations' if attributes.key?(:'sparkAdvancedConfigurations') && attributes.key?(:'spark_advanced_configurations') self.spark_advanced_configurations = attributes[:'spark_advanced_configurations'] if attributes[:'spark_advanced_configurations'] end |
Instance Attribute Details
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {\"Operations\": {\"CostCenter\": \"42\"}}
15 16 17 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 15 def @defined_tags end |
#description ⇒ String
The description of CreateSQLEndpointDetails.
30 31 32 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 30 def description @description end |
#display_name ⇒ String
The SQL Endpoint name, which can be changed.
26 27 28 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 26 def display_name @display_name end |
#driver_shape ⇒ String
The shape of the SQL Endpoint driver instance.
34 35 36 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 34 def driver_shape @driver_shape end |
#driver_shape_config ⇒ OCI::DataFlow::Models::ShapeConfig
37 38 39 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 37 def driver_shape_config @driver_shape_config end |
#executor_shape ⇒ String
The shape of the SQL Endpoint worker instance.
41 42 43 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 41 def executor_shape @executor_shape end |
#executor_shape_config ⇒ OCI::DataFlow::Models::ShapeConfig
44 45 46 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 44 def executor_shape_config @executor_shape_config end |
#freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {\"Department\": \"Finance\"}
22 23 24 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 22 def @freeform_tags end |
#lake_id ⇒ String
OCI lake OCID
60 61 62 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 60 def lake_id @lake_id end |
#max_executor_count ⇒ Integer
The maximum number of executors.
52 53 54 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 52 def max_executor_count @max_executor_count end |
#metastore_id ⇒ String
Metastore OCID
56 57 58 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 56 def @metastore_id end |
#min_executor_count ⇒ Integer
The minimum number of executors.
48 49 50 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 48 def min_executor_count @min_executor_count end |
#spark_advanced_configurations ⇒ Hash<String, String>
The Spark configuration passed to the running process. See spark.apache.org/docs/latest/configuration.html#available-properties. Example: { "spark.app.name" : "My App Name", "spark.shuffle.io.maxRetries" : "4" } Note: Not all Spark properties are permitted to be set. Attempting to set a property that is not allowed to be overwritten will cause a 400 status to be returned.
69 70 71 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 69 def spark_advanced_configurations @spark_advanced_configurations end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 72 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'defined_tags': :'definedTags', 'freeform_tags': :'freeformTags', 'display_name': :'displayName', 'description': :'description', 'driver_shape': :'driverShape', 'driver_shape_config': :'driverShapeConfig', 'executor_shape': :'executorShape', 'executor_shape_config': :'executorShapeConfig', 'min_executor_count': :'minExecutorCount', 'max_executor_count': :'maxExecutorCount', 'metastore_id': :'metastoreId', 'lake_id': :'lakeId', 'spark_advanced_configurations': :'sparkAdvancedConfigurations' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 93 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'defined_tags': :'Hash<String, Hash<String, Object>>', 'freeform_tags': :'Hash<String, String>', 'display_name': :'String', 'description': :'String', 'driver_shape': :'String', 'driver_shape_config': :'OCI::DataFlow::Models::ShapeConfig', 'executor_shape': :'String', 'executor_shape_config': :'OCI::DataFlow::Models::ShapeConfig', 'min_executor_count': :'Integer', 'max_executor_count': :'Integer', 'metastore_id': :'String', 'lake_id': :'String', 'spark_advanced_configurations': :'Hash<String, String>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 220 def ==(other) return true if equal?(other) self.class == other.class && == other. && == other. && display_name == other.display_name && description == other.description && driver_shape == other.driver_shape && driver_shape_config == other.driver_shape_config && executor_shape == other.executor_shape && executor_shape_config == other.executor_shape_config && min_executor_count == other.min_executor_count && max_executor_count == other.max_executor_count && == other. && lake_id == other.lake_id && spark_advanced_configurations == other.spark_advanced_configurations end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 262 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
242 243 244 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 242 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
251 252 253 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 251 def hash [, , display_name, description, driver_shape, driver_shape_config, executor_shape, executor_shape_config, min_executor_count, max_executor_count, , lake_id, spark_advanced_configurations].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
295 296 297 298 299 300 301 302 303 304 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 295 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
289 290 291 |
# File 'lib/oci/data_flow/models/update_sql_endpoint_details.rb', line 289 def to_s to_hash.to_s end |