|
31 | 31 | from datadog_api_client.v2.model.sourcemap_file_response import SourcemapFileResponse |
32 | 32 | from datadog_api_client.v2.model.list_sourcemaps_response import ListSourcemapsResponse |
33 | 33 | from datadog_api_client.v2.model.sourcemap_search_by import SourcemapSearchBy |
| 34 | +from datadog_api_client.v2.model.sourcemap_symbol_type import SourcemapSymbolType |
34 | 35 | from datadog_api_client.v2.model.service_repository_info_response import ServiceRepositoryInfoResponse |
35 | 36 | from datadog_api_client.v2.model.service_repository_info_request import ServiceRepositoryInfoRequest |
36 | 37 |
|
@@ -406,6 +407,11 @@ def __init__(self, api_client=None): |
406 | 407 | "attribute": "mapkind", |
407 | 408 | "location": "query", |
408 | 409 | }, |
| 410 | + "symbol_type": { |
| 411 | + "openapi_types": (SourcemapSymbolType,), |
| 412 | + "attribute": "symbol_type", |
| 413 | + "location": "query", |
| 414 | + }, |
409 | 415 | "page_after": { |
410 | 416 | "openapi_types": (str,), |
411 | 417 | "attribute": "page[after]", |
@@ -938,7 +944,8 @@ def get_service_repository_info( |
938 | 944 | ) -> ServiceRepositoryInfoResponse: |
939 | 945 | """Get service repository information. |
940 | 946 |
|
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. |
942 | 949 |
|
943 | 950 | :type body: ServiceRepositoryInfoRequest |
944 | 951 | :rtype: ServiceRepositoryInfoResponse |
@@ -1137,6 +1144,7 @@ def list_sourcemaps( |
1137 | 1144 | *, |
1138 | 1145 | search_by: Union[SourcemapSearchBy, UnsetType] = unset, |
1139 | 1146 | mapkind: Union[SourcemapMapKind, UnsetType] = unset, |
| 1147 | + symbol_type: Union[SourcemapSymbolType, UnsetType] = unset, |
1140 | 1148 | page_after: Union[str, UnsetType] = unset, |
1141 | 1149 | page_size: Union[int, UnsetType] = unset, |
1142 | 1150 | page_number: Union[int, UnsetType] = unset, |
@@ -1251,6 +1259,9 @@ def list_sourcemaps( |
1251 | 1259 | :type search_by: SourcemapSearchBy, optional |
1252 | 1260 | :param mapkind: The type of source map. Defaults to ``js``. |
1253 | 1261 | :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 |
1254 | 1265 | :param page_after: Cursor for the next page of a JavaScript listing. Use the value from |
1255 | 1266 | ``meta.page.next_cursor`` and keep the same search mode and filters. |
1256 | 1267 | Omit on the first request. Not supported for other map kinds or for |
@@ -1314,6 +1325,9 @@ def list_sourcemaps( |
1314 | 1325 | if mapkind is not unset: |
1315 | 1326 | kwargs["mapkind"] = mapkind |
1316 | 1327 |
|
| 1328 | + if symbol_type is not unset: |
| 1329 | + kwargs["symbol_type"] = symbol_type |
| 1330 | + |
1317 | 1331 | if page_after is not unset: |
1318 | 1332 | kwargs["page_after"] = page_after |
1319 | 1333 |
|
|
0 commit comments