diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/ISKUsOperations.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/ISkusOperations.cs similarity index 100% rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/ISKUsOperations.cs rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/ISkusOperations.cs diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/IpRule.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/IPRule.cs similarity index 100% rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/IpRule.cs rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/IPRule.cs diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/MinimumTlsVersion.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/MinimumTlsVersion.cs new file mode 100644 index 000000000000..4bb3db94fbac --- /dev/null +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/MinimumTlsVersion.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Storage.Models +{ + + /// + /// Defines values for MinimumTlsVersion. + /// + public static class MinimumTlsVersion + { + public const string TLS10 = "TLS1_0"; + public const string TLS11 = "TLS1_1"; + public const string TLS12 = "TLS1_2"; + } +} diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/signedResource.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/SignedResource.cs similarity index 100% rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/signedResource.cs rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/SignedResource.cs diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/StorageAccount.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/StorageAccount.cs index 4d69c7cd4c7f..03c10fb81fc2 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/StorageAccount.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/StorageAccount.cs @@ -105,7 +105,14 @@ public StorageAccount() /// Maintains information about the /// network routing choice opted by the user for data transfer /// Blob restore status - public StorageAccount(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), Identity identity = default(Identity), ProvisioningState? provisioningState = default(ProvisioningState?), Endpoints primaryEndpoints = default(Endpoints), string primaryLocation = default(string), AccountStatus? statusOfPrimary = default(AccountStatus?), System.DateTime? lastGeoFailoverTime = default(System.DateTime?), string secondaryLocation = default(string), AccountStatus? statusOfSecondary = default(AccountStatus?), System.DateTime? creationTime = default(System.DateTime?), CustomDomain customDomain = default(CustomDomain), Endpoints secondaryEndpoints = default(Endpoints), Encryption encryption = default(Encryption), AccessTier? accessTier = default(AccessTier?), AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = default(AzureFilesIdentityBasedAuthentication), bool? enableHttpsTrafficOnly = default(bool?), NetworkRuleSet networkRuleSet = default(NetworkRuleSet), bool? isHnsEnabled = default(bool?), GeoReplicationStats geoReplicationStats = default(GeoReplicationStats), bool? failoverInProgress = default(bool?), string largeFileSharesState = default(string), IList privateEndpointConnections = default(IList), RoutingPreference routingPreference = default(RoutingPreference), BlobRestoreStatus blobRestoreStatus = default(BlobRestoreStatus)) + /// Allow or disallow public access + /// to all blobs or containers in the storage account. The default + /// interpretation is true for this property. + /// 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' + public StorageAccount(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), Identity identity = default(Identity), ProvisioningState? provisioningState = default(ProvisioningState?), Endpoints primaryEndpoints = default(Endpoints), string primaryLocation = default(string), AccountStatus? statusOfPrimary = default(AccountStatus?), System.DateTime? lastGeoFailoverTime = default(System.DateTime?), string secondaryLocation = default(string), AccountStatus? statusOfSecondary = default(AccountStatus?), System.DateTime? creationTime = default(System.DateTime?), CustomDomain customDomain = default(CustomDomain), Endpoints secondaryEndpoints = default(Endpoints), Encryption encryption = default(Encryption), AccessTier? accessTier = default(AccessTier?), AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = default(AzureFilesIdentityBasedAuthentication), bool? enableHttpsTrafficOnly = default(bool?), NetworkRuleSet networkRuleSet = default(NetworkRuleSet), bool? isHnsEnabled = default(bool?), GeoReplicationStats geoReplicationStats = default(GeoReplicationStats), bool? failoverInProgress = default(bool?), string largeFileSharesState = default(string), IList privateEndpointConnections = default(IList), RoutingPreference routingPreference = default(RoutingPreference), BlobRestoreStatus blobRestoreStatus = default(BlobRestoreStatus), bool? allowBlobPublicAccess = default(bool?), string minimumTlsVersion = default(string)) : base(location, id, name, type, tags) { Sku = sku; @@ -133,6 +140,8 @@ public StorageAccount() PrivateEndpointConnections = privateEndpointConnections; RoutingPreference = routingPreference; BlobRestoreStatus = blobRestoreStatus; + AllowBlobPublicAccess = allowBlobPublicAccess; + MinimumTlsVersion = minimumTlsVersion; CustomInit(); } @@ -320,6 +329,22 @@ public StorageAccount() [JsonProperty(PropertyName = "properties.blobRestoreStatus")] public BlobRestoreStatus BlobRestoreStatus { get; private set; } + /// + /// Gets or sets allow or disallow public access to all blobs or + /// containers in the storage account. The default interpretation is + /// true for this property. + /// + [JsonProperty(PropertyName = "properties.allowBlobPublicAccess")] + public bool? AllowBlobPublicAccess { get; set; } + + /// + /// Gets or sets 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' + /// + [JsonProperty(PropertyName = "properties.minimumTlsVersion")] + public string MinimumTlsVersion { get; set; } + /// /// Validate the object. /// diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/StorageAccountCreateParameters.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/StorageAccountCreateParameters.cs index 81c599fd1c12..623f537b28b6 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/StorageAccountCreateParameters.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/StorageAccountCreateParameters.cs @@ -76,7 +76,14 @@ public StorageAccountCreateParameters() /// values include: 'Disabled', 'Enabled' /// Maintains information about the /// network routing choice opted by the user for data transfer - public StorageAccountCreateParameters(Sku sku, string kind, string location, IDictionary tags = default(IDictionary), Identity identity = default(Identity), CustomDomain customDomain = default(CustomDomain), Encryption encryption = default(Encryption), NetworkRuleSet networkRuleSet = default(NetworkRuleSet), AccessTier? accessTier = default(AccessTier?), AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = default(AzureFilesIdentityBasedAuthentication), bool? enableHttpsTrafficOnly = default(bool?), bool? isHnsEnabled = default(bool?), string largeFileSharesState = default(string), RoutingPreference routingPreference = default(RoutingPreference)) + /// Allow or disallow public access + /// to all blobs or containers in the storage account. The default + /// interpretation is true for this property. + /// 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' + public StorageAccountCreateParameters(Sku sku, string kind, string location, IDictionary tags = default(IDictionary), Identity identity = default(Identity), CustomDomain customDomain = default(CustomDomain), Encryption encryption = default(Encryption), NetworkRuleSet networkRuleSet = default(NetworkRuleSet), AccessTier? accessTier = default(AccessTier?), AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = default(AzureFilesIdentityBasedAuthentication), bool? enableHttpsTrafficOnly = default(bool?), bool? isHnsEnabled = default(bool?), string largeFileSharesState = default(string), RoutingPreference routingPreference = default(RoutingPreference), bool? allowBlobPublicAccess = default(bool?), string minimumTlsVersion = default(string)) { Sku = sku; Kind = kind; @@ -92,6 +99,8 @@ public StorageAccountCreateParameters() IsHnsEnabled = isHnsEnabled; LargeFileSharesState = largeFileSharesState; RoutingPreference = routingPreference; + AllowBlobPublicAccess = allowBlobPublicAccess; + MinimumTlsVersion = minimumTlsVersion; CustomInit(); } @@ -206,6 +215,22 @@ public StorageAccountCreateParameters() [JsonProperty(PropertyName = "properties.routingPreference")] public RoutingPreference RoutingPreference { get; set; } + /// + /// Gets or sets allow or disallow public access to all blobs or + /// containers in the storage account. The default interpretation is + /// true for this property. + /// + [JsonProperty(PropertyName = "properties.allowBlobPublicAccess")] + public bool? AllowBlobPublicAccess { get; set; } + + /// + /// Gets or sets 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' + /// + [JsonProperty(PropertyName = "properties.minimumTlsVersion")] + public string MinimumTlsVersion { get; set; } + /// /// Validate the object. /// diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/StorageAccountUpdateParameters.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/StorageAccountUpdateParameters.cs index c98f2efa40d8..0f556c5c9211 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/StorageAccountUpdateParameters.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/StorageAccountUpdateParameters.cs @@ -68,11 +68,18 @@ public StorageAccountUpdateParameters() /// values include: 'Disabled', 'Enabled' /// Maintains information about the /// network routing choice opted by the user for data transfer + /// Allow or disallow public access + /// to all blobs or containers in the storage account. The default + /// interpretation is true for this property. + /// 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' /// Optional. Indicates the type of storage account. /// Currently only StorageV2 value supported by server. Possible values /// include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', /// 'BlockBlobStorage' - public StorageAccountUpdateParameters(Sku sku = default(Sku), IDictionary tags = default(IDictionary), Identity identity = default(Identity), CustomDomain customDomain = default(CustomDomain), Encryption encryption = default(Encryption), AccessTier? accessTier = default(AccessTier?), AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = default(AzureFilesIdentityBasedAuthentication), bool? enableHttpsTrafficOnly = default(bool?), NetworkRuleSet networkRuleSet = default(NetworkRuleSet), string largeFileSharesState = default(string), RoutingPreference routingPreference = default(RoutingPreference), string kind = default(string)) + public StorageAccountUpdateParameters(Sku sku = default(Sku), IDictionary tags = default(IDictionary), Identity identity = default(Identity), CustomDomain customDomain = default(CustomDomain), Encryption encryption = default(Encryption), AccessTier? accessTier = default(AccessTier?), AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = default(AzureFilesIdentityBasedAuthentication), bool? enableHttpsTrafficOnly = default(bool?), NetworkRuleSet networkRuleSet = default(NetworkRuleSet), string largeFileSharesState = default(string), RoutingPreference routingPreference = default(RoutingPreference), bool? allowBlobPublicAccess = default(bool?), string minimumTlsVersion = default(string), string kind = default(string)) { Sku = sku; Tags = tags; @@ -85,6 +92,8 @@ public StorageAccountUpdateParameters() NetworkRuleSet = networkRuleSet; LargeFileSharesState = largeFileSharesState; RoutingPreference = routingPreference; + AllowBlobPublicAccess = allowBlobPublicAccess; + MinimumTlsVersion = minimumTlsVersion; Kind = kind; CustomInit(); } @@ -177,6 +186,22 @@ public StorageAccountUpdateParameters() [JsonProperty(PropertyName = "properties.routingPreference")] public RoutingPreference RoutingPreference { get; set; } + /// + /// Gets or sets allow or disallow public access to all blobs or + /// containers in the storage account. The default interpretation is + /// true for this property. + /// + [JsonProperty(PropertyName = "properties.allowBlobPublicAccess")] + public bool? AllowBlobPublicAccess { get; set; } + + /// + /// Gets or sets 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' + /// + [JsonProperty(PropertyName = "properties.minimumTlsVersion")] + public string MinimumTlsVersion { get; set; } + /// /// Gets or sets optional. Indicates the type of storage account. /// Currently only StorageV2 value supported by server. Possible values diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs index 20b491dc4d16..37b048624d8c 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs @@ -39,16 +39,5 @@ public static IEnumerable> ApiInfo_StorageManageme }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/storage/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp.output-folder=C:\\code\\srpsdk\\sdk\\storage\\Microsoft.Azure.Management.Storage\\src\\Generated"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "d413a0acb59a22f4d551ca598d96794715de8e40"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SKUsOperations.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SkusOperations.cs similarity index 100% rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SKUsOperations.cs rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SkusOperations.cs diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SKUsOperationsExtensions.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SkusOperationsExtensions.cs similarity index 100% rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SKUsOperationsExtensions.cs rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SkusOperationsExtensions.cs