Skip to content

Commit 9aea397

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 05d43bf of spec repo
1 parent ff2bdd5 commit 9aea397

13 files changed

Lines changed: 55 additions & 50 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.java

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

33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;

src/main/java/com/datadog/api/client/v2/api/CloudInventorySyncConfigsApi.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void setApiClient(ApiClient apiClient) {
4545
}
4646

4747
/**
48-
* Create or update a sync configuration.
48+
* Enable Storage Management for a bucket.
4949
*
5050
* <p>See {@link #upsertSyncConfigWithHttpInfo}.
5151
*
@@ -59,7 +59,7 @@ public CloudInventorySyncConfigResponse upsertSyncConfig(
5959
}
6060

6161
/**
62-
* Create or update a sync configuration.
62+
* Enable Storage Management for a bucket.
6363
*
6464
* <p>See {@link #upsertSyncConfigWithHttpInfoAsync}.
6565
*
@@ -76,9 +76,11 @@ public CompletableFuture<CloudInventorySyncConfigResponse> upsertSyncConfigAsync
7676
}
7777

7878
/**
79-
* Create or update a cloud inventory sync configuration. Specify the cloud provider in <code>
80-
* data.id</code> and provider-specific settings under <code>data.attributes</code>. This endpoint
81-
* uses an upsert model.
79+
* Enable Storage Management for an S3 bucket, GCS bucket, or Azure container by registering the
80+
* destination that holds its inventory reports. Set <code>data.id</code> to the cloud provider (
81+
* <code>aws</code>, <code>gcp</code>, or <code>azure</code>) and provide the matching settings
82+
* under data.attributes. Calling this endpoint with the same provider replaces the existing
83+
* configuration.
8284
*
8385
* @param body (required)
8486
* @return ApiResponse&lt;CloudInventorySyncConfigResponse&gt;
@@ -135,7 +137,7 @@ public ApiResponse<CloudInventorySyncConfigResponse> upsertSyncConfigWithHttpInf
135137
}
136138

137139
/**
138-
* Create or update a sync configuration.
140+
* Enable Storage Management for a bucket.
139141
*
140142
* <p>See {@link #upsertSyncConfigWithHttpInfo}.
141143
*

src/main/java/com/datadog/api/client/v2/model/CloudInventoryCloudProviderRequestType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.HashSet;
1919
import java.util.Set;
2020

21-
/** JSON:API type for upsert sync configuration requests. */
21+
/** Always <code>cloud_provider</code>. */
2222
@JsonSerialize(
2323
using =
2424
CloudInventoryCloudProviderRequestType.CloudInventoryCloudProviderRequestTypeSerializer

src/main/java/com/datadog/api/client/v2/model/CloudInventorySyncConfigAWSRequestAttributes.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import java.util.Objects;
1919

20-
/** AWS settings for the customer bucket that stores inventory reports. */
20+
/** AWS settings for the S3 bucket Storage Management reads inventory reports from. */
2121
@JsonPropertyOrder({
2222
CloudInventorySyncConfigAWSRequestAttributes.JSON_PROPERTY_AWS_ACCOUNT_ID,
2323
CloudInventorySyncConfigAWSRequestAttributes.JSON_PROPERTY_DESTINATION_BUCKET_NAME,
@@ -122,8 +122,8 @@ public CloudInventorySyncConfigAWSRequestAttributes destinationPrefix(String des
122122
}
123123

124124
/**
125-
* Optional object key prefix for inventory files. Use <code>/</code> or omit for the entire
126-
* bucket.
125+
* Object key prefix where inventory reports are written. Omit or set to <code>/</code> when
126+
* reports are written at the bucket root.
127127
*
128128
* @return destinationPrefix
129129
*/

src/main/java/com/datadog/api/client/v2/model/CloudInventorySyncConfigAttributes.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
import java.util.Objects;
1919

2020
/**
21-
* Attributes for a cloud inventory sync configuration. Values beyond <code>id</code> may be omitted
22-
* immediately after upsert.
21+
* Attributes for a Storage Management configuration. Fields other than <code>id</code> may be empty
22+
* in the response immediately after a create or update; subsequent reads return the full
23+
* configuration.
2324
*/
2425
@JsonPropertyOrder({
2526
CloudInventorySyncConfigAttributes.JSON_PROPERTY_AWS_ACCOUNT_ID,
@@ -373,7 +374,8 @@ public void setGcpServiceAccountEmail(String gcpServiceAccountEmail) {
373374
}
374375

375376
/**
376-
* Object key prefix or <code>/</code> when the entire bucket is synced.
377+
* Object key prefix where inventory reports are written. Returns <code>/</code> when reports are
378+
* written at the bucket root.
377379
*
378380
* @return prefix
379381
*/

src/main/java/com/datadog/api/client/v2/model/CloudInventorySyncConfigResourceType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.HashSet;
1919
import java.util.Set;
2020

21-
/** JSON:API type for sync configuration resources. */
21+
/** Always <code>sync_configs</code>. */
2222
@JsonSerialize(
2323
using =
2424
CloudInventorySyncConfigResourceType.CloudInventorySyncConfigResourceTypeSerializer.class)

src/main/java/com/datadog/api/client/v2/model/CloudInventorySyncConfigResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
import java.util.Objects;
1919

2020
/**
21-
* Response containing the upserted sync configuration. Additional read-only fields appear on list
22-
* and get.
21+
* Storage Management configuration returned after a create or update. Additional read-only fields
22+
* appear on list and get responses.
2323
*/
2424
@JsonPropertyOrder({CloudInventorySyncConfigResponse.JSON_PROPERTY_DATA})
2525
@jakarta.annotation.Generated(
@@ -46,7 +46,7 @@ public CloudInventorySyncConfigResponse data(CloudInventorySyncConfigResponseDat
4646
}
4747

4848
/**
49-
* JSON:API data object for a sync configuration.
49+
* Storage Management configuration data.
5050
*
5151
* @return data
5252
*/

src/main/java/com/datadog/api/client/v2/model/CloudInventorySyncConfigResponseData.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import java.util.Objects;
1919

20-
/** JSON:API data object for a sync configuration. */
20+
/** Storage Management configuration data. */
2121
@JsonPropertyOrder({
2222
CloudInventorySyncConfigResponseData.JSON_PROPERTY_ATTRIBUTES,
2323
CloudInventorySyncConfigResponseData.JSON_PROPERTY_ID,
@@ -60,8 +60,9 @@ public CloudInventorySyncConfigResponseData attributes(
6060
}
6161

6262
/**
63-
* Attributes for a cloud inventory sync configuration. Values beyond <code>id</code> may be
64-
* omitted immediately after upsert.
63+
* Attributes for a Storage Management configuration. Fields other than <code>id</code> may be
64+
* empty in the response immediately after a create or update; subsequent reads return the full
65+
* configuration.
6566
*
6667
* @return attributes
6768
*/
@@ -81,7 +82,7 @@ public CloudInventorySyncConfigResponseData id(String id) {
8182
}
8283

8384
/**
84-
* Unique identifier for the recurring sync configuration.
85+
* Unique identifier for this Storage Management configuration.
8586
*
8687
* @return id
8788
*/
@@ -102,7 +103,7 @@ public CloudInventorySyncConfigResponseData type(CloudInventorySyncConfigResourc
102103
}
103104

104105
/**
105-
* JSON:API type for sync configuration resources.
106+
* Always <code>sync_configs</code>.
106107
*
107108
* @return type
108109
*/

src/main/java/com/datadog/api/client/v2/model/UpsertCloudInventorySyncConfigRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public UpsertCloudInventorySyncConfigRequest data(
4444
}
4545

4646
/**
47-
* JSON:API data envelope for an upsert sync configuration request.
47+
* Storage Management configuration data for the create or update request.
4848
*
4949
* @return data
5050
*/

0 commit comments

Comments
 (0)