Skip to content

Commit b626430

Browse files
zfchen95msyycArcturusZhang
authored andcommitted
[SRP] Add "2021-08-01" API version (Azure#16659)
* Copy the spec from 2021-06-01 to 2021-08-01 * Apply the API and property changes in 2021-08-01 * Fix format * Update readme and add tag 2021-08 * Add isLocalUserEnabled and isSftpEnabled properties; add examples for ActiveDirectoryProperties * Fix missing bracket and format issue; add required properties for permissionScopes * Create readme.python.md * Remove unreferenced file * Add explicit type:object * Add default responses and system data field * Fix example of Create Local User * Update descriptions * Remove secret tag * Revert "Remove secret tag" This reverts commit 45b1c7b. * Update LocalUserCreate.json * Update the local user properties definition * fix readme * apply Azure#17027 to this PR Co-authored-by: Yuchao Yan <[email protected]> Co-authored-by: Arcturus Zhang <[email protected]>
1 parent f5b8976 commit b626430

File tree

142 files changed

+24102
-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.

142 files changed

+24102
-1
lines changed

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

Lines changed: 1607 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "Storage",
5+
"description": "Storage Resource Provider API Common Types",
6+
"version": "2021-08-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+
]
45+
},
46+
"description": "Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin."
47+
},
48+
"maxAgeInSeconds": {
49+
"type": "integer",
50+
"description": "Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response."
51+
},
52+
"exposedHeaders": {
53+
"type": "array",
54+
"items": {
55+
"type": "string"
56+
},
57+
"description": "Required if CorsRule element is present. A list of response headers to expose to CORS clients."
58+
},
59+
"allowedHeaders": {
60+
"type": "array",
61+
"items": {
62+
"type": "string"
63+
},
64+
"description": "Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request."
65+
}
66+
},
67+
"required": [
68+
"allowedOrigins",
69+
"allowedMethods",
70+
"maxAgeInSeconds",
71+
"exposedHeaders",
72+
"allowedHeaders"
73+
],
74+
"description": "Specifies a CORS rule for the Blob service."
75+
},
76+
"DeleteRetentionPolicy": {
77+
"properties": {
78+
"enabled": {
79+
"type": "boolean",
80+
"description": "Indicates whether DeleteRetentionPolicy is enabled."
81+
},
82+
"days": {
83+
"type": "integer",
84+
"minimum": 1,
85+
"maximum": 365,
86+
"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."
87+
}
88+
},
89+
"description": "The service properties for soft delete."
90+
},
91+
"Sku": {
92+
"properties": {
93+
"name": {
94+
"$ref": "#/definitions/SkuName"
95+
},
96+
"tier": {
97+
"$ref": "#/definitions/Tier"
98+
}
99+
},
100+
"required": [
101+
"name"
102+
],
103+
"description": "The SKU of the storage account."
104+
},
105+
"SkuName": {
106+
"type": "string",
107+
"description": "The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType.",
108+
"enum": [
109+
"Standard_LRS",
110+
"Standard_GRS",
111+
"Standard_RAGRS",
112+
"Standard_ZRS",
113+
"Premium_LRS",
114+
"Premium_ZRS",
115+
"Standard_GZRS",
116+
"Standard_RAGZRS"
117+
],
118+
"x-ms-enum": {
119+
"name": "SkuName",
120+
"modelAsString": true
121+
}
122+
},
123+
"Tier": {
124+
"readOnly": true,
125+
"type": "string",
126+
"description": "The SKU tier. This is based on the SKU name.",
127+
"enum": [
128+
"Standard",
129+
"Premium"
130+
],
131+
"x-ms-enum": {
132+
"name": "SkuTier",
133+
"modelAsString": false
134+
}
135+
}
136+
}
137+
}
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": "2020-08-01-preview",
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": "2020-08-01-preview",
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": "2020-08-01-preview",
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": "2020-08-01-preview",
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": "2020-08-01-preview",
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "res5221",
5+
"accountName": "sto9177",
6+
"containerName": "container3489",
7+
"immutabilityPolicyName": "default",
8+
"api-version": "2020-08-01-preview",
9+
"monitor": "true"
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"id": "/subscriptions/{subscription-id}/resourceGroups/res5221/providers/Microsoft.Storage/storageAccounts/sto9177/blobServices/default/containers/container3489/immutabilityPolicies/default",
15+
"name": "default",
16+
"type": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies",
17+
"etag": "\"8d59f828e64b75c\"",
18+
"properties": {
19+
"immutabilityPeriodSinceCreationInDays": 5,
20+
"allowProtectedAppendWrites": true,
21+
"state": "Unlocked"
22+
}
23+
}
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)