Skip to content

[AutoRelease] t2-chaos-2025-05-01-30054(can only be merged by SDK owner) #40835

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

azure-sdk
Copy link
Collaborator

@Copilot Copilot AI review requested due to automatic review settings May 1, 2025 01:12
@azure-sdk
Copy link
Collaborator Author

Copy link
Contributor

@Copilot Copilot AI left a 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 updates the Chaos Management client to a new major release, reflecting changes for API version 2025-01-01 and updates to parameter names, overloads, and type annotations. Key changes include:

  • Renaming of parameters (e.g. “target” is now “resource”, “location_name” is now “location”) for consistency.
  • Updated default API version and additional overloads for create/update operations.
  • Refactoring to remove deprecated request conversion logic and improve type safety.

Reviewed Changes

Copilot reviewed 73 out of 74 changed files in this pull request and generated 1 comment.

File Description
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_targets_operations.py Renamed parameters and refactored create/update methods.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_configuration.py Updated API version default and added polling_interval attribute.
Other files Consistent refactoring with updated type annotations and removal of deprecated utilities.
Files not reviewed (1)
  • sdk/chaos/azure-mgmt-chaos/_meta.json: Language not supported
Comments suppressed due to low confidence (2)

sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_targets_operations.py:244

  • Renaming the parameter from 'target' to 'resource' improves clarity, but this is a breaking change. Ensure that all corresponding documentation and customer integrations are updated to reflect this parameter rename.
async def create_or_update(self, resource_group_name: str, parent_provider_namespace: str, parent_resource_type: str, parent_resource_name: str, target_name: str, resource: Union[_models.Target, IO[bytes]], **kwargs: Any) -> _models.Target:

sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_targets_operations.py:115

  • [nitpick] The removal of the old _convert_request call in favor of direct URL formatting looks clean, but please verify that this change does not omit any essential processing that the deprecated function provided.
_request = HttpRequest("GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params)

default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(ChaosManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2024-01-01")
api_version: str = kwargs.pop("api_version", "2025-01-01")
Copy link
Preview

Copilot AI May 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default API version has been updated from '2024-01-01' to '2025-01-01'. Please update the related documentation and release notes to ensure users are informed of the new default.

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant