From 9860bbd49d718dd87a98952fa1c30727ecdf986d Mon Sep 17 00:00:00 2001 From: 12VamshiKrishna <109329038+12VamshiKrishna@users.noreply.github.com> Date: Wed, 7 Sep 2022 08:49:25 +0530 Subject: [PATCH] Added Path and example (#20425) * Added Path and example * Parameter changes * Description added * value changes * Response changes * example changes * Property added * name changes * Definition changes * model validation * object added * Response/prettier changes Co-authored-by: VamshiKrishna Chirra (Quadrant Resource) --- .../CheckDefaultStorageAccountStatus.json | 31 ++++++ .../preview/2021-06-01-preview/workspace.json | 97 +++++++++++++++++++ 2 files changed, 128 insertions(+) create mode 100644 specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/CheckDefaultStorageAccountStatus.json diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/CheckDefaultStorageAccountStatus.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/CheckDefaultStorageAccountStatus.json new file mode 100644 index 000000000000..fd912b738398 --- /dev/null +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/CheckDefaultStorageAccountStatus.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "89e2c1d6-3f1d-45d1-8ddf-d8ea6cab925e", + "resourceGroupName": "lee-synapse-dev", + "workspaceName": "lee-synws-dw-dev", + "checkDefaultStorageAccountStatus": { + "properties": { + "isPrivateLinked": true, + "privateEndpointResourceId": "abc123" + } + }, + "api-version": "2021-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/89e2c1d6-3f1d-45d1-8ddf-d8ea6cab925e/resourceGroups/lee-synapse-dev/providers/Microsoft.Synapse/workspaces/lee-synws-dw-dev/checkDefaultStorageAccountStatus", + "type": "Microsoft.Synapse/workspaces/checkDefaultStorageAccountStatus", + "location": "Japan East", + "properties": { + "isPrivateLinked": true, + "privateEndpointResourceId": "abc123" + } + } + ] + } + } + } +} 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 82db2cc3c225..a76fe58bd832 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 @@ -935,6 +935,66 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/checkDefaultStorageAccountStatus": { + "post": { + "tags": [ + "Workspaces, checkDefaultStorageAccountStatus" + ], + "operationId": "WorkspaceCheckDefaultStorageAccountStatus_Create", + "description": "Check Default Storage Account Status", + "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../../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "schema": { + "type": "object", + "items": { + "$ref": "#/definitions/CheckDefaultStorageAccountStatus" + } + }, + "name": "checkDefaultStorageAccountStatus", + "in": "body", + "description": "Check Default Storage Account Status", + "required": true + } + ], + "responses": { + "200": { + "schema": { + "type": "object", + "items": { + "$ref": "#/definitions/CheckDefaultStorageAccountStatus" + } + }, + "description": "OK" + }, + "default": { + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "Error" + } + }, + "produces": [ + "application/json" + ], + "x-ms-examples": { + "Workspace check default storage account status": { + "$ref": "./examples/CheckDefaultStorageAccountStatus.json" + } + } + } } }, "definitions": { @@ -1599,6 +1659,43 @@ "x-ms-client-flatten": true } } + }, + "CheckDefaultStorageAccountStatusProperties": { + "description": "Properties of the Check Default Storage Account Status.", + "type": "object", + "properties": { + "isPrivateLinked": { + "description": "Is Storage Account Status Linked.", + "type": "boolean", + "readOnly": true + }, + "privateEndpointResourceId": { + "description": "Endpoint ResourceId.", + "type": "string", + "readOnly": true + } + } + }, + "CheckDefaultStorageAccountStatus": { + "description": "Workspace Check Default Storage Account Status.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "location": { + "type": "string", + "readOnly": true, + "description": "The geo-location where the resource lives" + }, + "properties": { + "$ref": "#/definitions/CheckDefaultStorageAccountStatusProperties", + "description": "Workspace Check Default Storage Account Status Properties.", + "x-ms-client-flatten": true + } + } } } }