Skip to content

Commit d45ca68

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f7a95272 of spec repo
1 parent 77de765 commit d45ca68

File tree

24 files changed

+651
-158
lines changed

24 files changed

+651
-158
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": "2023-10-05 18:57:51.845192",
8-
"spec_repo_commit": "faa2c8d3"
7+
"regenerated": "2023-10-05 20:05:33.752157",
8+
"spec_repo_commit": "f7a95272"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-10-05 18:57:51.859113",
13-
"spec_repo_commit": "faa2c8d3"
12+
"regenerated": "2023-10-05 20:05:33.768354",
13+
"spec_repo_commit": "f7a95272"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 156 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5482,24 +5482,6 @@ components:
54825482
type: string
54835483
x-enum-varnames:
54845484
- GCP_SERVICE_ACCOUNT
5485-
GetAllPowerpacksResponse:
5486-
description: Response object which includes all powerpack configurations.
5487-
properties:
5488-
data:
5489-
description: List of powerpack definitions.
5490-
items:
5491-
$ref: '#/components/schemas/PowerpackData'
5492-
type: array
5493-
included:
5494-
description: Array of objects related to the users.
5495-
items:
5496-
$ref: '#/components/schemas/User'
5497-
type: array
5498-
links:
5499-
$ref: '#/components/schemas/PowerpackResponseLinks'
5500-
meta:
5501-
$ref: '#/components/schemas/PowerpacksResponseMeta'
5502-
type: object
55035485
GetFindingResponse:
55045486
description: The expected response schema when getting a finding.
55055487
properties:
@@ -7677,6 +7659,24 @@ components:
76777659
- data
76787660
- meta
76797661
type: object
7662+
ListPowerpacksResponse:
7663+
description: Response object which includes all powerpack configurations.
7664+
properties:
7665+
data:
7666+
description: List of powerpack definitions.
7667+
items:
7668+
$ref: '#/components/schemas/PowerpackData'
7669+
type: array
7670+
included:
7671+
description: Array of objects related to the users.
7672+
items:
7673+
$ref: '#/components/schemas/User'
7674+
type: array
7675+
links:
7676+
$ref: '#/components/schemas/PowerpackResponseLinks'
7677+
meta:
7678+
$ref: '#/components/schemas/PowerpacksResponseMeta'
7679+
type: object
76807680
ListTeamsInclude:
76817681
description: Included related resources optionally requested.
76827682
enum:
@@ -10596,18 +10596,7 @@ components:
1059610596
example: Powerpack for ABC
1059710597
type: string
1059810598
group_widget:
10599-
additionalProperties: {}
10600-
description: Templated group of dashboard widgets for the powerpack.
10601-
example:
10602-
layout_type: ordered
10603-
tags:
10604-
- tag:foo1
10605-
type: group
10606-
widgets:
10607-
- definition:
10608-
content: example
10609-
type: note
10610-
type: object
10599+
$ref: '#/components/schemas/PowerpackGroupWidget'
1061110600
name:
1061210601
description: Name of the powerpack.
1061310602
example: Sample Powerpack
@@ -10649,6 +10638,141 @@ components:
1064910638
example: powerpack
1065010639
type: string
1065110640
type: object
10641+
PowerpackGroupWidget:
10642+
description: Powerpack group widget definition object.
10643+
properties:
10644+
definition:
10645+
$ref: '#/components/schemas/PowerpackGroupWidgetDefinition'
10646+
layout:
10647+
$ref: '#/components/schemas/PowerpackGroupWidgetLayout'
10648+
required:
10649+
- definition
10650+
type: object
10651+
PowerpackGroupWidgetDefinition:
10652+
description: Powerpack group widget object.
10653+
properties:
10654+
layout_type:
10655+
description: Layout type of widgets.
10656+
example: ordered
10657+
type: string
10658+
show_title:
10659+
description: Boolean indicating whether powerpack group title should be
10660+
visible or not.
10661+
example: true
10662+
type: boolean
10663+
title:
10664+
description: Name for the group widget.
10665+
example: Sample Powerpack
10666+
type: string
10667+
type:
10668+
description: Type of widget, must be group.
10669+
example: group
10670+
type: string
10671+
widgets:
10672+
description: Widgets inside the powerpack.
10673+
example:
10674+
- definition:
10675+
content: example
10676+
type: note
10677+
layout:
10678+
height: 5
10679+
width: 10
10680+
x: 0
10681+
y: 0
10682+
items:
10683+
$ref: '#/components/schemas/PowerpackInnerWidgets'
10684+
type: array
10685+
required:
10686+
- widgets
10687+
- layout_type
10688+
- type
10689+
type: object
10690+
PowerpackGroupWidgetLayout:
10691+
description: Powerpack group widget layout.
10692+
properties:
10693+
height:
10694+
description: The height of the widget. Should be a non-negative integer.
10695+
example: 0
10696+
format: int64
10697+
minimum: 0
10698+
type: integer
10699+
width:
10700+
description: The width of the widget. Should be a non-negative integer.
10701+
example: 0
10702+
format: int64
10703+
minimum: 0
10704+
type: integer
10705+
x:
10706+
description: The position of the widget on the x (horizontal) axis. Should
10707+
be a non-negative integer.
10708+
example: 0
10709+
format: int64
10710+
minimum: 0
10711+
type: integer
10712+
y:
10713+
description: The position of the widget on the y (vertical) axis. Should
10714+
be a non-negative integer.
10715+
example: 0
10716+
format: int64
10717+
minimum: 0
10718+
type: integer
10719+
required:
10720+
- x
10721+
- y
10722+
- width
10723+
- height
10724+
type: object
10725+
PowerpackInnerWidgetLayout:
10726+
description: Powerpack inner widget layout.
10727+
properties:
10728+
height:
10729+
description: The height of the widget. Should be a non-negative integer.
10730+
example: 0
10731+
format: int64
10732+
minimum: 0
10733+
type: integer
10734+
width:
10735+
description: The width of the widget. Should be a non-negative integer.
10736+
example: 0
10737+
format: int64
10738+
minimum: 0
10739+
type: integer
10740+
x:
10741+
description: The position of the widget on the x (horizontal) axis. Should
10742+
be a non-negative integer.
10743+
example: 0
10744+
format: int64
10745+
minimum: 0
10746+
type: integer
10747+
y:
10748+
description: The position of the widget on the y (vertical) axis. Should
10749+
be a non-negative integer.
10750+
example: 0
10751+
format: int64
10752+
minimum: 0
10753+
type: integer
10754+
required:
10755+
- x
10756+
- y
10757+
- width
10758+
- height
10759+
type: object
10760+
PowerpackInnerWidgets:
10761+
description: Powerpack group widget definition of individual widgets.
10762+
properties:
10763+
definition:
10764+
additionalProperties: {}
10765+
description: Information about widget.
10766+
example:
10767+
definition:
10768+
content: example
10769+
type: note
10770+
type: object
10771+
layout:
10772+
$ref: '#/components/schemas/PowerpackInnerWidgetLayout'
10773+
required:
10774+
- definition
10775+
type: object
1065210776
PowerpackRelationships:
1065310777
description: Powerpack relationship object.
1065410778
properties:
@@ -23570,13 +23694,13 @@ paths:
2357023694
/api/v2/powerpacks:
2357123695
get:
2357223696
description: Get a list of all powerpacks.
23573-
operationId: GetAllPowerpacks
23697+
operationId: ListPowerpacks
2357423698
responses:
2357523699
'200':
2357623700
content:
2357723701
application/json:
2357823702
schema:
23579-
$ref: '#/components/schemas/GetAllPowerpacksResponse'
23703+
$ref: '#/components/schemas/ListPowerpacksResponse'
2358023704
description: OK
2358123705
'429':
2358223706
$ref: '#/components/responses/TooManyRequestsResponse'
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-09-19T20:34:17.937Z"
1+
"2023-10-05T15:56:23.491Z"

