Skip to content

Commit 88ba0b9

Browse files
AbyssknightSDK AutomationShixun Guan
authored
Release for mgmt storage (Azure#12228)
* Generated from 52aba44796b52af6a51142f555ed6803805fd781 Added update account example PythonSDK for SRP new properties (minimumTlsVersion & allowBlobPublicAccess) Co-authored-by: SDK Automation <[email protected]> Co-authored-by: Shixun Guan <[email protected]>
1 parent 1dd4736 commit 88ba0b9

14 files changed

+497
-2617
lines changed

sdk/storage/azure-mgmt-storage/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Release History
22

3+
## 11.1.0 (2020-6-22)
4+
5+
**Features**
6+
7+
- Model StorageAccount has a new parameter allow_blob_public_access
8+
- Model StorageAccount has a new parameter minimum_tls_version
9+
- Model StorageAccountCreateParameters has a new parameter allow_blob_public_access
10+
- Model StorageAccountCreateParameters has a new parameter minimum_tls_version
11+
- Model StorageAccountUpdateParameters has a new parameter allow_blob_public_access
12+
- Model StorageAccountUpdateParameters has a new parameter minimum_tls_version
13+
314
## 11.0.0 (2020-05-30)
415

516
**Features**

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@
168168
DirectoryServiceOptions,
169169
AccessTier,
170170
LargeFileSharesState,
171+
MinimumTlsVersion,
171172
GeoReplicationStatus,
172173
ProvisioningState,
173174
AccountStatus,
@@ -277,6 +278,7 @@
277278
'DirectoryServiceOptions',
278279
'AccessTier',
279280
'LargeFileSharesState',
281+
'MinimumTlsVersion',
280282
'GeoReplicationStatus',
281283
'ProvisioningState',
282284
'AccountStatus',

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,6 +2386,15 @@ class StorageAccount(TrackedResource):
23862386
include: 'Disabled', 'Enabled'
23872387
:type large_file_shares_state: str or
23882388
~azure.mgmt.storage.v2019_04_01.models.LargeFileSharesState
2389+
:param allow_blob_public_access: Allow or disallow public access to all
2390+
blobs or containers in the storage account. The default interpretation is
2391+
true for this property.
2392+
:type allow_blob_public_access: bool
2393+
:param minimum_tls_version: Set the minimum TLS version to be permitted on
2394+
requests to storage. The default interpretation is TLS 1.0 for this
2395+
property. Possible values include: 'TLS1_0', 'TLS1_1', 'TLS1_2'
2396+
:type minimum_tls_version: str or
2397+
~azure.mgmt.storage.v2019_04_01.models.MinimumTlsVersion
23892398
"""
23902399

23912400
_validation = {
@@ -2440,6 +2449,8 @@ class StorageAccount(TrackedResource):
24402449
'geo_replication_stats': {'key': 'properties.geoReplicationStats', 'type': 'GeoReplicationStats'},
24412450
'failover_in_progress': {'key': 'properties.failoverInProgress', 'type': 'bool'},
24422451
'large_file_shares_state': {'key': 'properties.largeFileSharesState', 'type': 'str'},
2452+
'allow_blob_public_access': {'key': 'properties.allowBlobPublicAccess', 'type': 'bool'},
2453+
'minimum_tls_version': {'key': 'properties.minimumTlsVersion', 'type': 'str'},
24432454
}
24442455

24452456
def __init__(self, **kwargs):
@@ -2466,6 +2477,8 @@ def __init__(self, **kwargs):
24662477
self.geo_replication_stats = None
24672478
self.failover_in_progress = None
24682479
self.large_file_shares_state = kwargs.get('large_file_shares_state', None)
2480+
self.allow_blob_public_access = kwargs.get('allow_blob_public_access', None)
2481+
self.minimum_tls_version = kwargs.get('minimum_tls_version', None)
24692482

24702483

24712484
class StorageAccountCheckNameAvailabilityParameters(Model):
@@ -2558,6 +2571,15 @@ class StorageAccountCreateParameters(Model):
25582571
include: 'Disabled', 'Enabled'
25592572
:type large_file_shares_state: str or
25602573
~azure.mgmt.storage.v2019_04_01.models.LargeFileSharesState
2574+
:param allow_blob_public_access: Allow or disallow public access to all
2575+
blobs or containers in the storage account. The default interpretation is
2576+
true for this property.
2577+
:type allow_blob_public_access: bool
2578+
:param minimum_tls_version: Set the minimum TLS version to be permitted on
2579+
requests to storage. The default interpretation is TLS 1.0 for this
2580+
property. Possible values include: 'TLS1_0', 'TLS1_1', 'TLS1_2'
2581+
:type minimum_tls_version: str or
2582+
~azure.mgmt.storage.v2019_04_01.models.MinimumTlsVersion
25612583
"""
25622584

25632585
_validation = {
@@ -2580,6 +2602,8 @@ class StorageAccountCreateParameters(Model):
25802602
'enable_https_traffic_only': {'key': 'properties.supportsHttpsTrafficOnly', 'type': 'bool'},
25812603
'is_hns_enabled': {'key': 'properties.isHnsEnabled', 'type': 'bool'},
25822604
'large_file_shares_state': {'key': 'properties.largeFileSharesState', 'type': 'str'},
2605+
'allow_blob_public_access': {'key': 'properties.allowBlobPublicAccess', 'type': 'bool'},
2606+
'minimum_tls_version': {'key': 'properties.minimumTlsVersion', 'type': 'str'},
25832607
}
25842608

25852609
def __init__(self, **kwargs):
@@ -2597,6 +2621,8 @@ def __init__(self, **kwargs):
25972621
self.enable_https_traffic_only = kwargs.get('enable_https_traffic_only', None)
25982622
self.is_hns_enabled = kwargs.get('is_hns_enabled', None)
25992623
self.large_file_shares_state = kwargs.get('large_file_shares_state', None)
2624+
self.allow_blob_public_access = kwargs.get('allow_blob_public_access', None)
2625+
self.minimum_tls_version = kwargs.get('minimum_tls_version', None)
26002626

26012627

26022628
class StorageAccountKey(Model):
@@ -2726,6 +2752,15 @@ class StorageAccountUpdateParameters(Model):
27262752
include: 'Disabled', 'Enabled'
27272753
:type large_file_shares_state: str or
27282754
~azure.mgmt.storage.v2019_04_01.models.LargeFileSharesState
2755+
:param allow_blob_public_access: Allow or disallow public access to all
2756+
blobs or containers in the storage account. The default interpretation is
2757+
true for this property.
2758+
:type allow_blob_public_access: bool
2759+
:param minimum_tls_version: Set the minimum TLS version to be permitted on
2760+
requests to storage. The default interpretation is TLS 1.0 for this
2761+
property. Possible values include: 'TLS1_0', 'TLS1_1', 'TLS1_2'
2762+
:type minimum_tls_version: str or
2763+
~azure.mgmt.storage.v2019_04_01.models.MinimumTlsVersion
27292764
:param kind: Optional. Indicates the type of storage account. Currently
27302765
only StorageV2 value supported by server. Possible values include:
27312766
'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage'
@@ -2743,6 +2778,8 @@ class StorageAccountUpdateParameters(Model):
27432778
'enable_https_traffic_only': {'key': 'properties.supportsHttpsTrafficOnly', 'type': 'bool'},
27442779
'network_rule_set': {'key': 'properties.networkAcls', 'type': 'NetworkRuleSet'},
27452780
'large_file_shares_state': {'key': 'properties.largeFileSharesState', 'type': 'str'},
2781+
'allow_blob_public_access': {'key': 'properties.allowBlobPublicAccess', 'type': 'bool'},
2782+
'minimum_tls_version': {'key': 'properties.minimumTlsVersion', 'type': 'str'},
27462783
'kind': {'key': 'kind', 'type': 'str'},
27472784
}
27482785

