Skip to content

Commit 680fa6f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c854967 of spec repo
1 parent 27f9b78 commit 680fa6f

26 files changed

+2337
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 638 additions & 1 deletion
Large diffs are not rendered by default.

docs/datadog_api_client.v2.model.rst

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8859,6 +8859,55 @@ datadog\_api\_client.v2.model.flaky\_tests\_search\_sort module
88598859
:members:
88608860
:show-inheritance:
88618861

8862+
datadog\_api\_client.v2.model.fleet\_agent\_attributes module
8863+
-------------------------------------------------------------
8864+
8865+
.. automodule:: datadog_api_client.v2.model.fleet_agent_attributes
8866+
:members:
8867+
:show-inheritance:
8868+
8869+
datadog\_api\_client.v2.model.fleet\_agent\_attributes\_tags\_items module
8870+
--------------------------------------------------------------------------
8871+
8872+
.. automodule:: datadog_api_client.v2.model.fleet_agent_attributes_tags_items
8873+
:members:
8874+
:show-inheritance:
8875+
8876+
datadog\_api\_client.v2.model.fleet\_agent\_info module
8877+
-------------------------------------------------------
8878+
8879+
.. automodule:: datadog_api_client.v2.model.fleet_agent_info
8880+
:members:
8881+
:show-inheritance:
8882+
8883+
datadog\_api\_client.v2.model.fleet\_agent\_info\_attributes module
8884+
-------------------------------------------------------------------
8885+
8886+
.. automodule:: datadog_api_client.v2.model.fleet_agent_info_attributes
8887+
:members:
8888+
:show-inheritance:
8889+
8890+
datadog\_api\_client.v2.model.fleet\_agent\_info\_details module
8891+
----------------------------------------------------------------
8892+
8893+
.. automodule:: datadog_api_client.v2.model.fleet_agent_info_details
8894+
:members:
8895+
:show-inheritance:
8896+
8897+
datadog\_api\_client.v2.model.fleet\_agent\_info\_resource\_type module
8898+
-----------------------------------------------------------------------
8899+
8900+
.. automodule:: datadog_api_client.v2.model.fleet_agent_info_resource_type
8901+
:members:
8902+
:show-inheritance:
8903+
8904+
datadog\_api\_client.v2.model.fleet\_agent\_info\_response module
8905+
-----------------------------------------------------------------
8906+
8907+
.. automodule:: datadog_api_client.v2.model.fleet_agent_info_response
8908+
:members:
8909+
:show-inheritance:
8910+
88628911
datadog\_api\_client.v2.model.fleet\_agent\_version\_attributes module
88638912
----------------------------------------------------------------------
88648913

@@ -8880,6 +8929,48 @@ datadog\_api\_client.v2.model.fleet\_agent\_versions\_response module
88808929
:members:
88818930
:show-inheritance:
88828931

8932+
datadog\_api\_client.v2.model.fleet\_agents\_response module
8933+
------------------------------------------------------------
8934+
8935+
.. automodule:: datadog_api_client.v2.model.fleet_agents_response
8936+
:members:
8937+
:show-inheritance:
8938+
8939+
datadog\_api\_client.v2.model.fleet\_agents\_response\_data module
8940+
------------------------------------------------------------------
8941+
8942+
.. automodule:: datadog_api_client.v2.model.fleet_agents_response_data
8943+
:members:
8944+
:show-inheritance:
8945+
8946+
datadog\_api\_client.v2.model.fleet\_agents\_response\_data\_attributes module
8947+
------------------------------------------------------------------------------
8948+
8949+
.. automodule:: datadog_api_client.v2.model.fleet_agents_response_data_attributes
8950+
:members:
8951+
:show-inheritance:
8952+
8953+
datadog\_api\_client.v2.model.fleet\_agents\_response\_meta module
8954+
------------------------------------------------------------------
8955+
8956+
.. automodule:: datadog_api_client.v2.model.fleet_agents_response_meta
8957+
:members:
8958+
:show-inheritance:
8959+
8960+
datadog\_api\_client.v2.model.fleet\_configuration\_file module
8961+
---------------------------------------------------------------
8962+
8963+
.. automodule:: datadog_api_client.v2.model.fleet_configuration_file
8964+
:members:
8965+
:show-inheritance:
8966+
8967+
datadog\_api\_client.v2.model.fleet\_configuration\_layer module
8968+
----------------------------------------------------------------
8969+
8970+
.. automodule:: datadog_api_client.v2.model.fleet_configuration_layer
8971+
:members:
8972+
:show-inheritance:
8973+
88838974
datadog\_api\_client.v2.model.fleet\_deployment module
88848975
------------------------------------------------------
88858976

@@ -9020,6 +9111,34 @@ datadog\_api\_client.v2.model.fleet\_deployments\_response\_meta module
90209111
:members:
90219112
:show-inheritance:
90229113

