pass in value by param name instead of in headers
@@ -1521,11 +1521,12 @@ class BlobClient(StorageAccountHostsMixin): # pylint: disable=too-many-public-m
kwargs['immutability_policy_expiry'] = immutability_policy.expiry_time
kwargs['immutability_policy_mode'] = immutability_policy.policy_mode
+ tier = None
if premium_page_blob_tier:
try:
- headers['x-ms-access-tier'] = premium_page_blob_tier.value # type: ignore
+ tier = premium_page_blob_tier.value # type: ignore
except AttributeError:
- headers['x-ms-access-tier'] = premium_page_blob_tier # type: ignore
+ tier = premium_page_blob_tier # type: ignore
blob_tags_string = serialize_blob_tags_header(kwargs.pop('tags', None))
@@ -1541,6 +1542,7 @@ class BlobClient(StorageAccountHostsMixin): # pylint: disable=too-many-public-m
'cpk_info': cpk_info,
'blob_tags_string': blob_tags_string,
'cls': return_response_headers,
+ "tier": tier,
'headers': headers}
options.update(kwargs)
return options
