[Blob][STG78]Object Imutability Policy (Version Level Worm) - #19098
Conversation
Gauri Lamunion (gapra-msft)
left a comment
There was a problem hiding this comment.
public API looks good. Please ask Kamil about the bundled vs unbundled immutabilitypolicy stuff
| :keyword ~datetime.datetime immutability_policy_expiry_time: | ||
| Specifies the date time when the blobs immutability policy is set to expire. | ||
| :keyword immutability_policy_mode: | ||
| Specifies the immutability policy mode to set on the blob. | ||
| :paramtype immutability_policy_mode: ~azure.storage.blob.BlobImmutabilityPolicyMode or str |
There was a problem hiding this comment.
Hi Kamil Sobol (@kasobol-msft) I think we need your thoughts here.
Gauri Gauri Lamunion (@gapra-msft) and I were discussing about these two parameters. For Java and .Net these two parameters are grouped into a class called BlobImmutabilityPolicy, while in Python we don't have the overloading concern so usually we just list the parameters. Do you have any thoughts? Should we keep it consistent with Java and .Net or leave it like this?
Also Anna suggested to rename these two parameters to expiry and mode, and I put the reason why I haven't renamed them yet https://apiview.dev/Assemblies/Review/266426541eba45098d08bbddfb5ce8ac/7977909c50af4022868fd86d76bbc17c#azure.storage.blob.aio.BlobClient.set_immutability_policy:async.param(immutability_policy_mode
Thanks for your input!
There was a problem hiding this comment.
I'd group them together in both places. (we seem to do this from time to time for inputs that belong together
)There was a problem hiding this comment.
We can group them together just some params are not grouped together and they are all for conditional match
|
/azp run storage - python - tests |
|
No pipelines are associated with this pull request. |
|
/azp run python - storage - tests |
|
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
* [Blob][STG78]Object Imutability Policy (Version Level Worm)
* generated from swaggers * new support service versions * regenrated * [STG78] Added Quick Query Parquet Dialect (#18904) * Added Quick Query Dialect * fixed ci * fix ci path * anna comments * removed parquet type * reverted versions * reverted versions * fixed dep * [Blob][STG78]List Deleted Root Blob with Versions (#19097) * [Blob][STG78]List Deleted Root Blob with Versions * Update test_container_async.py * [STG78] Copy Source OAuth Token Support (#18998) * OAuth Copy Source Support * added tokens to blob client * added support in file client * Added tests * regenerated * Added sync tests and renamed param * added some async tests * removed import and fixed desc and validation * added more tests * remove import * fixed ci * [Blob][STG78]Object Imutability Policy (Version Level Worm) (#19098) * [Blob][STG78]Object Imutability Policy (Version Level Worm) * [STG78][FileShare]List Files v2 (#19017) * [STG78][FileShare]List Files v2 * fix pylint * fix live test Co-authored-by: Xiaoxi Fu <49707495+xiafu-msft@users.noreply.github.com> Co-authored-by: xiafu <xiafu@microsoft.com>
No description provided.