Skip to content

Commit

Permalink
chore: bump dependencies, update for pycodestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper committed Jan 2, 2024
1 parent addcb45 commit 9c1fe89
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 78 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ body = ClientListRelationsRequest(
)
var response = await fga_client.list_relations(body, options);

// response.relations = ["can_view", "can_edit"]
# response.relations = ["can_view", "can_edit"]
```

#### Assertions
Expand Down
60 changes: 30 additions & 30 deletions openfga_sdk/api/open_fga_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async def check(self, body, **kwargs): # noqa: E501
:rtype: CheckResponse
"""
kwargs['_return_http_data_only'] = True
return await(self.check_with_http_info(body, **kwargs)) # noqa: E501
return await (self.check_with_http_info(body, **kwargs)) # noqa: E501

async def check_with_http_info(self, body, **kwargs): # noqa: E501
"""Check whether a user is authorized to access an object # noqa: E501
Expand Down Expand Up @@ -183,7 +183,7 @@ async def check_with_http_info(self, body, **kwargs): # noqa: E501
500: "InternalErrorMessageResponse",
}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores/{store_id}/check'.replace('{store_id}', store_id), 'POST',
path_params,
query_params,
Expand Down Expand Up @@ -227,7 +227,7 @@ async def create_store(self, body, **kwargs): # noqa: E501
:rtype: CreateStoreResponse
"""
kwargs['_return_http_data_only'] = True
return await(self.create_store_with_http_info(body, **kwargs)) # noqa: E501
return await (self.create_store_with_http_info(body, **kwargs)) # noqa: E501

async def create_store_with_http_info(self, body, **kwargs): # noqa: E501
"""Create a store # noqa: E501
Expand Down Expand Up @@ -325,7 +325,7 @@ async def create_store_with_http_info(self, body, **kwargs): # noqa: E501
500: "InternalErrorMessageResponse",
}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores', 'POST',
path_params,
query_params,
Expand Down Expand Up @@ -367,7 +367,7 @@ async def delete_store(self, **kwargs): # noqa: E501
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return await(self.delete_store_with_http_info(**kwargs)) # noqa: E501
return await (self.delete_store_with_http_info(**kwargs)) # noqa: E501

async def delete_store_with_http_info(self, **kwargs): # noqa: E501
"""Delete a store # noqa: E501
Expand Down Expand Up @@ -453,7 +453,7 @@ async def delete_store_with_http_info(self, **kwargs): # noqa: E501

response_types_map = {}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores/{store_id}'.replace('{store_id}', store_id), 'DELETE',
path_params,
query_params,
Expand Down Expand Up @@ -497,7 +497,7 @@ async def expand(self, body, **kwargs): # noqa: E501
:rtype: ExpandResponse
"""
kwargs['_return_http_data_only'] = True
return await(self.expand_with_http_info(body, **kwargs)) # noqa: E501
return await (self.expand_with_http_info(body, **kwargs)) # noqa: E501

async def expand_with_http_info(self, body, **kwargs): # noqa: E501
"""Expand all relationships in userset tree format, and following userset rewrite rules. Useful to reason about and debug a certain relationship # noqa: E501
Expand Down Expand Up @@ -602,7 +602,7 @@ async def expand_with_http_info(self, body, **kwargs): # noqa: E501
500: "InternalErrorMessageResponse",
}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores/{store_id}/expand'.replace('{store_id}', store_id), 'POST',
path_params,
query_params,
Expand Down Expand Up @@ -644,7 +644,7 @@ async def get_store(self, **kwargs): # noqa: E501
:rtype: GetStoreResponse
"""
kwargs['_return_http_data_only'] = True
return await(self.get_store_with_http_info(**kwargs)) # noqa: E501
return await (self.get_store_with_http_info(**kwargs)) # noqa: E501

async def get_store_with_http_info(self, **kwargs): # noqa: E501
"""Get a store # noqa: E501
Expand Down Expand Up @@ -735,7 +735,7 @@ async def get_store_with_http_info(self, **kwargs): # noqa: E501
500: "InternalErrorMessageResponse",
}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores/{store_id}'.replace('{store_id}', store_id), 'GET',
path_params,
query_params,
Expand Down Expand Up @@ -779,7 +779,7 @@ async def list_objects(self, body, **kwargs): # noqa: E501
:rtype: ListObjectsResponse
"""
kwargs['_return_http_data_only'] = True
return await(self.list_objects_with_http_info(body, **kwargs)) # noqa: E501
return await (self.list_objects_with_http_info(body, **kwargs)) # noqa: E501

async def list_objects_with_http_info(self, body, **kwargs): # noqa: E501
"""List all objects of the given type that the user has a relation with # noqa: E501
Expand Down Expand Up @@ -884,7 +884,7 @@ async def list_objects_with_http_info(self, body, **kwargs): # noqa: E501
500: "InternalErrorMessageResponse",
}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores/{store_id}/list-objects'.replace('{store_id}', store_id), 'POST',
path_params,
query_params,
Expand Down Expand Up @@ -930,7 +930,7 @@ async def list_stores(self, **kwargs): # noqa: E501
:rtype: ListStoresResponse
"""
kwargs['_return_http_data_only'] = True
return await(self.list_stores_with_http_info(**kwargs)) # noqa: E501
return await (self.list_stores_with_http_info(**kwargs)) # noqa: E501

async def list_stores_with_http_info(self, **kwargs): # noqa: E501
"""List all stores # noqa: E501
Expand Down Expand Up @@ -1027,7 +1027,7 @@ async def list_stores_with_http_info(self, **kwargs): # noqa: E501
500: "InternalErrorMessageResponse",
}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores', 'GET',
path_params,
query_params,
Expand Down Expand Up @@ -1071,7 +1071,7 @@ async def read(self, body, **kwargs): # noqa: E501
:rtype: ReadResponse
"""
kwargs['_return_http_data_only'] = True
return await(self.read_with_http_info(body, **kwargs)) # noqa: E501
return await (self.read_with_http_info(body, **kwargs)) # noqa: E501

async def read_with_http_info(self, body, **kwargs): # noqa: E501
"""Get tuples from the store that matches a query, without following userset rewrite rules # noqa: E501
Expand Down Expand Up @@ -1176,7 +1176,7 @@ async def read_with_http_info(self, body, **kwargs): # noqa: E501
500: "InternalErrorMessageResponse",
}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores/{store_id}/read'.replace('{store_id}', store_id), 'POST',
path_params,
query_params,
Expand Down Expand Up @@ -1220,7 +1220,7 @@ async def read_assertions(self, authorization_model_id, **kwargs): # noqa: E501
:rtype: ReadAssertionsResponse
"""
kwargs['_return_http_data_only'] = True
return await(self.read_assertions_with_http_info(authorization_model_id, **kwargs)) # noqa: E501
return await (self.read_assertions_with_http_info(authorization_model_id, **kwargs)) # noqa: E501

async def read_assertions_with_http_info(self, authorization_model_id, **kwargs): # noqa: E501
"""Read assertions for an authorization model ID # noqa: E501
Expand Down Expand Up @@ -1321,7 +1321,7 @@ async def read_assertions_with_http_info(self, authorization_model_id, **kwargs)
500: "InternalErrorMessageResponse",
}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores/{store_id}/assertions/{authorization_model_id}'.replace(
'{store_id}', store_id), 'GET',
path_params,
Expand Down Expand Up @@ -1366,7 +1366,7 @@ async def read_authorization_model(self, id, **kwargs): # noqa: E501
:rtype: ReadAuthorizationModelResponse
"""
kwargs['_return_http_data_only'] = True
return await(self.read_authorization_model_with_http_info(id, **kwargs)) # noqa: E501
return await (self.read_authorization_model_with_http_info(id, **kwargs)) # noqa: E501

async def read_authorization_model_with_http_info(self, id, **kwargs): # noqa: E501
"""Return a particular version of an authorization model # noqa: E501
Expand Down Expand Up @@ -1467,7 +1467,7 @@ async def read_authorization_model_with_http_info(self, id, **kwargs): # noqa:
500: "InternalErrorMessageResponse",
}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores/{store_id}/authorization-models/{id}'.replace('{store_id}', store_id), 'GET',
path_params,
query_params,
Expand Down Expand Up @@ -1513,7 +1513,7 @@ async def read_authorization_models(self, **kwargs): # noqa: E501
:rtype: ReadAuthorizationModelsResponse
"""
kwargs['_return_http_data_only'] = True
return await(self.read_authorization_models_with_http_info(**kwargs)) # noqa: E501
return await (self.read_authorization_models_with_http_info(**kwargs)) # noqa: E501

async def read_authorization_models_with_http_info(self, **kwargs): # noqa: E501
"""Return all the authorization models for a particular store # noqa: E501
Expand Down Expand Up @@ -1614,7 +1614,7 @@ async def read_authorization_models_with_http_info(self, **kwargs): # noqa: E50
500: "InternalErrorMessageResponse",
}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores/{store_id}/authorization-models'.replace('{store_id}', store_id), 'GET',
path_params,
query_params,
Expand Down Expand Up @@ -1662,7 +1662,7 @@ async def read_changes(self, **kwargs): # noqa: E501
:rtype: ReadChangesResponse
"""
kwargs['_return_http_data_only'] = True
return await(self.read_changes_with_http_info(**kwargs)) # noqa: E501
return await (self.read_changes_with_http_info(**kwargs)) # noqa: E501

async def read_changes_with_http_info(self, **kwargs): # noqa: E501
"""Return a list of all the tuple changes # noqa: E501
Expand Down Expand Up @@ -1768,7 +1768,7 @@ async def read_changes_with_http_info(self, **kwargs): # noqa: E501
500: "InternalErrorMessageResponse",
}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores/{store_id}/changes'.replace('{store_id}', store_id), 'GET',
path_params,
query_params,
Expand Down Expand Up @@ -1812,7 +1812,7 @@ async def write(self, body, **kwargs): # noqa: E501
:rtype: object
"""
kwargs['_return_http_data_only'] = True
return await(self.write_with_http_info(body, **kwargs)) # noqa: E501
return await (self.write_with_http_info(body, **kwargs)) # noqa: E501

async def write_with_http_info(self, body, **kwargs): # noqa: E501
"""Add or delete tuples from the store # noqa: E501
Expand Down Expand Up @@ -1917,7 +1917,7 @@ async def write_with_http_info(self, body, **kwargs): # noqa: E501
500: "InternalErrorMessageResponse",
}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores/{store_id}/write'.replace('{store_id}', store_id), 'POST',
path_params,
query_params,
Expand Down Expand Up @@ -1963,7 +1963,7 @@ async def write_assertions(self, authorization_model_id, body, **kwargs): # noq
:rtype: None
"""
kwargs['_return_http_data_only'] = True
return await(self.write_assertions_with_http_info(authorization_model_id, body, **kwargs)) # noqa: E501
return await (self.write_assertions_with_http_info(authorization_model_id, body, **kwargs)) # noqa: E501

async def write_assertions_with_http_info(self, authorization_model_id, body, **kwargs): # noqa: E501
"""Upsert assertions for an authorization model ID # noqa: E501
Expand Down Expand Up @@ -2073,7 +2073,7 @@ async def write_assertions_with_http_info(self, authorization_model_id, body, **

response_types_map = {}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores/{store_id}/assertions/{authorization_model_id}'.replace(
'{store_id}', store_id), 'PUT',
path_params,
Expand Down Expand Up @@ -2118,7 +2118,7 @@ async def write_authorization_model(self, body, **kwargs): # noqa: E501
:rtype: WriteAuthorizationModelResponse
"""
kwargs['_return_http_data_only'] = True
return await(self.write_authorization_model_with_http_info(body, **kwargs)) # noqa: E501
return await (self.write_authorization_model_with_http_info(body, **kwargs)) # noqa: E501

async def write_authorization_model_with_http_info(self, body, **kwargs): # noqa: E501
"""Create a new authorization model # noqa: E501
Expand Down Expand Up @@ -2223,7 +2223,7 @@ async def write_authorization_model_with_http_info(self, body, **kwargs): # noq
500: "InternalErrorMessageResponse",
}

return await(self.api_client.call_api(
return await (self.api_client.call_api(
'/stores/{store_id}/authorization-models'.replace('{store_id}', store_id), 'POST',
path_params,
query_params,
Expand Down
Loading

0 comments on commit 9c1fe89

Please sign in to comment.