diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfiguration_Get.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfiguration_Get.json new file mode 100644 index 000000000000..54c023929441 --- /dev/null +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfiguration_Get.json @@ -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" + } + } + } +} diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfigurations_ListByWorkspace.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfigurations_ListByWorkspace.json new file mode 100644 index 000000000000..8745a7d52053 --- /dev/null +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfigurations_ListByWorkspace.json @@ -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": "" + } + } + } +} diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sparkConfiguration.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sparkConfiguration.json new file mode 100644 index 000000000000..f9aac35560c8 --- /dev/null +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sparkConfiguration.json @@ -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" + } + ] + } + } +} diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json index b324b026c98a..401a14d482b1 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json @@ -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" } } }, diff --git a/specification/synapse/resource-manager/readme.md b/specification/synapse/resource-manager/readme.md index dfea3e9122af..1c92d90c481f 100644 --- a/specification/synapse/resource-manager/readme.md +++ b/specification/synapse/resource-manager/readme.md @@ -55,6 +55,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-2021-05