Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "671ba51",
"generated": "2025-07-16 20:18:30.103"
"spec_repo_commit": "0becaa3",
"generated": "2025-07-17 13:14:16.680"
}
30 changes: 24 additions & 6 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25773,6 +25773,10 @@ paths:
appKeyAuth: []
- AuthZ:
- dashboards_public_share
- AuthZ:
- dashboards_embed_share
- AuthZ:
- dashboards_invite_share
summary: Create a shared dashboard
tags:
- Dashboards
Expand All @@ -25781,6 +25785,8 @@ paths:
operator: OR
permissions:
- dashboards_public_share
- dashboards_embed_share
- dashboards_invite_share
/api/v1/dashboard/public/{token}:
delete:
description: Revoke the public URL for a dashboard (rendering it private) associated
Expand Down Expand Up @@ -25819,13 +25825,19 @@ paths:
appKeyAuth: []
- AuthZ:
- dashboards_public_share
- AuthZ:
- dashboards_embed_share
- AuthZ:
- dashboards_invite_share
summary: Revoke a shared dashboard URL
tags:
- Dashboards
x-permission:
operator: OR
permissions:
- dashboards_public_share
- dashboards_embed_share
- dashboards_invite_share
get:
description: Fetch an existing shared dashboard's sharing metadata associated
with the specified token.
Expand Down Expand Up @@ -25936,6 +25948,10 @@ paths:
appKeyAuth: []
- AuthZ:
- dashboards_public_share
- AuthZ:
- dashboards_embed_share
- AuthZ:
- dashboards_invite_share
summary: Update a shared dashboard
tags:
- Dashboards
Expand All @@ -25944,6 +25960,8 @@ paths:
operator: OR
permissions:
- dashboards_public_share
- dashboards_embed_share
- dashboards_invite_share
/api/v1/dashboard/public/{token}/invitation:
delete:
description: Revoke previously sent invitation emails and active sessions used
Expand Down Expand Up @@ -25991,15 +26009,15 @@ paths:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- dashboards_public_share
- dashboards_invite_share
summary: Revoke shared dashboard invitations
tags:
- Dashboards
x-codegen-request-body-name: body
x-permission:
operator: OR
permissions:
- dashboards_public_share
- dashboards_invite_share
get:
description: Describe the invitations that exist for the given shared dashboard
(paginated).
Expand Down Expand Up @@ -26050,14 +26068,14 @@ paths:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- dashboards_public_share
- dashboards_invite_share
summary: Get all invitations for a shared dashboard
tags:
- Dashboards
x-permission:
operator: OR
permissions:
- dashboards_public_share
- dashboards_invite_share
post:
description: Send emails to specified email addresses containing links to access
a given authenticated shared dashboard. Email addresses must already belong
Expand Down Expand Up @@ -26115,15 +26133,15 @@ paths:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- dashboards_public_share
- dashboards_invite_share
summary: Send shared dashboard invitation email
tags:
- Dashboards
x-codegen-request-body-name: body
x-permission:
operator: OR
permissions:
- dashboards_public_share
- dashboards_invite_share
/api/v1/dashboard/{dashboard_id}:
delete:
description: Delete a dashboard using the specified ID.
Expand Down
1 change: 1 addition & 0 deletions .generator/src/generator/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def cli(specs, output):
env.globals["get_accessors"] = openapi.get_accessors
env.globals["get_default"] = openapi.get_default
env.globals["get_container_type"] = openapi.get_container_type
env.globals["get_security_names"] = openapi.get_security_names

api_j2 = env.get_template("Api.j2")
model_j2 = env.get_template("model.j2")
Expand Down
12 changes: 12 additions & 0 deletions .generator/src/generator/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,18 @@ def get_container_type(operation, attribute_path, stop=None):
return type_to_java(parameter)


def get_security_names(security):
if security is None:
return []

auth_names = set()
for auth in security:
for key in auth.keys() if isinstance(auth, dict) else [auth]:
auth_names.add(key)

return list(auth_names)


