Skip to content

Commit 8242560

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 05d43bf of spec repo
1 parent 0b32005 commit 8242560

13 files changed

Lines changed: 41 additions & 42 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12666,15 +12666,15 @@ components:
1266612666
- GCP
1266712667
- AZURE
1266812668
CloudInventoryCloudProviderRequestType:
12669-
description: JSON:API type for upsert sync configuration requests.
12669+
description: Always `cloud_provider`.
1267012670
enum:
1267112671
- cloud_provider
1267212672
example: cloud_provider
1267312673
type: string
1267412674
x-enum-varnames:
1267512675
- CLOUD_PROVIDER
1267612676
CloudInventorySyncConfigAWSRequestAttributes:
12677-
description: AWS settings for the customer bucket that stores inventory reports.
12677+
description: AWS settings for the S3 bucket Storage Management reads inventory reports from.
1267812678
properties:
1267912679
aws_account_id:
1268012680
description: AWS account ID that owns the inventory bucket.
@@ -12689,7 +12689,7 @@ components:
1268912689
example: us-east-1
1269012690
type: string
1269112691
destination_prefix:
12692-
description: Optional object key prefix for inventory files. Use `/` or omit for the entire bucket.
12692+
description: Object key prefix where inventory reports are written. Omit or set to `/` when reports are written at the bucket root.
1269312693
example: logs/
1269412694
type: string
1269512695
required:
@@ -12698,7 +12698,7 @@ components:
1269812698
- destination_bucket_region
1269912699
type: object
1270012700
CloudInventorySyncConfigAttributes:
12701-
description: Attributes for a cloud inventory sync configuration. Values beyond `id` may be omitted immediately after upsert.
12701+
description: Attributes for a Storage Management configuration. Fields other than `id` may be empty in the response immediately after a create or update; subsequent reads return the full configuration.
1270212702
properties:
1270312703
aws_account_id:
1270412704
description: AWS account ID for the inventory bucket.
@@ -12753,7 +12753,7 @@ components:
1275312753
example: reader@my-gcp-project.iam.gserviceaccount.com
1275412754
type: string
1275512755
prefix:
12756-
description: Object key prefix or `/` when the entire bucket is synced.
12756+
description: Object key prefix where inventory reports are written. Returns `/` when reports are written at the bucket root.
1275712757
example: logs/
1275812758
readOnly: true
1275912759
type: string
@@ -12834,28 +12834,28 @@ components:
1283412834
- service_account_email
1283512835
type: object
1283612836
CloudInventorySyncConfigResourceType:
12837-
description: JSON:API type for sync configuration resources.
12837+
description: Always `sync_configs`.
1283812838
enum:
1283912839
- sync_configs
1284012840
example: sync_configs
1284112841
type: string
1284212842
x-enum-varnames:
1284312843
- SYNC_CONFIGS
1284412844
CloudInventorySyncConfigResponse:
12845-
description: Response containing the upserted sync configuration. Additional read-only fields appear on list and get.
12845+
description: Storage Management configuration returned after a create or update. Additional read-only fields appear on list and get responses.
1284612846
properties:
1284712847
data:
1284812848
$ref: "#/components/schemas/CloudInventorySyncConfigResponseData"
1284912849
required:
1285012850
- data
1285112851
type: object
1285212852
CloudInventorySyncConfigResponseData:
12853-
description: JSON:API data object for a sync configuration.
12853+
description: Storage Management configuration data.
1285412854
properties:
1285512855
attributes:
1285612856
$ref: "#/components/schemas/CloudInventorySyncConfigAttributes"
1285712857
id:
12858-
description: Unique identifier for the recurring sync configuration.
12858+
description: Unique identifier for this Storage Management configuration.
1285912859
example: abc123
1286012860
type: string
1286112861
type:
@@ -81037,7 +81037,7 @@ components:
8103781037
type: object
8103881038
UpsertCloudInventorySyncConfigRequestAttributes:
8103981039
description: |-
81040-
Provider-specific configuration. Include the object that matches `data.id` (`aws`, `gcp`, or `azure`).
81040+
Settings for the cloud provider specified in `data.id`. Include only the matching provider object (`aws`, `gcp`, or `azure`).
8104181041
properties:
8104281042
aws:
8104381043
$ref: "#/components/schemas/CloudInventorySyncConfigAWSRequestAttributes"
@@ -81047,7 +81047,7 @@ components:
8104781047
$ref: "#/components/schemas/CloudInventorySyncConfigGCPRequestAttributes"
8104881048
type: object
8104981049
UpsertCloudInventorySyncConfigRequestData:
81050-
description: JSON:API data envelope for an upsert sync configuration request.
81050+
description: Storage Management configuration data for the create or update request.
8105181051
properties:
8105281052
attributes:
8105381053
$ref: "#/components/schemas/UpsertCloudInventorySyncConfigRequestAttributes"
@@ -91978,8 +91978,7 @@ paths:
9197891978
/api/v2/cloudinventoryservice/syncconfigs:
9197991979
put:
9198091980
description: |-
91981-
Create or update a cloud inventory sync configuration. Specify the cloud provider in `data.id`
91982-
and provider-specific settings under `data.attributes`. This endpoint uses an upsert model.
91981+
Enable Storage Management for an S3 bucket, GCS bucket, or Azure container by registering the destination that holds its inventory reports. Set `data.id` to the cloud provider (`aws`, `gcp`, or `azure`) and provide the matching settings under data.attributes. Calling this endpoint with the same provider replaces the existing configuration.
9198391982
operationId: UpsertSyncConfig
9198491983
requestBody:
9198591984
content:
@@ -92017,7 +92016,7 @@ paths:
9201792016
$ref: "#/components/responses/ForbiddenResponse"
9201892017
"429":
9201992018
$ref: "#/components/responses/TooManyRequestsResponse"
92020-
summary: Create or update a sync configuration
92019+
summary: Enable Storage Management for a bucket
9202192020
tags:
9202292021
- Cloud Inventory Sync Configs
9202392022
x-codegen-request-body-name: body
@@ -135346,7 +135345,7 @@ tags:
135346135345
The Cloud Cost Management API allows you to set up, edit, and delete Cloud Cost Management accounts for AWS, Azure, and Google Cloud. You can query your cost data by using the [Metrics endpoint](https://docs.datadoghq.com/api/latest/metrics/#query-timeseries-data-across-multiple-products) and the `cloud_cost` data source. For more information, see the [Cloud Cost Management documentation](https://docs.datadoghq.com/cloud_cost_management/).
135347135346
name: Cloud Cost Management
135348135347
- description: |-
135349-
Configure cloud inventory file synchronization from your cloud storage to Datadog.
135348+
Enable Storage Management for S3 buckets, GCS buckets, and Azure containers. Each configuration registers the destination that holds inventory reports for the storage being monitored.
135350135349
name: Cloud Inventory Sync Configs
135351135350
- description: |-
135352135351
The Cloud Network Monitoring API allows you to fetch aggregated connections and DNS traffic with their attributes. See the [Cloud Network Monitoring page](https://docs.datadoghq.com/network_monitoring/cloud_network_monitoring/) and [DNS Monitoring page](https://docs.datadoghq.com/network_monitoring/dns/) for more information.

examples/v2/cloud-inventory-sync-configs/UpsertSyncConfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Create or update a sync configuration returns "OK" response
2+
Enable Storage Management for a bucket returns "OK" response
33
"""
44

55
from datadog_api_client import ApiClient, Configuration

src/datadog_api_client/v2/api/cloud_inventory_sync_configs_api.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class CloudInventorySyncConfigsApi:
1515
"""
16-
Configure cloud inventory file synchronization from your cloud storage to Datadog.
16+
Enable Storage Management for S3 buckets, GCS buckets, and Azure containers. Each configuration registers the destination that holds inventory reports for the storage being monitored.
1717
"""
1818

1919
def __init__(self, api_client=None):
@@ -45,10 +45,9 @@ def upsert_sync_config(
4545
self,
4646
body: UpsertCloudInventorySyncConfigRequest,
4747
) -> CloudInventorySyncConfigResponse:
48-
"""Create or update a sync configuration.
48+
"""Enable Storage Management for a bucket.
4949
50-
Create or update a cloud inventory sync configuration. Specify the cloud provider in ``data.id``
51-
and provider-specific settings under ``data.attributes``. This endpoint uses an upsert model.
50+
Enable Storage Management for an S3 bucket, GCS bucket, or Azure container by registering the destination that holds its inventory reports. Set ``data.id`` to the cloud provider ( ``aws`` , ``gcp`` , or ``azure`` ) and provide the matching settings under data.attributes. Calling this endpoint with the same provider replaces the existing configuration.
5251
5352
:type body: UpsertCloudInventorySyncConfigRequest
5453
:rtype: CloudInventorySyncConfigResponse

src/datadog_api_client/v2/model/cloud_inventory_cloud_provider_request_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class CloudInventoryCloudProviderRequestType(ModelSimple):
1616
"""
17-
JSON:API type for upsert sync configuration requests.
17+
Always `cloud_provider`.
1818
1919
:param value: If omitted defaults to "cloud_provider". Must be one of ["cloud_provider"].
2020
:type value: str

src/datadog_api_client/v2/model/cloud_inventory_sync_config_attributes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(
7878
**kwargs,
7979
):
8080
"""
81-
Attributes for a cloud inventory sync configuration. Values beyond ``id`` may be omitted immediately after upsert.
81+
Attributes for a Storage Management configuration. Fields other than ``id`` may be empty in the response immediately after a create or update; subsequent reads return the full configuration.
8282
8383
:param aws_account_id: AWS account ID for the inventory bucket.
8484
:type aws_account_id: str
@@ -119,7 +119,7 @@ def __init__(
119119
:param gcp_service_account_email: Service account email for bucket access.
120120
:type gcp_service_account_email: str
121121
122-
:param prefix: Object key prefix or ``/`` when the entire bucket is synced.
122+
:param prefix: Object key prefix where inventory reports are written. Returns ``/`` when reports are written at the bucket root.
123123
:type prefix: str
124124
"""
125125
super().__init__(kwargs)

src/datadog_api_client/v2/model/cloud_inventory_sync_config_aws_request_attributes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(
3939
**kwargs,
4040
):
4141
"""
42-
AWS settings for the customer bucket that stores inventory reports.
42+
AWS settings for the S3 bucket Storage Management reads inventory reports from.
4343
4444
:param aws_account_id: AWS account ID that owns the inventory bucket.
4545
:type aws_account_id: str
@@ -50,7 +50,7 @@ def __init__(
5050
:param destination_bucket_region: AWS Region of the inventory bucket.
5151
:type destination_bucket_region: str
5252
53-
:param destination_prefix: Optional object key prefix for inventory files. Use ``/`` or omit for the entire bucket.
53+
:param destination_prefix: Object key prefix where inventory reports are written. Omit or set to ``/`` when reports are written at the bucket root.
5454
:type destination_prefix: str, optional
5555
"""
5656
if destination_prefix is not unset:

src/datadog_api_client/v2/model/cloud_inventory_sync_config_resource_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class CloudInventorySyncConfigResourceType(ModelSimple):
1616
"""
17-
JSON:API type for sync configuration resources.
17+
Always `sync_configs`.
1818
1919
:param value: If omitted defaults to "sync_configs". Must be one of ["sync_configs"].
2020
:type value: str

src/datadog_api_client/v2/model/cloud_inventory_sync_config_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def openapi_types(_):
3434

3535
def __init__(self_, data: CloudInventorySyncConfigResponseData, **kwargs):
3636
"""
37-
Response containing the upserted sync configuration. Additional read-only fields appear on list and get.
37+
Storage Management configuration returned after a create or update. Additional read-only fields appear on list and get responses.
3838
39-
:param data: JSON:API data object for a sync configuration.
39+
:param data: Storage Management configuration data.
4040
:type data: CloudInventorySyncConfigResponseData
4141
"""
4242
super().__init__(kwargs)

src/datadog_api_client/v2/model/cloud_inventory_sync_config_response_data.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ def __init__(
4848
**kwargs,
4949
):
5050
"""
51-
JSON:API data object for a sync configuration.
51+
Storage Management configuration data.
5252
53-
:param attributes: Attributes for a cloud inventory sync configuration. Values beyond ``id`` may be omitted immediately after upsert.
53+
:param attributes: Attributes for a Storage Management configuration. Fields other than ``id`` may be empty in the response immediately after a create or update; subsequent reads return the full configuration.
5454
:type attributes: CloudInventorySyncConfigAttributes
5555
56-
:param id: Unique identifier for the recurring sync configuration.
56+
:param id: Unique identifier for this Storage Management configuration.
5757
:type id: str
5858
59-
:param type: JSON:API type for sync configuration resources.
59+
:param type: Always ``sync_configs``.
6060
:type type: CloudInventorySyncConfigResourceType
6161
"""
6262
super().__init__(kwargs)

src/datadog_api_client/v2/model/upsert_cloud_inventory_sync_config_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self_, data: UpsertCloudInventorySyncConfigRequestData, **kwargs):
3636
"""
3737
Request body for creating or updating a cloud inventory sync configuration.
3838
39-
:param data: JSON:API data envelope for an upsert sync configuration request.
39+
:param data: Storage Management configuration data for the create or update request.
4040
:type data: UpsertCloudInventorySyncConfigRequestData
4141
"""
4242
super().__init__(kwargs)

0 commit comments

Comments
 (0)