Skip to content

Commit fbf28ca

Browse files
added UserAssignedServiceIdentity in monitors resource
1 parent 355ec7f commit fbf28ca

File tree

3 files changed

+45
-14
lines changed

3 files changed

+45
-14
lines changed

specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_PatchTags.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
"subscriptionId": "00000000-0000-0000-0000-000000000000",
55
"resourceGroupName": "myResourceGroup",
66
"monitorName": "mySapMonitor",
7-
"tagsParameter": {
7+
"body": {
88
"tags": {
99
"testkey": "testvalue"
10+
},
11+
"identity": {
12+
"type": "None"
1013
}
1114
}
1215
},
@@ -28,6 +31,9 @@
2831
"lastModifiedByType": "User",
2932
"lastModifiedAt": "2021-08-19T15:10:46.196Z"
3033
},
34+
"identity": {
35+
"type": "None"
36+
},
3137
"properties": {
3238
"provisioningState": "Succeeded",
3339
"errors": [

specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_PatchTags_Delete.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44
"subscriptionId": "00000000-0000-0000-0000-000000000000",
55
"resourceGroupName": "myResourceGroup",
66
"monitorName": "mySapMonitor",
7-
"tagsParameter": {
8-
"tags": {}
7+
"body": {
8+
"tags": {
9+
"testkey": "testvalue"
10+
},
11+
"identity": {
12+
"type": "None"
13+
}
914
}
1015
},
1116
"responses": {
@@ -26,6 +31,9 @@
2631
"lastModifiedByType": "User",
2732
"lastModifiedAt": "2021-08-19T15:10:46.196Z"
2833
},
34+
"identity": {
35+
"type": "None"
36+
},
2937
"properties": {
3038
"provisioningState": "Succeeded",
3139
"errors": [

specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/monitors.json

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,12 @@
286286
"$ref": "#/parameters/monitorNameParameter"
287287
},
288288
{
289-
"$ref": "#/parameters/TagsParameter"
289+
"in": "body",
290+
"name": "body",
291+
"description": "The Update SAP monitor request body.",
292+
"schema": {
293+
"$ref": "#/definitions/UpdateMonitorRequest"
294+
}
290295
}
291296
],
292297
"responses": {
@@ -744,6 +749,9 @@
744749
"Monitor": {
745750
"type": "object",
746751
"properties": {
752+
"identity": {
753+
"$ref": "./commonTypes.json#/definitions/UserAssignedServiceIdentity"
754+
},
747755
"properties": {
748756
"x-ms-client-flatten": true,
749757
"$ref": "#/definitions/MonitorProperties",
@@ -823,6 +831,22 @@
823831
},
824832
"description": "Describes the properties of a SAP monitor."
825833
},
834+
"UpdateMonitorRequest": {
835+
"description": "Defines the request body for updating monitor resource.",
836+
"type": "object",
837+
"properties": {
838+
"tags": {
839+
"description": "Gets or sets the Resource tags.",
840+
"type": "object",
841+
"additionalProperties": {
842+
"type": "string"
843+
}
844+
},
845+
"identity": {
846+
"$ref": "./commonTypes.json#/definitions/UserAssignedServiceIdentity"
847+
}
848+
}
849+
},
826850
"ProviderInstanceListResult": {
827851
"type": "object",
828852
"properties": {
@@ -843,6 +867,9 @@
843867
"ProviderInstance": {
844868
"type": "object",
845869
"properties": {
870+
"identity": {
871+
"$ref": "./commonTypes.json#/definitions/UserAssignedServiceIdentity"
872+
},
846873
"properties": {
847874
"x-ms-client-flatten": true,
848875
"$ref": "#/definitions/ProviderInstanceProperties",
@@ -1156,16 +1183,6 @@
11561183
"description": "Name of the provider instance.",
11571184
"x-ms-parameter-location": "method"
11581185
},
1159-
"TagsParameter": {
1160-
"name": "tagsParameter",
1161-
"in": "body",
1162-
"required": true,
1163-
"schema": {
1164-
"$ref": "#/definitions/Tags"
1165-
},
1166-
"description": "Request body that only contains the new Tags field",
1167-
"x-ms-parameter-location": "method"
1168-
},
11691186
"MonitorParameter": {
11701187
"name": "MonitorParameter",
11711188
"in": "body",

0 commit comments

Comments
 (0)