Skip to content

Commit

Permalink
mark v1 GCP APIs as deprecated (#2039)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Jun 12, 2023
1 parent d1c708f commit 13f8b8a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2023-06-12 14:39:38.543062",
"spec_repo_commit": "52c2288b"
"regenerated": "2023-06-12 17:39:55.914514",
"spec_repo_commit": "03643056"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-06-12 14:39:38.559643",
"spec_repo_commit": "52c2288b"
"regenerated": "2023-06-12 17:39:55.927997",
"spec_repo_commit": "03643056"
}
}
}
26 changes: 15 additions & 11 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23079,7 +23079,9 @@ paths:
x-codegen-request-body-name: body
/api/v1/integration/gcp:
delete:
description: Delete a given Datadog-GCP integration.
deprecated: true
description: "This endpoint is deprecated \u2013 use the V2 endpoints instead.
Delete a given Datadog-GCP integration."
operationId: DeleteGCPIntegration
requestBody:
content:
Expand Down Expand Up @@ -23115,7 +23117,9 @@ paths:
- GCP Integration
x-codegen-request-body-name: body
get:
description: List all Datadog-GCP integrations configured in your Datadog account.
deprecated: true
description: "This endpoint is deprecated \u2013 use the V2 endpoints instead.
List all Datadog-GCP integrations configured in your Datadog account."
operationId: ListGCPIntegration
responses:
'200':
Expand All @@ -23142,7 +23146,9 @@ paths:
tags:
- GCP Integration
post:
description: Create a Datadog-GCP integration.
deprecated: true
description: "This endpoint is deprecated \u2013 use the V2 endpoints instead.
Create a Datadog-GCP integration."
operationId: CreateGCPIntegration
requestBody:
content:
Expand Down Expand Up @@ -23178,14 +23184,12 @@ paths:
- GCP Integration
x-codegen-request-body-name: body
put:
description: 'Update a Datadog-GCP integrations host_filters and/or auto-mute.

Requires a `project_id` and `client_email`, however these fields cannot be
updated.

If you need to update these fields, delete and use the create (`POST`) endpoint.

The unspecified fields will keep their original values.'
deprecated: true
description: "This endpoint is deprecated \u2013 use the V2 endpoints instead.
Update a Datadog-GCP integrations host_filters and/or auto-mute.\nRequires
a `project_id` and `client_email`, however these fields cannot be updated.\nIf
you need to update these fields, delete and use the create (`POST`) endpoint.\nThe
unspecified fields will keep their original values."
operationId: UpdateGCPIntegration
requestBody:
content:
Expand Down
16 changes: 12 additions & 4 deletions api/datadogV1/api_gcp_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ import (
type GCPIntegrationApi datadog.Service

// CreateGCPIntegration Create a GCP integration.
// Create a Datadog-GCP integration.
// This endpoint is deprecated – use the V2 endpoints instead. Create a Datadog-GCP integration.
//
// Deprecated: This API is deprecated.
func (a *GCPIntegrationApi) CreateGCPIntegration(ctx _context.Context, body GCPAccount) (interface{}, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
Expand Down Expand Up @@ -89,7 +91,9 @@ func (a *GCPIntegrationApi) CreateGCPIntegration(ctx _context.Context, body GCPA
}

// DeleteGCPIntegration Delete a GCP integration.
// Delete a given Datadog-GCP integration.
// This endpoint is deprecated – use the V2 endpoints instead. Delete a given Datadog-GCP integration.
//
// Deprecated: This API is deprecated.
func (a *GCPIntegrationApi) DeleteGCPIntegration(ctx _context.Context, body GCPAccount) (interface{}, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodDelete
Expand Down Expand Up @@ -162,7 +166,9 @@ func (a *GCPIntegrationApi) DeleteGCPIntegration(ctx _context.Context, body GCPA
}

// ListGCPIntegration List all GCP integrations.
// List all Datadog-GCP integrations configured in your Datadog account.
// This endpoint is deprecated – use the V2 endpoints instead. List all Datadog-GCP integrations configured in your Datadog account.
//
// Deprecated: This API is deprecated.
func (a *GCPIntegrationApi) ListGCPIntegration(ctx _context.Context) ([]GCPAccount, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
Expand Down Expand Up @@ -232,10 +238,12 @@ func (a *GCPIntegrationApi) ListGCPIntegration(ctx _context.Context) ([]GCPAccou
}

// UpdateGCPIntegration Update a GCP integration.
// Update a Datadog-GCP integrations host_filters and/or auto-mute.
// This endpoint is deprecated – use the V2 endpoints instead. Update a Datadog-GCP integrations host_filters and/or auto-mute.
// Requires a `project_id` and `client_email`, however these fields cannot be updated.
// If you need to update these fields, delete and use the create (`POST`) endpoint.
// The unspecified fields will keep their original values.
//
// Deprecated: This API is deprecated.
func (a *GCPIntegrationApi) UpdateGCPIntegration(ctx _context.Context, body GCPAccount) (interface{}, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPut
Expand Down

0 comments on commit 13f8b8a

Please sign in to comment.