Skip to content

Commit

Permalink
Patch call for DDoS Protection plan (#5426)
Browse files Browse the repository at this point in the history
* Patch call for DDoS Protection plan

Removing unreferenced definition

Addressing review comments. Setting x-ms-long-running-operation to false

Removing tags from Patch call description

Fixing the response message description

Removing x-ms-long-running-operation from patch

fixing the file renames

* Adding patch call to 2019-02-01

* fixing date

* fixing semantic error

* Addressing review comments
  • Loading branch information
mancgupta authored and jianghaolu committed Mar 25, 2019
1 parent 7a5a276 commit 33d813f
Show file tree
Hide file tree
Showing 6 changed files with 255 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,58 @@
"$ref": "./examples/DdosProtectionPlanCreate.json"
}
}
},
"patch": {
"tags": [
"DdosProtectionPlans"
],
"operationId": "DdosProtectionPlans_UpdateTags",
"description": "Update a DDoS protection plan tags",
"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 tags."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Update successful. The operation returns the resulting DDoS protection plan resource.",
"schema": {
"$ref": "#/definitions/DdosProtectionPlan"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"DDoS protection plan Update tags": {
"$ref": "./examples/DdosProtectionPlanUpdateTags.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans": {
Expand Down
Original file line number Diff line number Diff line change
@@ -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": []
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,58 @@
"$ref": "./examples/DdosProtectionPlanCreate.json"
}
}
},
"patch": {
"tags": [
"DdosProtectionPlans"
],
"operationId": "DdosProtectionPlans_UpdateTags",
"description": "Update a DDoS protection plan tags",
"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 tags."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Update successful. The operation returns the resulting DDoS protection plan resource.",
"schema": {
"$ref": "#/definitions/DdosProtectionPlan"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"DDoS protection plan Update tags": {
"$ref": "./examples/DdosProtectionPlanUpdateTags.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans": {
Expand Down
Original file line number Diff line number Diff line change
@@ -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": []
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,58 @@
"$ref": "./examples/DdosProtectionPlanCreate.json"
}
}
},
"patch": {
"tags": [
"DdosProtectionPlans"
],
"operationId": "DdosProtectionPlans_UpdateTags",
"description": "Update a DDoS protection plan tags",
"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 tags."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Update successful. The operation returns the resulting DDoS protection plan resource.",
"schema": {
"$ref": "#/definitions/DdosProtectionPlan"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"DDoS protection plan Update tags": {
"$ref": "./examples/DdosProtectionPlanUpdateTags.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"api-version": "2019-02-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": []
}
}
}
}
}

0 comments on commit 33d813f

Please sign in to comment.