Skip to content

Conversation

@balasubramanian-s
Copy link

@balasubramanian-s balasubramanian-s commented Dec 1, 2025

Summary

This PR renames and refactors azure_graph_rbac to azure_graph_rbac2 with updated namespaces and dependencies to use v2 variants of ms_rest and ms_rest_azure.

Changes Made

1. Gem Renaming

  • Renamed gem from azure_graph_rbac to azure_graph_rbac2
  • Updated gem specification in azure_graph_rbac2.gemspec

2. Namespace Updates

  • Updated module namespace: Azure::GraphRbac::Azure::GraphRbac2::
  • Updated all references across all Ruby files in the gem

3. Dependency Updates

  • Updated runtime dependency from ms_rest_azure to ms_rest_azure2
  • Updated require 'ms_rest' to require 'ms_rest2'
  • Updated require 'ms_rest_azure' to require 'ms_rest_azure2'

4. Code Updates

  • Updated all MsRest:: namespace references to MsRest2:: (127 occurrences)
  • Updated all MsRestAzure:: namespace references to MsRestAzure2::
  • Updated class inheritance: MsRestAzure::AzureServiceClientMsRestAzure2::AzureServiceClient
  • Updated includes: include MsRestAzureinclude MsRestAzure2
  • Updated serialization: include MsRestAzure::Serializationinclude MsRestAzure2::Serialization
  • Updated error handling classes: MsRest2::HttpOperationError, MsRest2::DeserializationError, MsRestAzure2::AzureOperationError
  • Updated middleware references: MsRest2::RetryPolicyMiddleware
  • Updated credentials: MsRest2::ServiceClientCredentials, MsRest2::TokenCredentials

5. Files Modified

  • 51 files changed with 108 insertions and 108 deletions
  • All generated client files, models, spec files, and profile modules updated
  • Maintained backward compatibility through v2 namespace structure

Testing

All namespace references have been systematically verified to ensure:

  • No old ms_rest require statements remain
  • No old ms_rest_azure require statements remain
  • No old MsRest:: namespace references remain
  • No old MsRestAzure:: namespace references remain

Related Work

This change is part of updating the Azure SDK for Ruby to use v2 variants of core dependencies, ensuring compatibility with updated authentication and REST client libraries.

JIRA

CHEF-28640

- Renamed azure_graph_rbac gem to azure_graph_rbac2
- Updated all namespace references from Azure::GraphRbac to Azure::GraphRbac2
- Updated Azure::GraphRbac::V1_6 to Azure::GraphRbac2::V1_6 throughout codebase
- Updated folder structure: data/azure_graph_rbac → data/azure_graph_rbac2
- Updated gemspec file: azure_graph_rbac.gemspec → azure_graph_rbac2.gemspec
- Updated all require statements and autoload paths
- Updated configuration files: config.json, GEM_VERSIONS, dir_metadata.json, profiles.json
- Updated azure_sdk.gemspec dependencies and profile modules
- Updated main Gemfile path references
- Updated spec files and test helpers
- Updated ChangeLog.md documentation references
- Updated profile classes and adapters in azure_sdk integration
- Maintained backward compatibility for API functionality under new namespace

This change allows the gem to coexist with the original azure_graph_rbac if needed
while providing the same Azure Active Directory Graph RBAC functionality.
@balasubramanian-s balasubramanian-s self-assigned this Dec 1, 2025
Signed-off-by: balasubramanian-s <balasubramanian.s@progress.com>
@balasubramanian-s balasubramanian-s changed the title CHEF-28640: Rename azure_graph_rbac to azure_graph_rbac2 CHEF-28640-Rename azure_graph_rbac to azure_graph_rbac2 Dec 1, 2025
- Updated require 'ms_rest' to require 'ms_rest2'
- Updated require 'ms_rest_azure' to require 'ms_rest_azure2'
- Updated all MsRest:: namespace references to MsRest2::
- Updated all MsRestAzure:: namespace references to MsRestAzure2::
- Updated include MsRestAzure to include MsRestAzure2
- Updated class inheritance from MsRestAzure::AzureServiceClient to MsRestAzure2::AzureServiceClient
- Updated all error handling to use MsRest2:: and MsRestAzure2:: classes
- Updated all middleware references to MsRest2::RetryPolicyMiddleware
- Updated spec helper to use MsRestAzure2 classes
- Updated profile client to reference MsRest2::TokenCredentials

This ensures compatibility with the new v2 gems (ms_rest2 and ms_rest_azure2)

Signed-off-by: balasubramanian-s <balasubramanian.s@progress.com>
Signed-off-by: balasubramanian-s <balasubramanian.s@progress.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants