Skip to content

Commit c2af143

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e7f6813c of spec repo
1 parent 343f625 commit c2af143

File tree

44 files changed

+951
-1006
lines changed

Some content is hidden

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

44 files changed

+951
-1006
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
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:23.728211",
8-
"spec_repo_commit": "5dd2cbe4"
7+
"regenerated": "2024-12-24 22:17:51.342685",
8+
"spec_repo_commit": "e7f6813c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-19 07:26:23.743147",
13-
"spec_repo_commit": "5dd2cbe4"
12+
"regenerated": "2024-12-24 22:17:51.357890",
13+
"spec_repo_commit": "e7f6813c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 67 additions & 68 deletions
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.
@@ -11928,6 +11900,22 @@ components:
1192811900
deployment:
1192911901
$ref: '#/components/schemas/DeploymentRelationship'
1193011902
type: object
11903+
GetAppVersionParameter:
11904+
description: The version selector definition used in the Get App endpoint
11905+
oneOf:
11906+
- $ref: '#/components/schemas/GetAppVersionParameterConstants'
11907+
- format: int64
11908+
minimum: 0
11909+
type: integer
11910+
GetAppVersionParameterConstants:
11911+
description: Constants that always selects a particular version of an app
11912+
enum:
11913+
- latest
11914+
- deployed
11915+
type: string
11916+
x-enum-varnames:
11917+
- LATEST
11918+
- DEPLOYED
1193111919
GetDataDeletionsResponseBody:
1193211920
description: The response from the get data deletion requests endpoint.
1193311921
properties:
@@ -30153,19 +30141,19 @@ paths:
3015330141
content:
3015430142
application/json:
3015530143
schema:
30156-
$ref: '#/components/schemas/AppBuilderError'
30144+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3015730145
description: Bad Request
3015830146
'403':
3015930147
content:
3016030148
application/json:
3016130149
schema:
30162-
$ref: '#/components/schemas/AppBuilderError'
30163-
description: Forbidden, e.g. missing permissions to delete one or more apps
30150+
$ref: '#/components/schemas/JSONAPIErrorResponse'
30151+
description: Forbidden
3016430152
'404':
3016530153
content:
3016630154
application/json:
3016730155
schema:
30168-
$ref: '#/components/schemas/AppBuilderError'
30156+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3016930157
description: Not Found
3017030158
'429':
3017130159
$ref: '#/components/responses/TooManyRequestsResponse'
@@ -30196,19 +30184,19 @@ paths:
3019630184
schema:
3019730185
format: int64
3019830186
type: integer
30199-
- description: The `AppsFilter` `user_name`.
30187+
- description: Filter apps by the app creator. Usually the user's email
3020030188
in: query
3020130189
name: filter[user_name]
3020230190
required: false
3020330191
schema:
3020430192
type: string
30205-
- description: The `AppsFilter` `user_uuid`.
30193+
- description: Filter apps by the app creator's UUID
3020630194
in: query
3020730195
name: filter[user_uuid]
3020830196
required: false
3020930197
schema:
3021030198
type: string
30211-
- description: The `AppsFilter` `name`.
30199+
- description: Filter by app name
3021230200
in: query
3021330201
name: filter[name]
3021430202
required: false
@@ -30220,25 +30208,32 @@ paths:
3022030208
required: false
3022130209
schema:
3022230210
type: string
30223-
- description: The `AppsFilter` `deployed`.
30211+
- description: Filter apps by whether they are published
3022430212
in: query
3022530213
name: filter[deployed]
3022630214
required: false
3022730215
schema:
3022830216
type: boolean
30229-
- description: The `AppsFilter` `tags`.
30217+
- description: Filter apps by tags
3023030218
in: query
3023130219
name: filter[tags]
3023230220
required: false
3023330221
schema:
3023430222
type: string
30235-
- description: The `AppsFilter` `favorite`.
30223+
- description: Filter apps by whether you have added them to your favorites
3023630224
in: query
3023730225
name: filter[favorite]
3023830226
required: false
3023930227
schema:
3024030228
type: boolean
30241-
- explode: false
30229+
- description: Filter apps by whether they are enabled for self-service
30230+
in: query
30231+
name: filter[self_service]
30232+
required: false
30233+
schema:
30234+
type: boolean
30235+
- description: The fields and direction to sort apps by
30236+
explode: false
3024230237
in: query
3024330238
name: sort
3024430239
required: false
@@ -30258,13 +30253,13 @@ paths:
3025830253
content:
3025930254
application/json:
3026030255
schema:
30261-
$ref: '#/components/schemas/AppBuilderError'
30262-
description: Bad Request, e.g. invalid sort parameter
30256+
$ref: '#/components/schemas/JSONAPIErrorResponse'
30257+
description: Bad Request
3026330258
'403':
3026430259
content:
3026530260
application/json:
3026630261
schema:
30267-
$ref: '#/components/schemas/AppBuilderError'
30262+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3026830263
description: Forbidden
3026930264
'429':
3027030265
$ref: '#/components/responses/TooManyRequestsResponse'
@@ -30297,15 +30292,14 @@ paths:
3029730292
content:
3029830293
application/json:
3029930294
schema:
30300-
$ref: '#/components/schemas/AppBuilderError'
30295+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3030130296
description: Bad Request
3030230297
'403':
3030330298
content:
3030430299
application/json:
3030530300
schema:
30306-
$ref: '#/components/schemas/AppBuilderError'
30307-
description: Forbidden, e.g. missing required permissions to a connection
30308-
or workflow used in the app
30301+
$ref: '#/components/schemas/JSONAPIErrorResponse'
30302+
description: Forbidden
3030930303
'429':
3031030304
$ref: '#/components/responses/TooManyRequestsResponse'
3031130305
summary: Create App
@@ -30340,25 +30334,25 @@ paths:
3034030334
content:
3034130335
application/json:
3034230336
schema:
30343-
$ref: '#/components/schemas/AppBuilderError'
30337+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3034430338
description: Bad Request
3034530339
'403':
3034630340
content:
3034730341
application/json:
3034830342
schema:
30349-
$ref: '#/components/schemas/AppBuilderError'
30343+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3035030344
description: Forbidden
3035130345
'404':
3035230346
content:
3035330347
application/json:
3035430348
schema:
30355-
$ref: '#/components/schemas/AppBuilderError'
30349+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3035630350
description: Not Found
3035730351
'410':
3035830352
content:
3035930353
application/json:
3036030354
schema:
30361-
$ref: '#/components/schemas/AppBuilderError'
30355+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3036230356
description: Gone
3036330357
'429':
3036430358
$ref: '#/components/responses/TooManyRequestsResponse'
@@ -30380,6 +30374,11 @@ paths:
3038030374
required: true
3038130375
schema:
3038230376
type: string
30377+
- in: query
30378+
name: version
30379+
required: false
30380+
schema:
30381+
$ref: '#/components/schemas/GetAppVersionParameter'
3038330382
responses:
3038430383
'200':
3038530384
content:
@@ -30391,19 +30390,19 @@ paths:
3039130390
content:
3039230391
application/json:
3039330392
schema:
30394-
$ref: '#/components/schemas/AppBuilderError'
30393+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3039530394
description: Bad Request
3039630395
'403':
3039730396
content:
3039830397
application/json:
3039930398
schema:
30400-
$ref: '#/components/schemas/AppBuilderError'
30399+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3040130400
description: Forbidden
3040230401
'404':
3040330402
content:
3040430403
application/json:
3040530404
schema:
30406-
$ref: '#/components/schemas/AppBuilderError'
30405+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3040730406
description: Not Found
3040830407
'429':
3040930408
$ref: '#/components/responses/TooManyRequestsResponse'
@@ -30443,15 +30442,14 @@ paths:
3044330442
content:
3044430443
application/json:
3044530444
schema:
30446-
$ref: '#/components/schemas/AppBuilderError'
30445+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3044730446
description: Bad Request
3044830447
'403':
3044930448
content:
3045030449
application/json:
3045130450
schema:
30452-
$ref: '#/components/schemas/AppBuilderError'
30453-
description: Forbidden, e.g. missing required permissions to a connection
30454-
or workflow used in the app
30451+
$ref: '#/components/schemas/JSONAPIErrorResponse'
30452+
description: Forbidden
3045530453
'429':
3045630454
$ref: '#/components/responses/TooManyRequestsResponse'
3045730455
summary: Update App
@@ -30486,25 +30484,25 @@ paths:
3048630484
content:
3048730485
application/json:
3048830486
schema:
30489-
$ref: '#/components/schemas/AppBuilderError'
30487+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3049030488
description: Bad Request
3049130489
'403':
3049230490
content:
3049330491
application/json:
3049430492
schema:
30495-
$ref: '#/components/schemas/AppBuilderError'
30493+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3049630494
description: Forbidden
3049730495
'404':
3049830496
content:
3049930497
application/json:
3050030498
schema:
30501-
$ref: '#/components/schemas/AppBuilderError'
30499+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3050230500
description: Not Found
3050330501
'429':
3050430502
$ref: '#/components/responses/TooManyRequestsResponse'
3050530503
summary: Disable App
3050630504
tags:
30507-
- App Deployment
30505+
- Apps
3050830506
x-permission:
3050930507
operator: OR
3051030508
permissions:
@@ -30531,25 +30529,25 @@ paths:
3053130529
content:
3053230530
application/json:
3053330531
schema:
30534-
$ref: '#/components/schemas/AppBuilderError'
30532+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3053530533
description: Bad Request
3053630534
'403':
3053730535
content:
3053830536
application/json:
3053930537
schema:
30540-
$ref: '#/components/schemas/AppBuilderError'
30538+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3054130539
description: Forbidden
3054230540
'404':
3054330541
content:
3054430542
application/json:
3054530543
schema:
30546-
$ref: '#/components/schemas/AppBuilderError'
30544+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3054730545
description: Not Found
3054830546
'429':
3054930547
$ref: '#/components/responses/TooManyRequestsResponse'
3055030548
summary: Deploy App
3055130549
tags:
30552-
- App Deployment
30550+
- Apps
3055330551
x-permission:
3055430552
operator: OR
3055530553
permissions:
@@ -46584,9 +46582,10 @@ tags:
4658446582
externalDocs:
4658546583
url: https://docs.datadoghq.com/integrations/amazon_web_services/#log-collection
4658646584
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.
46585+
- description: Datadog App Builder provides a low-code solution to rapidly develop
46586+
and integrate secure, customized applications into your monitoring stack that
46587+
are built to accelerate remediation at scale. These API endpoints allow you to
46588+
create, read, update, delete, and publish apps.
4659046589
name: Apps
4659146590
- description: Search your Audit Logs events over HTTP.
4659246591
name: Audit

