Skip to content

Conversation

@juniwang
Copy link
Member

@juniwang juniwang commented Apr 18, 2018

We used Signalr because the python SDK class names will look better(signalr_XXX instead of signal_rXXX). But I confirmed with Python SDK team the names are transparent to customers hence that won’t be an issue. In this PR, we are going roll back the original SignalR

Tested on local follow https://github.com/Azure/adx-documentation-pr/wiki/Azure-Swagger-Tools. All validations passed.

@AutorestCI
Copy link

AutorestCI commented Apr 18, 2018

Automation for azure-sdk-for-node

Nothing to generate for azure-sdk-for-node

@AutorestCI
Copy link

AutorestCI commented Apr 18, 2018

Automation for azure-sdk-for-python

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

@AutorestCI
Copy link

AutorestCI commented Apr 18, 2018

Automation for azure-libraries-for-java

The initial PR has been merged into your service PR:
AutorestCI/azure-libraries-for-java#84

@AutorestCI
Copy link

AutorestCI commented Apr 18, 2018

Automation for azure-sdk-for-go

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

@azuresdkciprbot
Copy link

Hi There,

I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result:

File: specification/signalr/resource-manager/readme.md
Before the PR: Warning(s): 1 Error(s): 0
After the PR: Warning(s): 1 Error(s): 0

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

],
"description": "Lists all of the available REST API operations of the Microsoft.SignalRService provider.",
"operationId": "Signalr_ListOperations",
"operationId": "SignalR_ListOperations",
Copy link
Member

Choose a reason for hiding this comment

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

You should call this one Operations_List. It will be consistent with everybody else:

Copy link
Contributor

Choose a reason for hiding this comment

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

Issue #2899

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

],
"description": "Checks that the SignalR name is valid and is not already in use.",
"operationId": "Signalr_CheckNameAvailability",
"operationId": "SignalR_CheckNameAvailability",
Copy link
Member

Choose a reason for hiding this comment

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

Why don't you call the operation ID directly "Accounts"? right now, this is redundant: we know it's signal R and gives Python code like that (but I guess it will be close in other language as well):

import azure.mgmt.signalr
client = azure.mgmt.signalr.SignalRManagementClient(**parameters)
client.signal_r.create_or_update(**parameters)

wouldn't be better with:

import azure.mgmt.signalr
client = azure.mgmt.signalr.SignalRManagementClient(**parameters)
client.accounts.create_or_update(**parameters)

Copy link
Member

Choose a reason for hiding this comment

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

Note that I said "accounts", but I mean "something with is not the 'signal_r' string"

Copy link
Contributor

Choose a reason for hiding this comment

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

Issue #2899

Copy link
Member Author

Choose a reason for hiding this comment

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

We decided to using Signalr for OperationId/Schema Id for the client SDKs.

Copy link
Member Author

Choose a reason for hiding this comment

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

See PR #2904. In the new version, it would look like:

import azure.mgmt.signalr
client = azure.mgmt.signalr.SignalrManagementClient(**parameters)
client.signalr.create_or_update(**parameters)

To keep the name consistent, we updated all Schema Ids such as SignalrResource, SignalrManagementClient. I checked the generated Python/.Net SDK files, the file names and class names are expected as Signalr. SignalR will only exist in comments, descriptions and RP namespace.

Copy link
Member

@lmazuel lmazuel left a comment

Choose a reason for hiding this comment

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

I tag "request change" just to be sure you got a chance to think about my comments, but I won't block Sergey to merge if you want to keep it.

@sergey-shandar sergey-shandar mentioned this pull request Apr 18, 2018
Copy link
Contributor

@sergey-shandar sergey-shandar left a comment

Choose a reason for hiding this comment

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

@juniwang please, address issues in another PR. Let me know the number of the new PR so I can assign it to myself.

@azuresdkciprbot
Copy link

Hi There,

I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result:

File: specification/signalr/resource-manager/readme.md
Before the PR: Warning(s): 1 Error(s): 0
After the PR: Warning(s): 1 Error(s): 0

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

@sergey-shandar
Copy link
Contributor

@lmazuel could you approve this PR? I can't merge without your approval.

@lmazuel lmazuel merged commit 5d44de4 into Azure:master Apr 19, 2018
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.

6 participants