-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Convert Notificationhubs Swagger to Tsp #34320
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
base: main
Are you sure you want to change the base?
Conversation
Next Steps to MergeNext steps that must be taken to merge this PR:
|
PR validation pipeline restarted successfully. If there is ApiView generated, it will be updated in this comment. |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews
|
…into Convert-Notificationhubs
…n/azure-rest-api-specs into Convert-Notificationhubs
…n/azure-rest-api-specs into Convert-Notificationhubs
…n/azure-rest-api-specs into Convert-Notificationhubs
*/ | ||
@visibility(Lifecycle.Read) | ||
// FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. | ||
createdTime?: utcDateTime; |
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.
what was the original documented format?
*/ | ||
@visibility(Lifecycle.Read) | ||
privateLinkServiceArmRegion?: 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.
[ARMBlockingComment] possible antipattern documenting internal private link contracts as if external?
This comment suggests its an internal API contract, in which case it shouldn't even be documented here should it?
/**
- Represents a connectivity information to Notification Hubs namespace. This is part of PrivateLinkService proxy that tell
- the Networking RP how to connect to the Notification Hubs namespace.
*/
|
||
/** | ||
* A customer-visible sub-resource of Private Endpoint, which describe the connection between Private Endpoint and Notification Hubs 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.
customer-visible ? that should go without saying, in the public API doc!
} | ||
|
||
/** | ||
* Result of the request to list SQL operations. |
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.
/** | ||
* Result of the request to list SQL operations. | ||
*/ | ||
model Operation { |
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.
model OperationListResult is Azure.Core.Page<Operation>; | ||
|
||
#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" | ||
model OperationDisplay { |
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.
* ARM resource ID of the Private Endpoint. This may belong to different subscription and resource group than a Notification Hubs namespace. | ||
*/ | ||
@visibility(Lifecycle.Read) | ||
id?: 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.
/** | ||
* Private Endpoint Connection properties. | ||
*/ | ||
model PrivateEndpointConnectionProperties { |
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.
* Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace. | ||
*/ | ||
@parentResource(NamespaceResource) | ||
model PrivateEndpointConnectionResource |
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.
|
||
namespace Microsoft.NotificationHubs; | ||
/** | ||
* A Private Link Arm Resource. |
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.
@armResourceOperations | ||
interface PrivateLinkResources { | ||
/** | ||
* Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. |
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.
getGroupId is ArmResourceRead<PrivateLinkResource>; | ||
|
||
/** | ||
* Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. |
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.
Whats a SID? Are sids or package ids actually secrets? I'm a little confused about this, and just want some explanation or sanity check Refers to: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/notificationhubs.json:4028 in 1273ec6. [](commit_id = 1273ec6, deletion_comment = False) |
This PR migrates your latest version (identified by the tag in your readme.md) of swagger to TypeSpec. We already tried our best to make sure the TypeSpec represents same as previous swagger. Since we lack the business knowledge, please validate this PR again to make sure it's functional equivalent as before. The local validation step is at Getting started | TypeSpec Azure
Besides, TypeSpec encourages to follow ARM guidelines. Therefore, some representations in your previous swagger will be fixed to follow these guidelines. When you see differences in your local validation, please keep this note in mind.
Please reach out to TypeSpec Discussions Channel if there is any help needed.