Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch call for DDoS Protection plan #5426

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": []
}
}
}
}
}