cassettes/v2/Powerpack_1228731231/Create-a-new-powerpack-returns-Bad-Request-response_448518668/recording.har

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "630c2e80376076a05ffe904dbebb7715",
11+
"_id": "0011486f1e30c65272fb909e4c526536",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 319,
15+
"bodySize": 265,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -26,23 +26,23 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 560,
29+
"headersSize": 558,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"Powerpack for ABC\",\"group_widget\":{\"layout_type\":\"ordered\",\"tags\":[\"tag:foo1\"],\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"example\",\"type\":\"note\"}}]},\"name\":\"Sample Powerpack\",\"tags\":[\"tag:foo1\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"test\"}]},\"type\":\"powerpack\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"Powerpack for ABC\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"type\":\"group1\",\"widgets\":[]}},\"name\":\"Sample Powerpack\",\"tags\":[\"tag:foo1\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"test\"}]},\"type\":\"powerpack\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/powerpacks"
3939
},
4040
"response": {
41-
"bodySize": 6547,
41+
"bodySize": 215,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 6547,
45-
"text": "{\"errors\":[\"Invalid group widget for powerpack. Error: 'type' is a required property\\n\\nFailed validating 'required' in schema:\\n {'additionalProperties': False,\\n 'properties': {'background_color': {'type': 'string'},\\n 'banner_img': {'type': 'string'},\\n 'layout_type': {'enum': ['ordered']},\\n 'reflow_type': {'enum': ['auto', 'fixed']},\\n 'show_title': {'type': 'boolean'},\\n 'title': {'type': 'string'},\\n 'title_align': {'enum': ['center', 'left', 'right']},\\n 'type': {'enum': ['group']},\\n 'widgets': {'items': {'additionalProperties': False,\\n 'properties': {'definition': {'additionalProperties': True,\\n 'properties': {'type': {'enum': ['alert_graph',\\n 'alert_value',\\n 'change',\\n 'check_status',\\n 'distribution',\\n 'geomap',\\n 'heatmap',\\n 'hostmap',\\n 'note',\\n 'query_value',\\n 'scatterplot',\\n 'servicemap',\\n 'topology_map',\\n 'query_table',\\n 'timeseries',\\n 'toplist',\\n 'list_stream',\\n 'treemap',\\n 'uptime',\\n 'slo',\\n 'funnel',\\n 'custom',\\n 'experimental',\\n 'sunburst',\\n 'wildcard',\\n 'slo_list',\\n 'flame_graph',\\n 'run_workflow',\\n 'embedded_app',\\n 'log_stream',\\n 'iframe',\\n 'free_text',\\n 'event_stream',\\n 'event_timeline',\\n 'manage_status',\\n 'trace_service',\\n 'image']}},\\n 'required': ['type'],\\n 'type': 'object'},\\n 'id': {'type': 'integer'},\\n 'layout': {'additionalProperties': False,\\n 'properties': {'height': {'type': 'number'},\\n 'is_column_break': {'type': 'boolean'},\\n 'width': {'type': 'number'},\\n 'x': {'type': 'number'},\\n 'y': {'type': 'number'}},\\n 'type': 'object'}},\\n 'required': ['definition'],\\n 'type': 'object'},\\n 'type': 'array'}},\\n 'required': ['type', 'layout_type', 'widgets'],\\n 'type': 'object'}\\n\\nOn instance:\\n {}.\"]}"
44+
"size": 215,
45+
"text": "{\"errors\":[\"Invalid group widget for powerpack. Error: 'group1' is not one of ['group']\\n\\nFailed validating 'enum' in schema['properties']['type']:\\n {'enum': ['group']}\\n\\nOn instance['type']:\\n 'group1'.\"]}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,14 +51,14 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 653,
54+
"headersSize": 652,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 400,
5858
"statusText": "Bad Request"
5959
},
60-
"startedDateTime": "2023-09-19T20:34:18.727Z",
61-
"time": 271
60+
"startedDateTime": "2023-10-05T15:56:24.057Z",
61+
"time": 110
6262
}
6363
],
6464
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-09-19T20:34:19.633Z"
1+
"2023-10-04T19:18:49.142Z"

0 commit comments

Comments
 (0)