Skip to content

Commit

Permalink
added ticket_closure_last_run
Browse files Browse the repository at this point in the history
  • Loading branch information
parteek65 committed Nov 4, 2024
1 parent ed970c3 commit 9a8459d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
17 changes: 16 additions & 1 deletion onelens_backend_client_v2/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# filename: <stdin>
# timestamp: 2024-11-03T13:11:00+00:00
# timestamp: 2024-11-04T09:08:11+00:00

from __future__ import annotations

Expand Down Expand Up @@ -3862,6 +3862,11 @@ class CreateTenantTicketRequestMixin(BaseModel):
description="Datetime of the first policy violation/anomaly run",
title="First Run At",
)
ticket_closure_last_run: Optional[datetime] = Field(
None,
description="Datetime of the last ticket closure run, last time the ticket was triggered to be closed/verified_and_waited",
title="Ticket Closure Last Run",
)
status: Union[PolicyTicketStatus, AnomalyTicketStatus] = Field(
..., description="Status of the ticket", title="Status"
)
Expand Down Expand Up @@ -5993,6 +5998,11 @@ class TenantTicket(BaseModel):
description="Datetime of the first policy violation/anomaly run",
title="First Run At",
)
ticket_closure_last_run: Optional[datetime] = Field(
None,
description="Datetime of the last ticket closure run, last time the ticket was triggered to be closed/verified_and_waited",
title="Ticket Closure Last Run",
)
id: UUID4 = Field(
..., description="The unique identifier of the ticket", title="Id"
)
Expand Down Expand Up @@ -6097,6 +6107,11 @@ class TenantTicketWithTicketAlias(BaseModel):
description="Datetime of the first policy violation/anomaly run",
title="First Run At",
)
ticket_closure_last_run: Optional[datetime] = Field(
None,
description="Datetime of the last ticket closure run, last time the ticket was triggered to be closed/verified_and_waited",
title="Ticket Closure Last Run",
)
id: UUID4 = Field(
..., description="The unique identifier of the ticket", title="Id"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def _get_saved_views_serialize(
)

@validate_call
def mark_saved_view_as_default(
def toggle_default_to_saved_view(
self,
request: MarkViewAsDefaultRequest,
_request_timeout: Union[
Expand Down Expand Up @@ -453,7 +453,7 @@ def mark_saved_view_as_default(
:return: Returns the result object.
"""

_param = self._mark_saved_view_as_default_serialize(
_param = self._toggle_default_to_saved_view_serialize(
request=request,
_request_auth=_request_auth,
_content_type=_content_type,
Expand All @@ -474,7 +474,7 @@ def mark_saved_view_as_default(
response_types_map=_response_types_map,
).data

def _mark_saved_view_as_default_serialize(
def _toggle_default_to_saved_view_serialize(
self,
request: MarkViewAsDefaultRequest,
_request_auth,
Expand Down Expand Up @@ -517,7 +517,7 @@ def _mark_saved_view_as_default_serialize(

return self.api_client.param_serialize(
method="POST",
resource_path="/rpc/saved_view_service/mark_saved_view_as_default",
resource_path="/rpc/saved_view_service/toggle_default_to_saved_view",
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
Expand Down

0 comments on commit 9a8459d

Please sign in to comment.