AnonymousRouteAuthorizationPolicy

class oci.apigateway.models.AnonymousRouteAuthorizationPolicy(**kwargs)

Bases: oci.apigateway.models.route_authorization_policy.RouteAuthorizationPolicy

For a type of ANONYMOUS, an authenticated API must have the “isAnonymousAccessAllowed” property set to “true” in the authentication policy.

Attributes

TYPE_ANONYMOUS str(object=’’) -> str
TYPE_ANY_OF str(object=’’) -> str
TYPE_AUTHENTICATION_ONLY str(object=’’) -> str
type Gets the type of this RouteAuthorizationPolicy.

Methods

__init__(**kwargs) Initializes a new AnonymousRouteAuthorizationPolicy 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_ANONYMOUS = 'ANONYMOUS'
TYPE_ANY_OF = 'ANY_OF'
TYPE_AUTHENTICATION_ONLY = 'AUTHENTICATION_ONLY'
__init__(**kwargs)

Initializes a new AnonymousRouteAuthorizationPolicy object with values from keyword arguments. The default value of the type attribute of this class is ANONYMOUS and it should not be changed. 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 AnonymousRouteAuthorizationPolicy. Allowed values for this property are: “ANONYMOUS”, “ANY_OF”, “AUTHENTICATION_ONLY”
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

Gets the type of this RouteAuthorizationPolicy. Indicates how authorization should be applied. For a type of ANY_OF, an “allowedScope” property must also be specified. Otherwise, only a type is required. For a type of ANONYMOUS, an authenticated API must have the “isAnonymousAccessAllowed” property set to “true” in the authentication policy.

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

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