Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR storage/resource-manager] [SRP] Add new storage account property largeFileSharesState #7445

Merged
merged 1 commit into from
Sep 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
DefaultAction,
DirectoryServiceOptions,
AccessTier,
LargeFileSharesState,
GeoReplicationStatus,
ProvisioningState,
AccountStatus,
Expand Down Expand Up @@ -271,6 +272,7 @@
'DefaultAction',
'DirectoryServiceOptions',
'AccessTier',
'LargeFileSharesState',
'GeoReplicationStatus',
'ProvisioningState',
'AccountStatus',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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):
Expand All @@ -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):
Expand Down Expand Up @@ -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 = {
Expand All @@ -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):
Expand All @@ -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):
Expand Down Expand Up @@ -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'
Expand All @@ -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'},
}

Expand All @@ -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)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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
Expand All @@ -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):
Expand Down Expand Up @@ -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 = {
Expand All @@ -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
Expand All @@ -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):
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ class AccessTier(str, Enum):
cool = "Cool"


class LargeFileSharesState(str, Enum):

disabled = "Disabled"
enabled = "Enabled"


class GeoReplicationStatus(str, Enum):

live = "Live"
Expand Down