Skip to content

Commit

Permalink
[SRP]Adding allowBlobPublicAccess and minimumTlsVersion property for …
Browse files Browse the repository at this point in the history
…June19 and April19 (#9831)

* Add allowBlobPublicAccess and minimumTlsVersion properties

* Adding allowBlobPublicAccess and minimumTlsVersion properties to april19 swagger version.

* validation fix, added example

* filename correction

* Ran prettier check, Moved the example to StorageAccountCreate

* Updating comments

* Updating description

* Added update account example
  • Loading branch information
HimanshuChhabra authored Jun 22, 2020
1 parent ae8d69c commit 8078444
Show file tree
Hide file tree
Showing 6 changed files with 125 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"kind": "Storage",
"location": "eastus2euap",
"properties": {
"isHnsEnabled": true
"isHnsEnabled": true,
"allowBlobPublicAccess": false,
"minimumTlsVersion": "TLS1_2"
},
"tags": {
"key1": "value1",
Expand All @@ -28,6 +30,8 @@
"name": "sto4445",
"properties": {
"isHnsEnabled": true,
"allowBlobPublicAccess": false,
"minimumTlsVersion": "TLS1_2",
"creationTime": "2017-05-24T13:25:33.4863236Z",
"primaryEndpoints": {
"web": "https://sto4445.web.core.windows.net/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"monitor": "true",
"parameters": {
"properties": {
"allowBlobPublicAccess": false,
"minimumTlsVersion": "TLS1_2",
"networkAcls": {
"defaultAction": "Allow"
},
Expand All @@ -33,6 +35,8 @@
"name": "sto8596",
"properties": {
"isHnsEnabled": true,
"allowBlobPublicAccess": false,
"minimumTlsVersion": "TLS1_2",
"creationTime": "2017-06-01T02:42:41.7633306Z",
"networkAcls": {
"bypass": "AzureServices",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,24 @@
"modelAsString": true
},
"description": "Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled."
},
"allowBlobPublicAccess": {
"type": "boolean",
"x-ms-client-name": "AllowBlobPublicAccess",
"description": "Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property."
},
"minimumTlsVersion": {
"type": "string",
"enum": [
"TLS1_0",
"TLS1_1",
"TLS1_2"
],
"x-ms-enum": {
"name": "MinimumTlsVersion",
"modelAsString": true
},
"description": "Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property."
}
},
"description": "The parameters used to create the storage account."
Expand Down Expand Up @@ -1738,6 +1756,24 @@
"modelAsString": true
},
"description": "Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled."
},
"allowBlobPublicAccess": {
"type": "boolean",
"x-ms-client-name": "AllowBlobPublicAccess",
"description": "Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property."
},
"minimumTlsVersion": {
"type": "string",
"enum": [
"TLS1_0",
"TLS1_1",
"TLS1_2"
],
"x-ms-enum": {
"name": "MinimumTlsVersion",
"modelAsString": true
},
"description": "Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property."
}
},
"description": "Properties of the storage account."
Expand Down Expand Up @@ -1900,6 +1936,24 @@
"modelAsString": true
},
"description": "Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled."
},
"allowBlobPublicAccess": {
"type": "boolean",
"x-ms-client-name": "AllowBlobPublicAccess",
"description": "Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property."
},
"minimumTlsVersion": {
"type": "string",
"enum": [
"TLS1_0",
"TLS1_1",
"TLS1_2"
],
"x-ms-enum": {
"name": "MinimumTlsVersion",
"modelAsString": true
},
"description": "Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property."
}
},
"description": "The parameters used when updating a storage account."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"location": "eastus",
"properties": {
"isHnsEnabled": true,
"allowBlobPublicAccess": false,
"minimumTlsVersion": "TLS1_2",
"routingPreference": {
"routingChoice": "MicrosoftRouting",
"publishMicrosoftEndpoints": true,
Expand Down Expand Up @@ -47,6 +49,8 @@
"name": "sto4445",
"properties": {
"isHnsEnabled": true,
"allowBlobPublicAccess": false,
"minimumTlsVersion": "TLS1_2",
"creationTime": "2017-05-24T13:25:33.4863236Z",
"primaryEndpoints": {
"web": "https://sto4445.web.core.windows.net/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"monitor": "true",
"parameters": {
"properties": {
"allowBlobPublicAccess": false,
"minimumTlsVersion": "TLS1_2",
"networkAcls": {
"defaultAction": "Allow"
},
Expand Down Expand Up @@ -40,6 +42,8 @@
"name": "sto8596",
"properties": {
"isHnsEnabled": true,
"allowBlobPublicAccess": false,
"minimumTlsVersion": "TLS1_2",
"creationTime": "2017-06-01T02:42:41.7633306Z",
"networkAcls": {
"bypass": "AzureServices",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2131,6 +2131,24 @@
"$ref": "#/definitions/RoutingPreference",
"x-ms-client-name": "RoutingPreference",
"description": "Maintains information about the network routing choice opted by the user for data transfer"
},
"allowBlobPublicAccess": {
"type": "boolean",
"x-ms-client-name": "AllowBlobPublicAccess",
"description": "Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property."
},
"minimumTlsVersion": {
"type": "string",
"enum": [
"TLS1_0",
"TLS1_1",
"TLS1_2"
],
"x-ms-enum": {
"name": "MinimumTlsVersion",
"modelAsString": true
},
"description": "Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property."
}
},
"description": "The parameters used to create the storage account."
Expand Down Expand Up @@ -2566,6 +2584,24 @@
"x-ms-client-name": "BlobRestoreStatus",
"description": "Blob restore status",
"readOnly": true
},
"allowBlobPublicAccess": {
"type": "boolean",
"x-ms-client-name": "AllowBlobPublicAccess",
"description": "Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property."
},
"minimumTlsVersion": {
"type": "string",
"enum": [
"TLS1_0",
"TLS1_1",
"TLS1_2"
],
"x-ms-enum": {
"name": "MinimumTlsVersion",
"modelAsString": true
},
"description": "Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property."
}
},
"description": "Properties of the storage account."
Expand Down Expand Up @@ -2733,6 +2769,24 @@
"$ref": "#/definitions/RoutingPreference",
"x-ms-client-name": "RoutingPreference",
"description": "Maintains information about the network routing choice opted by the user for data transfer"
},
"allowBlobPublicAccess": {
"type": "boolean",
"x-ms-client-name": "AllowBlobPublicAccess",
"description": "Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property."
},
"minimumTlsVersion": {
"type": "string",
"enum": [
"TLS1_0",
"TLS1_1",
"TLS1_2"
],
"x-ms-enum": {
"name": "MinimumTlsVersion",
"modelAsString": true
},
"description": "Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property."
}
},
"description": "The parameters used when updating a storage account."
Expand Down

0 comments on commit 8078444

Please sign in to comment.