mirror of
https://github.com/brygphilomena/pyironscales.git
synced 2026-04-01 16:24:29 +00:00
23 lines
900 B
Python
23 lines
900 B
Python
from pyironscales.endpoints.base.base_endpoint import IronscalesEndpoint
|
|
from pyironscales.endpoints.ironscales.IncidentIdClassifyIdEndpoint import IncidentIdClassifyIdEndpoint
|
|
|
|
|
|
class IncidentIdClassifyEndpoint(
|
|
IronscalesEndpoint,
|
|
):
|
|
def __init__(self, client, parent_endpoint=None) -> None:
|
|
IronscalesEndpoint.__init__(self, client, "classify", parent_endpoint=parent_endpoint)
|
|
|
|
def id(self, id: int) -> IncidentIdClassifyIdEndpoint:
|
|
"""
|
|
Sets the ID for this endpoint and returns an initialized IncidentIdClassifyIdEndpoint object to move down the chain.
|
|
|
|
Parameters:
|
|
id (int): The ID to set.
|
|
Returns:
|
|
IncidentIdClassifyIdEndpoint: The initialized IncidentIdClassifyIdEndpoint object.
|
|
"""
|
|
child = IncidentIdClassifyIdEndpoint(self.client, parent_endpoint=self)
|
|
child._id = id
|
|
return child
|