AnonymousRouteAuthorizationPolicy¶
- class oci.apigateway.models.AnonymousRouteAuthorizationPolicy(**kwargs)¶
Bases:
RouteAuthorizationPolicyFor a type of ANONYMOUS, an authenticated API must have the “isAnonymousAccessAllowed” property set to “true” in the authentication policy.
Attributes:
A constant which can be used with the type property of a RouteAuthorizationPolicy.
A constant which can be used with the type property of a RouteAuthorizationPolicy.
A constant which can be used with the type property of a RouteAuthorizationPolicy.
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'¶
A constant which can be used with the type property of a RouteAuthorizationPolicy. This constant has a value of “ANONYMOUS”
- TYPE_ANY_OF = 'ANY_OF'¶
A constant which can be used with the type property of a RouteAuthorizationPolicy. This constant has a value of “ANY_OF”
- TYPE_AUTHENTICATION_ONLY = 'AUTHENTICATION_ONLY'¶
A constant which can be used with the type property of a RouteAuthorizationPolicy. This constant has a value of “AUTHENTICATION_ONLY”
- __init__(**kwargs)¶
Initializes a new AnonymousRouteAuthorizationPolicy object with values from keyword arguments. The default value of the
typeattribute of this class isANONYMOUSand 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.
- property 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