Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpakConfiguration Support for Resource Manager Api's #15086

Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1758,6 +1758,7 @@ southcentralus
southeastasia
southindia
sparkconf
sparkconfigurations
sparkr
sparql
SPDX
Expand Down
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-04-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-04-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-04-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": "#/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
@@ -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"
}
}
}
}
Loading