NatV4NatRule¶
-
class
oci.network_firewall.models.
NatV4NatRule
(**kwargs)¶ Bases:
oci.network_firewall.models.nat_rule.NatRule
A Nat Rule is used to define to which traffic NAT should be applied by the firewall.
Attributes
ACTION_DIPP_SRC_NAT
A constant which can be used with the action property of a NatV4NatRule. TYPE_NATV4
str(object=’’) -> str action
[Required] Gets the action of this NatV4NatRule. condition
[Required] Gets the condition of this NatV4NatRule. description
Gets the description of this NatRule. name
[Required] Gets the name of this NatRule. parent_resource_id
[Required] Gets the parent_resource_id of this NatRule. position
Gets the position of this NatRule. priority_order
Gets the priority_order of this NatRule. type
[Required] Gets the type of this NatRule. Methods
__init__
(**kwargs)Initializes a new NatV4NatRule object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
ACTION_DIPP_SRC_NAT
= 'DIPP_SRC_NAT'¶ A constant which can be used with the action property of a NatV4NatRule. This constant has a value of “DIPP_SRC_NAT”
-
TYPE_NATV4
= 'NATV4'¶
-
__init__
(**kwargs)¶ Initializes a new NatV4NatRule object with values from keyword arguments. The default value of the
type
attribute of this class isNATV4
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - name (str) – The value to assign to the name property of this NatV4NatRule.
- type (str) – The value to assign to the type property of this NatV4NatRule. Allowed values for this property are: “NATV4”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- description (str) – The value to assign to the description property of this NatV4NatRule.
- priority_order (int) – The value to assign to the priority_order property of this NatV4NatRule.
- position (oci.network_firewall.models.RulePosition) – The value to assign to the position property of this NatV4NatRule.
- parent_resource_id (str) – The value to assign to the parent_resource_id property of this NatV4NatRule.
- condition (oci.network_firewall.models.NatRuleMatchCriteria) – The value to assign to the condition property of this NatV4NatRule.
- action (str) – The value to assign to the action property of this NatV4NatRule. Allowed values for this property are: “DIPP_SRC_NAT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
action
¶ [Required] Gets the action of this NatV4NatRule. action:
- DIPP_SRC_NAT - Dynamic-ip-port source NAT.
Allowed values for this property are: “DIPP_SRC_NAT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The action of this NatV4NatRule. Return type: str
-
condition
¶ [Required] Gets the condition of this NatV4NatRule.
Returns: The condition of this NatV4NatRule. Return type: oci.network_firewall.models.NatRuleMatchCriteria
-
description
¶ Gets the description of this NatRule. Description of a NAT rule. This field can be used to add additional info.
Returns: The description of this NatRule. Return type: str
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
name
¶ [Required] Gets the name of this NatRule. Name for the NAT rule, must be unique within the policy.
Returns: The name of this NatRule. Return type: str
-
parent_resource_id
¶ [Required] Gets the parent_resource_id of this NatRule. OCID of the Network Firewall Policy this decryption profile belongs to.
Returns: The parent_resource_id of this NatRule. Return type: str
-
position
¶ Gets the position of this NatRule.
Returns: The position of this NatRule. Return type: oci.network_firewall.models.RulePosition
-
priority_order
¶ Gets the priority_order of this NatRule. The priority order in which this rule should be evaluated
Returns: The priority_order of this NatRule. Return type: int
-
type
¶ [Required] Gets the type of this NatRule. NAT type:
- NATV4 - NATV4 type NAT.
Allowed values for this property are: “NATV4”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The type of this NatRule. Return type: str
-