class documentation
class CORSRule(pb_classes.Message): (source)
Constructor: CORSRule(initial_message, id, allowed_headers, allowed_origins, ...)
Undocumented
| Class | __ |
Undocumented |
| Class | __ |
Undocumented |
| Class | __ |
Undocumented |
| Class | __ |
Undocumented |
| Method | __dir__ |
Undocumented |
| Method | __init__ |
Create a wrapper around a protobuf message instance. |
| Method | allowed |
Undocumented |
| Method | allowed |
Undocumented |
| Method | allowed |
Undocumented |
| Method | expose |
Undocumented |
| Method | id |
Undocumented |
| Method | max |
Undocumented |
| Constant | __PB2 |
Undocumented |
| Constant | __PY |
Undocumented |
| Class Variable | __mask |
Undocumented |
| Property | allowed |
Headers that are allowed in a preflight request through the Access-Control-Request-Headers header |
| Property | allowed |
HTTP methods CORS is allowed for: GET, PUT, POST, DELETE, HEAD. |
| Property | allowed |
The origins that you want to allow cross-domain requests from. Single wildcard * is allowed. |
| Property | expose |
Headers in the response that you want customers to be able to access from their applications. |
| Property | id |
Optional rule identifier. |
| Property | max |
Time in seconds that your browser can cache the response for a preflight request as identified by the resource. |
| Property | _id |
Undocumented |
| Property | _max |
Undocumented |
Inherited from Message:
| Class Method | get |
Return the protobuf descriptor for this message class. |
| Class Method | is |
Return True if the field contains credentials. |
| Class Method | is |
Return True if the field is marked as sensitive. |
| Method | __repr__ |
Return a human-readable representation of the message, sanitizing sensitive fields. |
| Method | check |
Check explicit presence for a field in the protobuf message. |
| Method | get |
Build a reset mask for a full update of this message. |
| Method | get |
Return the tracked reset mask. |
| Method | is |
Return True if a field equals its default value. |
| Method | set |
Replace the tracked reset mask. |
| Method | which |
Return the set field name for a given oneof. |
| Instance Variable | __PB2 |
Protobuf message class associated with this wrapper. |
| Instance Variable | __pb2 |
Underlying protobuf message instance. |
| Method | _clear |
Clear a field and record it in the reset mask. |
| Method | _get |
Return a field value with optional wrapping and presence handling. |
| Method | _set |
Set a field value and update the reset mask. |
| Class Variable | __credentials |
Undocumented |
| Class Variable | __default |
Undocumented |
| Class Variable | __sensitive |
Undocumented |
| Instance Variable | __recorded |
Mask tracking fields cleared or set to default. |
def __init__(self, initial_message:
message_1.Message | None = None, *, id: builtins.str | None | unset.UnsetType = unset.Unset, allowed_headers: abc.Iterable[ builtins.str] | None | unset.UnsetType = unset.Unset, allowed_origins: abc.Iterable[ builtins.str] | None | unset.UnsetType = unset.Unset, allowed_methods: abc.Iterable[ builtins.str] | None | unset.UnsetType = unset.Unset, expose_headers: abc.Iterable[ builtins.str] | None | unset.UnsetType = unset.Unset, max_age_seconds: builtins.int | None | unset.UnsetType = unset.Unset):
(source)
¶
Create a wrapper around a protobuf message instance.
| Raises | |
AttributeError | If the wrapper is missing required class metadata. |
@allowed_headers.setter
def allowed_headers(self, value:
def allowed_headers(self, value:
abc.Iterable[ builtins.str] | None):
(source)
¶
Undocumented
@allowed_methods.setter
def allowed_methods(self, value:
def allowed_methods(self, value:
abc.Iterable[ builtins.str] | None):
(source)
¶
Undocumented
@allowed_origins.setter
def allowed_origins(self, value:
def allowed_origins(self, value:
abc.Iterable[ builtins.str] | None):
(source)
¶
Undocumented
@expose_headers.setter
def expose_headers(self, value:
def expose_headers(self, value:
abc.Iterable[ builtins.str] | None):
(source)
¶
Undocumented
Undocumented
| Value |
|
Undocumented
| Value |
|
Time in seconds that your browser can cache the response for a preflight request as identified by the resource.
@builtins.property
_max_age_seconds:
_max_age_seconds:
__OneOfClass__max_age_seconds_max_age_seconds__ | None =
(source)
¶
Undocumented