From 673b6d68a8bbf9f116d43f45ff56bd84eabd44b5 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot Date: Thu, 26 Sep 2019 04:06:06 +0000 Subject: [PATCH] Generated from ebaee7c36eb7db67a4e648374f69f26a654b444f [SRP] Add new storage account property largeFileSharesState --- .../storage/v2019_04_01/models/__init__.py | 2 ++ .../storage/v2019_04_01/models/_models.py | 21 +++++++++++++++ .../storage/v2019_04_01/models/_models_py3.py | 27 ++++++++++++++++--- .../_storage_management_client_enums.py | 6 +++++ 4 files changed, 53 insertions(+), 3 deletions(-) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/__init__.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/__init__.py index 3c0de6b2c59e..e839d483b34d 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/__init__.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/__init__.py @@ -165,6 +165,7 @@ DefaultAction, DirectoryServiceOptions, AccessTier, + LargeFileSharesState, GeoReplicationStatus, ProvisioningState, AccountStatus, @@ -271,6 +272,7 @@ 'DefaultAction', 'DirectoryServiceOptions', 'AccessTier', + 'LargeFileSharesState', 'GeoReplicationStatus', 'ProvisioningState', 'AccountStatus', diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models.py index d65b71635257..f9426dd019f1 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models.py @@ -2326,6 +2326,11 @@ class StorageAccount(TrackedResource): :ivar failover_in_progress: If the failover is in progress, the value will be true, otherwise, it will be null. :vartype failover_in_progress: bool + :param large_file_shares_state: Allow large file shares if sets to + Enabled. It cannot be disabled once it is enabled. Possible values + include: 'Disabled', 'Enabled' + :type large_file_shares_state: str or + ~azure.mgmt.storage.v2019_04_01.models.LargeFileSharesState """ _validation = { @@ -2379,6 +2384,7 @@ class StorageAccount(TrackedResource): 'is_hns_enabled': {'key': 'properties.isHnsEnabled', 'type': 'bool'}, 'geo_replication_stats': {'key': 'properties.geoReplicationStats', 'type': 'GeoReplicationStats'}, 'failover_in_progress': {'key': 'properties.failoverInProgress', 'type': 'bool'}, + 'large_file_shares_state': {'key': 'properties.largeFileSharesState', 'type': 'str'}, } def __init__(self, **kwargs): @@ -2404,6 +2410,7 @@ def __init__(self, **kwargs): self.is_hns_enabled = kwargs.get('is_hns_enabled', None) self.geo_replication_stats = None self.failover_in_progress = None + self.large_file_shares_state = kwargs.get('large_file_shares_state', None) class StorageAccountCheckNameAvailabilityParameters(Model): @@ -2491,6 +2498,11 @@ class StorageAccountCreateParameters(Model): :param is_hns_enabled: Account HierarchicalNamespace enabled if sets to true. :type is_hns_enabled: bool + :param large_file_shares_state: Allow large file shares if sets to + Enabled. It cannot be disabled once it is enabled. Possible values + include: 'Disabled', 'Enabled' + :type large_file_shares_state: str or + ~azure.mgmt.storage.v2019_04_01.models.LargeFileSharesState """ _validation = { @@ -2512,6 +2524,7 @@ class StorageAccountCreateParameters(Model): 'azure_files_identity_based_authentication': {'key': 'properties.azureFilesIdentityBasedAuthentication', 'type': 'AzureFilesIdentityBasedAuthentication'}, 'enable_https_traffic_only': {'key': 'properties.supportsHttpsTrafficOnly', 'type': 'bool'}, 'is_hns_enabled': {'key': 'properties.isHnsEnabled', 'type': 'bool'}, + 'large_file_shares_state': {'key': 'properties.largeFileSharesState', 'type': 'str'}, } def __init__(self, **kwargs): @@ -2528,6 +2541,7 @@ def __init__(self, **kwargs): self.azure_files_identity_based_authentication = kwargs.get('azure_files_identity_based_authentication', None) self.enable_https_traffic_only = kwargs.get('enable_https_traffic_only', None) self.is_hns_enabled = kwargs.get('is_hns_enabled', None) + self.large_file_shares_state = kwargs.get('large_file_shares_state', None) class StorageAccountKey(Model): @@ -2652,6 +2666,11 @@ class StorageAccountUpdateParameters(Model): :param network_rule_set: Network rule set :type network_rule_set: ~azure.mgmt.storage.v2019_04_01.models.NetworkRuleSet + :param large_file_shares_state: Allow large file shares if sets to + Enabled. It cannot be disabled once it is enabled. Possible values + include: 'Disabled', 'Enabled' + :type large_file_shares_state: str or + ~azure.mgmt.storage.v2019_04_01.models.LargeFileSharesState :param kind: Optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage' @@ -2668,6 +2687,7 @@ class StorageAccountUpdateParameters(Model): 'azure_files_identity_based_authentication': {'key': 'properties.azureFilesIdentityBasedAuthentication', 'type': 'AzureFilesIdentityBasedAuthentication'}, 'enable_https_traffic_only': {'key': 'properties.supportsHttpsTrafficOnly', 'type': 'bool'}, 'network_rule_set': {'key': 'properties.networkAcls', 'type': 'NetworkRuleSet'}, + 'large_file_shares_state': {'key': 'properties.largeFileSharesState', 'type': 'str'}, 'kind': {'key': 'kind', 'type': 'str'}, } @@ -2682,6 +2702,7 @@ def __init__(self, **kwargs): self.azure_files_identity_based_authentication = kwargs.get('azure_files_identity_based_authentication', None) self.enable_https_traffic_only = kwargs.get('enable_https_traffic_only', None) self.network_rule_set = kwargs.get('network_rule_set', None) + self.large_file_shares_state = kwargs.get('large_file_shares_state', None) self.kind = kwargs.get('kind', None) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models_py3.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models_py3.py index 4bbb299a95bb..f65672651e2a 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models_py3.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models_py3.py @@ -2326,6 +2326,11 @@ class StorageAccount(TrackedResource): :ivar failover_in_progress: If the failover is in progress, the value will be true, otherwise, it will be null. :vartype failover_in_progress: bool + :param large_file_shares_state: Allow large file shares if sets to + Enabled. It cannot be disabled once it is enabled. Possible values + include: 'Disabled', 'Enabled' + :type large_file_shares_state: str or + ~azure.mgmt.storage.v2019_04_01.models.LargeFileSharesState """ _validation = { @@ -2379,9 +2384,10 @@ class StorageAccount(TrackedResource): 'is_hns_enabled': {'key': 'properties.isHnsEnabled', 'type': 'bool'}, 'geo_replication_stats': {'key': 'properties.geoReplicationStats', 'type': 'GeoReplicationStats'}, 'failover_in_progress': {'key': 'properties.failoverInProgress', 'type': 'bool'}, + 'large_file_shares_state': {'key': 'properties.largeFileSharesState', 'type': 'str'}, } - def __init__(self, *, location: str, tags=None, identity=None, azure_files_identity_based_authentication=None, enable_https_traffic_only: bool=None, is_hns_enabled: bool=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, identity=None, azure_files_identity_based_authentication=None, enable_https_traffic_only: bool=None, is_hns_enabled: bool=None, large_file_shares_state=None, **kwargs) -> None: super(StorageAccount, self).__init__(tags=tags, location=location, **kwargs) self.sku = None self.kind = None @@ -2404,6 +2410,7 @@ def __init__(self, *, location: str, tags=None, identity=None, azure_files_ident self.is_hns_enabled = is_hns_enabled self.geo_replication_stats = None self.failover_in_progress = None + self.large_file_shares_state = large_file_shares_state class StorageAccountCheckNameAvailabilityParameters(Model): @@ -2491,6 +2498,11 @@ class StorageAccountCreateParameters(Model): :param is_hns_enabled: Account HierarchicalNamespace enabled if sets to true. :type is_hns_enabled: bool + :param large_file_shares_state: Allow large file shares if sets to + Enabled. It cannot be disabled once it is enabled. Possible values + include: 'Disabled', 'Enabled' + :type large_file_shares_state: str or + ~azure.mgmt.storage.v2019_04_01.models.LargeFileSharesState """ _validation = { @@ -2512,9 +2524,10 @@ class StorageAccountCreateParameters(Model): 'azure_files_identity_based_authentication': {'key': 'properties.azureFilesIdentityBasedAuthentication', 'type': 'AzureFilesIdentityBasedAuthentication'}, 'enable_https_traffic_only': {'key': 'properties.supportsHttpsTrafficOnly', 'type': 'bool'}, 'is_hns_enabled': {'key': 'properties.isHnsEnabled', 'type': 'bool'}, + 'large_file_shares_state': {'key': 'properties.largeFileSharesState', 'type': 'str'}, } - def __init__(self, *, sku, kind, location: str, tags=None, identity=None, custom_domain=None, encryption=None, network_rule_set=None, access_tier=None, azure_files_identity_based_authentication=None, enable_https_traffic_only: bool=None, is_hns_enabled: bool=None, **kwargs) -> None: + def __init__(self, *, sku, kind, location: str, tags=None, identity=None, custom_domain=None, encryption=None, network_rule_set=None, access_tier=None, azure_files_identity_based_authentication=None, enable_https_traffic_only: bool=None, is_hns_enabled: bool=None, large_file_shares_state=None, **kwargs) -> None: super(StorageAccountCreateParameters, self).__init__(**kwargs) self.sku = sku self.kind = kind @@ -2528,6 +2541,7 @@ def __init__(self, *, sku, kind, location: str, tags=None, identity=None, custom self.azure_files_identity_based_authentication = azure_files_identity_based_authentication self.enable_https_traffic_only = enable_https_traffic_only self.is_hns_enabled = is_hns_enabled + self.large_file_shares_state = large_file_shares_state class StorageAccountKey(Model): @@ -2652,6 +2666,11 @@ class StorageAccountUpdateParameters(Model): :param network_rule_set: Network rule set :type network_rule_set: ~azure.mgmt.storage.v2019_04_01.models.NetworkRuleSet + :param large_file_shares_state: Allow large file shares if sets to + Enabled. It cannot be disabled once it is enabled. Possible values + include: 'Disabled', 'Enabled' + :type large_file_shares_state: str or + ~azure.mgmt.storage.v2019_04_01.models.LargeFileSharesState :param kind: Optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage' @@ -2668,10 +2687,11 @@ class StorageAccountUpdateParameters(Model): 'azure_files_identity_based_authentication': {'key': 'properties.azureFilesIdentityBasedAuthentication', 'type': 'AzureFilesIdentityBasedAuthentication'}, 'enable_https_traffic_only': {'key': 'properties.supportsHttpsTrafficOnly', 'type': 'bool'}, 'network_rule_set': {'key': 'properties.networkAcls', 'type': 'NetworkRuleSet'}, + 'large_file_shares_state': {'key': 'properties.largeFileSharesState', 'type': 'str'}, 'kind': {'key': 'kind', 'type': 'str'}, } - def __init__(self, *, sku=None, tags=None, identity=None, custom_domain=None, encryption=None, access_tier=None, azure_files_identity_based_authentication=None, enable_https_traffic_only: bool=None, network_rule_set=None, kind=None, **kwargs) -> None: + def __init__(self, *, sku=None, tags=None, identity=None, custom_domain=None, encryption=None, access_tier=None, azure_files_identity_based_authentication=None, enable_https_traffic_only: bool=None, network_rule_set=None, large_file_shares_state=None, kind=None, **kwargs) -> None: super(StorageAccountUpdateParameters, self).__init__(**kwargs) self.sku = sku self.tags = tags @@ -2682,6 +2702,7 @@ def __init__(self, *, sku=None, tags=None, identity=None, custom_domain=None, en self.azure_files_identity_based_authentication = azure_files_identity_based_authentication self.enable_https_traffic_only = enable_https_traffic_only self.network_rule_set = network_rule_set + self.large_file_shares_state = large_file_shares_state self.kind = kind diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_storage_management_client_enums.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_storage_management_client_enums.py index 19ee1a4346d4..0ca18f801c42 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_storage_management_client_enums.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_storage_management_client_enums.py @@ -97,6 +97,12 @@ class AccessTier(str, Enum): cool = "Cool" +class LargeFileSharesState(str, Enum): + + disabled = "Disabled" + enabled = "Enabled" + + class GeoReplicationStatus(str, Enum): live = "Live"