Skip to content

Commit 4c66649

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 54b6e9c of spec repo
1 parent 2b81865 commit 4c66649

17 files changed

Lines changed: 59 additions & 77 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12687,15 +12687,15 @@ components:
1268712687
- GCP
1268812688
- AZURE
1268912689
CloudInventoryCloudProviderRequestType:
12690-
description: JSON:API type for upsert sync configuration requests.
12690+
description: Always `cloud_provider`.
1269112691
enum:
1269212692
- cloud_provider
1269312693
example: cloud_provider
1269412694
type: string
1269512695
x-enum-varnames:
1269612696
- CLOUD_PROVIDER
1269712697
CloudInventorySyncConfigAWSRequestAttributes:
12698-
description: AWS settings for the customer bucket that stores inventory reports.
12698+
description: AWS settings for the S3 bucket Storage Management reads inventory reports from.
1269912699
properties:
1270012700
aws_account_id:
1270112701
description: AWS account ID that owns the inventory bucket.
@@ -12710,7 +12710,7 @@ components:
1271012710
example: us-east-1
1271112711
type: string
1271212712
destination_prefix:
12713-
description: Optional object key prefix for inventory files. Use `/` or omit for the entire bucket.
12713+
description: Object key prefix where inventory reports are written. Omit or set to `/` when reports are written at the bucket root.
1271412714
example: logs/
1271512715
type: string
1271612716
required:
@@ -12719,7 +12719,7 @@ components:
1271912719
- destination_bucket_region
1272012720
type: object
1272112721
CloudInventorySyncConfigAttributes:
12722-
description: Attributes for a cloud inventory sync configuration. Values beyond `id` may be omitted immediately after upsert.
12722+
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.
1272312723
properties:
1272412724
aws_account_id:
1272512725
description: AWS account ID for the inventory bucket.
@@ -12774,7 +12774,7 @@ components:
1277412774
example: reader@my-gcp-project.iam.gserviceaccount.com
1277512775
type: string
1277612776
prefix:
12777-
description: Object key prefix or `/` when the entire bucket is synced.
12777+
description: Object key prefix where inventory reports are written. Returns `/` when reports are written at the bucket root.
1277812778
example: logs/
1277912779
readOnly: true
1278012780
type: string
@@ -12855,28 +12855,28 @@ components:
1285512855
- service_account_email
1285612856
type: object
1285712857
CloudInventorySyncConfigResourceType:
12858-
description: JSON:API type for sync configuration resources.
12858+
description: Always `sync_configs`.
1285912859
enum:
1286012860
- sync_configs
1286112861
example: sync_configs
1286212862
type: string
1286312863
x-enum-varnames:
1286412864
- SYNC_CONFIGS
1286512865
CloudInventorySyncConfigResponse:
12866-
description: Response containing the upserted sync configuration. Additional read-only fields appear on list and get.
12866+
description: Storage Management configuration returned after a create or update. Additional read-only fields appear on list and get responses.
1286712867
properties:
1286812868
data:
1286912869
$ref: "#/components/schemas/CloudInventorySyncConfigResponseData"
1287012870
required:
1287112871
- data
1287212872
type: object
1287312873
CloudInventorySyncConfigResponseData:
12874-
description: JSON:API data object for a sync configuration.
12874+
description: Storage Management configuration data.
1287512875
properties:
1287612876
attributes:
1287712877
$ref: "#/components/schemas/CloudInventorySyncConfigAttributes"
1287812878
id:
12879-
description: Unique identifier for the recurring sync configuration.
12879+
description: Unique identifier for this Storage Management configuration.
1288012880
example: abc123
1288112881
type: string
1288212882
type:
@@ -81161,7 +81161,7 @@ components:
8116181161
type: object
8116281162
UpsertCloudInventorySyncConfigRequestAttributes:
8116381163
description: |-
81164-
Provider-specific configuration. Include the object that matches `data.id` (`aws`, `gcp`, or `azure`).
81164+
Settings for the cloud provider specified in `data.id`. Include only the matching provider object (`aws`, `gcp`, or `azure`).
8116581165
properties:
8116681166
aws:
8116781167
$ref: "#/components/schemas/CloudInventorySyncConfigAWSRequestAttributes"
@@ -81171,7 +81171,7 @@ components:
8117181171
$ref: "#/components/schemas/CloudInventorySyncConfigGCPRequestAttributes"
8117281172
type: object
8117381173
UpsertCloudInventorySyncConfigRequestData:
81174-
description: JSON:API data envelope for an upsert sync configuration request.
81174+
description: Storage Management configuration data for the create or update request.
8117581175
properties:
8117681176
attributes:
8117781177
$ref: "#/components/schemas/UpsertCloudInventorySyncConfigRequestAttributes"
@@ -93941,8 +93941,7 @@ paths:
9394193941
/api/v2/cloudinventoryservice/syncconfigs:
9394293942
put:
9394393943
description: |-
93944-
Create or update a cloud inventory sync configuration. Specify the cloud provider in `data.id`
93945-
and provider-specific settings under `data.attributes`. This endpoint uses an upsert model.
93944+
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.
9394693945
operationId: UpsertSyncConfig
9394793946
requestBody:
9394893947
content:
@@ -93990,17 +93989,14 @@ paths:
9399093989
$ref: "#/components/responses/ForbiddenResponse"
9399193990
"429":
9399293991
$ref: "#/components/responses/TooManyRequestsResponse"
93993-
summary: Create or update a sync configuration
93992+
summary: Enable Storage Management for a bucket
9399493993
tags:
93995-
- Cloud Inventory Sync Configs
93994+
- Storage Management
9399693995
x-codegen-request-body-name: body
9399793996
"x-permission":
9399893997
operator: OR
9399993998
permissions:
9400093999
- aws_configurations_manage
94001-
x-unstable: |-
94002-
**Note**: This endpoint is in preview and is subject to change.
94003-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
9400494000
/api/v2/code-coverage/branch/summary:
9400594001
post:
9400694002
description: |-
@@ -145604,9 +145600,6 @@ tags:
145604145600
- description: |-
145605145601
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/).
145606145602
name: Cloud Cost Management
145607-
- description: |-
145608-
Configure cloud inventory file synchronization from your cloud storage to Datadog.
145609-
name: Cloud Inventory Sync Configs
145610145603
- description: |-
145611145604
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.
145612145605
name: Cloud Network Monitoring
@@ -145988,6 +145981,9 @@ tags:
145988145981
name: Static Analysis
145989145982
- description: Manage your status pages and communicate service disruptions to stakeholders via Datadog's API. See the [Status Pages documentation](https://docs.datadoghq.com/incident_response/status_pages/) for more information.
145990145983
name: Status Pages
145984+
- description: |-
145985+
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.
145986+
name: Storage Management
145991145987
- description: |-
145992145988
Synthetic tests use simulated requests and actions so you can monitor the availability and performance of systems and applications. Datadog supports the following types of synthetic tests:
145993145989
- [API tests](https://docs.datadoghq.com/synthetics/api_tests/)

api/datadog/configuration.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,6 @@ func NewConfiguration() *Configuration {
755755
"v2.MuteSecurityFindings": false,
756756
"v2.RunHistoricalJob": false,
757757
"v2.SearchSecurityMonitoringHistsignals": false,
758-
"v2.UpsertSyncConfig": false,
759758
"v2.GetCodeCoverageBranchSummary": false,
760759
"v2.GetCodeCoverageCommitSummary": false,
761760
"v2.CreateDashboardSecureEmbed": false,

api/datadogV2/api_cloud_inventory_sync_configs.go renamed to api/datadogV2/api_storage_management.go

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,25 @@ package datadogV2
66

77
import (
88
_context "context"
9-
_fmt "fmt"
10-
_log "log"
119
_nethttp "net/http"
1210
_neturl "net/url"
1311

1412
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
1513
)
1614

17-
// CloudInventorySyncConfigsApi service type
18-
type CloudInventorySyncConfigsApi datadog.Service
15+
// StorageManagementApi service type
16+
type StorageManagementApi datadog.Service
1917

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.
23-
func (a *CloudInventorySyncConfigsApi) UpsertSyncConfig(ctx _context.Context, body UpsertCloudInventorySyncConfigRequest) (CloudInventorySyncConfigResponse, *_nethttp.Response, error) {
18+
// UpsertSyncConfig Enable Storage Management for a bucket.
19+
// 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.
20+
func (a *StorageManagementApi) UpsertSyncConfig(ctx _context.Context, body UpsertCloudInventorySyncConfigRequest) (CloudInventorySyncConfigResponse, *_nethttp.Response, error) {
2421
var (
2522
localVarHTTPMethod = _nethttp.MethodPut
2623
localVarPostBody interface{}
2724
localVarReturnValue CloudInventorySyncConfigResponse
2825
)
2926

30-
operationId := "v2.UpsertSyncConfig"
31-
isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId)
32-
if !isOperationEnabled {
33-
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
34-
}
35-
if isOperationEnabled && a.Client.Cfg.Debug {
36-
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
37-
}
38-
39-
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.CloudInventorySyncConfigsApi.UpsertSyncConfig")
27+
localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.StorageManagementApi.UpsertSyncConfig")
4028
if err != nil {
4129
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}
4230
}
@@ -116,9 +104,9 @@ func (a *CloudInventorySyncConfigsApi) UpsertSyncConfig(ctx _context.Context, bo
116104
return localVarReturnValue, localVarHTTPResponse, nil
117105
}
118106

119-
// NewCloudInventorySyncConfigsApi Returns NewCloudInventorySyncConfigsApi.
120-
func NewCloudInventorySyncConfigsApi(client *datadog.APIClient) *CloudInventorySyncConfigsApi {
121-
return &CloudInventorySyncConfigsApi{
107+
// NewStorageManagementApi Returns NewStorageManagementApi.
108+
func NewStorageManagementApi(client *datadog.APIClient) *StorageManagementApi {
109+
return &StorageManagementApi{
122110
Client: client,
123111
}
124112
}

api/datadogV2/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@
214214
// - [CloudCostManagementApi.ValidateBudget]
215215
// - [CloudCostManagementApi.ValidateCsvBudget]
216216
// - [CloudCostManagementApi.ValidateQuery]
217-
// - [CloudInventorySyncConfigsApi.UpsertSyncConfig]
218217
// - [CloudNetworkMonitoringApi.GetAggregatedConnections]
219218
// - [CloudNetworkMonitoringApi.GetAggregatedDns]
220219
// - [CloudflareIntegrationApi.CreateCloudflareAccount]
@@ -923,6 +922,7 @@
923922
// - [StatusPagesApi.UpdateDegradation]
924923
// - [StatusPagesApi.UpdateMaintenance]
925924
// - [StatusPagesApi.UpdateStatusPage]
925+
// - [StorageManagementApi.UpsertSyncConfig]
926926
// - [SyntheticsApi.AbortTestFileMultipartUpload]
927927
// - [SyntheticsApi.AddTestToSyntheticsDowntime]
928928
// - [SyntheticsApi.CompleteTestFileMultipartUpload]

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:"-"`

0 commit comments

Comments
 (0)