PortInformation

class oci.key_management.models.PortInformation(**kwargs)

Bases: object

Details of a single portInformation item include the PortNumber (an integer used as an identifier) and the PortType (this refers to either an enum value of Management Utility, Client Utility, or null)

Attributes

PORT_TYPE_CLIENTUTILITY A constant which can be used with the port_type property of a PortInformation.
PORT_TYPE_MANAGEMENTUTILITY A constant which can be used with the port_type property of a PortInformation.
port_number [Required] Gets the port_number of this PortInformation.
port_type [Required] Gets the port_type of this PortInformation.

Methods

__init__(**kwargs) Initializes a new PortInformation object with values from keyword arguments.
PORT_TYPE_CLIENTUTILITY = 'CLIENTUTILITY'

A constant which can be used with the port_type property of a PortInformation. This constant has a value of “CLIENTUTILITY”

PORT_TYPE_MANAGEMENTUTILITY = 'MANAGEMENTUTILITY'

A constant which can be used with the port_type property of a PortInformation. This constant has a value of “MANAGEMENTUTILITY”

__init__(**kwargs)

Initializes a new PortInformation object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • port_number (int) – The value to assign to the port_number property of this PortInformation.
  • port_type (str) – The value to assign to the port_type property of this PortInformation. Allowed values for this property are: “CLIENTUTILITY”, “MANAGEMENTUTILITY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
port_number

[Required] Gets the port_number of this PortInformation. The port number is a unique identifier which is typically used as the loadbalancer listener.

Returns:The port_number of this PortInformation.
Return type:int
port_type

[Required] Gets the port_type of this PortInformation. Port type associated for the port number. The two port type enums are CLIENTUTILITY and MANAGEMENTUTILITY. The CLIENTUTILITY enum corresponds to a port which is used by the client daemon. The MANAGEMENTUTILITY enum corresponds to a port used by user management utility.

Allowed values for this property are: “CLIENTUTILITY”, “MANAGEMENTUTILITY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The port_type of this PortInformation.
Return type:str