diff --git a/onelens_backend_client_v2/models.py b/onelens_backend_client_v2/models.py index 0a8714c8..201e070d 100644 --- a/onelens_backend_client_v2/models.py +++ b/onelens_backend_client_v2/models.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: -# timestamp: 2024-11-03T13:11:00+00:00 +# timestamp: 2024-11-04T09:08:11+00:00 from __future__ import annotations @@ -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" ) @@ -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" ) @@ -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" ) diff --git a/onelens_backend_client_v2/rpc/saved_view_service_rpc_handler.py b/onelens_backend_client_v2/rpc/saved_view_service_rpc_handler.py index f0d3c078..6cae49fb 100644 --- a/onelens_backend_client_v2/rpc/saved_view_service_rpc_handler.py +++ b/onelens_backend_client_v2/rpc/saved_view_service_rpc_handler.py @@ -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[ @@ -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, @@ -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, @@ -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,