From 1b4106a098a00476e4f4829379cbc6c79512cc35 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 15 Mar 2022 17:39:38 +0000 Subject: [PATCH] Regenerate client from commit e44d12a2 of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v1/openapi.yaml | 17 +++++++++++------ .../datadog-api-client-v1/models/Monitor.ts | 2 +- .../models/MonitorOptions.ts | 2 +- .../models/MonitorUpdateRequest.ts | 2 +- 5 files changed, 18 insertions(+), 13 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index d7d6dab6ac35..b79f43ca4963 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.2", - "regenerated": "2022-03-15 09:31:17.058796", - "spec_repo_commit": "80288098" + "regenerated": "2022-03-15 17:38:04.751801", + "spec_repo_commit": "e44d12a2" }, "v2": { "apigentools_version": "1.6.2", - "regenerated": "2022-03-15 09:31:17.076309", - "spec_repo_commit": "80288098" + "regenerated": "2022-03-15 17:38:04.774292", + "spec_repo_commit": "e44d12a2" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index eb60b8cf7cef..cbf6dbabc0e0 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -5619,8 +5619,10 @@ components: example: avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100 type: string restricted_roles: - description: A list of role identifiers that can be pulled from the Roles - API. Cannot be used with `locked` option. + description: A list of role UUID to define which roles are allowed to edit + the monitor. Monitor edition includes any updates to the monitor configuration, + monitor deletion, and muting of the monitor for any amount of time. Roles + UUID can be pulled from the [Roles API](https://docs.datadoghq.com/api/latest/roles/). items: description: A role UUID. type: string @@ -5945,8 +5947,9 @@ components: - If `False`, `[Triggered] Monitor Title`' type: boolean locked: - description: Whether or not the monitor is locked (only editable by creator - and admins). + deprecated: true + description: Whether or not the monitor edition is locked (only editable + by creator and admins). Use `restricted_roles` instead. type: boolean min_failure_duration: default: 0 @@ -6553,8 +6556,10 @@ components: description: The monitor query. type: string restricted_roles: - description: A list of role identifiers that can be pulled from the Roles - API. Cannot be used with `locked` option. + description: A list of role UUID to define which roles are allowed to edit + the monitor. Monitor edition includes any updates to the monitor configuration, + monitor deletion, and muting of the monitor for any amount of time. Role + UUID can be pulled from the [Roles API](https://docs.datadoghq.com/api/latest/roles/). items: description: A role UUID. type: string diff --git a/packages/datadog-api-client-v1/models/Monitor.ts b/packages/datadog-api-client-v1/models/Monitor.ts index 1be5e274276f..69b8094dd80d 100644 --- a/packages/datadog-api-client-v1/models/Monitor.ts +++ b/packages/datadog-api-client-v1/models/Monitor.ts @@ -60,7 +60,7 @@ export class Monitor { */ "query": string; /** - * A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. + * A list of role UUID to define which roles are allowed to edit the monitor. Monitor edition includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. Roles UUID can be pulled from the [Roles API](https://docs.datadoghq.com/api/latest/roles/). */ "restrictedRoles"?: Array; "state"?: MonitorState; diff --git a/packages/datadog-api-client-v1/models/MonitorOptions.ts b/packages/datadog-api-client-v1/models/MonitorOptions.ts index 4a22f5ed6e03..7553fe6cc3ef 100644 --- a/packages/datadog-api-client-v1/models/MonitorOptions.ts +++ b/packages/datadog-api-client-v1/models/MonitorOptions.ts @@ -47,7 +47,7 @@ export class MonitorOptions { */ "includeTags"?: boolean; /** - * Whether or not the monitor is locked (only editable by creator and admins). + * Whether or not the monitor edition is locked (only editable by creator and admins). Use `restricted_roles` instead. */ "locked"?: boolean; /** diff --git a/packages/datadog-api-client-v1/models/MonitorUpdateRequest.ts b/packages/datadog-api-client-v1/models/MonitorUpdateRequest.ts index bfe743b00997..83978b0b692f 100644 --- a/packages/datadog-api-client-v1/models/MonitorUpdateRequest.ts +++ b/packages/datadog-api-client-v1/models/MonitorUpdateRequest.ts @@ -60,7 +60,7 @@ export class MonitorUpdateRequest { */ "query"?: string; /** - * A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. + * A list of role UUID to define which roles are allowed to edit the monitor. Monitor edition includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. Role UUID can be pulled from the [Roles API](https://docs.datadoghq.com/api/latest/roles/). */ "restrictedRoles"?: Array; "state"?: MonitorState;