-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Replace Sql management client using generic rest client #11393
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
Conversation
|
Can one of the admins verify this patch? |
| else | ||
| { | ||
| IPage<PrivateLinkService> plsPage; | ||
| IPage<Microsoft.Azure.Management.Network.Models.PrivateLinkService> plsPage; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: suggest to use using namespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using this one now.
using NM = Microsoft.Azure.Management.Network.Models;
| /// the private endpoint connection.</param> | ||
| /// <param name="provisioningState">State of the private endpoint | ||
| /// connection.</param> | ||
| public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperty privateEndpoint = default(PrivateEndpointProperty), PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionStateProperty), string provisioningState = default(string)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: usually we use null as default value for reference object instead of default(xxx), I guess this is generated code, so should be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copied from generated code.
|
|
||
| namespace Microsoft.Azure.Commands.Network.PrivateLinkService.PrivateLinkServiceProvider | ||
| { | ||
| public class PrivateLinkProviderFactory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mark this class as internal?
| switch (privateLinkResourceType.ToLower()) | ||
| { | ||
| case NETWORKING_TYPE: | ||
| default: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for unknown type, should we return error or throw exceptions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's network original logic. If resource type is unknown, returns NetworkProvider.
|
|
||
| namespace Microsoft.Azure.Commands.Network.PrivateLinkService.PrivateLinkServiceProvider | ||
| { | ||
| public class GenericProvider : IPrivateLinkProvider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mark as internal?
Replace Sql management client using generic rest client
Description
Replace Sql management client using generic rest client
Checklist
CONTRIBUTING.mdChangeLog.mdfile(s) has been updated:ChangeLog.mdfile can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md## Upcoming Releaseheader -- no new version header should be added