MemoryBlockPrivacyRequest
Properties
Name |
Type |
Description |
Notes |
|---|---|---|---|
is_public |
bool |
Whether the memory block should be public. |
|
permissions |
List[str] |
Public permission levels to grant when is_public is true (e.g. ‘h2ogpte/memory_block/edit’). Read access is always granted to a public memory block. Ignored when is_public is false. When omitted, edit access is granted by default; pass an explicit empty array to make the block public read-only. |
[optional] |
Example
from h2ogpte.rest_async.models.memory_block_privacy_request import MemoryBlockPrivacyRequest
# TODO update the JSON string below
json = "{}"
# create an instance of MemoryBlockPrivacyRequest from a JSON string
memory_block_privacy_request_instance = MemoryBlockPrivacyRequest.from_json(json)
# print the JSON string representation of the object
print(MemoryBlockPrivacyRequest.to_json())
# convert the object into a dict
memory_block_privacy_request_dict = memory_block_privacy_request_instance.to_dict()
# create an instance of MemoryBlockPrivacyRequest from a dict
memory_block_privacy_request_from_dict = MemoryBlockPrivacyRequest.from_dict(memory_block_privacy_request_dict)