-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <dubansal@microsoft.com>
- Loading branch information
1 parent
fc9550b
commit 56cd478
Showing
5 changed files
with
349 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfiguration_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-12345678abc", | ||
"resourceGroupName": "exampleResourceGroup", | ||
"workspaceName": "exampleWorkspace", | ||
"ifNoneMatch": null, | ||
"sparkConfigurationName": "exampleSparkConfigurationName", | ||
"api-version": "2021-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"Date": "Wed, 23 Oct 2020 21:33:05 GMT", | ||
"X-Content-Type-Options": "nosniff", | ||
"x-ms-ratelimit-remaining-subscription-reads": "14909", | ||
"x-ms-request-id": "f632df92-1140-4e19-9e19-0b1c8cbe393b", | ||
"x-ms-correlation-request-id": "f632df92-1140-4e19-9e19-0b1c8cbe393b" | ||
}, | ||
"body": { | ||
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspace/sparkconfigurations/exampleSparkConfigurationName", | ||
"name": "exampleSparkConfigurationName", | ||
"type": "Microsoft.Synapse/workspaces/sparkconfigurations", | ||
"properties": { | ||
"description": "test sparkconfiguration description", | ||
"configs": { | ||
"prop1": "true", | ||
"prop2": "true", | ||
"prop3": "123" | ||
}, | ||
"annotations": [ | ||
"testAnnotation1", | ||
"testAnnotation2" | ||
], | ||
"notes": "testNotes", | ||
"createdBy": "test@microsoft.com", | ||
"created": "1970-01-01T00:00:00Z" | ||
}, | ||
"etag": "1500474f-0000-0200-0000-5cbe090d0000" | ||
} | ||
} | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
...soft.Synapse/preview/2021-06-01-preview/examples/SparkConfigurations_ListByWorkspace.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-12345678abc", | ||
"resourceGroupName": "exampleResourceGroup", | ||
"workspaceName": "exampleWorkspace", | ||
"ifNoneMatch": null, | ||
"api-version": "2021-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"Date": "Wed, 23 Oct 2020 21:33:05 GMT", | ||
"X-Content-Type-Options": "nosniff", | ||
"x-ms-ratelimit-remaining-subscription-reads": "14909", | ||
"x-ms-request-id": "f632df92-1140-4e19-9e19-0b1c8cbe393b", | ||
"x-ms-correlation-request-id": "f632df92-1140-4e19-9e19-0b1c8cbe393b" | ||
}, | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspace/sparkconfigurations/exampleSparkConfigurationName", | ||
"name": "exampleSparkConfigurationName1", | ||
"type": "Microsoft.Synapse/workspaces/sparkconfigurations", | ||
"properties": { | ||
"description": "test sparkconfiguration description1", | ||
"configs": { | ||
"prop1": "true", | ||
"prop2": "true", | ||
"prop3": "123" | ||
}, | ||
"annotations": [ | ||
"testAnnotation1", | ||
"testAnnotation2" | ||
], | ||
"notes": "testNotes", | ||
"createdBy": "test@microsoft.com", | ||
"created": "1970-01-01T00:00:00Z" | ||
}, | ||
"etag": "1500474f-0000-0200-0000-5cbe090d0000" | ||
}, | ||
{ | ||
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspace/sparkconfigurations/exampleSparkConfigurationName2", | ||
"name": "exampleSparkConfigurationName2", | ||
"type": "Microsoft.Synapse/workspaces/sparkconfigurations", | ||
"properties": { | ||
"description": "test sparkconfiguration description2", | ||
"configs": { | ||
"prop1": "true", | ||
"prop2": "true", | ||
"prop3": "123" | ||
}, | ||
"annotations": [ | ||
"testAnnotation1", | ||
"testAnnotation2" | ||
], | ||
"notes": "testNotes", | ||
"createdBy": "test@microsoft.com", | ||
"created": "1970-01-01T00:00:00Z" | ||
}, | ||
"etag": "1500474f-0000-0200-0000-5cbe090d0000" | ||
} | ||
], | ||
"nextLink": "" | ||
} | ||
} | ||
} | ||
} |
227 changes: 227 additions & 0 deletions
227
...pse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sparkConfiguration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,227 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"version": "2021-06-01-preview", | ||
"title": "SynapseManagementClient", | ||
"description": "Azure Synapse Analytics APIs" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"type": "oauth2", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
}, | ||
"description": "Azure Active Directory OAuth2 Flow" | ||
} | ||
}, | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sparkconfigurations/{sparkConfigurationName}": { | ||
"get": { | ||
"operationId": "SparkConfiguration_Get", | ||
"summary": "Get SparkConfiguration by name.", | ||
"description": "Get SparkConfiguration by name in a workspace.", | ||
"tags": [ | ||
"SparkConfigurations" | ||
], | ||
"deprecated": false, | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/SparkConfigurationNameParameter" | ||
}, | ||
{ | ||
"$ref": "./workspace.json#/parameters/workspaceNameParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK.", | ||
"schema": { | ||
"$ref": "#/definitions/SparkConfigurationResource" | ||
} | ||
}, | ||
"default": { | ||
"description": "An error response received from the Azure Synapse service.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
"consumes": [], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"x-ms-examples": { | ||
"Get SparkConfiguration by name": { | ||
"$ref": "./examples/SparkConfiguration_Get.json" | ||
} | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sparkconfigurations": { | ||
"get": { | ||
"operationId": "SparkConfigurations_ListByWorkspace", | ||
"summary": "List the sparkConfigurations in a workspace.", | ||
"description": "List sparkConfigurations in a workspace.", | ||
"tags": [ | ||
"SparkConfigurations" | ||
], | ||
"deprecated": false, | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "./workspace.json#/parameters/workspaceNameParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK.", | ||
"schema": { | ||
"$ref": "#/definitions/SparkConfigurationListResponse" | ||
} | ||
}, | ||
"default": { | ||
"description": "An error response received from the Azure Synapse service.", | ||
"schema": { | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
"consumes": [], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"x-ms-examples": { | ||
"List sparkConfigurations in a workspace": { | ||
"$ref": "./examples/SparkConfigurations_ListByWorkspace.json" | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": "nextLink" | ||
} | ||
} | ||
} | ||
}, | ||
"parameters": { | ||
"SparkConfigurationNameParameter": { | ||
"name": "sparkConfigurationName", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "SparkConfiguration name", | ||
"x-ms-parameter-location": "method" | ||
} | ||
}, | ||
"definitions": { | ||
"SparkConfigurationListResponse": { | ||
"description": "A list of SparkConfiguration resources.", | ||
"type": "object", | ||
"required": [ | ||
"value" | ||
], | ||
"properties": { | ||
"value": { | ||
"type": "array", | ||
"description": "List of SparkConfiguration.", | ||
"items": { | ||
"$ref": "#/definitions/SparkConfigurationResource" | ||
} | ||
}, | ||
"nextLink": { | ||
"description": "The link to the next page of results, if any remaining results exist.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"SparkConfigurationResource": { | ||
"type": "object", | ||
"description": "SparkConfiguration response details", | ||
"allOf": [ | ||
{ | ||
"$ref": "./integrationRuntime.json#/definitions/SubResource" | ||
} | ||
], | ||
"properties": { | ||
"properties": { | ||
"$ref": "#/definitions/SparkConfigurationInfo", | ||
"description": "SparkConfiguration properties.", | ||
"x-ms-client-flatten": true | ||
} | ||
}, | ||
"required": [ | ||
"properties" | ||
] | ||
}, | ||
"SparkConfigurationInfo": { | ||
"type": "object", | ||
"description": "SparkConfiguration Artifact information", | ||
"title": "Information about a SparkConfiguration created at the workspace level.", | ||
"properties": { | ||
"description": { | ||
"type": "string", | ||
"description": "Description about the SparkConfiguration." | ||
}, | ||
"configs": { | ||
"type": "object", | ||
"description": "SparkConfiguration configs.", | ||
"additionalProperties": { | ||
"type": "string" | ||
} | ||
}, | ||
"annotations": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"description": "Annotations for SparkConfiguration." | ||
}, | ||
"notes": { | ||
"type": "string", | ||
"description": "additional Notes." | ||
}, | ||
"createdBy": { | ||
"type": "string", | ||
"description": "The identity that created the resource." | ||
}, | ||
"created": { | ||
"type": "string", | ||
"format": "date-time", | ||
"description": "The timestamp of resource creation." | ||
} | ||
}, | ||
"required": [ | ||
"configs" | ||
] | ||
}, | ||
"SubResource": { | ||
"description": "Azure Synapse nested resource, which belongs to a workspace.", | ||
"allOf": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/AzureEntityResource" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters