From ab22f199615db7ab3764df075b3bec1f887a39a4 Mon Sep 17 00:00:00 2001 From: Tom Li Date: Thu, 18 Mar 2021 20:49:51 -0700 Subject: [PATCH] Swagger change for CustomIpPrefix. Adding four new attributes. (#13456) * update swagger * fix apiversion * fix * add Co-authored-by: Weiheng Li --- .../stable/2021-02-01/customIpPrefix.json | 20 ++++++ .../CustomIpPrefixCreateCustomizedValues.json | 10 ++- .../examples/CustomIpPrefixGet.json | 5 +- .../examples/CustomIpPrefixList.json | 51 ++++++++++++++- .../examples/CustomIpPrefixListAll.json | 64 +++++++++++++++++-- .../examples/CustomIpPrefixUpdateTags.json | 5 +- 6 files changed, 142 insertions(+), 13 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/customIpPrefix.json b/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/customIpPrefix.json index 7d4a900f2ed9..eda9add91a75 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/customIpPrefix.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/customIpPrefix.json @@ -363,6 +363,26 @@ "type": "string", "description": "The prefix range in CIDR notation. Should include the start address and the prefix length." }, + "signedMessage": { + "type": "string", + "description": "Signed message for WAN validation." + }, + "authorizationMessage": { + "type": "string", + "description": "Authorization message for WAN validation." + }, + "customIpPrefixParent": { + "$ref": "#/definitions/CustomIpPrefix", + "description": "The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix." + }, + "childCustomIpPrefixes": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/CustomIpPrefix" + }, + "description": "The list of all Children for IPv6 /48 CustomIpPrefix." + }, "commissionedState": { "type": "string", "description": "The commissioned state of the Custom IP Prefix.", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixCreateCustomizedValues.json b/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixCreateCustomizedValues.json index b1d761737584..87ed5b3fd788 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixCreateCustomizedValues.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixCreateCustomizedValues.json @@ -29,7 +29,10 @@ "resourceGuid": "00000000-0000-0000-0000-00000000", "cidr": "192.168.254.2/24", "commissionedState": "Provisioning", - "publicIpPrefixes": [] + "signedMessage": "signedMessage", + "authorizationMessage": "authorizationMessage", + "publicIpPrefixes": [], + "childCustomIpPrefixes": [] }, "type": "Microsoft.Network/customIpPrefixes" } @@ -48,7 +51,10 @@ "resourceGuid": "00000000-0000-0000-0000-00000000", "cidr": "192.168.254.2/24", "commissionedState": "Provisioning", - "publicIpPrefixes": [] + "signedMessage": "signedMessage", + "authorizationMessage": "authorizationMessage", + "publicIpPrefixes": [], + "childCustomIpPrefixes": [] }, "type": "Microsoft.Network/customIpPrefixes" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixGet.json index 94facd7e509c..922e728e7eab 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixGet.json @@ -17,7 +17,10 @@ "resourceGuid": "00000000-0000-0000-0000-00000000", "cidr": "0.0.0.0/24", "commissionedState": "Commissioned", - "publicIpPrefixes": [] + "signedMessage": "signedMessage", + "authorizationMessage": "authorizationMessage", + "publicIpPrefixes": [], + "childCustomIpPrefixes": [] }, "type": "Microsoft.Network/customIpPrefixes" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixList.json b/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixList.json index 4cb08e99b1f8..62261d04f216 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixList.json @@ -18,7 +18,10 @@ "resourceGuid": "00000000-0000-0000-0000-00000000", "cidr": "0.0.0.0/24", "commissionedState": "Commissioned", - "publicIpPrefixes": [] + "signedMessage": "signedMessage", + "authorizationMessage": "authorizationMessage", + "publicIpPrefixes": [], + "childCustomIpPrefixes": [] }, "type": "Microsoft.Network/customIpPrefixes" }, @@ -32,7 +35,51 @@ "resourceGuid": "00000000-0000-0000-0000-00000000", "cidr": "0.0.1.0/30", "commissionedState": "Commissioned", - "publicIpPrefixes": [] + "signedMessage": "signedMessage", + "authorizationMessage": "authorizationMessage", + "publicIpPrefixes": [], + "childCustomIpPrefixes": [] + }, + "type": "Microsoft.Network/customIpPrefixes" + }, + { + "name": "test-customipprefix4", + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix4", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "cidr": "2607:f0d1:1002:0001::/64", + "commissionedState": "Commissioned", + "signedMessage": "signedMessage", + "authorizationMessage": "authorizationMessage", + "publicIpPrefixes": [], + "childCustomIpPrefixes": [], + "customIpPrefixParent": { + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix5" + } + }, + "type": "Microsoft.Network/customIpPrefixes" + }, + { + "name": "test-customipprefix5", + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix5", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "cidr": "2607:f0d1:1002::/48", + "commissionedState": "Provisioned", + "signedMessage": "signedMessage", + "authorizationMessage": "authorizationMessage", + "publicIpPrefixes": [], + "childCustomIpPrefixes": [ + { + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix4" + } + ] }, "type": "Microsoft.Network/customIpPrefixes" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixListAll.json b/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixListAll.json index 9834649e0029..10f1439171ad 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixListAll.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixListAll.json @@ -17,7 +17,10 @@ "resourceGuid": "00000000-0000-0000-0000-00000000", "cidr": "0.0.0.0/24", "commissionedState": "Commissioned", - "publicIpPrefixes": [] + "signedMessage": "signedMessage", + "authorizationMessage": "authorizationMessage", + "publicIpPrefixes": [], + "childCustomIpPrefixes": [] }, "type": "Microsoft.Network/customIpPrefixes" }, @@ -29,23 +32,70 @@ "properties": { "provisioningState": "Succeeded", "resourceGuid": "00000000-0000-0000-0000-00000000", - "cidr": "0.0.1.0/30", + "cidr": "0.0.2.0/23", "commissionedState": "Commissioned", - "publicIpPrefixes": [] + "signedMessage": "signedMessage", + "authorizationMessage": "authorizationMessage", + "publicIpPrefixes": [], + "childCustomIpPrefixes": [] }, "type": "Microsoft.Network/customIpPrefixes" }, { - "name": "test-customipprefix2", - "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix2", + "name": "test-customipprefix3", + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix3", "etag": "W/\"00000000-0000-0000-0000-00000000\"", "location": "eastus", "properties": { "provisioningState": "Succeeded", "resourceGuid": "00000000-0000-0000-0000-00000000", - "cidr": "0.0.1.0/22", + "cidr": "0.0.4.0/22", "commissionedState": "Provisioning", - "publicIpPrefixes": [] + "signedMessage": "signedMessage", + "authorizationMessage": "authorizationMessage", + "publicIpPrefixes": [], + "childCustomIpPrefixes": [] + }, + "type": "Microsoft.Network/customIpPrefixes" + }, + { + "name": "test-customipprefix4", + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix4", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "cidr": "2607:f0d1:1002:0001::/64", + "commissionedState": "Commissioned", + "signedMessage": "signedMessage", + "authorizationMessage": "authorizationMessage", + "publicIpPrefixes": [], + "childCustomIpPrefixes": [], + "customIpPrefixParent": { + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix5" + } + }, + "type": "Microsoft.Network/customIpPrefixes" + }, + { + "name": "test-customipprefix5", + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix5", + "etag": "W/\"00000000-0000-0000-0000-00000000\"", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded", + "resourceGuid": "00000000-0000-0000-0000-00000000", + "cidr": "2607:f0d1:1002::/48", + "commissionedState": "Provisioned", + "signedMessage": "signedMessage", + "authorizationMessage": "authorizationMessage", + "publicIpPrefixes": [], + "childCustomIpPrefixes": [ + { + "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix4" + } + ] }, "type": "Microsoft.Network/customIpPrefixes" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixUpdateTags.json b/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixUpdateTags.json index e500483826b3..e755047d25bb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixUpdateTags.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2021-02-01/examples/CustomIpPrefixUpdateTags.json @@ -29,7 +29,10 @@ "resourceGuid": "00000000-0000-0000-0000-00000000", "cidr": "192.168.254.2/24", "commissionedState": "Provisioning", - "publicIpPrefixes": [] + "signedMessage": "signedMessage", + "authorizationMessage": "authorizationMessage", + "publicIpPrefixes": [], + "childCustomIpPrefixes": [] }, "tags": { "tag1": "value1",