Skip to content

Commit

Permalink
[Microsoft.Storage] Add Jan21 api-version. (#12807)
Browse files Browse the repository at this point in the history
* [Microsoft.Storage] Copy Aug20 preview version into new api-version Jan21.

* [Microsoft.Storage] Add Jan21 api-version new API changes.

* Fix api-version in swagger spec.

* Remove encryption.identity.type as it is read-only.

* Addressing PR comments.

* fix prettier check

* Add suppression for R4009. Fix remaining linter blockers.

* Re-attempt suppression on R4009.

* Suppress 4009.

* Addressing comments and fixing lintdiff syntax issue on suppression.

Co-authored-by: Zunli Hu <zuh@microsoft.com>
  • Loading branch information
tonykjose and Juliehzl authored Feb 18, 2021
1 parent 718275a commit 4a02e7a
Show file tree
Hide file tree
Showing 114 changed files with 20,819 additions and 1 deletion.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"swagger": "2.0",
"info": {
"title": "Storage",
"description": "Storage Resource Provider API Common Types",
"version": "2021-01-01"
},
"paths": {},
"definitions": {
"CorsRules": {
"properties": {
"corsRules": {
"type": "array",
"items": {
"description": "Specifies a CORS rule for the Blob service. ",
"$ref": "#/definitions/CorsRule"
},
"description": "The List of CORS rules. You can include up to five CorsRule elements in the request. "
}
},
"description": "Sets the CORS rules. You can include up to five CorsRule elements in the request. "
},
"CorsRule": {
"properties": {
"allowedOrigins": {
"type": "array",
"items": {
"type": "string"
},
"description": "Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or \"*\" to allow all domains"
},
"allowedMethods": {
"type": "array",
"items": {
"type": "string",
"enum": [
"DELETE",
"GET",
"HEAD",
"MERGE",
"POST",
"OPTIONS",
"PUT"
]
},
"description": "Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin."
},
"maxAgeInSeconds": {
"type": "integer",
"description": "Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response."
},
"exposedHeaders": {
"type": "array",
"items": {
"type": "string"
},
"description": "Required if CorsRule element is present. A list of response headers to expose to CORS clients."
},
"allowedHeaders": {
"type": "array",
"items": {
"type": "string"
},
"description": "Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request."
}
},
"required": [
"allowedOrigins",
"allowedMethods",
"maxAgeInSeconds",
"exposedHeaders",
"allowedHeaders"
],
"description": "Specifies a CORS rule for the Blob service."
},
"DeleteRetentionPolicy": {
"properties": {
"enabled": {
"type": "boolean",
"description": "Indicates whether DeleteRetentionPolicy is enabled."
},
"days": {
"type": "integer",
"minimum": 1,
"maximum": 365,
"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."
}
},
"description": "The service properties for soft delete."
},
"Sku": {
"properties": {
"name": {
"$ref": "#/definitions/SkuName"
},
"tier": {
"$ref": "#/definitions/Tier"
}
},
"required": [
"name"
],
"description": "The SKU of the storage account."
},
"SkuName": {
"type": "string",
"description": "The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType.",
"enum": [
"Standard_LRS",
"Standard_GRS",
"Standard_RAGRS",
"Standard_ZRS",
"Premium_LRS",
"Premium_ZRS",
"Standard_GZRS",
"Standard_RAGZRS"
],
"x-ms-enum": {
"name": "SkuName",
"modelAsString": true
}
},
"Tier": {
"readOnly": true,
"type": "string",
"description": "The SKU tier. This is based on the SKU name.",
"enum": [
"Standard",
"Premium"
],
"x-ms-enum": {
"name": "SkuTier",
"modelAsString": false
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res4303",
"accountName": "sto7280",
"containerName": "container8723",
"api-version": "2020-08-01-preview",
"monitor": "true",
"LegalHold": {
"tags": [
"tag1",
"tag2",
"tag3"
]
}
},
"responses": {
"200": {
"body": {
"hasLegalHold": false,
"tags": []
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res4079",
"accountName": "sto4506",
"containerName": "container9689",
"api-version": "2020-08-01-preview",
"monitor": "true"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res1581",
"accountName": "sto9621",
"containerName": "container4910",
"immutabilityPolicyName": "default",
"If-Match": "\"8d59f81a7fa7be0\"",
"api-version": "2020-08-01-preview",
"monitor": "true"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/res1581/providers/Microsoft.Storage/storageAccounts/sto9621/blobServices/default/containers/container4910/immutabilityPolicies/default",
"name": "default",
"type": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies",
"etag": "\"8d59f81a87b40c0\"",
"properties": {
"immutabilityPeriodSinceCreationInDays": 0,
"state": "Unlocked"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res6238",
"accountName": "sto232",
"containerName": "container5023",
"If-Match": "\"8d59f830d0c3bf9\"",
"api-version": "2020-08-01-preview",
"monitor": "true",
"parameters": {
"properties": {
"immutabilityPeriodSinceCreationInDays": 100
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/res6238/providers/Microsoft.Storage/storageAccounts/sto232/blobServices/default/containers/container5023/immutabilityPolicies/default",
"name": "default",
"type": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies",
"etag": "\"8d57a8b2ff50332\"",
"properties": {
"immutabilityPeriodSinceCreationInDays": 100,
"state": "Locked"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res9871",
"accountName": "sto6217",
"containerName": "container1634",
"api-version": "2020-08-01-preview",
"monitor": "true"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/res9871/providers/Microsoft.Storage/storageAccounts/sto6217/blobServices/default/containers/container1634",
"name": "container1634",
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"etag": "\"0x8D592D74CC20EBA\"",
"properties": {
"publicAccess": "None",
"leaseStatus": "Unlocked",
"leaseState": "Available",
"lastModifiedTime": "2018-03-26T05:06:14Z",
"immutabilityPolicy": {
"etag": "\"8d592d74cb3011a\"",
"properties": {
"immutabilityPeriodSinceCreationInDays": 100,
"state": "Locked"
},
"updateHistory": [
{
"update": "put",
"immutabilityPeriodSinceCreationInDays": 3,
"timestamp": "2018-03-26T05:06:11.431403Z",
"objectIdentifier": "ce7cd28a-fc25-4bf1-8fb9-e1b9833ffd4b",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
},
{
"update": "lock",
"immutabilityPeriodSinceCreationInDays": 3,
"timestamp": "2018-03-26T05:06:13.0907641Z",
"objectIdentifier": "ce7cd28a-fc25-4bf1-8fb9-e1b9833ffd4b",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
},
{
"update": "extend",
"immutabilityPeriodSinceCreationInDays": 100,
"timestamp": "2018-03-26T05:06:14.7097716Z",
"objectIdentifier": "ce7cd28a-fc25-4bf1-8fb9-e1b9833ffd4b",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
}
]
},
"legalHold": {
"hasLegalHold": true,
"tags": [
{
"tag": "tag1",
"timestamp": "2018-03-26T05:06:09.6964643Z",
"objectIdentifier": "ce7cd28a-fc25-4bf1-8fb9-e1b9833ffd4b",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
},
{
"tag": "tag2",
"timestamp": "2018-03-26T05:06:09.6964643Z",
"objectIdentifier": "ce7cd28a-fc25-4bf1-8fb9-e1b9833ffd4b",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
},
{
"tag": "tag3",
"timestamp": "2018-03-26T05:06:09.6964643Z",
"objectIdentifier": "ce7cd28a-fc25-4bf1-8fb9-e1b9833ffd4b",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
}
]
},
"hasImmutabilityPolicy": true,
"hasLegalHold": true
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res5221",
"accountName": "sto9177",
"containerName": "container3489",
"immutabilityPolicyName": "default",
"api-version": "2020-08-01-preview",
"monitor": "true"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/res5221/providers/Microsoft.Storage/storageAccounts/sto9177/blobServices/default/containers/container3489/immutabilityPolicies/default",
"name": "default",
"type": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies",
"etag": "\"8d59f828e64b75c\"",
"properties": {
"immutabilityPeriodSinceCreationInDays": 5,
"allowProtectedAppendWrites": true,
"state": "Unlocked"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res3376",
"accountName": "sto328",
"containerName": "container6185",
"api-version": "2020-08-01-preview",
"monitor": "true",
"parameters": {
"action": "Acquire",
"leaseId": null,
"breakPeriod": null,
"leaseDuration": -1,
"proposedLeaseId": null
}
},
"responses": {
"200": {
"body": {
"leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "res3376",
"accountName": "sto328",
"containerName": "container6185",
"api-version": "2020-08-01-preview",
"monitor": "true",
"parameters": {
"action": "Break",
"leaseId": "8698f513-fa75-44a1-b8eb-30ba336af27d",
"breakPeriod": null,
"leaseDuration": null,
"proposedLeaseId": null
}
},
"responses": {
"200": {
"body": {
"leaseTimeSeconds": "0"
}
}
}
}
Loading

0 comments on commit 4a02e7a

Please sign in to comment.