-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Fileshare] Share enable protocol share squash root #15048
[Fileshare] Share enable protocol share squash root #15048
Conversation
@@ -332,6 +334,10 @@ class ShareProperties(DictMixin): | |||
:ivar int remaining_retention_days: | |||
To indicate how many remaining days the deleted share will be kept. | |||
This is a service returned value, and the value will be set when list shared including deleted ones. | |||
:ivar ~azure.storage.fileshare.models.ShareRootSquash or str root_squash: | |||
Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash'. | |||
:ivar ~azure.storage.fileshare.models.ShareProtocols or str protocols: |
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.
type should be a list
@@ -314,6 +316,13 @@ def create_share(self, **kwargs): | |||
|
|||
:keyword int timeout: | |||
The timeout parameter is expressed in seconds. | |||
:keyword protocols: | |||
Protocols to enable on the share. Only one protocol can be enabled on the share. | |||
:paramtype protocols: str or ~azure.storage.fileshare.ShareProtocols |
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.
type should be a list?
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.
No it shouldn't, as discussed with @annatisch, we will opt for using a string since users are allowed to use only one protocol at the moment. It doesn't make sense to have them pass ['SMB'] or ['NFS']. As Anna recommended we will stick to string for now and then in the future we can simply change the type to Union[str, [protocols]]
. However, it is important to note that we are in fact deserializing the enabled protocols on a share into a list of protocol(s)/str, i.e in ShareProperties
(as discussed in the archboard meeting)
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.
as long as you have a plan to make it a list in the future I'm good with it!
* [Blob]Generate STG75 Blob Tags (#14986) * [Blob]Generate STG75 Blob Tags * update api version * generator problem * Fixed tags value * Removed tag value altogether Co-authored-by: tasherif-msft <[email protected]> * [Storage][STG75]Lease on Get/Set Tags & Find Blob by Tags (#15090) * [Storage][STG75]Lease on Get/Set Tags & Find Blob by Tags * pylint * [Fileshare] Share enable protocol share squash root (#15048) * generated root squash swagger * added api version * added new params * fixed valueerror * rerecorded * docstring fix * fixed docstrings * added sync tests * added async tests * fixed docstrings * renamed params and class * renamed params * renamed enabled protocols to protocols * fixed tests * fixed the validation issue * changed models to support list[str] * added tests * changed models type * [Blob] Added upload blob from url feature (#15027) * fixed swagger and added put blob * added method signitures * added str * added more kwargs docstrings * finished adding kwargs * return type * implemented new api * BlockBlob client fix * renamed param * renamed param * added content length * test experiment * added tests sync * added all tests * attempting to fix ci * added if tags match cond keyword * added more tests * added extra header * added more tests and removed keywords * recorded sync tests * added async tests * fixed import issue * rerecorded test * changed docstring * added overwrite and tests * rerecorded * cleaned up options method * cleaned up options method some more * fixed merge conflict * marked playback only for fileshares Co-authored-by: Xiaoxi Fu <[email protected]>
Update webpubsub.json (Azure#15048) * Update webpubsub.json * Remove JS/Java autorest Since the SDK does not rely on that
No description provided.