Skip to content
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

Merged
merged 19 commits into from
Dec 1, 2020

Conversation

tasherif-msft
Copy link
Contributor

No description provided.

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Nov 5, 2020
@Azure Azure deleted a comment from check-enforcer bot Nov 6, 2020
@tasherif-msft 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 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 tasherif-msft added the feature-request This issue requires a new behavior in the product in order be resolved. label Nov 10, 2020
@@ -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:
Copy link
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

@@ -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
Copy link
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?

Copy link
Contributor Author

@tasherif-msft tasherif-msft Dec 1, 2020

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)

Copy link
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 tasherif-msft merged commit d1e0365 into Azure:feature/storage-stg75 Dec 1, 2020
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 <[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]>
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-python that referenced this pull request Jul 20, 2021
Update webpubsub.json (Azure#15048)

* Update webpubsub.json

* Remove JS/Java autorest 

Since the SDK does not rely on that
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