Skip to content

Commit 7e8c442

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 05d43bf of spec repo
1 parent 2ad4eb4 commit 7e8c442

13 files changed

Lines changed: 40 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.

api/datadogV2/api_cloud_inventory_sync_configs.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ import (
1717
// CloudInventorySyncConfigsApi service type
1818
type CloudInventorySyncConfigsApi datadog.Service
1919

20-
// UpsertSyncConfig Create or update a sync configuration.
21-
// Create or update a cloud inventory sync configuration. Specify the cloud provider in `data.id`
22-
// and provider-specific settings under `data.attributes`. This endpoint uses an upsert model.
20+
// UpsertSyncConfig Enable Storage Management for a bucket.
21+
// 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.
2322
func (a *CloudInventorySyncConfigsApi) UpsertSyncConfig(ctx _context.Context, body UpsertCloudInventorySyncConfigRequest) (CloudInventorySyncConfigResponse, *_nethttp.Response, error) {
2423
var (
2524
localVarHTTPMethod = _nethttp.MethodPut

api/datadogV2/model_cloud_inventory_cloud_provider_request_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// CloudInventoryCloudProviderRequestType JSON:API type for upsert sync configuration requests.
13+
// CloudInventoryCloudProviderRequestType Always `cloud_provider`.
1414
type CloudInventoryCloudProviderRequestType string
1515

1616
// List of CloudInventoryCloudProviderRequestType.

api/datadogV2/model_cloud_inventory_sync_config_attributes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// CloudInventorySyncConfigAttributes Attributes for a cloud inventory sync configuration. Values beyond `id` may be omitted immediately after upsert.
13+
// CloudInventorySyncConfigAttributes 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.
1414
type CloudInventorySyncConfigAttributes struct {
1515
// AWS account ID for the inventory bucket.
1616
AwsAccountId string `json:"aws_account_id"`
@@ -38,7 +38,7 @@ type CloudInventorySyncConfigAttributes struct {
3838
GcpProjectId string `json:"gcp_project_id"`
3939
// Service account email for bucket access.
4040
GcpServiceAccountEmail string `json:"gcp_service_account_email"`
41-
// Object key prefix or `/` when the entire bucket is synced.
41+
// Object key prefix where inventory reports are written. Returns `/` when reports are written at the bucket root.
4242
Prefix string `json:"prefix"`
4343
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
4444
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_cloud_inventory_sync_config_aws_request_attributes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// CloudInventorySyncConfigAWSRequestAttributes AWS settings for the customer bucket that stores inventory reports.
13+
// CloudInventorySyncConfigAWSRequestAttributes AWS settings for the S3 bucket Storage Management reads inventory reports from.
1414
type CloudInventorySyncConfigAWSRequestAttributes struct {
1515
// AWS account ID that owns the inventory bucket.
1616
AwsAccountId string `json:"aws_account_id"`
1717
// Name of the S3 bucket containing inventory files.
1818
DestinationBucketName string `json:"destination_bucket_name"`
1919
// AWS Region of the inventory bucket.
2020
DestinationBucketRegion string `json:"destination_bucket_region"`
21-
// Optional object key prefix for inventory files. Use `/` or omit for the entire bucket.
21+
// Object key prefix where inventory reports are written. Omit or set to `/` when reports are written at the bucket root.
2222
DestinationPrefix *string `json:"destination_prefix,omitempty"`
2323
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
2424
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_cloud_inventory_sync_config_resource_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// CloudInventorySyncConfigResourceType JSON:API type for sync configuration resources.
13+
// CloudInventorySyncConfigResourceType Always `sync_configs`.
1414
type CloudInventorySyncConfigResourceType string
1515

1616
// List of CloudInventorySyncConfigResourceType.

api/datadogV2/model_cloud_inventory_sync_config_response.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// CloudInventorySyncConfigResponse Response containing the upserted sync configuration. Additional read-only fields appear on list and get.
13+
// CloudInventorySyncConfigResponse Storage Management configuration returned after a create or update. Additional read-only fields appear on list and get responses.
1414
type CloudInventorySyncConfigResponse struct {
15-
// JSON:API data object for a sync configuration.
15+
// Storage Management configuration data.
1616
Data CloudInventorySyncConfigResponseData `json:"data"`
1717
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
1818
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_cloud_inventory_sync_config_response_data.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import (
1010
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1111
)
1212

13-
// CloudInventorySyncConfigResponseData JSON:API data object for a sync configuration.
13+
// CloudInventorySyncConfigResponseData Storage Management configuration data.
1414
type CloudInventorySyncConfigResponseData struct {
15-
// Attributes for a cloud inventory sync configuration. Values beyond `id` may be omitted immediately after upsert.
15+
// 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.
1616
Attributes CloudInventorySyncConfigAttributes `json:"attributes"`
17-
// Unique identifier for the recurring sync configuration.
17+
// Unique identifier for this Storage Management configuration.
1818
Id string `json:"id"`
19-
// JSON:API type for sync configuration resources.
19+
// Always `sync_configs`.
2020
Type CloudInventorySyncConfigResourceType `json:"type"`
2121
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
2222
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_upsert_cloud_inventory_sync_config_request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
// UpsertCloudInventorySyncConfigRequest Request body for creating or updating a cloud inventory sync configuration.
1414
type UpsertCloudInventorySyncConfigRequest struct {
15-
// JSON:API data envelope for an upsert sync configuration request.
15+
// Storage Management configuration data for the create or update request.
1616
Data UpsertCloudInventorySyncConfigRequestData `json:"data"`
1717
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
1818
UnparsedObject map[string]interface{} `json:"-"`

api/datadogV2/model_upsert_cloud_inventory_sync_config_request_attributes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
99
)
1010

11-
// UpsertCloudInventorySyncConfigRequestAttributes Provider-specific configuration. Include the object that matches `data.id` (`aws`, `gcp`, or `azure`).
11+
// UpsertCloudInventorySyncConfigRequestAttributes Settings for the cloud provider specified in `data.id`. Include only the matching provider object (`aws`, `gcp`, or `azure`).
1212
type UpsertCloudInventorySyncConfigRequestAttributes struct {
13-
// AWS settings for the customer bucket that stores inventory reports.
13+
// AWS settings for the S3 bucket Storage Management reads inventory reports from.
1414
Aws *CloudInventorySyncConfigAWSRequestAttributes `json:"aws,omitempty"`
1515
// Azure settings for the storage account and container with inventory data.
1616
Azure *CloudInventorySyncConfigAzureRequestAttributes `json:"azure,omitempty"`

0 commit comments

Comments
 (0)