Skip to content

Commit c8bf784

Browse files
committed
update
1 parent 297a50f commit c8bf784

4 files changed

Lines changed: 28 additions & 14 deletions

File tree

specification/monitor/resource-manager/Microsoft.Insights/Insights/DiagnosticsSettings/DiagnosticSettingsCategoryResource.tsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ interface DiagnosticSettingsCategoryResources {
3434
get is Extension.Read<
3535
Extension.ScopeParameter,
3636
DiagnosticSettingsCategoryResource,
37-
Error = ErrorResponse
37+
Error = Microsoft.Common.ErrorResponse
3838
>;
3939

4040
/**
@@ -45,7 +45,7 @@ interface DiagnosticSettingsCategoryResources {
4545
Extension.ScopeParameter,
4646
DiagnosticSettingsCategoryResource,
4747
Response = ArmResponse<DiagnosticSettingsCategoryResourceCollection>,
48-
Error = ErrorResponse
48+
Error = Microsoft.Common.ErrorResponse
4949
>;
5050
}
5151

specification/monitor/resource-manager/Microsoft.Insights/Insights/TenantActionGroups/TenantActionGroupResource.tsp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ interface TenantActionGroupResources {
8080
@header
8181
`x-ms-client-tenant-id`: string;
8282
},
83-
Error = ErrorResponse
83+
Error = Microsoft.Common.ErrorResponse
8484
>;
8585

8686
/**
@@ -97,7 +97,7 @@ interface TenantActionGroupResources {
9797
@header
9898
`x-ms-client-tenant-id`: string;
9999
},
100-
Error = ErrorResponse
100+
Error = Microsoft.Common.ErrorResponse
101101
>;
102102

103103
/**
@@ -116,7 +116,7 @@ interface TenantActionGroupResources {
116116
@header
117117
`x-ms-client-tenant-id`: string;
118118
},
119-
Error = ErrorResponse
119+
Error = Microsoft.Common.ErrorResponse
120120
>;
121121

122122
/**
@@ -133,7 +133,7 @@ interface TenantActionGroupResources {
133133
@header
134134
`x-ms-client-tenant-id`: string;
135135
},
136-
Error = ErrorResponse
136+
Error = Microsoft.Common.ErrorResponse
137137
>;
138138

139139
/**
@@ -151,7 +151,7 @@ interface TenantActionGroupResources {
151151
`x-ms-client-tenant-id`: string;
152152
},
153153
Response = ArmResponse<TenantActionGroupList>,
154-
Error = ErrorResponse
154+
Error = Microsoft.Common.ErrorResponse
155155
>;
156156

157157
/**

specification/monitor/resource-manager/Microsoft.Insights/Insights/preview/2021-05-01-preview/openapi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279
"default": {
280280
"description": "An unexpected error response.",
281281
"schema": {
282-
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
282+
"$ref": "#/definitions/Microsoft.Common.ErrorResponse"
283283
}
284284
}
285285
},
@@ -330,7 +330,7 @@
330330
"default": {
331331
"description": "An unexpected error response.",
332332
"schema": {
333-
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
333+
"$ref": "#/definitions/Microsoft.Common.ErrorResponse"
334334
}
335335
}
336336
},

specification/monitor/resource-manager/Microsoft.Insights/Insights/preview/2023-05-01-preview/tenantActionGroups.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"default": {
7575
"description": "An unexpected error response.",
7676
"schema": {
77-
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
77+
"$ref": "#/definitions/Microsoft.Common.ErrorResponse"
7878
}
7979
}
8080
},
@@ -132,7 +132,7 @@
132132
"default": {
133133
"description": "An unexpected error response.",
134134
"schema": {
135-
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
135+
"$ref": "#/definitions/Microsoft.Common.ErrorResponse"
136136
}
137137
}
138138
},
@@ -200,7 +200,7 @@
200200
"default": {
201201
"description": "An unexpected error response.",
202202
"schema": {
203-
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
203+
"$ref": "#/definitions/Microsoft.Common.ErrorResponse"
204204
}
205205
}
206206
},
@@ -262,7 +262,7 @@
262262
"default": {
263263
"description": "An unexpected error response.",
264264
"schema": {
265-
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
265+
"$ref": "#/definitions/Microsoft.Common.ErrorResponse"
266266
}
267267
}
268268
},
@@ -315,7 +315,7 @@
315315
"default": {
316316
"description": "An unexpected error response.",
317317
"schema": {
318-
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
318+
"$ref": "#/definitions/Microsoft.Common.ErrorResponse"
319319
}
320320
}
321321
},
@@ -591,6 +591,20 @@
591591
"emailAddress"
592592
]
593593
},
594+
"Microsoft.Common.ErrorResponse": {
595+
"type": "object",
596+
"description": "Describes the format of Error response.",
597+
"properties": {
598+
"code": {
599+
"type": "string",
600+
"description": "Error code"
601+
},
602+
"message": {
603+
"type": "string",
604+
"description": "Error message indicating why the operation failed."
605+
}
606+
}
607+
},
594608
"ReceiverStatus": {
595609
"type": "string",
596610
"description": "Indicates the status of the receiver. Receivers that are not Enabled will not receive any communications.",

0 commit comments

Comments
 (0)