@@ -93,9 +93,9 @@ class BlockBlobService(BaseBlobService):
9393 MAX_BLOCK_SIZE = 4 * 1024 * 1024
9494 MIN_LARGE_BLOCK_UPLOAD_THRESHOLD = 4 * 1024 * 1024 + 1
9595
96- def __init__ (self , account_name = None , account_key = None , sas_token = None ,
97- is_emulated = False , protocol = DEFAULT_PROTOCOL , endpoint_suffix = SERVICE_HOST_BASE ,
98- custom_domain = None , request_session = None , connection_string = None , socket_timeout = None ):
96+ def __init__ (self , account_name = None , account_key = None , sas_token = None , is_emulated = False ,
97+ protocol = DEFAULT_PROTOCOL , endpoint_suffix = SERVICE_HOST_BASE , custom_domain = None ,
98+ request_session = None , connection_string = None , socket_timeout = None , token_credential = None ):
9999 '''
100100 :param str account_name:
101101 The storage account name. This is used to authenticate requests
@@ -134,11 +134,15 @@ def __init__(self, account_name=None, account_key=None, sas_token=None,
134134 :param int socket_timeout:
135135 If specified, this will override the default socket timeout. The timeout specified is in seconds.
136136 See DEFAULT_SOCKET_TIMEOUT in _constants.py for the default value.
137+ :param token_credential:
138+ A token credential used to authenticate HTTPS requests. The token value
139+ should be updated before its expiration.
140+ :type `~azure.storage.common.TokenCredential`
137141 '''
138142 self .blob_type = _BlobTypes .BlockBlob
139143 super (BlockBlobService , self ).__init__ (
140144 account_name , account_key , sas_token , is_emulated , protocol , endpoint_suffix ,
141- custom_domain , request_session , connection_string , socket_timeout )
145+ custom_domain , request_session , connection_string , socket_timeout , token_credential )
142146
143147 def put_block (self , container_name , blob_name , block , block_id ,
144148 validate_content = False , lease_id = None , timeout = None ):
0 commit comments