oci 2.4.2 → 2.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +21 -4
  4. data/lib/oci/core/models/boot_volume_attachment.rb +18 -4
  5. data/lib/oci/core/models/create_drg_attachment_details.rb +3 -0
  6. data/lib/oci/core/models/create_local_peering_gateway_details.rb +3 -0
  7. data/lib/oci/core/models/cross_connect_mapping.rb +8 -8
  8. data/lib/oci/core/models/dhcp_dns_option.rb +1 -1
  9. data/lib/oci/core/models/drg_attachment.rb +4 -1
  10. data/lib/oci/core/models/i_scsi_volume_attachment.rb +5 -1
  11. data/lib/oci/core/models/launch_instance_details.rb +18 -4
  12. data/lib/oci/core/models/launch_options.rb +18 -4
  13. data/lib/oci/core/models/local_peering_gateway.rb +4 -1
  14. data/lib/oci/core/models/paravirtualized_volume_attachment.rb +8 -4
  15. data/lib/oci/core/models/service.rb +1 -1
  16. data/lib/oci/core/models/update_drg_attachment_details.rb +4 -1
  17. data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -1
  18. data/lib/oci/core/models/volume_attachment.rb +18 -4
  19. data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
  20. data/lib/oci/core/virtual_network_client.rb +1 -1
  21. data/lib/oci/database/database.rb +1 -0
  22. data/lib/oci/database/models/autonomous_data_warehouse.rb +132 -137
  23. data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +77 -83
  24. data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +77 -77
  25. data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +22 -22
  26. data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +133 -133
  27. data/lib/oci/database/models/autonomous_database.rb +132 -137
  28. data/lib/oci/database/models/autonomous_database_backup.rb +77 -83
  29. data/lib/oci/database/models/autonomous_database_backup_summary.rb +77 -77
  30. data/lib/oci/database/models/autonomous_database_connection_strings.rb +22 -22
  31. data/lib/oci/database/models/autonomous_database_summary.rb +133 -133
  32. data/lib/oci/database/models/backup.rb +102 -109
  33. data/lib/oci/database/models/backup_summary.rb +101 -101
  34. data/lib/oci/database/models/complete_external_backup_job_details.rb +39 -39
  35. data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +18 -18
  36. data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +52 -52
  37. data/lib/oci/database/models/create_autonomous_database_backup_details.rb +18 -18
  38. data/lib/oci/database/models/create_autonomous_database_details.rb +52 -52
  39. data/lib/oci/database/models/create_data_guard_association_details.rb +22 -22
  40. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -5
  41. data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +218 -0
  42. data/lib/oci/database/models/create_database_details.rb +62 -62
  43. data/lib/oci/database/models/create_database_from_backup_details.rb +18 -18
  44. data/lib/oci/database/models/create_db_home_details.rb +21 -21
  45. data/lib/oci/database/models/create_db_home_from_backup_details.rb +14 -14
  46. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +14 -14
  47. data/lib/oci/database/models/create_external_backup_job_details.rb +80 -80
  48. data/lib/oci/database/models/data_guard_association.rb +132 -144
  49. data/lib/oci/database/models/data_guard_association_summary.rb +131 -131
  50. data/lib/oci/database/models/database.rb +100 -108
  51. data/lib/oci/database/models/database_summary.rb +99 -99
  52. data/lib/oci/database/models/db_home.rb +39 -51
  53. data/lib/oci/database/models/db_home_summary.rb +39 -39
  54. data/lib/oci/database/models/db_node.rb +50 -58
  55. data/lib/oci/database/models/db_node_summary.rb +49 -49
  56. data/lib/oci/database/models/db_system.rb +295 -300
  57. data/lib/oci/database/models/db_system_shape_summary.rb +46 -46
  58. data/lib/oci/database/models/db_system_summary.rb +295 -280
  59. data/lib/oci/database/models/db_version_summary.rb +28 -14
  60. data/lib/oci/database/models/external_backup_job.rb +34 -34
  61. data/lib/oci/database/models/generate_autonomous_data_warehouse_wallet_details.rb +1 -1
  62. data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +1 -1
  63. data/lib/oci/database/models/launch_db_system_base.rb +160 -145
  64. data/lib/oci/database/models/launch_db_system_details.rb +59 -55
  65. data/lib/oci/database/models/launch_db_system_from_backup_details.rb +59 -55
  66. data/lib/oci/database/models/patch.rb +45 -53
  67. data/lib/oci/database/models/patch_details.rb +14 -14
  68. data/lib/oci/database/models/patch_history_entry.rb +48 -51
  69. data/lib/oci/database/models/patch_history_entry_summary.rb +47 -47
  70. data/lib/oci/database/models/patch_summary.rb +44 -44
  71. data/lib/oci/database/models/restore_database_details.rb +15 -15
  72. data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +36 -36
  73. data/lib/oci/database/models/update_autonomous_database_details.rb +36 -36
  74. data/lib/oci/database/models/update_database_details.rb +22 -22
  75. data/lib/oci/database/models/update_db_system_details.rb +38 -38
  76. data/lib/oci/dns/dns.rb +1 -0
  77. data/lib/oci/dns/dns_client.rb +14 -13
  78. data/lib/oci/dns/models/create_zone_details.rb +39 -2
  79. data/lib/oci/dns/models/external_master.rb +3 -1
  80. data/lib/oci/dns/models/nameserver.rb +149 -0
  81. data/lib/oci/dns/models/record.rb +3 -1
  82. data/lib/oci/dns/models/record_details.rb +3 -1
  83. data/lib/oci/dns/models/record_operation.rb +3 -1
  84. data/lib/oci/dns/models/tsig.rb +3 -2
  85. data/lib/oci/dns/models/update_zone_details.rb +40 -2
  86. data/lib/oci/dns/models/zone.rb +54 -6
  87. data/lib/oci/dns/models/zone_summary.rb +79 -5
  88. data/lib/oci/identity/identity.rb +4 -0
  89. data/lib/oci/identity/identity_client.rb +176 -0
  90. data/lib/oci/identity/identity_client_composite_operations.rb +40 -0
  91. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +20 -4
  92. data/lib/oci/identity/models/identity_provider_group_summary.rb +226 -0
  93. data/lib/oci/identity/models/saml2_identity_provider.rb +20 -4
  94. data/lib/oci/identity/models/scim_client_credentials.rb +168 -0
  95. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +20 -4
  96. data/lib/oci/identity/models/update_user_capabilities_details.rb +214 -0
  97. data/lib/oci/identity/models/user.rb +42 -4
  98. data/lib/oci/identity/models/user_capabilities.rb +209 -0
  99. data/lib/oci/regions.rb +10 -9
  100. data/lib/oci/version.rb +1 -1
  101. metadata +8 -2
@@ -11,45 +11,45 @@ module OCI
11
11
  # see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
12
12
  #
13
13
  class Database::Models::DbSystemShapeSummary # rubocop:disable Metrics/LineLength
14
- # **[Required]** The maximum number of CPU cores that can be enabled on the DB system for this shape.
15
- # @return [Integer]
16
- attr_accessor :available_core_count
14
+ # **[Required]** The name of the shape used for the DB system.
15
+ # @return [String]
16
+ attr_accessor :name
17
17
 
18
- # The discrete number by which the CPU core count for this shape can be increased or decreased.
19
- # @return [Integer]
20
- attr_accessor :core_count_increment
18
+ # Deprecated. Use `name` instead of `shape`.
19
+ # @return [String]
20
+ attr_accessor :shape
21
21
 
22
- # The maximum number of database nodes available for this shape.
22
+ # **[Required]** The maximum number of CPU cores that can be enabled on the DB system for this shape.
23
23
  # @return [Integer]
24
- attr_accessor :maximum_node_count
24
+ attr_accessor :available_core_count
25
25
 
26
26
  # The minimum number of CPU cores that can be enabled on the DB system for this shape.
27
27
  # @return [Integer]
28
28
  attr_accessor :minimum_core_count
29
29
 
30
+ # The discrete number by which the CPU core count for this shape can be increased or decreased.
31
+ # @return [Integer]
32
+ attr_accessor :core_count_increment
33
+
30
34
  # The minimum number of database nodes available for this shape.
31
35
  # @return [Integer]
32
36
  attr_accessor :minimum_node_count
33
37
 
34
- # **[Required]** The name of the shape used for the DB system.
35
- # @return [String]
36
- attr_accessor :name
37
-
38
- # Deprecated. Use `name` instead of `shape`.
39
- # @return [String]
40
- attr_accessor :shape
38
+ # The maximum number of database nodes available for this shape.
39
+ # @return [Integer]
40
+ attr_accessor :maximum_node_count
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
44
44
  {
45
45
  # rubocop:disable Style/SymbolLiteral
46
+ 'name': :'name',
47
+ 'shape': :'shape',
46
48
  'available_core_count': :'availableCoreCount',
47
- 'core_count_increment': :'coreCountIncrement',
48
- 'maximum_node_count': :'maximumNodeCount',
49
49
  'minimum_core_count': :'minimumCoreCount',
50
+ 'core_count_increment': :'coreCountIncrement',
50
51
  'minimum_node_count': :'minimumNodeCount',
51
- 'name': :'name',
52
- 'shape': :'shape'
52
+ 'maximum_node_count': :'maximumNodeCount'
53
53
  # rubocop:enable Style/SymbolLiteral
54
54
  }
55
55
  end
@@ -58,13 +58,13 @@ module OCI
58
58
  def self.swagger_types
59
59
  {
60
60
  # rubocop:disable Style/SymbolLiteral
61
+ 'name': :'String',
62
+ 'shape': :'String',
61
63
  'available_core_count': :'Integer',
62
- 'core_count_increment': :'Integer',
63
- 'maximum_node_count': :'Integer',
64
64
  'minimum_core_count': :'Integer',
65
+ 'core_count_increment': :'Integer',
65
66
  'minimum_node_count': :'Integer',
66
- 'name': :'String',
67
- 'shape': :'String'
67
+ 'maximum_node_count': :'Integer'
68
68
  # rubocop:enable Style/SymbolLiteral
69
69
  }
70
70
  end
@@ -75,52 +75,52 @@ module OCI
75
75
 
76
76
  # Initializes the object
77
77
  # @param [Hash] attributes Model attributes in the form of hash
78
+ # @option attributes [String] :name The value to assign to the {#name} property
79
+ # @option attributes [String] :shape The value to assign to the {#shape} property
78
80
  # @option attributes [Integer] :available_core_count The value to assign to the {#available_core_count} property
79
- # @option attributes [Integer] :core_count_increment The value to assign to the {#core_count_increment} property
80
- # @option attributes [Integer] :maximum_node_count The value to assign to the {#maximum_node_count} property
81
81
  # @option attributes [Integer] :minimum_core_count The value to assign to the {#minimum_core_count} property
82
+ # @option attributes [Integer] :core_count_increment The value to assign to the {#core_count_increment} property
82
83
  # @option attributes [Integer] :minimum_node_count The value to assign to the {#minimum_node_count} property
83
- # @option attributes [String] :name The value to assign to the {#name} property
84
- # @option attributes [String] :shape The value to assign to the {#shape} property
84
+ # @option attributes [Integer] :maximum_node_count The value to assign to the {#maximum_node_count} property
85
85
  def initialize(attributes = {})
86
86
  return unless attributes.is_a?(Hash)
87
87
 
88
88
  # convert string to symbol for hash key
89
89
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
90
90
 
91
+ self.name = attributes[:'name'] if attributes[:'name']
92
+
93
+ self.shape = attributes[:'shape'] if attributes[:'shape']
94
+
91
95
  self.available_core_count = attributes[:'availableCoreCount'] if attributes[:'availableCoreCount']
92
96
 
93
97
  raise 'You cannot provide both :availableCoreCount and :available_core_count' if attributes.key?(:'availableCoreCount') && attributes.key?(:'available_core_count')
94
98
 
95
99
  self.available_core_count = attributes[:'available_core_count'] if attributes[:'available_core_count']
96
100
 
97
- self.core_count_increment = attributes[:'coreCountIncrement'] if attributes[:'coreCountIncrement']
98
-
99
- raise 'You cannot provide both :coreCountIncrement and :core_count_increment' if attributes.key?(:'coreCountIncrement') && attributes.key?(:'core_count_increment')
100
-
101
- self.core_count_increment = attributes[:'core_count_increment'] if attributes[:'core_count_increment']
102
-
103
- self.maximum_node_count = attributes[:'maximumNodeCount'] if attributes[:'maximumNodeCount']
104
-
105
- raise 'You cannot provide both :maximumNodeCount and :maximum_node_count' if attributes.key?(:'maximumNodeCount') && attributes.key?(:'maximum_node_count')
106
-
107
- self.maximum_node_count = attributes[:'maximum_node_count'] if attributes[:'maximum_node_count']
108
-
109
101
  self.minimum_core_count = attributes[:'minimumCoreCount'] if attributes[:'minimumCoreCount']
110
102
 
111
103
  raise 'You cannot provide both :minimumCoreCount and :minimum_core_count' if attributes.key?(:'minimumCoreCount') && attributes.key?(:'minimum_core_count')
112
104
 
113
105
  self.minimum_core_count = attributes[:'minimum_core_count'] if attributes[:'minimum_core_count']
114
106
 
107
+ self.core_count_increment = attributes[:'coreCountIncrement'] if attributes[:'coreCountIncrement']
108
+
109
+ raise 'You cannot provide both :coreCountIncrement and :core_count_increment' if attributes.key?(:'coreCountIncrement') && attributes.key?(:'core_count_increment')
110
+
111
+ self.core_count_increment = attributes[:'core_count_increment'] if attributes[:'core_count_increment']
112
+
115
113
  self.minimum_node_count = attributes[:'minimumNodeCount'] if attributes[:'minimumNodeCount']
116
114
 
117
115
  raise 'You cannot provide both :minimumNodeCount and :minimum_node_count' if attributes.key?(:'minimumNodeCount') && attributes.key?(:'minimum_node_count')
118
116
 
119
117
  self.minimum_node_count = attributes[:'minimum_node_count'] if attributes[:'minimum_node_count']
120
118
 
121
- self.name = attributes[:'name'] if attributes[:'name']
119
+ self.maximum_node_count = attributes[:'maximumNodeCount'] if attributes[:'maximumNodeCount']
122
120
 
123
- self.shape = attributes[:'shape'] if attributes[:'shape']
121
+ raise 'You cannot provide both :maximumNodeCount and :maximum_node_count' if attributes.key?(:'maximumNodeCount') && attributes.key?(:'maximum_node_count')
122
+
123
+ self.maximum_node_count = attributes[:'maximum_node_count'] if attributes[:'maximum_node_count']
124
124
  end
125
125
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
126
126
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -134,13 +134,13 @@ module OCI
134
134
  return true if equal?(other)
135
135
 
136
136
  self.class == other.class &&
137
+ name == other.name &&
138
+ shape == other.shape &&
137
139
  available_core_count == other.available_core_count &&
138
- core_count_increment == other.core_count_increment &&
139
- maximum_node_count == other.maximum_node_count &&
140
140
  minimum_core_count == other.minimum_core_count &&
141
+ core_count_increment == other.core_count_increment &&
141
142
  minimum_node_count == other.minimum_node_count &&
142
- name == other.name &&
143
- shape == other.shape
143
+ maximum_node_count == other.maximum_node_count
144
144
  end
145
145
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
146
146
 
@@ -156,7 +156,7 @@ module OCI
156
156
  # Calculates hash code according to all attributes.
157
157
  # @return [Fixnum] Hash code
158
158
  def hash
159
- [available_core_count, core_count_increment, maximum_node_count, minimum_core_count, minimum_node_count, name, shape].hash
159
+ [name, shape, available_core_count, minimum_core_count, core_count_increment, minimum_node_count, maximum_node_count].hash
160
160
  end
161
161
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
162
162
 
@@ -32,6 +32,16 @@ module OCI
32
32
  DATABASE_EDITION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
33
33
  ].freeze
34
34
 
35
+ LIFECYCLE_STATE_ENUM = [
36
+ LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
37
+ LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze,
38
+ LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
39
+ LIFECYCLE_STATE_TERMINATING = 'TERMINATING'.freeze,
40
+ LIFECYCLE_STATE_TERMINATED = 'TERMINATED'.freeze,
41
+ LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
42
+ LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
43
+ ].freeze
44
+
35
45
  DISK_REDUNDANCY_ENUM = [
36
46
  DISK_REDUNDANCY_HIGH = 'HIGH'.freeze,
37
47
  DISK_REDUNDANCY_NORMAL = 'NORMAL'.freeze,
@@ -44,20 +54,35 @@ module OCI
44
54
  LICENSE_MODEL_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
45
55
  ].freeze
46
56
 
47
- LIFECYCLE_STATE_ENUM = [
48
- LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
49
- LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze,
50
- LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
51
- LIFECYCLE_STATE_TERMINATING = 'TERMINATING'.freeze,
52
- LIFECYCLE_STATE_TERMINATED = 'TERMINATED'.freeze,
53
- LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
54
- LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
55
- ].freeze
57
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system.
58
+ # @return [String]
59
+ attr_accessor :id
60
+
61
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
62
+ # @return [String]
63
+ attr_accessor :compartment_id
64
+
65
+ # **[Required]** The user-friendly name for the DB system. The name does not have to be unique.
66
+ # @return [String]
67
+ attr_accessor :display_name
56
68
 
57
69
  # **[Required]** The name of the availability domain that the DB system is located in.
58
70
  # @return [String]
59
71
  attr_accessor :availability_domain
60
72
 
73
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the subnet the DB system is associated with.
74
+ #
75
+ # **Subnet Restrictions:**
76
+ # - For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28.
77
+ # - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20.
78
+ #
79
+ # These subnets are used by the Oracle Clusterware private interconnect on the database instance.
80
+ # Specifying an overlapping subnet will cause the private interconnect to malfunction.
81
+ # This restriction applies to both the client subnet and backup subnet.
82
+ #
83
+ # @return [String]
84
+ attr_accessor :subnet_id
85
+
61
86
  # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup network subnet the DB system is associated with. Applicable only to Exadata DB systems.
62
87
  #
63
88
  # **Subnet Restriction:** See the subnet restrictions information for **subnetId**.
@@ -65,109 +90,80 @@ module OCI
65
90
  # @return [String]
66
91
  attr_accessor :backup_subnet_id
67
92
 
68
- # The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive.
93
+ # **[Required]** The shape of the DB system. The shape determines resources to allocate to the DB system.
94
+ # - For virtual machine shapes, the number of CPU cores and memory
95
+ # - For bare metal and Exadata shapes, the number of CPU cores, storage, and memory
69
96
  #
70
97
  # @return [String]
71
- attr_accessor :cluster_name
98
+ attr_accessor :shape
72
99
 
73
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
100
+ # **[Required]** The public key portion of one or more key pairs used for SSH access to the DB system.
101
+ # @return [Array<String>]
102
+ attr_accessor :ssh_public_keys
103
+
104
+ # **[Required]** The hostname for the DB system.
74
105
  # @return [String]
75
- attr_accessor :compartment_id
106
+ attr_accessor :hostname
107
+
108
+ # **[Required]** The domain name for the DB system.
109
+ # @return [String]
110
+ attr_accessor :domain
111
+
112
+ # The Oracle Database version of the DB system.
113
+ # @return [String]
114
+ attr_accessor :version
76
115
 
77
116
  # **[Required]** The number of CPU cores enabled on the DB system.
78
117
  # @return [Integer]
79
118
  attr_accessor :cpu_core_count
80
119
 
120
+ # The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive.
121
+ #
122
+ # @return [String]
123
+ attr_accessor :cluster_name
124
+
81
125
  # The percentage assigned to DATA storage (user data and database files).
82
126
  # The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 40 and 80. The default is 80 percent assigned to DATA storage. Not applicable for virtual machine DB systems.
83
127
  #
84
128
  # @return [Integer]
85
129
  attr_accessor :data_storage_percentage
86
130
 
87
- # The data storage size, in gigabytes, that is currently available to the DB system. Applies only for virtual machine DB systems.
88
- #
89
- # @return [Integer]
90
- attr_accessor :data_storage_size_in_gbs
91
-
92
131
  # **[Required]** The Oracle Database edition that applies to all the databases on the DB system.
93
132
  #
94
133
  # @return [String]
95
134
  attr_reader :database_edition
96
135
 
97
- # Defined tags for this resource. Each key is predefined and scoped to a namespace.
98
- # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
99
- #
100
- # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
101
- #
102
- # @return [Hash<String, Hash<String, Object>>]
103
- attr_accessor :defined_tags
104
-
105
- # The type of redundancy configured for the DB system.
106
- # NORMAL is 2-way redundancy.
107
- # HIGH is 3-way redundancy.
108
- #
109
- # @return [String]
110
- attr_reader :disk_redundancy
111
-
112
- # **[Required]** The user-friendly name for the DB system. The name does not have to be unique.
113
- # @return [String]
114
- attr_accessor :display_name
115
-
116
- # **[Required]** The domain name for the DB system.
117
- # @return [String]
118
- attr_accessor :domain
119
-
120
- # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
121
- # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
122
- #
123
- # Example: `{\"Department\": \"Finance\"}`
124
- #
125
- # @return [Hash<String, String>]
126
- attr_accessor :freeform_tags
127
-
128
- # **[Required]** The hostname for the DB system.
129
- # @return [String]
130
- attr_accessor :hostname
131
-
132
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system.
133
- # @return [String]
134
- attr_accessor :id
135
-
136
136
  # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation starts.
137
137
  # @return [String]
138
138
  attr_accessor :last_patch_history_entry_id
139
139
 
140
- # The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED.
141
- #
142
- # @return [String]
143
- attr_reader :license_model
144
-
145
- # Additional information about the current lifecycleState.
146
- # @return [String]
147
- attr_accessor :lifecycle_details
140
+ # The port number configured for the listener on the DB system.
141
+ # @return [Integer]
142
+ attr_accessor :listener_port
148
143
 
149
144
  # **[Required]** The current state of the DB system.
150
145
  # @return [String]
151
146
  attr_reader :lifecycle_state
152
147
 
153
- # The port number configured for the listener on the DB system.
154
- # @return [Integer]
155
- attr_accessor :listener_port
148
+ # The date and time the DB system was created.
149
+ # @return [DateTime]
150
+ attr_accessor :time_created
156
151
 
157
- # The number of nodes in the DB system. For RAC DB systems, the value is greater than 1.
158
- #
159
- # @return [Integer]
160
- attr_accessor :node_count
152
+ # Additional information about the current lifecycleState.
153
+ # @return [String]
154
+ attr_accessor :lifecycle_details
161
155
 
162
- # The RECO/REDO storage size, in gigabytes, that is currently allocated to the DB system. Applies only for virtual machine DB systems.
156
+ # The type of redundancy configured for the DB system.
157
+ # NORMAL is 2-way redundancy.
158
+ # HIGH is 3-way redundancy.
163
159
  #
164
- # @return [Integer]
165
- attr_accessor :reco_storage_size_in_gb
160
+ # @return [String]
161
+ attr_reader :disk_redundancy
166
162
 
167
- # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DNS record for the SCAN IP addresses that are associated with the DB system.
163
+ # True, if Sparse Diskgroup is configured for Exadata dbsystem, False, if Sparse diskgroup was not configured.
168
164
  #
169
- # @return [String]
170
- attr_accessor :scan_dns_record_id
165
+ # @return [BOOLEAN]
166
+ attr_accessor :sparse_diskgroup
171
167
 
172
168
  # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Single Client Access Name (SCAN) IP addresses associated with the DB system.
173
169
  # SCAN IP addresses are typically used for load balancing and are not assigned to any interface.
@@ -178,81 +174,91 @@ module OCI
178
174
  # @return [Array<String>]
179
175
  attr_accessor :scan_ip_ids
180
176
 
181
- # **[Required]** The shape of the DB system. The shape determines resources to allocate to the DB system.
182
- # - For virtual machine shapes, the number of CPU cores and memory
183
- # - For bare metal and Exadata shapes, the number of CPU cores, storage, and memory
177
+ # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the virtual IP (VIP) addresses associated with the DB system.
178
+ # The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the DB system to
179
+ # enable failover. If one node fails, the VIP is reassigned to another active node in the cluster.
180
+ #
181
+ # **Note:** For a single-node DB system, this list is empty.
184
182
  #
185
- # @return [String]
186
- attr_accessor :shape
187
-
188
- # **[Required]** The public key portion of one or more key pairs used for SSH access to the DB system.
189
183
  # @return [Array<String>]
190
- attr_accessor :ssh_public_keys
184
+ attr_accessor :vip_ids
191
185
 
192
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the subnet the DB system is associated with.
186
+ # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DNS record for the SCAN IP addresses that are associated with the DB system.
193
187
  #
194
- # **Subnet Restrictions:**
195
- # - For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28.
196
- # - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20.
188
+ # @return [String]
189
+ attr_accessor :scan_dns_record_id
190
+
191
+ # The data storage size, in gigabytes, that is currently available to the DB system. Applies only for virtual machine DB systems.
197
192
  #
198
- # These subnets are used by the Oracle Clusterware private interconnect on the database instance.
199
- # Specifying an overlapping subnet will cause the private interconnect to malfunction.
200
- # This restriction applies to both the client subnet and backup subnet.
193
+ # @return [Integer]
194
+ attr_accessor :data_storage_size_in_gbs
195
+
196
+ # The RECO/REDO storage size, in gigabytes, that is currently allocated to the DB system. Applies only for virtual machine DB systems.
201
197
  #
202
- # @return [String]
203
- attr_accessor :subnet_id
198
+ # @return [Integer]
199
+ attr_accessor :reco_storage_size_in_gb
204
200
 
205
- # The date and time the DB system was created.
206
- # @return [DateTime]
207
- attr_accessor :time_created
201
+ # The number of nodes in the DB system. For RAC DB systems, the value is greater than 1.
202
+ #
203
+ # @return [Integer]
204
+ attr_accessor :node_count
208
205
 
209
- # The Oracle Database version of the DB system.
206
+ # The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED.
207
+ #
210
208
  # @return [String]
211
- attr_accessor :version
209
+ attr_reader :license_model
212
210
 
213
- # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the virtual IP (VIP) addresses associated with the DB system.
214
- # The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the DB system to
215
- # enable failover. If one node fails, the VIP is reassigned to another active node in the cluster.
211
+ # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
212
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
216
213
  #
217
- # **Note:** For a single-node DB system, this list is empty.
214
+ # Example: `{\"Department\": \"Finance\"}`
218
215
  #
219
- # @return [Array<String>]
220
- attr_accessor :vip_ids
216
+ # @return [Hash<String, String>]
217
+ attr_accessor :freeform_tags
218
+
219
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
220
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
221
+ #
222
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
223
+ #
224
+ # @return [Hash<String, Hash<String, Object>>]
225
+ attr_accessor :defined_tags
221
226
 
222
227
  # Attribute mapping from ruby-style variable name to JSON key.
223
228
  def self.attribute_map
224
229
  {
225
230
  # rubocop:disable Style/SymbolLiteral
231
+ 'id': :'id',
232
+ 'compartment_id': :'compartmentId',
233
+ 'display_name': :'displayName',
226
234
  'availability_domain': :'availabilityDomain',
235
+ 'subnet_id': :'subnetId',
227
236
  'backup_subnet_id': :'backupSubnetId',
228
- 'cluster_name': :'clusterName',
229
- 'compartment_id': :'compartmentId',
237
+ 'shape': :'shape',
238
+ 'ssh_public_keys': :'sshPublicKeys',
239
+ 'hostname': :'hostname',
240
+ 'domain': :'domain',
241
+ 'version': :'version',
230
242
  'cpu_core_count': :'cpuCoreCount',
243
+ 'cluster_name': :'clusterName',
231
244
  'data_storage_percentage': :'dataStoragePercentage',
232
- 'data_storage_size_in_gbs': :'dataStorageSizeInGBs',
233
245
  'database_edition': :'databaseEdition',
234
- 'defined_tags': :'definedTags',
235
- 'disk_redundancy': :'diskRedundancy',
236
- 'display_name': :'displayName',
237
- 'domain': :'domain',
238
- 'freeform_tags': :'freeformTags',
239
- 'hostname': :'hostname',
240
- 'id': :'id',
241
246
  'last_patch_history_entry_id': :'lastPatchHistoryEntryId',
242
- 'license_model': :'licenseModel',
243
- 'lifecycle_details': :'lifecycleDetails',
244
- 'lifecycle_state': :'lifecycleState',
245
247
  'listener_port': :'listenerPort',
246
- 'node_count': :'nodeCount',
247
- 'reco_storage_size_in_gb': :'recoStorageSizeInGB',
248
- 'scan_dns_record_id': :'scanDnsRecordId',
249
- 'scan_ip_ids': :'scanIpIds',
250
- 'shape': :'shape',
251
- 'ssh_public_keys': :'sshPublicKeys',
252
- 'subnet_id': :'subnetId',
248
+ 'lifecycle_state': :'lifecycleState',
253
249
  'time_created': :'timeCreated',
254
- 'version': :'version',
255
- 'vip_ids': :'vipIds'
250
+ 'lifecycle_details': :'lifecycleDetails',
251
+ 'disk_redundancy': :'diskRedundancy',
252
+ 'sparse_diskgroup': :'sparseDiskgroup',
253
+ 'scan_ip_ids': :'scanIpIds',
254
+ 'vip_ids': :'vipIds',
255
+ 'scan_dns_record_id': :'scanDnsRecordId',
256
+ 'data_storage_size_in_gbs': :'dataStorageSizeInGBs',
257
+ 'reco_storage_size_in_gb': :'recoStorageSizeInGB',
258
+ 'node_count': :'nodeCount',
259
+ 'license_model': :'licenseModel',
260
+ 'freeform_tags': :'freeformTags',
261
+ 'defined_tags': :'definedTags'
256
262
  # rubocop:enable Style/SymbolLiteral
257
263
  }
258
264
  end
@@ -261,36 +267,37 @@ module OCI
261
267
  def self.swagger_types
262
268
  {
263
269
  # rubocop:disable Style/SymbolLiteral
270
+ 'id': :'String',
271
+ 'compartment_id': :'String',
272
+ 'display_name': :'String',
264
273
  'availability_domain': :'String',
274
+ 'subnet_id': :'String',
265
275
  'backup_subnet_id': :'String',
266
- 'cluster_name': :'String',
267
- 'compartment_id': :'String',
276
+ 'shape': :'String',
277
+ 'ssh_public_keys': :'Array<String>',
278
+ 'hostname': :'String',
279
+ 'domain': :'String',
280
+ 'version': :'String',
268
281
  'cpu_core_count': :'Integer',
282
+ 'cluster_name': :'String',
269
283
  'data_storage_percentage': :'Integer',
270
- 'data_storage_size_in_gbs': :'Integer',
271
284
  'database_edition': :'String',
272
- 'defined_tags': :'Hash<String, Hash<String, Object>>',
273
- 'disk_redundancy': :'String',
274
- 'display_name': :'String',
275
- 'domain': :'String',
276
- 'freeform_tags': :'Hash<String, String>',
277
- 'hostname': :'String',
278
- 'id': :'String',
279
285
  'last_patch_history_entry_id': :'String',
280
- 'license_model': :'String',
281
- 'lifecycle_details': :'String',
282
- 'lifecycle_state': :'String',
283
286
  'listener_port': :'Integer',
284
- 'node_count': :'Integer',
285
- 'reco_storage_size_in_gb': :'Integer',
286
- 'scan_dns_record_id': :'String',
287
- 'scan_ip_ids': :'Array<String>',
288
- 'shape': :'String',
289
- 'ssh_public_keys': :'Array<String>',
290
- 'subnet_id': :'String',
287
+ 'lifecycle_state': :'String',
291
288
  'time_created': :'DateTime',
292
- 'version': :'String',
293
- 'vip_ids': :'Array<String>'
289
+ 'lifecycle_details': :'String',
290
+ 'disk_redundancy': :'String',
291
+ 'sparse_diskgroup': :'BOOLEAN',
292
+ 'scan_ip_ids': :'Array<String>',
293
+ 'vip_ids': :'Array<String>',
294
+ 'scan_dns_record_id': :'String',
295
+ 'data_storage_size_in_gbs': :'Integer',
296
+ 'reco_storage_size_in_gb': :'Integer',
297
+ 'node_count': :'Integer',
298
+ 'license_model': :'String',
299
+ 'freeform_tags': :'Hash<String, String>',
300
+ 'defined_tags': :'Hash<String, Hash<String, Object>>'
294
301
  # rubocop:enable Style/SymbolLiteral
295
302
  }
296
303
  end
@@ -301,65 +308,88 @@ module OCI
301
308
 
302
309
  # Initializes the object
303
310
  # @param [Hash] attributes Model attributes in the form of hash
311
+ # @option attributes [String] :id The value to assign to the {#id} property
312
+ # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
313
+ # @option attributes [String] :display_name The value to assign to the {#display_name} property
304
314
  # @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
315
+ # @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
305
316
  # @option attributes [String] :backup_subnet_id The value to assign to the {#backup_subnet_id} property
306
- # @option attributes [String] :cluster_name The value to assign to the {#cluster_name} property
307
- # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
317
+ # @option attributes [String] :shape The value to assign to the {#shape} property
318
+ # @option attributes [Array<String>] :ssh_public_keys The value to assign to the {#ssh_public_keys} property
319
+ # @option attributes [String] :hostname The value to assign to the {#hostname} property
320
+ # @option attributes [String] :domain The value to assign to the {#domain} property
321
+ # @option attributes [String] :version The value to assign to the {#version} property
308
322
  # @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
323
+ # @option attributes [String] :cluster_name The value to assign to the {#cluster_name} property
309
324
  # @option attributes [Integer] :data_storage_percentage The value to assign to the {#data_storage_percentage} property
310
- # @option attributes [Integer] :data_storage_size_in_gbs The value to assign to the {#data_storage_size_in_gbs} property
311
325
  # @option attributes [String] :database_edition The value to assign to the {#database_edition} property
312
- # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
313
- # @option attributes [String] :disk_redundancy The value to assign to the {#disk_redundancy} property
314
- # @option attributes [String] :display_name The value to assign to the {#display_name} property
315
- # @option attributes [String] :domain The value to assign to the {#domain} property
316
- # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
317
- # @option attributes [String] :hostname The value to assign to the {#hostname} property
318
- # @option attributes [String] :id The value to assign to the {#id} property
319
326
  # @option attributes [String] :last_patch_history_entry_id The value to assign to the {#last_patch_history_entry_id} property
320
- # @option attributes [String] :license_model The value to assign to the {#license_model} property
321
- # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
322
- # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
323
327
  # @option attributes [Integer] :listener_port The value to assign to the {#listener_port} property
324
- # @option attributes [Integer] :node_count The value to assign to the {#node_count} property
325
- # @option attributes [Integer] :reco_storage_size_in_gb The value to assign to the {#reco_storage_size_in_gb} property
326
- # @option attributes [String] :scan_dns_record_id The value to assign to the {#scan_dns_record_id} property
327
- # @option attributes [Array<String>] :scan_ip_ids The value to assign to the {#scan_ip_ids} property
328
- # @option attributes [String] :shape The value to assign to the {#shape} property
329
- # @option attributes [Array<String>] :ssh_public_keys The value to assign to the {#ssh_public_keys} property
330
- # @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
328
+ # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
331
329
  # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
332
- # @option attributes [String] :version The value to assign to the {#version} property
330
+ # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
331
+ # @option attributes [String] :disk_redundancy The value to assign to the {#disk_redundancy} property
332
+ # @option attributes [BOOLEAN] :sparse_diskgroup The value to assign to the {#sparse_diskgroup} property
333
+ # @option attributes [Array<String>] :scan_ip_ids The value to assign to the {#scan_ip_ids} property
333
334
  # @option attributes [Array<String>] :vip_ids The value to assign to the {#vip_ids} property
335
+ # @option attributes [String] :scan_dns_record_id The value to assign to the {#scan_dns_record_id} property
336
+ # @option attributes [Integer] :data_storage_size_in_gbs The value to assign to the {#data_storage_size_in_gbs} property
337
+ # @option attributes [Integer] :reco_storage_size_in_gb The value to assign to the {#reco_storage_size_in_gb} property
338
+ # @option attributes [Integer] :node_count The value to assign to the {#node_count} property
339
+ # @option attributes [String] :license_model The value to assign to the {#license_model} property
340
+ # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
341
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
334
342
  def initialize(attributes = {})
335
343
  return unless attributes.is_a?(Hash)
336
344
 
337
345
  # convert string to symbol for hash key
338
346
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
339
347
 
348
+ self.id = attributes[:'id'] if attributes[:'id']
349
+
350
+ self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
351
+
352
+ raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
353
+
354
+ self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
355
+
356
+ self.display_name = attributes[:'displayName'] if attributes[:'displayName']
357
+
358
+ raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
359
+
360
+ self.display_name = attributes[:'display_name'] if attributes[:'display_name']
361
+
340
362
  self.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain']
341
363
 
342
364
  raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
343
365
 
344
366
  self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain']
345
367
 
368
+ self.subnet_id = attributes[:'subnetId'] if attributes[:'subnetId']
369
+
370
+ raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id')
371
+
372
+ self.subnet_id = attributes[:'subnet_id'] if attributes[:'subnet_id']
373
+
346
374
  self.backup_subnet_id = attributes[:'backupSubnetId'] if attributes[:'backupSubnetId']
347
375
 
348
376
  raise 'You cannot provide both :backupSubnetId and :backup_subnet_id' if attributes.key?(:'backupSubnetId') && attributes.key?(:'backup_subnet_id')
349
377
 
350
378
  self.backup_subnet_id = attributes[:'backup_subnet_id'] if attributes[:'backup_subnet_id']
351
379
 
352
- self.cluster_name = attributes[:'clusterName'] if attributes[:'clusterName']
380
+ self.shape = attributes[:'shape'] if attributes[:'shape']
353
381
 
354
- raise 'You cannot provide both :clusterName and :cluster_name' if attributes.key?(:'clusterName') && attributes.key?(:'cluster_name')
382
+ self.ssh_public_keys = attributes[:'sshPublicKeys'] if attributes[:'sshPublicKeys']
355
383
 
356
- self.cluster_name = attributes[:'cluster_name'] if attributes[:'cluster_name']
384
+ raise 'You cannot provide both :sshPublicKeys and :ssh_public_keys' if attributes.key?(:'sshPublicKeys') && attributes.key?(:'ssh_public_keys')
357
385
 
358
- self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
386
+ self.ssh_public_keys = attributes[:'ssh_public_keys'] if attributes[:'ssh_public_keys']
359
387
 
360
- raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
388
+ self.hostname = attributes[:'hostname'] if attributes[:'hostname']
361
389
 
362
- self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
390
+ self.domain = attributes[:'domain'] if attributes[:'domain']
391
+
392
+ self.version = attributes[:'version'] if attributes[:'version']
363
393
 
364
394
  self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
365
395
 
@@ -367,17 +397,17 @@ module OCI
367
397
 
368
398
  self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count']
369
399
 
370
- self.data_storage_percentage = attributes[:'dataStoragePercentage'] if attributes[:'dataStoragePercentage']
400
+ self.cluster_name = attributes[:'clusterName'] if attributes[:'clusterName']
371
401
 
372
- raise 'You cannot provide both :dataStoragePercentage and :data_storage_percentage' if attributes.key?(:'dataStoragePercentage') && attributes.key?(:'data_storage_percentage')
402
+ raise 'You cannot provide both :clusterName and :cluster_name' if attributes.key?(:'clusterName') && attributes.key?(:'cluster_name')
373
403
 
374
- self.data_storage_percentage = attributes[:'data_storage_percentage'] if attributes[:'data_storage_percentage']
404
+ self.cluster_name = attributes[:'cluster_name'] if attributes[:'cluster_name']
375
405
 
376
- self.data_storage_size_in_gbs = attributes[:'dataStorageSizeInGBs'] if attributes[:'dataStorageSizeInGBs']
406
+ self.data_storage_percentage = attributes[:'dataStoragePercentage'] if attributes[:'dataStoragePercentage']
377
407
 
378
- raise 'You cannot provide both :dataStorageSizeInGBs and :data_storage_size_in_gbs' if attributes.key?(:'dataStorageSizeInGBs') && attributes.key?(:'data_storage_size_in_gbs')
408
+ raise 'You cannot provide both :dataStoragePercentage and :data_storage_percentage' if attributes.key?(:'dataStoragePercentage') && attributes.key?(:'data_storage_percentage')
379
409
 
380
- self.data_storage_size_in_gbs = attributes[:'data_storage_size_in_gbs'] if attributes[:'data_storage_size_in_gbs']
410
+ self.data_storage_percentage = attributes[:'data_storage_percentage'] if attributes[:'data_storage_percentage']
381
411
 
382
412
  self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition']
383
413
 
@@ -385,47 +415,29 @@ module OCI
385
415
 
386
416
  self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition']
387
417
 
388
- self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
389
-
390
- raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
391
-
392
- self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
393
-
394
- self.disk_redundancy = attributes[:'diskRedundancy'] if attributes[:'diskRedundancy']
395
-
396
- raise 'You cannot provide both :diskRedundancy and :disk_redundancy' if attributes.key?(:'diskRedundancy') && attributes.key?(:'disk_redundancy')
397
-
398
- self.disk_redundancy = attributes[:'disk_redundancy'] if attributes[:'disk_redundancy']
399
-
400
- self.display_name = attributes[:'displayName'] if attributes[:'displayName']
401
-
402
- raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
403
-
404
- self.display_name = attributes[:'display_name'] if attributes[:'display_name']
405
-
406
- self.domain = attributes[:'domain'] if attributes[:'domain']
418
+ self.last_patch_history_entry_id = attributes[:'lastPatchHistoryEntryId'] if attributes[:'lastPatchHistoryEntryId']
407
419
 
408
- self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
420
+ raise 'You cannot provide both :lastPatchHistoryEntryId and :last_patch_history_entry_id' if attributes.key?(:'lastPatchHistoryEntryId') && attributes.key?(:'last_patch_history_entry_id')
409
421
 
410
- raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
422
+ self.last_patch_history_entry_id = attributes[:'last_patch_history_entry_id'] if attributes[:'last_patch_history_entry_id']
411
423
 
