Skip to content

Commit fd82120

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit adc25f3 of spec repo
1 parent 5ee57eb commit fd82120

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3363
-47
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 1002 additions & 18 deletions
Large diffs are not rendered by default.

docs/datadog_api_client.v2.model.rst

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8460,13 +8460,62 @@ datadog\_api\_client.v2.model.fleet\_deployment\_file\_op module
84608460
:members:
84618461
:show-inheritance:
84628462

8463+
datadog\_api\_client.v2.model.fleet\_deployment\_host module
8464+
------------------------------------------------------------
8465+
8466+
.. automodule:: datadog_api_client.v2.model.fleet_deployment_host
8467+
:members:
8468+
:show-inheritance:
8469+
8470+
datadog\_api\_client.v2.model.fleet\_deployment\_host\_package module
8471+
---------------------------------------------------------------------
8472+
8473+
.. automodule:: datadog_api_client.v2.model.fleet_deployment_host_package
8474+
:members:
8475+
:show-inheritance:
8476+
8477+
datadog\_api\_client.v2.model.fleet\_deployment\_hosts\_page module
8478+
-------------------------------------------------------------------
8479+
8480+
.. automodule:: datadog_api_client.v2.model.fleet_deployment_hosts_page
8481+
:members:
8482+
:show-inheritance:
8483+
84638484
datadog\_api\_client.v2.model.fleet\_deployment\_operation module
84648485
-----------------------------------------------------------------
84658486

84668487
.. automodule:: datadog_api_client.v2.model.fleet_deployment_operation
84678488
:members:
84688489
:show-inheritance:
84698490

8491+
datadog\_api\_client.v2.model.fleet\_deployment\_package module
8492+
---------------------------------------------------------------
8493+
8494+
.. automodule:: datadog_api_client.v2.model.fleet_deployment_package
8495+
:members:
8496+
:show-inheritance:
8497+
8498+
datadog\_api\_client.v2.model.fleet\_deployment\_package\_upgrade\_attributes module
8499+
------------------------------------------------------------------------------------
8500+
8501+
.. automodule:: datadog_api_client.v2.model.fleet_deployment_package_upgrade_attributes
8502+
:members:
8503+
:show-inheritance:
8504+
8505+
datadog\_api\_client.v2.model.fleet\_deployment\_package\_upgrade\_create module
8506+
--------------------------------------------------------------------------------
8507+
8508+
.. automodule:: datadog_api_client.v2.model.fleet_deployment_package_upgrade_create
8509+
:members:
8510+
:show-inheritance:
8511+
8512+
datadog\_api\_client.v2.model.fleet\_deployment\_package\_upgrade\_create\_request module
8513+
-----------------------------------------------------------------------------------------
8514+
8515+
.. automodule:: datadog_api_client.v2.model.fleet_deployment_package_upgrade_create_request
8516+
:members:
8517+
:show-inheritance:
8518+
84708519
datadog\_api\_client.v2.model.fleet\_deployment\_resource\_type module
84718520
----------------------------------------------------------------------
84728521

@@ -8481,6 +8530,13 @@ datadog\_api\_client.v2.model.fleet\_deployment\_response module
84818530
:members:
84828531
:show-inheritance:
84838532

8533+
datadog\_api\_client.v2.model.fleet\_deployment\_response\_meta module
8534+
----------------------------------------------------------------------
8535+
8536+
.. automodule:: datadog_api_client.v2.model.fleet_deployment_response_meta
8537+
:members:
8538+
:show-inheritance:
8539+
84848540
datadog\_api\_client.v2.model.fleet\_deployments\_page module
84858541
-------------------------------------------------------------
84868542

@@ -8502,6 +8558,97 @@ datadog\_api\_client.v2.model.fleet\_deployments\_response\_meta module
85028558
:members:
85038559
:show-inheritance:
85048560

8561+
datadog\_api\_client.v2.model.fleet\_schedule module
8562+
----------------------------------------------------
8563+
8564+
.. automodule:: datadog_api_client.v2.model.fleet_schedule
8565+
:members:
8566+
:show-inheritance:
8567+
8568+
datadog\_api\_client.v2.model.fleet\_schedule\_attributes module
8569+
----------------------------------------------------------------
8570+
8571+
.. automodule:: datadog_api_client.v2.model.fleet_schedule_attributes
8572+
:members:
8573+
:show-inheritance:
8574+
8575+
datadog\_api\_client.v2.model.fleet\_schedule\_create module
8576+
------------------------------------------------------------
8577+
8578+
.. automodule:: datadog_api_client.v2.model.fleet_schedule_create
8579+
:members:
8580+
:show-inheritance:
8581+
8582+
datadog\_api\_client.v2.model.fleet\_schedule\_create\_attributes module
8583+
------------------------------------------------------------------------
8584+
8585+
.. automodule:: datadog_api_client.v2.model.fleet_schedule_create_attributes
8586+
:members:
8587+
:show-inheritance:
8588+
8589+
datadog\_api\_client.v2.model.fleet\_schedule\_create\_request module
8590+
---------------------------------------------------------------------
8591+
8592+
.. automodule:: datadog_api_client.v2.model.fleet_schedule_create_request
8593+
:members:
8594+
:show-inheritance:
8595+
8596+
datadog\_api\_client.v2.model.fleet\_schedule\_patch module
8597+
-----------------------------------------------------------
8598+
8599+
.. automodule:: datadog_api_client.v2.model.fleet_schedule_patch
8600+
:members:
8601+
:show-inheritance:
8602+
8603+
datadog\_api\_client.v2.model.fleet\_schedule\_patch\_attributes module
8604+
-----------------------------------------------------------------------
8605+
8606+
.. automodule:: datadog_api_client.v2.model.fleet_schedule_patch_attributes
8607+
:members:
8608+
:show-inheritance:
8609+
8610+
datadog\_api\_client.v2.model.fleet\_schedule\_patch\_request module
8611+
--------------------------------------------------------------------
8612+
8613+
.. automodule:: datadog_api_client.v2.model.fleet_schedule_patch_request
8614+
:members:
8615+
:show-inheritance:
8616+
8617+
datadog\_api\_client.v2.model.fleet\_schedule\_recurrence\_rule module
8618+
----------------------------------------------------------------------
8619+
8620+
.. automodule:: datadog_api_client.v2.model.fleet_schedule_recurrence_rule
8621+
:members:
8622+
:show-inheritance:
8623+
8624+
datadog\_api\_client.v2.model.fleet\_schedule\_resource\_type module
8625+
--------------------------------------------------------------------
8626+
8627+
.. automodule:: datadog_api_client.v2.model.fleet_schedule_resource_type
8628+
:members:
8629+
:show-inheritance:
8630+
8631+
datadog\_api\_client.v2.model.fleet\_schedule\_response module
8632+
--------------------------------------------------------------
8633+
8634+
.. automodule:: datadog_api_client.v2.model.fleet_schedule_response
8635+
:members:
8636+
:show-inheritance:
8637+
8638+
datadog\_api\_client.v2.model.fleet\_schedule\_status module
8639+
------------------------------------------------------------
8640+
8641+
.. automodule:: datadog_api_client.v2.model.fleet_schedule_status
8642+
:members:
8643+
:show-inheritance:
8644+
8645+
datadog\_api\_client.v2.model.fleet\_schedules\_response module
8646+
---------------------------------------------------------------
8647+
8648+
.. automodule:: datadog_api_client.v2.model.fleet_schedules_response
8649+
:members:
8650+
:show-inheritance:
8651+
85058652
datadog\_api\_client.v2.model.formula\_limit module
85068653
---------------------------------------------------
85078654

