Skip to content

Commit f11753c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f125c2f of spec repo
1 parent 51b1917 commit f11753c

6 files changed

Lines changed: 116 additions & 17 deletions

File tree

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120850,17 +120850,19 @@ components:
120850120850
ServiceRepositoryInfoRequestAttributes:
120851120851
description: Attributes for the service repository info request.
120852120852
properties:
120853+
debug_id:
120854+
description: The debug ID of a JavaScript source map, in UUID format. Alternative to `service` and `version`.
120855+
example: 00000000-0000-4000-8000-000000000001
120856+
format: uuid
120857+
type: string
120853120858
service:
120854-
description: The name of the service.
120859+
description: The name of the service. Required with `version` when `debug_id` is not set.
120855120860
example: my-web-service
120856120861
type: string
120857120862
version:
120858-
description: The version of the service.
120863+
description: The version of the service. Required with `service` when `debug_id` is not set.
120859120864
example: 1.0.0
120860120865
type: string
120861-
required:
120862-
- service
120863-
- version
120864120866
type: object
120865120867
ServiceRepositoryInfoRequestData:
120866120868
description: Data object for the service repository info request.
@@ -120903,7 +120905,7 @@ components:
120903120905
attributes:
120904120906
$ref: "#/components/schemas/ServiceRepositoryInfoResponseAttributes"
120905120907
id:
120906-
description: The identifier composed of the service name and version.
120908+
description: The identifier composed of the service name and version, or the debug ID when the lookup was made by debug ID.
120907120909
example: my-web-service:1.0.0
120908120910
type: string
120909120911
type:
@@ -123583,6 +123585,16 @@ components:
123583123585
type: string
123584123586
x-enum-varnames:
123585123587
- DEBUG_ID
123588+
SourcemapSymbolType:
123589+
description: The WASM symbol representation.
123590+
enum:
123591+
- dwarf
123592+
- sourcemap
123593+
example: dwarf
123594+
type: string
123595+
x-enum-varnames:
123596+
- DWARF
123597+
- SOURCEMAP
123586123598
SourcemapsData:
123587123599
description: List of source map data objects.
123588123600
items:
@@ -236983,6 +236995,13 @@ paths:
236983236995
name: mapkind
236984236996
schema:
236985236997
$ref: "#/components/schemas/SourcemapMapKind"
236998+
- description: |-
236999+
WASM symbol representation. Only supported for `mapkind=wasm`.
237000+
Defaults to `dwarf`.
237001+
in: query
237002+
name: symbol_type
237003+
schema:
237004+
$ref: "#/components/schemas/SourcemapSymbolType"
236986237005
- description: |-
236987237006
Cursor for the next page of a JavaScript listing. Use the value from
236988237007
`meta.page.next_cursor` and keep the same search mode and filters.
@@ -237470,7 +237489,9 @@ paths:
237470237489
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
237471237490
/api/v2/sourcemaps/service_repository_info:
237472237491
post:
237473-
description: Returns the repository URL and commit SHA associated with a given service and version.
237492+
description: |-
237493+
Returns the repository URL and commit SHA associated with a debug ID or a given service and version.
237494+
Provide either `debug_id`, or both `service` and `version`. When `debug_id` is set, it takes precedence.
237474237495
operationId: GetServiceRepositoryInfo
237475237496
requestBody:
237476237497
content:
@@ -237503,6 +237524,12 @@ paths:
237503237524
schema:
237504237525
$ref: "#/components/schemas/ServiceRepositoryInfoResponse"
237505237526
description: OK
237527+
"400":
237528+
content:
237529+
application/json:
237530+
schema:
237531+
$ref: "#/components/schemas/JSONAPIErrorResponse"
237532+
description: Bad Request
237506237533
"401":
237507237534
content:
237508237535
application/json:

‎src/datadog_api_client/v2/api/rum_api.py‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from datadog_api_client.v2.model.sourcemap_file_response import SourcemapFileResponse
3232
from datadog_api_client.v2.model.list_sourcemaps_response import ListSourcemapsResponse
3333
from datadog_api_client.v2.model.sourcemap_search_by import SourcemapSearchBy
34+
from datadog_api_client.v2.model.sourcemap_symbol_type import SourcemapSymbolType
3435
from datadog_api_client.v2.model.service_repository_info_response import ServiceRepositoryInfoResponse
3536
from datadog_api_client.v2.model.service_repository_info_request import ServiceRepositoryInfoRequest
3637

