diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/models.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/models.py index 8b92efde375e..33a70a72fd7a 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/models.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/models.py @@ -453,19 +453,20 @@ def from_string(cls, permission): class Services(object): """Specifies the services accessible with the account SAS. - :param bool blob: - Access for the `~azure.storage.blob.BlobServiceClient` - :param bool queue: - Access for the `~azure.storage.queue.QueueServiceClient` - :param bool fileshare: - Access for the `~azure.storage.fileshare.ShareServiceClient` + :keyword bool blob: + Access for the `~azure.storage.blob.BlobServiceClient`. Default is False. + :keyword bool queue: + Access for the `~azure.storage.queue.QueueServiceClient`. Default is False. + :keyword bool fileshare: + Access for the `~azure.storage.fileshare.ShareServiceClient`. Default is False. """ - blob: bool = False - queue: bool = False - fileshare: bool = False - - def __init__(self, blob: bool = False, queue: bool = False, fileshare: bool = False): + def __init__( + self, *, + blob: bool = False, + queue: bool = False, + fileshare: bool = False + ) -> None: self.blob = blob self.queue = queue self.fileshare = fileshare @@ -493,7 +494,7 @@ def from_string(cls, string): res_queue = 'q' in string res_file = 'f' in string - parsed = cls(res_blob, res_queue, res_file) + parsed = cls(blob=res_blob, queue=res_queue, fileshare=res_file) parsed._str = string # pylint: disable = protected-access return parsed diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_directory_client.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_directory_client.py index 28eba4492e94..59bcce4120d3 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_directory_client.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_directory_client.py @@ -290,14 +290,12 @@ def get_directory_properties(self, **kwargs): Use of customer-provided keys must be done over HTTPS. Required if the directory was created with a customer-provided key. :keyword bool upn: - Optional. Valid only when Hierarchical Namespace is - enabled for the account. If "True", the user identity values returned - in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be - transformed from Azure Active Directory Object IDs to User Principal - Names. If "False", the values will be returned as Azure Active - Directory Object IDs. The default value is false. Note that group and - application Object IDs are not translated because they do not have - unique friendly names. + If True, the user identity values returned in the x-ms-owner, x-ms-group, + and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User + Principal Names in the owner, group, and acl fields of + :class:`~azure.storage.filedatalake.DirectoryProperties`. If False, the values will be returned + as Azure Active Directory Object IDs. The default value is False. Note that group and application + Object IDs are not translate because they do not have unique friendly names. :keyword int timeout: Sets the server-side timeout for the operation in seconds. For more details see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations. diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_file_client.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_file_client.py index e14d66afb497..cdbf63e0a175 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_file_client.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_data_lake_file_client.py @@ -308,14 +308,12 @@ def get_file_properties(self, **kwargs): Use of customer-provided keys must be done over HTTPS. Required if the file was created with a customer-provided key. :keyword bool upn: - Optional. Valid only when Hierarchical Namespace is - enabled for the account. If "True", the user identity values returned - in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be - transformed from Azure Active Directory Object IDs to User Principal - Names. If "False", the values will be returned as Azure Active - Directory Object IDs. The default value is false. Note that group and - application Object IDs are not translated because they do not have - unique friendly names. + If True, the user identity values returned in the x-ms-owner, x-ms-group, + and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User + Principal Names in the owner, group, and acl fields of + :class:`~azure.storage.filedatalake.FileProperties`. If False, the values will be returned + as Azure Active Directory Object IDs. The default value is False. Note that group and application + Object IDs are not translate because they do not have unique friendly names. :keyword int timeout: Sets the server-side timeout for the operation in seconds. For more details see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations. @@ -323,7 +321,7 @@ def get_file_properties(self, **kwargs): see `here `_. :returns: All user-defined metadata, standard HTTP properties, and system properties for the file. - :rtype: FileProperties + :rtype: ~azure.storage.filedatalake.FileProperties .. admonition:: Example: diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_file_system_client.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_file_system_client.py index c5f9e53dabfa..ed97c02e7141 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_file_system_client.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_file_system_client.py @@ -563,14 +563,12 @@ def get_paths( number of items to return per page. If omitted or greater than 5,000, the response will include up to 5,000 items per page. :keyword bool upn: - Optional. Valid only when Hierarchical Namespace is - enabled for the account. If "True", the user identity values returned - in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be - transformed from Azure Active Directory Object IDs to User Principal - Names. If "False", the values will be returned as Azure Active - Directory Object IDs. The default value is false. Note that group and - application Object IDs are not translated because they do not have - unique friendly names. + If True, the user identity values returned in the x-ms-owner, x-ms-group, + and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User + Principal Names in the owner, group, and acl fields of + :class:`~azure.storage.filedatalake.PathProperties`. If False, the values will be returned + as Azure Active Directory Object IDs. The default value is False. Note that group and application + Object IDs are not translate because they do not have unique friendly names. :keyword int timeout: Sets the server-side timeout for the operation in seconds. For more details see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations. diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_path_client.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_path_client.py index 15432b2e62e2..8d95acb81590 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_path_client.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_path_client.py @@ -923,14 +923,12 @@ def _get_path_properties(self, **kwargs): Use of customer-provided keys must be done over HTTPS. Required if the file/directory was created with a customer-provided key. :keyword bool upn: - Optional. Valid only when Hierarchical Namespace is - enabled for the account. If "True", the user identity values returned - in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be - transformed from Azure Active Directory Object IDs to User Principal - Names. If "False", the values will be returned as Azure Active - Directory Object IDs. The default value is false. Note that group and - application Object IDs are not translated because they do not have - unique friendly names. + If True, the user identity values returned in the x-ms-owner, x-ms-group, + and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User + Principal Names in the owner, group, and acl fields of the respective property object returned. + If False, the values will be returned as Azure Active Directory Object IDs. + The default value is False. Note that group and application Object IDs are not translate + because they do not have unique friendly names. :keyword int timeout: Sets the server-side timeout for the operation in seconds. For more details see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations. diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/models.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/models.py index ca54c92d7d1c..e06b6ac6cd7d 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/models.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/models.py @@ -453,19 +453,20 @@ def from_string(cls, permission): class Services(object): """Specifies the services accessible with the account SAS. - :param bool blob: - Access for the `~azure.storage.blob.BlobServiceClient` - :param bool queue: - Access for the `~azure.storage.queue.QueueServiceClient` - :param bool fileshare: - Access for the `~azure.storage.fileshare.ShareServiceClient` + :keyword bool blob: + Access for the `~azure.storage.blob.BlobServiceClient`. Default is False. + :keyword bool queue: + Access for the `~azure.storage.queue.QueueServiceClient`. Default is False. + :keyword bool fileshare: + Access for the `~azure.storage.fileshare.ShareServiceClient`. Default is False. """ - blob: bool = False - queue: bool = False - fileshare: bool = False - - def __init__(self, blob: bool = False, queue: bool = False, fileshare: bool = False): + def __init__( + self, *, + blob: bool = False, + queue: bool = False, + fileshare: bool = False + ) -> None: self.blob = blob self.queue = queue self.fileshare = fileshare @@ -493,7 +494,7 @@ def from_string(cls, string): res_queue = 'q' in string res_file = 'f' in string - parsed = cls(res_blob, res_queue, res_file) + parsed = cls(blob=res_blob, queue=res_queue, fileshare=res_file) parsed._str = string # pylint: disable = protected-access return parsed diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_directory_client_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_directory_client_async.py index de27bb4078c3..39c5d3a01082 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_directory_client_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_directory_client_async.py @@ -267,14 +267,12 @@ async def get_directory_properties(self, **kwargs): Use of customer-provided keys must be done over HTTPS. Required if the directory was created with a customer-provided key. :keyword bool upn: - Optional. Valid only when Hierarchical Namespace is - enabled for the account. If "True", the user identity values returned - in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be - transformed from Azure Active Directory Object IDs to User Principal - Names. If "False", the values will be returned as Azure Active - Directory Object IDs. The default value is false. Note that group and - application Object IDs are not translated because they do not have - unique friendly names. + If True, the user identity values returned in the x-ms-owner, x-ms-group, + and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User + Principal Names in the owner, group, and acl fields of + :class:`~azure.storage.filedatalake.DirectoryProperties`. If False, the values will be returned + as Azure Active Directory Object IDs. The default value is False. Note that group and application + Object IDs are not translate because they do not have unique friendly names. :keyword int timeout: Sets the server-side timeout for the operation in seconds. For more details see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations. diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_file_client_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_file_client_async.py index 607b33059ee6..d29f1f7f3811 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_file_client_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_data_lake_file_client_async.py @@ -275,14 +275,12 @@ async def get_file_properties(self, **kwargs): Use of customer-provided keys must be done over HTTPS. Required if the file was created with a customer-provided key. :keyword bool upn: - Optional. Valid only when Hierarchical Namespace is - enabled for the account. If "True", the user identity values returned - in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be - transformed from Azure Active Directory Object IDs to User Principal - Names. If "False", the values will be returned as Azure Active - Directory Object IDs. The default value is false. Note that group and - application Object IDs are not translated because they do not have - unique friendly names. + If True, the user identity values returned in the x-ms-owner, x-ms-group, + and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User + Principal Names in the owner, group, and acl fields of + :class:`~azure.storage.filedatalake.FileProperties`. If False, the values will be returned + as Azure Active Directory Object IDs. The default value is False. Note that group and application + Object IDs are not translate because they do not have unique friendly names. :keyword int timeout: Sets the server-side timeout for the operation in seconds. For more details see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations. @@ -290,7 +288,7 @@ async def get_file_properties(self, **kwargs): see `here `_. :returns: All user-defined metadata, standard HTTP properties, and system properties for the file. - :rtype: FileProperties + :rtype: ~azure.storage.filedatalake.FileProperties .. admonition:: Example: diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_file_system_client_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_file_system_client_async.py index b8d35a251b41..a66f195cb36e 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_file_system_client_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_file_system_client_async.py @@ -506,14 +506,12 @@ def get_paths( number of items to return per page. If omitted or greater than 5,000, the response will include up to 5,000 items per page. :keyword bool upn: - Optional. Valid only when Hierarchical Namespace is - enabled for the account. If "True", the user identity values returned - in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be - transformed from Azure Active Directory Object IDs to User Principal - Names. If "False", the values will be returned as Azure Active - Directory Object IDs. The default value is false. Note that group and - application Object IDs are not translated because they do not have - unique friendly names. + If True, the user identity values returned in the x-ms-owner, x-ms-group, + and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User + Principal Names in the owner, group, and acl fields of + :class:`~azure.storage.filedatalake.PathProperties`. If False, the values will be returned + as Azure Active Directory Object IDs. The default value is False. Note that group and application + Object IDs are not translate because they do not have unique friendly names. :keyword int timeout: Sets the server-side timeout for the operation in seconds. For more details see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations. diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py index 6ebce0ec16c3..41dad15281b4 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_path_client_async.py @@ -712,14 +712,12 @@ async def _get_path_properties(self, **kwargs): Use of customer-provided keys must be done over HTTPS. Required if the file/directory was created with a customer-provided key. :keyword bool upn: - Optional. Valid only when Hierarchical Namespace is - enabled for the account. If "True", the user identity values returned - in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be - transformed from Azure Active Directory Object IDs to User Principal - Names. If "False", the values will be returned as Azure Active - Directory Object IDs. The default value is false. Note that group and - application Object IDs are not translated because they do not have - unique friendly names. + If True, the user identity values returned in the x-ms-owner, x-ms-group, + and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User + Principal Names in the owner, group, and acl fields of the respective property object returned. + If False, the values will be returned as Azure Active Directory Object IDs. + The default value is False. Note that group and application Object IDs are not translate + because they do not have unique friendly names. :keyword int timeout: Sets the server-side timeout for the operation in seconds. For more details see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations. diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py index a035cd840972..c1c1dfb4abda 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py @@ -706,7 +706,7 @@ def start_copy_from_url(self, source_url, **kwargs): :keyword metadata: Name-value pairs associated with the file as metadata. - :type metadata: dict[str, str] + :paramtype metadata: dict[str, str] :keyword lease: Required if the file has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py index 6335fd7ed1c4..e3b8d4a75928 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py @@ -338,8 +338,9 @@ def create_share(self, **kwargs): """Creates a new Share under the account. If a share with the same name already exists, the operation fails. - :keyword dict[str, str] metadata: + :keyword metadata: Name-value pairs associated with the share as metadata. + :paramtype metadata: dict[str, str] :keyword int quota: The quota to be allotted. :keyword access_tier: @@ -417,8 +418,9 @@ def create_snapshot( # type: ignore is taken, with a DateTime value appended to indicate the time at which the snapshot was taken. - :keyword dict[str, str] metadata: + :keyword metadata: Name-value pairs associated with the share as metadata. + :paramtype metadata: dict[str, str] :keyword int timeout: Sets the server-side timeout for the operation in seconds. For more details see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations. @@ -459,7 +461,9 @@ def delete_share( later deleted during garbage collection. :param delete_snapshots: - Indicates if snapshots are to be deleted. + Indicates if snapshots are to be deleted. If "True" or enum "include", snapshots will + be deleted (but not include leased). To include leased snapshots, specify the "include-leased" + enum. :type delete_snapshots: Optional[Union[bool, Literal['include', 'include-leased']]] :keyword lease: @@ -967,7 +971,7 @@ def create_directory(self, directory_name, **kwargs): The name of the directory. :keyword metadata: Name-value pairs associated with the directory as metadata. - :type metadata: dict[str, str] + :paramtype metadata: dict[str, str] :keyword int timeout: Sets the server-side timeout for the operation in seconds. For more details see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations. diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/models.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/models.py index 5506f614cbb9..78550376ac64 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/models.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/models.py @@ -453,19 +453,20 @@ def from_string(cls, permission): class Services(object): """Specifies the services accessible with the account SAS. - :param bool blob: - Access for the `~azure.storage.blob.BlobServiceClient` - :param bool queue: - Access for the `~azure.storage.queue.QueueServiceClient` - :param bool fileshare: - Access for the `~azure.storage.fileshare.ShareServiceClient` + :keyword bool blob: + Access for the `~azure.storage.blob.BlobServiceClient`. Default is False. + :keyword bool queue: + Access for the `~azure.storage.queue.QueueServiceClient`. Default is False. + :keyword bool fileshare: + Access for the `~azure.storage.fileshare.ShareServiceClient`. Default is False. """ - blob: bool = False - queue: bool = False - fileshare: bool = False - - def __init__(self, blob: bool = False, queue: bool = False, fileshare: bool = False): + def __init__( + self, *, + blob: bool = False, + queue: bool = False, + fileshare: bool = False + ) -> None: self.blob = blob self.queue = queue self.fileshare = fileshare @@ -493,7 +494,7 @@ def from_string(cls, string): res_queue = 'q' in string res_file = 'f' in string - parsed = cls(res_blob, res_queue, res_file) + parsed = cls(blob=res_blob, queue=res_queue, fileshare=res_file) parsed._str = string # pylint: disable = protected-access return parsed diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_file_client_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_file_client_async.py index 2e4cfc28dc04..a32c43e19664 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_file_client_async.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_file_client_async.py @@ -571,7 +571,7 @@ async def start_copy_from_url(self, source_url, **kwargs): :keyword metadata: Name-value pairs associated with the file as metadata. - :type metadata: dict[str, str] + :paramtype metadata: dict[str, str] :keyword lease: Required if the file has an active lease. Value can be a ShareLeaseClient object or the lease ID as a string. diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_client_async.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_client_async.py index d942fbd17acc..f17c347cd887 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_client_async.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/aio/_share_client_async.py @@ -201,8 +201,9 @@ async def create_share(self, **kwargs): """Creates a new Share under the account. If a share with the same name already exists, the operation fails. - :keyword dict[str, str] metadata: + :keyword metadata: Name-value pairs associated with the share as metadata. + :paramtype metadata: dict[str, str] :keyword int quota: The quota to be allotted. :keyword access_tier: @@ -280,8 +281,9 @@ async def create_snapshot( # type: ignore is taken, with a DateTime value appended to indicate the time at which the snapshot was taken. - :keyword dict[str, str] metadata: + :keyword metadata: Name-value pairs associated with the share as metadata. + :paramtype metadata: dict[str, str] :keyword int timeout: Sets the server-side timeout for the operation in seconds. For more details see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations. @@ -322,7 +324,9 @@ async def delete_share( later deleted during garbage collection. :param delete_snapshots: - Indicates if snapshots are to be deleted. + Indicates if snapshots are to be deleted. If "True" or enum "include", snapshots will + be deleted (but not include leased). To include leased snapshots, specify the "include-leased" + enum. :type delete_snapshots: Optional[Union[bool, Literal['include', 'include-leased']]] :keyword int timeout: diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/models.py b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/models.py index 34ce22b7a632..1be0b60b7e78 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/models.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/models.py @@ -453,19 +453,20 @@ def from_string(cls, permission): class Services(object): """Specifies the services accessible with the account SAS. - :param bool blob: - Access for the `~azure.storage.blob.BlobServiceClient` - :param bool queue: - Access for the `~azure.storage.queue.QueueServiceClient` - :param bool fileshare: - Access for the `~azure.storage.fileshare.ShareServiceClient` + :keyword bool blob: + Access for the `~azure.storage.blob.BlobServiceClient`. Default is False. + :keyword bool queue: + Access for the `~azure.storage.queue.QueueServiceClient`. Default is False. + :keyword bool fileshare: + Access for the `~azure.storage.fileshare.ShareServiceClient`. Default is False. """ - blob: bool = False - queue: bool = False - fileshare: bool = False - - def __init__(self, blob: bool = False, queue: bool = False, fileshare: bool = False): + def __init__( + self, *, + blob: bool = False, + queue: bool = False, + fileshare: bool = False + ) -> None: self.blob = blob self.queue = queue self.fileshare = fileshare @@ -493,7 +494,7 @@ def from_string(cls, string): res_queue = 'q' in string res_file = 'f' in string - parsed = cls(res_blob, res_queue, res_file) + parsed = cls(blob=res_blob, queue=res_queue, fileshare=res_file) parsed._str = string # pylint: disable = protected-access return parsed