Skip to content

Commit eaca25b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 76db8f5 of spec repo
1 parent 110582d commit eaca25b

File tree

5 files changed

+38
-44
lines changed

5 files changed

+38
-44
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27347,6 +27347,7 @@ paths:
2734727347
- hosts_read
2734827348
/api/v1/integration/aws:
2734927349
delete:
27350+
deprecated: true
2735027351
description: Delete a Datadog-AWS integration matching the specified `account_id`
2735127352
and `role_name parameters`.
2735227353
operationId: DeleteAWSAccount
@@ -27393,6 +27394,7 @@ paths:
2739327394
permissions:
2739427395
- aws_configurations_manage
2739527396
get:
27397+
deprecated: true
2739627398
description: List all Datadog-AWS integrations available in your Datadog organization.
2739727399
operationId: ListAWSAccounts
2739827400
parameters:
@@ -27443,6 +27445,7 @@ paths:
2744327445
permissions:
2744427446
- aws_configuration_read
2744527447
post:
27448+
deprecated: true
2744627449
description: 'Create a Datadog-Amazon Web Services integration.
2744727450

2744827451
Using the `POST` method updates your integration configuration
@@ -27494,6 +27497,7 @@ paths:
2749427497
permissions:
2749527498
- aws_configurations_manage
2749627499
put:
27500+
deprecated: true
2749727501
description: Update a Datadog-Amazon Web Services integration.
2749827502
operationId: UpdateAWSAccount
2749927503
parameters:
@@ -27563,6 +27567,7 @@ paths:
2756327567
- aws_configuration_edit
2756427568
/api/v1/integration/aws/available_namespace_rules:
2756527569
get:
27570+
deprecated: true
2756627571
description: List all namespace rules for a given Datadog-AWS integration. This
2756727572
endpoint takes no arguments.
2756827573
operationId: ListAvailableAWSNamespaces
@@ -27708,6 +27713,7 @@ paths:
2770827713
- manage_integrations
2770927714
/api/v1/integration/aws/filtering:
2771027715
delete:
27716+
deprecated: true
2771127717
description: Delete a tag filtering entry.
2771227718
operationId: DeleteAWSTagFilter
2771327719
requestBody:
@@ -27749,6 +27755,7 @@ paths:
2774927755
permissions:
2775027756
- aws_configuration_edit
2775127757
get:
27758+
deprecated: true
2775227759
description: Get all AWS tag filters.
2775327760
operationId: ListAWSTagFilters
2775427761
parameters:
@@ -27787,6 +27794,7 @@ paths:
2778727794
permissions:
2778827795
- aws_configuration_read
2778927796
post:
27797+
deprecated: true
2779027798
description: Set an AWS tag filter.
2779127799
operationId: CreateAWSTagFilter
2779227800
requestBody:
@@ -27832,6 +27840,7 @@ paths:
2783227840
- aws_configuration_edit
2783327841
/api/v1/integration/aws/generate_new_external_id:
2783427842
put:
27843+
deprecated: true
2783527844
description: Generate a new AWS external ID for a given AWS account ID and role
2783627845
name pair.
2783727846
operationId: CreateNewAWSExternalID
@@ -27917,6 +27926,7 @@ paths:
2791727926
permissions:
2791827927
- aws_configuration_edit
2791927928
get:
27929+
deprecated: true
2792027930
description: List all Datadog-AWS Logs integrations configured in your Datadog
2792127931
account.
2792227932
operationId: ListAWSLogsIntegrations
@@ -28058,6 +28068,7 @@ paths:
2805828068
- aws_configuration_read
2805928069
/api/v1/integration/aws/logs/services:
2806028070
get:
28071+
deprecated: true
2806128072
description: Get the list of current AWS services that Datadog offers automatic
2806228073
log collection. Use returned service IDs with the services parameter for the
2806328074
Enable an AWS service log collection API endpoint.
@@ -28100,6 +28111,7 @@ paths:
2810028111
permissions:
2810128112
- aws_configuration_read
2810228113
post:
28114+
deprecated: true
2810328115
description: Enable automatic log collection for a list of services. This should
2810428116
be run after running `CreateAWSLambdaARN` to save the configuration.
2810528117
operationId: EnableAWSLogServices

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -54650,9 +54650,6 @@ paths:
5465054650
operator: OR
5465154651
permissions:
5465254652
- aws_configuration_read
54653-
x-unstable: '**Note: This endpoint is in Preview. If you have any feedback,
54654-
54655-
contact [Datadog support](https://docs.datadoghq.com/help/).**'
5465654653
post:
5465754654
description: Create a new AWS Account Integration Config.
5465854655
operationId: CreateAWSAccount
@@ -54685,9 +54682,6 @@ paths:
5468554682
operator: OR
5468654683
permissions:
5468754684
- aws_configurations_manage
54688-
x-unstable: '**Note: This endpoint is in Preview. If you have any feedback,
54689-
54690-
contact [Datadog support](https://docs.datadoghq.com/help/).**'
5469154685
/api/v2/integration/aws/accounts/{aws_account_config_id}:
5469254686
delete:
5469354687
description: Delete an AWS Account Integration Config by config ID.
@@ -54712,9 +54706,6 @@ paths:
5471254706
operator: OR
5471354707
permissions:
5471454708
- aws_configurations_manage
54715-
x-unstable: '**Note: This endpoint is in Preview. If you have any feedback,
54716-
54717-
contact [Datadog support](https://docs.datadoghq.com/help/).**'
5471854709
get:
5471954710
description: Get an AWS Account Integration Config by config ID.
5472054711
operationId: GetAWSAccount
@@ -54742,9 +54733,6 @@ paths:
5474254733
operator: OR
5474354734
permissions:
5474454735
- aws_configuration_read
54745-
x-unstable: '**Note: This endpoint is in Preview. If you have any feedback,
54746-
54747-
contact [Datadog support](https://docs.datadoghq.com/help/).**'
5474854736
patch:
5474954737
description: Update an AWS Account Integration Config by config ID.
5475054738
operationId: UpdateAWSAccount
@@ -54779,9 +54767,6 @@ paths:
5477954767
operator: OR
5478054768
permissions:
5478154769
- aws_configuration_edit
54782-
x-unstable: '**Note: This endpoint is in Preview. If you have any feedback,
54783-
54784-
contact [Datadog support](https://docs.datadoghq.com/help/).**'
5478554770
/api/v2/integration/aws/available_namespaces:
5478654771
get:
5478754772
description: Get a list of available AWS CloudWatch namespaces that can send
@@ -54805,9 +54790,6 @@ paths:
5480554790
operator: OR
5480654791
permissions:
5480754792
- aws_configuration_read
54808-
x-unstable: '**Note: This endpoint is in Preview. If you have any feedback,
54809-
54810-
contact [Datadog support](https://docs.datadoghq.com/help/).**'
5481154793
/api/v2/integration/aws/generate_new_external_id:
5481254794
post:
5481354795
description: Generate a new external ID for AWS role-based authentication.
@@ -54830,9 +54812,6 @@ paths:
5483054812
operator: OR
5483154813
permissions:
5483254814
- aws_configuration_edit
54833-
x-unstable: '**Note: This endpoint is in Preview. If you have any feedback,
54834-
54835-
contact [Datadog support](https://docs.datadoghq.com/help/).**'
5483654815
/api/v2/integration/aws/iam_permissions:
5483754816
get:
5483854817
description: Get all AWS IAM permissions required for the AWS integration.
@@ -54871,9 +54850,6 @@ paths:
5487154850
operator: OR
5487254851
permissions:
5487354852
- aws_configuration_read
54874-
x-unstable: '**Note: This endpoint is in public beta. If you have any feedback,
54875-
54876-
contact [Datadog support](https://docs.datadoghq.com/help/).**'
5487754853
/api/v2/integration/gcp/accounts:
5487854854
get:
5487954855
description: List all GCP STS-enabled service accounts configured in your Datadog

src/datadog_api_client/configuration.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,6 @@ def __init__(
290290
"v2.update_incident_integration": False,
291291
"v2.update_incident_todo": False,
292292
"v2.update_incident_type": False,
293-
"v2.create_aws_account": False,
294-
"v2.create_new_aws_external_id": False,
295-
"v2.delete_aws_account": False,
296-
"v2.get_aws_account": False,
297-
"v2.list_aws_accounts": False,
298-
"v2.list_aws_namespaces": False,
299-
"v2.update_aws_account": False,
300-
"v2.list_aws_logs_services": False,
301293
"v2.create_monitor_user_template": False,
302294
"v2.delete_monitor_user_template": False,
303295
"v2.get_monitor_user_template": False,

src/datadog_api_client/v1/api/aws_integration_api.py

Lines changed: 19 additions & 9 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, List, Union
7+
import warnings
78

89
from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
910
from datadog_api_client.configuration import Configuration
@@ -302,7 +303,7 @@ def create_aws_account(
302303
self,
303304
body: AWSAccount,
304305
) -> AWSAccountCreateResponse:
305-
"""Create an AWS integration.
306+
"""Create an AWS integration. **Deprecated**.
306307
307308
Create a Datadog-Amazon Web Services integration.
308309
Using the ``POST`` method updates your integration configuration
@@ -316,6 +317,7 @@ def create_aws_account(
316317
kwargs: Dict[str, Any] = {}
317318
kwargs["body"] = body
318319

320+
warnings.warn("create_aws_account is deprecated", DeprecationWarning, stacklevel=2)
319321
return self._create_aws_account_endpoint.call_with_http_info(**kwargs)
320322

321323
def create_aws_event_bridge_source(
@@ -339,7 +341,7 @@ def create_aws_tag_filter(
339341
self,
340342
body: AWSTagFilterCreateRequest,
341343
) -> dict:
342-
"""Set an AWS tag filter.
344+
"""Set an AWS tag filter. **Deprecated**.
343345
344346
Set an AWS tag filter.
345347
@@ -351,13 +353,14 @@ def create_aws_tag_filter(
351353
kwargs: Dict[str, Any] = {}
352354
kwargs["body"] = body
353355

356+
warnings.warn("create_aws_tag_filter is deprecated", DeprecationWarning, stacklevel=2)
354357
return self._create_aws_tag_filter_endpoint.call_with_http_info(**kwargs)
355358

356359
def create_new_aws_external_id(
357360
self,
358361
body: AWSAccount,
359362
) -> AWSAccountCreateResponse:
360-
"""Generate a new external ID.
363+
"""Generate a new external ID. **Deprecated**.
361364
362365
Generate a new AWS external ID for a given AWS account ID and role name pair.
363366
@@ -370,13 +373,14 @@ def create_new_aws_external_id(
370373
kwargs: Dict[str, Any] = {}
371374
kwargs["body"] = body
372375

376+
warnings.warn("create_new_aws_external_id is deprecated", DeprecationWarning, stacklevel=2)
373377
return self._create_new_aws_external_id_endpoint.call_with_http_info(**kwargs)
374378

375379
def delete_aws_account(
376380
self,
377381
body: AWSAccountDeleteRequest,
378382
) -> dict:
379-
"""Delete an AWS integration.
383+
"""Delete an AWS integration. **Deprecated**.
380384
381385
Delete a Datadog-AWS integration matching the specified ``account_id`` and ``role_name parameters``.
382386
@@ -387,6 +391,7 @@ def delete_aws_account(
387391
kwargs: Dict[str, Any] = {}
388392
kwargs["body"] = body
389393

394+
warnings.warn("delete_aws_account is deprecated", DeprecationWarning, stacklevel=2)
390395
return self._delete_aws_account_endpoint.call_with_http_info(**kwargs)
391396

392397
def delete_aws_event_bridge_source(
@@ -410,7 +415,7 @@ def delete_aws_tag_filter(
410415
self,
411416
body: AWSTagFilterDeleteRequest,
412417
) -> dict:
413-
"""Delete a tag filtering entry.
418+
"""Delete a tag filtering entry. **Deprecated**.
414419
415420
Delete a tag filtering entry.
416421
@@ -421,18 +426,20 @@ def delete_aws_tag_filter(
421426
kwargs: Dict[str, Any] = {}
422427
kwargs["body"] = body
423428

429+
warnings.warn("delete_aws_tag_filter is deprecated", DeprecationWarning, stacklevel=2)
424430
return self._delete_aws_tag_filter_endpoint.call_with_http_info(**kwargs)
425431

426432
def list_available_aws_namespaces(
427433
self,
428434
) -> List[str]:
429-
"""List namespace rules.
435+
"""List namespace rules. **Deprecated**.
430436
431437
List all namespace rules for a given Datadog-AWS integration. This endpoint takes no arguments.
432438
433439
:rtype: [str]
434440
"""
435441
kwargs: Dict[str, Any] = {}
442+
warnings.warn("list_available_aws_namespaces is deprecated", DeprecationWarning, stacklevel=2)
436443
return self._list_available_aws_namespaces_endpoint.call_with_http_info(**kwargs)
437444

438445
def list_aws_accounts(
@@ -442,7 +449,7 @@ def list_aws_accounts(
442449
role_name: Union[str, UnsetType] = unset,
443450
access_key_id: Union[str, UnsetType] = unset,
444451
) -> AWSAccountListResponse:
445-
"""List all AWS integrations.
452+
"""List all AWS integrations. **Deprecated**.
446453
447454
List all Datadog-AWS integrations available in your Datadog organization.
448455
@@ -464,6 +471,7 @@ def list_aws_accounts(
464471
if access_key_id is not unset:
465472
kwargs["access_key_id"] = access_key_id
466473

474+
warnings.warn("list_aws_accounts is deprecated", DeprecationWarning, stacklevel=2)
467475
return self._list_aws_accounts_endpoint.call_with_http_info(**kwargs)
468476

469477
def list_aws_event_bridge_sources(
@@ -482,7 +490,7 @@ def list_aws_tag_filters(
482490
self,
483491
account_id: str,
484492
) -> AWSTagFilterListResponse:
485-
"""Get all AWS tag filters.
493+
"""Get all AWS tag filters. **Deprecated**.
486494
487495
Get all AWS tag filters.
488496
@@ -493,6 +501,7 @@ def list_aws_tag_filters(
493501
kwargs: Dict[str, Any] = {}
494502
kwargs["account_id"] = account_id
495503

504+
warnings.warn("list_aws_tag_filters is deprecated", DeprecationWarning, stacklevel=2)
496505
return self._list_aws_tag_filters_endpoint.call_with_http_info(**kwargs)
497506

498507
def update_aws_account(
@@ -503,7 +512,7 @@ def update_aws_account(
503512
role_name: Union[str, UnsetType] = unset,
504513
access_key_id: Union[str, UnsetType] = unset,
505514
) -> dict:
506-
"""Update an AWS integration.
515+
"""Update an AWS integration. **Deprecated**.
507516
508517
Update a Datadog-Amazon Web Services integration.
509518
@@ -531,4 +540,5 @@ def update_aws_account(
531540

532541
kwargs["body"] = body
533542

543+
warnings.warn("update_aws_account is deprecated", DeprecationWarning, stacklevel=2)
534544
return self._update_aws_account_endpoint.call_with_http_info(**kwargs)

src/datadog_api_client/v1/api/aws_logs_integration_api.py

Lines changed: 7 additions & 3 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, List
7+
import warnings
78

89
from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
910
from datadog_api_client.configuration import Configuration
@@ -245,7 +246,7 @@ def enable_aws_log_services(
245246
self,
246247
body: AWSLogsServicesRequest,
247248
) -> dict:
248-
"""Enable an AWS Logs integration.
249+
"""Enable an AWS Logs integration. **Deprecated**.
249250
250251
Enable automatic log collection for a list of services. This should be run after running ``CreateAWSLambdaARN`` to save the configuration.
251252
@@ -256,28 +257,31 @@ def enable_aws_log_services(
256257
kwargs: Dict[str, Any] = {}
257258
kwargs["body"] = body
258259

260+
warnings.warn("enable_aws_log_services is deprecated", DeprecationWarning, stacklevel=2)
259261
return self._enable_aws_log_services_endpoint.call_with_http_info(**kwargs)
260262

261263
def list_aws_logs_integrations(
262264
self,
263265
) -> List[AWSLogsListResponse]:
264-
"""List all AWS Logs integrations.
266+
"""List all AWS Logs integrations. **Deprecated**.
265267
266268
List all Datadog-AWS Logs integrations configured in your Datadog account.
267269
268270
:rtype: [AWSLogsListResponse]
269271
"""
270272
kwargs: Dict[str, Any] = {}
273+
warnings.warn("list_aws_logs_integrations is deprecated", DeprecationWarning, stacklevel=2)
271274
return self._list_aws_logs_integrations_endpoint.call_with_http_info(**kwargs)
272275

273276
def list_aws_logs_services(
274277
self,
275278
) -> List[AWSLogsListServicesResponse]:
276-
"""Get list of AWS log ready services.
279+
"""Get list of AWS log ready services. **Deprecated**.
277280
278281
Get the list of current AWS services that Datadog offers automatic log collection. Use returned service IDs with the services parameter for the Enable an AWS service log collection API endpoint.
279282
280283
:rtype: [AWSLogsListServicesResponse]
281284
"""
282285
kwargs: Dict[str, Any] = {}
286+
warnings.warn("list_aws_logs_services is deprecated", DeprecationWarning, stacklevel=2)
283287
return self._list_aws_logs_services_endpoint.call_with_http_info(**kwargs)

0 commit comments

Comments
 (0)