OciNetworkSubnet¶
-
class
oci.multicloud.models.
OciNetworkSubnet
(**kwargs)¶ Bases:
object
Oracle Cloud Infrastructure network subnet object.
Attributes
TYPE_BACKUP
A constant which can be used with the type property of a OciNetworkSubnet. TYPE_CLIENT
A constant which can be used with the type property of a OciNetworkSubnet. label
Gets the label of this OciNetworkSubnet. subnet_id
Gets the subnet_id of this OciNetworkSubnet. type
[Required] Gets the type of this OciNetworkSubnet. Methods
__init__
(**kwargs)Initializes a new OciNetworkSubnet object with values from keyword arguments. -
TYPE_BACKUP
= 'BACKUP'¶ A constant which can be used with the type property of a OciNetworkSubnet. This constant has a value of “BACKUP”
-
TYPE_CLIENT
= 'CLIENT'¶ A constant which can be used with the type property of a OciNetworkSubnet. This constant has a value of “CLIENT”
-
__init__
(**kwargs)¶ Initializes a new OciNetworkSubnet object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - type (str) – The value to assign to the type property of this OciNetworkSubnet. Allowed values for this property are: “CLIENT”, “BACKUP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- subnet_id (str) – The value to assign to the subnet_id property of this OciNetworkSubnet.
- label (str) – The value to assign to the label property of this OciNetworkSubnet.
-
label
¶ Gets the label of this OciNetworkSubnet. Subnet label. CSP can set this property
Returns: The label of this OciNetworkSubnet. Return type: str
-
subnet_id
¶ Gets the subnet_id of this OciNetworkSubnet. OCID for existing the subnet. CSP can not set this property.
Returns: The subnet_id of this OciNetworkSubnet. Return type: str
-
type
¶ [Required] Gets the type of this OciNetworkSubnet. Defines if the subnet is the primary or backup for the network
Allowed values for this property are: “CLIENT”, “BACKUP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The type of this OciNetworkSubnet. Return type: str
-