Skip to content

[AutoPR azure-mgmt-chaos]-generated-from-SDK Generation - Python-6615672#48256

Open
azure-sdk-automation[bot] wants to merge 1 commit into
mainfrom
sdkauto/azure-mgmt-chaos-6615672
Open

[AutoPR azure-mgmt-chaos]-generated-from-SDK Generation - Python-6615672#48256
azure-sdk-automation[bot] wants to merge 1 commit into
mainfrom
sdkauto/azure-mgmt-chaos-6615672

Conversation

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

Configurations: 'specification/chaos/resource-manager/Microsoft.Chaos/Chaos/tspconfig.yaml', SDK Release Type: beta, and CommitSHA: 'dd0a22906855bb0582ef763a37187de5e5605d54' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6615672 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan link: https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releaseplan=2236 Submitted by: renzopretto@microsoft.com

Copilot AI review requested due to automatic review settings July 24, 2026 22:52
@azure-sdk-automation azure-sdk-automation Bot added the auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically. label Jul 24, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.

Updates the azure-mgmt-chaos Python SDK to align with the 2026-08-01-preview Chaos RP API surface, including new operations/models and regenerated samples/tests.

Changes:

  • Bumps API version and regenerates SDK artifacts (models, operations, samples, tests) for 2026-08-01-preview
  • Adds new connections operation group and related models/enums; replaces/renames several scenario/workspace operations (e.g., begin_discover, begin_evaluate, begin_cancel)
  • Updates packaging metadata (Python support range, version bump, changelog) and shared serialization/model utilities

Reviewed changes

