diff --git a/.apigentools-info b/.apigentools-info index 320b3d87b31..92f626088e6 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 8942f457288..092f56ac6a6 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -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 diff --git a/api/datadogV1/model_monitor.go b/api/datadogV1/model_monitor.go index 1ed9bbb5e2b..cbf8fd15297 100644 --- a/api/datadogV1/model_monitor.go +++ b/api/datadogV1/model_monitor.go @@ -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"`