From 2c61bf1d0de1c3690f7e725bc8bcadd6b1b02547 Mon Sep 17 00:00:00 2001 From: Akshita Agarwal Date: Thu, 20 May 2021 00:06:22 +0530 Subject: [PATCH] Update Swagger to allow Patch of SKU --- .../preview/2020-02-01-preview/datadog.json | 10 ++++++++ .../examples/Monitors_Update.json | 24 +++++++++++++++++++ .../stable/2021-03-01/datadog.json | 10 ++++++++ .../2021-03-01/examples/Monitors_Update.json | 24 +++++++++++++++++++ 4 files changed, 68 insertions(+) diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/preview/2020-02-01-preview/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/preview/2020-02-01-preview/datadog.json index aa11aacd09e7..f7c73082f0e6 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/preview/2020-02-01-preview/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/preview/2020-02-01-preview/datadog.json @@ -679,6 +679,12 @@ "$ref": "#/definitions/DatadogMonitorResource" } }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, "default": { "description": "Default error response.", "schema": { @@ -686,6 +692,7 @@ } } }, + "x-ms-long-running-operation": true, "x-ms-examples": { "Monitors_Update": { "$ref": "./examples/Monitors_Update.json" @@ -1773,6 +1780,9 @@ "additionalProperties": { "type": "string" } + }, + "sku": { + "$ref": "#/definitions/ResourceSku" } } }, diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/preview/2020-02-01-preview/examples/Monitors_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/preview/2020-02-01-preview/examples/Monitors_Update.json index 533a811b225a..6d74f3cd86ac 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/preview/2020-02-01-preview/examples/Monitors_Update.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/preview/2020-02-01-preview/examples/Monitors_Update.json @@ -40,6 +40,30 @@ }, "location": "West US" } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "sku": { + "name": "free_Monthly" + }, + "properties": { + "provisioningState": "Accepted", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123" + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } } } } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2021-03-01/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2021-03-01/datadog.json index ca6518839cb3..0c0843732a48 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2021-03-01/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2021-03-01/datadog.json @@ -679,6 +679,12 @@ "$ref": "#/definitions/DatadogMonitorResource" } }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, "default": { "description": "Default error response.", "schema": { @@ -686,6 +692,7 @@ } } }, + "x-ms-long-running-operation": true, "x-ms-examples": { "Monitors_Update": { "$ref": "./examples/Monitors_Update.json" @@ -1753,6 +1760,9 @@ "additionalProperties": { "type": "string" } + }, + "sku": { + "$ref": "#/definitions/ResourceSku" } } }, diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2021-03-01/examples/Monitors_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2021-03-01/examples/Monitors_Update.json index 2badea682d99..1a39ce075e83 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2021-03-01/examples/Monitors_Update.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2021-03-01/examples/Monitors_Update.json @@ -40,6 +40,30 @@ }, "location": "West US" } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "sku": { + "name": "free_Monthly" + }, + "properties": { + "provisioningState": "Accepted", + "monitoringStatus": "Enabled", + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123" + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1 + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } } } }