Skip to content

Commit 580f1a3

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

File tree

44 files changed

+941
-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

+941
-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:26:03.645888",
8+
"spec_repo_commit": "e84e2933"
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:26:03.660568",
13+
"spec_repo_commit": "e84e2933"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 66 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.
@@ -1735,6 +1707,21 @@ components:
17351707
format: int64
17361708
type: integer
17371709
type: object
1710+
AppVersionSelector:
1711+
description: The version selector parameter used in endpoints such as Get App
1712+
oneOf:
1713+
- $ref: '#/components/schemas/AppVersionSelectorConstants'
1714+
- format: int64
1715+
type: integer
1716+
AppVersionSelectorConstants:
1717+
description: Constants that always selects a particular version of an app
1718+
enum:
1719+
- latest
1720+
- deployed
1721+
type: string
1722+
x-enum-varnames:
1723+
- LATEST
1724+
- DEPLOYED
17381725
ApplicationKeyCreateAttributes:
17391726
description: Attributes used to create an application Key.
17401727
properties:
@@ -30153,19 +30140,19 @@ paths:
3015330140
content:
3015430141
application/json:
3015530142
schema:
30156-
$ref: '#/components/schemas/AppBuilderError'
30143+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3015730144
description: Bad Request
3015830145
'403':
3015930146
content:
3016030147
application/json:
3016130148
schema:
30162-
$ref: '#/components/schemas/AppBuilderError'
30163-
description: Forbidden, e.g. missing permissions to delete one or more apps
30149+
$ref: '#/components/schemas/JSONAPIErrorResponse'
30150+
description: Forbidden
3016430151
'404':
3016530152
content:
3016630153
application/json:
3016730154
schema:
30168-
$ref: '#/components/schemas/AppBuilderError'
30155+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3016930156
description: Not Found
3017030157
'429':
3017130158
$ref: '#/components/responses/TooManyRequestsResponse'
@@ -30196,19 +30183,19 @@ paths:
3019630183
schema:
3019730184
format: int64
3019830185
type: integer
30199-
- description: The `AppsFilter` `user_name`.
30186+
- description: Filter apps by the app creator. Usually the user's email
3020030187
in: query
3020130188
name: filter[user_name]
3020230189
required: false
3020330190
schema:
3020430191
type: string
30205-
- description: The `AppsFilter` `user_uuid`.
30192+
- description: Filter apps by the app creator's UUID
3020630193
in: query
3020730194
name: filter[user_uuid]
3020830195
required: false
3020930196
schema:
3021030197
type: string
30211-
- description: The `AppsFilter` `name`.
30198+
- description: Filter by app name
3021230199
in: query
3021330200
name: filter[name]
3021430201
required: false
@@ -30220,25 +30207,32 @@ paths:
3022030207
required: false
3022130208
schema:
3022230209
type: string
30223-
- description: The `AppsFilter` `deployed`.
30210+
- description: Filter apps by whether they are published
3022430211
in: query
3022530212
name: filter[deployed]
3022630213
required: false
3022730214
schema:
3022830215
type: boolean
30229-
- description: The `AppsFilter` `tags`.
30216+
- description: Filter apps by tags
3023030217
in: query
3023130218
name: filter[tags]
3023230219
required: false
3023330220
schema:
3023430221
type: string
30235-
- description: The `AppsFilter` `favorite`.
30222+
- description: Filter apps by whether you have added them to your favorites
3023630223
in: query
3023730224
name: filter[favorite]
3023830225
required: false
3023930226
schema:
3024030227
type: boolean
30241-
- explode: false
30228+
- description: Filter apps by whether they are enabled for self-service
30229+
in: query
30230+
name: filter[self_service]
30231+
required: false
30232+
schema:
30233+
type: boolean
30234+
- description: The fields and direction to sort apps by
30235+
explode: false
3024230236
in: query
3024330237
name: sort
3024430238
required: false
@@ -30258,13 +30252,13 @@ paths:
3025830252
content:
3025930253
application/json:
3026030254
schema:
30261-
$ref: '#/components/schemas/AppBuilderError'
30262-
description: Bad Request, e.g. invalid sort parameter
30255+
$ref: '#/components/schemas/JSONAPIErrorResponse'
30256+
description: Bad Request
3026330257
'403':
3026430258
content:
3026530259
application/json:
3026630260
schema:
30267-
$ref: '#/components/schemas/AppBuilderError'
30261+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3026830262
description: Forbidden
3026930263
'429':
3027030264
$ref: '#/components/responses/TooManyRequestsResponse'
@@ -30297,15 +30291,14 @@ paths:
3029730291
content:
3029830292
application/json:
3029930293
schema:
30300-
$ref: '#/components/schemas/AppBuilderError'
30294+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3030130295
description: Bad Request
3030230296
'403':
3030330297
content:
3030430298
application/json:
3030530299
schema:
30306-
$ref: '#/components/schemas/AppBuilderError'
30307-
description: Forbidden, e.g. missing required permissions to a connection
30308-
or workflow used in the app
30300+
$ref: '#/components/schemas/JSONAPIErrorResponse'
30301+
description: Forbidden
3030930302
'429':
3031030303
$ref: '#/components/responses/TooManyRequestsResponse'
3031130304
summary: Create App
@@ -30340,25 +30333,25 @@ paths:
3034030333
content:
3034130334
application/json:
3034230335
schema:
30343-
$ref: '#/components/schemas/AppBuilderError'
30336+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3034430337
description: Bad Request
3034530338
'403':
3034630339
content:
3034730340
application/json:
3034830341
schema:
30349-
$ref: '#/components/schemas/AppBuilderError'
30342+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3035030343
description: Forbidden
3035130344
'404':
3035230345
content:
3035330346
application/json:
3035430347
schema:
30355-
$ref: '#/components/schemas/AppBuilderError'
30348+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3035630349
description: Not Found
3035730350
'410':
3035830351
content:
3035930352
application/json:
3036030353
schema:
30361-
$ref: '#/components/schemas/AppBuilderError'
30354+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3036230355
description: Gone
3036330356
'429':
3036430357
$ref: '#/components/responses/TooManyRequestsResponse'
@@ -30380,6 +30373,11 @@ paths:
3038030373
required: true
3038130374
schema:
3038230375
type: string
30376+
- in: query
30377+
name: version
30378+
required: false
30379+
schema:
30380+
$ref: '#/components/schemas/AppVersionSelector'
3038330381
responses:
3038430382
'200':
3038530383
content:
@@ -30391,19 +30389,19 @@ paths:
3039130389
content:
3039230390
application/json:
3039330391
schema:
30394-
$ref: '#/components/schemas/AppBuilderError'
30392+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3039530393
description: Bad Request
3039630394
'403':
3039730395
content:
3039830396
application/json:
3039930397
schema:
30400-
$ref: '#/components/schemas/AppBuilderError'
30398+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3040130399
description: Forbidden
3040230400
'404':
3040330401
content:
3040430402
application/json:
3040530403
schema:
30406-
$ref: '#/components/schemas/AppBuilderError'
30404+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3040730405
description: Not Found
3040830406
'429':
3040930407
$ref: '#/components/responses/TooManyRequestsResponse'
@@ -30443,15 +30441,14 @@ paths:
3044330441
content:
3044430442
application/json:
3044530443
schema:
30446-
$ref: '#/components/schemas/AppBuilderError'
30444+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3044730445
description: Bad Request
3044830446
'403':
3044930447
content:
3045030448
application/json:
3045130449
schema:
30452-
$ref: '#/components/schemas/AppBuilderError'
30453-
description: Forbidden, e.g. missing required permissions to a connection
30454-
or workflow used in the app
30450+
$ref: '#/components/schemas/JSONAPIErrorResponse'
30451+
description: Forbidden
3045530452
'429':
3045630453
$ref: '#/components/responses/TooManyRequestsResponse'
3045730454
summary: Update App
@@ -30486,25 +30483,25 @@ paths:
3048630483
content:
3048730484
application/json:
3048830485
schema:
30489-
$ref: '#/components/schemas/AppBuilderError'
30486+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3049030487
description: Bad Request
3049130488
'403':
3049230489
content:
3049330490
application/json:
3049430491
schema:
30495-
$ref: '#/components/schemas/AppBuilderError'
30492+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3049630493
description: Forbidden
3049730494
'404':
3049830495
content:
3049930496
application/json:
3050030497
schema:
30501-
$ref: '#/components/schemas/AppBuilderError'
30498+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3050230499
description: Not Found
3050330500
'429':
3050430501
$ref: '#/components/responses/TooManyRequestsResponse'
3050530502
summary: Disable App
3050630503
tags:
30507-
- App Deployment
30504+
- Apps
3050830505
x-permission:
3050930506
operator: OR
3051030507
permissions:
@@ -30531,25 +30528,25 @@ paths:
3053130528
content:
3053230529
application/json:
3053330530
schema:
30534-
$ref: '#/components/schemas/AppBuilderError'
30531+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3053530532
description: Bad Request
3053630533
'403':
3053730534
content:
3053830535
application/json:
3053930536
schema:
30540-
$ref: '#/components/schemas/AppBuilderError'
30537+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3054130538
description: Forbidden
3054230539
'404':
3054330540
content:
3054430541
application/json:
3054530542
schema:
30546-
$ref: '#/components/schemas/AppBuilderError'
30543+
$ref: '#/components/schemas/JSONAPIErrorResponse'
3054730544
description: Not Found
3054830545
'429':
3054930546
$ref: '#/components/responses/TooManyRequestsResponse'
3055030547
summary: Deploy App
3055130548
tags:
30552-
- App Deployment
30549+
- Apps
3055330550
x-permission:
3055430551
operator: OR
3055530552
permissions:
@@ -46584,9 +46581,10 @@ tags:
4658446581
externalDocs:
4658546582
url: https://docs.datadoghq.com/integrations/amazon_web_services/#log-collection
4658646583
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.
46584+
- description: Datadog App Builder provides a low-code solution to rapidly develop
46585+
and integrate secure, customized applications into your monitoring stack that
46586+
are built to accelerate remediation at scale. These API endpoints allow you to
46587+
create, read, update, delete, and publish apps.
4659046588
name: Apps
4659146589
- description: Search your Audit Logs events over HTTP.
4659246590
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)