examples/v2/app-deployment/DeployApp.java renamed to examples/v2/apps/DeployApp.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;
5-
import com.datadog.api.client.v2.api.AppDeploymentApi;
5+
import com.datadog.api.client.v2.api.AppsApi;
66
import com.datadog.api.client.v2.model.DeployAppResponse;
77

88
public class Example {
99
public static void main(String[] args) {
1010
ApiClient defaultClient = ApiClient.getDefaultApiClient();
1111
defaultClient.setUnstableOperationEnabled("v2.deployApp", true);
12-
AppDeploymentApi apiInstance = new AppDeploymentApi(defaultClient);
12+
AppsApi apiInstance = new AppsApi(defaultClient);
1313

1414
// there is a valid "app" in the system
1515
String APP_DATA_ID = System.getenv("APP_DATA_ID");
@@ -18,7 +18,7 @@ public static void main(String[] args) {
1818
DeployAppResponse result = apiInstance.deployApp(APP_DATA_ID);
1919
System.out.println(result);
2020
} catch (ApiException e) {
21-
System.err.println("Exception when calling AppDeploymentApi#deployApp");
21+
System.err.println("Exception when calling AppsApi#deployApp");
2222
System.err.println("Status code: " + e.getCode());
2323
System.err.println("Reason: " + e.getResponseBody());
2424
System.err.println("Response headers: " + e.getResponseHeaders());

0 commit comments

Comments
 (0)