Class: OCI::Database::Models::DbNodeSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/database/models/db_node_summary.rb

Overview

A server where Oracle Database software is running.

To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies.

Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.

Constant Summary collapse

LIFECYCLE_STATE_ENUM =
[
  LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
  LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze,
  LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
  LIFECYCLE_STATE_STOPPING = 'STOPPING'.freeze,
  LIFECYCLE_STATE_STOPPED = 'STOPPED'.freeze,
  LIFECYCLE_STATE_STARTING = 'STARTING'.freeze,
  LIFECYCLE_STATE_TERMINATING = 'TERMINATING'.freeze,
  LIFECYCLE_STATE_TERMINATED = 'TERMINATED'.freeze,
  LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
MAINTENANCE_TYPE_ENUM =
[
  MAINTENANCE_TYPE_VMDB_REBOOT_MIGRATION = 'VMDB_REBOOT_MIGRATION'.freeze,
  MAINTENANCE_TYPE_EXADBXS_REBOOT_MIGRATION = 'EXADBXS_REBOOT_MIGRATION'.freeze,
  MAINTENANCE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ DbNodeSummary

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :id (String)

    The value to assign to the #id property

  • :db_system_id (String)

    The value to assign to the #db_system_id property

  • :vnic_id (String)

    The value to assign to the #vnic_id property

  • :backup_vnic_id (String)

    The value to assign to the #backup_vnic_id property

  • :host_ip_id (String)

    The value to assign to the #host_ip_id property

  • :backup_ip_id (String)

    The value to assign to the #backup_ip_id property

  • :host_ipv6_id (String)

    The value to assign to the #host_ipv6_id property

  • :backup_ipv6_id (String)

    The value to assign to the #backup_ipv6_id property

  • :vnic2_id (String)

    The value to assign to the #vnic2_id property

  • :backup_vnic2_id (String)

    The value to assign to the #backup_vnic2_id property

  • :lifecycle_state (String)

    The value to assign to the #lifecycle_state property

  • :hostname (String)

    The value to assign to the #hostname property

  • :fault_domain (String)

    The value to assign to the #fault_domain property

  • :time_created (DateTime)

    The value to assign to the #time_created property

  • :software_storage_size_in_gb (Integer)

    The value to assign to the #software_storage_size_in_gb property

  • :maintenance_type (String)

    The value to assign to the #maintenance_type property

  • :time_maintenance_window_start (DateTime)

    The value to assign to the #time_maintenance_window_start property

  • :time_maintenance_window_end (DateTime)

    The value to assign to the #time_maintenance_window_end property

  • :additional_details (String)

    The value to assign to the #additional_details property

  • :freeform_tags (Hash<String, String>)

    The value to assign to the #freeform_tags property

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

    The value to assign to the #defined_tags property

  • :lifecycle_details (String)

    The value to assign to the #lifecycle_details property

  • :cpu_core_count (Integer)

    The value to assign to the #cpu_core_count property

  • :memory_size_in_gbs (Integer)

    The value to assign to the #memory_size_in_gbs property

  • :db_node_storage_size_in_gbs (Integer)

    The value to assign to the #db_node_storage_size_in_gbs property

  • :total_cpu_core_count (Integer)

    The value to assign to the #total_cpu_core_count property

  • :db_server_id (String)

    The value to assign to the #db_server_id property



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
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
# File 'lib/oci/database/models/db_node_summary.rb', line 278

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

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

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

  self.vnic_id = attributes[:'vnicId'] if attributes[:'vnicId']

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

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

  self.backup_vnic_id = attributes[:'backupVnicId'] if attributes[:'backupVnicId']

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

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

  self.host_ip_id = attributes[:'hostIpId'] if attributes[:'hostIpId']

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

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

  self.backup_ip_id = attributes[:'backupIpId'] if attributes[:'backupIpId']

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

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

  self.host_ipv6_id = attributes[:'hostIpv6Id'] if attributes[:'hostIpv6Id']

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

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

  self.backup_ipv6_id = attributes[:'backupIpv6Id'] if attributes[:'backupIpv6Id']

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

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

  self.vnic2_id = attributes[:'vnic2Id'] if attributes[:'vnic2Id']

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

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

  self.backup_vnic2_id = attributes[:'backupVnic2Id'] if attributes[:'backupVnic2Id']

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

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

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

  self.fault_domain = attributes[:'faultDomain'] if attributes[:'faultDomain']

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

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

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

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

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

  self.maintenance_type = attributes[:'maintenanceType'] if attributes[:'maintenanceType']

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

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

  self.time_maintenance_window_start = attributes[:'timeMaintenanceWindowStart'] if attributes[:'timeMaintenanceWindowStart']

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

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

  self.time_maintenance_window_end = attributes[:'timeMaintenanceWindowEnd'] if attributes[:'timeMaintenanceWindowEnd']

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

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

  self.additional_details = attributes[:'additionalDetails'] if attributes[:'additionalDetails']

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

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

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

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

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

  self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']

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

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

  self.memory_size_in_gbs = attributes[:'memorySizeInGBs'] if attributes[:'memorySizeInGBs']

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

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

  self.db_node_storage_size_in_gbs = attributes[:'dbNodeStorageSizeInGBs'] if attributes[:'dbNodeStorageSizeInGBs']

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

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

  self.total_cpu_core_count = attributes[:'totalCpuCoreCount'] if attributes[:'totalCpuCoreCount']

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

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

  self.db_server_id = attributes[:'dbServerId'] if attributes[:'dbServerId']

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

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

Instance Attribute Details

#additional_detailsString

Additional information about the planned maintenance.

Returns:

  • (String)


135
136
137
# File 'lib/oci/database/models/db_node_summary.rb', line 135

def additional_details
  @additional_details
end

#backup_ip_idString

The OCID of the backup IPv4 address associated with the database node. Use this OCID with either the get_private_ip or the get_public_ip_by_private_ip_id API to get the IPv4 address needed to make a database connection.

Note: Applies only to Exadata Cloud Service.

Returns:

  • (String)


68
69
70
# File 'lib/oci/database/models/db_node_summary.rb', line 68

def backup_ip_id
  @backup_ip_id
end

#backup_ipv6_idString

The OCID of the backup IPv6 address associated with the database node. Use this OCID with the get_ipv6 API to get the IPv6 address needed to make a database connection.

Note: Applies only to Exadata Cloud Service.

Returns:

  • (String)


84
85
86
# File 'lib/oci/database/models/db_node_summary.rb', line 84

def backup_ipv6_id
  @backup_ipv6_id
end

#backup_vnic2_idString

The OCID of the second backup VNIC.

Note: Applies only to Exadata Cloud Service.

Returns:

  • (String)


98
99
100
# File 'lib/oci/database/models/db_node_summary.rb', line 98

def backup_vnic2_id
  @backup_vnic2_id
end

#backup_vnic_idString

The OCID of the backup VNIC.

Returns:

  • (String)


50
51
52
# File 'lib/oci/database/models/db_node_summary.rb', line 50

def backup_vnic_id
  @backup_vnic_id
end

#cpu_core_countInteger

The number of CPU cores enabled on the Db node.

Returns:

  • (Integer)


157
158
159
# File 'lib/oci/database/models/db_node_summary.rb', line 157

def cpu_core_count
  @cpu_core_count
end

#db_node_storage_size_in_gbsInteger

The allocated local node storage in GBs on the Db node.

Returns:

  • (Integer)


165
166
167
# File 'lib/oci/database/models/db_node_summary.rb', line 165

def db_node_storage_size_in_gbs
  @db_node_storage_size_in_gbs
end

#db_server_idString

The OCID of the Exacc Db server associated with the database node.

Returns:

  • (String)


173
174
175
# File 'lib/oci/database/models/db_node_summary.rb', line 173

def db_server_id
  @db_server_id
end

#db_system_idString

[Required] The OCID of the DB system.

Returns:

  • (String)


42
43
44
# File 'lib/oci/database/models/db_node_summary.rb', line 42

def db_system_id
  @db_system_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.

Returns:

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


149
150
151
# File 'lib/oci/database/models/db_node_summary.rb', line 149

def defined_tags
  @defined_tags
end

#fault_domainString

The name of the Fault Domain the instance is contained in.

Returns:

  • (String)


110
111
112
# File 'lib/oci/database/models/db_node_summary.rb', line 110

def fault_domain
  @fault_domain
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>)


143
144
145
# File 'lib/oci/database/models/db_node_summary.rb', line 143

def freeform_tags
  @freeform_tags
end

#host_ip_idString

The OCID of the host IPv4 address associated with the database node. Use this OCID with either the get_private_ip or the get_public_ip_by_private_ip_id API to get the IPv4 address needed to make a database connection.

Note: Applies only to Exadata Cloud Service.

Returns:

  • (String)


59
60
61
# File 'lib/oci/database/models/db_node_summary.rb', line 59

def host_ip_id
  @host_ip_id
end

#host_ipv6_idString

The OCID of the host IPv6 address associated with the database node. Use this OCID with the get_ipv6 API to get the IPv6 address needed to make a database connection.

Note: Applies only to Exadata Cloud Service.

Returns:

  • (String)


76
77
78
# File 'lib/oci/database/models/db_node_summary.rb', line 76

def host_ipv6_id
  @host_ipv6_id
end

#hostnameString

The host name for the database node.

Returns:

  • (String)


106
107
108
# File 'lib/oci/database/models/db_node_summary.rb', line 106

def hostname
  @hostname
end

#idString

[Required] The OCID of the database node.

Returns:

  • (String)


38
39
40
# File 'lib/oci/database/models/db_node_summary.rb', line 38

def id
  @id
end

#lifecycle_detailsString

Information about the current lifecycle state.

Returns:

  • (String)


153
154
155
# File 'lib/oci/database/models/db_node_summary.rb', line 153

def lifecycle_details
  @lifecycle_details
end

#lifecycle_stateString

[Required] The current state of the database node.

Returns:

  • (String)


102
103
104
# File 'lib/oci/database/models/db_node_summary.rb', line 102

def lifecycle_state
  @lifecycle_state
end

#maintenance_typeString

The type of database node maintenance.

Returns:

  • (String)


123
124
125
# File 'lib/oci/database/models/db_node_summary.rb', line 123

def maintenance_type
  @maintenance_type
end

#memory_size_in_gbsInteger

The allocated memory in GBs on the Db node.

Returns:

  • (Integer)


161
162
163
# File 'lib/oci/database/models/db_node_summary.rb', line 161

def memory_size_in_gbs
  @memory_size_in_gbs
end

#software_storage_size_in_gbInteger

The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.

Returns:

  • (Integer)


119
120
121
# File 'lib/oci/database/models/db_node_summary.rb', line 119

def software_storage_size_in_gb
  @software_storage_size_in_gb
end

#time_createdDateTime

[Required] The date and time that the database node was created.

Returns:

  • (DateTime)


114
115
116
# File 'lib/oci/database/models/db_node_summary.rb', line 114

def time_created
  @time_created
end

#time_maintenance_window_endDateTime

End date and time of maintenance window.

Returns:

  • (DateTime)


131
132
133
# File 'lib/oci/database/models/db_node_summary.rb', line 131

def time_maintenance_window_end
  @time_maintenance_window_end
end

#time_maintenance_window_startDateTime

Start date and time of maintenance window.

Returns:

  • (DateTime)


127
128
129
# File 'lib/oci/database/models/db_node_summary.rb', line 127

def time_maintenance_window_start
  @time_maintenance_window_start
end

#total_cpu_core_countInteger

The total number of CPU cores reserved on the Db node.

Returns:

  • (Integer)


169
170
171
# File 'lib/oci/database/models/db_node_summary.rb', line 169

def total_cpu_core_count
  @total_cpu_core_count
end

#vnic2_idString

The OCID of the second VNIC.

Note: Applies only to Exadata Cloud Service.

Returns:

  • (String)


91
92
93
# File 'lib/oci/database/models/db_node_summary.rb', line 91

def vnic2_id
  @vnic2_id
end

#vnic_idString

[Required] The OCID of the VNIC.

Returns:

  • (String)


46
47
48
# File 'lib/oci/database/models/db_node_summary.rb', line 46

def vnic_id
  @vnic_id
end

Class Method Details

.attribute_mapObject

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



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
# File 'lib/oci/database/models/db_node_summary.rb', line 176

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'db_system_id': :'dbSystemId',
    'vnic_id': :'vnicId',
    'backup_vnic_id': :'backupVnicId',
    'host_ip_id': :'hostIpId',
    'backup_ip_id': :'backupIpId',
    'host_ipv6_id': :'hostIpv6Id',
    'backup_ipv6_id': :'backupIpv6Id',
    'vnic2_id': :'vnic2Id',
    'backup_vnic2_id': :'backupVnic2Id',
    'lifecycle_state': :'lifecycleState',
    'hostname': :'hostname',
    'fault_domain': :'faultDomain',
    'time_created': :'timeCreated',
    'software_storage_size_in_gb': :'softwareStorageSizeInGB',
    'maintenance_type': :'maintenanceType',
    'time_maintenance_window_start': :'timeMaintenanceWindowStart',
    'time_maintenance_window_end': :'timeMaintenanceWindowEnd',
    'additional_details': :'additionalDetails',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags',
    'lifecycle_details': :'lifecycleDetails',
    'cpu_core_count': :'cpuCoreCount',
    'memory_size_in_gbs': :'memorySizeInGBs',
    'db_node_storage_size_in_gbs': :'dbNodeStorageSizeInGBs',
    'total_cpu_core_count': :'totalCpuCoreCount',
    'db_server_id': :'dbServerId'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'lib/oci/database/models/db_node_summary.rb', line 211

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'db_system_id': :'String',
    'vnic_id': :'String',
    'backup_vnic_id': :'String',
    'host_ip_id': :'String',
    'backup_ip_id': :'String',
    'host_ipv6_id': :'String',
    'backup_ipv6_id': :'String',
    'vnic2_id': :'String',
    'backup_vnic2_id': :'String',
    'lifecycle_state': :'String',
    'hostname': :'String',
    'fault_domain': :'String',
    'time_created': :'DateTime',
    'software_storage_size_in_gb': :'Integer',
    'maintenance_type': :'String',
    'time_maintenance_window_start': :'DateTime',
    'time_maintenance_window_end': :'DateTime',
    'additional_details': :'String',
    'freeform_tags': :'Hash<String, String>',
    'defined_tags': :'Hash<String, Hash<String, Object>>',
    'lifecycle_details': :'String',
    'cpu_core_count': :'Integer',
    'memory_size_in_gbs': :'Integer',
    'db_node_storage_size_in_gbs': :'Integer',
    'total_cpu_core_count': :'Integer',
    'db_server_id': :'String'
    # 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



472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
# File 'lib/oci/database/models/db_node_summary.rb', line 472

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

  self.class == other.class &&
    id == other.id &&
    db_system_id == other.db_system_id &&
    vnic_id == other.vnic_id &&
    backup_vnic_id == other.backup_vnic_id &&
    host_ip_id == other.host_ip_id &&
    backup_ip_id == other.backup_ip_id &&
    host_ipv6_id == other.host_ipv6_id &&
    backup_ipv6_id == other.backup_ipv6_id &&
    vnic2_id == other.vnic2_id &&
    backup_vnic2_id == other.backup_vnic2_id &&
    lifecycle_state == other.lifecycle_state &&
    hostname == other.hostname &&
    fault_domain == other.fault_domain &&
    time_created == other.time_created &&
    software_storage_size_in_gb == other.software_storage_size_in_gb &&
    maintenance_type == other.maintenance_type &&
    time_maintenance_window_start == other.time_maintenance_window_start &&
    time_maintenance_window_end == other.time_maintenance_window_end &&
    additional_details == other.additional_details &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags &&
    lifecycle_details == other.lifecycle_details &&
    cpu_core_count == other.cpu_core_count &&
    memory_size_in_gbs == other.memory_size_in_gbs &&
    db_node_storage_size_in_gbs == other.db_node_storage_size_in_gbs &&
    total_cpu_core_count == other.total_cpu_core_count &&
    db_server_id == other.db_server_id
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



528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'lib/oci/database/models/db_node_summary.rb', line 528

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


508
509
510
# File 'lib/oci/database/models/db_node_summary.rb', line 508

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



517
518
519
# File 'lib/oci/database/models/db_node_summary.rb', line 517

def hash
  [id, db_system_id, vnic_id, backup_vnic_id, host_ip_id, backup_ip_id, host_ipv6_id, backup_ipv6_id, vnic2_id, backup_vnic2_id, lifecycle_state, hostname, fault_domain, time_created, software_storage_size_in_gb, maintenance_type, time_maintenance_window_start, time_maintenance_window_end, additional_details, freeform_tags, defined_tags, lifecycle_details, cpu_core_count, memory_size_in_gbs, db_node_storage_size_in_gbs, total_cpu_core_count, db_server_id].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



561
562
563
564
565
566
567
568
569
570
# File 'lib/oci/database/models/db_node_summary.rb', line 561

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



555
556
557
# File 'lib/oci/database/models/db_node_summary.rb', line 555

def to_s
  to_hash.to_s
end