diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/ddosProtectionPlan.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/ddosProtectionPlan.json index b20425a6aad6..8e9bc233d5ce 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/ddosProtectionPlan.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/ddosProtectionPlan.json @@ -180,6 +180,57 @@ "$ref": "./examples/DdosProtectionPlanCreate.json" } } + }, + "patch": { + "tags": [ + "DdosProtectionPlans" + ], + "operationId": "DdosProtectionPlans_Update", + "description": "Update a DDoS protection plan", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "ddosProtectionPlanName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DDoS protection plan." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to the update DDoS protection plan resource." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful.", + "schema": { + "$ref": "#/definitions/DdosProtectionPlan" + } + } + }, + "x-ms-examples": { + "DDoS protection plan Update tags": { + "$ref": "./examples/DdosProtectionPlanUpdate.json" + } + } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/DdosProtectionPlanUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/DdosProtectionPlanUpdate.json new file mode 100644 index 000000000000..f996a336c528 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-11-01/examples/DdosProtectionPlanUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2018-11-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "ddosProtectionPlanName": "test-plan", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-plan", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosProtectionPlans/test-plan", + "type": "Microsoft.Network/ddosProtectionPlans", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworks": [] + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/ddosProtectionPlan.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/ddosProtectionPlan.json index 7ebc2a166b60..727d8c90d88e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/ddosProtectionPlan.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/ddosProtectionPlan.json @@ -180,6 +180,57 @@ "$ref": "./examples/DdosProtectionPlanCreate.json" } } + }, + "patch": { + "tags": [ + "DdosProtectionPlans" + ], + "operationId": "DdosProtectionPlans_Update", + "description": "Update a DDoS protection plan", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "ddosProtectionPlanName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the DDoS protection plan." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./network.json#/definitions/TagsObject" + }, + "description": "Parameters supplied to the update DDoS protection plan resource." + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Update successful.", + "schema": { + "$ref": "#/definitions/DdosProtectionPlan" + } + } + }, + "x-ms-examples": { + "DDoS protection plan Update tags": { + "$ref": "./examples/DdosProtectionPlanUpdate.json" + } + } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans": { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/DdosProtectionPlanUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/DdosProtectionPlanUpdate.json new file mode 100644 index 000000000000..499288163fa0 --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-12-01/examples/DdosProtectionPlanUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2018-12-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "ddosProtectionPlanName": "test-plan", + "parameters": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-plan", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ddosProtectionPlans/test-plan", + "type": "Microsoft.Network/ddosProtectionPlans", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-000000000000", + "virtualNetworks": [] + } + } + } + } +}