Skip to content

Commit

Permalink
Added Path and example (#20425)
Browse files Browse the repository at this point in the history
* 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) <[email protected]>
  • Loading branch information
12VamshiKrishna and VamshiKrishna Chirra (Quadrant Resource) authored Sep 7, 2022
1 parent bc2806d commit 9860bbd
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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
}
}
}
}
}

0 comments on commit 9860bbd

Please sign in to comment.