Skip to content

Commit

Permalink
Added TrustedServiceByPassConfiguration in workspace (#20255)
Browse files Browse the repository at this point in the history
* Added trustedServiceByPassConfiguration to workspace

* Model Validation Fix

* Example changes

* Added properties

* Properties changes

* Changes in workspace

* Semantic validation fix

* Properties changes

* Added Object

* Schema changes

* response changes

* Response revert

Co-authored-by: VamshiKrishna Chirra (Quadrant Resource) <[email protected]>
  • Loading branch information
12VamshiKrishna and VamshiKrishna Chirra (Quadrant Resource) authored Aug 25, 2022
1 parent 505bb06 commit 45790bd
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"subscriptionId": "cde3513f-fbc4-414d-abc2-c4b2ad011bd8",
"resourceGroupName": "kedodd2021synrg1",
"workspaceName": "kedoddsynprodws",
"trustedServiceByPassConfiguration": {
"properties": {
"trustedServiceBypassConfigurationInfo": {
"trustedServiceBypassEnabled": false
}
}
},
"api-version": "2021-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/cde3513f-fbc4-414d-abc2-c4b2ad011bd8/resourceGroups/kedodd2021synrg1/providers/Microsoft.Synapse/workspaces/kedoddsynprodws/trustedServiceByPassConfiguration/default",
"type": "Microsoft.Synapse/workspaces/trustedServiceByPassConfiguration/default",
"name": "default",
"properties": {
"trustedServiceBypassConfigurationInfo": {
"trustedServiceBypassEnabled": false
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,63 @@
"nextLinkName": null
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/trustedServiceByPassConfiguration/default": {
"put": {
"operationId": "WorkspaceTrustedServiceByPassConfiguration_CreateOrUpdate",
"summary": "Create or update Trusted Service By Pass Configuration",
"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/TrustedServiceByPassConfiguration"
}
},
"name": "trustedServiceByPassConfiguration",
"in": "body",
"description": "Trusted Service By Pass Configuration",
"required": true
}
],
"responses": {
"200": {
"schema": {
"type": "object",
"items": {
"$ref": "#/definitions/TrustedServiceByPassConfiguration"
}
},
"description": "OK"
},
"default": {
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
},
"description": "Error"
}
},
"produces": [
"application/json"
],
"x-ms-examples": {
"Create or update trusted service by pass configuration": {
"$ref": "./examples/CreateOrUpdateTrustedServiceByPassConfiguration.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -1512,6 +1569,36 @@
"value"
],
"description": "The response to a list restorable dropped Sql pools request"
},
"TrustedServiceByPassConfiguration": {
"type": "object",
"title": "Trusted Service By Pass Configuration properties",
"description": "Trusted Service By Pass Configuration",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource"
}
],
"properties": {
"properties": {
"title": "Trusted Service By Pass Configuration properties",
"description": "Trusted Service By Pass Configuration properties",
"type": "object",
"properties": {
"trustedServiceBypassConfigurationInfo": {
"description": "Trusted Service By pass Configuration Info",
"type": "object",
"properties": {
"trustedServiceBypassEnabled": {
"description": "Trusted Service By pass Enabled",
"type": "boolean"
}
}
}
},
"x-ms-client-flatten": true
}
}
}
}
}

0 comments on commit 45790bd

Please sign in to comment.