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

revamp SAS builders to model operations #879

Merged
merged 4 commits into from
Jul 1, 2022

Conversation

bmc-msft
Copy link
Contributor

Moved to using the same Builder pattern implemented by Operations, such that required params are provided by the creator, with setters for optional fields.

Brian Caswell added 2 commits June 30, 2022 17:21
Moved to using the same Builder pattern implemented by Operations, such
that required params are provided by the creator, with setters for
optional fields.
@bmc-msft bmc-msft linked an issue Jun 30, 2022 that may be closed by this pull request
resource: AccountSasResource,
resource_type: AccountSasResourceType,
expiry: DateTime<Utc>,
permissions: AccountSasPermissions,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should not take permissions by default and just default to read permissions....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps. Though, I am of a mind that as SAS urls are a way to convey access controls, I think it is reasonable to require the user to specify their desired intent.

The python SDK, which I'm the most familiar with, requires the credentials to be provided.

@rylev rylev merged commit 66abb84 into Azure:main Jul 1, 2022
@bmc-msft bmc-msft deleted the revamp-sas-builders branch July 1, 2022 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return an error instead of panicking when finalizing builders
2 participants