4
4
from __future__ import annotations
5
5
6
6
from typing import Any , Dict
7
+ import warnings
7
8
8
9
from datadog_api_client .api_client import ApiClient , Endpoint as _Endpoint
9
10
from datadog_api_client .configuration import Configuration
@@ -107,9 +108,9 @@ def create_gcp_integration(
107
108
self ,
108
109
body : GCPAccount ,
109
110
) -> dict :
110
- """Create a GCP integration.
111
+ """Create a GCP integration. **Deprecated**.
111
112
112
- Create a Datadog-GCP integration.
113
+ This endpoint is deprecated – use the V2 endpoints instead. Create a Datadog-GCP integration.
113
114
114
115
:param body: Create a Datadog-GCP integration.
115
116
:type body: GCPAccount
@@ -118,15 +119,16 @@ def create_gcp_integration(
118
119
kwargs : Dict [str , Any ] = {}
119
120
kwargs ["body" ] = body
120
121
122
+ warnings .warn ("create_gcp_integration is deprecated" , DeprecationWarning , stacklevel = 2 )
121
123
return self ._create_gcp_integration_endpoint .call_with_http_info (** kwargs )
122
124
123
125
def delete_gcp_integration (
124
126
self ,
125
127
body : GCPAccount ,
126
128
) -> dict :
127
- """Delete a GCP integration.
129
+ """Delete a GCP integration. **Deprecated**.
128
130
129
- Delete a given Datadog-GCP integration.
131
+ This endpoint is deprecated – use the V2 endpoints instead. Delete a given Datadog-GCP integration.
130
132
131
133
:param body: Delete a given Datadog-GCP integration.
132
134
:type body: GCPAccount
@@ -135,27 +137,29 @@ def delete_gcp_integration(
135
137
kwargs : Dict [str , Any ] = {}
136
138
kwargs ["body" ] = body
137
139
140
+ warnings .warn ("delete_gcp_integration is deprecated" , DeprecationWarning , stacklevel = 2 )
138
141
return self ._delete_gcp_integration_endpoint .call_with_http_info (** kwargs )
139
142
140
143
def list_gcp_integration (
141
144
self ,
142
145
) -> GCPAccountListResponse :
143
- """List all GCP integrations.
146
+ """List all GCP integrations. **Deprecated**.
144
147
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.
146
149
147
150
:rtype: GCPAccountListResponse
148
151
"""
149
152
kwargs : Dict [str , Any ] = {}
153
+ warnings .warn ("list_gcp_integration is deprecated" , DeprecationWarning , stacklevel = 2 )
150
154
return self ._list_gcp_integration_endpoint .call_with_http_info (** kwargs )
151
155
152
156
def update_gcp_integration (
153
157
self ,
154
158
body : GCPAccount ,
155
159
) -> dict :
156
- """Update a GCP integration.
160
+ """Update a GCP integration. **Deprecated**.
157
161
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.
159
163
Requires a ``project_id`` and ``client_email`` , however these fields cannot be updated.
160
164
If you need to update these fields, delete and use the create ( ``POST`` ) endpoint.
161
165
The unspecified fields will keep their original values.
@@ -167,4 +171,5 @@ def update_gcp_integration(
167
171
kwargs : Dict [str , Any ] = {}
168
172
kwargs ["body" ] = body
169
173
174
+ warnings .warn ("update_gcp_integration is deprecated" , DeprecationWarning , stacklevel = 2 )
170
175
return self ._update_gcp_integration_endpoint .call_with_http_info (** kwargs )
0 commit comments