-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Blob][STG78]Object Imutability Policy (Version Level Worm) #19098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
gapra-msft
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @kasobol-msft I think we need your thoughts here.
Gauri @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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd group them together in both places. (we seem to do this from time to time for inputs that belong together
azure-sdk-for-python/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py
Lines 538 to 540 in a65e853
| :keyword ~azure.storage.blob.ContentSettings content_settings: | |
| ContentSettings object used to set blob properties. Used to set content type, encoding, | |
| language, disposition, md5, and cache control. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can group them together just some params are not grouped together and they are all for conditional match
azure-sdk-for-python/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py
Lines 514 to 530 in a65e853
| :keyword ~datetime.datetime if_modified_since: | |
| A DateTime value. Azure expects the date value passed in to be UTC. | |
| If timezone is included, any non-UTC datetimes will be converted to UTC. | |
| If a date is passed in without timezone info, it is assumed to be UTC. | |
| Specify this header to perform the operation only | |
| if the resource has been modified since the specified time. | |
| :keyword ~datetime.datetime if_unmodified_since: | |
| A DateTime value. Azure expects the date value passed in to be UTC. | |
| If timezone is included, any non-UTC datetimes will be converted to UTC. | |
| If a date is passed in without timezone info, it is assumed to be UTC. | |
| Specify this header to perform the operation only if | |
| the resource has not been modified since the specified date/time. | |
| :keyword str etag: | |
| The destination ETag value, or the wildcard character (*). Used to check if the resource has changed, | |
| and act according to the condition specified by the `match_condition` parameter. | |
| :keyword ~azure.core.MatchConditions match_condition: | |
| The destination match condition to use upon the etag. |
|
/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 <[email protected]> Co-authored-by: xiafu <[email protected]>
No description provided.