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