Skip to content

Commit 6dcfdfb

Browse files
Update Storage RP api-version 2025-01-01 to fix bugs causing SDK broken (#36084)
* Remove the deleteAccountCreationTime property * Delete DeletedStorageAccountRestore.json * Update storage.json to add ipv6Rules * Update storage.json * Add IPv6 endpoint support in storage account operation Api * Fix typo. * Fix lintDiff errors. * Create StorageAccountLeverageIPv6Ability.json * Add example for IPv6 properties. * Remove the not support notes. * Fix validation issue in StorageAccountLeverageIPv6Ability.json * Update format of StorageAccountLeverageIPv6Ability.json * Fix typo * Update storage.json --------- Co-authored-by: ZiWei Chen <[email protected]>
1 parent 2e6dbd6 commit 6dcfdfb

File tree

3 files changed

+175
-52
lines changed

3 files changed

+175
-52
lines changed

specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/DeletedStorageAccountRestore.json

Lines changed: 0 additions & 41 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "res9407",
5+
"accountName": "sto8596",
6+
"api-version": "2025-01-01",
7+
"monitor": "true",
8+
"parameters": {
9+
"properties": {
10+
"networkAcls": {
11+
"ipv6Rules": [
12+
{
13+
"action": "Allow",
14+
"value": "2001:0db8:85a3::/64"
15+
}
16+
],
17+
"defaultAction": "Deny"
18+
},
19+
"dualStackEndpointPreference": {
20+
"publishIpv6Endpoint": true
21+
}
22+
}
23+
}
24+
},
25+
"responses": {
26+
"200": {
27+
"body": {
28+
"id": "/subscriptions/{subscription-id}/resourceGroups/res9407/providers/Microsoft.Storage/storageAccounts/sto8596",
29+
"kind": "Storage",
30+
"location": "eastus2(stage)",
31+
"name": "sto8596",
32+
"properties": {
33+
"keyCreationTime": {
34+
"key1": "2021-03-18T04:42:22.4322836Z",
35+
"key2": "2021-03-18T04:42:22.4322836Z"
36+
},
37+
"creationTime": "2017-06-01T02:42:41.7633306Z",
38+
"networkAcls": {
39+
"ipv6Rules": [
40+
{
41+
"action": "Allow",
42+
"value": "2001:0db8:85a3::/64"
43+
}
44+
],
45+
"bypass": "AzureServices",
46+
"defaultAction": "Deny",
47+
"ipRules": [],
48+
"virtualNetworkRules": []
49+
},
50+
"dualStackEndpointPreference": {
51+
"publishIpv6Endpoint": true
52+
},
53+
"primaryEndpoints": {
54+
"web": "https://sto8596.web.core.windows.net/",
55+
"dfs": "https://sto8596.dfs.core.windows.net/",
56+
"blob": "https://sto8596.blob.core.windows.net/",
57+
"file": "https://sto8596.file.core.windows.net/",
58+
"queue": "https://sto8596.queue.core.windows.net/",
59+
"table": "https://sto8596.table.core.windows.net/",
60+
"ipv6Endpoints": {
61+
"web": "https://sto8596-ipv6.web.core.windows.net/",
62+
"dfs": "https://sto8596-ipv6.dfs.core.windows.net/",
63+
"blob": "https://sto8596-ipv6.blob.core.windows.net/",
64+
"file": "https://sto8596-ipv6.file.core.windows.net/",
65+
"queue": "https://sto8596-ipv6.queue.core.windows.net/",
66+
"table": "https://sto8596-ipv6.table.core.windows.net/"
67+
}
68+
},
69+
"primaryLocation": "eastus2(stage)",
70+
"provisioningState": "Succeeded",
71+
"statusOfPrimary": "available"
72+
},
73+
"sku": {
74+
"name": "Standard_LRS",
75+
"tier": "Standard"
76+
},
77+
"tags": {
78+
"key1": "value1",
79+
"key2": "value2"
80+
},
81+
"type": "Microsoft.Storage/storageAccounts"
82+
}
83+
}
84+
}
85+
}

specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/storage.json

Lines changed: 90 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@
165165
"StorageAccountCreateDnsEndpointTypeToStandard": {
166166
"$ref": "./examples/StorageAccountCreateDnsEndpointTypeToStandard.json"
167167
},
168-
"DeletedStorageAccountRestore": {
169-
"$ref": "./examples/DeletedStorageAccountRestore.json"
170-
},
171168
"StorageAccountCreate_placement": {
172169
"$ref": "./examples/StorageAccountCreate_placement.json"
173170
},
@@ -206,7 +203,7 @@
206203
}
207204
},
208205
"202": {
209-
"description": "Accepted -- Create, update or restore storage account request accepted; operation will complete asynchronously."
206+
"description": "Accepted -- Create or update storage account request accepted; operation will complete asynchronously."
210207
}
211208
},
212209
"x-ms-long-running-operation": true
@@ -348,6 +345,9 @@
348345
},
349346
"StorageAccountUpdate_zones": {
350347
"$ref": "./examples/StorageAccountUpdate_zones.json"
348+
},
349+
"StorageAccountUpdateEnableIpv6Features": {
350+
"$ref": "./examples/StorageAccountLeverageIPv6Ability.json"
351351
}
352352
},
353353
"parameters": [
@@ -3016,7 +3016,7 @@
30163016
"value": {
30173017
"type": "string",
30183018
"x-ms-client-name": "IPAddressOrRange",
3019-
"description": "Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed."
3019+
"description": "Specifies the IP or IP range in CIDR format."
30203020
},
30213021
"action": {
30223022
"type": "string",
@@ -3078,6 +3078,14 @@
30783078
},
30793079
"description": "Sets the IP ACL rules"
30803080
},
3081+
"ipv6Rules": {
3082+
"type": "array",
3083+
"items": {
3084+
"description": "IPv6 rule with specific IP or IP range in CIDR format.",
3085+
"$ref": "#/definitions/IPRule"
3086+
},
3087+
"description": "Sets the IPv6 ACL rules."
3088+
},
30813089
"defaultAction": {
30823090
"type": "string",
30833091
"enum": [
@@ -3295,6 +3303,11 @@
32953303
"x-ms-client-name": "RoutingPreference",
32963304
"description": "Maintains information about the network routing choice opted by the user for data transfer"
32973305
},
3306+
"dualStackEndpointPreference": {
3307+
"$ref": "#/definitions/DualStackEndpointPreference",
3308+
"x-ms-client-name": "DualStackEndpointPreference",
3309+
"description": "Maintains information about the Internet protocol opted by the user."
3310+
},
32983311
"allowBlobPublicAccess": {
32993312
"type": "boolean",
33003313
"x-ms-client-name": "AllowBlobPublicAccess",
@@ -3347,11 +3360,6 @@
33473360
"modelAsString": true
33483361
},
33493362
"description": "Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier."
3350-
},
3351-
"deletedAccountCreationTime": {
3352-
"type": "string",
3353-
"format": "date-time",
3354-
"description": "Creation time of the deleted account. This property should only be provided while requesting deleted storage account recovery."
33553363
}
33563364
},
33573365
"description": "The parameters used to create the storage account."
@@ -3542,6 +3550,11 @@
35423550
"x-ms-client-flatten": false,
35433551
"$ref": "#/definitions/StorageAccountInternetEndpoints",
35443552
"description": "Gets the internet routing storage endpoints"
3553+
},
3554+
"ipv6Endpoints": {
3555+
"x-ms-client-flatten": false,
3556+
"$ref": "#/definitions/StorageAccountIpv6Endpoints",
3557+
"description": "Gets the IPv6 storage endpoints."
35453558
}
35463559
},
35473560
"description": "The URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs object."
@@ -3606,6 +3619,52 @@
36063619
},
36073620
"description": "The URIs that are used to perform a retrieval of a public blob, file, web or dfs object via a internet routing endpoint."
36083621
},
3622+
"StorageAccountIpv6Endpoints": {
3623+
"type": "object",
3624+
"properties": {
3625+
"blob": {
3626+
"readOnly": true,
3627+
"type": "string",
3628+
"description": "Gets the blob endpoint."
3629+
},
3630+
"queue": {
3631+
"readOnly": true,
3632+
"type": "string",
3633+
"description": "Gets the queue endpoint."
3634+
},
3635+
"table": {
3636+
"readOnly": true,
3637+
"type": "string",
3638+
"description": "Gets the table endpoint."
3639+
},
3640+
"file": {
3641+
"readOnly": true,
3642+
"type": "string",
3643+
"description": "Gets the file endpoint."
3644+
},
3645+
"web": {
3646+
"readOnly": true,
3647+
"type": "string",
3648+
"description": "Gets the web endpoint."
3649+
},
3650+
"dfs": {
3651+
"readOnly": true,
3652+
"type": "string",
3653+
"description": "Gets the dfs endpoint."
3654+
},
3655+
"microsoftEndpoints": {
3656+
"x-ms-client-flatten": false,
3657+
"$ref": "#/definitions/StorageAccountMicrosoftEndpoints",
3658+
"description": "Gets the microsoft routing storage endpoints."
3659+
},
3660+
"internetEndpoints": {
3661+
"x-ms-client-flatten": false,
3662+
"$ref": "#/definitions/StorageAccountInternetEndpoints",
3663+
"description": "Gets the internet routing storage endpoints"
3664+
}
3665+
},
3666+
"description": "The URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs object via an IPv6 endpoint."
3667+
},
36093668
"GeoReplicationStats": {
36103669
"properties": {
36113670
"status": {
@@ -3694,6 +3753,16 @@
36943753
},
36953754
"description": "Routing preference defines the type of network, either microsoft or internet routing to be used to deliver the user data, the default option is microsoft routing"
36963755
},
3756+
"DualStackEndpointPreference": {
3757+
"type": "object",
3758+
"properties": {
3759+
"publishIpv6Endpoint": {
3760+
"type": "boolean",
3761+
"description": "A boolean flag which indicates whether IPv6 storage endpoints are to be published."
3762+
}
3763+
},
3764+
"description": "Dual-stack endpoint preference defines whether IPv6 endpoints are going to be published."
3765+
},
36973766
"ImmutableStorageAccount": {
36983767
"type": "object",
36993768
"properties": {
@@ -4023,6 +4092,11 @@
40234092
"x-ms-client-name": "RoutingPreference",
40244093
"description": "Maintains information about the network routing choice opted by the user for data transfer"
40254094
},
4095+
"dualStackEndpointPreference": {
4096+
"$ref": "#/definitions/DualStackEndpointPreference",
4097+
"x-ms-client-name": "DualStackEndpointPreference",
4098+
"description": "Maintains information about the Internet protocol opted by the user."
4099+
},
40264100
"blobRestoreStatus": {
40274101
"$ref": "#/definitions/BlobRestoreStatus",
40284102
"x-ms-client-name": "BlobRestoreStatus",
@@ -4361,6 +4435,11 @@
43614435
"x-ms-client-name": "RoutingPreference",
43624436
"description": "Maintains information about the network routing choice opted by the user for data transfer"
43634437
},
4438+
"dualStackEndpointPreference": {
4439+
"$ref": "#/definitions/DualStackEndpointPreference",
4440+
"x-ms-client-name": "DualStackEndpointPreference",
4441+
"description": "Maintains information about the Internet protocol opted by the user."
4442+
},
43644443
"allowBlobPublicAccess": {
43654444
"type": "boolean",
43664445
"x-ms-client-name": "AllowBlobPublicAccess",
@@ -5791,7 +5870,7 @@
57915870
},
57925871
"x-ms-client-flatten": true,
57935872
"x-ms-client-name": "StorageAccountMigrationDetails",
5794-
"description": "The properties of a storage accounts ongoing or enqueued migration.",
5873+
"description": "The properties of a storage account's ongoing or enqueued migration.",
57955874
"required": [
57965875
"targetSkuName"
57975876
]

0 commit comments

Comments
 (0)