Skip to content

Commit

Permalink
model change for storage
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhou-msft authored and Zim Kalinowski committed Dec 4, 2019
1 parent e3d9eab commit 76c8143
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@
DefaultAction,
DirectoryServiceOptions,
AccessTier,
LargeFileSharesState,
GeoReplicationStatus,
ProvisioningState,
AccountStatus,
Expand Down Expand Up @@ -276,7 +275,6 @@
'DefaultAction',
'DirectoryServiceOptions',
'AccessTier',
'LargeFileSharesState',
'GeoReplicationStatus',
'ProvisioningState',
'AccountStatus',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2381,11 +2381,6 @@ 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 @@ -2439,7 +2434,6 @@ 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 @@ -2465,7 +2459,6 @@ 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 @@ -2553,11 +2546,6 @@ 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 @@ -2579,7 +2567,6 @@ 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 @@ -2596,7 +2583,6 @@ 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 @@ -2721,11 +2707,6 @@ 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 @@ -2742,7 +2723,6 @@ 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 @@ -2757,7 +2737,6 @@ 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 @@ -2381,11 +2381,6 @@ 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 @@ -2439,10 +2434,9 @@ 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, large_file_shares_state=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, **kwargs) -> None:
super(StorageAccount, self).__init__(tags=tags, location=location, **kwargs)
self.sku = None
self.kind = None
Expand All @@ -2465,7 +2459,6 @@ 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 @@ -2553,11 +2546,6 @@ 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 @@ -2579,10 +2567,9 @@ 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, large_file_shares_state=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, **kwargs) -> None:
super(StorageAccountCreateParameters, self).__init__(**kwargs)
self.sku = sku
self.kind = kind
Expand All @@ -2596,7 +2583,6 @@ 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 @@ -2721,11 +2707,6 @@ 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 @@ -2742,11 +2723,10 @@ 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, large_file_shares_state=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, kind=None, **kwargs) -> None:
super(StorageAccountUpdateParameters, self).__init__(**kwargs)
self.sku = sku
self.tags = tags
Expand All @@ -2757,7 +2737,6 @@ 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 @@ -98,12 +98,6 @@ class AccessTier(str, Enum):
cool = "Cool"


class LargeFileSharesState(str, Enum):

disabled = "Disabled"
enabled = "Enabled"


class GeoReplicationStatus(str, Enum):

live = "Live"
Expand Down

0 comments on commit 76c8143

Please sign in to comment.