@@ -2758,6 +2795,8 @@ def __init__(self, **kwargs):
27582795
self.enable_https_traffic_only = kwargs.get('enable_https_traffic_only', None)
27592796
self.network_rule_set = kwargs.get('network_rule_set', None)
27602797
self.large_file_shares_state = kwargs.get('large_file_shares_state', None)
2798+
self.allow_blob_public_access = kwargs.get('allow_blob_public_access', None)
2799+
self.minimum_tls_version = kwargs.get('minimum_tls_version', None)
27612800
self.kind = kwargs.get('kind', None)
27622801

27632802

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_models_py3.py

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,6 +2386,15 @@ class StorageAccount(TrackedResource):
23862386
include: 'Disabled', 'Enabled'
23872387
:type large_file_shares_state: str or
23882388
~azure.mgmt.storage.v2019_04_01.models.LargeFileSharesState
2389+
:param allow_blob_public_access: Allow or disallow public access to all
2390+
blobs or containers in the storage account. The default interpretation is
2391+
true for this property.
2392+
:type allow_blob_public_access: bool
2393+
:param minimum_tls_version: Set the minimum TLS version to be permitted on
2394+
requests to storage. The default interpretation is TLS 1.0 for this
2395+
property. Possible values include: 'TLS1_0', 'TLS1_1', 'TLS1_2'
2396+
:type minimum_tls_version: str or
2397+
~azure.mgmt.storage.v2019_04_01.models.MinimumTlsVersion
23892398
"""
23902399

23912400
_validation = {
@@ -2440,9 +2449,11 @@ class StorageAccount(TrackedResource):
24402449
'geo_replication_stats': {'key': 'properties.geoReplicationStats', 'type': 'GeoReplicationStats'},
24412450
'failover_in_progress': {'key': 'properties.failoverInProgress', 'type': 'bool'},
24422451
'large_file_shares_state': {'key': 'properties.largeFileSharesState', 'type': 'str'},
2452+
'allow_blob_public_access': {'key': 'properties.allowBlobPublicAccess', 'type': 'bool'},
2453+
'minimum_tls_version': {'key': 'properties.minimumTlsVersion', 'type': 'str'},
24432454
}
24442455

2445-
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:
2456+
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, allow_blob_public_access: bool=None, minimum_tls_version=None, **kwargs) -> None:
24462457
super(StorageAccount, self).__init__(tags=tags, location=location, **kwargs)
24472458
self.sku = None
24482459
self.kind = None
@@ -2466,6 +2477,8 @@ def __init__(self, *, location: str, tags=None, identity=None, azure_files_ident
24662477
self.geo_replication_stats = None
24672478
self.failover_in_progress = None
24682479
self.large_file_shares_state = large_file_shares_state
2480+
self.allow_blob_public_access = allow_blob_public_access
2481+
self.minimum_tls_version = minimum_tls_version
24692482

24702483

24712484
class StorageAccountCheckNameAvailabilityParameters(Model):
@@ -2558,6 +2571,15 @@ class StorageAccountCreateParameters(Model):
25582571
include: 'Disabled', 'Enabled'
25592572
:type large_file_shares_state: str or
25602573
~azure.mgmt.storage.v2019_04_01.models.LargeFileSharesState
2574+
:param allow_blob_public_access: Allow or disallow public access to all
2575+
blobs or containers in the storage account. The default interpretation is
2576+
true for this property.
2577+
:type allow_blob_public_access: bool
2578+
:param minimum_tls_version: Set the minimum TLS version to be permitted on
2579+
requests to storage. The default interpretation is TLS 1.0 for this
2580+
property. Possible values include: 'TLS1_0', 'TLS1_1', 'TLS1_2'
2581+
:type minimum_tls_version: str or
2582+
~azure.mgmt.storage.v2019_04_01.models.MinimumTlsVersion
25612583
"""
25622584

