Skip to content

Commit

Permalink
SpakConfiguration Support for Resource Manager Api's (#15086)
Browse files Browse the repository at this point in the history
* 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
Bharath550-ms and dubansal authored Aug 9, 2021
1 parent fc9550b commit 56cd478
Show file tree
Hide file tree
Showing 5 changed files with 349 additions and 0 deletions.
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"
}
}
}
}
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": ""
}
}
}
}
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"
}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,18 @@
"cspWorkspaceAdminProperties": {
"description": "Initial workspace AAD admin properties for a CSP subscription",
"$ref": "#/definitions/CspWorkspaceAdminProperties"
},
"settings": {
"description": "Workspace settings",
"additionalProperties": {
"type": "object"
},
"type": "object",
"readOnly": true
},
"azureADOnlyAuthentication": {
"description": "Enable or Disable AzureADOnlyAuthentication on All Workspace subresource",
"type": "boolean"
}
}
},
Expand Down
1 change: 1 addition & 0 deletions specification/synapse/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ input-file:
- Microsoft.Synapse/preview/2021-06-01-preview/sqlPool.json
- Microsoft.Synapse/preview/2021-06-01-preview/sqlServer.json
- Microsoft.Synapse/preview/2021-06-01-preview/workspace.json
- Microsoft.Synapse/preview/2021-06-01-preview/sparkConfiguration.json
```

### Tag: package-kusto-pool-2021-06-preview
Expand Down

0 comments on commit 56cd478

Please sign in to comment.