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

Rename Post to Grants #3947

Merged
merged 2 commits into from
Sep 24, 2018
Merged

Rename Post to Grants #3947

merged 2 commits into from
Sep 24, 2018

Conversation

lmazuel
Copy link
Member

@lmazuel lmazuel commented Sep 19, 2018

@shanepeckham Our naming convention should not use HTTP verbs as part of operation ID, but be more meaningfull. This PR renames "post" to "grants", this will make SDK looks like:

client.oauth2_permissions.grants()

which is very better user friendly. I do believe your CLI PR is not merged yet, so I think it's the right time to do that now. I discussed this with your initial reviewer @marstr and he agreed on that.

@yugangw-msft FYI

@AutorestCI
Copy link

AutorestCI commented Sep 19, 2018

Automation for azure-sdk-for-js

Nothing to generate for azure-sdk-for-js

@AutorestCI
Copy link

AutorestCI commented Sep 19, 2018

Automation for azure-sdk-for-python

A PR has been created for you based on this PR content.

Once this PR will be merged, content will be added to your service PR:
Azure/azure-sdk-for-python#2032

@AutorestCI
Copy link

AutorestCI commented Sep 19, 2018

Automation for azure-sdk-for-ruby

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-ruby#1584

@AutorestCI
Copy link

AutorestCI commented Sep 19, 2018

Automation for azure-sdk-for-node

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-node#3682

@AutorestCI
Copy link

AutorestCI commented Sep 19, 2018

Automation for azure-sdk-for-java

Nothing to generate for azure-sdk-for-java

@AutorestCI
Copy link

AutorestCI commented Sep 19, 2018

Automation for azure-sdk-for-go

Nothing to generate for azure-sdk-for-go

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@lmazuel lmazuel assigned lmazuel and unassigned sarangan12 Sep 19, 2018
@lmazuel lmazuel requested review from marstr and removed request for sarangan12 September 19, 2018 16:29
@@ -1628,13 +1628,13 @@
},
"post" : {
"tags": [
"OAuth2Permissions_post"
"OAuth2Permissions_Grants"
Copy link
Member

Choose a reason for hiding this comment

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

Making this plural suggests a read operation to me. I'd recommend "OAuth2Permissions_Grant" or even "OAuth2Permissions_CreateOrUpdate"

Copy link
Member Author

Choose a reason for hiding this comment

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

For a POST action I would avoid "create_or_update", I go for "grant" :)

@lmazuel
Copy link
Member Author

lmazuel commented Oct 10, 2018

@AutorestCI rebuild azure-sdk-for-python

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.

5 participants