@@ -406,6 +407,11 @@ def __init__(self, api_client=None):
406407
"attribute": "mapkind",
407408
"location": "query",
408409
},
410+
"symbol_type": {
411+
"openapi_types": (SourcemapSymbolType,),
412+
"attribute": "symbol_type",
413+
"location": "query",
414+
},
409415
"page_after": {
410416
"openapi_types": (str,),
411417
"attribute": "page[after]",
@@ -938,7 +944,8 @@ def get_service_repository_info(
938944
) -> ServiceRepositoryInfoResponse:
939945
"""Get service repository information.
940946
941-
Returns the repository URL and commit SHA associated with a given service and version.
947+
Returns the repository URL and commit SHA associated with a debug ID or a given service and version.
948+
Provide either ``debug_id`` , or both ``service`` and ``version``. When ``debug_id`` is set, it takes precedence.
942949
943950
:type body: ServiceRepositoryInfoRequest
944951
:rtype: ServiceRepositoryInfoResponse
@@ -1137,6 +1144,7 @@ def list_sourcemaps(
11371144
*,
11381145
search_by: Union[SourcemapSearchBy, UnsetType] = unset,
11391146
mapkind: Union[SourcemapMapKind, UnsetType] = unset,
1147+
symbol_type: Union[SourcemapSymbolType, UnsetType] = unset,
11401148
page_after: Union[str, UnsetType] = unset,
11411149
page_size: Union[int, UnsetType] = unset,
11421150
page_number: Union[int, UnsetType] = unset,
@@ -1251,6 +1259,9 @@ def list_sourcemaps(
12511259
:type search_by: SourcemapSearchBy, optional
12521260
:param mapkind: The type of source map. Defaults to ``js``.
12531261
:type mapkind: SourcemapMapKind, optional
1262+
:param symbol_type: WASM symbol representation. Only supported for ``mapkind=wasm``.
1263+
Defaults to ``dwarf``.
1264+
:type symbol_type: SourcemapSymbolType, optional
12541265
:param page_after: Cursor for the next page of a JavaScript listing. Use the value from
12551266
``meta.page.next_cursor`` and keep the same search mode and filters.
12561267
Omit on the first request. Not supported for other map kinds or for
@@ -1314,6 +1325,9 @@ def list_sourcemaps(
13141325
if mapkind is not unset:
13151326
kwargs["mapkind"] = mapkind
13161327

1328+
if symbol_type is not unset:
1329+
kwargs["symbol_type"] = symbol_type
1330+
13171331
if page_after is not unset:
13181332
kwargs["page_after"] = page_after
13191333

‎src/datadog_api_client/v2/model/service_repository_info_request_attributes.py‎

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,55 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6+
from typing import Union
67

78
from datadog_api_client.model_utils import (
89
ModelNormal,
910
cached_property,
11+
unset,
12+
UnsetType,
13+
UUID,
1014
)
1115

1216

1317
class ServiceRepositoryInfoRequestAttributes(ModelNormal):
1418
@cached_property
1519
def openapi_types(_):
1620
return {
21+
"debug_id": (UUID,),
1722
"service": (str,),
1823
"version": (str,),
1924
}
2025

2126
attribute_map = {
27+
"debug_id": "debug_id",
2228
"service": "service",
2329
"version": "version",
2430
}
2531

26-
def __init__(self_, service: str, version: str, **kwargs):
32+
def __init__(
33+
self_,
34+
debug_id: Union[UUID, UnsetType] = unset,
35+
service: Union[str, UnsetType] = unset,
36+
version: Union[str, UnsetType] = unset,
37+
**kwargs,
38+
):
2739
"""
2840
Attributes for the service repository info request.
2941
30-
:param service: The name of the service.
31-
:type service: str
42+
:param debug_id: The debug ID of a JavaScript source map, in UUID format. Alternative to ``service`` and ``version``.
43+
:type debug_id: UUID, optional
3244
33-
:param version: The version of the service.
34-
:type version: str
45+
:param service: The name of the service. Required with ``version`` when ``debug_id`` is not set.
46+
:type service: str, optional
47+
48+
:param version: The version of the service. Required with ``service`` when ``debug_id`` is not set.
49+
:type version: str, optional
3550
"""
51+
if debug_id is not unset:
52+
kwargs["debug_id"] = debug_id
53+
if service is not unset:
54+
kwargs["service"] = service
55+
if version is not unset:
56+
kwargs["version"] = version
3657
super().__init__(kwargs)
37-
38-
self_.service = service
39-
self_.version = version

‎src/datadog_api_client/v2/model/service_repository_info_response_data.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(
5151
:param attributes: Attributes of the service repository information.
5252
:type attributes: ServiceRepositoryInfoResponseAttributes
5353
54-
:param id: The identifier composed of the service name and version.
54+
:param id: The identifier composed of the service name and version, or the debug ID when the lookup was made by debug ID.
5555
:type id: str
5656
5757
:param type: The resource type for service repository info objects.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class SourcemapSymbolType(ModelSimple):
16+
"""
17+
The WASM symbol representation.
18+
19+
:param value: Must be one of ["dwarf", "sourcemap"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"dwarf",
25+
"sourcemap",
26+
}
27+
DWARF: ClassVar["SourcemapSymbolType"]
28+
SOURCEMAP: ClassVar["SourcemapSymbolType"]
29+
30+
@cached_property
31+
def openapi_types(_):
32+
return {
33+
"value": (str,),
34+
}
35+
36+
37+
SourcemapSymbolType.DWARF = SourcemapSymbolType("dwarf")
38+
SourcemapSymbolType.SOURCEMAP = SourcemapSymbolType("sourcemap")

‎src/datadog_api_client/v2/models/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11217,6 +11217,7 @@
1121711217
from datadog_api_client.v2.model.sourcemap_item import SourcemapItem
1121811218
from datadog_api_client.v2.model.sourcemap_map_kind import SourcemapMapKind
1121911219
from datadog_api_client.v2.model.sourcemap_search_by import SourcemapSearchBy
11220+
from datadog_api_client.v2.model.sourcemap_symbol_type import SourcemapSymbolType
1122011221
from datadog_api_client.v2.model.sourcemaps_list_meta import SourcemapsListMeta
1122111222
from datadog_api_client.v2.model.sourcemaps_list_meta_page import SourcemapsListMetaPage
1122211223
from datadog_api_client.v2.model.sourcemaps_response import SourcemapsResponse
@@ -20282,6 +20283,7 @@
2028220283
"SourcemapItem",
2028320284
"SourcemapMapKind",
2028420285
"SourcemapSearchBy",
20286+
"SourcemapSymbolType",
2028520287
"SourcemapsListMeta",
2028620288
"SourcemapsListMetaPage",
2028720289
"SourcemapsResponse",

0 commit comments

Comments
 (0)