-
Notifications
You must be signed in to change notification settings - Fork 5.1k
[Attestation] SDK validation for TypeSpec #54423
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
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
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.
Pull request overview
This pull request updates the Azure.ResourceManager.Attestation SDK to validate against TypeSpec definitions, transitioning from API version 2021-06-01-preview to the stable 2021-06-01 version. The changes include model renames for better clarity, new authentication type support for TPM attestation, improved API structure with proper property exposure, and pagination support enhancements.
Key Changes:
- Upgraded API version from preview (
2021-06-01-preview) to stable (2021-06-01) - Renamed models for clarity:
JsonWebKey→AttestationPolicyJsonWebKey,PublicNetworkAccessType→AttestationProviderPublicNetworkAccessType - Added new
TpmAttestationAuthenticationTypeenum and support in creation/patch operations - Made
AttestationServicePatchSpecificParamspublic and properly exposed asPropertiesonAttestationProviderPatch - Renamed operations:
GetAttestationProvidersByDefaultProvider→GetDefaultAttestationProviders,GetDefaultByLocationAttestationProvider→GetDefaultAttestationProviderByLocation - Added pagination support for private endpoint connection listing
Reviewed changes
Copilot reviewed 7 out of 42 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| autorest.md | Updated spec reference and added model rename mappings and operation name overrides |
| TpmAttestationAuthenticationType.cs | New enum type for TPM attestation authentication settings |
| PublicNetworkAccessType.cs | Removed (replaced by AttestationProviderPublicNetworkAccessType) |
| AttestationProviderPublicNetworkAccessType.cs | New enum type replacing PublicNetworkAccessType |
| AttestationPolicyJsonWebKey.cs | Renamed from JsonWebKey for better clarity |
| AttestationServicePatchSpecificParams.cs | Changed from internal to public, added TpmAttestationAuthentication property |
| AttestationServiceCreationSpecificParams.cs | Added TpmAttestationAuthentication property, updated to use renamed types |
| AttestationProviderPatch.cs | Exposed Properties directly instead of flattened property |
| AttestationProviderData.cs | Added TpmAttestationAuthentication property, updated type references |
| AttestationPrivateLinkResourceListResult.cs | Updated constructor, added NextLink property for pagination |
| AttestationPrivateEndpointConnectionListResult.cs | Updated constructor, added NextLink property for pagination |
| PrivateEndpointConnectionsRestOperations.cs | Added NextPage methods for pagination support |
| AttestationProvidersRestOperations.cs | Reordered methods (no functional changes to existing operations) |
| Extension files | Updated method names per operation overrides |
| Test files | Updated to use new type names and proper property structure |
| API files | Updated public API surface to reflect all changes |
TSP PR: Azure/azure-rest-api-specs#37548
Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.