Copilot reviewed 103 out of 106 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
sdk/chaos/azure-mgmt-chaos/tsp-location.yaml Updates the pinned swagger/spec commit used for generation.
sdk/chaos/azure-mgmt-chaos/pyproject.toml Raises minimum supported Python to 3.10 and updates classifiers.
sdk/chaos/azure-mgmt-chaos/generated_tests/test_chaos_management_workspaces_operations_async.py Updates workspace tests to new begin_discover/begin_evaluate operations.
sdk/chaos/azure-mgmt-chaos/generated_tests/test_chaos_management_workspaces_operations.py Updates workspace tests to new begin_discover/begin_evaluate operations.
sdk/chaos/azure-mgmt-chaos/generated_tests/test_chaos_management_scenario_runs_operations_async.py Updates scenario run cancel test to LRO begin_cancel.
sdk/chaos/azure-mgmt-chaos/generated_tests/test_chaos_management_scenario_runs_operations.py Updates scenario run cancel test to LRO begin_cancel.
sdk/chaos/azure-mgmt-chaos/generated_tests/test_chaos_management_scenario_configurations_operations_async.py Updates scenario configuration payload to resourceTargeting and execute to LRO begin_execute.
sdk/chaos/azure-mgmt-chaos/generated_tests/test_chaos_management_scenario_configurations_operations.py Updates scenario configuration payload to resourceTargeting and execute to LRO begin_execute.
sdk/chaos/azure-mgmt-chaos/generated_tests/test_chaos_management_connections_operations_async.py Adds generated async tests for new connections operation group.
sdk/chaos/azure-mgmt-chaos/generated_tests/test_chaos_management_connections_operations.py Adds generated sync tests for new connections operation group.
sdk/chaos/azure-mgmt-chaos/generated_samples/workspaces_update.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/workspaces_refresh_recommendations.py Updates sample to begin_discover and new original-file reference.
sdk/chaos/azure-mgmt-chaos/generated_samples/workspaces_list_all.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/workspaces_list.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/workspaces_get.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/workspaces_evaluate.py Adds new evaluate sample for begin_evaluate.
sdk/chaos/azure-mgmt-chaos/generated_samples/workspaces_delete.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/workspaces_create_or_update.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/targets_list.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/targets_get.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/targets_delete.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/targets_create_or_update.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/target_types_list.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/target_types_get.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenarios_list_all.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenarios_get.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenarios_delete.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenarios_create_or_update.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenario_runs_list_all.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenario_runs_get.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenario_runs_cancel.py Updates sample to LRO begin_cancel and prints result.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenario_configurations_validate.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenario_configurations_list_all.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenario_configurations_get.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenario_configurations_fix_resource_permissions.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenario_configurations_execute.py Updates sample to LRO begin_execute and prints result.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenario_configurations_delete.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenario_configurations_create_or_update_with_physical_zones.py Migrates sample payload to resourceTargeting include/exclude and updates original-file reference.
sdk/chaos/azure-mgmt-chaos/generated_samples/scenario_configurations_create_or_update.py Migrates sample payload to resourceTargeting include/exclude and updates original-file reference.
sdk/chaos/azure-mgmt-chaos/generated_samples/private_accesses_update.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/private_accesses_list_private_endpoint_connections.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/private_accesses_list_all.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/private_accesses_list.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/private_accesses_get_private_link_resources.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/private_accesses_get_get_a_private_access_resource_with_private_endpoint.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/private_accesses_get_get_a_private_access_resource.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/private_accesses_get_aprivate_endpoint_connection.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/private_accesses_delete_aprivate_endpoint_connection.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/private_accesses_delete.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/private_accesses_create_or_update_create_or_update_a_private_access_resource_with_public_network_access.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/private_accesses_create_or_update_create_or_update_a_private_access_resource.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/operations_list.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/operation_statuses_get.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/experiments_update.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/experiments_start.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/experiments_list_all_executions.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/experiments_list_all.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/experiments_list.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/experiments_get_execution.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/experiments_get.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/experiments_execution_details.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/experiments_delete.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/experiments_create_or_update.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/experiments_cancel.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/discovered_resources_list_by_workspace.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/discovered_resources_get.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/connections_list_all.py Adds new sample for listing connections.
sdk/chaos/azure-mgmt-chaos/generated_samples/connections_get.py Adds new sample for getting a connection.
sdk/chaos/azure-mgmt-chaos/generated_samples/connections_delete.py Adds new sample for deleting a connection.
sdk/chaos/azure-mgmt-chaos/generated_samples/connections_create_or_update.py Adds new sample for creating/updating a connection.
sdk/chaos/azure-mgmt-chaos/generated_samples/capability_types_list.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/capability_types_get.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/capabilities_list.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/capabilities_get.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/capabilities_delete.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/capabilities_create_or_update.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/actions_list.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/actions_get.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/action_versions_list.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/generated_samples/action_versions_get.py Updates x-ms-original-file to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/types.py Adds typed TypedDict request/response shapes for public typing API.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/_patch.py Regenerated patch scaffold (minor whitespace change).
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/operations/init.py Exposes new ConnectionsOperations and reorders exports.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_patch.py Regenerated patch scaffold (minor whitespace change).
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_models.py Adds new models/fields for connections/discovery/resource targeting; renames evaluation metrics; updates LRO methods.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/_enums.py Adds enums for connections and workspace discovery status.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/models/init.py Updates public model/enum exports for new/removed types.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/_patch.py Regenerated patch scaffold (minor whitespace change).
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/operations/init.py Exposes new async ConnectionsOperations and reorders exports.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_patch.py Regenerated patch scaffold (minor whitespace change).
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_configuration.py Bumps default API version to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/aio/_client.py Adds connections operation group; adjusts Self import for py>=3.11.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_version.py Bumps package version to 3.0.0b2.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_utils/serialization.py Adds numeric duration formats + header fast-path deserialization; adjusts Self import for py>=3.11.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_utils/model_base.py Adds duration formats and multiple XML/model deserialization optimizations and new rest_field deserializer.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_patch.py Regenerated patch scaffold (minor whitespace change).
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_configuration.py Bumps default API version to 2026-08-01-preview.
sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_client.py Adds connections operation group; adjusts Self import for py>=3.11.
sdk/chaos/azure-mgmt-chaos/apiview-properties.json Updates APIView mapping for new operations/models and renamed methods.
sdk/chaos/azure-mgmt-chaos/api.metadata.yml Adds generation metadata (parser/python versions and hash).
sdk/chaos/azure-mgmt-chaos/_metadata.json Updates metadata for new API version, emitter version, and generation inputs.
sdk/chaos/azure-mgmt-chaos/README.md Updates authentication terminology/reference to Microsoft Entra docs.
sdk/chaos/azure-mgmt-chaos/CHANGELOG.md Adds 3.0.0b2 entry documenting features and breaking changes.

Comment on lines +923 to +930
elif kind == 1: # attribute
attr_val = element.get(xml_name)
if attr_val is not None:
existed_attr_keys.append(xml_name)
if deser:
result[rest_name] = deser(attr_val)
else:
result[rest_name] = attr_val
Comment on lines +942 to +947
elif kind == 3: # text
if element.text is not None:
if deser:
result[rest_name] = deser(element.text)
else:
result[rest_name] = element.text
Comment on lines +1492 to +1500
if isinstance(response_data, str):
if target_obj == "int":
return int(response_data)
if target_obj == "bool":
if response_data in ("true", "1", "True"):
return True
if response_data in ("false", "0", "False"):
return False
return bool(response_data)
Comment on lines +1126 to +1129
if isinstance(attr, str):
attr = isodate.parse_duration(attr)
value = attr.total_seconds() * scale if isinstance(attr, datetime.timedelta) else attr
return int(value) if as_int else float(value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants