Class: OCI::Datacc::Models::CreateInfrastructureDetails
- Inherits:
-
Object
- Object
- OCI::Datacc::Models::CreateInfrastructureDetails
- Defined in:
- lib/oci/datacc/models/create_infrastructure_details.rb
Overview
Request to create Database Infrastructure resource.
Constant Summary collapse
- SYSTEM_MODEL_ENUM =
[ SYSTEM_MODEL_X11_HA_768 = 'X11_HA_768'.freeze, SYSTEM_MODEL_X10_HA_512 = 'X10_HA_512'.freeze, SYSTEM_MODEL_X8_HA_384 = 'X8_HA_384'.freeze ].freeze
- SHAPE_ENUM =
[ SHAPE_SIX_SSDS = 'SIX_SSDS'.freeze, SHAPE_TWELVE_SSDS = 'TWELVE_SSDS'.freeze, SHAPE_EIGHTEEN_SSDS = 'EIGHTEEN_SSDS'.freeze, SHAPE_TWENTY_FOUR_SSDS = 'TWENTY_FOUR_SSDS'.freeze ].freeze
- CLIENT_NETWORK_BONDING_MODE_ENUM =
[ CLIENT_NETWORK_BONDING_MODE_ACTIVE_BACKUP = 'ACTIVE_BACKUP'.freeze, CLIENT_NETWORK_BONDING_MODE_LACP = 'LACP'.freeze ].freeze
- BACKUP_NETWORK_BONDING_MODE_ENUM =
[ BACKUP_NETWORK_BONDING_MODE_ACTIVE_BACKUP = 'ACTIVE_BACKUP'.freeze, BACKUP_NETWORK_BONDING_MODE_LACP = 'LACP'.freeze ].freeze
- CPS_NETWORK_BONDING_MODE_ENUM =
[ CPS_NETWORK_BONDING_MODE_ACTIVE_BACKUP = 'ACTIVE_BACKUP'.freeze, CPS_NETWORK_BONDING_MODE_LACP = 'LACP'.freeze ].freeze
- CLIENT_NETWORK_BONDING_INTERFACE_ENUM =
[ CLIENT_NETWORK_BONDING_INTERFACE_BTBOND1 = 'BTBOND1'.freeze, CLIENT_NETWORK_BONDING_INTERFACE_BTBOND2 = 'BTBOND2'.freeze, CLIENT_NETWORK_BONDING_INTERFACE_BTBOND3 = 'BTBOND3'.freeze, CLIENT_NETWORK_BONDING_INTERFACE_BTBOND4 = 'BTBOND4'.freeze, CLIENT_NETWORK_BONDING_INTERFACE_BTBOND5 = 'BTBOND5'.freeze, CLIENT_NETWORK_BONDING_INTERFACE_BTBOND6 = 'BTBOND6'.freeze ].freeze
- BACKUP_NETWORK_BONDING_INTERFACE_ENUM =
[ BACKUP_NETWORK_BONDING_INTERFACE_BTBOND1 = 'BTBOND1'.freeze, BACKUP_NETWORK_BONDING_INTERFACE_BTBOND2 = 'BTBOND2'.freeze, BACKUP_NETWORK_BONDING_INTERFACE_BTBOND3 = 'BTBOND3'.freeze, BACKUP_NETWORK_BONDING_INTERFACE_BTBOND4 = 'BTBOND4'.freeze, BACKUP_NETWORK_BONDING_INTERFACE_BTBOND5 = 'BTBOND5'.freeze, BACKUP_NETWORK_BONDING_INTERFACE_BTBOND6 = 'BTBOND6'.freeze ].freeze
- CPS_NETWORK_BONDING_INTERFACE_ENUM =
[ CPS_NETWORK_BONDING_INTERFACE_BTBOND1 = 'BTBOND1'.freeze, CPS_NETWORK_BONDING_INTERFACE_BTBOND2 = 'BTBOND2'.freeze, CPS_NETWORK_BONDING_INTERFACE_BTBOND3 = 'BTBOND3'.freeze, CPS_NETWORK_BONDING_INTERFACE_BTBOND4 = 'BTBOND4'.freeze, CPS_NETWORK_BONDING_INTERFACE_BTBOND5 = 'BTBOND5'.freeze, CPS_NETWORK_BONDING_INTERFACE_BTBOND6 = 'BTBOND6'.freeze ].freeze
Instance Attribute Summary collapse
-
#acfs_file_system_storage_in_gbs ⇒ Float
The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs.
-
#admin_networkcidr ⇒ String
The CIDR block for the system network.
-
#backup_network_bonding_interface ⇒ String
The network bonding interface for backup network for the Database Infrastructure.
-
#backup_network_bonding_mode ⇒ String
The network bonding mode for Backup networks for the Database Infrastructure.
-
#client_network_bonding_interface ⇒ String
The network bonding interface for client network for the Database Infrastructure.
-
#client_network_bonding_mode ⇒ String
The network bonding mode for Client networks for the Database Infrastructure.
-
#cloud_control_plane_server1 ⇒ String
[Required] The IP address for the first control plane server.
-
#cloud_control_plane_server2 ⇒ String
[Required] The IP address for the second control plane server.
-
#compartment_id ⇒ String
[Required] The OCID of the compartment.
-
#contacts ⇒ Array<OCI::Datacc::Models::InfrastructureContact>
The list of contacts for the Database Infrastructure.
-
#corporate_proxy ⇒ String
The corporate network proxy for access to the control plane network.
-
#cps_network_bonding_interface ⇒ String
The network bonding interface for CPS network for the Database Infrastructure.
-
#cps_network_bonding_mode ⇒ String
The network bonding mode for CPS networks for the Database Infrastructure.
-
#data_disk_percentage ⇒ Integer
Percentage of disk space assigned for DATA disk group.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#description ⇒ String
Database Infrastructure description.
-
#display_name ⇒ String
[Required] The user-friendly name for the Database Infrastructure.
-
#dns_servers ⇒ Array<String>
[Required] The list of DNS server IP addresses.
-
#freeform_tags ⇒ Hash<String, String>
Simple key-value pair that is applied without any predefined name, type or scope.
-
#gateway ⇒ String
[Required] The gateway for the control plane network.
- #maintenance_window ⇒ OCI::Datacc::Models::MaintenanceWindow
-
#netmask ⇒ String
[Required] The netmask for the control plane network.
-
#ntp_servers ⇒ Array<String>
[Required] The list of NTP server IP addresses.
-
#shape ⇒ String
[Required] The shape of the Database Infrastructure.
-
#system_model ⇒ String
[Required] Database Infrastructure System Model specification.
-
#vlan_id ⇒ String
The CPS network VLAN ID.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ CreateInfrastructureDetails
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ CreateInfrastructureDetails
Initializes the object
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 281 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.description = attributes[:'description'] if attributes[:'description'] 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.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.system_model = attributes[:'systemModel'] if attributes[:'systemModel'] raise 'You cannot provide both :systemModel and :system_model' if attributes.key?(:'systemModel') && attributes.key?(:'system_model') self.system_model = attributes[:'system_model'] if attributes[:'system_model'] self.shape = attributes[:'shape'] if attributes[:'shape'] self.cloud_control_plane_server1 = attributes[:'cloudControlPlaneServer1'] if attributes[:'cloudControlPlaneServer1'] raise 'You cannot provide both :cloudControlPlaneServer1 and :cloud_control_plane_server1' if attributes.key?(:'cloudControlPlaneServer1') && attributes.key?(:'cloud_control_plane_server1') self.cloud_control_plane_server1 = attributes[:'cloud_control_plane_server1'] if attributes[:'cloud_control_plane_server1'] self.cloud_control_plane_server2 = attributes[:'cloudControlPlaneServer2'] if attributes[:'cloudControlPlaneServer2'] raise 'You cannot provide both :cloudControlPlaneServer2 and :cloud_control_plane_server2' if attributes.key?(:'cloudControlPlaneServer2') && attributes.key?(:'cloud_control_plane_server2') self.cloud_control_plane_server2 = attributes[:'cloud_control_plane_server2'] if attributes[:'cloud_control_plane_server2'] self.netmask = attributes[:'netmask'] if attributes[:'netmask'] self.gateway = attributes[:'gateway'] if attributes[:'gateway'] self.admin_networkcidr = attributes[:'adminNetworkcidr'] if attributes[:'adminNetworkcidr'] raise 'You cannot provide both :adminNetworkcidr and :admin_networkcidr' if attributes.key?(:'adminNetworkcidr') && attributes.key?(:'admin_networkcidr') self.admin_networkcidr = attributes[:'admin_networkcidr'] if attributes[:'admin_networkcidr'] self.data_disk_percentage = attributes[:'dataDiskPercentage'] if attributes[:'dataDiskPercentage'] raise 'You cannot provide both :dataDiskPercentage and :data_disk_percentage' if attributes.key?(:'dataDiskPercentage') && attributes.key?(:'data_disk_percentage') self.data_disk_percentage = attributes[:'data_disk_percentage'] if attributes[:'data_disk_percentage'] self.contacts = attributes[:'contacts'] if attributes[:'contacts'] self.dns_servers = attributes[:'dnsServers'] if attributes[:'dnsServers'] raise 'You cannot provide both :dnsServers and :dns_servers' if attributes.key?(:'dnsServers') && attributes.key?(:'dns_servers') self.dns_servers = attributes[:'dns_servers'] if attributes[:'dns_servers'] self.ntp_servers = attributes[:'ntpServers'] if attributes[:'ntpServers'] raise 'You cannot provide both :ntpServers and :ntp_servers' if attributes.key?(:'ntpServers') && attributes.key?(:'ntp_servers') self.ntp_servers = attributes[:'ntp_servers'] if attributes[:'ntp_servers'] self.client_network_bonding_mode = attributes[:'clientNetworkBondingMode'] if attributes[:'clientNetworkBondingMode'] self.client_network_bonding_mode = "ACTIVE_BACKUP" if client_network_bonding_mode.nil? && !attributes.key?(:'clientNetworkBondingMode') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :clientNetworkBondingMode and :client_network_bonding_mode' if attributes.key?(:'clientNetworkBondingMode') && attributes.key?(:'client_network_bonding_mode') self.client_network_bonding_mode = attributes[:'client_network_bonding_mode'] if attributes[:'client_network_bonding_mode'] self.client_network_bonding_mode = "ACTIVE_BACKUP" if client_network_bonding_mode.nil? && !attributes.key?(:'clientNetworkBondingMode') && !attributes.key?(:'client_network_bonding_mode') # rubocop:disable Style/StringLiterals self.backup_network_bonding_mode = attributes[:'backupNetworkBondingMode'] if attributes[:'backupNetworkBondingMode'] self.backup_network_bonding_mode = "ACTIVE_BACKUP" if backup_network_bonding_mode.nil? && !attributes.key?(:'backupNetworkBondingMode') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :backupNetworkBondingMode and :backup_network_bonding_mode' if attributes.key?(:'backupNetworkBondingMode') && attributes.key?(:'backup_network_bonding_mode') self.backup_network_bonding_mode = attributes[:'backup_network_bonding_mode'] if attributes[:'backup_network_bonding_mode'] self.backup_network_bonding_mode = "ACTIVE_BACKUP" if backup_network_bonding_mode.nil? && !attributes.key?(:'backupNetworkBondingMode') && !attributes.key?(:'backup_network_bonding_mode') # rubocop:disable Style/StringLiterals self.cps_network_bonding_mode = attributes[:'cpsNetworkBondingMode'] if attributes[:'cpsNetworkBondingMode'] self.cps_network_bonding_mode = "ACTIVE_BACKUP" if cps_network_bonding_mode.nil? && !attributes.key?(:'cpsNetworkBondingMode') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :cpsNetworkBondingMode and :cps_network_bonding_mode' if attributes.key?(:'cpsNetworkBondingMode') && attributes.key?(:'cps_network_bonding_mode') self.cps_network_bonding_mode = attributes[:'cps_network_bonding_mode'] if attributes[:'cps_network_bonding_mode'] self.cps_network_bonding_mode = "ACTIVE_BACKUP" if cps_network_bonding_mode.nil? && !attributes.key?(:'cpsNetworkBondingMode') && !attributes.key?(:'cps_network_bonding_mode') # rubocop:disable Style/StringLiterals self.client_network_bonding_interface = attributes[:'clientNetworkBondingInterface'] if attributes[:'clientNetworkBondingInterface'] self.client_network_bonding_interface = "BTBOND3" if client_network_bonding_interface.nil? && !attributes.key?(:'clientNetworkBondingInterface') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :clientNetworkBondingInterface and :client_network_bonding_interface' if attributes.key?(:'clientNetworkBondingInterface') && attributes.key?(:'client_network_bonding_interface') self.client_network_bonding_interface = attributes[:'client_network_bonding_interface'] if attributes[:'client_network_bonding_interface'] self.client_network_bonding_interface = "BTBOND3" if client_network_bonding_interface.nil? && !attributes.key?(:'clientNetworkBondingInterface') && !attributes.key?(:'client_network_bonding_interface') # rubocop:disable Style/StringLiterals self.backup_network_bonding_interface = attributes[:'backupNetworkBondingInterface'] if attributes[:'backupNetworkBondingInterface'] self.backup_network_bonding_interface = "BTBOND5" if backup_network_bonding_interface.nil? && !attributes.key?(:'backupNetworkBondingInterface') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :backupNetworkBondingInterface and :backup_network_bonding_interface' if attributes.key?(:'backupNetworkBondingInterface') && attributes.key?(:'backup_network_bonding_interface') self.backup_network_bonding_interface = attributes[:'backup_network_bonding_interface'] if attributes[:'backup_network_bonding_interface'] self.backup_network_bonding_interface = "BTBOND5" if backup_network_bonding_interface.nil? && !attributes.key?(:'backupNetworkBondingInterface') && !attributes.key?(:'backup_network_bonding_interface') # rubocop:disable Style/StringLiterals self.cps_network_bonding_interface = attributes[:'cpsNetworkBondingInterface'] if attributes[:'cpsNetworkBondingInterface'] self.cps_network_bonding_interface = "BTBOND1" if cps_network_bonding_interface.nil? && !attributes.key?(:'cpsNetworkBondingInterface') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :cpsNetworkBondingInterface and :cps_network_bonding_interface' if attributes.key?(:'cpsNetworkBondingInterface') && attributes.key?(:'cps_network_bonding_interface') self.cps_network_bonding_interface = attributes[:'cps_network_bonding_interface'] if attributes[:'cps_network_bonding_interface'] self.cps_network_bonding_interface = "BTBOND1" if cps_network_bonding_interface.nil? && !attributes.key?(:'cpsNetworkBondingInterface') && !attributes.key?(:'cps_network_bonding_interface') # rubocop:disable Style/StringLiterals self.acfs_file_system_storage_in_gbs = attributes[:'acfsFileSystemStorageInGbs'] if attributes[:'acfsFileSystemStorageInGbs'] self.acfs_file_system_storage_in_gbs = 4704.0 if acfs_file_system_storage_in_gbs.nil? && !attributes.key?(:'acfsFileSystemStorageInGbs') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :acfsFileSystemStorageInGbs and :acfs_file_system_storage_in_gbs' if attributes.key?(:'acfsFileSystemStorageInGbs') && attributes.key?(:'acfs_file_system_storage_in_gbs') self.acfs_file_system_storage_in_gbs = attributes[:'acfs_file_system_storage_in_gbs'] if attributes[:'acfs_file_system_storage_in_gbs'] self.acfs_file_system_storage_in_gbs = 4704.0 if acfs_file_system_storage_in_gbs.nil? && !attributes.key?(:'acfsFileSystemStorageInGbs') && !attributes.key?(:'acfs_file_system_storage_in_gbs') # rubocop:disable Style/StringLiterals self.corporate_proxy = attributes[:'corporateProxy'] if attributes[:'corporateProxy'] raise 'You cannot provide both :corporateProxy and :corporate_proxy' if attributes.key?(:'corporateProxy') && attributes.key?(:'corporate_proxy') self.corporate_proxy = attributes[:'corporate_proxy'] if attributes[:'corporate_proxy'] self.vlan_id = attributes[:'vlanId'] if attributes[:'vlanId'] raise 'You cannot provide both :vlanId and :vlan_id' if attributes.key?(:'vlanId') && attributes.key?(:'vlan_id') self.vlan_id = attributes[:'vlan_id'] if attributes[:'vlan_id'] self.maintenance_window = attributes[:'maintenanceWindow'] if attributes[:'maintenanceWindow'] raise 'You cannot provide both :maintenanceWindow and :maintenance_window' if attributes.key?(:'maintenanceWindow') && attributes.key?(:'maintenance_window') self.maintenance_window = attributes[:'maintenance_window'] if attributes[:'maintenance_window'] self. = attributes[:'freeformTags'] if attributes[:'freeformTags'] raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags') self. = attributes[:'freeform_tags'] if attributes[:'freeform_tags'] self. = attributes[:'definedTags'] if attributes[:'definedTags'] raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags') self. = attributes[:'defined_tags'] if attributes[:'defined_tags'] end |
Instance Attribute Details
#acfs_file_system_storage_in_gbs ⇒ Float
The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs.
154 155 156 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 154 def acfs_file_system_storage_in_gbs @acfs_file_system_storage_in_gbs end |
#admin_networkcidr ⇒ String
The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components.
109 110 111 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 109 def admin_networkcidr @admin_networkcidr end |
#backup_network_bonding_interface ⇒ String
The network bonding interface for backup network for the Database Infrastructure.
145 146 147 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 145 def backup_network_bonding_interface @backup_network_bonding_interface end |
#backup_network_bonding_mode ⇒ String
The network bonding mode for Backup networks for the Database Infrastructure.
133 134 135 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 133 def backup_network_bonding_mode @backup_network_bonding_mode end |
#client_network_bonding_interface ⇒ String
The network bonding interface for client network for the Database Infrastructure.
141 142 143 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 141 def client_network_bonding_interface @client_network_bonding_interface end |
#client_network_bonding_mode ⇒ String
The network bonding mode for Client networks for the Database Infrastructure.
129 130 131 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 129 def client_network_bonding_mode @client_network_bonding_mode end |
#cloud_control_plane_server1 ⇒ String
[Required] The IP address for the first control plane server.
93 94 95 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 93 def cloud_control_plane_server1 @cloud_control_plane_server1 end |
#cloud_control_plane_server2 ⇒ String
[Required] The IP address for the second control plane server.
97 98 99 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 97 def cloud_control_plane_server2 @cloud_control_plane_server2 end |
#compartment_id ⇒ String
[Required] The OCID of the compartment.
74 75 76 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 74 def compartment_id @compartment_id end |
#contacts ⇒ Array<OCI::Datacc::Models::InfrastructureContact>
The list of contacts for the Database Infrastructure.
117 118 119 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 117 def contacts @contacts end |
#corporate_proxy ⇒ String
The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible for enhanced security.
160 161 162 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 160 def corporate_proxy @corporate_proxy end |
#cps_network_bonding_interface ⇒ String
The network bonding interface for CPS network for the Database Infrastructure.
149 150 151 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 149 def cps_network_bonding_interface @cps_network_bonding_interface end |
#cps_network_bonding_mode ⇒ String
The network bonding mode for CPS networks for the Database Infrastructure.
137 138 139 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 137 def cps_network_bonding_mode @cps_network_bonding_mode end |
#data_disk_percentage ⇒ Integer
Percentage of disk space assigned for DATA disk group. Remaining disk space will get assiged to RECO disk group
113 114 115 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 113 def data_disk_percentage @data_disk_percentage end |
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {\"foo-namespace\": {\"bar-key\": \"value\"}}
179 180 181 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 179 def @defined_tags end |
#description ⇒ String
Database Infrastructure description.
69 70 71 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 69 def description @description end |
#display_name ⇒ String
[Required] The user-friendly name for the Database Infrastructure. The name does not need to be unique.
79 80 81 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 79 def display_name @display_name end |
#dns_servers ⇒ Array<String>
[Required] The list of DNS server IP addresses. Maximum of 3 allowed.
121 122 123 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 121 def dns_servers @dns_servers end |
#freeform_tags ⇒ Hash<String, String>
Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {\"bar-key\": \"value\"}
173 174 175 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 173 def @freeform_tags end |
#gateway ⇒ String
[Required] The gateway for the control plane network.
105 106 107 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 105 def gateway @gateway end |
#maintenance_window ⇒ OCI::Datacc::Models::MaintenanceWindow
167 168 169 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 167 def maintenance_window @maintenance_window end |
#netmask ⇒ String
[Required] The netmask for the control plane network.
101 102 103 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 101 def netmask @netmask end |
#ntp_servers ⇒ Array<String>
[Required] The list of NTP server IP addresses. Maximum of 3 allowed.
125 126 127 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 125 def ntp_servers @ntp_servers end |
#shape ⇒ String
[Required] The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance.
89 90 91 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 89 def shape @shape end |
#system_model ⇒ String
[Required] Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used.
84 85 86 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 84 def system_model @system_model end |
#vlan_id ⇒ String
The CPS network VLAN ID.
164 165 166 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 164 def vlan_id @vlan_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 182 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'description': :'description', 'compartment_id': :'compartmentId', 'display_name': :'displayName', 'system_model': :'systemModel', 'shape': :'shape', 'cloud_control_plane_server1': :'cloudControlPlaneServer1', 'cloud_control_plane_server2': :'cloudControlPlaneServer2', 'netmask': :'netmask', 'gateway': :'gateway', 'admin_networkcidr': :'adminNetworkcidr', 'data_disk_percentage': :'dataDiskPercentage', 'contacts': :'contacts', 'dns_servers': :'dnsServers', 'ntp_servers': :'ntpServers', 'client_network_bonding_mode': :'clientNetworkBondingMode', 'backup_network_bonding_mode': :'backupNetworkBondingMode', 'cps_network_bonding_mode': :'cpsNetworkBondingMode', 'client_network_bonding_interface': :'clientNetworkBondingInterface', 'backup_network_bonding_interface': :'backupNetworkBondingInterface', 'cps_network_bonding_interface': :'cpsNetworkBondingInterface', 'acfs_file_system_storage_in_gbs': :'acfsFileSystemStorageInGbs', 'corporate_proxy': :'corporateProxy', 'vlan_id': :'vlanId', 'maintenance_window': :'maintenanceWindow', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 216 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'description': :'String', 'compartment_id': :'String', 'display_name': :'String', 'system_model': :'String', 'shape': :'String', 'cloud_control_plane_server1': :'String', 'cloud_control_plane_server2': :'String', 'netmask': :'String', 'gateway': :'String', 'admin_networkcidr': :'String', 'data_disk_percentage': :'Integer', 'contacts': :'Array<OCI::Datacc::Models::InfrastructureContact>', 'dns_servers': :'Array<String>', 'ntp_servers': :'Array<String>', 'client_network_bonding_mode': :'String', 'backup_network_bonding_mode': :'String', 'cps_network_bonding_mode': :'String', 'client_network_bonding_interface': :'String', 'backup_network_bonding_interface': :'String', 'cps_network_bonding_interface': :'String', 'acfs_file_system_storage_in_gbs': :'Float', 'corporate_proxy': :'String', 'vlan_id': :'String', 'maintenance_window': :'OCI::Datacc::Models::MaintenanceWindow', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 509 def ==(other) return true if equal?(other) self.class == other.class && description == other.description && compartment_id == other.compartment_id && display_name == other.display_name && system_model == other.system_model && shape == other.shape && cloud_control_plane_server1 == other.cloud_control_plane_server1 && cloud_control_plane_server2 == other.cloud_control_plane_server2 && netmask == other.netmask && gateway == other.gateway && admin_networkcidr == other.admin_networkcidr && data_disk_percentage == other.data_disk_percentage && contacts == other.contacts && dns_servers == other.dns_servers && ntp_servers == other.ntp_servers && client_network_bonding_mode == other.client_network_bonding_mode && backup_network_bonding_mode == other.backup_network_bonding_mode && cps_network_bonding_mode == other.cps_network_bonding_mode && client_network_bonding_interface == other.client_network_bonding_interface && backup_network_bonding_interface == other.backup_network_bonding_interface && cps_network_bonding_interface == other.cps_network_bonding_interface && acfs_file_system_storage_in_gbs == other.acfs_file_system_storage_in_gbs && corporate_proxy == other.corporate_proxy && vlan_id == other.vlan_id && maintenance_window == other.maintenance_window && == other. && == other. end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 564 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
544 545 546 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 544 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
553 554 555 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 553 def hash [description, compartment_id, display_name, system_model, shape, cloud_control_plane_server1, cloud_control_plane_server2, netmask, gateway, admin_networkcidr, data_disk_percentage, contacts, dns_servers, ntp_servers, client_network_bonding_mode, backup_network_bonding_mode, cps_network_bonding_mode, client_network_bonding_interface, backup_network_bonding_interface, cps_network_bonding_interface, acfs_file_system_storage_in_gbs, corporate_proxy, vlan_id, maintenance_window, , ].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
597 598 599 600 601 602 603 604 605 606 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 597 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
591 592 593 |
# File 'lib/oci/datacc/models/create_infrastructure_details.rb', line 591 def to_s to_hash.to_s end |