Skip to content

Commit 5230dba

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 05d43bf of spec repo
1 parent 06993f6 commit 5230dba

11 files changed

Lines changed: 39 additions & 41 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.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Create or update a sync configuration returns "OK" response
1+
// Enable Storage Management for a bucket returns "OK" response
22
use datadog_api_client::datadog;
33
use datadog_api_client::datadogV2::api_cloud_inventory_sync_configs::CloudInventorySyncConfigsAPI;
44
use datadog_api_client::datadogV2::model::CloudInventoryCloudProviderId;

src/datadogV2/api/api_cloud_inventory_sync_configs.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub enum UpsertSyncConfigError {
2020
UnknownValue(serde_json::Value),
2121
}
2222

23-
/// Configure cloud inventory file synchronization from your cloud storage to Datadog.
23+
/// 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.
2424
#[derive(Debug, Clone)]
2525
pub struct CloudInventorySyncConfigsAPI {
2626
config: datadog::Configuration,
@@ -94,8 +94,7 @@ impl CloudInventorySyncConfigsAPI {
9494
Self { config, client }
9595
}
9696

97-
/// Create or update a cloud inventory sync configuration. Specify the cloud provider in `data.id`
98-
/// and provider-specific settings under `data.attributes`. This endpoint uses an upsert model.
97+
/// 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.
9998
pub async fn upsert_sync_config(
10099
&self,
101100
body: crate::datadogV2::model::UpsertCloudInventorySyncConfigRequest,
@@ -117,8 +116,7 @@ impl CloudInventorySyncConfigsAPI {
117116
}
118117
}
119118

120-
/// Create or update a cloud inventory sync configuration. Specify the cloud provider in `data.id`
121-
/// and provider-specific settings under `data.attributes`. This endpoint uses an upsert model.
119+
/// 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.
122120
pub async fn upsert_sync_config_with_http_info(
123121
&self,
124122
body: crate::datadogV2::model::UpsertCloudInventorySyncConfigRequest,

src/datadogV2/model/model_cloud_inventory_sync_config_attributes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use serde::{Deserialize, Deserializer, Serialize};
66
use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

9-
/// Attributes for a cloud inventory sync configuration. Values beyond `id` may be omitted immediately after upsert.
9+
/// 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.
1010
#[non_exhaustive]
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
@@ -50,7 +50,7 @@ pub struct CloudInventorySyncConfigAttributes {
5050
/// Service account email for bucket access.
5151
#[serde(rename = "gcp_service_account_email")]
5252
pub gcp_service_account_email: String,
53-
/// Object key prefix or `/` when the entire bucket is synced.
53+
/// Object key prefix where inventory reports are written. Returns `/` when reports are written at the bucket root.
5454
#[serde(rename = "prefix")]
5555
pub prefix: String,
5656
#[serde(flatten)]

src/datadogV2/model/model_cloud_inventory_sync_config_aws_request_attributes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use serde::{Deserialize, Deserializer, Serialize};
66
use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

9-
/// AWS settings for the customer bucket that stores inventory reports.
9+
/// AWS settings for the S3 bucket Storage Management reads inventory reports from.
1010
#[non_exhaustive]
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
@@ -20,7 +20,7 @@ pub struct CloudInventorySyncConfigAWSRequestAttributes {
2020
/// AWS Region of the inventory bucket.
2121
#[serde(rename = "destination_bucket_region")]
2222
pub destination_bucket_region: String,
23-
/// Optional object key prefix for inventory files. Use `/` or omit for the entire bucket.
23+
/// Object key prefix where inventory reports are written. Omit or set to `/` when reports are written at the bucket root.
2424
#[serde(rename = "destination_prefix")]
2525
pub destination_prefix: Option<String>,
2626
#[serde(flatten)]

src/datadogV2/model/model_cloud_inventory_sync_config_response.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ use serde::{Deserialize, Deserializer, Serialize};
66
use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

9-
/// Response containing the upserted sync configuration. Additional read-only fields appear on list and get.
9+
/// Storage Management configuration returned after a create or update. Additional read-only fields appear on list and get responses.
1010
#[non_exhaustive]
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct CloudInventorySyncConfigResponse {
14-
/// JSON:API data object for a sync configuration.
14+
/// Storage Management configuration data.
1515
#[serde(rename = "data")]
1616
pub data: crate::datadogV2::model::CloudInventorySyncConfigResponseData,
1717
#[serde(flatten)]

src/datadogV2/model/model_cloud_inventory_sync_config_response_data.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ use serde::{Deserialize, Deserializer, Serialize};
66
use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

9-
/// JSON:API data object for a sync configuration.
9+
/// Storage Management configuration data.
1010
#[non_exhaustive]
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct CloudInventorySyncConfigResponseData {
14-
/// Attributes for a cloud inventory sync configuration. Values beyond `id` may be omitted immediately after upsert.
14+
/// 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.
1515
#[serde(rename = "attributes")]
1616
pub attributes: crate::datadogV2::model::CloudInventorySyncConfigAttributes,
17-
/// Unique identifier for the recurring sync configuration.
17+
/// Unique identifier for this Storage Management configuration.
1818
#[serde(rename = "id")]
1919
pub id: String,
20-
/// JSON:API type for sync configuration resources.
20+
/// Always `sync_configs`.
2121
#[serde(rename = "type")]
2222
pub type_: crate::datadogV2::model::CloudInventorySyncConfigResourceType,
2323
#[serde(flatten)]

src/datadogV2/model/model_upsert_cloud_inventory_sync_config_request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct UpsertCloudInventorySyncConfigRequest {
14-
/// JSON:API data envelope for an upsert sync configuration request.
14+
/// Storage Management configuration data for the create or update request.
1515
#[serde(rename = "data")]
1616
pub data: crate::datadogV2::model::UpsertCloudInventorySyncConfigRequestData,
1717
#[serde(flatten)]

src/datadogV2/model/model_upsert_cloud_inventory_sync_config_request_attributes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ use serde::{Deserialize, Deserializer, Serialize};
66
use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

9-
/// Provider-specific configuration. Include the object that matches `data.id` (`aws`, `gcp`, or `azure`).
9+
/// Settings for the cloud provider specified in `data.id`. Include only the matching provider object (`aws`, `gcp`, or `azure`).
1010
#[non_exhaustive]
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct UpsertCloudInventorySyncConfigRequestAttributes {
14-
/// AWS settings for the customer bucket that stores inventory reports.
14+
/// AWS settings for the S3 bucket Storage Management reads inventory reports from.
1515
#[serde(rename = "aws")]
1616
pub aws: Option<crate::datadogV2::model::CloudInventorySyncConfigAWSRequestAttributes>,
1717
/// Azure settings for the storage account and container with inventory data.

src/datadogV2/model/model_upsert_cloud_inventory_sync_config_request_data.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ use serde::{Deserialize, Deserializer, Serialize};
66
use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

9-
/// JSON:API data envelope for an upsert sync configuration request.
9+
/// Storage Management configuration data for the create or update request.
1010
#[non_exhaustive]
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct UpsertCloudInventorySyncConfigRequestData {
14-
/// Provider-specific configuration. Include the object that matches `data.id` (`aws`, `gcp`, or `azure`).
14+
/// Settings for the cloud provider specified in `data.id`. Include only the matching provider object (`aws`, `gcp`, or `azure`).
1515
#[serde(rename = "attributes")]
1616
pub attributes: crate::datadogV2::model::UpsertCloudInventorySyncConfigRequestAttributes,
1717
/// Cloud provider for this sync configuration (`aws`, `gcp`, or `azure`). For requests, must match the provider block supplied under `attributes`.
1818
#[serde(rename = "id")]
1919
pub id: crate::datadogV2::model::CloudInventoryCloudProviderId,
20-
/// JSON:API type for upsert sync configuration requests.
20+
/// Always `cloud_provider`.
2121
#[serde(rename = "type")]
2222
pub type_: crate::datadogV2::model::CloudInventoryCloudProviderRequestType,
2323
#[serde(flatten)]

0 commit comments

Comments
 (0)