File: //lib/mysqlsh/lib/python3.8/site-packages/oci/mngdmac/models/create_node_config_details.py
# coding: utf-8
# Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20250320
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
from oci.decorators import init_model_state_from_kwargs
@init_model_state_from_kwargs
class CreateNodeConfigDetails(object):
"""
The data to create a new NodeConfig.
"""
def __init__(self, **kwargs):
"""
Initializes a new CreateNodeConfigDetails object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param serial_number:
The value to assign to the serial_number property of this CreateNodeConfigDetails.
:type serial_number: str
:param mac_address:
The value to assign to the mac_address property of this CreateNodeConfigDetails.
:type mac_address: str
:param mac_order_id:
The value to assign to the mac_order_id property of this CreateNodeConfigDetails.
:type mac_order_id: str
:param switch_hostname:
The value to assign to the switch_hostname property of this CreateNodeConfigDetails.
:type switch_hostname: str
:param switch_eth_port:
The value to assign to the switch_eth_port property of this CreateNodeConfigDetails.
:type switch_eth_port: str
:param ip_kvm_hostname:
The value to assign to the ip_kvm_hostname property of this CreateNodeConfigDetails.
:type ip_kvm_hostname: str
:param ip_kvm_port_number:
The value to assign to the ip_kvm_port_number property of this CreateNodeConfigDetails.
:type ip_kvm_port_number: int
:param pdu_hostname:
The value to assign to the pdu_hostname property of this CreateNodeConfigDetails.
:type pdu_hostname: str
:param pdu_port:
The value to assign to the pdu_port property of this CreateNodeConfigDetails.
:type pdu_port: int
:param build_vlan_id:
The value to assign to the build_vlan_id property of this CreateNodeConfigDetails.
:type build_vlan_id: int
:param build_ip_address:
The value to assign to the build_ip_address property of this CreateNodeConfigDetails.
:type build_ip_address: str
:param prod_vlan_id:
The value to assign to the prod_vlan_id property of this CreateNodeConfigDetails.
:type prod_vlan_id: int
:param prod_ip_address:
The value to assign to the prod_ip_address property of this CreateNodeConfigDetails.
:type prod_ip_address: str
:param rack_location:
The value to assign to the rack_location property of this CreateNodeConfigDetails.
:type rack_location: str
:param chip_set:
The value to assign to the chip_set property of this CreateNodeConfigDetails.
:type chip_set: str
:param os_version:
The value to assign to the os_version property of this CreateNodeConfigDetails.
:type os_version: str
:param tenancy_id:
The value to assign to the tenancy_id property of this CreateNodeConfigDetails.
:type tenancy_id: str
"""
self.swagger_types = {
'serial_number': 'str',
'mac_address': 'str',
'mac_order_id': 'str',
'switch_hostname': 'str',
'switch_eth_port': 'str',
'ip_kvm_hostname': 'str',
'ip_kvm_port_number': 'int',
'pdu_hostname': 'str',
'pdu_port': 'int',
'build_vlan_id': 'int',
'build_ip_address': 'str',
'prod_vlan_id': 'int',
'prod_ip_address': 'str',
'rack_location': 'str',
'chip_set': 'str',
'os_version': 'str',
'tenancy_id': 'str'
}
self.attribute_map = {
'serial_number': 'serialNumber',
'mac_address': 'macAddress',
'mac_order_id': 'macOrderId',
'switch_hostname': 'switchHostname',
'switch_eth_port': 'switchEthPort',
'ip_kvm_hostname': 'ipKvmHostname',
'ip_kvm_port_number': 'ipKvmPortNumber',
'pdu_hostname': 'pduHostname',
'pdu_port': 'pduPort',
'build_vlan_id': 'buildVlanId',
'build_ip_address': 'buildIpAddress',
'prod_vlan_id': 'prodVlanId',
'prod_ip_address': 'prodIpAddress',
'rack_location': 'rackLocation',
'chip_set': 'chipSet',
'os_version': 'osVersion',
'tenancy_id': 'tenancyId'
}
self._serial_number = None
self._mac_address = None
self._mac_order_id = None
self._switch_hostname = None
self._switch_eth_port = None
self._ip_kvm_hostname = None
self._ip_kvm_port_number = None
self._pdu_hostname = None
self._pdu_port = None
self._build_vlan_id = None
self._build_ip_address = None
self._prod_vlan_id = None
self._prod_ip_address = None
self._rack_location = None
self._chip_set = None
self._os_version = None
self._tenancy_id = None
@property
def serial_number(self):
"""
**[Required]** Gets the serial_number of this CreateNodeConfigDetails.
The serial number of the MacDevice.
:return: The serial_number of this CreateNodeConfigDetails.
:rtype: str
"""
return self._serial_number
@serial_number.setter
def serial_number(self, serial_number):
"""
Sets the serial_number of this CreateNodeConfigDetails.
The serial number of the MacDevice.
:param serial_number: The serial_number of this CreateNodeConfigDetails.
:type: str
"""
self._serial_number = serial_number
@property
def mac_address(self):
"""
**[Required]** Gets the mac_address of this CreateNodeConfigDetails.
The macAddress.
:return: The mac_address of this CreateNodeConfigDetails.
:rtype: str
"""
return self._mac_address
@mac_address.setter
def mac_address(self, mac_address):
"""
Sets the mac_address of this CreateNodeConfigDetails.
The macAddress.
:param mac_address: The mac_address of this CreateNodeConfigDetails.
:type: str
"""
self._mac_address = mac_address
@property
def mac_order_id(self):
"""
**[Required]** Gets the mac_order_id of this CreateNodeConfigDetails.
The macOrderId.
:return: The mac_order_id of this CreateNodeConfigDetails.
:rtype: str
"""
return self._mac_order_id
@mac_order_id.setter
def mac_order_id(self, mac_order_id):
"""
Sets the mac_order_id of this CreateNodeConfigDetails.
The macOrderId.
:param mac_order_id: The mac_order_id of this CreateNodeConfigDetails.
:type: str
"""
self._mac_order_id = mac_order_id
@property
def switch_hostname(self):
"""
Gets the switch_hostname of this CreateNodeConfigDetails.
The switchHostname.
:return: The switch_hostname of this CreateNodeConfigDetails.
:rtype: str
"""
return self._switch_hostname
@switch_hostname.setter
def switch_hostname(self, switch_hostname):
"""
Sets the switch_hostname of this CreateNodeConfigDetails.
The switchHostname.
:param switch_hostname: The switch_hostname of this CreateNodeConfigDetails.
:type: str
"""
self._switch_hostname = switch_hostname
@property
def switch_eth_port(self):
"""
Gets the switch_eth_port of this CreateNodeConfigDetails.
The switchEthPort.
:return: The switch_eth_port of this CreateNodeConfigDetails.
:rtype: str
"""
return self._switch_eth_port
@switch_eth_port.setter
def switch_eth_port(self, switch_eth_port):
"""
Sets the switch_eth_port of this CreateNodeConfigDetails.
The switchEthPort.
:param switch_eth_port: The switch_eth_port of this CreateNodeConfigDetails.
:type: str
"""
self._switch_eth_port = switch_eth_port
@property
def ip_kvm_hostname(self):
"""
Gets the ip_kvm_hostname of this CreateNodeConfigDetails.
The ipKvmHostname.
:return: The ip_kvm_hostname of this CreateNodeConfigDetails.
:rtype: str
"""
return self._ip_kvm_hostname
@ip_kvm_hostname.setter
def ip_kvm_hostname(self, ip_kvm_hostname):
"""
Sets the ip_kvm_hostname of this CreateNodeConfigDetails.
The ipKvmHostname.
:param ip_kvm_hostname: The ip_kvm_hostname of this CreateNodeConfigDetails.
:type: str
"""
self._ip_kvm_hostname = ip_kvm_hostname
@property
def ip_kvm_port_number(self):
"""
Gets the ip_kvm_port_number of this CreateNodeConfigDetails.
The ipKvmPortNumber.
:return: The ip_kvm_port_number of this CreateNodeConfigDetails.
:rtype: int
"""
return self._ip_kvm_port_number
@ip_kvm_port_number.setter
def ip_kvm_port_number(self, ip_kvm_port_number):
"""
Sets the ip_kvm_port_number of this CreateNodeConfigDetails.
The ipKvmPortNumber.
:param ip_kvm_port_number: The ip_kvm_port_number of this CreateNodeConfigDetails.
:type: int
"""
self._ip_kvm_port_number = ip_kvm_port_number
@property
def pdu_hostname(self):
"""
Gets the pdu_hostname of this CreateNodeConfigDetails.
The pduHostname.
:return: The pdu_hostname of this CreateNodeConfigDetails.
:rtype: str
"""
return self._pdu_hostname
@pdu_hostname.setter
def pdu_hostname(self, pdu_hostname):
"""
Sets the pdu_hostname of this CreateNodeConfigDetails.
The pduHostname.
:param pdu_hostname: The pdu_hostname of this CreateNodeConfigDetails.
:type: str
"""
self._pdu_hostname = pdu_hostname
@property
def pdu_port(self):
"""
Gets the pdu_port of this CreateNodeConfigDetails.
The pduPort.
:return: The pdu_port of this CreateNodeConfigDetails.
:rtype: int
"""
return self._pdu_port
@pdu_port.setter
def pdu_port(self, pdu_port):
"""
Sets the pdu_port of this CreateNodeConfigDetails.
The pduPort.
:param pdu_port: The pdu_port of this CreateNodeConfigDetails.
:type: int
"""
self._pdu_port = pdu_port
@property
def build_vlan_id(self):
"""
Gets the build_vlan_id of this CreateNodeConfigDetails.
The buildVlanId.
:return: The build_vlan_id of this CreateNodeConfigDetails.
:rtype: int
"""
return self._build_vlan_id
@build_vlan_id.setter
def build_vlan_id(self, build_vlan_id):
"""
Sets the build_vlan_id of this CreateNodeConfigDetails.
The buildVlanId.
:param build_vlan_id: The build_vlan_id of this CreateNodeConfigDetails.
:type: int
"""
self._build_vlan_id = build_vlan_id
@property
def build_ip_address(self):
"""
Gets the build_ip_address of this CreateNodeConfigDetails.
The buildIpAddress.
:return: The build_ip_address of this CreateNodeConfigDetails.
:rtype: str
"""
return self._build_ip_address
@build_ip_address.setter
def build_ip_address(self, build_ip_address):
"""
Sets the build_ip_address of this CreateNodeConfigDetails.
The buildIpAddress.
:param build_ip_address: The build_ip_address of this CreateNodeConfigDetails.
:type: str
"""
self._build_ip_address = build_ip_address
@property
def prod_vlan_id(self):
"""
Gets the prod_vlan_id of this CreateNodeConfigDetails.
The prodVlanId.
:return: The prod_vlan_id of this CreateNodeConfigDetails.
:rtype: int
"""
return self._prod_vlan_id
@prod_vlan_id.setter
def prod_vlan_id(self, prod_vlan_id):
"""
Sets the prod_vlan_id of this CreateNodeConfigDetails.
The prodVlanId.
:param prod_vlan_id: The prod_vlan_id of this CreateNodeConfigDetails.
:type: int
"""
self._prod_vlan_id = prod_vlan_id
@property
def prod_ip_address(self):
"""
Gets the prod_ip_address of this CreateNodeConfigDetails.
The prodIpAddress.
:return: The prod_ip_address of this CreateNodeConfigDetails.
:rtype: str
"""
return self._prod_ip_address
@prod_ip_address.setter
def prod_ip_address(self, prod_ip_address):
"""
Sets the prod_ip_address of this CreateNodeConfigDetails.
The prodIpAddress.
:param prod_ip_address: The prod_ip_address of this CreateNodeConfigDetails.
:type: str
"""
self._prod_ip_address = prod_ip_address
@property
def rack_location(self):
"""
Gets the rack_location of this CreateNodeConfigDetails.
The rackLocation.
:return: The rack_location of this CreateNodeConfigDetails.
:rtype: str
"""
return self._rack_location
@rack_location.setter
def rack_location(self, rack_location):
"""
Sets the rack_location of this CreateNodeConfigDetails.
The rackLocation.
:param rack_location: The rack_location of this CreateNodeConfigDetails.
:type: str
"""
self._rack_location = rack_location
@property
def chip_set(self):
"""
Gets the chip_set of this CreateNodeConfigDetails.
The chipSetn.
:return: The chip_set of this CreateNodeConfigDetails.
:rtype: str
"""
return self._chip_set
@chip_set.setter
def chip_set(self, chip_set):
"""
Sets the chip_set of this CreateNodeConfigDetails.
The chipSetn.
:param chip_set: The chip_set of this CreateNodeConfigDetails.
:type: str
"""
self._chip_set = chip_set
@property
def os_version(self):
"""
Gets the os_version of this CreateNodeConfigDetails.
The osVersion.
:return: The os_version of this CreateNodeConfigDetails.
:rtype: str
"""
return self._os_version
@os_version.setter
def os_version(self, os_version):
"""
Sets the os_version of this CreateNodeConfigDetails.
The osVersion.
:param os_version: The os_version of this CreateNodeConfigDetails.
:type: str
"""
self._os_version = os_version
@property
def tenancy_id(self):
"""
Gets the tenancy_id of this CreateNodeConfigDetails.
The tenancyId.
:return: The tenancy_id of this CreateNodeConfigDetails.
:rtype: str
"""
return self._tenancy_id
@tenancy_id.setter
def tenancy_id(self, tenancy_id):
"""
Sets the tenancy_id of this CreateNodeConfigDetails.
The tenancyId.
:param tenancy_id: The tenancy_id of this CreateNodeConfigDetails.
:type: str
"""
self._tenancy_id = tenancy_id
def __repr__(self):
return formatted_flat_dict(self)
def __eq__(self, other):
if other is None:
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
return not self == other