Skip to content

Commit d3c50e4

Browse files
anat-gilensonAnat Gilenson
andauthored
Add common types.json v2 (#15735)
* Copy types.json from common 1.0 * Remove definitions and parameters which already exist in common-types directory. Use the common-types Resource definitions instead of defining it again * Remove EntityCommonProperties which should be located in a common directory under a specific version. Co-authored-by: Anat Gilenson <anatgilenson@microsoft.com>
1 parent 1f56b72 commit d3c50e4

File tree

1 file changed

+77
-0
lines changed
  • specification/securityinsights/resource-manager/common/2.0

1 file changed

+77
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2.0",
5+
"title": "Common types"
6+
},
7+
"paths": {},
8+
"definitions": {
9+
"ResourceWithEtag": {
10+
"allOf": [
11+
{
12+
"$ref": "../../../../common-types/resource-management/v3/types.json#/definitions/Resource"
13+
}
14+
],
15+
"description": "An azure resource object with an Etag property",
16+
"properties": {
17+
"etag": {
18+
"description": "Etag of the azure resource",
19+
"type": "string"
20+
}
21+
},
22+
"type": "object"
23+
}
24+
},
25+
"parameters": {
26+
"OperationalInsightsResourceProvider": {
27+
"description": "The namespace of workspaces resource provider- Microsoft.OperationalInsights.",
28+
"in": "path",
29+
"name": "operationalInsightsResourceProvider",
30+
"required": true,
31+
"type": "string",
32+
"x-ms-parameter-location": "method"
33+
},
34+
"ODataFilter": {
35+
"description": "Filters the results, based on a Boolean condition. Optional.",
36+
"in": "query",
37+
"name": "$filter",
38+
"required": false,
39+
"type": "string",
40+
"x-ms-parameter-location": "method"
41+
},
42+
"ODataOrderBy": {
43+
"description": "Sorts the results. Optional.",
44+
"in": "query",
45+
"name": "$orderby",
46+
"required": false,
47+
"type": "string",
48+
"x-ms-parameter-location": "method"
49+
},
50+
"ODataSkipToken": {
51+
"description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Optional.",
52+
"in": "query",
53+
"name": "$skipToken",
54+
"required": false,
55+
"type": "string",
56+
"x-ms-parameter-location": "method"
57+
},
58+
"ODataTop": {
59+
"description": "Returns only the first n results. Optional.",
60+
"format": "int32",
61+
"in": "query",
62+
"name": "$top",
63+
"required": false,
64+
"type": "integer",
65+
"x-ms-parameter-location": "method"
66+
},
67+
"ODataSkip": {
68+
"description": "Used to skip n elements in the OData query (offset). Returns a nextLink to the next page of results if there are any left.",
69+
"in": "query",
70+
"name": "$skip",
71+
"required": false,
72+
"type": "integer",
73+
"format": "int32",
74+
"x-ms-parameter-location": "method"
75+
}
76+
}
77+
}

0 commit comments

Comments
 (0)