RoutingPolicy¶
-
class
oci.load_balancer.models.
RoutingPolicy
(**kwargs)¶ Bases:
object
A named ordered list of routing rules that is applied to a listener.
Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.
Attributes
CONDITION_LANGUAGE_VERSION_V1
A constant which can be used with the condition_language_version property of a RoutingPolicy. condition_language_version
[Required] Gets the condition_language_version of this RoutingPolicy. name
[Required] Gets the name of this RoutingPolicy. rules
[Required] Gets the rules of this RoutingPolicy. Methods
__init__
(**kwargs)Initializes a new RoutingPolicy object with values from keyword arguments. -
CONDITION_LANGUAGE_VERSION_V1
= 'V1'¶ A constant which can be used with the condition_language_version property of a RoutingPolicy. This constant has a value of “V1”
-
__init__
(**kwargs)¶ Initializes a new RoutingPolicy object with values from keyword arguments. 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 RoutingPolicy.
- condition_language_version (str) – The value to assign to the condition_language_version property of this RoutingPolicy. Allowed values for this property are: “V1”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- rules (list[oci.load_balancer.models.RoutingRule]) – The value to assign to the rules property of this RoutingPolicy.
-
condition_language_version
¶ [Required] Gets the condition_language_version of this RoutingPolicy. The version of the language in which condition of rules are composed.
Allowed values for this property are: “V1”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The condition_language_version of this RoutingPolicy. Return type: str
-
name
¶ [Required] Gets the name of this RoutingPolicy. The unique name for this list of routing rules. Avoid entering confidential information.
Example: example_routing_policy
Returns: The name of this RoutingPolicy. Return type: str
-
rules
¶ [Required] Gets the rules of this RoutingPolicy. The ordered list of routing rules.
Returns: The rules of this RoutingPolicy. Return type: list[oci.load_balancer.models.RoutingRule]
-