From 13f8b8a6ec27bd325ecea878c7abc4037ba629dd Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 17:57:05 +0000 Subject: [PATCH] mark v1 GCP APIs as deprecated (#2039) Co-authored-by: ci.datadog-api-spec --- .apigentools-info | 8 ++++---- .generator/schemas/v1/openapi.yaml | 26 +++++++++++++++----------- api/datadogV1/api_gcp_integration.go | 16 ++++++++++++---- 3 files changed, 31 insertions(+), 19 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 1f030897f15..ea5a546cf4f 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 8f3b0088a6d..979b7ea5671 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -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: @@ -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': @@ -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: @@ -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: diff --git a/api/datadogV1/api_gcp_integration.go b/api/datadogV1/api_gcp_integration.go index ebabb28946f..1c1b0298b08 100644 --- a/api/datadogV1/api_gcp_integration.go +++ b/api/datadogV1/api_gcp_integration.go @@ -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 @@ -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 @@ -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 @@ -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