Class: OCI::Datacc::Models::UpdateInfrastructureDetails
- Inherits:
-
Object
- Object
- OCI::Datacc::Models::UpdateInfrastructureDetails
- Defined in:
- lib/oci/datacc/models/update_infrastructure_details.rb
Overview
Request to update 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
The IP address for the first control plane server.
-
#cloud_control_plane_server2 ⇒ String
The IP address for the second control plane server.
-
#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
The user-friendly name for the Database Infrastructure.
-
#dns_servers ⇒ Array<String>
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
The gateway for the control plane network.
- #maintenance_window ⇒ OCI::Datacc::Models::MaintenanceWindow
-
#netmask ⇒ String
The netmask for the control plane network.
-
#ntp_servers ⇒ Array<String>
The list of NTP server IP addresses.
-
#shape ⇒ String
The shape of the Database Infrastructure.
-
#system_model ⇒ String
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 = {}) ⇒ UpdateInfrastructureDetails
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 = {}) ⇒ UpdateInfrastructureDetails
Initializes the object
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 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 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 272 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.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.description = attributes[:'description'] if attributes[:'description'] 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'] 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.backup_network_bonding_mode = attributes[:'backupNetworkBondingMode'] if attributes[:'backupNetworkBondingMode'] 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.cps_network_bonding_mode = attributes[:'cpsNetworkBondingMode'] if attributes[:'cpsNetworkBondingMode'] 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.client_network_bonding_interface = attributes[:'clientNetworkBondingInterface'] if attributes[:'clientNetworkBondingInterface'] 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.backup_network_bonding_interface = attributes[:'backupNetworkBondingInterface'] if attributes[:'backupNetworkBondingInterface'] 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.cps_network_bonding_interface = attributes[:'cpsNetworkBondingInterface'] if attributes[:'cpsNetworkBondingInterface'] 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.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[:'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'] 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'] 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.
148 149 150 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 148 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.
103 104 105 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 103 def admin_networkcidr @admin_networkcidr end |
#backup_network_bonding_interface ⇒ String
The network bonding interface for backup network for the Database Infrastructure.
139 140 141 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 139 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.
127 128 129 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 127 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.
135 136 137 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 135 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.
123 124 125 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 123 def client_network_bonding_mode @client_network_bonding_mode end |
#cloud_control_plane_server1 ⇒ String
The IP address for the first control plane server.
87 88 89 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 87 def cloud_control_plane_server1 @cloud_control_plane_server1 end |
#cloud_control_plane_server2 ⇒ String
The IP address for the second control plane server.
91 92 93 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 91 def cloud_control_plane_server2 @cloud_control_plane_server2 end |
#contacts ⇒ Array<OCI::Datacc::Models::InfrastructureContact>
The list of contacts for the Database Infrastructure.
111 112 113 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 111 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.
154 155 156 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 154 def corporate_proxy @corporate_proxy end |
#cps_network_bonding_interface ⇒ String
The network bonding interface for CPS network for the Database Infrastructure.
143 144 145 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 143 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.
131 132 133 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 131 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
107 108 109 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 107 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\"}}
167 168 169 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 167 def @defined_tags end |
#description ⇒ String
Database Infrastructure description.
73 74 75 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 73 def description @description end |
#display_name ⇒ String
The user-friendly name for the Database Infrastructure. The name does not need to be unique.
69 70 71 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 69 def display_name @display_name end |
#dns_servers ⇒ Array<String>
The list of DNS server IP addresses. Maximum of 3 allowed.
115 116 117 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 115 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/update_infrastructure_details.rb', line 173 def @freeform_tags end |
#gateway ⇒ String
The gateway for the control plane network.
99 100 101 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 99 def gateway @gateway end |
#maintenance_window ⇒ OCI::Datacc::Models::MaintenanceWindow
161 162 163 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 161 def maintenance_window @maintenance_window end |
#netmask ⇒ String
The netmask for the control plane network.
95 96 97 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 95 def netmask @netmask end |
#ntp_servers ⇒ Array<String>
The list of NTP server IP addresses. Maximum of 3 allowed.
119 120 121 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 119 def ntp_servers @ntp_servers end |
#shape ⇒ String
The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance.
83 84 85 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 83 def shape @shape end |
#system_model ⇒ String
Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used.
78 79 80 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 78 def system_model @system_model end |
#vlan_id ⇒ String
The CPS network VLAN ID.
158 159 160 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 158 def vlan_id @vlan_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 176 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'display_name': :'displayName', 'description': :'description', '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', 'defined_tags': :'definedTags', 'freeform_tags': :'freeformTags' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 209 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'display_name': :'String', 'description': :'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', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'freeform_tags': :'Hash<String, String>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 482 def ==(other) return true if equal?(other) self.class == other.class && display_name == other.display_name && description == other.description && 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
536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 536 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
516 517 518 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 516 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
525 526 527 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 525 def hash [display_name, description, 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
569 570 571 572 573 574 575 576 577 578 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 569 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
563 564 565 |
# File 'lib/oci/datacc/models/update_infrastructure_details.rb', line 563 def to_s to_hash.to_s end |