Skip to content

Commit

Permalink
Restapi auto storage/resource manager (#7647)
Browse files Browse the repository at this point in the history
* [AutoPR storage/resource-manager] [Bug fix] Remove read-only constraint for management policy (#6233)

* Generated from 00d9e1b50ab5daed68696f0b0c612e912acde7db

[Bug fix] Remove read-only constraint for management policy

* Packaging update of azure-mgmt-storage

* Generated from 0e6f149f5338b7fe8256adb51584a22aaecdb407

change type to number

* Generated from 870609e2d01b2e64b589a0eb07e938f19282f4f0

Modify description, remove integer

* Generated from 2e78b5cbe1e0ef6676f9d9c3266b48cfe87403fd (#6536)

fix typo

* [AutoPR storage/resource-manager] updating description - clarify encryption enabled by default (#5978)

* Generated from 1929243cc853b5f21c5e6cef8a2867fb4d26b4dc

updating description - clarify encryption enabled by default

* Generated from 1929243cc853b5f21c5e6cef8a2867fb4d26b4dc

updating description - clarify encryption enabled by default

* Generated from 3acbc3b4106db3097de5be5e4df47afb38d51ec0 (#6735)

Use cors definition from blob.json

* Generated from 94667089d429b4f1aca38e60f85b13f5c0039219 (#6884)

Align File swagger with the Blob swagger

* [AutoPR storage/resource-manager] Add change feed properties to 2019-04-01 Storage. (#6956)

* Generated from 774367438889ac553def1957b72b8ba63ad877e5

Add change feed properties to 2019-04-01 Storage.

Add change feed properties to Storage Blob Services.

* Generated from 774367438889ac553def1957b72b8ba63ad877e5

Add change feed properties to 2019-04-01 Storage.

Add change feed properties to Storage Blob Services.

* [AutoPR storage/resource-manager] Rename errorResponse to align with other RPs (#7058)

* Generated from 3658b509eba17c55f99d9e22c28e55cb88e33ac0

Rename errorResponse to align with other RPs

* Generated from 3658b509eba17c55f99d9e22c28e55cb88e33ac0

Rename errorResponse to align with other RPs

* Generated from ebaee7c36eb7db67a4e648374f69f26a654b444f (#7445)

[SRP] Add new storage account property largeFileSharesState

* model change for storage

* changelog for storage

* Generated from ebaee7c36eb7db67a4e648374f69f26a654b444f (#7445)

[SRP] Add new storage account property largeFileSharesState

* changelog for storage 4.2.0

* Update HISTORY.rst

* Update HISTORY.rst
  • Loading branch information
fengzhou-msft authored Oct 8, 2019
1 parent 877a8da commit 12c3776
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 4 deletions.
9 changes: 9 additions & 0 deletions sdk/storage/azure-mgmt-storage/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
Release History
===============

4.2.0 (2019-10-07)
++++++++++++++++++

**Features**

- Model StorageAccountCreateParameters has a new parameter large_file_shares_state
- Model StorageAccountUpdateParameters has a new parameter large_file_shares_state
- Model StorageAccount has a new parameter large_file_shares_state

4.1.0 (2019-09-27)
++++++++++++++++++

Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "4.1.0"
VERSION = "4.2.0"

0 comments on commit 12c3776

Please sign in to comment.