Skip to content

Commit 2e3f1e0

Browse files
authored
Update Swagger to allow Patch of SKU (#14484)
1 parent 6cd86d6 commit 2e3f1e0

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

specification/datadog/resource-manager/Microsoft.Datadog/preview/2020-02-01-preview/datadog.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,13 +679,20 @@
679679
"$ref": "#/definitions/DatadogMonitorResource"
680680
}
681681
},
682+
"201": {
683+
"description": "Success",
684+
"schema": {
685+
"$ref": "#/definitions/DatadogMonitorResource"
686+
}
687+
},
682688
"default": {
683689
"description": "Default error response.",
684690
"schema": {
685691
"$ref": "#/definitions/ResourceProviderDefaultErrorResponse"
686692
}
687693
}
688694
},
695+
"x-ms-long-running-operation": true,
689696
"x-ms-examples": {
690697
"Monitors_Update": {
691698
"$ref": "./examples/Monitors_Update.json"
@@ -1773,6 +1780,9 @@
17731780
"additionalProperties": {
17741781
"type": "string"
17751782
}
1783+
},
1784+
"sku": {
1785+
"$ref": "#/definitions/ResourceSku"
17761786
}
17771787
}
17781788
},

specification/datadog/resource-manager/Microsoft.Datadog/preview/2020-02-01-preview/examples/Monitors_Update.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,30 @@
4040
},
4141
"location": "West US"
4242
}
43+
},
44+
"201": {
45+
"body": {
46+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor",
47+
"name": "myMonitor",
48+
"type": "Microsoft.Datadog/monitors",
49+
"sku": {
50+
"name": "free_Monthly"
51+
},
52+
"properties": {
53+
"provisioningState": "Accepted",
54+
"monitoringStatus": "Enabled",
55+
"datadogOrganizationProperties": {
56+
"name": "myOrg",
57+
"id": "myOrg123"
58+
},
59+
"liftrResourceCategory": "MonitorLogs",
60+
"liftrResourcePreference": 1
61+
},
62+
"tags": {
63+
"Environment": "Dev"
64+
},
65+
"location": "West US"
66+
}
4367
}
4468
}
4569
}

specification/datadog/resource-manager/Microsoft.Datadog/stable/2021-03-01/datadog.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,13 +679,20 @@
679679
"$ref": "#/definitions/DatadogMonitorResource"
680680
}
681681
},
682+
"201": {
683+
"description": "Success",
684+
"schema": {
685+
"$ref": "#/definitions/DatadogMonitorResource"
686+
}
687+
},
682688
"default": {
683689
"description": "Default error response.",
684690
"schema": {
685691
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
686692
}
687693
}
688694
},
695+
"x-ms-long-running-operation": true,
689696
"x-ms-examples": {
690697
"Monitors_Update": {
691698
"$ref": "./examples/Monitors_Update.json"
@@ -1753,6 +1760,9 @@
17531760
"additionalProperties": {
17541761
"type": "string"
17551762
}
1763+
},
1764+
"sku": {
1765+
"$ref": "#/definitions/ResourceSku"
17561766
}
17571767
}
17581768
},

specification/datadog/resource-manager/Microsoft.Datadog/stable/2021-03-01/examples/Monitors_Update.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,30 @@
4040
},
4141
"location": "West US"
4242
}
43+
},
44+
"201": {
45+
"body": {
46+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor",
47+
"name": "myMonitor",
48+
"type": "Microsoft.Datadog/monitors",
49+
"sku": {
50+
"name": "free_Monthly"
51+
},
52+
"properties": {
53+
"provisioningState": "Accepted",
54+
"monitoringStatus": "Enabled",
55+
"datadogOrganizationProperties": {
56+
"name": "myOrg",
57+
"id": "myOrg123"
58+
},
59+
"liftrResourceCategory": "MonitorLogs",
60+
"liftrResourcePreference": 1
61+
},
62+
"tags": {
63+
"Environment": "Dev"
64+
},
65+
"location": "West US"
66+
}
4367
}
4468
}
4569
}

0 commit comments

Comments
 (0)