Skip to content

Commit ae5bafd

Browse files
usharma6Udit Sharma
authored andcommitted
SRP Swagger Updates for Jan23 [2023-01-01] Api Version GA (Azure#23918)
* Full copy from 2022-09-01 to 2023-01-01 without any changes * update examples api version, update swagger api version for each swagger, update readme files * Feature: AutoUptier for LCM with example * prettier check * Update new deafults for allowBlobPublicAccess and allowCrossTenantReplication * Feature: ObjectReplicationRestorePoint APIs with examples, validation and prettier check * Feature: Customer Initiated Migration with validation and prettier check * Feature: Planned Failover with validation and prettier check * Feature: BlobInventoryPolicyFilter creation time with validation and prettier check * Revert "Feature: ObjectReplicationRestorePoint APIs with examples, validation and prettier check" This reverts commit 6942ddf. * Address comments for autoUptier * address Migration comments * Update allowedMethods for CORS * Revert "Address comments for autoUptier" This reverts commit 5ac6d02. * Revert "Feature: AutoUptier for LCM with example" This reverts commit a1469d0. * remove autoUptier example * targetSkuName description and migration name parameter * Remove Get customer initiated migration * Fix targetSkuName required property, fix typo * Address lint diff new errors * Add get migration back, fix uri for post migration * remove query parameter from post migration * Resolve Lint Diff errors * Spell Chek errors * Fix Post Migration example to return header --------- Co-authored-by: Udit Sharma <[email protected]>
1 parent 8053679 commit ae5bafd

File tree

165 files changed

+26494
-2
lines changed

Some content is hidden

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

165 files changed

+26494
-2
lines changed

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

Lines changed: 1580 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "Storage",
5+
"description": "Storage Resource Provider API Common Types",
6+
"version": "2023-01-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+
"CONNECT",
46+
"TRACE"
47+
],
48+
"x-ms-enum": {
49+
"name": "AllowedMethods",
50+
"modelAsString": true
51+
}
52+
},
53+
"description": "Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin."
54+
},
55+
"maxAgeInSeconds": {
56+
"type": "integer",
57+
"description": "Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response."
58+
},
59+
"exposedHeaders": {
60+
"type": "array",
61+
"items": {
62+
"type": "string"
63+
},
64+
"description": "Required if CorsRule element is present. A list of response headers to expose to CORS clients."
65+
},
66+
"allowedHeaders": {
67+
"type": "array",
68+
"items": {
69+
"type": "string"
70+
},
71+
"description": "Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request."
72+
}
73+
},
74+
"required": [
75+
"allowedOrigins",
76+
"allowedMethods",
77+
"maxAgeInSeconds",
78+
"exposedHeaders",
79+
"allowedHeaders"
80+
],
81+
"description": "Specifies a CORS rule for the Blob service."
82+
},
83+
"DeleteRetentionPolicy": {
84+
"properties": {
85+
"enabled": {
86+
"type": "boolean",
87+
"description": "Indicates whether DeleteRetentionPolicy is enabled."
88+
},
89+
"days": {
90+
"type": "integer",
91+
"minimum": 1,
92+
"maximum": 365,
93+
"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."
94+
},
95+
"allowPermanentDelete": {
96+
"type": "boolean",
97+
"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."
98+
}
99+
},
100+
"description": "The service properties for soft delete."
101+
},
102+
"Sku": {
103+
"properties": {
104+
"name": {
105+
"$ref": "#/definitions/SkuName"
106+
},
107+
"tier": {
108+
"$ref": "#/definitions/Tier"
109+
}
110+
},
111+
"required": [
112+
"name"
113+
],
114+
"description": "The SKU of the storage account."
115+
},
116+
"SkuName": {
117+
"type": "string",
118+
"description": "The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType.",
119+
"enum": [
120+
"Standard_LRS",
121+
"Standard_GRS",
122+
"Standard_RAGRS",
123+
"Standard_ZRS",
124+
"Premium_LRS",
125+
"Premium_ZRS",
126+
"Standard_GZRS",
127+
"Standard_RAGZRS"
128+
],
129+
"x-ms-enum": {
130+
"name": "SkuName",
131+
"modelAsString": true
132+
}
133+
},
134+
"Tier": {
135+
"readOnly": true,
136+
"type": "string",
137+
"description": "The SKU tier. This is based on the SKU name.",
138+
"enum": [
139+
"Standard",
140+
"Premium"
141+
],
142+
"x-ms-enum": {
143+
"name": "SkuTier",
144+
"modelAsString": false
145+
}
146+
},
147+
"CloudError": {
148+
"x-ms-external": true,
149+
"properties": {
150+
"error": {
151+
"$ref": "#/definitions/CloudErrorBody"
152+
}
153+
},
154+
"description": "An error response from the Storage service."
155+
},
156+
"CloudErrorBody": {
157+
"x-ms-external": true,
158+
"properties": {
159+
"code": {
160+
"type": "string",
161+
"description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically."
162+
},
163+
"message": {
164+
"type": "string",
165+
"description": "A message describing the error, intended to be suitable for display in a user interface."
166+
},
167+
"target": {
168+
"type": "string",
169+
"description": "The target of the particular error. For example, the name of the property in error."
170+
},
171+
"details": {
172+
"type": "array",
173+
"items": {
174+
"$ref": "#/definitions/CloudErrorBody"
175+
},
176+
"description": "A list of additional details about the error."
177+
}
178+
},
179+
"description": "An error response from the Storage service."
180+
},
181+
"SignedIdentifier": {
182+
"properties": {
183+
"id": {
184+
"type": "string",
185+
"description": "An unique identifier of the stored access policy."
186+
},
187+
"accessPolicy": {
188+
"$ref": "#/definitions/AccessPolicy",
189+
"description": "Access policy"
190+
}
191+
}
192+
},
193+
"AccessPolicy": {
194+
"properties": {
195+
"startTime": {
196+
"type": "string",
197+
"format": "date-time",
198+
"description": "Start time of the access policy"
199+
},
200+
"expiryTime": {
201+
"type": "string",
202+
"format": "date-time",
203+
"description": "Expiry time of the access policy"
204+
},
205+
"permission": {
206+
"type": "string",
207+
"description": "List of abbreviated permissions."
208+
}
209+
}
210+
}
211+
}
212+
}
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": "2023-01-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": "2023-01-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": "2023-01-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": "2023-01-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": "2023-01-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)