examples/v2/fleet-automation/CreateFleetDeploymentConfigure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Create a deployment returns "CREATED" response
2+
Create a configuration deployment returns "CREATED" response
33
"""
44

55
from datadog_api_client import ApiClient, Configuration
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
"""
2+
Create a package upgrade deployment returns "CREATED" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.fleet_automation_api import FleetAutomationApi
7+
from datadog_api_client.v2.model.fleet_deployment_package import FleetDeploymentPackage
8+
from datadog_api_client.v2.model.fleet_deployment_package_upgrade_attributes import (
9+
FleetDeploymentPackageUpgradeAttributes,
10+
)
11+
from datadog_api_client.v2.model.fleet_deployment_package_upgrade_create import FleetDeploymentPackageUpgradeCreate
12+
from datadog_api_client.v2.model.fleet_deployment_package_upgrade_create_request import (
13+
FleetDeploymentPackageUpgradeCreateRequest,
14+
)
15+
from datadog_api_client.v2.model.fleet_deployment_resource_type import FleetDeploymentResourceType
16+
17+
body = FleetDeploymentPackageUpgradeCreateRequest(
18+
data=FleetDeploymentPackageUpgradeCreate(
19+
attributes=FleetDeploymentPackageUpgradeAttributes(
20+
filter_query="env:prod AND service:web",
21+
target_packages=[
22+
FleetDeploymentPackage(
23+
name="datadog-agent",
24+
version="7.52.0",
25+
),
26+
],
27+
),
28+
type=FleetDeploymentResourceType.DEPLOYMENT,
29+
),
30+
)
31+
32+
configuration = Configuration()
33+
configuration.unstable_operations["create_fleet_deployment_upgrade"] = True
34+
with ApiClient(configuration) as api_client:
35+
api_instance = FleetAutomationApi(api_client)
36+
response = api_instance.create_fleet_deployment_upgrade(body=body)
37+
38+
print(response)
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
"""
2+
Create a schedule returns "CREATED" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.fleet_automation_api import FleetAutomationApi
7+
from datadog_api_client.v2.model.fleet_schedule_create import FleetScheduleCreate
8+
from datadog_api_client.v2.model.fleet_schedule_create_attributes import FleetScheduleCreateAttributes
9+
from datadog_api_client.v2.model.fleet_schedule_create_request import FleetScheduleCreateRequest
10+
from datadog_api_client.v2.model.fleet_schedule_recurrence_rule import FleetScheduleRecurrenceRule
11+
from datadog_api_client.v2.model.fleet_schedule_resource_type import FleetScheduleResourceType
12+
from datadog_api_client.v2.model.fleet_schedule_status import FleetScheduleStatus
13+
14+
body = FleetScheduleCreateRequest(
15+
data=FleetScheduleCreate(
16+
attributes=FleetScheduleCreateAttributes(
17+
name="Weekly Production Agent Updates",
18+
query="env:prod AND service:web",
19+
rule=FleetScheduleRecurrenceRule(
20+
days_of_week=[
21+
"Mon",
22+
"Wed",
23+
"Fri",
24+
],
25+
maintenance_window_duration=1200,
26+
start_maintenance_window="02:00",
27+
timezone="America/New_York",
28+
),
29+
status=FleetScheduleStatus.ACTIVE,
30+
version_to_latest=0,
31+
),
32+
type=FleetScheduleResourceType.SCHEDULE,
33+
),
34+
)
35+
36+
configuration = Configuration()
37+
configuration.unstable_operations["create_fleet_schedule"] = True
38+
with ApiClient(configuration) as api_client:
39+
api_instance = FleetAutomationApi(api_client)
40+
response = api_instance.create_fleet_schedule(body=body)
41+
42+
print(response)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
Delete a schedule returns "Schedule successfully deleted." 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["delete_fleet_schedule"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = FleetAutomationApi(api_client)
12+
api_instance.delete_fleet_schedule(
13+
id="id",
14+
)
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
"""
2-
Get a deployment by ID returns "OK" response
2+
Get a configuration deployment by ID returns "OK" response
33
"""
44

5-
from os import environ
65
from datadog_api_client import ApiClient, Configuration
76
from datadog_api_client.v2.api.fleet_automation_api import FleetAutomationApi
87

9-
# there is a valid "deployment" in the system
10-
DEPLOYMENT_ID = environ["DEPLOYMENT_ID"]
11-
128
configuration = Configuration()
139
configuration.unstable_operations["get_fleet_deployment"] = True
1410
with ApiClient(configuration) as api_client:
1511
api_instance = FleetAutomationApi(api_client)
1612
response = api_instance.get_fleet_deployment(
17-
deployment_id=DEPLOYMENT_ID,
13+
deployment_id="deployment_id",
1814
)
1915

2016
print(response)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"""
2+
Get a deployment by ID returns "OK" response
3+
"""
4+
5+
from os import environ
6+
from datadog_api_client import ApiClient, Configuration
7+
from datadog_api_client.v2.api.fleet_automation_api import FleetAutomationApi
8+
9+
# there is a valid "deployment" in the system
10+
DEPLOYMENT_ID = environ["DEPLOYMENT_ID"]
11+
12+
configuration = Configuration()
13+
configuration.unstable_operations["get_fleet_deployment"] = True
14+
with ApiClient(configuration) as api_client:
15+
api_instance = FleetAutomationApi(api_client)
16+
response = api_instance.get_fleet_deployment(
17+
deployment_id=DEPLOYMENT_ID,
18+
)
19+
20+
print(response)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
Get a schedule by ID 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_schedule"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = FleetAutomationApi(api_client)
12+
response = api_instance.get_fleet_schedule(
13+
id="id",
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 schedules 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_schedules"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = FleetAutomationApi(api_client)
12+
response = api_instance.list_fleet_schedules()
13+
14+
print(response)

0 commit comments

Comments
 (0)