|
31 | 31 | ) |
32 | 32 |
|
33 | 33 | if TYPE_CHECKING: |
34 | | - from .resources import spans, tasks, agents, events, states, tracker, messages |
| 34 | + from .resources import spans, tasks, agents, events, states, tracker, messages, deployment_history |
35 | 35 | from .resources.spans import SpansResource, AsyncSpansResource |
36 | 36 | from .resources.tasks import TasksResource, AsyncTasksResource |
37 | 37 | from .resources.agents import AgentsResource, AsyncAgentsResource |
38 | 38 | from .resources.events import EventsResource, AsyncEventsResource |
39 | 39 | from .resources.states import StatesResource, AsyncStatesResource |
40 | 40 | from .resources.tracker import TrackerResource, AsyncTrackerResource |
41 | 41 | from .resources.messages.messages import MessagesResource, AsyncMessagesResource |
| 42 | + from .resources.deployment_history import DeploymentHistoryResource, AsyncDeploymentHistoryResource |
42 | 43 |
|
43 | 44 | __all__ = [ |
44 | 45 | "ENVIRONMENTS", |
@@ -175,6 +176,12 @@ def tracker(self) -> TrackerResource: |
175 | 176 |
|
176 | 177 | return TrackerResource(self) |
177 | 178 |
|
| 179 | + @cached_property |
| 180 | + def deployment_history(self) -> DeploymentHistoryResource: |
| 181 | + from .resources.deployment_history import DeploymentHistoryResource |
| 182 | + |
| 183 | + return DeploymentHistoryResource(self) |
| 184 | + |
178 | 185 | @cached_property |
179 | 186 | def with_raw_response(self) -> AgentexWithRawResponse: |
180 | 187 | return AgentexWithRawResponse(self) |
@@ -409,6 +416,12 @@ def tracker(self) -> AsyncTrackerResource: |
409 | 416 |
|
410 | 417 | return AsyncTrackerResource(self) |
411 | 418 |
|
| 419 | + @cached_property |
| 420 | + def deployment_history(self) -> AsyncDeploymentHistoryResource: |
| 421 | + from .resources.deployment_history import AsyncDeploymentHistoryResource |
| 422 | + |
| 423 | + return AsyncDeploymentHistoryResource(self) |
| 424 | + |
412 | 425 | @cached_property |
413 | 426 | def with_raw_response(self) -> AsyncAgentexWithRawResponse: |
414 | 427 | return AsyncAgentexWithRawResponse(self) |
@@ -574,6 +587,12 @@ def tracker(self) -> tracker.TrackerResourceWithRawResponse: |
574 | 587 |
|
575 | 588 | return TrackerResourceWithRawResponse(self._client.tracker) |
576 | 589 |
|
| 590 | + @cached_property |
| 591 | + def deployment_history(self) -> deployment_history.DeploymentHistoryResourceWithRawResponse: |
| 592 | + from .resources.deployment_history import DeploymentHistoryResourceWithRawResponse |
| 593 | + |
| 594 | + return DeploymentHistoryResourceWithRawResponse(self._client.deployment_history) |
| 595 | + |
577 | 596 |
|
578 | 597 | class AsyncAgentexWithRawResponse: |
579 | 598 | _client: AsyncAgentex |
@@ -623,6 +642,12 @@ def tracker(self) -> tracker.AsyncTrackerResourceWithRawResponse: |
623 | 642 |
|
624 | 643 | return AsyncTrackerResourceWithRawResponse(self._client.tracker) |
625 | 644 |
|
| 645 | + @cached_property |
| 646 | + def deployment_history(self) -> deployment_history.AsyncDeploymentHistoryResourceWithRawResponse: |
| 647 | + from .resources.deployment_history import AsyncDeploymentHistoryResourceWithRawResponse |
| 648 | + |
| 649 | + return AsyncDeploymentHistoryResourceWithRawResponse(self._client.deployment_history) |
| 650 | + |
626 | 651 |
|
627 | 652 | class AgentexWithStreamedResponse: |
628 | 653 | _client: Agentex |
@@ -672,6 +697,12 @@ def tracker(self) -> tracker.TrackerResourceWithStreamingResponse: |
672 | 697 |
|
673 | 698 | return TrackerResourceWithStreamingResponse(self._client.tracker) |
674 | 699 |
|
| 700 | + @cached_property |
| 701 | + def deployment_history(self) -> deployment_history.DeploymentHistoryResourceWithStreamingResponse: |
| 702 | + from .resources.deployment_history import DeploymentHistoryResourceWithStreamingResponse |
| 703 | + |
| 704 | + return DeploymentHistoryResourceWithStreamingResponse(self._client.deployment_history) |
| 705 | + |
675 | 706 |
|
676 | 707 | class AsyncAgentexWithStreamedResponse: |
677 | 708 | _client: AsyncAgentex |
@@ -721,6 +752,12 @@ def tracker(self) -> tracker.AsyncTrackerResourceWithStreamingResponse: |
721 | 752 |
|
722 | 753 | return AsyncTrackerResourceWithStreamingResponse(self._client.tracker) |
723 | 754 |
|
| 755 | + @cached_property |
| 756 | + def deployment_history(self) -> deployment_history.AsyncDeploymentHistoryResourceWithStreamingResponse: |
| 757 | + from .resources.deployment_history import AsyncDeploymentHistoryResourceWithStreamingResponse |
| 758 | + |
| 759 | + return AsyncDeploymentHistoryResourceWithStreamingResponse(self._client.deployment_history) |
| 760 | + |
724 | 761 |
|
725 | 762 | Client = Agentex |
726 | 763 |
|
|
0 commit comments