From 93acff0c35a65eb7b3ebde6fab27fb64a8cd4ae7 Mon Sep 17 00:00:00 2001 From: necusjz Date: Fri, 11 Oct 2024 16:48:17 +0800 Subject: [PATCH] chore: add correct model --- .../public-ip/ddos-protection-statu/_show.md | 11 ----- .../public-ip/ddos-protection/_show.md | 16 +++++++ .../public-ip/ddos-protection/readme.md | 8 ++++ Commands/network/public-ip/readme.md | 3 ++ Commands/tree.json | 45 ++++++++++++++----- .../2023-09-01.json | 2 +- .../2023-09-01.xml | 2 +- 7 files changed, 64 insertions(+), 23 deletions(-) create mode 100644 Commands/network/public-ip/ddos-protection/_show.md create mode 100644 Commands/network/public-ip/ddos-protection/readme.md diff --git a/Commands/network/public-ip/ddos-protection-statu/_show.md b/Commands/network/public-ip/ddos-protection-statu/_show.md index c8d6d80ab..397f30c36 100644 --- a/Commands/network/public-ip/ddos-protection-statu/_show.md +++ b/Commands/network/public-ip/ddos-protection-statu/_show.md @@ -14,14 +14,3 @@ Get the Ddos Protection Status of a Public IP Address ```bash network public-ip show-ddos-protection-statu -n MyPublicIp -g MyResourceGroup ``` - -### [2023-09-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9L2Rkb3Nwcm90ZWN0aW9uc3RhdHVz/2023-09-01.xml) **Stable** - - - -#### examples - -- Gets the Ddos Protection Status of a Public IP Address - ```bash - network public-ip show-ddos-protection-statu -n MyPublicIp -g MyResourceGroup - ``` diff --git a/Commands/network/public-ip/ddos-protection/_show.md b/Commands/network/public-ip/ddos-protection/_show.md new file mode 100644 index 000000000..1ad63d7d9 --- /dev/null +++ b/Commands/network/public-ip/ddos-protection/_show.md @@ -0,0 +1,16 @@ +# [Command] _network public-ip ddos-protection show_ + +Get the DDoS protection status of a public IP address. + +## Versions + +### [2023-09-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9L2Rkb3Nwcm90ZWN0aW9uc3RhdHVz/2023-09-01.xml) **Stable** + + + +#### examples + +- Get the DDoS protection status of a public IP address. + ```bash + network public-ip ddos-protection show -n MyPublicIp -g MyResourceGroup + ``` diff --git a/Commands/network/public-ip/ddos-protection/readme.md b/Commands/network/public-ip/ddos-protection/readme.md new file mode 100644 index 000000000..f177ef317 --- /dev/null +++ b/Commands/network/public-ip/ddos-protection/readme.md @@ -0,0 +1,8 @@ +# [Group] _network public-ip ddos-protection_ + +Manage public IP DDoS protection. + +## Commands + +- [show](/Commands/network/public-ip/ddos-protection/_show.md) +: Get the DDoS protection status of a public IP address. diff --git a/Commands/network/public-ip/readme.md b/Commands/network/public-ip/readme.md index 6c1356c8b..35dbbfcee 100644 --- a/Commands/network/public-ip/readme.md +++ b/Commands/network/public-ip/readme.md @@ -6,6 +6,9 @@ To learn more about public IP addresses visit https://docs.microsoft.com/azure/v ## Subgroups +- [ddos-protection](/Commands/network/public-ip/ddos-protection/readme.md) +: Manage public IP DDoS protection. + - [ddos-protection-statu](/Commands/network/public-ip/ddos-protection-statu/readme.md) : Manage public IP ddos protection statu. diff --git a/Commands/tree.json b/Commands/tree.json index 8ceb530d5..4d6c53b94 100644 --- a/Commands/tree.json +++ b/Commands/tree.json @@ -121329,16 +121329,16 @@ }, "public-ip": { "commandGroups": { - "ddos-protection-statu": { + "ddos-protection": { "commands": { "show": { "help": { - "short": "Get the Ddos Protection Status of a Public IP Address" + "short": "Get the DDoS protection status of a public IP address." }, "names": [ "network", "public-ip", - "ddos-protection-statu", + "ddos-protection", "show" ], "versions": [ @@ -121346,20 +121346,45 @@ "examples": [ { "commands": [ - "network public-ip show-ddos-protection-statu -n MyPublicIp -g MyResourceGroup" + "network public-ip ddos-protection show -n MyPublicIp -g MyResourceGroup" ], - "name": "Gets the Ddos Protection Status of a Public IP Address" + "name": "Get the DDoS protection status of a public IP address." } ], - "name": "2023-06-01", + "name": "2023-09-01", "resources": [ { "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{}/ddosprotectionstatus", "plane": "mgmt-plane", - "version": "2023-06-01" + "version": "2023-09-01" } ] - }, + } + ] + } + }, + "help": { + "short": "Manage public IP DDoS protection." + }, + "names": [ + "network", + "public-ip", + "ddos-protection" + ] + }, + "ddos-protection-statu": { + "commands": { + "show": { + "help": { + "short": "Get the Ddos Protection Status of a Public IP Address" + }, + "names": [ + "network", + "public-ip", + "ddos-protection-statu", + "show" + ], + "versions": [ { "examples": [ { @@ -121369,12 +121394,12 @@ "name": "Gets the Ddos Protection Status of a Public IP Address" } ], - "name": "2023-09-01", + "name": "2023-06-01", "resources": [ { "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{}/ddosprotectionstatus", "plane": "mgmt-plane", - "version": "2023-09-01" + "version": "2023-06-01" } ] } diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9L2Rkb3Nwcm90ZWN0aW9uc3RhdHVz/2023-09-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9L2Rkb3Nwcm90ZWN0aW9uc3RhdHVz/2023-09-01.json index 616c0c173..cccc8447f 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9L2Rkb3Nwcm90ZWN0aW9uc3RhdHVz/2023-09-01.json +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9L2Rkb3Nwcm90ZWN0aW9uc3RhdHVz/2023-09-01.json @@ -1 +1 @@ -{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{}/ddosprotectionstatus", "version": "2023-09-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9wdWJsaWNJUEFkZHJlc3Nlcy97cHVibGljSXBBZGRyZXNzTmFtZX0vZGRvc1Byb3RlY3Rpb25TdGF0dXM=/V/MjAyMy0wOS0wMQ=="}], "commandGroups": [{"name": "network public-ip ddos-protection-statu", "commands": [{"name": "show", "version": "2023-09-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{}/ddosprotectionstatus", "version": "2023-09-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9wdWJsaWNJUEFkZHJlc3Nlcy97cHVibGljSXBBZGRyZXNzTmFtZX0vZGRvc1Byb3RlY3Rpb25TdGF0dXM=/V/MjAyMy0wOS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.publicIpAddressName", "options": ["n", "name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the public IP address."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "PublicIPAddresses_DdosProtectionStatus", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}/ddosProtectionStatus", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "publicIpAddressName", "arg": "$Path.publicIpAddressName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2023-09-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "ddosProtectionPlanId"}, {"type": "string", "name": "isWorkloadProtected", "enum": {"items": [{"value": "False"}, {"value": "True"}]}}, {"type": "string", "name": "publicIpAddress"}, {"type": "string", "name": "publicIpAddressId"}]}}}}, {"statusCode": [202], "header": {"items": [{"name": "Location"}]}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{}/ddosprotectionstatus", "version": "2023-09-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9wdWJsaWNJUEFkZHJlc3Nlcy97cHVibGljSXBBZGRyZXNzTmFtZX0vZGRvc1Byb3RlY3Rpb25TdGF0dXM=/V/MjAyMy0wOS0wMQ=="}], "commandGroups": [{"name": "network public-ip ddos-protection", "commands": [{"name": "show", "version": "2023-09-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/publicipaddresses/{}/ddosprotectionstatus", "version": "2023-09-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9wdWJsaWNJUEFkZHJlc3Nlcy97cHVibGljSXBBZGRyZXNzTmFtZX0vZGRvc1Byb3RlY3Rpb25TdGF0dXM=/V/MjAyMy0wOS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.publicIpAddressName", "options": ["n", "name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the public IP address."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "PublicIPAddresses_DdosProtectionStatus", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}/ddosProtectionStatus", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "publicIpAddressName", "arg": "$Path.publicIpAddressName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2023-09-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "ddosProtectionPlanId"}, {"type": "string", "name": "isWorkloadProtected", "enum": {"items": [{"value": "False"}, {"value": "True"}]}}, {"type": "string", "name": "publicIpAddress"}, {"type": "string", "name": "publicIpAddressId"}]}}}}, {"statusCode": [202], "header": {"items": [{"name": "Location"}]}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9L2Rkb3Nwcm90ZWN0aW9uc3RhdHVz/2023-09-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9L2Rkb3Nwcm90ZWN0aW9uc3RhdHVz/2023-09-01.xml index dc7fceae0..605e40157 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9L2Rkb3Nwcm90ZWN0aW9uc3RhdHVz/2023-09-01.xml +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3B1YmxpY2lwYWRkcmVzc2VzL3t9L2Rkb3Nwcm90ZWN0aW9uc3RhdHVz/2023-09-01.xml @@ -1,7 +1,7 @@ - +