From dbf7fd3966691c73f512f4d4b2ea49da7e23139c Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 6 Jun 2019 17:32:25 +0000 Subject: [PATCH] Generated from 552816c639d2a0e594818064c382bac8473dc708 [SRP] Default value change for account property supportsHttpsTrafficOnly --- .../models/list_container_items.py | 23 ++++++++++++++--- .../models/list_container_items_py3.py | 25 +++++++++++++++---- .../storage_account_create_parameters.py | 3 ++- .../storage_account_create_parameters_py3.py | 3 ++- .../operations/blob_containers_operations.py | 17 ++++++++++++- 5 files changed, 59 insertions(+), 12 deletions(-) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/list_container_items.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/list_container_items.py index 4e3cf5184ed6..143057acd876 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/list_container_items.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/list_container_items.py @@ -13,17 +13,32 @@ class ListContainerItems(Model): - """The list of blob containers. + """Response schema. Contains list of blobs returned, and if paging is + requested or required, a URL to next page of containers. - :param value: The list of blob containers. - :type value: + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: List of blobs containers returned. + :vartype value: list[~azure.mgmt.storage.v2019_04_01.models.ListContainerItem] + :ivar next_link: Request URL that can be used to query next page of + containers. Returned when total number of requested containers exceed + maximum page size. + :vartype next_link: str """ + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + _attribute_map = { 'value': {'key': 'value', 'type': '[ListContainerItem]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__(self, **kwargs): super(ListContainerItems, self).__init__(**kwargs) - self.value = kwargs.get('value', None) + self.value = None + self.next_link = None diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/list_container_items_py3.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/list_container_items_py3.py index 50bdde68bf2e..3fad692dc9a1 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/list_container_items_py3.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/list_container_items_py3.py @@ -13,17 +13,32 @@ class ListContainerItems(Model): - """The list of blob containers. + """Response schema. Contains list of blobs returned, and if paging is + requested or required, a URL to next page of containers. - :param value: The list of blob containers. - :type value: + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: List of blobs containers returned. + :vartype value: list[~azure.mgmt.storage.v2019_04_01.models.ListContainerItem] + :ivar next_link: Request URL that can be used to query next page of + containers. Returned when total number of requested containers exceed + maximum page size. + :vartype next_link: str """ + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + _attribute_map = { 'value': {'key': 'value', 'type': '[ListContainerItem]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } - def __init__(self, *, value=None, **kwargs) -> None: + def __init__(self, **kwargs) -> None: super(ListContainerItems, self).__init__(**kwargs) - self.value = value + self.value = None + self.next_link = None diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/storage_account_create_parameters.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/storage_account_create_parameters.py index 57752259a5eb..c2455b3534f9 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/storage_account_create_parameters.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/storage_account_create_parameters.py @@ -58,7 +58,8 @@ class StorageAccountCreateParameters(Model): Integration for SMB if sets to true. :type enable_azure_files_aad_integration: bool :param enable_https_traffic_only: Allows https traffic only to storage - service if sets to true. + service if sets to true. The default value is true since API version + 2019-04-01. :type enable_https_traffic_only: bool :param is_hns_enabled: Account HierarchicalNamespace enabled if sets to true. diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/storage_account_create_parameters_py3.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/storage_account_create_parameters_py3.py index 628fa15f9f02..2f9356a990ea 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/storage_account_create_parameters_py3.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/storage_account_create_parameters_py3.py @@ -58,7 +58,8 @@ class StorageAccountCreateParameters(Model): Integration for SMB if sets to true. :type enable_azure_files_aad_integration: bool :param enable_https_traffic_only: Allows https traffic only to storage - service if sets to true. + service if sets to true. The default value is true since API version + 2019-04-01. :type enable_https_traffic_only: bool :param is_hns_enabled: Account HierarchicalNamespace enabled if sets to true. diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/operations/blob_containers_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/operations/blob_containers_operations.py index b9dbfebe1ce4..db93801f0253 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/operations/blob_containers_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/operations/blob_containers_operations.py @@ -40,7 +40,7 @@ def __init__(self, client, config, serializer, deserializer): self.config = config def list( - self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, account_name, skip_token=None, maxpagesize=None, filter=None, custom_headers=None, raw=False, **operation_config): """Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token. @@ -51,6 +51,15 @@ def list( specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. :type account_name: str + :param skip_token: Optional. Continuation token for the list + operation. + :type skip_token: str + :param maxpagesize: Optional. Specified maximum number of containers + that can be included in the list. + :type maxpagesize: str + :param filter: Optional. When specified, only container names starting + with the filter will be listed. + :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -73,6 +82,12 @@ def list( # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + if maxpagesize is not None: + query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') # Construct headers header_parameters = {}