Skip to content

Commit 5b79bd5

Browse files
dhruvkatyalDhruv Katyal
andauthored
[Hub Generated] Review request for Microsoft.Synapse to add version stable/2023-05-01 (#23376)
* Adds base for updating Microsoft.Synapse from version stable/2021-06-01 to version 2023-05-01 * Updates readme * Updates API version in new specs and examples * Fixing required failing validations * Adding ListUsage api spec * Removing redundant keys * minor correction * fixing validation * Addressing review comments * semantics fix --------- Co-authored-by: Dhruv Katyal <[email protected]>
1 parent 7990bc1 commit 5b79bd5

File tree

215 files changed

+28034
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+28034
-6
lines changed

specification/common-types/resource-management/v5/types.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,74 @@
624624
"type": "string"
625625
}
626626
}
627+
},
628+
"UsageName": {
629+
"type": "object",
630+
"description": "Name of the usage metrics",
631+
"properties": {
632+
"value": {
633+
"type": "string",
634+
"description": "The name of the usage metric."
635+
},
636+
"localizedValue": {
637+
"type": "string",
638+
"description": "The localized name of the usage metric."
639+
}
640+
}
641+
},
642+
"Usage": {
643+
"type": "object",
644+
"description": "Resource usage and limit.",
645+
"properties": {
646+
"unit": {
647+
"readOnly": true,
648+
"type": "string",
649+
"description": "The unit of usage measurement."
650+
},
651+
"currentValue": {
652+
"readOnly": true,
653+
"type": "number",
654+
"format": "double",
655+
"description": "The current usage of the resource."
656+
},
657+
"limit": {
658+
"readOnly": true,
659+
"type": "number",
660+
"format": "double",
661+
"description": "The maximum permitted usage of the resource."
662+
},
663+
"name": {
664+
"readOnly": true,
665+
"$ref": "#/definitions/UsageName",
666+
"description": "The name of the type of usage."
667+
},
668+
"nextResetTime": {
669+
"type": "string",
670+
"format": "date-time",
671+
"description": "Optional.The time that the metric's value will reset."
672+
},
673+
"quotaPeriod": {
674+
"type": "string",
675+
"description": "Optional. The quota period that determines the length of time between value resets."
676+
}
677+
}
678+
},
679+
"ListUsagesResult": {
680+
"type": "object",
681+
"properties": {
682+
"value": {
683+
"type": "array",
684+
"items": {
685+
"$ref": "#/definitions/Usage"
686+
},
687+
"x-ms-identifiers": [],
688+
"description": "The list of resource usages."
689+
}
690+
},
691+
"required": [
692+
"value"
693+
],
694+
"description": "The List Usages operation response."
627695
}
628696
},
629697
"parameters": {
Lines changed: 295 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,295 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2023-05-01",
5+
"title": "SynapseManagementClient",
6+
"description": "Azure Synapse Analytics APIs"
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"securityDefinitions": {
13+
"azure_auth": {
14+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
15+
"flow": "implicit",
16+
"type": "oauth2",
17+
"scopes": {
18+
"user_impersonation": "impersonate your user account"
19+
},
20+
"description": "Azure Active Directory OAuth2 Flow"
21+
}
22+
},
23+
"paths": {
24+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}": {
25+
"get": {
26+
"operationId": "AzureADOnlyAuthentications_Get",
27+
"summary": "Get Azure Active Directory only authentication property",
28+
"description": "Gets a Azure Active Directory only authentication property",
29+
"tags": [
30+
"WorkspaceAzureADOnlyAuthentications"
31+
],
32+
"deprecated": false,
33+
"parameters": [
34+
{
35+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
36+
},
37+
{
38+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
39+
},
40+
{
41+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
42+
},
43+
{
44+
"$ref": "../../../../common/v1/types.json#/parameters/WorkspaceNameParameter"
45+
},
46+
{
47+
"$ref": "./azureADOnlyAuthentication.json#/parameters/azureADOnlyAuthenticationNameParameter"
48+
}
49+
],
50+
"responses": {
51+
"200": {
52+
"schema": {
53+
"$ref": "#/definitions/AzureADOnlyAuthentication"
54+
},
55+
"description": "OK"
56+
},
57+
"default": {
58+
"schema": {
59+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
60+
},
61+
"description": ""
62+
}
63+
},
64+
"consumes": [],
65+
"produces": [
66+
"application/json"
67+
],
68+
"x-ms-examples": {
69+
"Get Azure Active Directory Only Authentication property": {
70+
"$ref": "./examples/GetAzureADOnlyAuthentication.json"
71+
}
72+
}
73+
},
74+
"put": {
75+
"operationId": "AzureADOnlyAuthentications_Create",
76+
"summary": "Create or Update Azure Active Directory only authentication property",
77+
"description": "Create or Update a Azure Active Directory only authentication property for the workspaces",
78+
"tags": [
79+
"WorkspaceAzureADOnlyAuthentications"
80+
],
81+
"deprecated": false,
82+
"parameters": [
83+
{
84+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
85+
},
86+
{
87+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
88+
},
89+
{
90+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
91+
},
92+
{
93+
"$ref": "../../../../common/v1/types.json#/parameters/WorkspaceNameParameter"
94+
},
95+
{
96+
"$ref": "./azureADOnlyAuthentication.json#/parameters/azureADOnlyAuthenticationNameParameter"
97+
},
98+
{
99+
"schema": {
100+
"$ref": "#/definitions/AzureADOnlyAuthentication"
101+
},
102+
"in": "body",
103+
"name": "AzureADOnlyAuthenticationInfo",
104+
"description": "Azure Active Directory Property",
105+
"required": true
106+
}
107+
],
108+
"responses": {
109+
"200": {
110+
"schema": {
111+
"$ref": "#/definitions/AzureADOnlyAuthentication"
112+
},
113+
"description": "OK"
114+
},
115+
"201": {
116+
"schema": {
117+
"$ref": "#/definitions/AzureADOnlyAuthentication"
118+
},
119+
"description": "Created"
120+
},
121+
"202": {
122+
"description": "Accepted"
123+
},
124+
"default": {
125+
"schema": {
126+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
127+
},
128+
"description": ""
129+
}
130+
},
131+
"consumes": [
132+
"application/json"
133+
],
134+
"produces": [
135+
"application/json"
136+
],
137+
"x-ms-examples": {
138+
"Create or Update Azure Active Directory Only Authentication property": {
139+
"$ref": "./examples/CreateOrUpdateAzureADOnlyAuthentication.json"
140+
}
141+
},
142+
"x-ms-long-running-operation": true,
143+
"x-ms-long-running-operation-options": {
144+
"final-state-via": "location"
145+
}
146+
}
147+
},
148+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications": {
149+
"get": {
150+
"operationId": "AzureADOnlyAuthentications_List",
151+
"summary": "Gets a list of Azure Active Directory only authentication property",
152+
"description": "Gets a list of Azure Active Directory only authentication property for a workspace",
153+
"tags": [
154+
"WorkspaceAzureADOnlyAuthentications"
155+
],
156+
"deprecated": false,
157+
"parameters": [
158+
{
159+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
160+
},
161+
{
162+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
163+
},
164+
{
165+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
166+
},
167+
{
168+
"$ref": "../../../../common/v1/types.json#/parameters/WorkspaceNameParameter"
169+
}
170+
],
171+
"responses": {
172+
"200": {
173+
"schema": {
174+
"$ref": "#/definitions/AzureADOnlyAuthenticationListResult"
175+
},
176+
"description": "OK"
177+
},
178+
"default": {
179+
"schema": {
180+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
181+
},
182+
"description": ""
183+
}
184+
},
185+
"consumes": [],
186+
"produces": [
187+
"application/json"
188+
],
189+
"x-ms-pageable": {
190+
"nextLinkName": "nextLink"
191+
},
192+
"x-ms-examples": {
193+
"Get a list of Azure Active Directory Only Authentication property": {
194+
"$ref": "./examples/ListAzureADOnlyAuthentication.json"
195+
}
196+
}
197+
}
198+
}
199+
},
200+
"definitions": {
201+
"AzureADOnlyAuthenticationProperties": {
202+
"description": "Properties of a active directory only authentication.",
203+
"required": [
204+
"azureADOnlyAuthentication"
205+
],
206+
"type": "object",
207+
"properties": {
208+
"azureADOnlyAuthentication": {
209+
"description": "Azure Active Directory only Authentication enabled.",
210+
"type": "boolean"
211+
},
212+
"state": {
213+
"description": "property configuration state",
214+
"type": "string",
215+
"readOnly": true,
216+
"enum": [
217+
"Consistent",
218+
"InConsistent",
219+
"Updating"
220+
],
221+
"x-ms-enum": {
222+
"name": "state value",
223+
"modelAsString": true
224+
}
225+
},
226+
"creationDate": {
227+
"description": "property configuration date",
228+
"type": "string",
229+
"format": "date-time",
230+
"readOnly": true
231+
}
232+
}
233+
},
234+
"AzureADOnlyAuthentication": {
235+
"description": "Azure Active Directory Only Authentication Info",
236+
"type": "object",
237+
"allOf": [
238+
{
239+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource"
240+
}
241+
],
242+
"properties": {
243+
"properties": {
244+
"description": "azureADOnlyAuthentication resource properties",
245+
"$ref": "#/definitions/AzureADOnlyAuthenticationProperties",
246+
"x-ms-client-flatten": true
247+
}
248+
}
249+
},
250+
"AzureADOnlyAuthenticationListResult": {
251+
"description": "A list of active directory only authentications.",
252+
"type": "object",
253+
"properties": {
254+
"value": {
255+
"description": "Array of results.",
256+
"type": "array",
257+
"items": {
258+
"$ref": "#/definitions/AzureADOnlyAuthentication"
259+
},
260+
"readOnly": true
261+
},
262+
"nextLink": {
263+
"description": "Link to retrieve next page of results.",
264+
"type": "string",
265+
"readOnly": true
266+
}
267+
}
268+
}
269+
},
270+
"parameters": {
271+
"workspaceNameParameter": {
272+
"name": "workspaceName",
273+
"in": "path",
274+
"required": true,
275+
"type": "string",
276+
"description": "The name of the workspace",
277+
"x-ms-parameter-location": "method"
278+
},
279+
"azureADOnlyAuthenticationNameParameter": {
280+
"type": "string",
281+
"in": "path",
282+
"name": "azureADOnlyAuthenticationName",
283+
"description": "name of the property",
284+
"required": true,
285+
"enum": [
286+
"default"
287+
],
288+
"x-ms-enum": {
289+
"name": "AzureADOnlyAuthenticationName",
290+
"modelAsString": true
291+
},
292+
"x-ms-parameter-location": "method"
293+
}
294+
}
295+
}

0 commit comments

Comments
 (0)