9114+
datadog\_api\_client.v2.model.fleet\_detected\_integration module
9115+
-----------------------------------------------------------------
9116+
9117+
.. automodule:: datadog_api_client.v2.model.fleet_detected_integration
9118+
:members:
9119+
:show-inheritance:
9120+
9121+
datadog\_api\_client.v2.model.fleet\_integration\_details module
9122+
----------------------------------------------------------------
9123+
9124+
.. automodule:: datadog_api_client.v2.model.fleet_integration_details
9125+
:members:
9126+
:show-inheritance:
9127+
9128+
datadog\_api\_client.v2.model.fleet\_integrations\_by\_status module
9129+
--------------------------------------------------------------------
9130+
9131+
.. automodule:: datadog_api_client.v2.model.fleet_integrations_by_status
9132+
:members:
9133+
:show-inheritance:
9134+
9135+
datadog\_api\_client.v2.model.fleet\_otel\_collector module
9136+
-----------------------------------------------------------
9137+
9138+
.. automodule:: datadog_api_client.v2.model.fleet_otel_collector
9139+
:members:
9140+
:show-inheritance:
9141+
90239142
datadog\_api\_client.v2.model.fleet\_schedule module
90249143
----------------------------------------------------
90259144

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
Get detailed information about an agent returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.fleet_automation_api import FleetAutomationApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["get_fleet_agent_info"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = FleetAutomationApi(api_client)
12+
response = api_instance.get_fleet_agent_info(
13+
agent_key="agent_key",
14+
)
15+
16+
print(response)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
List all Datadog Agents returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.fleet_automation_api import FleetAutomationApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["list_fleet_agents"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = FleetAutomationApi(api_client)
12+
response = api_instance.list_fleet_agents()
13+
14+
print(response)

src/datadog_api_client/configuration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,10 @@ def __init__(
252252
"v2.create_fleet_deployment_upgrade": False,
253253
"v2.create_fleet_schedule": False,
254254
"v2.delete_fleet_schedule": False,
255+
"v2.get_fleet_agent_info": False,
255256
"v2.get_fleet_deployment": False,
256257
"v2.get_fleet_schedule": False,
258+
"v2.list_fleet_agents": False,
257259
"v2.list_fleet_agent_versions": False,
258260
"v2.list_fleet_deployments": False,
259261
"v2.list_fleet_schedules": False,

src/datadog_api_client/v2/api/fleet_automation_api.py

Lines changed: 154 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
unset,
1313
)
1414
from datadog_api_client.v2.model.fleet_agent_versions_response import FleetAgentVersionsResponse
15+
from datadog_api_client.v2.model.fleet_agents_response import FleetAgentsResponse
16+
from datadog_api_client.v2.model.fleet_agent_info_response import FleetAgentInfoResponse
1517
from datadog_api_client.v2.model.fleet_deployments_response import FleetDeploymentsResponse
1618
from datadog_api_client.v2.model.fleet_deployment_response import FleetDeploymentResponse
1719
from datadog_api_client.v2.model.fleet_deployment_configure_create_request import FleetDeploymentConfigureCreateRequest
@@ -153,6 +155,29 @@ def __init__(self, api_client=None):
153155
api_client=api_client,
154156
)
155157

158+
self._get_fleet_agent_info_endpoint = _Endpoint(
159+
settings={
160+
"response_type": (FleetAgentInfoResponse,),
161+
"auth": ["apiKeyAuth", "appKeyAuth"],
162+
"endpoint_path": "/api/unstable/fleet/agents/{agent_key}",
163+
"operation_id": "get_fleet_agent_info",
164+
"http_method": "GET",
165+
"version": "v2",
166+
},
167+
params_map={
168+
"agent_key": {
169+
"required": True,
170+
"openapi_types": (str,),
171+
"attribute": "agent_key",
172+
"location": "path",
173+
},
174+
},
175+
headers_map={
176+
"accept": ["application/json"],
177+
},
178+
api_client=api_client,
179+
)
180+
156181
self._get_fleet_deployment_endpoint = _Endpoint(
157182
settings={
158183
"response_type": (FleetDeploymentResponse,),
@@ -212,11 +237,65 @@ def __init__(self, api_client=None):
212237
api_client=api_client,
213238
)
214239

240+
self._list_fleet_agents_endpoint = _Endpoint(
241+
settings={
242+
"response_type": (FleetAgentsResponse,),
243+
"auth": ["apiKeyAuth", "appKeyAuth"],
244+
"endpoint_path": "/api/unstable/fleet/agents",
245+
"operation_id": "list_fleet_agents",
246+
"http_method": "GET",
247+
"version": "v2",
248+
},
249+
params_map={
250+
"page_number": {
251+
"validation": {
252+
"inclusive_minimum": 1,
253+
},
254+
"openapi_types": (int,),
255+
"attribute": "page_number",
256+
"location": "query",
257+
},
258+
"page_size": {
259+
"validation": {
260+
"inclusive_maximum": 100,
261+
"inclusive_minimum": 1,
262+
},
263+
"openapi_types": (int,),
264+
"attribute": "page_size",
265+
"location": "query",
266+
},
267+
"sort_attribute": {
268+
"openapi_types": (str,),
269+
"attribute": "sort_attribute",
270+
"location": "query",
271+
},
272+
"sort_descending": {
273+
"openapi_types": (bool,),
274+
"attribute": "sort_descending",
275+
"location": "query",
276+
},
277+
"tags": {
278+
"openapi_types": (str,),
279+
"attribute": "tags",
280+
"location": "query",
281+
},
282+
"filter": {
283+
"openapi_types": (str,),
284+
"attribute": "filter",
285+
"location": "query",
286+
},
287+
},
288+
headers_map={
289+
"accept": ["application/json"],
290+
},
291+
api_client=api_client,
292+
)
293+
215294
self._list_fleet_agent_versions_endpoint = _Endpoint(
216295
settings={
217296
"response_type": (FleetAgentVersionsResponse,),
218297
"auth": ["apiKeyAuth", "appKeyAuth"],
219-
"endpoint_path": "/api/unstable/fleet/agents",
298+
"endpoint_path": "/api/unstable/fleet/agent_versions",
220299
"operation_id": "list_fleet_agent_versions",
221300
"http_method": "GET",
222301
"version": "v2",
@@ -456,6 +535,29 @@ def delete_fleet_schedule(
456535

457536
return self._delete_fleet_schedule_endpoint.call_with_http_info(**kwargs)
458537

538+
def get_fleet_agent_info(
539+
self,
540+
agent_key: str,
541+
) -> FleetAgentInfoResponse:
542+
"""Get detailed information about an agent.
543+
544+
Retrieve detailed information about a specific Datadog Agent.
545+
This endpoint returns comprehensive information about an agent including:
546+
547+
* Agent details and metadata
548+
* Configured integrations organized by status (working, warning, error, missing)
549+
* Detected integrations
550+
* Configuration files and layers
551+
552+
:param agent_key: The unique identifier (agent key) for the Datadog Agent.
553+
:type agent_key: str
554+
:rtype: FleetAgentInfoResponse
555+
"""
556+
kwargs: Dict[str, Any] = {}
557+
kwargs["agent_key"] = agent_key
558+
559+
return self._get_fleet_agent_info_endpoint.call_with_http_info(**kwargs)
560+
459561
def get_fleet_deployment(
460562
self,
461563
deployment_id: str,
@@ -532,6 +634,57 @@ def get_fleet_schedule(
532634

533635
return self._get_fleet_schedule_endpoint.call_with_http_info(**kwargs)
534636

637+
def list_fleet_agents(
638+
self,
639+
*,
640+
page_number: Union[int, UnsetType] = unset,
641+
page_size: Union[int, UnsetType] = unset,
642+
sort_attribute: Union[str, UnsetType] = unset,
643+
sort_descending: Union[bool, UnsetType] = unset,
644+
tags: Union[str, UnsetType] = unset,
645+
filter: Union[str, UnsetType] = unset,
646+
) -> FleetAgentsResponse:
647+
"""List all Datadog Agents.
648+
649+
Retrieve a paginated list of all Datadog Agents.
650+
This endpoint returns a paginated list of all Datadog Agents with support for pagination, sorting, and filtering.
651+
Use the ``page_number`` and ``page_size`` query parameters to paginate through results.
652+
653+
:param page_number: Page number for pagination (must be greater than 0).
654+
:type page_number: int, optional
655+
:param page_size: Number of results per page (must be greater than 0 and less than or equal to 100).
656+
:type page_size: int, optional
657+
:param sort_attribute: Attribute to sort by.
658+
:type sort_attribute: str, optional
659+
:param sort_descending: Sort order (true for descending, false for ascending).
660+
:type sort_descending: bool, optional
661+
:param tags: Comma-separated list of tags to filter agents.
662+
:type tags: str, optional
663+
:param filter: Filter string for narrowing down agent results.
664+
:type filter: str, optional
665+
:rtype: FleetAgentsResponse
666+
"""
667+
kwargs: Dict[str, Any] = {}
668+
if page_number is not unset:
669+
kwargs["page_number"] = page_number
670+
671+
if page_size is not unset:
672+
kwargs["page_size"] = page_size
673+
674+
if sort_attribute is not unset:
675+
kwargs["sort_attribute"] = sort_attribute
676+
677+
if sort_descending is not unset:
678+
kwargs["sort_descending"] = sort_descending
679+
680+
if tags is not unset:
681+
kwargs["tags"] = tags
682+
683+
if filter is not unset:
684+
kwargs["filter"] = filter
685+
686+
return self._list_fleet_agents_endpoint.call_with_http_info(**kwargs)
687+
535688
def list_fleet_agent_versions(
536689
self,
537690
) -> FleetAgentVersionsResponse:

0 commit comments

Comments
 (0)