Skip to content

Commit 4d527d3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 47ea3ae9 of spec repo
1 parent 19ead28 commit 4d527d3

File tree

63 files changed

+490
-888
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+490
-888
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-12-19 07:26:20.419256",
8-
"spec_repo_commit": "5dd2cbe4"
7+
"regenerated": "2024-12-20 22:02:24.495320",
8+
"spec_repo_commit": "47ea3ae9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-19 07:26:20.435562",
13-
"spec_repo_commit": "5dd2cbe4"
12+
"regenerated": "2024-12-20 22:02:24.510377",
13+
"spec_repo_commit": "47ea3ae9"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+46-68
Original file line numberDiff line numberDiff line change
@@ -1615,34 +1615,6 @@ components:
16151615
type: string
16161616
x-enum-varnames:
16171617
- apm_retention_filter
1618-
AppBuilderError:
1619-
description: The definition of `AppBuilderError` object.
1620-
properties:
1621-
errors:
1622-
description: The `AppBuilderError` `errors`.
1623-
items:
1624-
$ref: '#/components/schemas/AppBuilderErrorErrorsItems'
1625-
type: array
1626-
type: object
1627-
AppBuilderErrorErrorsItems:
1628-
description: The definition of `AppBuilderErrorErrorsItems` object.
1629-
properties:
1630-
detail:
1631-
description: The `items` `detail`.
1632-
type: string
1633-
source:
1634-
$ref: '#/components/schemas/AppBuilderErrorErrorsItemsSource'
1635-
type: object
1636-
AppBuilderErrorErrorsItemsSource:
1637-
description: The definition of `AppBuilderErrorErrorsItemsSource` object.
1638-
properties:
1639-
parameter:
1640-
description: The `source` `parameter`.
1641-
type: string
1642-
pointer:
1643-
description: The `source` `pointer`.
1644-
type: string
1645-
type: object
16461618
AppBuilderEvent:
16471619
additionalProperties: {}
16481620
description: The definition of `AppBuilderEvent` object.
@@ -30153,19 +30125,19 @@ paths:
3015330125
content:
3015430126
application/json:
3015530127
schema:
30156-
$ref: '#/components/schemas/AppBuilderError'
30128+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3015730129
description: Bad Request
3015830130
'403':
3015930131
content:
3016030132
application/json:
3016130133
schema:
30162-
$ref: '#/components/schemas/AppBuilderError'
30163-
description: Forbidden, e.g. missing permissions to delete one or more apps
30134+
$ref: '#/components/schemas/JSONAPIErrorResponse'
30135+
description: Forbidden
3016430136
'404':
3016530137
content:
3016630138
application/json:
3016730139
schema:
30168-
$ref: '#/components/schemas/AppBuilderError'
30140+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3016930141
description: Not Found
3017030142
'429':
3017130143
$ref: '#/components/responses/TooManyRequestsResponse'
@@ -30196,19 +30168,19 @@ paths:
3019630168
schema:
3019730169
format: int64
3019830170
type: integer
30199-
- description: The `AppsFilter` `user_name`.
30171+
- description: Filter apps by the app creator. Usually the user's email.
3020030172
in: query
3020130173
name: filter[user_name]
3020230174
required: false
3020330175
schema:
3020430176
type: string
30205-
- description: The `AppsFilter` `user_uuid`.
30177+
- description: Filter apps by the app creator's UUID.
3020630178
in: query
3020730179
name: filter[user_uuid]
3020830180
required: false
3020930181
schema:
3021030182
type: string
30211-
- description: The `AppsFilter` `name`.
30183+
- description: Filter by app name.
3021230184
in: query
3021330185
name: filter[name]
3021430186
required: false
@@ -30220,25 +30192,32 @@ paths:
3022030192
required: false
3022130193
schema:
3022230194
type: string
30223-
- description: The `AppsFilter` `deployed`.
30195+
- description: Filter apps by whether they are published.
3022430196
in: query
3022530197
name: filter[deployed]
3022630198
required: false
3022730199
schema:
3022830200
type: boolean
30229-
- description: The `AppsFilter` `tags`.
30201+
- description: Filter apps by tags.
3023030202
in: query
3023130203
name: filter[tags]
3023230204
required: false
3023330205
schema:
3023430206
type: string
30235-
- description: The `AppsFilter` `favorite`.
30207+
- description: Filter apps by whether you have added them to your favorites.
3023630208
in: query
3023730209
name: filter[favorite]
3023830210
required: false
3023930211
schema:
3024030212
type: boolean
30241-
- explode: false
30213+
- description: Filter apps by whether they are enabled for self-service.
30214+
in: query
30215+
name: filter[self_service]
30216+
required: false
30217+
schema:
30218+
type: boolean
30219+
- description: The fields and direction to sort apps by.
30220+
explode: false
3024230221
in: query
3024330222
name: sort
3024430223
required: false
@@ -30258,13 +30237,13 @@ paths:
3025830237
content:
3025930238
application/json:
3026030239
schema:
30261-
$ref: '#/components/schemas/AppBuilderError'
30262-
description: Bad Request, e.g. invalid sort parameter
30240+
$ref: '#/components/schemas/JSONAPIErrorResponse'
30241+
description: Bad Request
3026330242
'403':
3026430243
content:
3026530244
application/json:
3026630245
schema:
30267-
$ref: '#/components/schemas/AppBuilderError'
30246+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3026830247
description: Forbidden
3026930248
'429':
3027030249
$ref: '#/components/responses/TooManyRequestsResponse'
@@ -30297,15 +30276,14 @@ paths:
3029730276
content:
3029830277
application/json:
3029930278
schema:
30300-
$ref: '#/components/schemas/AppBuilderError'
30279+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3030130280
description: Bad Request
3030230281
'403':
3030330282
content:
3030430283
application/json:
3030530284
schema:
30306-
$ref: '#/components/schemas/AppBuilderError'
30307-
description: Forbidden, e.g. missing required permissions to a connection
30308-
or workflow used in the app
30285+
$ref: '#/components/schemas/JSONAPIErrorResponse'
30286+
description: Forbidden
3030930287
'429':
3031030288
$ref: '#/components/responses/TooManyRequestsResponse'
3031130289
summary: Create App
@@ -30340,25 +30318,25 @@ paths:
3034030318
content:
3034130319
application/json:
3034230320
schema:
30343-
$ref: '#/components/schemas/AppBuilderError'
30321+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3034430322
description: Bad Request
3034530323
'403':
3034630324
content:
3034730325
application/json:
3034830326
schema:
30349-
$ref: '#/components/schemas/AppBuilderError'
30327+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3035030328
description: Forbidden
3035130329
'404':
3035230330
content:
3035330331
application/json:
3035430332
schema:
30355-
$ref: '#/components/schemas/AppBuilderError'
30333+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3035630334
description: Not Found
3035730335
'410':
3035830336
content:
3035930337
application/json:
3036030338
schema:
30361-
$ref: '#/components/schemas/AppBuilderError'
30339+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3036230340
description: Gone
3036330341
'429':
3036430342
$ref: '#/components/responses/TooManyRequestsResponse'
@@ -30391,19 +30369,19 @@ paths:
3039130369
content:
3039230370
application/json:
3039330371
schema:
30394-
$ref: '#/components/schemas/AppBuilderError'
30372+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3039530373
description: Bad Request
3039630374
'403':
3039730375
content:
3039830376
application/json:
3039930377
schema:
30400-
$ref: '#/components/schemas/AppBuilderError'
30378+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3040130379
description: Forbidden
3040230380
'404':
3040330381
content:
3040430382
application/json:
3040530383
schema:
30406-
$ref: '#/components/schemas/AppBuilderError'
30384+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3040730385
description: Not Found
3040830386
'429':
3040930387
$ref: '#/components/responses/TooManyRequestsResponse'
@@ -30443,15 +30421,14 @@ paths:
3044330421
content:
3044430422
application/json:
3044530423
schema:
30446-
$ref: '#/components/schemas/AppBuilderError'
30424+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3044730425
description: Bad Request
3044830426
'403':
3044930427
content:
3045030428
application/json:
3045130429
schema:
30452-
$ref: '#/components/schemas/AppBuilderError'
30453-
description: Forbidden, e.g. missing required permissions to a connection
30454-
or workflow used in the app
30430+
$ref: '#/components/schemas/JSONAPIErrorResponse'
30431+
description: Forbidden
3045530432
'429':
3045630433
$ref: '#/components/responses/TooManyRequestsResponse'
3045730434
summary: Update App
@@ -30486,25 +30463,25 @@ paths:
3048630463
content:
3048730464
application/json:
3048830465
schema:
30489-
$ref: '#/components/schemas/AppBuilderError'
30466+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3049030467
description: Bad Request
3049130468
'403':
3049230469
content:
3049330470
application/json:
3049430471
schema:
30495-
$ref: '#/components/schemas/AppBuilderError'
30472+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3049630473
description: Forbidden
3049730474
'404':
3049830475
content:
3049930476
application/json:
3050030477
schema:
30501-
$ref: '#/components/schemas/AppBuilderError'
30478+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3050230479
description: Not Found
3050330480
'429':
3050430481
$ref: '#/components/responses/TooManyRequestsResponse'
3050530482
summary: Disable App
3050630483
tags:
30507-
- App Deployment
30484+
- Apps
3050830485
x-permission:
3050930486
operator: OR
3051030487
permissions:
@@ -30531,25 +30508,25 @@ paths:
3053130508
content:
3053230509
application/json:
3053330510
schema:
30534-
$ref: '#/components/schemas/AppBuilderError'
30511+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3053530512
description: Bad Request
3053630513
'403':
3053730514
content:
3053830515
application/json:
3053930516
schema:
30540-
$ref: '#/components/schemas/AppBuilderError'
30517+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3054130518
description: Forbidden
3054230519
'404':
3054330520
content:
3054430521
application/json:
3054530522
schema:
30546-
$ref: '#/components/schemas/AppBuilderError'
30523+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3054730524
description: Not Found
3054830525
'429':
3054930526
$ref: '#/components/responses/TooManyRequestsResponse'
3055030527
summary: Deploy App
3055130528
tags:
30552-
- App Deployment
30529+
- Apps
3055330530
x-permission:
3055430531
operator: OR
3055530532
permissions:
@@ -46584,9 +46561,10 @@ tags:
4658446561
externalDocs:
4658546562
url: https://docs.datadoghq.com/integrations/amazon_web_services/#log-collection
4658646563
name: AWS Logs Integration
46587-
- description: Deploy and disable apps in App Builder.
46588-
name: App Deployment
46589-
- description: Create, read, update, and delete apps in App Builder.
46564+
- description: Datadog App Builder provides a low-code solution to rapidly develop
46565+
and integrate secure, customized applications into your monitoring stack that
46566+
are built to accelerate remediation at scale. These API endpoints allow you to
46567+
create, read, update, delete, and publish apps.
4659046568
name: Apps
4659146569
- description: Search your Audit Logs events over HTTP.
4659246570
name: Audit

