Class: OCI::Rover::Models::RoverNode

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/rover/models/rover_node.rb

Overview

Information about a RoverNode.

Constant Summary collapse

NODE_TYPE_ENUM =
[
  NODE_TYPE_STANDALONE = 'STANDALONE'.freeze,
  NODE_TYPE_CLUSTERED = 'CLUSTERED'.freeze,
  NODE_TYPE_STATION = 'STATION'.freeze,
  NODE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
ENCLOSURE_TYPE_ENUM =
[
  ENCLOSURE_TYPE_RUGGADIZED = 'RUGGADIZED'.freeze,
  ENCLOSURE_TYPE_NON_RUGGADIZED = 'NON_RUGGADIZED'.freeze,
  ENCLOSURE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
LIFECYCLE_STATE_ENUM =
[
  LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
  LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
  LIFECYCLE_STATE_DELETING = 'DELETING'.freeze,
  LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
  LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
SHIPPING_PREFERENCE_ENUM =
[
  SHIPPING_PREFERENCE_ORACLE_SHIPPED = 'ORACLE_SHIPPED'.freeze,
  SHIPPING_PREFERENCE_CUSTOMER_PICKUP = 'CUSTOMER_PICKUP'.freeze,
  SHIPPING_PREFERENCE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
CERT_KEY_ALGORITHM_ENUM =
[
  CERT_KEY_ALGORITHM_RSA2048 = 'RSA2048'.freeze,
  CERT_KEY_ALGORITHM_RSA4096 = 'RSA4096'.freeze,
  CERT_KEY_ALGORITHM_ECDSA_P256 = 'ECDSA_P256'.freeze,
  CERT_KEY_ALGORITHM_ECDSA_P384 = 'ECDSA_P384'.freeze,
  CERT_KEY_ALGORITHM_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
CERT_SIGNATURE_ALGORITHM_ENUM =
[
  CERT_SIGNATURE_ALGORITHM_SHA256_WITH_RSA = 'SHA256_WITH_RSA'.freeze,
  CERT_SIGNATURE_ALGORITHM_SHA384_WITH_RSA = 'SHA384_WITH_RSA'.freeze,
  CERT_SIGNATURE_ALGORITHM_SHA512_WITH_RSA = 'SHA512_WITH_RSA'.freeze,
  CERT_SIGNATURE_ALGORITHM_SHA256_WITH_ECDSA = 'SHA256_WITH_ECDSA'.freeze,
  CERT_SIGNATURE_ALGORITHM_SHA384_WITH_ECDSA = 'SHA384_WITH_ECDSA'.freeze,
  CERT_SIGNATURE_ALGORITHM_SHA512_WITH_ECDSA = 'SHA512_WITH_ECDSA'.freeze,
  CERT_SIGNATURE_ALGORITHM_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ RoverNode

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
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
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
# File 'lib/oci/rover/models/rover_node.rb', line 412

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

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

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

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

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

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

  self.serial_number = attributes[:'serialNumber'] if attributes[:'serialNumber']

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

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

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

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

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

  self.customer_shipping_address = attributes[:'customerShippingAddress'] if attributes[:'customerShippingAddress']

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

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

  self.node_workloads = attributes[:'nodeWorkloads'] if attributes[:'nodeWorkloads']

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

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

  self.time_customer_receieved = attributes[:'timeCustomerReceieved'] if attributes[:'timeCustomerReceieved']

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

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

  self.time_customer_returned = attributes[:'timeCustomerReturned'] if attributes[:'timeCustomerReturned']

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

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

  self.delivery_tracking_info = attributes[:'deliveryTrackingInfo'] if attributes[:'deliveryTrackingInfo']

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

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

  self.super_user_password = attributes[:'superUserPassword'] if attributes[:'superUserPassword']

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

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

  self.unlock_passphrase = attributes[:'unlockPassphrase'] if attributes[:'unlockPassphrase']

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

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

  self.point_of_contact = attributes[:'pointOfContact'] if attributes[:'pointOfContact']

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

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

  self.point_of_contact_phone_number = attributes[:'pointOfContactPhoneNumber'] if attributes[:'pointOfContactPhoneNumber']

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

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

  self.shipping_preference = attributes[:'shippingPreference'] if attributes[:'shippingPreference']
  self.shipping_preference = "ORACLE_SHIPPED" if shipping_preference.nil? && !attributes.key?(:'shippingPreference') # rubocop:disable Style/StringLiterals

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

  self.shipping_preference = attributes[:'shipping_preference'] if attributes[:'shipping_preference']
  self.shipping_preference = "ORACLE_SHIPPED" if shipping_preference.nil? && !attributes.key?(:'shippingPreference') && !attributes.key?(:'shipping_preference') # rubocop:disable Style/StringLiterals

  self.shipping_vendor = attributes[:'shippingVendor'] if attributes[:'shippingVendor']

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

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

  self.time_pickup_expected = attributes[:'timePickupExpected'] if attributes[:'timePickupExpected']

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

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

  self.time_return_window_starts = attributes[:'timeReturnWindowStarts'] if attributes[:'timeReturnWindowStarts']

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

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

  self.oracle_shipping_tracking_url = attributes[:'oracleShippingTrackingUrl'] if attributes[:'oracleShippingTrackingUrl']

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

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

  self.time_return_window_ends = attributes[:'timeReturnWindowEnds'] if attributes[:'timeReturnWindowEnds']

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

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

  self.return_shipping_label_uri = attributes[:'returnShippingLabelUri'] if attributes[:'returnShippingLabelUri']

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

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

  self.is_import_requested = attributes[:'isImportRequested'] unless attributes[:'isImportRequested'].nil?

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

  self.is_import_requested = attributes[:'is_import_requested'] unless attributes[:'is_import_requested'].nil?

  self.import_compartment_id = attributes[:'importCompartmentId'] if attributes[:'importCompartmentId']

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

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

  self.import_file_bucket = attributes[:'importFileBucket'] if attributes[:'importFileBucket']

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

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

  self.data_validation_code = attributes[:'dataValidationCode'] if attributes[:'dataValidationCode']

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

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

  self.public_key = attributes[:'publicKey'] if attributes[:'publicKey']

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

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

  self.image_export_par = attributes[:'imageExportPar'] if attributes[:'imageExportPar']

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

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

  self.master_key_id = attributes[:'masterKeyId'] if attributes[:'masterKeyId']

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

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

  self.certificate_authority_id = attributes[:'certificateAuthorityId'] if attributes[:'certificateAuthorityId']

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

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

  self.time_cert_validity_end = attributes[:'timeCertValidityEnd'] if attributes[:'timeCertValidityEnd']

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

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

  self.common_name = attributes[:'commonName'] if attributes[:'commonName']

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

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

  self.cert_compartment_id = attributes[:'certCompartmentId'] if attributes[:'certCompartmentId']

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

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

  self.certificate_version_number = attributes[:'certificateVersionNumber'] if attributes[:'certificateVersionNumber']

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

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

  self.certificate_id = attributes[:'certificateId'] if attributes[:'certificateId']

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

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

  self.cert_key_algorithm = attributes[:'certKeyAlgorithm'] if attributes[:'certKeyAlgorithm']

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

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

  self.cert_signature_algorithm = attributes[:'certSignatureAlgorithm'] if attributes[:'certSignatureAlgorithm']

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

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

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

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

Instance Attribute Details

#cert_compartment_idString

The compartmentId of the leaf certificate.

Returns:

  • (String)


208
209
210
# File 'lib/oci/rover/models/rover_node.rb', line 208

def cert_compartment_id
  @cert_compartment_id
end

#cert_key_algorithmString

key algorithm for issuing leaf certificate.

Returns:

  • (String)


220
221
222
# File 'lib/oci/rover/models/rover_node.rb', line 220

def cert_key_algorithm
  @cert_key_algorithm
end

#cert_signature_algorithmString

signature algorithm for issuing leaf certificate.

Returns:

  • (String)


224
225
226
# File 'lib/oci/rover/models/rover_node.rb', line 224

def cert_signature_algorithm
  @cert_signature_algorithm
end

#certificate_authority_idString

The certificateAuthorityId of subordinate/intermediate certificate authority.

Returns:

  • (String)


196
197
198
# File 'lib/oci/rover/models/rover_node.rb', line 196

def certificate_authority_id
  @certificate_authority_id
end

#certificate_idString

The id of the leaf certificate.

Returns:

  • (String)


216
217
218
# File 'lib/oci/rover/models/rover_node.rb', line 216

def certificate_id
  @certificate_id
end

#certificate_version_numberString

The version number of the leaf certificate.

Returns:

  • (String)


212
213
214
# File 'lib/oci/rover/models/rover_node.rb', line 212

def certificate_version_number
  @certificate_version_number
end

#cluster_idString

The cluster ID if the node is part of a cluster.

Returns:

  • (String)


65
66
67
# File 'lib/oci/rover/models/rover_node.rb', line 65

def cluster_id
  @cluster_id
end

#common_nameString

The common name for the leaf certificate.

Returns:

  • (String)


204
205
206
# File 'lib/oci/rover/models/rover_node.rb', line 204

def common_name
  @common_name
end

#compartment_idString

[Required] The OCID of the compartment containing the RoverNode.

Returns:

  • (String)


69
70
71
# File 'lib/oci/rover/models/rover_node.rb', line 69

def compartment_id
  @compartment_id
end

#customer_shipping_addressOCI::Rover::Models::ShippingAddress



104
105
106
# File 'lib/oci/rover/models/rover_node.rb', line 104

def customer_shipping_address
  @customer_shipping_address
end

#data_validation_codeString

Validation code returned by data validation tool. Required for return shipping label generation if data import was requested.

Returns:

  • (String)


180
181
182
# File 'lib/oci/rover/models/rover_node.rb', line 180

def data_validation_code
  @data_validation_code
end

#defined_tagsHash<String, Hash<String, Object>>

The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {\"Operations\": {\"CostCenter\": \"42\"}}

Returns:

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


243
244
245
# File 'lib/oci/rover/models/rover_node.rb', line 243

def defined_tags
  @defined_tags
end

#delivery_tracking_infoString

Tracking information for device shipping.

Returns:

  • (String)


120
121
122
# File 'lib/oci/rover/models/rover_node.rb', line 120

def delivery_tracking_info
  @delivery_tracking_info
end

#display_nameString

[Required] A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

Returns:

  • (String)


89
90
91
# File 'lib/oci/rover/models/rover_node.rb', line 89

def display_name
  @display_name
end

#enclosure_typeString

The type of enclosure rover node is shipped in.

Returns:

  • (String)


81
82
83
# File 'lib/oci/rover/models/rover_node.rb', line 81

def enclosure_type
  @enclosure_type
end

#freeform_tagsHash<String, String>

The freeform tags associated with this resource, if any. 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>)


236
237
238
# File 'lib/oci/rover/models/rover_node.rb', line 236

def freeform_tags
  @freeform_tags
end

#idString

[Required] The OCID of RoverNode.

Returns:

  • (String)


61
62
63
# File 'lib/oci/rover/models/rover_node.rb', line 61

def id
  @id
end

#image_export_parString

The link to pre-authenticated request for a bucket where image workloads are moved.

Returns:

  • (String)


188
189
190
# File 'lib/oci/rover/models/rover_node.rb', line 188

def image_export_par
  @image_export_par
end

#import_compartment_idString

An OCID of a compartment where data will be imported to upon Rover node return.

Returns:

  • (String)


172
173
174
# File 'lib/oci/rover/models/rover_node.rb', line 172

def import_compartment_id
  @import_compartment_id
end

#import_file_bucketString

Name of a bucket where files from NFS share will be imported to upon Rover node return.

Returns:

  • (String)


176
177
178
# File 'lib/oci/rover/models/rover_node.rb', line 176

def import_file_bucket
  @import_file_bucket
end

#is_import_requestedBOOLEAN

The flag indicating that customer requests data to be imported to OCI upon Rover node return.

Returns:

  • (BOOLEAN)


168
169
170
# File 'lib/oci/rover/models/rover_node.rb', line 168

def is_import_requested
  @is_import_requested
end

#lifecycle_stateString

[Required] The current state of the RoverNode.

Returns:

  • (String)


97
98
99
# File 'lib/oci/rover/models/rover_node.rb', line 97

def lifecycle_state
  @lifecycle_state
end

#lifecycle_state_detailsString

A property that can contain details on the lifecycle.

Returns:

  • (String)


101
102
103
# File 'lib/oci/rover/models/rover_node.rb', line 101

def lifecycle_state_details
  @lifecycle_state_details
end

#master_key_idString

Customer provided master key ID to encrypt secret information. If not provided, Rover's master key will be used for encryption.

Returns:

  • (String)


192
193
194
# File 'lib/oci/rover/models/rover_node.rb', line 192

def master_key_id
  @master_key_id
end

#node_typeString

The type of node indicating if it belongs to a cluster

Returns:

  • (String)


73
74
75
# File 'lib/oci/rover/models/rover_node.rb', line 73

def node_type
  @node_type
end

#node_workloadsArray<OCI::Rover::Models::RoverWorkload>

List of existing workloads that should be provisioned on the node.



108
109
110
# File 'lib/oci/rover/models/rover_node.rb', line 108

def node_workloads
  @node_workloads
end

#oracle_shipping_tracking_urlString

Tracking Url for the shipped RoverNode.

Returns:

  • (String)


156
157
158
# File 'lib/oci/rover/models/rover_node.rb', line 156

def oracle_shipping_tracking_url
  @oracle_shipping_tracking_url
end

#point_of_contactString

Name of point of contact for this order if customer is picking up.

Returns:

  • (String)


132
133
134
# File 'lib/oci/rover/models/rover_node.rb', line 132

def point_of_contact
  @point_of_contact
end

#point_of_contact_phone_numberString

Phone number of point of contact for this order if customer is picking up.

Returns:

  • (String)


136
137
138
# File 'lib/oci/rover/models/rover_node.rb', line 136

def point_of_contact_phone_number
  @point_of_contact_phone_number
end

#public_keyString

The public key of the resource principal

Returns:

  • (String)


184
185
186
# File 'lib/oci/rover/models/rover_node.rb', line 184

def public_key
  @public_key
end

#return_shipping_label_uriString

Uri to download return shipping label.

Returns:

  • (String)


164
165
166
# File 'lib/oci/rover/models/rover_node.rb', line 164

def return_shipping_label_uri
  @return_shipping_label_uri
end

#serial_numberString

Serial number of the node.

Returns:

  • (String)


85
86
87
# File 'lib/oci/rover/models/rover_node.rb', line 85

def serial_number
  @serial_number
end

#shapeString

The shape of the node.

Returns:

  • (String)


77
78
79
# File 'lib/oci/rover/models/rover_node.rb', line 77

def shape
  @shape
end

#shipping_preferenceString

Preference for device delivery.

Returns:

  • (String)


140
141
142
# File 'lib/oci/rover/models/rover_node.rb', line 140

def shipping_preference
  @shipping_preference
end

#shipping_vendorString

Shipping vendor of choice for orace to customer shipping.

Returns:

  • (String)


144
145
146
# File 'lib/oci/rover/models/rover_node.rb', line 144

def shipping_vendor
  @shipping_vendor
end

#super_user_passwordString

Root password for the rover node.

Returns:

  • (String)


124
125
126
# File 'lib/oci/rover/models/rover_node.rb', line 124

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


250
251
252
# File 'lib/oci/rover/models/rover_node.rb', line 250

def system_tags
  @system_tags
end

#tagsString

The tags associated with tagSlug.

Returns:

  • (String)


229
230
231
# File 'lib/oci/rover/models/rover_node.rb', line 229

def tags
  @tags
end

#time_cert_validity_endDateTime

The time after which leaf certificate will invalid.

Returns:

  • (DateTime)


200
201
202
# File 'lib/oci/rover/models/rover_node.rb', line 200

def time_cert_validity_end
  @time_cert_validity_end
end

#time_createdDateTime

The time the the RoverNode was created. An RFC3339 formatted datetime string

Returns:

  • (DateTime)


93
94
95
# File 'lib/oci/rover/models/rover_node.rb', line 93

def time_created
  @time_created
end

#time_customer_receievedDateTime

Date and time when customer received tne node.

Returns:

  • (DateTime)


112
113
114
# File 'lib/oci/rover/models/rover_node.rb', line 112

def time_customer_receieved
  @time_customer_receieved
end

#time_customer_returnedDateTime

Date and time when customer returned the node.

Returns:

  • (DateTime)


116
117
118
# File 'lib/oci/rover/models/rover_node.rb', line 116

def time_customer_returned
  @time_customer_returned
end

#time_pickup_expectedDateTime

Expected date when customer wants to pickup the device if they chose customer pickup.

Returns:

  • (DateTime)


148
149
150
# File 'lib/oci/rover/models/rover_node.rb', line 148

def time_pickup_expected
  @time_pickup_expected
end

#time_return_window_endsDateTime

End time for the window to pickup the device from customer.

Returns:

  • (DateTime)


160
161
162
# File 'lib/oci/rover/models/rover_node.rb', line 160

def time_return_window_ends
  @time_return_window_ends
end

#time_return_window_startsDateTime

Start time for the window to pickup the device from customer.

Returns:

  • (DateTime)


152
153
154
# File 'lib/oci/rover/models/rover_node.rb', line 152

def time_return_window_starts
  @time_return_window_starts
end

#unlock_passphraseString

Password to unlock the rover node.

Returns:

  • (String)


128
129
130
# File 'lib/oci/rover/models/rover_node.rb', line 128

def unlock_passphrase
  @unlock_passphrase
end

Class Method Details

.attribute_mapObject

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



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
# File 'lib/oci/rover/models/rover_node.rb', line 253

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'cluster_id': :'clusterId',
    'compartment_id': :'compartmentId',
    'node_type': :'nodeType',
    'shape': :'shape',
    'enclosure_type': :'enclosureType',
    'serial_number': :'serialNumber',
    'display_name': :'displayName',
    'time_created': :'timeCreated',
    'lifecycle_state': :'lifecycleState',
    'lifecycle_state_details': :'lifecycleStateDetails',
    'customer_shipping_address': :'customerShippingAddress',
    'node_workloads': :'nodeWorkloads',
    'time_customer_receieved': :'timeCustomerReceieved',
    'time_customer_returned': :'timeCustomerReturned',
    'delivery_tracking_info': :'deliveryTrackingInfo',
    'super_user_password': :'superUserPassword',
    'unlock_passphrase': :'unlockPassphrase',
    'point_of_contact': :'pointOfContact',
    'point_of_contact_phone_number': :'pointOfContactPhoneNumber',
    'shipping_preference': :'shippingPreference',
    'shipping_vendor': :'shippingVendor',
    'time_pickup_expected': :'timePickupExpected',
    'time_return_window_starts': :'timeReturnWindowStarts',
    'oracle_shipping_tracking_url': :'oracleShippingTrackingUrl',
    'time_return_window_ends': :'timeReturnWindowEnds',
    'return_shipping_label_uri': :'returnShippingLabelUri',
    'is_import_requested': :'isImportRequested',
    'import_compartment_id': :'importCompartmentId',
    'import_file_bucket': :'importFileBucket',
    'data_validation_code': :'dataValidationCode',
    'public_key': :'publicKey',
    'image_export_par': :'imageExportPar',
    'master_key_id': :'masterKeyId',
    'certificate_authority_id': :'certificateAuthorityId',
    'time_cert_validity_end': :'timeCertValidityEnd',
    'common_name': :'commonName',
    'cert_compartment_id': :'certCompartmentId',
    'certificate_version_number': :'certificateVersionNumber',
    'certificate_id': :'certificateId',
    'cert_key_algorithm': :'certKeyAlgorithm',
    'cert_signature_algorithm': :'certSignatureAlgorithm',
    'tags': :'tags',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags',
    'system_tags': :'systemTags'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



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
# File 'lib/oci/rover/models/rover_node.rb', line 307

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'cluster_id': :'String',
    'compartment_id': :'String',
    'node_type': :'String',
    'shape': :'String',
    'enclosure_type': :'String',
    'serial_number': :'String',
    'display_name': :'String',
    'time_created': :'DateTime',
    'lifecycle_state': :'String',
    'lifecycle_state_details': :'String',
    'customer_shipping_address': :'OCI::Rover::Models::ShippingAddress',
    'node_workloads': :'Array<OCI::Rover::Models::RoverWorkload>',
    'time_customer_receieved': :'DateTime',
    'time_customer_returned': :'DateTime',
    'delivery_tracking_info': :'String',
    'super_user_password': :'String',
    'unlock_passphrase': :'String',
    'point_of_contact': :'String',
    'point_of_contact_phone_number': :'String',
    'shipping_preference': :'String',
    'shipping_vendor': :'String',
    'time_pickup_expected': :'DateTime',
    'time_return_window_starts': :'DateTime',
    'oracle_shipping_tracking_url': :'String',
    'time_return_window_ends': :'DateTime',
    'return_shipping_label_uri': :'String',
    'is_import_requested': :'BOOLEAN',
    'import_compartment_id': :'String',
    'import_file_bucket': :'String',
    'data_validation_code': :'String',
    'public_key': :'String',
    'image_export_par': :'String',
    'master_key_id': :'String',
    'certificate_authority_id': :'String',
    'time_cert_validity_end': :'DateTime',
    'common_name': :'String',
    'cert_compartment_id': :'String',
    'certificate_version_number': :'String',
    'certificate_id': :'String',
    'cert_key_algorithm': :'String',
    'cert_signature_algorithm': :'String',
    'tags': :'String',
    'freeform_tags': :'Hash<String, String>',
    'defined_tags': :'Hash<String, Hash<String, Object>>',
    'system_tags': :'Hash<String, Hash<String, Object>>'
    # 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



770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'lib/oci/rover/models/rover_node.rb', line 770

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

  self.class == other.class &&
    id == other.id &&
    cluster_id == other.cluster_id &&
    compartment_id == other.compartment_id &&
    node_type == other.node_type &&
    shape == other.shape &&
    enclosure_type == other.enclosure_type &&
    serial_number == other.serial_number &&
    display_name == other.display_name &&
    time_created == other.time_created &&
    lifecycle_state == other.lifecycle_state &&
    lifecycle_state_details == other.lifecycle_state_details &&
    customer_shipping_address == other.customer_shipping_address &&
    node_workloads == other.node_workloads &&
    time_customer_receieved == other.time_customer_receieved &&
    time_customer_returned == other.time_customer_returned &&
    delivery_tracking_info == other.delivery_tracking_info &&
    super_user_password == other.super_user_password &&
    unlock_passphrase == other.unlock_passphrase &&
    point_of_contact == other.point_of_contact &&
    point_of_contact_phone_number == other.point_of_contact_phone_number &&
    shipping_preference == other.shipping_preference &&
    shipping_vendor == other.shipping_vendor &&
    time_pickup_expected == other.time_pickup_expected &&
    time_return_window_starts == other.time_return_window_starts &&
    oracle_shipping_tracking_url == other.oracle_shipping_tracking_url &&
    time_return_window_ends == other.time_return_window_ends &&
    return_shipping_label_uri == other.return_shipping_label_uri &&
    is_import_requested == other.is_import_requested &&
    import_compartment_id == other.import_compartment_id &&
    import_file_bucket == other.import_file_bucket &&
    data_validation_code == other.data_validation_code &&
    public_key == other.public_key &&
    image_export_par == other.image_export_par &&
    master_key_id == other.master_key_id &&
    certificate_authority_id == other.certificate_authority_id &&
    time_cert_validity_end == other.time_cert_validity_end &&
    common_name == other.common_name &&
    cert_compartment_id == other.cert_compartment_id &&
    certificate_version_number == other.certificate_version_number &&
    certificate_id == other.certificate_id &&
    cert_key_algorithm == other.cert_key_algorithm &&
    cert_signature_algorithm == other.cert_signature_algorithm &&
    tags == other.tags &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags &&
    system_tags == other.system_tags
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



845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
# File 'lib/oci/rover/models/rover_node.rb', line 845

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


825
826
827
# File 'lib/oci/rover/models/rover_node.rb', line 825

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



834
835
836
# File 'lib/oci/rover/models/rover_node.rb', line 834

def hash
  [id, cluster_id, compartment_id, node_type, shape, enclosure_type, serial_number, display_name, time_created, lifecycle_state, lifecycle_state_details, customer_shipping_address, node_workloads, time_customer_receieved, time_customer_returned, delivery_tracking_info, super_user_password, unlock_passphrase, point_of_contact, point_of_contact_phone_number, shipping_preference, shipping_vendor, time_pickup_expected, time_return_window_starts, oracle_shipping_tracking_url, time_return_window_ends, return_shipping_label_uri, is_import_requested, import_compartment_id, import_file_bucket, data_validation_code, public_key, image_export_par, master_key_id, certificate_authority_id, time_cert_validity_end, common_name, cert_compartment_id, certificate_version_number, certificate_id, cert_key_algorithm, cert_signature_algorithm, tags, freeform_tags, defined_tags, system_tags].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



878
879
880
881
882
883
884
885
886
887
# File 'lib/oci/rover/models/rover_node.rb', line 878

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



872
873
874
# File 'lib/oci/rover/models/rover_node.rb', line 872

def to_s
  to_hash.to_s
end