class Operation:
def __init__(self, name, spec, method, path):
self.name = name
Expand Down
2 changes: 1 addition & 1 deletion .generator/src/generator/templates/Api.j2
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public class {{ name }} {
if ({{ name|variable_name }} != null) { localVarFormParams.put("{{ name }}", {{ name|variable_name }}); }
{%- endfor %}

Invocation.Builder builder = apiClient.createBuilder("{{ version }}.{{ name }}.{{ operationId }}", localVarPath, {% if queryParams %}localVarQueryParams{% else %}new ArrayList<Pair>(){% endif %}, localVarHeaderParams, new HashMap<String, String>(), new String[] { {%- for mediaType in operation|accept_headers %}"{{ mediaType }}"{% if loop.nextitem %}, {% endif %}{% endfor %} }, new String[] { {% for authMethod in authMethods|reverse %}{%- for name in authMethod %}"{{ name }}"{% if loop.nextitem %}, {% endif %}{% endfor %}{% if loop.nextitem %}, {% endif %}{% endfor %} });
Invocation.Builder builder = apiClient.createBuilder("{{ version }}.{{ name }}.{{ operationId }}", localVarPath, {% if queryParams %}localVarQueryParams{% else %}new ArrayList<Pair>(){% endif %}, localVarHeaderParams, new HashMap<String, String>(), new String[] { {%- for mediaType in operation|accept_headers %}"{{ mediaType }}"{% if loop.nextitem %}, {% endif %}{% endfor %} }, new String[] { {% for name in get_security_names(authMethods)|sort %}"{{ name }}"{% if loop.nextitem %}, {% endif %}{% endfor %} });
return apiClient.invokeAPI("{{ method.upper() }}", builder, localVarHeaderParams, new String[] { {%- if operation.requestBody is defined %} {%- for mediaType in operation.requestBody.content.keys() %}"{{ mediaType }}"{% if loop.nextitem %}, {% endif %}{%- endfor %}{%- endif %} }, localVarPostBody,{% if formParams %}localVarFormParams{% else %}new HashMap<String, Object>(){% endif %} , {% if operation.requestBody %}{% if operation.requestBody.nullable %}true{% else %}false{% endif %}{% else %}false{% endif %}, {% if returnType %}new GenericType<{{ returnType }}>() {}{% else %}null{% endif %});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public ApiResponse<DashboardList> createDashboardListWithHttpInfo(DashboardList
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"POST",
builder,
Expand Down Expand Up @@ -245,7 +245,7 @@ public ApiResponse<DashboardListDeleteResponse> deleteDashboardListWithHttpInfo(
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"DELETE",
builder,
Expand Down Expand Up @@ -381,7 +381,7 @@ public ApiResponse<DashboardList> getDashboardListWithHttpInfo(Long listId) thro
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"GET",
builder,
Expand Down Expand Up @@ -504,7 +504,7 @@ public ApiResponse<DashboardListListResponse> listDashboardListsWithHttpInfo()
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"GET",
builder,
Expand Down Expand Up @@ -638,7 +638,7 @@ public ApiResponse<DashboardList> updateDashboardListWithHttpInfo(Long listId, D
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"PUT",
builder,
Expand Down
34 changes: 17 additions & 17 deletions src/main/java/com/datadog/api/client/v1/api/DashboardsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public ApiResponse<Dashboard> createDashboardWithHttpInfo(Dashboard body) throws
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"POST",
builder,
Expand Down Expand Up @@ -257,7 +257,7 @@ public ApiResponse<SharedDashboard> createPublicDashboardWithHttpInfo(SharedDash
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"POST",
builder,
Expand Down Expand Up @@ -304,7 +304,7 @@ public CompletableFuture<ApiResponse<SharedDashboard>> createPublicDashboardWith
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"AuthZ", "AuthZ", "AuthZ", "apiKeyAuth", "appKeyAuth"});
} catch (ApiException ex) {
CompletableFuture<ApiResponse<SharedDashboard>> result = new CompletableFuture<>();
result.completeExceptionally(ex);
Expand Down Expand Up @@ -391,7 +391,7 @@ public ApiResponse<DashboardDeleteResponse> deleteDashboardWithHttpInfo(String d
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"DELETE",
builder,
Expand Down Expand Up @@ -526,7 +526,7 @@ public ApiResponse<Void> deleteDashboardsWithHttpInfo(DashboardBulkDeleteRequest
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"*/*"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"DELETE",
builder,
Expand Down Expand Up @@ -660,7 +660,7 @@ public ApiResponse<DeleteSharedDashboardResponse> deletePublicDashboardWithHttpI
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"DELETE",
builder,
Expand Down Expand Up @@ -710,7 +710,7 @@ public ApiResponse<DeleteSharedDashboardResponse> deletePublicDashboardWithHttpI
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"AuthZ", "AuthZ", "AuthZ", "apiKeyAuth", "appKeyAuth"});
} catch (ApiException ex) {
CompletableFuture<ApiResponse<DeleteSharedDashboardResponse>> result =
new CompletableFuture<>();
Expand Down Expand Up @@ -810,7 +810,7 @@ public ApiResponse<Void> deletePublicDashboardInvitationWithHttpInfo(
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"*/*"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"DELETE",
builder,
Expand Down Expand Up @@ -959,7 +959,7 @@ public ApiResponse<Dashboard> getDashboardWithHttpInfo(String dashboardId) throw
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"GET",
builder,
Expand Down Expand Up @@ -1098,7 +1098,7 @@ public ApiResponse<SharedDashboard> getPublicDashboardWithHttpInfo(String token)
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"GET",
builder,
Expand Down Expand Up @@ -1308,7 +1308,7 @@ public ApiResponse<SharedDashboardInvites> getPublicDashboardInvitationsWithHttp
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"GET",
builder,
Expand Down Expand Up @@ -1593,7 +1593,7 @@ public ApiResponse<DashboardSummary> listDashboardsWithHttpInfo(
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"GET",
builder,
Expand Down Expand Up @@ -1726,7 +1726,7 @@ public ApiResponse<Void> restoreDashboardsWithHttpInfo(DashboardRestoreRequest b
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"*/*"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"PATCH",
builder,
Expand Down Expand Up @@ -1873,7 +1873,7 @@ public ApiResponse<SharedDashboardInvites> sendPublicDashboardInvitationWithHttp
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"POST",
builder,
Expand Down Expand Up @@ -2031,7 +2031,7 @@ public ApiResponse<Dashboard> updateDashboardWithHttpInfo(String dashboardId, Da
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"PUT",
builder,
Expand Down Expand Up @@ -2189,7 +2189,7 @@ public ApiResponse<SharedDashboard> updatePublicDashboardWithHttpInfo(
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
return apiClient.invokeAPI(
"PUT",
builder,
Expand Down Expand Up @@ -2248,7 +2248,7 @@ public CompletableFuture<ApiResponse<SharedDashboard>> updatePublicDashboardWith
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
new String[] {"AuthZ", "AuthZ", "AuthZ", "apiKeyAuth", "appKeyAuth"});
} catch (ApiException ex) {
CompletableFuture<ApiResponse<SharedDashboard>> result = new CompletableFuture<>();
result.completeExceptionally(ex);
Expand Down
Loading