Skip to content

Commit 50bf083

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6f99bc19 of spec repo
1 parent 267bfcd commit 50bf083

16 files changed

+47
-167
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2023-06-12 14:39:34.231825",
8-
"spec_repo_commit": "52c2288b"
7+
"regenerated": "2023-06-12 16:56:29.082636",
8+
"spec_repo_commit": "6f99bc19"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-06-12 14:39:34.243959",
13-
"spec_repo_commit": "52c2288b"
12+
"regenerated": "2023-06-12 16:56:29.095513",
13+
"spec_repo_commit": "6f99bc19"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 16 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -13436,14 +13436,6 @@ components:
1343613436
description: URL attached to the metrics.
1343713437
type: string
1343813438
type: object
13439-
SyntheticsDefaultLocations:
13440-
description: List of Synthetics default locations settings.
13441-
example:
13442-
- aws:eu-west-3
13443-
items:
13444-
description: Name of the location.
13445-
type: string
13446-
type: array
1344713439
SyntheticsDeleteTestsPayload:
1344813440
description: 'A JSON list of the ID or IDs of the Synthetic tests that you want
1344913441

@@ -16769,7 +16761,6 @@ components:
1676916761
iot_device_count:
1677016762
description: The total number of IoT devices during a given hour.
1677116763
format: int64
16772-
nullable: true
1677316764
type: integer
1677416765
org_name:
1677516766
description: The organization name.
@@ -16897,7 +16888,6 @@ components:
1689716888
retention:
1689816889
description: The retention period in days or "custom" for all custom retention
1689916890
usage.
16900-
nullable: true
1690116891
type: string
1690216892
type: object
1690316893
UsageLogsByRetentionResponse:
@@ -17022,7 +17012,6 @@ components:
1702217012
host_count:
1702317013
description: Contains the number of active NPM hosts.
1702417014
format: int64
17025-
nullable: true
1702617015
type: integer
1702717016
hour:
1702817017
description: The hour for the usage.
@@ -23079,7 +23068,9 @@ paths:
2307923068
x-codegen-request-body-name: body
2308023069
/api/v1/integration/gcp:
2308123070
delete:
23082-
description: Delete a given Datadog-GCP integration.
23071+
deprecated: true
23072+
description: "This endpoint is deprecated \u2013 use the V2 endpoints instead.
23073+
Delete a given Datadog-GCP integration."
2308323074
operationId: DeleteGCPIntegration
2308423075
requestBody:
2308523076
content:
@@ -23115,7 +23106,9 @@ paths:
2311523106
- GCP Integration
2311623107
x-codegen-request-body-name: body
2311723108
get:
23118-
description: List all Datadog-GCP integrations configured in your Datadog account.
23109+
deprecated: true
23110+
description: "This endpoint is deprecated \u2013 use the V2 endpoints instead.
23111+
List all Datadog-GCP integrations configured in your Datadog account."
2311923112
operationId: ListGCPIntegration
2312023113
responses:
2312123114
'200':
@@ -23142,7 +23135,9 @@ paths:
2314223135
tags:
2314323136
- GCP Integration
2314423137
post:
23145-
description: Create a Datadog-GCP integration.
23138+
deprecated: true
23139+
description: "This endpoint is deprecated \u2013 use the V2 endpoints instead.
23140+
Create a Datadog-GCP integration."
2314623141
operationId: CreateGCPIntegration
2314723142
requestBody:
2314823143
content:
@@ -23178,14 +23173,12 @@ paths:
2317823173
- GCP Integration
2317923174
x-codegen-request-body-name: body
2318023175
put:
23181-
description: 'Update a Datadog-GCP integrations host_filters and/or auto-mute.
23182-
23183-
Requires a `project_id` and `client_email`, however these fields cannot be
23184-
updated.
23185-
23186-
If you need to update these fields, delete and use the create (`POST`) endpoint.
23187-
23188-
The unspecified fields will keep their original values.'
23176+
deprecated: true
23177+
description: "This endpoint is deprecated \u2013 use the V2 endpoints instead.
23178+
Update a Datadog-GCP integrations host_filters and/or auto-mute.\nRequires
23179+
a `project_id` and `client_email`, however these fields cannot be updated.\nIf
23180+
you need to update these fields, delete and use the create (`POST`) endpoint.\nThe
23181+
unspecified fields will keep their original values."
2318923182
operationId: UpdateGCPIntegration
2319023183
requestBody:
2319123184
content:
@@ -25599,7 +25592,7 @@ paths:
2559925592
appKeyAuth: []
2560025593
- AuthZ:
2560125594
- monitors_read
25602-
summary: Get active downtimes for a monitor
25595+
summary: Get all downtimes for a monitor
2560325596
tags:
2560425597
- Downtimes
2560525598
x-codegen-request-body-name: body
@@ -27648,27 +27641,6 @@ paths:
2764827641
tags:
2764927642
- Synthetics
2765027643
x-codegen-request-body-name: body
27651-
/api/v1/synthetics/settings/default_locations:
27652-
get:
27653-
description: Get the default locations settings.
27654-
operationId: GetSyntheticsDefaultLocations
27655-
responses:
27656-
'200':
27657-
content:
27658-
application/json:
27659-
schema:
27660-
$ref: '#/components/schemas/SyntheticsDefaultLocations'
27661-
description: OK
27662-
'429':
27663-
$ref: '#/components/responses/TooManyRequestsResponse'
27664-
security:
27665-
- apiKeyAuth: []
27666-
appKeyAuth: []
27667-
- AuthZ:
27668-
- synthetics_default_settings_read
27669-
summary: Get the default locations
27670-
tags:
27671-
- Synthetics
2767227644
/api/v1/synthetics/tests:
2767327645
get:
2767427646
description: Get the list of all Synthetic tests.

examples/v1/downtimes/ListMonitorDowntimes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Get active downtimes for a monitor returns "OK" response
2+
Get all downtimes for a monitor returns "OK" response
33
"""
44

55
from datadog_api_client import ApiClient, Configuration

examples/v1/synthetics/GetSyntheticsDefaultLocations.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/v1/synthetics/GetSyntheticsDefaultLocations_746853380.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/datadog_api_client/v1/api/downtimes_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def list_monitor_downtimes(
299299
self,
300300
monitor_id: int,
301301
) -> List[Downtime]:
302-
"""Get active downtimes for a monitor.
302+
"""Get all downtimes for a monitor.
303303
304304
Get all active downtimes for the specified monitor.
305305

src/datadog_api_client/v1/api/gcp_integration_api.py

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from __future__ import annotations
55

66
from typing import Any, Dict
7+
import warnings
78

89
from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
910
from datadog_api_client.configuration import Configuration
@@ -107,9 +108,9 @@ def create_gcp_integration(
107108
self,
108109
body: GCPAccount,
109110
) -> dict:
110-
"""Create a GCP integration.
111+
"""Create a GCP integration. **Deprecated**.
111112
112-
Create a Datadog-GCP integration.
113+
This endpoint is deprecated – use the V2 endpoints instead. Create a Datadog-GCP integration.
113114
114115
:param body: Create a Datadog-GCP integration.
115116
:type body: GCPAccount
@@ -118,15 +119,16 @@ def create_gcp_integration(
118119
kwargs: Dict[str, Any] = {}
119120
kwargs["body"] = body
120121

122+
warnings.warn("create_gcp_integration is deprecated", DeprecationWarning, stacklevel=2)
121123
return self._create_gcp_integration_endpoint.call_with_http_info(**kwargs)
122124

123125
def delete_gcp_integration(
124126
self,
125127
body: GCPAccount,
126128
) -> dict:
127-
"""Delete a GCP integration.
129+
"""Delete a GCP integration. **Deprecated**.
128130
129-
Delete a given Datadog-GCP integration.
131+
This endpoint is deprecated – use the V2 endpoints instead. Delete a given Datadog-GCP integration.
130132
131133
:param body: Delete a given Datadog-GCP integration.
132134
:type body: GCPAccount
@@ -135,27 +137,29 @@ def delete_gcp_integration(
135137
kwargs: Dict[str, Any] = {}
136138
kwargs["body"] = body
137139

140+
warnings.warn("delete_gcp_integration is deprecated", DeprecationWarning, stacklevel=2)
138141
return self._delete_gcp_integration_endpoint.call_with_http_info(**kwargs)
139142

140143
def list_gcp_integration(
141144
self,
142145
) -> GCPAccountListResponse:
143-
"""List all GCP integrations.
146+
"""List all GCP integrations. **Deprecated**.
144147
145-
List all Datadog-GCP integrations configured in your Datadog account.
148+
This endpoint is deprecated – use the V2 endpoints instead. List all Datadog-GCP integrations configured in your Datadog account.
146149
147150
:rtype: GCPAccountListResponse
148151
"""
149152
kwargs: Dict[str, Any] = {}
153+
warnings.warn("list_gcp_integration is deprecated", DeprecationWarning, stacklevel=2)
150154
return self._list_gcp_integration_endpoint.call_with_http_info(**kwargs)
151155

152156
def update_gcp_integration(
153157
self,
154158
body: GCPAccount,
155159
) -> dict:
156-
"""Update a GCP integration.
160+
"""Update a GCP integration. **Deprecated**.
157161
158-
Update a Datadog-GCP integrations host_filters and/or auto-mute.
162+
This endpoint is deprecated – use the V2 endpoints instead. Update a Datadog-GCP integrations host_filters and/or auto-mute.
159163
Requires a ``project_id`` and ``client_email`` , however these fields cannot be updated.
160164
If you need to update these fields, delete and use the create ( ``POST`` ) endpoint.
161165
The unspecified fields will keep their original values.
@@ -167,4 +171,5 @@ def update_gcp_integration(
167171
kwargs: Dict[str, Any] = {}
168172
kwargs["body"] = body
169173

174+
warnings.warn("update_gcp_integration is deprecated", DeprecationWarning, stacklevel=2)
170175
return self._update_gcp_integration_endpoint.call_with_http_info(**kwargs)

src/datadog_api_client/v1/api/synthetics_api.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -508,24 +508,6 @@ def __init__(self, api_client=None):
508508
api_client=api_client,
509509
)
510510

511-
self._get_synthetics_default_locations_endpoint = _Endpoint(
512-
settings={
513-
"response_type": ([str],),
514-
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
515-
"endpoint_path": "/api/v1/synthetics/settings/default_locations",
516-
"operation_id": "get_synthetics_default_locations",
517-
"http_method": "GET",
518-
"version": "v1",
519-
"servers": None,
520-
},
521-
params_map={},
522-
headers_map={
523-
"accept": ["application/json"],
524-
"content_type": [],
525-
},
526-
api_client=api_client,
527-
)
528-
529511
self._get_test_endpoint = _Endpoint(
530512
settings={
531513
"response_type": (SyntheticsTestDetails,),
@@ -1112,18 +1094,6 @@ def get_synthetics_ci_batch(
11121094

11131095
return self._get_synthetics_ci_batch_endpoint.call_with_http_info(**kwargs)
11141096

1115-
def get_synthetics_default_locations(
1116-
self,
1117-
) -> List[str]:
1118-
"""Get the default locations.
1119-
1120-
Get the default locations settings.
1121-
1122-
:rtype: [str]
1123-
"""
1124-
kwargs: Dict[str, Any] = {}
1125-
return self._get_synthetics_default_locations_endpoint.call_with_http_info(**kwargs)
1126-
11271097
def get_test(
11281098
self,
11291099
public_id: str,

src/datadog_api_client/v1/model/usage_iot_hour.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
ModelNormal,
1010
cached_property,
1111
datetime,
12-
none_type,
1312
unset,
1413
UnsetType,
1514
)
@@ -20,7 +19,7 @@ class UsageIoTHour(ModelNormal):
2019
def openapi_types(_):
2120
return {
2221
"hour": (datetime,),
23-
"iot_device_count": (int, none_type),
22+
"iot_device_count": (int,),
2423
"org_name": (str,),
2524
"public_id": (str,),
2625
}
@@ -35,7 +34,7 @@ def openapi_types(_):
3534
def __init__(
3635
self_,
3736
hour: Union[datetime, UnsetType] = unset,
38-
iot_device_count: Union[int, none_type, UnsetType] = unset,
37+
iot_device_count: Union[int, UnsetType] = unset,
3938
org_name: Union[str, UnsetType] = unset,
4039
public_id: Union[str, UnsetType] = unset,
4140
**kwargs,
@@ -47,7 +46,7 @@ def __init__(
4746
:type hour: datetime, optional
4847
4948
:param iot_device_count: The total number of IoT devices during a given hour.
50-
:type iot_device_count: int, none_type, optional
49+
:type iot_device_count: int, optional
5150
5251
:param org_name: The organization name.
5352
:type org_name: str, optional

src/datadog_api_client/v1/model/usage_logs_by_retention_hour.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def openapi_types(_):
2323
"org_name": (str,),
2424
"public_id": (str,),
2525
"rehydrated_indexed_events_count": (int, none_type),
26-
"retention": (str, none_type),
26+
"retention": (str,),
2727
}
2828

2929
attribute_map = {
@@ -42,7 +42,7 @@ def __init__(
4242
org_name: Union[str, UnsetType] = unset,
4343
public_id: Union[str, UnsetType] = unset,
4444
rehydrated_indexed_events_count: Union[int, none_type, UnsetType] = unset,
45-
retention: Union[str, none_type, UnsetType] = unset,
45+
retention: Union[str, UnsetType] = unset,
4646
**kwargs,
4747
):
4848
"""
@@ -64,7 +64,7 @@ def __init__(
6464
:type rehydrated_indexed_events_count: int, none_type, optional
6565
6666
:param retention: The retention period in days or "custom" for all custom retention usage.
67-
:type retention: str, none_type, optional
67+
:type retention: str, optional
6868
"""
6969
if indexed_events_count is not unset:
7070
kwargs["indexed_events_count"] = indexed_events_count

0 commit comments

Comments
 (0)