Skip to content

Commit 72143fb

Browse files
author
mmx86
committed
updated to version 1.0.31
1 parent 18f2395 commit 72143fb

25 files changed

+1465
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ItContainsTheTenantIdToIdentifyTheTenantAndMetadataOfTheSchemaToBeEditedWithTheCorrespondingEditsToVariousEntities
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**metadata** | [**SchemaPartialWriteRequestMetadata**](SchemaPartialWriteRequestMetadata.md) | | [optional]
9+
**partials** | [**Dict[str, Partials]**](Partials.md) | | [optional]
10+
11+
## Example
12+
13+
```python
14+
from permify_async.models.it_contains_the_tenant_id_to_identify_the_tenant_and_metadata_of_the_schema_to_be_edited_with_the_corresponding_edits_to_various_entities import ItContainsTheTenantIdToIdentifyTheTenantAndMetadataOfTheSchemaToBeEditedWithTheCorrespondingEditsToVariousEntities
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of ItContainsTheTenantIdToIdentifyTheTenantAndMetadataOfTheSchemaToBeEditedWithTheCorrespondingEditsToVariousEntities from a JSON string
19+
it_contains_the_tenant_id_to_identify_the_tenant_and_metadata_of_the_schema_to_be_edited_with_the_corresponding_edits_to_various_entities_instance = ItContainsTheTenantIdToIdentifyTheTenantAndMetadataOfTheSchemaToBeEditedWithTheCorrespondingEditsToVariousEntities.from_json(json)
20+
# print the JSON string representation of the object
21+
print(ItContainsTheTenantIdToIdentifyTheTenantAndMetadataOfTheSchemaToBeEditedWithTheCorrespondingEditsToVariousEntities.to_json())
22+
23+
# convert the object into a dict
24+
it_contains_the_tenant_id_to_identify_the_tenant_and_metadata_of_the_schema_to_be_edited_with_the_corresponding_edits_to_various_entities_dict = it_contains_the_tenant_id_to_identify_the_tenant_and_metadata_of_the_schema_to_be_edited_with_the_corresponding_edits_to_various_entities_instance.to_dict()
25+
# create an instance of ItContainsTheTenantIdToIdentifyTheTenantAndMetadataOfTheSchemaToBeEditedWithTheCorrespondingEditsToVariousEntities from a dict
26+
it_contains_the_tenant_id_to_identify_the_tenant_and_metadata_of_the_schema_to_be_edited_with_the_corresponding_edits_to_various_entities_from_dict = ItContainsTheTenantIdToIdentifyTheTenantAndMetadataOfTheSchemaToBeEditedWithTheCorrespondingEditsToVariousEntities.from_dict(it_contains_the_tenant_id_to_identify_the_tenant_and_metadata_of_the_schema_to_be_edited_with_the_corresponding_edits_to_various_entities_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/Partials.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Partials
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**write** | **List[str]** | | [optional]
9+
**delete** | **List[str]** | | [optional]
10+
**update** | **List[str]** | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from permify_async.models.partials import Partials
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of Partials from a JSON string
20+
partials_instance = Partials.from_json(json)
21+
# print the JSON string representation of the object
22+
print(Partials.to_json())
23+
24+
# convert the object into a dict
25+
partials_dict = partials_instance.to_dict()
26+
# create an instance of Partials from a dict
27+
partials_from_dict = Partials.from_dict(partials_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

docs/SchemaList.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# SchemaList
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**version** | **str** | | [optional]
9+
**created_at** | **str** | | [optional]
10+
11+
## Example
12+
13+
```python
14+
from permify_async.models.schema_list import SchemaList
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of SchemaList from a JSON string
19+
schema_list_instance = SchemaList.from_json(json)
20+
# print the JSON string representation of the object
21+
print(SchemaList.to_json())
22+
23+
# convert the object into a dict
24+
schema_list_dict = schema_list_instance.to_dict()
25+
# create an instance of SchemaList from a dict
26+
schema_list_from_dict = SchemaList.from_dict(schema_list_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/SchemaListResponse.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# SchemaListResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**head** | **str** | | [optional]
9+
**schemas** | [**List[SchemaList]**](SchemaList.md) | | [optional]
10+
**continuous_token** | **str** | continuous_token is a string that can be used to paginate and retrieve the next set of results. | [optional]
11+
12+
## Example
13+
14+
```python
15+
from permify_async.models.schema_list_response import SchemaListResponse
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of SchemaListResponse from a JSON string
20+
schema_list_response_instance = SchemaListResponse.from_json(json)
21+
# print the JSON string representation of the object
22+
print(SchemaListResponse.to_json())
23+
24+
# convert the object into a dict
25+
schema_list_response_dict = schema_list_response_instance.to_dict()
26+
# create an instance of SchemaListResponse from a dict
27+
schema_list_response_from_dict = SchemaListResponse.from_dict(schema_list_response_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# SchemaPartialWriteRequestMetadata
2+
3+
SchemaPartialWriteRequestMetadata provides additional information for the Schema Partial Write request. It contains schema_version to specify which version of the schema should be read.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**schema_version** | **str** | schema_version is the string that identifies the version of the schema to be read. | [optional]
10+
11+
## Example
12+
13+
```python
14+
from permify_async.models.schema_partial_write_request_metadata import SchemaPartialWriteRequestMetadata
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of SchemaPartialWriteRequestMetadata from a JSON string
19+
schema_partial_write_request_metadata_instance = SchemaPartialWriteRequestMetadata.from_json(json)
20+
# print the JSON string representation of the object
21+
print(SchemaPartialWriteRequestMetadata.to_json())
22+
23+
# convert the object into a dict
24+
schema_partial_write_request_metadata_dict = schema_partial_write_request_metadata_instance.to_dict()
25+
# create an instance of SchemaPartialWriteRequestMetadata from a dict
26+
schema_partial_write_request_metadata_from_dict = SchemaPartialWriteRequestMetadata.from_dict(schema_partial_write_request_metadata_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/SchemaPartialWriteResponse.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# SchemaPartialWriteResponse
2+
3+
SchemaPartialWriteResponse is the response message for the Parietal Write method in the Schema service. It returns the requested schema.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**schema_version** | **str** | schema_version is the string that identifies the version of the written schema. | [optional]
10+
11+
## Example
12+
13+
```python
14+
from permify_async.models.schema_partial_write_response import SchemaPartialWriteResponse
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of SchemaPartialWriteResponse from a JSON string
19+
schema_partial_write_response_instance = SchemaPartialWriteResponse.from_json(json)
20+
# print the JSON string representation of the object
21+
print(SchemaPartialWriteResponse.to_json())
22+
23+
# convert the object into a dict
24+
schema_partial_write_response_dict = schema_partial_write_response_instance.to_dict()
25+
# create an instance of SchemaPartialWriteResponse from a dict
26+
schema_partial_write_response_from_dict = SchemaPartialWriteResponse.from_dict(schema_partial_write_response_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/SchemasListRequest.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# SchemasListRequest
2+
3+
SchemaListRequest is the request message for the List method in the Schema service. It contains tenant_id for which the schemas are to be listed.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**page_size** | **int** | page_size is the number of tenants to be returned in the response. The value should be between 1 and 100. | [optional]
10+
**continuous_token** | **str** | continuous_token is an optional parameter used for pagination. It should be the value received in the previous response. | [optional]
11+
12+
## Example
13+
14+
```python
15+
from permify_async.models.schemas_list_request import SchemasListRequest
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of SchemasListRequest from a JSON string
20+
schemas_list_request_instance = SchemasListRequest.from_json(json)
21+
# print the JSON string representation of the object
22+
print(SchemasListRequest.to_json())
23+
24+
# convert the object into a dict
25+
schemas_list_request_dict = schemas_list_request_instance.to_dict()
26+
# create an instance of SchemasListRequest from a dict
27+
schemas_list_request_from_dict = SchemasListRequest.from_dict(schemas_list_request_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+

docs/SchemasPartialWriteRequest.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# SchemasPartialWriteRequest
2+
3+
It contains the tenant_id to identify the tenant and metadata of the schema to be edited, with the corresponding edits to various entities
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**metadata** | [**SchemaPartialWriteRequestMetadata**](SchemaPartialWriteRequestMetadata.md) | | [optional]
10+
**partials** | [**Dict[str, Partials]**](Partials.md) | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from permify_async.models.schemas_partial_write_request import SchemasPartialWriteRequest
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of SchemasPartialWriteRequest from a JSON string
20+
schemas_partial_write_request_instance = SchemasPartialWriteRequest.from_json(json)
21+
# print the JSON string representation of the object
22+
print(SchemasPartialWriteRequest.to_json())
23+
24+
# convert the object into a dict
25+
schemas_partial_write_request_dict = schemas_partial_write_request_instance.to_dict()
26+
# create an instance of SchemasPartialWriteRequest from a dict
27+
schemas_partial_write_request_from_dict = SchemasPartialWriteRequest.from_dict(schemas_partial_write_request_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# coding: utf-8
2+
3+
"""
4+
Permify API
5+
6+
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
7+
8+
The version of the OpenAPI document: v0.8.7
9+
10+
Generated by OpenAPI Generator (https://openapi-generator.tech)
11+
12+
Do not edit the class manually.
13+
""" # noqa: E501
14+
15+
16+
from __future__ import annotations
17+
import pprint
18+
import re # noqa: F401
19+
import json
20+
21+
from pydantic import BaseModel, ConfigDict
22+
from typing import Any, ClassVar, Dict, List, Optional
23+
from permify_async.models.partials import Partials
24+
from permify_async.models.schema_partial_write_request_metadata import SchemaPartialWriteRequestMetadata
25+
from typing import Optional, Set
26+
from typing_extensions import Self
27+
28+
class ItContainsTheTenantIdToIdentifyTheTenantAndMetadataOfTheSchemaToBeEditedWithTheCorrespondingEditsToVariousEntities(BaseModel):
29+
"""
30+
ItContainsTheTenantIdToIdentifyTheTenantAndMetadataOfTheSchemaToBeEditedWithTheCorrespondingEditsToVariousEntities
31+
""" # noqa: E501
32+
metadata: Optional[SchemaPartialWriteRequestMetadata] = None
33+
partials: Optional[Dict[str, Partials]] = None
34+
__properties: ClassVar[List[str]] = ["metadata", "partials"]
35+
36+
model_config = ConfigDict(
37+
populate_by_name=True,
38+
validate_assignment=True,
39+
protected_namespaces=(),
40+
)
41+
42+
43+
def to_str(self) -> str:
44+
"""Returns the string representation of the model using alias"""
45+
return pprint.pformat(self.model_dump(by_alias=True))
46+
47+
def to_json(self) -> str:
48+
"""Returns the JSON representation of the model using alias"""
49+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
50+
return json.dumps(self.to_dict())
51+
52+
@classmethod
53+
def from_json(cls, json_str: str) -> Optional[Self]:
54+
"""Create an instance of ItContainsTheTenantIdToIdentifyTheTenantAndMetadataOfTheSchemaToBeEditedWithTheCorrespondingEditsToVariousEntities from a JSON string"""
55+
return cls.from_dict(json.loads(json_str))
56+
57+
def to_dict(self) -> Dict[str, Any]:
58+
"""Return the dictionary representation of the model using alias.
59+
60+
This has the following differences from calling pydantic's
61+
`self.model_dump(by_alias=True)`:
62+
63+
* `None` is only added to the output dict for nullable fields that
64+
were set at model initialization. Other fields with value `None`
65+
are ignored.
66+
"""
67+
excluded_fields: Set[str] = set([
68+
])
69+
70+
_dict = self.model_dump(
71+
by_alias=True,
72+
exclude=excluded_fields,
73+
exclude_none=True,
74+
)
75+
# override the default output from pydantic by calling `to_dict()` of metadata
76+
if self.metadata:
77+
_dict['metadata'] = self.metadata.to_dict()
78+
# override the default output from pydantic by calling `to_dict()` of each value in partials (dict)
79+
_field_dict = {}
80+
if self.partials:
81+
for _key in self.partials:
82+
if self.partials[_key]:
83+
_field_dict[_key] = self.partials[_key].to_dict()
84+
_dict['partials'] = _field_dict
85+
return _dict
86+
87+
@classmethod
88+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
89+
"""Create an instance of ItContainsTheTenantIdToIdentifyTheTenantAndMetadataOfTheSchemaToBeEditedWithTheCorrespondingEditsToVariousEntities from a dict"""
90+
if obj is None:
91+
return None
92+
93+
if not isinstance(obj, dict):
94+
return cls.model_validate(obj)
95+
96+
_obj = cls.model_validate({
97+
"metadata": SchemaPartialWriteRequestMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None,
98+
"partials": dict(
99+
(_k, Partials.from_dict(_v))
100+
for _k, _v in obj["partials"].items()
101+
)
102+
if obj.get("partials") is not None
103+
else None
104+
})
105+
return _obj
106+
107+

0 commit comments

Comments
 (0)