DefaultVirtualServiceRoutingPolicy

class oci.service_mesh.models.DefaultVirtualServiceRoutingPolicy(**kwargs)

Bases: object

Routing policy for the virtual service.

Attributes

TYPE_DENY A constant which can be used with the type property of a DefaultVirtualServiceRoutingPolicy.
TYPE_UNIFORM A constant which can be used with the type property of a DefaultVirtualServiceRoutingPolicy.
type [Required] Gets the type of this DefaultVirtualServiceRoutingPolicy.

Methods

__init__(**kwargs) Initializes a new DefaultVirtualServiceRoutingPolicy object with values from keyword arguments.
TYPE_DENY = 'DENY'

A constant which can be used with the type property of a DefaultVirtualServiceRoutingPolicy. This constant has a value of “DENY”

TYPE_UNIFORM = 'UNIFORM'

A constant which can be used with the type property of a DefaultVirtualServiceRoutingPolicy. This constant has a value of “UNIFORM”

__init__(**kwargs)

Initializes a new DefaultVirtualServiceRoutingPolicy 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 DefaultVirtualServiceRoutingPolicy. Allowed values for this property are: “UNIFORM”, “DENY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
type

[Required] Gets the type of this DefaultVirtualServiceRoutingPolicy. Type of the virtual service routing policy.

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

Returns:The type of this DefaultVirtualServiceRoutingPolicy.
Return type:str