25632585
_validation = {
@@ -2580,9 +2602,11 @@ class StorageAccountCreateParameters(Model):
25802602
'enable_https_traffic_only': {'key': 'properties.supportsHttpsTrafficOnly', 'type': 'bool'},
25812603
'is_hns_enabled': {'key': 'properties.isHnsEnabled', 'type': 'bool'},
25822604
'large_file_shares_state': {'key': 'properties.largeFileSharesState', 'type': 'str'},
2605+
'allow_blob_public_access': {'key': 'properties.allowBlobPublicAccess', 'type': 'bool'},
2606+
'minimum_tls_version': {'key': 'properties.minimumTlsVersion', 'type': 'str'},
25832607
}
25842608

2585-
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:
2609+
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, allow_blob_public_access: bool=None, minimum_tls_version=None, **kwargs) -> None:
25862610
super(StorageAccountCreateParameters, self).__init__(**kwargs)
25872611
self.sku = sku
25882612
self.kind = kind
@@ -2597,6 +2621,8 @@ def __init__(self, *, sku, kind, location: str, tags=None, identity=None, custom
25972621
self.enable_https_traffic_only = enable_https_traffic_only
25982622
self.is_hns_enabled = is_hns_enabled
25992623
self.large_file_shares_state = large_file_shares_state
2624+
self.allow_blob_public_access = allow_blob_public_access
2625+
self.minimum_tls_version = minimum_tls_version
26002626

26012627

26022628
class StorageAccountKey(Model):
@@ -2726,6 +2752,15 @@ class StorageAccountUpdateParameters(Model):
27262752
include: 'Disabled', 'Enabled'
27272753
:type large_file_shares_state: str or
27282754
~azure.mgmt.storage.v2019_04_01.models.LargeFileSharesState
2755+
:param allow_blob_public_access: Allow or disallow public access to all
2756+
blobs or containers in the storage account. The default interpretation is
2757+
true for this property.
2758+
:type allow_blob_public_access: bool
2759+
:param minimum_tls_version: Set the minimum TLS version to be permitted on
2760+
requests to storage. The default interpretation is TLS 1.0 for this
2761+
property. Possible values include: 'TLS1_0', 'TLS1_1', 'TLS1_2'
2762+
:type minimum_tls_version: str or
2763+
~azure.mgmt.storage.v2019_04_01.models.MinimumTlsVersion
27292764
:param kind: Optional. Indicates the type of storage account. Currently
27302765
only StorageV2 value supported by server. Possible values include:
27312766
'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage'
@@ -2743,10 +2778,12 @@ class StorageAccountUpdateParameters(Model):
27432778
'enable_https_traffic_only': {'key': 'properties.supportsHttpsTrafficOnly', 'type': 'bool'},
27442779
'network_rule_set': {'key': 'properties.networkAcls', 'type': 'NetworkRuleSet'},
27452780
'large_file_shares_state': {'key': 'properties.largeFileSharesState', 'type': 'str'},
2781+
'allow_blob_public_access': {'key': 'properties.allowBlobPublicAccess', 'type': 'bool'},
2782+
'minimum_tls_version': {'key': 'properties.minimumTlsVersion', 'type': 'str'},
27462783
'kind': {'key': 'kind', 'type': 'str'},
27472784
}
27482785

2749-
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:
2786+
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, allow_blob_public_access: bool=None, minimum_tls_version=None, kind=None, **kwargs) -> None:
27502787
super(StorageAccountUpdateParameters, self).__init__(**kwargs)
27512788
self.sku = sku
27522789
self.tags = tags
@@ -2758,6 +2795,8 @@ def __init__(self, *, sku=None, tags=None, identity=None, custom_domain=None, en
27582795
self.enable_https_traffic_only = enable_https_traffic_only
27592796
self.network_rule_set = network_rule_set
27602797
self.large_file_shares_state = large_file_shares_state
2798+
self.allow_blob_public_access = allow_blob_public_access
2799+
self.minimum_tls_version = minimum_tls_version
27612800
self.kind = kind
27622801

27632802

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/_storage_management_client_enums.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ class LargeFileSharesState(str, Enum):
104104
enabled = "Enabled"
105105

106106

107+
class MinimumTlsVersion(str, Enum):
108+
109+
tls1_0 = "TLS1_0"
110+
tls1_1 = "TLS1_1"
111+
tls1_2 = "TLS1_2"
112+
113+
107114
class GeoReplicationStatus(str, Enum):
108115

109116
live = "Live"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@
231231
AccessTier,
232232
LargeFileSharesState,
233233
RoutingChoice,
234+
MinimumTlsVersion,
234235
GeoReplicationStatus,
235236
BlobRestoreProgressStatus,
236237
ProvisioningState,
@@ -386,6 +387,7 @@
386387
'AccessTier',
387388
'LargeFileSharesState',
388389
'RoutingChoice',
390+
'MinimumTlsVersion',
389391
'GeoReplicationStatus',
390392
'BlobRestoreProgressStatus',
391393
'ProvisioningState',

0 commit comments

Comments
 (0)