Skip to content

Commit 9463b21

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Revert "Mark v1 GCP APIs as deprecated (#2244)" (#1517)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 49fc4e4 commit 9463b21

File tree

3 files changed

+16
-27
lines changed

3 files changed

+16
-27
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-08 19:45:34.367347",
8-
"spec_repo_commit": "f3dd285f"
7+
"regenerated": "2023-06-08 21:02:55.696478",
8+
"spec_repo_commit": "5b401dab"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-06-08 19:45:34.380401",
13-
"spec_repo_commit": "f3dd285f"
12+
"regenerated": "2023-06-08 21:02:55.714580",
13+
"spec_repo_commit": "5b401dab"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23068,8 +23068,7 @@ paths:
2306823068
x-codegen-request-body-name: body
2306923069
/api/v1/integration/gcp:
2307023070
delete:
23071-
deprecated: true
23072-
description: This endpoint is deprecated. Delete a given Datadog-GCP integration.
23071+
description: Delete a given Datadog-GCP integration.
2307323072
operationId: DeleteGCPIntegration
2307423073
requestBody:
2307523074
content:
@@ -23105,9 +23104,7 @@ paths:
2310523104
- GCP Integration
2310623105
x-codegen-request-body-name: body
2310723106
get:
23108-
deprecated: true
23109-
description: This endpoint is deprecated. List all Datadog-GCP integrations
23110-
configured in your Datadog account.
23107+
description: List all Datadog-GCP integrations configured in your Datadog account.
2311123108
operationId: ListGCPIntegration
2311223109
responses:
2311323110
'200':
@@ -23134,8 +23131,7 @@ paths:
2313423131
tags:
2313523132
- GCP Integration
2313623133
post:
23137-
deprecated: true
23138-
description: This endpoint is deprecated. Create a Datadog-GCP integration.
23134+
description: Create a Datadog-GCP integration.
2313923135
operationId: CreateGCPIntegration
2314023136
requestBody:
2314123137
content:
@@ -23171,9 +23167,7 @@ paths:
2317123167
- GCP Integration
2317223168
x-codegen-request-body-name: body
2317323169
put:
23174-
deprecated: true
23175-
description: 'This endpoint is deprecated. Update a Datadog-GCP integrations
23176-
host_filters and/or auto-mute.
23170+
description: 'Update a Datadog-GCP integrations host_filters and/or auto-mute.
2317723171

2317823172
Requires a `project_id` and `client_email`, however these fields cannot be
2317923173
updated.

src/datadog_api_client/v1/api/gcp_integration_api.py

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

66
from typing import Any, Dict
7-
import warnings
87

98
from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
109
from datadog_api_client.configuration import Configuration
@@ -108,9 +107,9 @@ def create_gcp_integration(
108107
self,
109108
body: GCPAccount,
110109
) -> dict:
111-
"""Create a GCP integration. **Deprecated**.
110+
"""Create a GCP integration.
112111
113-
This endpoint is deprecated. Create a Datadog-GCP integration.
112+
Create a Datadog-GCP integration.
114113
115114
:param body: Create a Datadog-GCP integration.
116115
:type body: GCPAccount
@@ -119,16 +118,15 @@ def create_gcp_integration(
119118
kwargs: Dict[str, Any] = {}
120119
kwargs["body"] = body
121120

122-
warnings.warn("create_gcp_integration is deprecated", DeprecationWarning, stacklevel=2)
123121
return self._create_gcp_integration_endpoint.call_with_http_info(**kwargs)
124122

125123
def delete_gcp_integration(
126124
self,
127125
body: GCPAccount,
128126
) -> dict:
129-
"""Delete a GCP integration. **Deprecated**.
127+
"""Delete a GCP integration.
130128
131-
This endpoint is deprecated. Delete a given Datadog-GCP integration.
129+
Delete a given Datadog-GCP integration.
132130
133131
:param body: Delete a given Datadog-GCP integration.
134132
:type body: GCPAccount
@@ -137,29 +135,27 @@ def delete_gcp_integration(
137135
kwargs: Dict[str, Any] = {}
138136
kwargs["body"] = body
139137

140-
warnings.warn("delete_gcp_integration is deprecated", DeprecationWarning, stacklevel=2)
141138
return self._delete_gcp_integration_endpoint.call_with_http_info(**kwargs)
142139

143140
def list_gcp_integration(
144141
self,
145142
) -> GCPAccountListResponse:
146-
"""List all GCP integrations. **Deprecated**.
143+
"""List all GCP integrations.
147144
148-
This endpoint is deprecated. List all Datadog-GCP integrations configured in your Datadog account.
145+
List all Datadog-GCP integrations configured in your Datadog account.
149146
150147
:rtype: GCPAccountListResponse
151148
"""
152149
kwargs: Dict[str, Any] = {}
153-
warnings.warn("list_gcp_integration is deprecated", DeprecationWarning, stacklevel=2)
154150
return self._list_gcp_integration_endpoint.call_with_http_info(**kwargs)
155151

156152
def update_gcp_integration(
157153
self,
158154
body: GCPAccount,
159155
) -> dict:
160-
"""Update a GCP integration. **Deprecated**.
156+
"""Update a GCP integration.
161157
162-
This endpoint is deprecated. Update a Datadog-GCP integrations host_filters and/or auto-mute.
158+
Update a Datadog-GCP integrations host_filters and/or auto-mute.
163159
Requires a ``project_id`` and ``client_email`` , however these fields cannot be updated.
164160
If you need to update these fields, delete and use the create ( ``POST`` ) endpoint.
165161
The unspecified fields will keep their original values.
@@ -171,5 +167,4 @@ def update_gcp_integration(
171167
kwargs: Dict[str, Any] = {}
172168
kwargs["body"] = body
173169

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

0 commit comments

Comments
 (0)