412
- self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
424
+ self.listener_port = attributes[:'listenerPort'] if attributes[:'listenerPort']
413
425
 
414
- self.hostname = attributes[:'hostname'] if attributes[:'hostname']
426
+ raise 'You cannot provide both :listenerPort and :listener_port' if attributes.key?(:'listenerPort') && attributes.key?(:'listener_port')
415
427
 
416
- self.id = attributes[:'id'] if attributes[:'id']
428
+ self.listener_port = attributes[:'listener_port'] if attributes[:'listener_port']
417
429
 
418
- self.last_patch_history_entry_id = attributes[:'lastPatchHistoryEntryId'] if attributes[:'lastPatchHistoryEntryId']
430
+ self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
419
431
 
420
- raise 'You cannot provide both :lastPatchHistoryEntryId and :last_patch_history_entry_id' if attributes.key?(:'lastPatchHistoryEntryId') && attributes.key?(:'last_patch_history_entry_id')
432
+ raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
421
433
 
422
- self.last_patch_history_entry_id = attributes[:'last_patch_history_entry_id'] if attributes[:'last_patch_history_entry_id']
434
+ self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
423
435
 
424
- self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel']
436
+ self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
425
437
 
426
- raise 'You cannot provide both :licenseModel and :license_model' if attributes.key?(:'licenseModel') && attributes.key?(:'license_model')
438
+ raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
427
439
 
428
- self.license_model = attributes[:'license_model'] if attributes[:'license_model']
440
+ self.time_created = attributes[:'time_created'] if attributes[:'time_created']
429
441
 
430
442
  self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
431
443
 
@@ -433,29 +445,29 @@ module OCI
433
445
 
434
446
  self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
435
447
 
436
- self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
448
+ self.disk_redundancy = attributes[:'diskRedundancy'] if attributes[:'diskRedundancy']
437
449
 
438
- raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
450
+ raise 'You cannot provide both :diskRedundancy and :disk_redundancy' if attributes.key?(:'diskRedundancy') && attributes.key?(:'disk_redundancy')
439
451
 
440
- self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
452
+ self.disk_redundancy = attributes[:'disk_redundancy'] if attributes[:'disk_redundancy']
441
453
 
442
- self.listener_port = attributes[:'listenerPort'] if attributes[:'listenerPort']
454
+ self.sparse_diskgroup = attributes[:'sparseDiskgroup'] unless attributes[:'sparseDiskgroup'].nil?
443
455
 
444
- raise 'You cannot provide both :listenerPort and :listener_port' if attributes.key?(:'listenerPort') && attributes.key?(:'listener_port')
456
+ raise 'You cannot provide both :sparseDiskgroup and :sparse_diskgroup' if attributes.key?(:'sparseDiskgroup') && attributes.key?(:'sparse_diskgroup')
445
457
 
446
- self.listener_port = attributes[:'listener_port'] if attributes[:'listener_port']
458
+ self.sparse_diskgroup = attributes[:'sparse_diskgroup'] unless attributes[:'sparse_diskgroup'].nil?
447
459
 
448
- self.node_count = attributes[:'nodeCount'] if attributes[:'nodeCount']
460
+ self.scan_ip_ids = attributes[:'scanIpIds'] if attributes[:'scanIpIds']
449
461
 
450
- raise 'You cannot provide both :nodeCount and :node_count' if attributes.key?(:'nodeCount') && attributes.key?(:'node_count')
462
+ raise 'You cannot provide both :scanIpIds and :scan_ip_ids' if attributes.key?(:'scanIpIds') && attributes.key?(:'scan_ip_ids')
451
463
 
452
- self.node_count = attributes[:'node_count'] if attributes[:'node_count']
464
+ self.scan_ip_ids = attributes[:'scan_ip_ids'] if attributes[:'scan_ip_ids']
453
465
 
454
- self.reco_storage_size_in_gb = attributes[:'recoStorageSizeInGB'] if attributes[:'recoStorageSizeInGB']
466
+ self.vip_ids = attributes[:'vipIds'] if attributes[:'vipIds']
455
467
 
456
- raise 'You cannot provide both :recoStorageSizeInGB and :reco_storage_size_in_gb' if attributes.key?(:'recoStorageSizeInGB') && attributes.key?(:'reco_storage_size_in_gb')
468
+ raise 'You cannot provide both :vipIds and :vip_ids' if attributes.key?(:'vipIds') && attributes.key?(:'vip_ids')
457
469
 
458
- self.reco_storage_size_in_gb = attributes[:'reco_storage_size_in_gb'] if attributes[:'reco_storage_size_in_gb']
470
+ self.vip_ids = attributes[:'vip_ids'] if attributes[:'vip_ids']
459
471
 
460
472
  self.scan_dns_record_id = attributes[:'scanDnsRecordId'] if attributes[:'scanDnsRecordId']
461
473
 
@@ -463,39 +475,41 @@ module OCI
463
475
 
464
476
  self.scan_dns_record_id = attributes[:'scan_dns_record_id'] if attributes[:'scan_dns_record_id']
465
477
 
466
- self.scan_ip_ids = attributes[:'scanIpIds'] if attributes[:'scanIpIds']
478
+ self.data_storage_size_in_gbs = attributes[:'dataStorageSizeInGBs'] if attributes[:'dataStorageSizeInGBs']
467
479
 
468
- raise 'You cannot provide both :scanIpIds and :scan_ip_ids' if attributes.key?(:'scanIpIds') && attributes.key?(:'scan_ip_ids')
480
+ raise 'You cannot provide both :dataStorageSizeInGBs and :data_storage_size_in_gbs' if attributes.key?(:'dataStorageSizeInGBs') && attributes.key?(:'data_storage_size_in_gbs')
469
481
 
470
- self.scan_ip_ids = attributes[:'scan_ip_ids'] if attributes[:'scan_ip_ids']
482
+ self.data_storage_size_in_gbs = attributes[:'data_storage_size_in_gbs'] if attributes[:'data_storage_size_in_gbs']
471
483
 
472
- self.shape = attributes[:'shape'] if attributes[:'shape']
484
+ self.reco_storage_size_in_gb = attributes[:'recoStorageSizeInGB'] if attributes[:'recoStorageSizeInGB']
473
485
 
474
- self.ssh_public_keys = attributes[:'sshPublicKeys'] if attributes[:'sshPublicKeys']
486
+ raise 'You cannot provide both :recoStorageSizeInGB and :reco_storage_size_in_gb' if attributes.key?(:'recoStorageSizeInGB') && attributes.key?(:'reco_storage_size_in_gb')
475
487
 
476
- raise 'You cannot provide both :sshPublicKeys and :ssh_public_keys' if attributes.key?(:'sshPublicKeys') && attributes.key?(:'ssh_public_keys')
488
+ self.reco_storage_size_in_gb = attributes[:'reco_storage_size_in_gb'] if attributes[:'reco_storage_size_in_gb']
477
489
 
478
- self.ssh_public_keys = attributes[:'ssh_public_keys'] if attributes[:'ssh_public_keys']
490
+ self.node_count = attributes[:'nodeCount'] if attributes[:'nodeCount']
479
491
 
480
- self.subnet_id = attributes[:'subnetId'] if attributes[:'subnetId']
492
+ raise 'You cannot provide both :nodeCount and :node_count' if attributes.key?(:'nodeCount') && attributes.key?(:'node_count')
481
493
 
482
- raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id')
494
+ self.node_count = attributes[:'node_count'] if attributes[:'node_count']
483
495
 
484
- self.subnet_id = attributes[:'subnet_id'] if attributes[:'subnet_id']
496
+ self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel']
485
497
 
486
- self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
498
+ raise 'You cannot provide both :licenseModel and :license_model' if attributes.key?(:'licenseModel') && attributes.key?(:'license_model')
487
499
 
488
- raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
500
+ self.license_model = attributes[:'license_model'] if attributes[:'license_model']
489
501
 
490
- self.time_created = attributes[:'time_created'] if attributes[:'time_created']
502
+ self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
491
503
 
492
- self.version = attributes[:'version'] if attributes[:'version']
504
+ raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
493
505
 
494
- self.vip_ids = attributes[:'vipIds'] if attributes[:'vipIds']
506
+ self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
495
507
 
496
- raise 'You cannot provide both :vipIds and :vip_ids' if attributes.key?(:'vipIds') && attributes.key?(:'vip_ids')
508
+ self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
497
509
 
498
- self.vip_ids = attributes[:'vip_ids'] if attributes[:'vip_ids']
510
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
511
+
512
+ self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
499
513
  end
500
514
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
501
515
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -515,6 +529,21 @@ module OCI
515
529
  # rubocop:enable Style/ConditionalAssignment
516
530
  end
517
531
 
532
+ # Custom attribute writer method checking allowed values (enum).
533
+ # @param [Object] lifecycle_state Object to be assigned
534
+ def lifecycle_state=(lifecycle_state)
535
+ # rubocop:disable Style/ConditionalAssignment
536
+ if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
537
+ # rubocop: disable Metrics/LineLength
538
+ OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
539
+ # rubocop: enable Metrics/LineLength
540
+ @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
541
+ else
542
+ @lifecycle_state = lifecycle_state
543
+ end
544
+ # rubocop:enable Style/ConditionalAssignment
545
+ end
546
+
518
547
  # Custom attribute writer method checking allowed values (enum).
519
548
  # @param [Object] disk_redundancy Object to be assigned
520
549
  def disk_redundancy=(disk_redundancy)
@@ -545,21 +574,6 @@ module OCI
545
574
  # rubocop:enable Style/ConditionalAssignment
546
575
  end
547
576
 
548
- # Custom attribute writer method checking allowed values (enum).
549
- # @param [Object] lifecycle_state Object to be assigned
550
- def lifecycle_state=(lifecycle_state)
551
- # rubocop:disable Style/ConditionalAssignment
552
- if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
553
- # rubocop: disable Metrics/LineLength
554
- OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
555
- # rubocop: enable Metrics/LineLength
556
- @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
557
- else
558
- @lifecycle_state = lifecycle_state
559
- end
560
- # rubocop:enable Style/ConditionalAssignment
561
- end
562
-
563
577
  # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
564
578
 
565
579
 
@@ -569,36 +583,37 @@ module OCI
569
583
  return true if equal?(other)
570
584
 
571
585
  self.class == other.class &&
586
+ id == other.id &&
587
+ compartment_id == other.compartment_id &&
588
+ display_name == other.display_name &&
572
589
  availability_domain == other.availability_domain &&
590
+ subnet_id == other.subnet_id &&
573
591
  backup_subnet_id == other.backup_subnet_id &&
574
- cluster_name == other.cluster_name &&
575
- compartment_id == other.compartment_id &&
592
+ shape == other.shape &&
593
+ ssh_public_keys == other.ssh_public_keys &&
594
+ hostname == other.hostname &&
595
+ domain == other.domain &&
596
+ version == other.version &&
576
597
  cpu_core_count == other.cpu_core_count &&
598
+ cluster_name == other.cluster_name &&
577
599
  data_storage_percentage == other.data_storage_percentage &&
578
- data_storage_size_in_gbs == other.data_storage_size_in_gbs &&
579
600
  database_edition == other.database_edition &&
580
- defined_tags == other.defined_tags &&
581
- disk_redundancy == other.disk_redundancy &&
582
- display_name == other.display_name &&
583
- domain == other.domain &&
584
- freeform_tags == other.freeform_tags &&
585
- hostname == other.hostname &&
586
- id == other.id &&
587
601
  last_patch_history_entry_id == other.last_patch_history_entry_id &&
588
- license_model == other.license_model &&
589
- lifecycle_details == other.lifecycle_details &&
590
- lifecycle_state == other.lifecycle_state &&
591
602
  listener_port == other.listener_port &&
592
- node_count == other.node_count &&
593
- reco_storage_size_in_gb == other.reco_storage_size_in_gb &&
594
- scan_dns_record_id == other.scan_dns_record_id &&
595
- scan_ip_ids == other.scan_ip_ids &&
596
- shape == other.shape &&
597
- ssh_public_keys == other.ssh_public_keys &&
598
- subnet_id == other.subnet_id &&
603
+ lifecycle_state == other.lifecycle_state &&
599
604
  time_created == other.time_created &&
600
- version == other.version &&
601
- vip_ids == other.vip_ids
605
+ lifecycle_details == other.lifecycle_details &&
606
+ disk_redundancy == other.disk_redundancy &&
607
+ sparse_diskgroup == other.sparse_diskgroup &&
608
+ scan_ip_ids == other.scan_ip_ids &&
609
+ vip_ids == other.vip_ids &&
610
+ scan_dns_record_id == other.scan_dns_record_id &&
611
+ data_storage_size_in_gbs == other.data_storage_size_in_gbs &&
612
+ reco_storage_size_in_gb == other.reco_storage_size_in_gb &&
613
+ node_count == other.node_count &&
614
+ license_model == other.license_model &&
615
+ freeform_tags == other.freeform_tags &&
616
+ defined_tags == other.defined_tags
602
617
  end
603
618
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
604
619
 
@@ -614,7 +629,7 @@ module OCI
614
629
  # Calculates hash code according to all attributes.
615
630
  # @return [Fixnum] Hash code
616
631
  def hash
617
- [availability_domain, backup_subnet_id, cluster_name, compartment_id, cpu_core_count, data_storage_percentage, data_storage_size_in_gbs, database_edition, defined_tags, disk_redundancy, display_name, domain, freeform_tags, hostname, id, last_patch_history_entry_id, license_model, lifecycle_details, lifecycle_state, listener_port, node_count, reco_storage_size_in_gb, scan_dns_record_id, scan_ip_ids, shape, ssh_public_keys, subnet_id, time_created, version, vip_ids].hash
632
+ [id, compartment_id, display_name, availability_domain, subnet_id, backup_subnet_id, shape, ssh_public_keys, hostname, domain, version, cpu_core_count, cluster_name, data_storage_percentage, database_edition, last_patch_history_entry_id, listener_port, lifecycle_state, time_created, lifecycle_details, disk_redundancy, sparse_diskgroup, scan_ip_ids, vip_ids, scan_dns_record_id, data_storage_size_in_gbs, reco_storage_size_in_gb, node_count, license_model, freeform_tags, defined_tags].hash
618
633
  end
619
634
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
620
635