Skip to content

Commit 68b3e1b

Browse files
LingyunSujianyexi
authored andcommitted
AzureStack Admin API - Update RP APIs (Azure#17659)
* Copy of previous API v2016-05-01 * URP api 2021-07-01 * Update examples * Validation issue fix * validateion fix * validation fix * Add API 2021-07-01 as stable version * Update readme for new api * New api in readme * Config fix * Remove input-file Invalid yaml Co-authored-by: JianyeXi <59603451+jianyexi@users.noreply.github.com> * Correct reference readme.md Co-authored-by: JianyeXi <59603451+jianyexi@users.noreply.github.com> * Fix validation errors * Fix validation * Validate fix * update validateion fix * Refactoring Co-authored-by: JianyeXi <59603451+jianyexi@users.noreply.github.com>
1 parent cecfbbf commit 68b3e1b

File tree

17 files changed

+2455
-8
lines changed

17 files changed

+2455
-8
lines changed
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2021-07-01",
5+
"title": "UpdateAdminClient",
6+
"description": "The Update Admin Management Client."
7+
},
8+
"host": "adminmanagement.local.azurestack.external",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"paths": {
19+
"/providers/Microsoft.Update.Admin/operations": {
20+
"get": {
21+
"x-ms-examples": {
22+
"Get the list of support rest operations.": {
23+
"$ref": "./examples/Operations/List.json"
24+
}
25+
},
26+
"description": "Get the list of support rest operations.",
27+
"tags": [
28+
"Updates"
29+
],
30+
"operationId": "Operations_List",
31+
"parameters": [
32+
{
33+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
34+
}
35+
],
36+
"responses": {
37+
"200": {
38+
"description": "OK",
39+
"schema": {
40+
"$ref": "#/definitions/OperationList"
41+
}
42+
},
43+
"default": {
44+
"description": "Error Response.",
45+
"schema": {
46+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
47+
}
48+
}
49+
},
50+
"x-ms-pageable": {
51+
"nextLinkName": "nextLink"
52+
}
53+
}
54+
}
55+
},
56+
"definitions": {
57+
"Resource": {
58+
"description": "Base Resource Object",
59+
"type": "object",
60+
"properties": {
61+
"id": {
62+
"description": "URI of the resource.",
63+
"type": "string",
64+
"readOnly": true
65+
},
66+
"name": {
67+
"description": "Name of the resource.",
68+
"type": "string",
69+
"readOnly": true
70+
},
71+
"type": {
72+
"description": "Type of resource.",
73+
"type": "string",
74+
"readOnly": true
75+
},
76+
"location": {
77+
"description": "Region location of resource.",
78+
"type": "string"
79+
},
80+
"tags": {
81+
"description": "List of key-value pairs.",
82+
"type": "object",
83+
"additionalProperties": {
84+
"type": "string"
85+
}
86+
}
87+
},
88+
"x-ms-azure-resource": true
89+
},
90+
"Operation": {
91+
"description": "Describes the supported REST operation.",
92+
"type": "object",
93+
"properties": {
94+
"name": {
95+
"description": "The name of the operation being performed on this particular object. It should match the action name that appears in RBAC / the event service.",
96+
"type": "string"
97+
},
98+
"display": {
99+
"description": "Contains the localized display information for this particular operation or action.",
100+
"$ref": "#/definitions/Display"
101+
}
102+
}
103+
},
104+
"Display": {
105+
"description": "Contains the localized display information for this particular operation or action.",
106+
"type": "object",
107+
"properties": {
108+
"provider": {
109+
"description": "The localized, friendly version of the resource provider name. The provider name is expected to include the name of the publisher or company responsible. The provider name format should use title case and begin with Microsoft for first-party services. For example, the provider name may be Microsoft Monitoring Insights or Microsoft Compute.",
110+
"type": "string"
111+
},
112+
"resource": {
113+
"description": "The localized, friendly version of the resource type related to this action or operation; the resource type should match the public documentation for the resource provider.",
114+
"type": "string"
115+
},
116+
"operation": {
117+
"description": "The localized friendly name for the operation, as it should be shown to the user.",
118+
"type": "string"
119+
},
120+
"description": {
121+
"description": "The localized, friendly description for the operation. The description will be displayed to the user. It should be thorough and concise for used in both tooltips and detailed views.",
122+
"type": "string"
123+
}
124+
}
125+
},
126+
"OperationList": {
127+
"description": "List of Operations",
128+
"type": "object",
129+
"properties": {
130+
"value": {
131+
"description": "Array of operations",
132+
"type": "array",
133+
"items": {
134+
"$ref": "#/definitions/Operation"
135+
},
136+
"x-ms-identifiers": [
137+
"name"
138+
]
139+
},
140+
"nextLink": {
141+
"description": "URI to the next page of operations.",
142+
"type": "string"
143+
}
144+
}
145+
}
146+
},
147+
"securityDefinitions": {
148+
"azure_auth": {
149+
"type": "oauth2",
150+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
151+
"flow": "implicit",
152+
"description": "Azure Active Directory OAuth2 Flow",
153+
"scopes": {
154+
"user_impersonation": "impersonate your user account"
155+
}
156+
}
157+
},
158+
"security": [
159+
{
160+
"azure_auth": [
161+
"user_impersonation"
162+
]
163+
}
164+
]
165+
}

0 commit comments

Comments
 (0)