examples/v2_app-deployment_DeployApp.rs examples/v2_apps_DeployApp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Deploy App returns "Created" response
22
use datadog_api_client::datadog;
3-
use datadog_api_client::datadogV2::api_app_deployment::AppDeploymentAPI;
3+
use datadog_api_client::datadogV2::api_apps::AppsAPI;
44

55
#[tokio::main]
66
async fn main() {
77
// there is a valid "app" in the system
88
let app_data_id = std::env::var("APP_DATA_ID").unwrap();
99
let mut configuration = datadog::Configuration::new();
1010
configuration.set_unstable_operation_enabled("v2.DeployApp", true);
11-
let api = AppDeploymentAPI::with_config(configuration);
11+
let api = AppsAPI::with_config(configuration);
1212
let resp = api.deploy_app(app_data_id.clone()).await;
1313
if let Ok(value) = resp {
1414
println!("{:#?}", value);

examples/v2_app-deployment_DisableApp.rs examples/v2_apps_DisableApp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Disable App returns "OK" response
22
use datadog_api_client::datadog;
3-
use datadog_api_client::datadogV2::api_app_deployment::AppDeploymentAPI;
3+
use datadog_api_client::datadogV2::api_apps::AppsAPI;
44

55
#[tokio::main]
66
async fn main() {
77
// there is a valid "app" in the system
88
let app_data_id = std::env::var("APP_DATA_ID").unwrap();
99
let mut configuration = datadog::Configuration::new();
1010
configuration.set_unstable_operation_enabled("v2.DisableApp", true);
11-
let api = AppDeploymentAPI::with_config(configuration);
11+
let api = AppsAPI::with_config(configuration);
1212
let resp = api.disable_app(app_data_id.clone()).await;
1313
if let Ok(value) = resp {
1414
println!("{:#?}", value);

src/datadog/configuration.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ impl Default for Configuration {
137137
("v2.create_app".to_owned(), false),
138138
("v2.delete_app".to_owned(), false),
139139
("v2.delete_apps".to_owned(), false),
140+
("v2.deploy_app".to_owned(), false),
141+
("v2.disable_app".to_owned(), false),
140142
("v2.get_app".to_owned(), false),
141143
("v2.list_apps".to_owned(), false),
142144
("v2.update_app".to_owned(), false),
143-
("v2.deploy_app".to_owned(), false),
144-
("v2.disable_app".to_owned(), false),
145145
("v2.get_active_billing_dimensions".to_owned(), false),
146146
("v2.get_billing_dimension_mapping".to_owned(), false),
147147
("v2.get_monthly_cost_attribution".to_owned(), false),

0 commit comments

Comments
 (0)