class documentation

Undocumented

Method __dir__ Undocumented
Method __init__ Undocumented
Method disabled.setter Undocumented
Method nid.setter Undocumented
Method strict.setter Undocumented
Constant __PB2_DESCRIPTOR__ Undocumented
Constant __PY_TO_PB2__ Undocumented
Class Variable __mask_functions__ Undocumented
Property disabled If true, region routing is disabled for the method. When this is set, requests will not be forwarded to a different region, even if an NID is present.
Property nid A list of fields to extract the NID from, in order of priority. The API Gateway will check each field in sequence and use the first valid NID it finds. This overrides the default NID lookup order: `id`, `parent_id`, `metadata...
Property strict In strict mode, the API Gateway returns an INVALID_ARGUMENT error to the user when a routing error occurs, rather than forwarding the request to the local region.

Inherited from Message:

Class Method get_descriptor Undocumented
Class Method is_credentials Undocumented
Class Method is_sensitive Undocumented
Method __repr__ Undocumented
Method check_presence Undocumented
Method get_full_update_reset_mask Undocumented
Method get_mask Undocumented
Method is_default Undocumented
Method set_mask Undocumented
Method which_field_in_oneof Undocumented
Class Variable __PB2_CLASS__ Undocumented
Instance Variable __pb2_message__ Undocumented
Method _clear_field Undocumented
Method _get_field Undocumented
Method _set_field Undocumented
Class Variable __credentials_fields Undocumented
Class Variable __default Undocumented
Class Variable __sensitive_fields Undocumented
Instance Variable __recorded_reset_mask Undocumented
def __dir__(self) -> abc.Iterable[builtins.str]: (source)

Undocumented

def __init__(self, initial_message: message.Message | None = None, *, nid: abc.Iterable[builtins.str] | None | unset.UnsetType = unset.Unset, disabled: builtins.bool | None | unset.UnsetType = unset.Unset, strict: builtins.bool | None | unset.UnsetType = unset.Unset): (source)
@disabled.setter
def disabled(self, value: builtins.bool | None): (source)

Undocumented

@nid.setter
def nid(self, value: abc.Iterable[builtins.str] | None): (source)

Undocumented

@strict.setter
def strict(self, value: builtins.bool | None): (source)

Undocumented

__PB2_DESCRIPTOR__ = (source)

Undocumented

Value
descriptor.DescriptorWrap[descriptor_1.Descriptor]('.nebius.RegionRouting',
                                                   annotations_pb2.DESCRIPTOR,
                                                   descriptor_1.Descriptor)
__PY_TO_PB2__: builtins.dict[builtins.str, builtins.str] = (source)

Undocumented

Value
{'nid': 'nid', 'disabled': 'disabled', 'strict': 'strict'}
@builtins.property
disabled: builtins.bool = (source)

If true, region routing is disabled for the method. When this is set, requests will not be forwarded to a different region, even if an NID is present.

@builtins.property
nid: abc.MutableSequence[builtins.str] = (source)

A list of fields to extract the NID from, in order of priority. The API Gateway will check each field in sequence and use the first valid NID it finds. This overrides the default NID lookup order: `id`, `parent_id`, `metadata.id`, `metadata.parent_id`. If the field contains a non-empty list of strings, all NIDs in the array must be valid and have the same routing code.

@builtins.property
strict: builtins.bool = (source)

In strict mode, the API Gateway returns an INVALID_ARGUMENT error to the user when a routing error occurs, rather than forwarding the request to the local region.