-
Notifications
You must be signed in to change notification settings - Fork 5.1k
[RedisEnterprise] SDK validation for TypeSpec #54448
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 PR validates the TypeSpec changes for the RedisEnterprise SDK by regenerating the SDK code for a new preview API version (2025-08-01-preview). The changes primarily involve updating API version references, adding support for a new Migration resource, introducing maintenance window configuration, and updating example file paths to reference the new preview API version.
- Updates API version from
2025-07-01to2025-08-01-previewacross all generated files - Introduces new
RedisEnterpriseMigrationresource with Get, CreateOrUpdate, and Cancel operations - Adds maintenance window configuration support to cluster resources
- Updates sample/test files to reference the new preview API version examples
- Adds
groupIdsproperty to private endpoint connection data model
Reviewed changes
Copilot reviewed 3 out of 75 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Sample_SubscriptionResourceExtensions.cs | Updates example paths from stable to preview API version |
| Sample_RedisEnterprisePrivateEndpointConnectionResource.cs | Updates example paths to preview version |
| Sample_RedisEnterprisePrivateEndpointConnectionCollection.cs | Updates example paths to preview version |
| Sample_RedisEnterpriseMigrationResource.cs | New sample file for migration resource operations |
| Sample_RedisEnterpriseDatabaseResource.cs | Updates example paths and reorders method samples |
| Sample_RedisEnterpriseDatabaseCollection.cs | Updates example paths to preview version |
| Sample_RedisEnterpriseClusterResource.cs | Adds System.Xml import and maintenance window samples |
| Sample_RedisEnterpriseClusterCollection.cs | Adds System.Xml import and maintenance window samples |
| Sample_AccessPolicyAssignmentResource.cs | Updates example paths to preview version |
| Sample_AccessPolicyAssignmentCollection.cs | Updates example paths to preview version |
| autorest.md | Updates spec reference, adds new rename mappings, and format directives |
| RedisEnterpriseRestOperations.cs | Updates API version and reorders methods |
| PrivateLinkResourcesRestOperations.cs | Updates API version and adds pagination support |
| PrivateEndpointConnectionsRestOperations.cs | Updates API version and adds pagination support |
| OperationsStatusRestOperations.cs | Updates API version and documentation |
| MigrationRestOperations.cs | New REST operations file for migration resource |
| DatabasesRestOperations.cs | Updates API version and reorders operation methods |
| AccessPolicyAssignmentRestOperations.cs | Updates API version and reorders methods |
| RedisEnterprisePrivateEndpointConnectionResource.cs | Updates default API version references |
| RedisEnterprisePrivateEndpointConnectionData.cs | Adds groupIds property to the model |
| RedisEnterprisePrivateEndpointConnectionData.Serialization.cs | Adds serialization for groupIds property |
| RedisEnterprisePrivateEndpointConnectionCollection.cs | Adds pagination support and updates API version |
| RedisEnterpriseMigrationResource.cs | New resource class for migration operations |
| RedisEnterpriseMigrationResource.Serialization.cs | Serialization support for migration resource |
| RedisEnterpriseMigrationData.cs | Data model for migration resource |
| RedisEnterpriseMigrationData.Serialization.cs | Serialization implementation for migration data |
| RedisEnterpriseDatabaseCollection.cs | Updates default API version |
| RedisEnterpriseClusterResource.cs | Adds migration resource accessor and pagination support |
| RedisEnterpriseClusterData.cs | Adds maintenance configuration property |
| UnknownMigrationProperties.cs | New unknown type handler for migration properties |
sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/autorest.md
Outdated
Show resolved
Hide resolved
| System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RedisEnterprise.Models.ImportRedisEnterpriseDatabaseContent>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } | ||
| } | ||
| [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] | ||
| public readonly partial struct MaintenanceDayOfWeek : System.IEquatable<Azure.ResourceManager.RedisEnterprise.Models.MaintenanceDayOfWeek> |
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.
I think we need to make this more specific to this RP to avoid collision.
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.
Renamed to ClusterCustomMaintenanceDayOfWeek
| public static bool operator !=(Azure.ResourceManager.RedisEnterprise.Models.MaintenanceDayOfWeek left, Azure.ResourceManager.RedisEnterprise.Models.MaintenanceDayOfWeek right) { throw null; } | ||
| public override string ToString() { throw null; } | ||
| } | ||
| public partial class MaintenanceWindow : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.RedisEnterprise.Models.MaintenanceWindow>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RedisEnterprise.Models.MaintenanceWindow> |
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.
name too generic
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.
Renamed to ClusterCustomMaintenanceWindow
| string System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RedisEnterprise.Models.MaintenanceWindow>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } | ||
| System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RedisEnterprise.Models.MaintenanceWindow>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } | ||
| } | ||
| public partial class MaintenanceWindowSchedule : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.RedisEnterprise.Models.MaintenanceWindowSchedule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RedisEnterprise.Models.MaintenanceWindowSchedule> |
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.
name too generic
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.
Renamed to ClusterCustomMaintenanceWindowSchedule
| System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RedisEnterprise.Models.MaintenanceWindowSchedule>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } | ||
| } | ||
| [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] | ||
| public readonly partial struct MaintenanceWindowType : System.IEquatable<Azure.ResourceManager.RedisEnterprise.Models.MaintenanceWindowType> |
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.
name too generic
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.
Renamed to ClusterCustomMaintenanceWindowType
| public static bool operator !=(Azure.ResourceManager.RedisEnterprise.Models.MaintenanceWindowType left, Azure.ResourceManager.RedisEnterprise.Models.MaintenanceWindowType right) { throw null; } | ||
| public override string ToString() { throw null; } | ||
| } | ||
| public abstract partial class MigrationProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.RedisEnterprise.Models.MigrationProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RedisEnterprise.Models.MigrationProperties> |
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.
this should follow the same naming pattern for Migration model
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.
Renamed to RedisEnterpriseMigrationProperties
| System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RedisEnterprise.Models.MigrationProperties>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } | ||
| } | ||
| [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] | ||
| public readonly partial struct MigrationProvisioningState : System.IEquatable<Azure.ResourceManager.RedisEnterprise.Models.MigrationProvisioningState> |
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.
same here
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.
Renamed to RedisEnterpriseMigrationProvisioningState
TSP PR: Azure/azure-rest-api-specs#38436
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.