Skip to content

Commit

Permalink
Regenerate client from commit 7d6efd56 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jan 22, 2024
1 parent 0643d66 commit 530456d
Show file tree
Hide file tree
Showing 23 changed files with 1,953 additions and 18 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.6",
"regenerated": "2024-01-19 20:15:37.311766",
"spec_repo_commit": "a040f4c0"
"regenerated": "2024-01-22 11:10:53.271493",
"spec_repo_commit": "7d6efd56"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-01-19 20:15:37.326370",
"spec_repo_commit": "a040f4c0"
"regenerated": "2024-01-22 11:10:53.291356",
"spec_repo_commit": "7d6efd56"
}
}
}
255 changes: 255 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,11 @@ components:
type: string
x-enum-varnames:
- BILLING_DIMENSIONS
ApiID:
description: API identifier.
example: 90646597-5fdb-4a17-a240-647003f8c028
format: uuid
type: string
ApmRetentionFilterType:
default: apm_retention_filter
description: The type of the resource.
Expand Down Expand Up @@ -4873,6 +4878,29 @@ components:
type: string
x-enum-varnames:
- COST_BY_ORG
CreateOpenAPIResponse:
description: Response for `CreateOpenAPI` operation.
properties:
data:
$ref: '#/components/schemas/CreateOpenAPIResponseData'
type: object
CreateOpenAPIResponseAttributes:
description: Attributes for `CreateOpenAPI`.
properties:
failed_endpoints:
description: List of endpoints which couldn't be parsed.
items:
$ref: '#/components/schemas/OpenAPIEndpoint'
type: array
type: object
CreateOpenAPIResponseData:
description: Data envelope for `CreateOpenAPIResponse`.
properties:
attributes:
$ref: '#/components/schemas/CreateOpenAPIResponseAttributes'
id:
$ref: '#/components/schemas/ApiID'
type: object
CreateRuleRequest:
description: Scorecard create rule request.
properties:
Expand Down Expand Up @@ -12079,6 +12107,24 @@ components:
type: string
x-enum-varnames:
- ON_DEMAND_CONCURRENCY_CAP
OpenAPIEndpoint:
description: Endpoint info extracted from an `OpenAPI` specification.
properties:
method:
description: The endpoint method.
type: string
path:
description: The endpoint path.
type: string
type: object
OpenAPIFile:
description: Object for API data in an `OpenAPI` format as a file.
properties:
openapi_spec_file:
description: Binary `OpenAPI` spec file
format: binary
type: string
type: object
OpsgenieServiceCreateAttributes:
description: The Opsgenie service attributes for a create request.
properties:
Expand Down Expand Up @@ -20281,6 +20327,29 @@ components:
example: min
type: string
type: object
UpdateOpenAPIResponse:
description: Response for `UpdateOpenAPI`.
properties:
data:
$ref: '#/components/schemas/UpdateOpenAPIResponseData'
type: object
UpdateOpenAPIResponseAttributes:
description: Attributes for `UpdateOpenAPI`.
properties:
failed_endpoints:
description: List of endpoints which couldn't be parsed.
items:
$ref: '#/components/schemas/OpenAPIEndpoint'
type: array
type: object
UpdateOpenAPIResponseData:
description: Data envelope for `UpdateOpenAPIResponse`.
properties:
attributes:
$ref: '#/components/schemas/UpdateOpenAPIResponseAttributes'
id:
$ref: '#/components/schemas/ApiID'
type: object
UsageApplicationSecurityMonitoringResponse:
description: Application Security Monitoring usage response.
properties:
Expand Down Expand Up @@ -21107,6 +21176,190 @@ paths:
tags:
- Key Management
x-codegen-request-body-name: body
/api/v2/apicatalog/api/{id}:
delete:
description: Delete a specific API by ID.
operationId: DeleteOpenAPI
parameters:
- description: ID of the API to delete
in: path
name: id
required: true
schema:
$ref: '#/components/schemas/ApiID'
responses:
'204':
description: API deleted successfully
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: API not found error
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Delete an API
tags:
- API Management
x-unstable: '**Note**: This endpoint is in public beta.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/apicatalog/api/{id}/openapi:
get:
description: Retrieve information about a specific API in [OpenAPI](https://spec.openapis.org/oas/latest.html)
format file.
operationId: GetOpenAPI
parameters:
- description: ID of the API to retrieve
in: path
name: id
required: true
schema:
$ref: '#/components/schemas/ApiID'
responses:
'200':
content:
multipart/form-data:
schema:
format: binary
type: string
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: API not found error
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Get an API
tags:
- API Management
x-unstable: '**Note**: This endpoint is in public beta.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
put:
description: Update information about a specific API. The given content will
replace all API content of the given ID.
operationId: UpdateOpenAPI
parameters:
- description: ID of the API to modify
in: path
name: id
required: true
schema:
$ref: '#/components/schemas/ApiID'
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/OpenAPIFile'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateOpenAPIResponse'
description: API updated successfully
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: API not found error
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Update an API
tags:
- API Management
x-unstable: '**Note**: This endpoint is in public beta.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/apicatalog/openapi:
post:
description: 'Create a new API from the [OpenAPI](https://spec.openapis.org/oas/latest.html)
specification given.

It supports version `2.0`, `3.0` and `3.1` of the specification. A specific
extension section, `x-datadog`,

let you specify the `teamHandle` for your team responsible for the API in
Datadog.

It returns the created API ID.

'
operationId: CreateOpenAPI
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/OpenAPIFile'
required: true
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/CreateOpenAPIResponse'
description: API created successfully
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Forbidden
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Create a new API
tags:
- API Management
x-unstable: '**Note**: This endpoint is in public beta.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/apm/config/metrics:
get:
description: Get the list of configured span-based metrics with their definitions.
Expand Down Expand Up @@ -33170,6 +33423,8 @@ servers:
default: api
description: The subdomain where the API is deployed.
tags:
- description: Configure your API endpoints through the Datadog API.
name: API Management
- description: Manage configuration of [APM retention filters](https://app.datadoghq.com/apm/traces/retention-filters)
for your organization. You need an API and application key with Admin rights to
interact with this endpoint.
Expand Down
4 changes: 4 additions & 0 deletions api/datadog/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ func NewConfiguration() *Configuration {
},
},
unstableOperations: map[string]bool{
"v2.CreateOpenAPI": false,
"v2.DeleteOpenAPI": false,
"v2.GetOpenAPI": false,
"v2.UpdateOpenAPI": false,
"v2.GetActiveBillingDimensions": false,
"v2.GetMonthlyCostAttribution": false,
"v2.CreateDORADeployment": false,
Expand Down
Loading

0 comments on commit 530456d

Please sign in to comment.