Skip to content

Commit

Permalink
Remove reference to locked (#2656)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Aug 29, 2024
1 parent 62d1d10 commit f7ce1b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 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-08-27 12:12:27.114116",
"spec_repo_commit": "09daef2e"
"regenerated": "2024-08-28 20:30:25.450400",
"spec_repo_commit": "6b2f00dd"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-27 12:12:27.132612",
"spec_repo_commit": "09daef2e"
"regenerated": "2024-08-28 20:30:25.468006",
"spec_repo_commit": "6b2f00dd"
}
}
}
7 changes: 4 additions & 3 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6725,9 +6725,10 @@ components:
be pulled from the [Roles API](https://docs.datadoghq.com/api/latest/roles/#list-roles)
and are located in the `data.id` field. Editing a monitor includes any
updates to the monitor configuration, monitor deletion, and muting of
the monitor for any amount of time. `restricted_roles` is the successor
of `locked`. For more information about `locked` and `restricted_roles`,
see the [monitor options docs](https://docs.datadoghq.com/monitors/guide/monitor_api_options/#permissions-options).
the monitor for any amount of time. You can use the [Restriction Policies
API](https://docs.datadoghq.com/api/latest/restriction-policies/) to manage
write authorization for individual monitors by teams and users, in addition
to roles.
items:
description: A role UUID.
type: string
Expand Down
2 changes: 1 addition & 1 deletion api/datadogV1/model_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type Monitor struct {
Priority datadog.NullableInt64 `json:"priority,omitempty"`
// The monitor query.
Query string `json:"query"`
// A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the [Roles API](https://docs.datadoghq.com/api/latest/roles/#list-roles) and are located in the `data.id` field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. `restricted_roles` is the successor of `locked`. For more information about `locked` and `restricted_roles`, see the [monitor options docs](https://docs.datadoghq.com/monitors/guide/monitor_api_options/#permissions-options).
// A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the [Roles API](https://docs.datadoghq.com/api/latest/roles/#list-roles) and are located in the `data.id` field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the [Restriction Policies API](https://docs.datadoghq.com/api/latest/restriction-policies/) to manage write authorization for individual monitors by teams and users, in addition to roles.
RestrictedRoles datadog.NullableList[string] `json:"restricted_roles,omitempty"`
// Wrapper object with the different monitor states.
State *MonitorState `json:"state,omitempty"`
Expand Down

0 comments on commit f7ce1b5

Please sign in to comment.