Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.51 KB

File metadata and controls

32 lines (23 loc) · 1.51 KB

ResourceScopeInput

Fine-grained restriction applied to an API key.

Properties

Name Type Description Notes
resource_type ResourceTypeInput Resource type this scope governs. Use ResourceType enum values to scope a key to namespaces, collections, clusters, etc.
resource_id str Identifier or pattern for the resource. Accepts a literal ID (e.g. 'ns_production') or wildcard forms such as '' or 'ns_customer_'.
operations List[NamespaceOperation] Subset of operations allowed within the scope. When omitted the key may perform any operation permitted by its Permission list. [optional]

Example

from mixpeek.models.resource_scope_input import ResourceScopeInput

# TODO update the JSON string below
json = "{}"
# create an instance of ResourceScopeInput from a JSON string
resource_scope_input_instance = ResourceScopeInput.from_json(json)
# print the JSON string representation of the object
print(ResourceScopeInput.to_json())

# convert the object into a dict
resource_scope_input_dict = resource_scope_input_instance.to_dict()
# create an instance of ResourceScopeInput from a dict
resource_scope_input_from_dict = ResourceScopeInput.from_dict(resource_scope_input_dict)

[Back to Model list] [Back to API list] [Back to README]