From 80d5b8756827961e165fcf4102835d5678db48cd Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 28 Dec 2023 16:13:36 +0000 Subject: [PATCH] Regenerate client from commit c9afa70c of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v1/openapi.yaml | 30 +++++++++++++++++++++++------- api/datadogV1/api_downtimes.go | 28 +++++++++++++++++++++------- 3 files changed, 48 insertions(+), 18 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 941191b09f1..ab083e63e5e 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2023-12-27 15:09:03.590991", - "spec_repo_commit": "61dc4c3e" + "regenerated": "2023-12-28 16:11:47.975755", + "spec_repo_commit": "c9afa70c" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2023-12-27 15:09:03.612003", - "spec_repo_commit": "61dc4c3e" + "regenerated": "2023-12-28 16:11:47.995643", + "spec_repo_commit": "c9afa70c" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index d82fcbde853..81cb66b60c0 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -22984,7 +22984,9 @@ paths: x-codegen-request-body-name: body /api/v1/downtime: get: - description: Get all scheduled downtimes. + deprecated: true + description: Get all scheduled downtimes. **Note:** This endpoint has been deprecated. + Please use v2 endpoints. operationId: ListDowntimes parameters: - description: Only return downtimes that are active when the request is made. @@ -23025,7 +23027,9 @@ paths: tags: - Downtimes post: - description: Schedule a downtime. + deprecated: true + description: Schedule a downtime. **Note:** This endpoint has been deprecated. + Please use v2 endpoints. operationId: CreateDowntime requestBody: content: @@ -23066,7 +23070,11 @@ paths: x-codegen-request-body-name: body /api/v1/downtime/cancel/by_scope: post: - description: Delete all downtimes that match the scope of `X`. + deprecated: true + description: Delete all downtimes that match the scope of `X`. **Note:** This + only interacts with Downtimes created via v1 endpoints. This endpoint has + been deprecated and will not be replaced. Please use v2 endpoints to find + and cancel downtimes. operationId: CancelDowntimesByScope requestBody: content: @@ -23113,7 +23121,9 @@ paths: x-codegen-request-body-name: body /api/v1/downtime/{downtime_id}: delete: - description: Cancel a downtime. + deprecated: true + description: Cancel a downtime. **Note:** This endpoint has been deprecated. + Please use v2 endpoints. operationId: CancelDowntime parameters: - description: ID of the downtime to cancel. @@ -23150,7 +23160,9 @@ paths: tags: - Downtimes get: - description: Get downtime detail by `downtime_id`. + deprecated: true + description: Get downtime detail by `downtime_id`. **Note:** This endpoint has + been deprecated. Please use v2 endpoints. operationId: GetDowntime parameters: - description: ID of the downtime to fetch. @@ -23191,7 +23203,9 @@ paths: tags: - Downtimes put: - description: Update a single downtime by `downtime_id`. + deprecated: true + description: Update a single downtime by `downtime_id`. **Note:** This endpoint + has been deprecated. Please use v2 endpoints. operationId: UpdateDowntime parameters: - description: ID of the downtime to update. @@ -27176,7 +27190,9 @@ paths: x-codegen-request-body-name: body /api/v1/monitor/{monitor_id}/downtimes: get: - description: Get all active downtimes for the specified monitor. + deprecated: true + description: Get all active v1 downtimes for the specified monitor. **Note:** + This endpoint has been deprecated. Please use v2 endpoints. operationId: ListMonitorDowntimes parameters: - description: The id of the monitor diff --git a/api/datadogV1/api_downtimes.go b/api/datadogV1/api_downtimes.go index c51343b8223..4649558e665 100644 --- a/api/datadogV1/api_downtimes.go +++ b/api/datadogV1/api_downtimes.go @@ -17,7 +17,9 @@ import ( type DowntimesApi datadog.Service // CancelDowntime Cancel a downtime. -// Cancel a downtime. +// Cancel a downtime. **Note:** This endpoint has been deprecated. Please use v2 endpoints. +// +// Deprecated: This API is deprecated. func (a *DowntimesApi) CancelDowntime(ctx _context.Context, downtimeId int64) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -78,7 +80,9 @@ func (a *DowntimesApi) CancelDowntime(ctx _context.Context, downtimeId int64) (* } // CancelDowntimesByScope Cancel downtimes by scope. -// Delete all downtimes that match the scope of `X`. +// Delete all downtimes that match the scope of `X`. **Note:** This only interacts with Downtimes created via v1 endpoints. This endpoint has been deprecated and will not be replaced. Please use v2 endpoints to find and cancel downtimes. +// +// Deprecated: This API is deprecated. func (a *DowntimesApi) CancelDowntimesByScope(ctx _context.Context, body CancelDowntimesByScopeRequest) (CanceledDowntimesIds, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -151,7 +155,9 @@ func (a *DowntimesApi) CancelDowntimesByScope(ctx _context.Context, body CancelD } // CreateDowntime Schedule a downtime. -// Schedule a downtime. +// Schedule a downtime. **Note:** This endpoint has been deprecated. Please use v2 endpoints. +// +// Deprecated: This API is deprecated. func (a *DowntimesApi) CreateDowntime(ctx _context.Context, body Downtime) (Downtime, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -224,7 +230,9 @@ func (a *DowntimesApi) CreateDowntime(ctx _context.Context, body Downtime) (Down } // GetDowntime Get a downtime. -// Get downtime detail by `downtime_id`. +// Get downtime detail by `downtime_id`. **Note:** This endpoint has been deprecated. Please use v2 endpoints. +// +// Deprecated: This API is deprecated. func (a *DowntimesApi) GetDowntime(ctx _context.Context, downtimeId int64) (Downtime, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -319,7 +327,9 @@ func (r *ListDowntimesOptionalParameters) WithWithCreator(withCreator bool) *Lis } // ListDowntimes Get all downtimes. -// Get all scheduled downtimes. +// Get all scheduled downtimes. **Note:** This endpoint has been deprecated. Please use v2 endpoints. +// +// Deprecated: This API is deprecated. func (a *DowntimesApi) ListDowntimes(ctx _context.Context, o ...ListDowntimesOptionalParameters) ([]Downtime, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -403,7 +413,9 @@ func (a *DowntimesApi) ListDowntimes(ctx _context.Context, o ...ListDowntimesOpt } // ListMonitorDowntimes Get active downtimes for a monitor. -// Get all active downtimes for the specified monitor. +// Get all active v1 downtimes for the specified monitor. **Note:** This endpoint has been deprecated. Please use v2 endpoints. +// +// Deprecated: This API is deprecated. func (a *DowntimesApi) ListMonitorDowntimes(ctx _context.Context, monitorId int64) ([]Downtime, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -474,7 +486,9 @@ func (a *DowntimesApi) ListMonitorDowntimes(ctx _context.Context, monitorId int6 } // UpdateDowntime Update a downtime. -// Update a single downtime by `downtime_id`. +// Update a single downtime by `downtime_id`. **Note:** This endpoint has been deprecated. Please use v2 endpoints. +// +// Deprecated: This API is deprecated. func (a *DowntimesApi) UpdateDowntime(ctx _context.Context, downtimeId int64, body Downtime) (Downtime, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut