Class: OCI::DataFlow::Models::SqlEndpointSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/data_flow/models/sql_endpoint_summary.rb

Overview

A summary of the Sql Endpoint.

Constant Summary collapse

LIFECYCLE_STATE_ENUM =
[
  LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
  LIFECYCLE_STATE_DELETING = 'DELETING'.freeze,
  LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
  LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
  LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
  LIFECYCLE_STATE_NEEDS_ATTENTION = 'NEEDS_ATTENTION'.freeze,
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ SqlEndpointSummary

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 240

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.id = attributes[:'id'] if attributes[:'id']

  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.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']

  raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')

  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']

  self.jdbc_endpoint_url = attributes[:'jdbcEndpointUrl'] if attributes[:'jdbcEndpointUrl']

  raise 'You cannot provide both :jdbcEndpointUrl and :jdbc_endpoint_url' if attributes.key?(:'jdbcEndpointUrl') && attributes.key?(:'jdbc_endpoint_url')

  self.jdbc_endpoint_url = attributes[:'jdbc_endpoint_url'] if attributes[:'jdbc_endpoint_url']

  self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']

  raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')

  self.time_created = attributes[:'time_created'] if attributes[:'time_created']

  self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated']

  raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated')

  self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated']

  self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']

  raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')

  self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']

  self.state_message = attributes[:'stateMessage'] if attributes[:'stateMessage']

  raise 'You cannot provide both :stateMessage and :state_message' if attributes.key?(:'stateMessage') && attributes.key?(:'state_message')

  self.state_message = attributes[:'state_message'] if attributes[:'state_message']

  self.sql_endpoint_version = attributes[:'sqlEndpointVersion'] if attributes[:'sqlEndpointVersion']

  raise 'You cannot provide both :sqlEndpointVersion and :sql_endpoint_version' if attributes.key?(:'sqlEndpointVersion') && attributes.key?(:'sql_endpoint_version')

  self.sql_endpoint_version = attributes[:'sql_endpoint_version'] if attributes[:'sql_endpoint_version']

  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.owner_principal_id = attributes[:'ownerPrincipalId'] if attributes[:'ownerPrincipalId']

  raise 'You cannot provide both :ownerPrincipalId and :owner_principal_id' if attributes.key?(:'ownerPrincipalId') && attributes.key?(:'owner_principal_id')

  self.owner_principal_id = attributes[:'owner_principal_id'] if attributes[:'owner_principal_id']

  self.metastore_id = attributes[:'metastoreId'] if attributes[:'metastoreId']

  raise 'You cannot provide both :metastoreId and :metastore_id' if attributes.key?(:'metastoreId') && attributes.key?(:'metastore_id')

  self.metastore_id = 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.warehouse_bucket_uri = attributes[:'warehouseBucketUri'] if attributes[:'warehouseBucketUri']

  raise 'You cannot provide both :warehouseBucketUri and :warehouse_bucket_uri' if attributes.key?(:'warehouseBucketUri') && attributes.key?(:'warehouse_bucket_uri')

  self.warehouse_bucket_uri = attributes[:'warehouse_bucket_uri'] if attributes[:'warehouse_bucket_uri']

  self.description = attributes[:'description'] if attributes[:'description']

  self.last_accepted_request_token = attributes[:'lastAcceptedRequestToken'] if attributes[:'lastAcceptedRequestToken']

  raise 'You cannot provide both :lastAcceptedRequestToken and :last_accepted_request_token' if attributes.key?(:'lastAcceptedRequestToken') && attributes.key?(:'last_accepted_request_token')

  self.last_accepted_request_token = attributes[:'last_accepted_request_token'] if attributes[:'last_accepted_request_token']

  self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']

  raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')

  self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']

  self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']

  raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')

  self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']

  self.system_tags = attributes[:'systemTags'] if attributes[:'systemTags']

  raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags')

  self.system_tags = attributes[:'system_tags'] if attributes[:'system_tags']

  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']

  self.network_configuration = attributes[:'networkConfiguration'] if attributes[:'networkConfiguration']

  raise 'You cannot provide both :networkConfiguration and :network_configuration' if attributes.key?(:'networkConfiguration') && attributes.key?(:'network_configuration')

  self.network_configuration = attributes[:'network_configuration'] if attributes[:'network_configuration']
end

Instance Attribute Details

#compartment_idString

[Required] The OCID of a compartment.

Returns:

  • (String)


34
35
36
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 34

def compartment_id
  @compartment_id
end

#defined_tagsHash<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\"}}

Returns:

  • (Hash<String, Hash<String, Object>>)


119
120
121
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 119

def defined_tags
  @defined_tags
end

#descriptionString

[Required] The description of the SQL Endpoint.

Returns:

  • (String)


102
103
104
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 102

def description
  @description
end

#display_nameString

[Required] The SQL Endpoint name, which can be changed.

Returns:

  • (String)


29
30
31
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 29

def display_name
  @display_name
end

#driver_shapeString

[Required] The shape of the SQL Endpoint driver instance.

Returns:

  • (String)


62
63
64
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 62

def driver_shape
  @driver_shape
end

#driver_shape_configOCI::DataFlow::Models::ShapeConfig



65
66
67
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 65

def driver_shape_config
  @driver_shape_config
end

#executor_shapeString

[Required] The shape of the SQL Endpoint executor instance.

Returns:

  • (String)


69
70
71
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 69

def executor_shape
  @executor_shape
end

#executor_shape_configOCI::DataFlow::Models::ShapeConfig



72
73
74
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 72

def executor_shape_config
  @executor_shape_config
end

#freeform_tagsHash<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\"}

Returns:

  • (Hash<String, String>)


113
114
115
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 113

def freeform_tags
  @freeform_tags
end

#idString

[Required] The provision identifier that is immutable on creation.

Returns:

  • (String)


25
26
27
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 25

def id
  @id
end

#jdbc_endpoint_urlString

The JDBC URL field. For example, jdbc:spark://serviceFQDN:443/default;SparkServerType=DFI

Returns:

  • (String)


38
39
40
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 38

def jdbc_endpoint_url
  @jdbc_endpoint_url
end

#lake_idString

[Required] The OCID of OCI Lake.

Returns:

  • (String)


94
95
96
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 94

def lake_id
  @lake_id
end

#last_accepted_request_tokenString

This token is used by Splat, and indicates that the service accepts the request, and that the request is currently being processed.

Returns:

  • (String)


106
107
108
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 106

def last_accepted_request_token
  @last_accepted_request_token
end

#lifecycle_stateString

The current state of the Sql Endpoint.

Returns:

  • (String)


50
51
52
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 50

def lifecycle_state
  @lifecycle_state
end

#max_executor_countInteger

[Required] The maximum number of executors.

Returns:

  • (Integer)


80
81
82
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 80

def max_executor_count
  @max_executor_count
end

#metastore_idString

[Required] The OCID of OCI Hive Metastore.

Returns:

  • (String)


90
91
92
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 90

def metastore_id
  @metastore_id
end

#min_executor_countInteger

[Required] The minimum number of executors.

Returns:

  • (Integer)


76
77
78
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 76

def min_executor_count
  @min_executor_count
end

#network_configurationOCI::DataFlow::Models::SqlEndpointNetworkConfiguration



138
139
140
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 138

def network_configuration
  @network_configuration
end

#owner_principal_idString

The OCID of the user who created the resource.

Returns:

  • (String)


85
86
87
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 85

def owner_principal_id
  @owner_principal_id
end

#spark_advanced_configurationsHash<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.

Returns:

  • (Hash<String, String>)


135
136
137
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 135

def spark_advanced_configurations
  @spark_advanced_configurations
end

#sql_endpoint_versionString

[Required] The version of SQL Endpoint.

Returns:

  • (String)


58
59
60
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 58

def sql_endpoint_version
  @sql_endpoint_version
end

#state_messageString

A message describing the reason why the resource is in it's current state. Helps bubble up errors in state changes. For example, it can be used to provide actionable information for a resource in the Failed state.

Returns:

  • (String)


54
55
56
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 54

def state_message
  @state_message
end

#system_tagsHash<String, Hash<String, Object>>

The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

Returns:

  • (Hash<String, Hash<String, Object>>)


126
127
128
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 126

def system_tags
  @system_tags
end

#time_createdDateTime

The time the Sql Endpoint was created. An RFC3339 formatted datetime string.

Returns:

  • (DateTime)


42
43
44
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 42

def time_created
  @time_created
end

#time_updatedDateTime

The time the Sql Endpoint was updated. An RFC3339 formatted datetime string.

Returns:

  • (DateTime)


46
47
48
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 46

def time_updated
  @time_updated
end

#warehouse_bucket_uriString

[Required] The warehouse bucket URI. It is a Oracle Cloud Infrastructure Object Storage bucket URI as defined here docs.oracle.com/en/cloud/paas/atp-cloud/atpud/object-storage-uris.html

Returns:

  • (String)


98
99
100
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 98

def warehouse_bucket_uri
  @warehouse_bucket_uri
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



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
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 141

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'display_name': :'displayName',
    'compartment_id': :'compartmentId',
    'jdbc_endpoint_url': :'jdbcEndpointUrl',
    'time_created': :'timeCreated',
    'time_updated': :'timeUpdated',
    'lifecycle_state': :'lifecycleState',
    'state_message': :'stateMessage',
    'sql_endpoint_version': :'sqlEndpointVersion',
    'driver_shape': :'driverShape',
    'driver_shape_config': :'driverShapeConfig',
    'executor_shape': :'executorShape',
    'executor_shape_config': :'executorShapeConfig',
    'min_executor_count': :'minExecutorCount',
    'max_executor_count': :'maxExecutorCount',
    'owner_principal_id': :'ownerPrincipalId',
    'metastore_id': :'metastoreId',
    'lake_id': :'lakeId',
    'warehouse_bucket_uri': :'warehouseBucketUri',
    'description': :'description',
    'last_accepted_request_token': :'lastAcceptedRequestToken',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags',
    'system_tags': :'systemTags',
    'spark_advanced_configurations': :'sparkAdvancedConfigurations',
    'network_configuration': :'networkConfiguration'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



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
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 175

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'display_name': :'String',
    'compartment_id': :'String',
    'jdbc_endpoint_url': :'String',
    'time_created': :'DateTime',
    'time_updated': :'DateTime',
    'lifecycle_state': :'String',
    'state_message': :'String',
    'sql_endpoint_version': :'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',
    'owner_principal_id': :'String',
    'metastore_id': :'String',
    'lake_id': :'String',
    'warehouse_bucket_uri': :'String',
    'description': :'String',
    'last_accepted_request_token': :'String',
    'freeform_tags': :'Hash<String, String>',
    'defined_tags': :'Hash<String, Hash<String, Object>>',
    'system_tags': :'Hash<String, Hash<String, Object>>',
    'spark_advanced_configurations': :'Hash<String, String>',
    'network_configuration': :'OCI::DataFlow::Models::SqlEndpointNetworkConfiguration'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 415

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    id == other.id &&
    display_name == other.display_name &&
    compartment_id == other.compartment_id &&
    jdbc_endpoint_url == other.jdbc_endpoint_url &&
    time_created == other.time_created &&
    time_updated == other.time_updated &&
    lifecycle_state == other.lifecycle_state &&
    state_message == other.state_message &&
    sql_endpoint_version == other.sql_endpoint_version &&
    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 &&
    owner_principal_id == other.owner_principal_id &&
    metastore_id == other.metastore_id &&
    lake_id == other.lake_id &&
    warehouse_bucket_uri == other.warehouse_bucket_uri &&
    description == other.description &&
    last_accepted_request_token == other.last_accepted_request_token &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags &&
    system_tags == other.system_tags &&
    spark_advanced_configurations == other.spark_advanced_configurations &&
    network_configuration == other.network_configuration
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 470

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

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


450
451
452
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 450

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



459
460
461
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 459

def hash
  [id, display_name, compartment_id, jdbc_endpoint_url, time_created, time_updated, lifecycle_state, state_message, sql_endpoint_version, driver_shape, driver_shape_config, executor_shape, executor_shape_config, min_executor_count, max_executor_count, owner_principal_id, metastore_id, lake_id, warehouse_bucket_uri, description, last_accepted_request_token, freeform_tags, defined_tags, system_tags, spark_advanced_configurations, network_configuration].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



503
504
505
506
507
508
509
510
511
512
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 503

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



497
498
499
# File 'lib/oci/data_flow/models/sql_endpoint_summary.rb', line 497

def to_s
  to_hash.to_s
end