AccessPolicyTarget

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

Bases: object

Target of the access policy. This can either be the source or the destination of the traffic.

Attributes

TYPE_ALL_VIRTUAL_SERVICES A constant which can be used with the type property of a AccessPolicyTarget.
TYPE_EXTERNAL_SERVICE A constant which can be used with the type property of a AccessPolicyTarget.
TYPE_INGRESS_GATEWAY A constant which can be used with the type property of a AccessPolicyTarget.
TYPE_VIRTUAL_SERVICE A constant which can be used with the type property of a AccessPolicyTarget.
type [Required] Gets the type of this AccessPolicyTarget.

Methods

__init__(**kwargs) Initializes a new AccessPolicyTarget 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.
TYPE_ALL_VIRTUAL_SERVICES = 'ALL_VIRTUAL_SERVICES'

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

TYPE_EXTERNAL_SERVICE = 'EXTERNAL_SERVICE'

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

TYPE_INGRESS_GATEWAY = 'INGRESS_GATEWAY'

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

TYPE_VIRTUAL_SERVICE = 'VIRTUAL_SERVICE'

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

__init__(**kwargs)

Initializes a new AccessPolicyTarget object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

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 AccessPolicyTarget. Allowed values for this property are: “ALL_VIRTUAL_SERVICES”, “VIRTUAL_SERVICE”, “EXTERNAL_SERVICE”, “INGRESS_GATEWAY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
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.

type

[Required] Gets the type of this AccessPolicyTarget. Traffic type of the target.

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

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