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

Swagger changes for setting minimalTlsVersion for workspace sql server post workspace creation #17476

Merged
merged 15 commits into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -1150,6 +1150,7 @@ Lucene
Lumia
LUNs
Luxembourgish
Lminimal
machinelearning
machinelearningcompute
machinelearningexperimentation
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "workspace-6852",
"workspaceName": "workspace-2080",
"dedicatedSQLminimalTlsSettingsName": "default",
"api-version": "2021-06-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/dedicatedSQLminimalTlsSettings/default",
"name": "default",
"type": "Microsoft.Synapse/workspaces/dedicatedSQLminimalTlsSettings",
"location": "eastus",
"properties": {
"minimalTlsVersion": "1.1"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "workspace-6852",
"workspaceName": "workspace-2080",
"api-version": "2021-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/dedicatedSQLminimalTlsSettings/default",
"name": "default",
"type": "Microsoft.Synapse/workspaces/dedicatedSQLminimalTlsSettings",
"location": "eastus",
"properties": {
"minimalTlsVersion": "1.1"
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/dedicatedSQLminimalTlsSettings/default",
"name": "default",
"type": "Microsoft.Synapse/workspaces/dedicatedSQLminimalTlsSettings",
"location": "eastus",
"properties": {
"minimalTlsVersion": "1.1"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "workspace-6852",
"workspaceName": "workspace-2080",
"dedicatedSQLminimalTlsSettingsName": "default",
"api-version": "2021-06-01-preview",
"parameters": {
"properties": {
"minimalTlsVersion": "1.1"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/dedicatedSQLminimalTlsSettings/default",
"name": "default",
"type": "Microsoft.Synapse/workspaces/dedicatedSQLminimalTlsSettings",
"properties": {
"minimalTlsVersion": "1.1"
}
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,185 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings/{dedicatedSQLminimalTlsSettingsName}": {
pilor marked this conversation as resolved.
Show resolved Hide resolved
"put": {
"operationId": "WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings_Update",
"summary": "Update server's tls settings.",
"description": "Update workspace managed sql server's minimal tls settings.",
"tags": [
"WorkspaceManagedSqlServer, DedicatedSQLminimalTlsSettings"
],
"deprecated": false,
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../common/v1/types.json#/parameters/WorkspaceNameParameter"
},
{
"name": "dedicatedSQLminimalTlsSettingsName",
"in": "path",
"description": "The name of the dedicated sql minimal tls settings.",
"required": true,
"type": "string",
"enum": [
"default"
],
"x-ms-enum": {
"name": "DedicatedSQLMinimalTlsSettingsName",
"modelAsString": true
}
},
{
"schema": {
"$ref": "#/definitions/DedicatedSQLminimalTlsSettings"
},
"in": "body",
"name": "parameters",
"description": "minimal tls settings",
"required": true
}
],
"responses": {
"200": {
"description": "Successfully updated dedicated sql minimal tls settings.",
"schema": {
"$ref": "#/definitions/DedicatedSQLminimalTlsSettings"
}
},
"202": {
pilor marked this conversation as resolved.
Show resolved Hide resolved
"description": "Accepted"
},
"default": {
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
},
"description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 409 UnsupportedWorkspaceType - Unsupported operation for the workspace type.\n\n * 500 InternalServerError - Something went wrong."
naresh-polu marked this conversation as resolved.
Show resolved Hide resolved
}
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Update tls version of the workspace managed sql server": {
"$ref": "./examples/UpdateWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json"
}
}
},
"get": {
"operationId": "WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings_Get",
"summary": "Get server's minimal tls settings.",
"description": "Get workspace managed sql server's minimal tls settings.",
"tags": [
"WorkspaceManagedSqlServer, DedicatedSQLminimalTlsSettings"
],
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../common/v1/types.json#/parameters/WorkspaceNameParameter"
},
{
"name": "dedicatedSQLminimalTlsSettingsName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the dedicated sql minimal tls settings."
}
],
"responses": {
"200": {
"description": "Successfully retrieved dedicated sql minimal tls settings.",
"schema": {
"$ref": "#/definitions/DedicatedSQLminimalTlsSettings"
}
},
"default": {
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
},
"description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 409 UnsupportedWorkspaceType - Unsupported operation for the workspace type.\n\n * 500 InternalServerError - Something went wrong."
}
},
"consumes": [],
"produces": [
"application/json"
],
"x-ms-examples": {
"Get workspace managed sql server dedicated sql minimal tls settings": {
"$ref": "./examples/GetWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings": {
"get": {
"operationId": "WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings_List",
"summary": "List workspace server's minimal tls settings.",
"description": "List workspace managed sql server's minimal tls settings.",
"tags": [
"WorkspaceManagedSqlServer, DedicatedSQLminimalTlsSettings"
],
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../common/v1/types.json#/parameters/WorkspaceNameParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved dedicated sql minimal tls settings.",
"schema": {
"$ref": "#/definitions/DedicatedSQLminimalTlsSettingsListResult"
}
},
"default": {
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
},
"description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 409 UnsupportedWorkspaceType - Unsupported operation for the workspace type.\n\n * 500 InternalServerError - Something went wrong."
}
},
"consumes": [],
"produces": [
"application/json"
],
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List dedicated sql minimal tls settings of the workspace managed sql server": {
"$ref": "./examples/ListWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -1788,6 +1967,56 @@
"readOnly": true
}
}
},
"DedicatedSQLminimalTlsSettingsProperties": {
"description": "Properties of a dedicated sql minimal tls settings.",
"type": "object",
"properties": {
"minimalTlsVersion": {
"type": "string",
"description": "The minimal tls version of the sql server."
}
}
},
"DedicatedSQLminimalTlsSettings": {
"description": "Dedicated Sql Minimal Tls Settings Info",
"type": "object",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource"
}
],
"properties": {
"location": {
pilor marked this conversation as resolved.
Show resolved Hide resolved
"description": "Resource location.",
"type": "string",
"readOnly": true
},
"properties": {
"$ref": "#/definitions/DedicatedSQLminimalTlsSettingsProperties",
"description": "Resource properties.",
"x-ms-client-flatten": true
}
}
},
"DedicatedSQLminimalTlsSettingsListResult": {
"description": "A list of the server's dedicated sql minimal tls settings.",
"type": "object",
"properties": {
"value": {
"description": "Array of results.",
"type": "array",
"items": {
"$ref": "#/definitions/DedicatedSQLminimalTlsSettings"
},
"readOnly": true
},
"nextLink": {
"description": "Link to retrieve next page of results.",
"type": "string",
"readOnly": true
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "workspace-6852",
"workspaceName": "workspace-2080",
"dedicatedSQLminimalTlsSettingsName": "default",
"api-version": "2021-06-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/dedicatedSQLminimalTlsSettings/default",
"name": "default",
"type": "Microsoft.Synapse/workspaces/dedicatedSQLminimalTlsSettings",
"location": "eastus",
"properties": {
"minimalTlsVersion": "1.1"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "workspace-6852",
"workspaceName": "workspace-2080",
"api-version": "2021-06-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/dedicatedSQLminimalTlsSettings/default",
"name": "default",
"type": "Microsoft.Synapse/workspaces/dedicatedSQLminimalTlsSettings",
"location": "eastus",
"properties": {
"minimalTlsVersion": "1.1"
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/dedicatedSQLminimalTlsSettings/default",
"name": "default",
"type": "Microsoft.Synapse/workspaces/dedicatedSQLminimalTlsSettings",
"location": "eastus",
"properties": {
"minimalTlsVersion": "1.1"
}
}
]
}
}
}
}
Loading