Skip to content

[Fileshare] Share enable protocol share squash root - #15048

Merged
Tamer (tasherif-msft) merged 19 commits into
Azure:feature/storage-stg75from
tasherif-msft:root-squash
Dec 1, 2020
Merged

[Fileshare] Share enable protocol share squash root#15048
Tamer (tasherif-msft) merged 19 commits into
Azure:feature/storage-stg75from
tasherif-msft:root-squash

Conversation

@tasherif-msft

Copy link
Copy Markdown
Contributor

No description provided.

@tasherif-msft Tamer (tasherif-msft) changed the title [Fileshare] Share enable protocol share squash root [WIP][Fileshare] Share enable protocol share squash root Nov 6, 2020
@tasherif-msft Tamer (tasherif-msft) changed the title [WIP][Fileshare] Share enable protocol share squash root [Fileshare] Share enable protocol share squash root Nov 10, 2020
@tasherif-msft Tamer (tasherif-msft) added the feature-request This issue requires a new behavior in the product in order be resolved. label Nov 10, 2020
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:

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown
Contributor

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?

@tasherif-msft Tamer (tasherif-msft) Dec 1, 2020

Copy link
Copy Markdown
Contributor Author

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 Anna Tisch (@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)

Copy link
Copy Markdown
Contributor

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!

@tasherif-msft
Tamer (tasherif-msft) merged commit d1e0365 into Azure:feature/storage-stg75 Dec 1, 2020
Tamer (tasherif-msft) added a commit that referenced this pull request Dec 3, 2020
* [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 <69483382+tasherif-msft@users.noreply.github.com>

* [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 <49707495+xiafu-msft@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-request This issue requires a new behavior in the product in order be resolved. Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants