Skip to content

Commit

Permalink
add patch operation for express route gateway (#11553)
Browse files Browse the repository at this point in the history
* add patch

* fix example
  • Loading branch information
nimaller committed Nov 16, 2020
1 parent 9ac38e5 commit 57c1220
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"expressRouteGatewayName": "expressRouteGatewayName",
"resourceGroupName": "resourceGroupName",
"api-version": "2020-08-01",
"subscriptionId": "subid",
"expressRouteGatewayParameters": {
"tags": {
"tag1": "value1",
"tag2": "value2"
}
}
},
"responses": {
"202": {},
"200": {
"body": {
"name": "expressRouteGatewayName",
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName",
"etag": "w/\\00000000-0000-0000-0000-000000000000\\",
"location": "westus",
"type": "Microsoft.Network/expressRouteGateways",
"tags": {
"tag1": "value1",
"tag2": "value2"
},
"properties": {
"provisioningState": "Succeeded",
"virtualHub": {
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/virtualHubName"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3781,6 +3781,70 @@
"final-state-via": "azure-async-operation"
}
},
"patch": {
"tags": [
"ExpressRouteGateways"
],
"operationId": "ExpressRouteGateways_UpdateTags",
"x-ms-examples": {
"ExpressRouteGatewayUpdate": {
"$ref": "./examples/ExpressRouteGatewayUpdateTags.json"
}
},
"description": "Updates express route gateway tags.",
"parameters": [
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
},
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The resource group name of the ExpressRouteGateway."
},
{
"name": "expressRouteGatewayName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the gateway."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"name": "expressRouteGatewayParameters",
"in": "body",
"required": true,
"schema": {
"$ref": "./network.json#/definitions/TagsObject"
},
"description": "Parameters supplied to update a virtual wan express route gateway tags."
}
],
"responses": {
"202": {
"description": "Accepted and the operation will complete asynchronously."
},
"200": {
"description": "Request successful. Returns the details of the updated gateway.",
"schema": {
"$ref": "#/definitions/ExpressRouteGateway"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./network.json#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "azure-async-operation"
}
},
"get": {
"tags": [
"ExpressRouteGateways"
Expand Down

0 comments on commit 57c1220

Please sign in to comment.