Skip to content

Commit

Permalink
Release 0.0.783
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Mar 26, 2024
1 parent 99d6563 commit cfa5e34
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "revert-api"
version = "0.0.775"
version = "0.0.783"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion src/revert/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "revert-api",
"X-Fern-SDK-Version": "0.0.775",
"X-Fern-SDK-Version": "0.0.783",
}
return headers

Expand Down
16 changes: 16 additions & 0 deletions src/revert/resources/ticket/resources/comment/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def get_comments(
def create_comment(
self,
*,
fields: typing.Optional[str] = None,
request: CreateOrUpdateCommentRequest,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -147,6 +148,8 @@ def create_comment(
Post comment
Parameters:
- fields: typing.Optional[str].
- request: CreateOrUpdateCommentRequest.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -158,6 +161,7 @@ def create_comment(
_response = self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "ticket/comments"),
params=remove_none_from_dict({"fields": fields}),
json=jsonable_encoder(request),
headers=remove_none_from_dict(
{
Expand Down Expand Up @@ -187,6 +191,7 @@ def update_comment(
self,
id: str,
*,
fields: typing.Optional[str] = None,
request: CreateOrUpdateCommentRequest,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -198,6 +203,8 @@ def update_comment(
Parameters:
- id: str.
- fields: typing.Optional[str].
- request: CreateOrUpdateCommentRequest.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -209,6 +216,7 @@ def update_comment(
_response = self._client_wrapper.httpx_client.request(
"PATCH",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"ticket/comments/{id}"),
params=remove_none_from_dict({"fields": fields}),
json=jsonable_encoder(request),
headers=remove_none_from_dict(
{
Expand Down Expand Up @@ -347,6 +355,7 @@ async def get_comments(
async def create_comment(
self,
*,
fields: typing.Optional[str] = None,
request: CreateOrUpdateCommentRequest,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -356,6 +365,8 @@ async def create_comment(
Post comment
Parameters:
- fields: typing.Optional[str].
- request: CreateOrUpdateCommentRequest.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -367,6 +378,7 @@ async def create_comment(
_response = await self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "ticket/comments"),
params=remove_none_from_dict({"fields": fields}),
json=jsonable_encoder(request),
headers=remove_none_from_dict(
{
Expand Down Expand Up @@ -396,6 +408,7 @@ async def update_comment(
self,
id: str,
*,
fields: typing.Optional[str] = None,
request: CreateOrUpdateCommentRequest,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -407,6 +420,8 @@ async def update_comment(
Parameters:
- id: str.
- fields: typing.Optional[str].
- request: CreateOrUpdateCommentRequest.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -418,6 +433,7 @@ async def update_comment(
_response = await self._client_wrapper.httpx_client.request(
"PATCH",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"ticket/comments/{id}"),
params=remove_none_from_dict({"fields": fields}),
json=jsonable_encoder(request),
headers=remove_none_from_dict(
{
Expand Down
16 changes: 16 additions & 0 deletions src/revert/resources/ticket/resources/task/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,16 @@ def get_tasks(
def create_task(
self,
*,
fields: typing.Optional[str] = None,
request: CreateOrUpdateTaskRequest,
x_revert_api_token: str,
x_revert_t_id: str,
x_api_version: typing.Optional[str] = None,
) -> CreateOrUpdateTaskResponse:
"""
Parameters:
- fields: typing.Optional[str].
- request: CreateOrUpdateTaskRequest.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -157,6 +160,7 @@ def create_task(
_response = self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "ticket/tasks"),
params=remove_none_from_dict({"fields": fields}),
json=jsonable_encoder(request),
headers=remove_none_from_dict(
{
Expand Down Expand Up @@ -186,6 +190,7 @@ def update_task(
self,
id: str,
*,
fields: typing.Optional[str] = None,
request: CreateOrUpdateTaskRequest,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -197,6 +202,8 @@ def update_task(
Parameters:
- id: str.
- fields: typing.Optional[str].
- request: CreateOrUpdateTaskRequest.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -208,6 +215,7 @@ def update_task(
_response = self._client_wrapper.httpx_client.request(
"PATCH",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"ticket/tasks/{id}"),
params=remove_none_from_dict({"fields": fields}),
json=jsonable_encoder(request),
headers=remove_none_from_dict(
{
Expand Down Expand Up @@ -348,13 +356,16 @@ async def get_tasks(
async def create_task(
self,
*,
fields: typing.Optional[str] = None,
request: CreateOrUpdateTaskRequest,
x_revert_api_token: str,
x_revert_t_id: str,
x_api_version: typing.Optional[str] = None,
) -> CreateOrUpdateTaskResponse:
"""
Parameters:
- fields: typing.Optional[str].
- request: CreateOrUpdateTaskRequest.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -366,6 +377,7 @@ async def create_task(
_response = await self._client_wrapper.httpx_client.request(
"POST",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "ticket/tasks"),
params=remove_none_from_dict({"fields": fields}),
json=jsonable_encoder(request),
headers=remove_none_from_dict(
{
Expand Down Expand Up @@ -395,6 +407,7 @@ async def update_task(
self,
id: str,
*,
fields: typing.Optional[str] = None,
request: CreateOrUpdateTaskRequest,
x_revert_api_token: str,
x_revert_t_id: str,
Expand All @@ -406,6 +419,8 @@ async def update_task(
Parameters:
- id: str.
- fields: typing.Optional[str].
- request: CreateOrUpdateTaskRequest.
- x_revert_api_token: str. Your official API key for accessing revert apis.
Expand All @@ -417,6 +432,7 @@ async def update_task(
_response = await self._client_wrapper.httpx_client.request(
"PATCH",
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"ticket/tasks/{id}"),
params=remove_none_from_dict({"fields": fields}),
json=jsonable_encoder(request),
headers=remove_none_from_dict(
{
Expand Down

0 comments on commit cfa5e34

Please sign in to comment.