Skip to content

[dashboards] Unmark restricted_roles as deprecated #2634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-06 19:03:03.417793",
"spec_repo_commit": "b56ea2d7"
"regenerated": "2025-01-07 19:53:49.892944",
"spec_repo_commit": "d63fa330"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-06 19:03:03.432332",
"spec_repo_commit": "b56ea2d7"
"regenerated": "2025-01-07 19:53:49.909013",
"spec_repo_commit": "d63fa330"
}
}
}
7 changes: 1 addition & 6 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1209,13 +1209,8 @@ components:
reflow_type:
$ref: '#/components/schemas/DashboardReflowType'
restricted_roles:
deprecated: true
description: 'A list of role identifiers. Only the author and users associated
description: A list of role identifiers. Only the author and users associated
with at least one of these roles can edit this dashboard.


This property is deprecated; please use the [Restriction Policies API](https://docs.datadoghq.com/api/latest/restriction-policies/)
instead to manage write authorization for individual dashboards.'
items:
description: A role UUID.
type: string
Original file line number Diff line number Diff line change
@@ -360,22 +360,15 @@ public Dashboard addRestrictedRolesItem(String restrictedRolesItem) {
* A list of role identifiers. Only the author and users associated with at least one of these
* roles can edit this dashboard.
*
* <p>This property is deprecated; please use the <a
* href="https://docs.datadoghq.com/api/latest/restriction-policies/">Restriction Policies API</a>
* instead to manage write authorization for individual dashboards.
*
* @return restrictedRoles
* @deprecated
*/
@Deprecated
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RESTRICTED_ROLES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getRestrictedRoles() {
return restrictedRoles;
}

@Deprecated
public void setRestrictedRoles(List<String> restrictedRoles) {
this.restrictedRoles = restrictedRoles;
}