diff --git a/sdk/storage/arm-storage/src/models/index.ts b/sdk/storage/arm-storage/src/models/index.ts index 5e4d5692a62c..93db8792d31e 100644 --- a/sdk/storage/arm-storage/src/models/index.ts +++ b/sdk/storage/arm-storage/src/models/index.ts @@ -581,6 +581,16 @@ export interface StorageAccountCreateParameters { * Maintains information about the network routing choice opted by the user for data transfer */ routingPreference?: RoutingPreference; + /** + * Allow or disallow public access to all blobs or containers in the storage account. The default + * interpretation is true for this property. + */ + allowBlobPublicAccess?: boolean; + /** + * Set the minimum TLS version to be permitted on requests to storage. The default interpretation + * is TLS 1.0 for this property. Possible values include: 'TLS1_0', 'TLS1_1', 'TLS1_2' + */ + minimumTlsVersion?: MinimumTlsVersion; } /** @@ -1001,6 +1011,16 @@ export interface StorageAccount extends TrackedResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly blobRestoreStatus?: BlobRestoreStatus; + /** + * Allow or disallow public access to all blobs or containers in the storage account. The default + * interpretation is true for this property. + */ + allowBlobPublicAccess?: boolean; + /** + * Set the minimum TLS version to be permitted on requests to storage. The default interpretation + * is TLS 1.0 for this property. Possible values include: 'TLS1_0', 'TLS1_1', 'TLS1_2' + */ + minimumTlsVersion?: MinimumTlsVersion; } /** @@ -1103,6 +1123,16 @@ export interface StorageAccountUpdateParameters { * Maintains information about the network routing choice opted by the user for data transfer */ routingPreference?: RoutingPreference; + /** + * Allow or disallow public access to all blobs or containers in the storage account. The default + * interpretation is true for this property. + */ + allowBlobPublicAccess?: boolean; + /** + * Set the minimum TLS version to be permitted on requests to storage. The default interpretation + * is TLS 1.0 for this property. Possible values include: 'TLS1_0', 'TLS1_1', 'TLS1_2' + */ + minimumTlsVersion?: MinimumTlsVersion; /** * Optional. Indicates the type of storage account. Currently only StorageV2 value supported by * server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', @@ -2967,6 +2997,14 @@ export type LargeFileSharesState = 'Disabled' | 'Enabled'; */ export type RoutingChoice = 'MicrosoftRouting' | 'InternetRouting'; +/** + * Defines values for MinimumTlsVersion. + * Possible values include: 'TLS1_0', 'TLS1_1', 'TLS1_2' + * @readonly + * @enum {string} + */ +export type MinimumTlsVersion = 'TLS1_0' | 'TLS1_1' | 'TLS1_2'; + /** * Defines values for GeoReplicationStatus. * Possible values include: 'Live', 'Bootstrap', 'Unavailable' diff --git a/sdk/storage/arm-storage/src/models/mappers.ts b/sdk/storage/arm-storage/src/models/mappers.ts index 23a8c431ef31..58d4aae4798b 100644 --- a/sdk/storage/arm-storage/src/models/mappers.ts +++ b/sdk/storage/arm-storage/src/models/mappers.ts @@ -956,6 +956,18 @@ export const StorageAccountCreateParameters: msRest.CompositeMapper = { name: "Composite", className: "RoutingPreference" } + }, + allowBlobPublicAccess: { + serializedName: "properties.allowBlobPublicAccess", + type: { + name: "Boolean" + } + }, + minimumTlsVersion: { + serializedName: "properties.minimumTlsVersion", + type: { + name: "String" + } } } } @@ -1587,6 +1599,18 @@ export const StorageAccount: msRest.CompositeMapper = { name: "Composite", className: "BlobRestoreStatus" } + }, + allowBlobPublicAccess: { + serializedName: "properties.allowBlobPublicAccess", + type: { + name: "Boolean" + } + }, + minimumTlsVersion: { + serializedName: "properties.minimumTlsVersion", + type: { + name: "String" + } } } } @@ -1755,6 +1779,18 @@ export const StorageAccountUpdateParameters: msRest.CompositeMapper = { className: "RoutingPreference" } }, + allowBlobPublicAccess: { + serializedName: "properties.allowBlobPublicAccess", + type: { + name: "Boolean" + } + }, + minimumTlsVersion: { + serializedName: "properties.minimumTlsVersion", + type: { + name: "String" + } + }, kind: { serializedName: "kind", type: {