Skip to content

Commit

Permalink
Merge master into datadog-api-spec/test/therve/upload-test
Browse files Browse the repository at this point in the history
  • Loading branch information
2 parents 7c93713 + 6ccbb0a commit 91196f2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-01-12 20:45:42.549804",
"spec_repo_commit": "bdf7d582"
"regenerated": "2024-01-18 22:52:00.053133",
"spec_repo_commit": "4d921fb1"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-01-12 20:45:42.564088",
"spec_repo_commit": "bdf7d582"
"regenerated": "2024-01-18 22:52:00.067802",
"spec_repo_commit": "4d921fb1"
}
}
}
23 changes: 18 additions & 5 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1142,9 +1142,12 @@ components:
is_read_only:
default: false
deprecated: true
description: Whether this dashboard is read-only. If True, only the author
and admins can make changes to it. Prefer using `restricted_roles` to
manage write authorization.
description: 'Whether this dashboard is read-only. If True, only the author
and admins can make changes to it.


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.'
example: false
type: boolean
layout_type:
Expand All @@ -1165,8 +1168,13 @@ components:
reflow_type:
$ref: '#/components/schemas/DashboardReflowType'
restricted_roles:
description: A list of role identifiers. Only the author and users associated
deprecated: true
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
Expand Down Expand Up @@ -1439,8 +1447,13 @@ components:
description: Dashboard identifier.
type: string
is_read_only:
description: Whether this dashboard is read-only. If True, only the author
deprecated: true
description: 'Whether this dashboard is read-only. If True, only the author
and admins can make changes to it.


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.'
type: boolean
layout_type:
$ref: '#/components/schemas/DashboardLayoutType'
Expand Down
6 changes: 5 additions & 1 deletion src/datadog_api_client/v1/model/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def __init__(
:param id: ID of the dashboard.
:type id: str, optional
:param is_read_only: Whether this dashboard is read-only. If True, only the author and admins can make changes to it. Prefer using ``restricted_roles`` to manage write authorization. **Deprecated**.
:param is_read_only: Whether this dashboard is read-only. If True, only the author and admins can make changes to it.
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. **Deprecated**.
:type is_read_only: bool, optional
:param layout_type: Layout type of the dashboard.
Expand All @@ -144,6 +146,8 @@ def __init__(
:type reflow_type: DashboardReflowType, optional
:param restricted_roles: 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. **Deprecated**.
:type restricted_roles: [str], optional
:param tags: List of team names representing ownership of a dashboard.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def __init__(
:type id: str, optional
:param is_read_only: Whether this dashboard is read-only. If True, only the author and admins can make changes to it.
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. **Deprecated**.
:type is_read_only: bool, optional
:param layout_type: Layout type of the dashboard.
Expand Down

0 comments on commit 91196f2

Please sign in to comment.