Skip to content

Commit 56cd478

Browse files
SpakConfiguration Support for Resource Manager Api's (#15086)
* SpakConfiguration Support for Resource Manager Api's SpakConfiguration Support for Resource Manager Api's * Fixed CI errors Fixed CI errors * Remove extra properties Remove extra properties * Added additional Properties as required Added additional Properties as required * Fix Ci Stylecop issues Fix Ci Stylecop issues * Resolved Comments Resolved Comments * Added Spark Configuration Details for Latest Api Version Added Spark Configuration Details for Latest Api Version * Adding Srinithya's UAMI changes * Remove new storage account properties * SpakConfiguration Support for Resource Manager Api's SpakConfiguration Support for Resource Manager Api's * Fixed CI errors Fixed CI errors * Remove extra properties Remove extra properties * Added additional Properties as required Added additional Properties as required * Fix Ci Stylecop issues Fix Ci Stylecop issues * Resolved Comments Resolved Comments * Added Spark Configuration Details for Latest Api Version Added Spark Configuration Details for Latest Api Version * Adding Srinithya's UAMI changes * Remove new storage account properties * Fixed Prettier CI Fix Fixed Prettier CI Fix Co-authored-by: Dushyant Bansal <[email protected]>
1 parent fc9550b commit 56cd478

File tree

5 files changed

+349
-0
lines changed

5 files changed

+349
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "12345678-1234-1234-1234-12345678abc",
4+
"resourceGroupName": "exampleResourceGroup",
5+
"workspaceName": "exampleWorkspace",
6+
"ifNoneMatch": null,
7+
"sparkConfigurationName": "exampleSparkConfigurationName",
8+
"api-version": "2021-06-01-preview"
9+
},
10+
"responses": {
11+
"200": {
12+
"headers": {
13+
"Date": "Wed, 23 Oct 2020 21:33:05 GMT",
14+
"X-Content-Type-Options": "nosniff",
15+
"x-ms-ratelimit-remaining-subscription-reads": "14909",
16+
"x-ms-request-id": "f632df92-1140-4e19-9e19-0b1c8cbe393b",
17+
"x-ms-correlation-request-id": "f632df92-1140-4e19-9e19-0b1c8cbe393b"
18+
},
19+
"body": {
20+
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspace/sparkconfigurations/exampleSparkConfigurationName",
21+
"name": "exampleSparkConfigurationName",
22+
"type": "Microsoft.Synapse/workspaces/sparkconfigurations",
23+
"properties": {
24+
"description": "test sparkconfiguration description",
25+
"configs": {
26+
"prop1": "true",
27+
"prop2": "true",
28+
"prop3": "123"
29+
},
30+
"annotations": [
31+
"testAnnotation1",
32+
"testAnnotation2"
33+
],
34+
"notes": "testNotes",
35+
"createdBy": "[email protected]",
36+
"created": "1970-01-01T00:00:00Z"
37+
},
38+
"etag": "1500474f-0000-0200-0000-5cbe090d0000"
39+
}
40+
}
41+
}
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "12345678-1234-1234-1234-12345678abc",
4+
"resourceGroupName": "exampleResourceGroup",
5+
"workspaceName": "exampleWorkspace",
6+
"ifNoneMatch": null,
7+
"api-version": "2021-06-01-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {
12+
"Date": "Wed, 23 Oct 2020 21:33:05 GMT",
13+
"X-Content-Type-Options": "nosniff",
14+
"x-ms-ratelimit-remaining-subscription-reads": "14909",
15+
"x-ms-request-id": "f632df92-1140-4e19-9e19-0b1c8cbe393b",
16+
"x-ms-correlation-request-id": "f632df92-1140-4e19-9e19-0b1c8cbe393b"
17+
},
18+
"body": {
19+
"value": [
20+
{
21+
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspace/sparkconfigurations/exampleSparkConfigurationName",
22+
"name": "exampleSparkConfigurationName1",
23+
"type": "Microsoft.Synapse/workspaces/sparkconfigurations",
24+
"properties": {
25+
"description": "test sparkconfiguration description1",
26+
"configs": {
27+
"prop1": "true",
28+
"prop2": "true",
29+
"prop3": "123"
30+
},
31+
"annotations": [
32+
"testAnnotation1",
33+
"testAnnotation2"
34+
],
35+
"notes": "testNotes",
36+
"createdBy": "[email protected]",
37+
"created": "1970-01-01T00:00:00Z"
38+
},
39+
"etag": "1500474f-0000-0200-0000-5cbe090d0000"
40+
},
41+
{
42+
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspace/sparkconfigurations/exampleSparkConfigurationName2",
43+
"name": "exampleSparkConfigurationName2",
44+
"type": "Microsoft.Synapse/workspaces/sparkconfigurations",
45+
"properties": {
46+
"description": "test sparkconfiguration description2",
47+
"configs": {
48+
"prop1": "true",
49+
"prop2": "true",
50+
"prop3": "123"
51+
},
52+
"annotations": [
53+
"testAnnotation1",
54+
"testAnnotation2"
55+
],
56+
"notes": "testNotes",
57+
"createdBy": "[email protected]",
58+
"created": "1970-01-01T00:00:00Z"
59+
},
60+
"etag": "1500474f-0000-0200-0000-5cbe090d0000"
61+
}
62+
],
63+
"nextLink": ""
64+
}
65+
}
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2021-06-01-preview",
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}/sparkconfigurations/{sparkConfigurationName}": {
25+
"get": {
26+
"operationId": "SparkConfiguration_Get",
27+
"summary": "Get SparkConfiguration by name.",
28+
"description": "Get SparkConfiguration by name in a workspace.",
29+
"tags": [
30+
"SparkConfigurations"
31+
],
32+
"deprecated": false,
33+
"parameters": [
34+
{
35+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
36+
},
37+
{
38+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
39+
},
40+
{
41+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
42+
},
43+
{
44+
"$ref": "#/parameters/SparkConfigurationNameParameter"
45+
},
46+
{
47+
"$ref": "./workspace.json#/parameters/workspaceNameParameter"
48+
}
49+
],
50+
"responses": {
51+
"200": {
52+
"description": "OK.",
53+
"schema": {
54+
"$ref": "#/definitions/SparkConfigurationResource"
55+
}
56+
},
57+
"default": {
58+
"description": "An error response received from the Azure Synapse service.",
59+
"schema": {
60+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
61+
}
62+
}
63+
},
64+
"consumes": [],
65+
"produces": [
66+
"application/json"
67+
],
68+
"x-ms-examples": {
69+
"Get SparkConfiguration by name": {
70+
"$ref": "./examples/SparkConfiguration_Get.json"
71+
}
72+
}
73+
}
74+
},
75+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sparkconfigurations": {
76+
"get": {
77+
"operationId": "SparkConfigurations_ListByWorkspace",
78+
"summary": "List the sparkConfigurations in a workspace.",
79+
"description": "List sparkConfigurations in a workspace.",
80+
"tags": [
81+
"SparkConfigurations"
82+
],
83+
"deprecated": false,
84+
"parameters": [
85+
{
86+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
87+
},
88+
{
89+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
90+
},
91+
{
92+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
93+
},
94+
{
95+
"$ref": "./workspace.json#/parameters/workspaceNameParameter"
96+
}
97+
],
98+
"responses": {
99+
"200": {
100+
"description": "OK.",
101+
"schema": {
102+
"$ref": "#/definitions/SparkConfigurationListResponse"
103+
}
104+
},
105+
"default": {
106+
"description": "An error response received from the Azure Synapse service.",
107+
"schema": {
108+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
109+
}
110+
}
111+
},
112+
"consumes": [],
113+
"produces": [
114+
"application/json"
115+
],
116+
"x-ms-examples": {
117+
"List sparkConfigurations in a workspace": {
118+
"$ref": "./examples/SparkConfigurations_ListByWorkspace.json"
119+
}
120+
},
121+
"x-ms-pageable": {
122+
"nextLinkName": "nextLink"
123+
}
124+
}
125+
}
126+
},
127+
"parameters": {
128+
"SparkConfigurationNameParameter": {
129+
"name": "sparkConfigurationName",
130+
"in": "path",
131+
"required": true,
132+
"type": "string",
133+
"description": "SparkConfiguration name",
134+
"x-ms-parameter-location": "method"
135+
}
136+
},
137+
"definitions": {
138+
"SparkConfigurationListResponse": {
139+
"description": "A list of SparkConfiguration resources.",
140+
"type": "object",
141+
"required": [
142+
"value"
143+
],
144+
"properties": {
145+
"value": {
146+
"type": "array",
147+
"description": "List of SparkConfiguration.",
148+
"items": {
149+
"$ref": "#/definitions/SparkConfigurationResource"
150+
}
151+
},
152+
"nextLink": {
153+
"description": "The link to the next page of results, if any remaining results exist.",
154+
"type": "string"
155+
}
156+
}
157+
},
158+
"SparkConfigurationResource": {
159+
"type": "object",
160+
"description": "SparkConfiguration response details",
161+
"allOf": [
162+
{
163+
"$ref": "./integrationRuntime.json#/definitions/SubResource"
164+
}
165+
],
166+
"properties": {
167+
"properties": {
168+
"$ref": "#/definitions/SparkConfigurationInfo",
169+
"description": "SparkConfiguration properties.",
170+
"x-ms-client-flatten": true
171+
}
172+
},
173+
"required": [
174+
"properties"
175+
]
176+
},
177+
"SparkConfigurationInfo": {
178+
"type": "object",
179+
"description": "SparkConfiguration Artifact information",
180+
"title": "Information about a SparkConfiguration created at the workspace level.",
181+
"properties": {
182+
"description": {
183+
"type": "string",
184+
"description": "Description about the SparkConfiguration."
185+
},
186+
"configs": {
187+
"type": "object",
188+
"description": "SparkConfiguration configs.",
189+
"additionalProperties": {
190+
"type": "string"
191+
}
192+
},
193+
"annotations": {
194+
"type": "array",
195+
"items": {
196+
"type": "string"
197+
},
198+
"description": "Annotations for SparkConfiguration."
199+
},
200+
"notes": {
201+
"type": "string",
202+
"description": "additional Notes."
203+
},
204+
"createdBy": {
205+
"type": "string",
206+
"description": "The identity that created the resource."
207+
},
208+
"created": {
209+
"type": "string",
210+
"format": "date-time",
211+
"description": "The timestamp of resource creation."
212+
}
213+
},
214+
"required": [
215+
"configs"
216+
]
217+
},
218+
"SubResource": {
219+
"description": "Azure Synapse nested resource, which belongs to a workspace.",
220+
"allOf": [
221+
{
222+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource"
223+
}
224+
]
225+
}
226+
}
227+
}

specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,18 @@
12831283
"cspWorkspaceAdminProperties": {
12841284
"description": "Initial workspace AAD admin properties for a CSP subscription",
12851285
"$ref": "#/definitions/CspWorkspaceAdminProperties"
1286+
},
1287+
"settings": {
1288+
"description": "Workspace settings",
1289+
"additionalProperties": {
1290+
"type": "object"
1291+
},
1292+
"type": "object",
1293+
"readOnly": true
1294+
},
1295+
"azureADOnlyAuthentication": {
1296+
"description": "Enable or Disable AzureADOnlyAuthentication on All Workspace subresource",
1297+
"type": "boolean"
12861298
}
12871299
}
12881300
},

specification/synapse/resource-manager/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ input-file:
5454
- Microsoft.Synapse/preview/2021-06-01-preview/sqlPool.json
5555
- Microsoft.Synapse/preview/2021-06-01-preview/sqlServer.json
5656
- Microsoft.Synapse/preview/2021-06-01-preview/workspace.json
57+
- Microsoft.Synapse/preview/2021-06-01-preview/sparkConfiguration.json
5758
```
5859

5960
### Tag: package-kusto-pool-2021-06-preview

0 commit comments

Comments
 (0)