Skip to content

Commit 125b342

Browse files
HimanshuChhabraanandanthony
authored andcommitted
Storage RP 2022-09-01 Swagger Api version (Azure#21500)
* Full copy from 2022-05-01 to 2022-09-01 without any changes * Update Swagger API version for each swagger and readme files * Update the API version for existing Test cases * Feature: Storage Account Soft Failover * Feature: List Encryption scopes, add OData Filter Conditions * Feature : Add TierToCold and TierToHot Support * Run Prettier check * Adding Location header to EXISTING Async API Examples. * Run Prettier check * Change $maxpagesize to integer type for ListEncryptionScope API
1 parent be6862b commit 125b342

File tree

160 files changed

+25948
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+25948
-1
lines changed

specification/storage/resource-manager/Microsoft.Storage/stable/2022-09-01/blob.json

Lines changed: 1580 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "Storage",
5+
"description": "Storage Resource Provider API Common Types",
6+
"version": "2022-09-01"
7+
},
8+
"paths": {},
9+
"definitions": {
10+
"CorsRules": {
11+
"properties": {
12+
"corsRules": {
13+
"type": "array",
14+
"items": {
15+
"description": "Specifies a CORS rule for the Blob service. ",
16+
"$ref": "#/definitions/CorsRule"
17+
},
18+
"description": "The List of CORS rules. You can include up to five CorsRule elements in the request. "
19+
}
20+
},
21+
"description": "Sets the CORS rules. You can include up to five CorsRule elements in the request. "
22+
},
23+
"CorsRule": {
24+
"properties": {
25+
"allowedOrigins": {
26+
"type": "array",
27+
"items": {
28+
"type": "string"
29+
},
30+
"description": "Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or \"*\" to allow all domains"
31+
},
32+
"allowedMethods": {
33+
"type": "array",
34+
"items": {
35+
"type": "string",
36+
"enum": [
37+
"DELETE",
38+
"GET",
39+
"HEAD",
40+
"MERGE",
41+
"POST",
42+
"OPTIONS",
43+
"PUT",
44+
"PATCH"
45+
],
46+
"x-ms-enum": {
47+
"name": "AllowedMethods",
48+
"modelAsString": true
49+
}
50+
},
51+
"description": "Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin."
52+
},
53+
"maxAgeInSeconds": {
54+
"type": "integer",
55+
"description": "Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response."
56+
},
57+
"exposedHeaders": {
58+
"type": "array",
59+
"items": {
60+
"type": "string"
61+
},
62+
"description": "Required if CorsRule element is present. A list of response headers to expose to CORS clients."
63+
},
64+
"allowedHeaders": {
65+
"type": "array",
66+
"items": {
67+
"type": "string"
68+
},
69+
"description": "Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request."
70+
}
71+
},
72+
"required": [
73+
"allowedOrigins",
74+
"allowedMethods",
75+
"maxAgeInSeconds",
76+
"exposedHeaders",
77+
"allowedHeaders"
78+
],
79+
"description": "Specifies a CORS rule for the Blob service."
80+
},
81+
"DeleteRetentionPolicy": {
82+
"properties": {
83+
"enabled": {
84+
"type": "boolean",
85+
"description": "Indicates whether DeleteRetentionPolicy is enabled."
86+
},
87+
"days": {
88+
"type": "integer",
89+
"minimum": 1,
90+
"maximum": 365,
91+
"description": "Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365."
92+
},
93+
"allowPermanentDelete": {
94+
"type": "boolean",
95+
"description": "This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share."
96+
}
97+
},
98+
"description": "The service properties for soft delete."
99+
},
100+
"Sku": {
101+
"properties": {
102+
"name": {
103+
"$ref": "#/definitions/SkuName"
104+
},
105+
"tier": {
106+
"$ref": "#/definitions/Tier"
107+
}
108+
},
109+
"required": [
110+
"name"
111+
],
112+
"description": "The SKU of the storage account."
113+
},
114+
"SkuName": {
115+
"type": "string",
116+
"description": "The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType.",
117+
"enum": [
118+
"Standard_LRS",
119+
"Standard_GRS",
120+
"Standard_RAGRS",
121+
"Standard_ZRS",
122+
"Premium_LRS",
123+
"Premium_ZRS",
124+
"Standard_GZRS",
125+
"Standard_RAGZRS"
126+
],
127+
"x-ms-enum": {
128+
"name": "SkuName",
129+
"modelAsString": true
130+
}
131+
},
132+
"Tier": {
133+
"readOnly": true,
134+
"type": "string",
135+
"description": "The SKU tier. This is based on the SKU name.",
136+
"enum": [
137+
"Standard",
138+
"Premium"
139+
],
140+
"x-ms-enum": {
141+
"name": "SkuTier",
142+
"modelAsString": false
143+
}
144+
},
145+
"CloudError": {
146+
"x-ms-external": true,
147+
"properties": {
148+
"error": {
149+
"$ref": "#/definitions/CloudErrorBody"
150+
}
151+
},
152+
"description": "An error response from the Storage service."
153+
},
154+
"CloudErrorBody": {
155+
"x-ms-external": true,
156+
"properties": {
157+
"code": {
158+
"type": "string",
159+
"description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically."
160+
},
161+
"message": {
162+
"type": "string",
163+
"description": "A message describing the error, intended to be suitable for display in a user interface."
164+
},
165+
"target": {
166+
"type": "string",
167+
"description": "The target of the particular error. For example, the name of the property in error."
168+
},
169+
"details": {
170+
"type": "array",
171+
"items": {
172+
"$ref": "#/definitions/CloudErrorBody"
173+
},
174+
"description": "A list of additional details about the error."
175+
}
176+
},
177+
"description": "An error response from the Storage service."
178+
},
179+
"SignedIdentifier": {
180+
"properties": {
181+
"id": {
182+
"type": "string",
183+
"description": "An unique identifier of the stored access policy."
184+
},
185+
"accessPolicy": {
186+
"$ref": "#/definitions/AccessPolicy",
187+
"description": "Access policy"
188+
}
189+
}
190+
},
191+
"AccessPolicy": {
192+
"properties": {
193+
"startTime": {
194+
"type": "string",
195+
"format": "date-time",
196+
"description": "Start time of the access policy"
197+
},
198+
"expiryTime": {
199+
"type": "string",
200+
"format": "date-time",
201+
"description": "Expiry time of the access policy"
202+
},
203+
"permission": {
204+
"type": "string",
205+
"description": "List of abbreviated permissions."
206+
}
207+
}
208+
}
209+
}
210+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "res4303",
5+
"accountName": "sto7280",
6+
"containerName": "container8723",
7+
"api-version": "2022-09-01",
8+
"monitor": "true",
9+
"LegalHold": {
10+
"tags": [
11+
"tag1",
12+
"tag2",
13+
"tag3"
14+
]
15+
}
16+
},
17+
"responses": {
18+
"200": {
19+
"body": {
20+
"hasLegalHold": false,
21+
"tags": []
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "res4079",
5+
"accountName": "sto4506",
6+
"containerName": "container9689",
7+
"api-version": "2022-09-01",
8+
"monitor": "true"
9+
},
10+
"responses": {
11+
"200": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "res1581",
5+
"accountName": "sto9621",
6+
"containerName": "container4910",
7+
"immutabilityPolicyName": "default",
8+
"If-Match": "\"8d59f81a7fa7be0\"",
9+
"api-version": "2022-09-01",
10+
"monitor": "true"
11+
},
12+
"responses": {
13+
"200": {
14+
"body": {
15+
"id": "/subscriptions/{subscription-id}/resourceGroups/res1581/providers/Microsoft.Storage/storageAccounts/sto9621/blobServices/default/containers/container4910/immutabilityPolicies/default",
16+
"name": "default",
17+
"type": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies",
18+
"etag": "\"8d59f81a87b40c0\"",
19+
"properties": {
20+
"immutabilityPeriodSinceCreationInDays": 0,
21+
"state": "Unlocked"
22+
}
23+
}
24+
}
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "res6238",
5+
"accountName": "sto232",
6+
"containerName": "container5023",
7+
"If-Match": "\"8d59f830d0c3bf9\"",
8+
"api-version": "2022-09-01",
9+
"monitor": "true",
10+
"parameters": {
11+
"properties": {
12+
"immutabilityPeriodSinceCreationInDays": 100
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"body": {
19+
"id": "/subscriptions/{subscription-id}/resourceGroups/res6238/providers/Microsoft.Storage/storageAccounts/sto232/blobServices/default/containers/container5023/immutabilityPolicies/default",
20+
"name": "default",
21+
"type": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies",
22+
"etag": "\"8d57a8b2ff50332\"",
23+
"properties": {
24+
"immutabilityPeriodSinceCreationInDays": 100,
25+
"state": "Locked"
26+
}
27+
}
28+
}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "res9871",
5+
"accountName": "sto6217",
6+
"containerName": "container1634",
7+
"api-version": "2022-09-01",
8+
"monitor": "true"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"id": "/subscriptions/{subscription-id}/resourceGroups/res9871/providers/Microsoft.Storage/storageAccounts/sto6217/blobServices/default/containers/container1634",
14+
"name": "container1634",
15+
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
16+
"etag": "\"0x8D592D74CC20EBA\"",
17+
"properties": {
18+
"publicAccess": "None",
19+
"leaseStatus": "Unlocked",
20+
"leaseState": "Available",
21+
"lastModifiedTime": "2018-03-26T05:06:14Z",
22+
"immutabilityPolicy": {
23+
"etag": "\"8d592d74cb3011a\"",
24+
"properties": {
25+
"immutabilityPeriodSinceCreationInDays": 100,
26+
"state": "Locked"
27+
},
28+
"updateHistory": [
29+
{
30+
"update": "put",
31+
"immutabilityPeriodSinceCreationInDays": 3,
32+
"timestamp": "2018-03-26T05:06:11.431403Z",
33+
"objectIdentifier": "ce7cd28a-fc25-4bf1-8fb9-e1b9833ffd4b",
34+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
35+
},
36+
{
37+
"update": "lock",
38+
"immutabilityPeriodSinceCreationInDays": 3,
39+
"timestamp": "2018-03-26T05:06:13.0907641Z",
40+
"objectIdentifier": "ce7cd28a-fc25-4bf1-8fb9-e1b9833ffd4b",
41+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
42+
},
43+
{
44+
"update": "extend",
45+
"immutabilityPeriodSinceCreationInDays": 100,
46+
"timestamp": "2018-03-26T05:06:14.7097716Z",
47+
"objectIdentifier": "ce7cd28a-fc25-4bf1-8fb9-e1b9833ffd4b",
48+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
49+
}
50+
]
51+
},
52+
"legalHold": {
53+
"hasLegalHold": true,
54+
"tags": [
55+
{
56+
"tag": "tag1",
57+
"timestamp": "2018-03-26T05:06:09.6964643Z",
58+
"objectIdentifier": "ce7cd28a-fc25-4bf1-8fb9-e1b9833ffd4b",
59+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
60+
},
61+
{
62+
"tag": "tag2",
63+
"timestamp": "2018-03-26T05:06:09.6964643Z",
64+
"objectIdentifier": "ce7cd28a-fc25-4bf1-8fb9-e1b9833ffd4b",
65+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
66+
},
67+
{
68+
"tag": "tag3",
69+
"timestamp": "2018-03-26T05:06:09.6964643Z",
70+
"objectIdentifier": "ce7cd28a-fc25-4bf1-8fb9-e1b9833ffd4b",
71+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
72+
}
73+
]
74+
},
75+
"hasImmutabilityPolicy": true,
76+
"hasLegalHold": true
77+
}
78+
}
79+
}
80+
}
81+
}

0 commit comments

Comments
 (0)