Class: OCI::Bds::Models::Node
- Inherits:
-
Object
- Object
- OCI::Bds::Models::Node
- Defined in:
- lib/oci/bds/models/node.rb
Overview
Details about a node.
Constant Summary collapse
- LIFECYCLE_STATE_ENUM =
[ LIFECYCLE_STATE_CREATING = 'CREATING'.freeze, LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze, LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze, LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze, LIFECYCLE_STATE_DELETING = 'DELETING'.freeze, LIFECYCLE_STATE_DELETED = 'DELETED'.freeze, LIFECYCLE_STATE_FAILED = 'FAILED'.freeze, LIFECYCLE_STATE_STOPPED = 'STOPPED'.freeze, LIFECYCLE_STATE_STOPPING = 'STOPPING'.freeze, LIFECYCLE_STATE_STARTING = 'STARTING'.freeze, LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- NODE_TYPE_ENUM =
[ NODE_TYPE_MASTER = 'MASTER'.freeze, NODE_TYPE_EDGE = 'EDGE'.freeze, NODE_TYPE_UTILITY = 'UTILITY'.freeze, NODE_TYPE_WORKER = 'WORKER'.freeze, NODE_TYPE_COMPUTE_ONLY_WORKER = 'COMPUTE_ONLY_WORKER'.freeze, NODE_TYPE_KAFKA_BROKER = 'KAFKA_BROKER'.freeze, NODE_TYPE_BURSTING = 'BURSTING'.freeze, NODE_TYPE_CLOUD_SQL = 'CLOUD_SQL'.freeze, NODE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#attached_block_volumes ⇒ Array<OCI::Bds::Models::VolumeAttachmentDetail>
The list of block volumes attached to a given node.
-
#availability_domain ⇒ String
[Required] The name of the availability domain in which the node is running.
-
#display_name ⇒ String
[Required] The name of the node.
-
#fault_domain ⇒ String
[Required] The name of the fault domain in which the node is running.
-
#hostname ⇒ String
The fully-qualified hostname (FQDN) of the node.
-
#image_id ⇒ String
The OCID of the image from which the node was created.
-
#instance_id ⇒ String
[Required] The OCID of the underlying Oracle Cloud Infrastructure Compute instance.
-
#ip_address ⇒ String
[Required] IP address of the node.
-
#is_reboot_required ⇒ BOOLEAN
Indicates if the node requires a reboot to either reflect the latest os kernel or take actions for maintenance reboot.
-
#lifecycle_state ⇒ String
[Required] The state of the node.
-
#local_disks_total_size_in_gbs ⇒ Float
The aggregate size of all local disks, in gigabytes.
-
#memory_in_gbs ⇒ Integer
The total amount of memory available to the node, in gigabytes.
-
#node_backup_id ⇒ String
The node back id that was used for replacing the node.
-
#node_type ⇒ String
[Required] Cluster node type.
-
#nvmes ⇒ Integer
The number of NVMe drives to be used for storage.
-
#ocpus ⇒ Integer
The total number of OCPUs available to the node.
-
#odh_version ⇒ String
Version of the ODH (Oracle Distribution including Apache Hadoop) for the node.
-
#os_version ⇒ String
BDS-assigned Operating System version for the node.
-
#shape ⇒ String
[Required] Shape of the node.
-
#ssh_fingerprint ⇒ String
[Required] The fingerprint of the SSH key used for node access.
-
#subnet_id ⇒ String
[Required] The OCID of the subnet in which the node is to be created.
-
#time_created ⇒ DateTime
[Required] The time the node was created, shown as an RFC 3339 formatted datetime string.
-
#time_maintenance_reboot_due ⇒ DateTime
The date and time the instance is expected to be stopped / started, in the format defined by RFC3339.
-
#time_replaced ⇒ DateTime
The date and time the instance was replaced by a new vm with a node backup.
-
#time_updated ⇒ DateTime
The time the cluster was updated, shown as an RFC 3339 formatted datetime string.
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 = {}) ⇒ Node
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 = {}) ⇒ Node
Initializes the object
235 236 237 238 239 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 |
# File 'lib/oci/bds/models/node.rb', line 235 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.instance_id = attributes[:'instanceId'] if attributes[:'instanceId'] raise 'You cannot provide both :instanceId and :instance_id' if attributes.key?(:'instanceId') && attributes.key?(:'instance_id') self.instance_id = attributes[:'instance_id'] if attributes[:'instance_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.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.node_type = attributes[:'nodeType'] if attributes[:'nodeType'] raise 'You cannot provide both :nodeType and :node_type' if attributes.key?(:'nodeType') && attributes.key?(:'node_type') self.node_type = attributes[:'node_type'] if attributes[:'node_type'] self.shape = attributes[:'shape'] if attributes[:'shape'] self.attached_block_volumes = attributes[:'attachedBlockVolumes'] if attributes[:'attachedBlockVolumes'] raise 'You cannot provide both :attachedBlockVolumes and :attached_block_volumes' if attributes.key?(:'attachedBlockVolumes') && attributes.key?(:'attached_block_volumes') self.attached_block_volumes = attributes[:'attached_block_volumes'] if attributes[:'attached_block_volumes'] self.subnet_id = attributes[:'subnetId'] if attributes[:'subnetId'] raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id') self.subnet_id = attributes[:'subnet_id'] if attributes[:'subnet_id'] self.ip_address = attributes[:'ipAddress'] if attributes[:'ipAddress'] raise 'You cannot provide both :ipAddress and :ip_address' if attributes.key?(:'ipAddress') && attributes.key?(:'ip_address') self.ip_address = attributes[:'ip_address'] if attributes[:'ip_address'] self.hostname = attributes[:'hostname'] if attributes[:'hostname'] self.image_id = attributes[:'imageId'] if attributes[:'imageId'] raise 'You cannot provide both :imageId and :image_id' if attributes.key?(:'imageId') && attributes.key?(:'image_id') self.image_id = attributes[:'image_id'] if attributes[:'image_id'] self.ssh_fingerprint = attributes[:'sshFingerprint'] if attributes[:'sshFingerprint'] raise 'You cannot provide both :sshFingerprint and :ssh_fingerprint' if attributes.key?(:'sshFingerprint') && attributes.key?(:'ssh_fingerprint') self.ssh_fingerprint = attributes[:'ssh_fingerprint'] if attributes[:'ssh_fingerprint'] self.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain'] raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain') self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain'] 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.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.ocpus = attributes[:'ocpus'] if attributes[:'ocpus'] self.memory_in_gbs = attributes[:'memoryInGBs'] if attributes[:'memoryInGBs'] raise 'You cannot provide both :memoryInGBs and :memory_in_gbs' if attributes.key?(:'memoryInGBs') && attributes.key?(:'memory_in_gbs') self.memory_in_gbs = attributes[:'memory_in_gbs'] if attributes[:'memory_in_gbs'] self.nvmes = attributes[:'nvmes'] if attributes[:'nvmes'] self.local_disks_total_size_in_gbs = attributes[:'localDisksTotalSizeInGBs'] if attributes[:'localDisksTotalSizeInGBs'] raise 'You cannot provide both :localDisksTotalSizeInGBs and :local_disks_total_size_in_gbs' if attributes.key?(:'localDisksTotalSizeInGBs') && attributes.key?(:'local_disks_total_size_in_gbs') self.local_disks_total_size_in_gbs = attributes[:'local_disks_total_size_in_gbs'] if attributes[:'local_disks_total_size_in_gbs'] self.time_maintenance_reboot_due = attributes[:'timeMaintenanceRebootDue'] if attributes[:'timeMaintenanceRebootDue'] raise 'You cannot provide both :timeMaintenanceRebootDue and :time_maintenance_reboot_due' if attributes.key?(:'timeMaintenanceRebootDue') && attributes.key?(:'time_maintenance_reboot_due') self.time_maintenance_reboot_due = attributes[:'time_maintenance_reboot_due'] if attributes[:'time_maintenance_reboot_due'] self.os_version = attributes[:'osVersion'] if attributes[:'osVersion'] self.os_version = "OL7.9" if os_version.nil? && !attributes.key?(:'osVersion') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :osVersion and :os_version' if attributes.key?(:'osVersion') && attributes.key?(:'os_version') self.os_version = attributes[:'os_version'] if attributes[:'os_version'] self.os_version = "OL7.9" if os_version.nil? && !attributes.key?(:'osVersion') && !attributes.key?(:'os_version') # rubocop:disable Style/StringLiterals self.is_reboot_required = attributes[:'isRebootRequired'] unless attributes[:'isRebootRequired'].nil? self.is_reboot_required = false if is_reboot_required.nil? && !attributes.key?(:'isRebootRequired') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :isRebootRequired and :is_reboot_required' if attributes.key?(:'isRebootRequired') && attributes.key?(:'is_reboot_required') self.is_reboot_required = attributes[:'is_reboot_required'] unless attributes[:'is_reboot_required'].nil? self.is_reboot_required = false if is_reboot_required.nil? && !attributes.key?(:'isRebootRequired') && !attributes.key?(:'is_reboot_required') # rubocop:disable Style/StringLiterals self.odh_version = attributes[:'odhVersion'] if attributes[:'odhVersion'] raise 'You cannot provide both :odhVersion and :odh_version' if attributes.key?(:'odhVersion') && attributes.key?(:'odh_version') self.odh_version = attributes[:'odh_version'] if attributes[:'odh_version'] self.time_replaced = attributes[:'timeReplaced'] if attributes[:'timeReplaced'] raise 'You cannot provide both :timeReplaced and :time_replaced' if attributes.key?(:'timeReplaced') && attributes.key?(:'time_replaced') self.time_replaced = attributes[:'time_replaced'] if attributes[:'time_replaced'] self.node_backup_id = attributes[:'nodeBackupId'] if attributes[:'nodeBackupId'] raise 'You cannot provide both :nodeBackupId and :node_backup_id' if attributes.key?(:'nodeBackupId') && attributes.key?(:'node_backup_id') self.node_backup_id = attributes[:'node_backup_id'] if attributes[:'node_backup_id'] end |
Instance Attribute Details
#attached_block_volumes ⇒ Array<OCI::Bds::Models::VolumeAttachmentDetail>
The list of block volumes attached to a given node.
60 61 62 |
# File 'lib/oci/bds/models/node.rb', line 60 def attached_block_volumes @attached_block_volumes end |
#availability_domain ⇒ String
[Required] The name of the availability domain in which the node is running.
84 85 86 |
# File 'lib/oci/bds/models/node.rb', line 84 def availability_domain @availability_domain end |
#display_name ⇒ String
[Required] The name of the node.
44 45 46 |
# File 'lib/oci/bds/models/node.rb', line 44 def display_name @display_name end |
#fault_domain ⇒ String
[Required] The name of the fault domain in which the node is running.
88 89 90 |
# File 'lib/oci/bds/models/node.rb', line 88 def fault_domain @fault_domain end |
#hostname ⇒ String
The fully-qualified hostname (FQDN) of the node.
72 73 74 |
# File 'lib/oci/bds/models/node.rb', line 72 def hostname @hostname end |
#image_id ⇒ String
The OCID of the image from which the node was created.
76 77 78 |
# File 'lib/oci/bds/models/node.rb', line 76 def image_id @image_id end |
#instance_id ⇒ String
[Required] The OCID of the underlying Oracle Cloud Infrastructure Compute instance.
40 41 42 |
# File 'lib/oci/bds/models/node.rb', line 40 def instance_id @instance_id end |
#ip_address ⇒ String
[Required] IP address of the node.
68 69 70 |
# File 'lib/oci/bds/models/node.rb', line 68 def ip_address @ip_address end |
#is_reboot_required ⇒ BOOLEAN
Indicates if the node requires a reboot to either reflect the latest os kernel or take actions for maintenance reboot.
124 125 126 |
# File 'lib/oci/bds/models/node.rb', line 124 def is_reboot_required @is_reboot_required end |
#lifecycle_state ⇒ String
[Required] The state of the node.
48 49 50 |
# File 'lib/oci/bds/models/node.rb', line 48 def lifecycle_state @lifecycle_state end |
#local_disks_total_size_in_gbs ⇒ Float
The aggregate size of all local disks, in gigabytes. If the instance does not have any local disks, this field is null.
112 113 114 |
# File 'lib/oci/bds/models/node.rb', line 112 def local_disks_total_size_in_gbs @local_disks_total_size_in_gbs end |
#memory_in_gbs ⇒ Integer
The total amount of memory available to the node, in gigabytes.
104 105 106 |
# File 'lib/oci/bds/models/node.rb', line 104 def memory_in_gbs @memory_in_gbs end |
#node_backup_id ⇒ String
The node back id that was used for replacing the node.
136 137 138 |
# File 'lib/oci/bds/models/node.rb', line 136 def node_backup_id @node_backup_id end |
#node_type ⇒ String
[Required] Cluster node type.
52 53 54 |
# File 'lib/oci/bds/models/node.rb', line 52 def node_type @node_type end |
#nvmes ⇒ Integer
The number of NVMe drives to be used for storage. A single drive has 6.8 TB available.
108 109 110 |
# File 'lib/oci/bds/models/node.rb', line 108 def nvmes @nvmes end |
#ocpus ⇒ Integer
The total number of OCPUs available to the node.
100 101 102 |
# File 'lib/oci/bds/models/node.rb', line 100 def ocpus @ocpus end |
#odh_version ⇒ String
Version of the ODH (Oracle Distribution including Apache Hadoop) for the node.
128 129 130 |
# File 'lib/oci/bds/models/node.rb', line 128 def odh_version @odh_version end |
#os_version ⇒ String
BDS-assigned Operating System version for the node.
120 121 122 |
# File 'lib/oci/bds/models/node.rb', line 120 def os_version @os_version end |
#shape ⇒ String
[Required] Shape of the node.
56 57 58 |
# File 'lib/oci/bds/models/node.rb', line 56 def shape @shape end |
#ssh_fingerprint ⇒ String
[Required] The fingerprint of the SSH key used for node access.
80 81 82 |
# File 'lib/oci/bds/models/node.rb', line 80 def ssh_fingerprint @ssh_fingerprint end |
#subnet_id ⇒ String
[Required] The OCID of the subnet in which the node is to be created.
64 65 66 |
# File 'lib/oci/bds/models/node.rb', line 64 def subnet_id @subnet_id end |
#time_created ⇒ DateTime
[Required] The time the node was created, shown as an RFC 3339 formatted datetime string.
92 93 94 |
# File 'lib/oci/bds/models/node.rb', line 92 def time_created @time_created end |
#time_maintenance_reboot_due ⇒ DateTime
The date and time the instance is expected to be stopped / started, in the format defined by RFC3339.
116 117 118 |
# File 'lib/oci/bds/models/node.rb', line 116 def time_maintenance_reboot_due @time_maintenance_reboot_due end |
#time_replaced ⇒ DateTime
The date and time the instance was replaced by a new vm with a node backup.
132 133 134 |
# File 'lib/oci/bds/models/node.rb', line 132 def time_replaced @time_replaced end |
#time_updated ⇒ DateTime
The time the cluster was updated, shown as an RFC 3339 formatted datetime string.
96 97 98 |
# File 'lib/oci/bds/models/node.rb', line 96 def time_updated @time_updated end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/oci/bds/models/node.rb', line 139 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'instance_id': :'instanceId', 'display_name': :'displayName', 'lifecycle_state': :'lifecycleState', 'node_type': :'nodeType', 'shape': :'shape', 'attached_block_volumes': :'attachedBlockVolumes', 'subnet_id': :'subnetId', 'ip_address': :'ipAddress', 'hostname': :'hostname', 'image_id': :'imageId', 'ssh_fingerprint': :'sshFingerprint', 'availability_domain': :'availabilityDomain', 'fault_domain': :'faultDomain', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'ocpus': :'ocpus', 'memory_in_gbs': :'memoryInGBs', 'nvmes': :'nvmes', 'local_disks_total_size_in_gbs': :'localDisksTotalSizeInGBs', 'time_maintenance_reboot_due': :'timeMaintenanceRebootDue', 'os_version': :'osVersion', 'is_reboot_required': :'isRebootRequired', 'odh_version': :'odhVersion', 'time_replaced': :'timeReplaced', 'node_backup_id': :'nodeBackupId' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/oci/bds/models/node.rb', line 172 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'instance_id': :'String', 'display_name': :'String', 'lifecycle_state': :'String', 'node_type': :'String', 'shape': :'String', 'attached_block_volumes': :'Array<OCI::Bds::Models::VolumeAttachmentDetail>', 'subnet_id': :'String', 'ip_address': :'String', 'hostname': :'String', 'image_id': :'String', 'ssh_fingerprint': :'String', 'availability_domain': :'String', 'fault_domain': :'String', 'time_created': :'DateTime', 'time_updated': :'DateTime', 'ocpus': :'Integer', 'memory_in_gbs': :'Integer', 'nvmes': :'Integer', 'local_disks_total_size_in_gbs': :'Float', 'time_maintenance_reboot_due': :'DateTime', 'os_version': :'String', 'is_reboot_required': :'BOOLEAN', 'odh_version': :'String', 'time_replaced': :'DateTime', 'node_backup_id': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
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 438 439 440 441 442 |
# File 'lib/oci/bds/models/node.rb', line 413 def ==(other) return true if equal?(other) self.class == other.class && instance_id == other.instance_id && display_name == other.display_name && lifecycle_state == other.lifecycle_state && node_type == other.node_type && shape == other.shape && attached_block_volumes == other.attached_block_volumes && subnet_id == other.subnet_id && ip_address == other.ip_address && hostname == other.hostname && image_id == other.image_id && ssh_fingerprint == other.ssh_fingerprint && availability_domain == other.availability_domain && fault_domain == other.fault_domain && time_created == other.time_created && time_updated == other.time_updated && ocpus == other.ocpus && memory_in_gbs == other.memory_in_gbs && nvmes == other.nvmes && local_disks_total_size_in_gbs == other.local_disks_total_size_in_gbs && time_maintenance_reboot_due == other.time_maintenance_reboot_due && os_version == other.os_version && is_reboot_required == other.is_reboot_required && odh_version == other.odh_version && time_replaced == other.time_replaced && node_backup_id == other.node_backup_id end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 |
# File 'lib/oci/bds/models/node.rb', line 467 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
447 448 449 |
# File 'lib/oci/bds/models/node.rb', line 447 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
456 457 458 |
# File 'lib/oci/bds/models/node.rb', line 456 def hash [instance_id, display_name, lifecycle_state, node_type, shape, attached_block_volumes, subnet_id, ip_address, hostname, image_id, ssh_fingerprint, availability_domain, fault_domain, time_created, time_updated, ocpus, memory_in_gbs, nvmes, local_disks_total_size_in_gbs, time_maintenance_reboot_due, os_version, is_reboot_required, odh_version, time_replaced, node_backup_id].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
500 501 502 503 504 505 506 507 508 509 |
# File 'lib/oci/bds/models/node.rb', line 500 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
494 495 496 |
# File 'lib/oci/bds/models/node.rb', line 494 def to_s to_hash.to_s end |