Skip to content
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

[AutoRelease] t2-dependencymap-2025-03-25-78535(can only be merged by SDK owner) #40210

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

Conversation

azure-sdk
Copy link
Collaborator

@Copilot Copilot bot review requested due to automatic review settings March 25, 2025 06:15
@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 introduces the initial release of the Microsoft Azure Dependencymap Management Client Library. It creates both synchronous and asynchronous clients, adds configuration and models, and updates the README and CHANGELOG to document the release.

  • New synchronous and asynchronous client implementations with respective configurations.
  • Introduction of auto-generated code for service operations, models, and patching.
  • Added documentation and changelog for the initial release.

Reviewed Changes

Copilot reviewed 55 out of 59 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
azure/mgmt/dependencymap/init.py Initializes the package with client and version setup.
azure/mgmt/dependencymap/aio/init.py Sets up asynchronous client module with patching.
README.md Provides usage instructions and examples for the client.
azure/mgmt/dependencymap/aio/operations/init.py Registers async operations.
azure/mgmt/dependencymap/aio/_configuration.py Configures the async client using async-specific policies.
azure/mgmt/dependencymap/_configuration.py Configures the synchronous client.
azure/mgmt/dependencymap/_client.py Implements the synchronous client.
azure/mgmt/dependencymap/aio/_client.py Implements the asynchronous client with async context management.
CHANGELOG.md Documents the initial release changes.
Other files Include versioning, model definitions, patch files, and package initialization.
Files not reviewed (4)
  • sdk/dependencymap/azure-mgmt-dependencymap/LICENSE: Language not supported
  • sdk/dependencymap/azure-mgmt-dependencymap/MANIFEST.in: Language not supported
  • sdk/dependencymap/azure-mgmt-dependencymap/_meta.json: Language not supported
  • sdk/dependencymap/azure-mgmt-dependencymap/apiview-properties.json: Language not supported
Comments suppressed due to low confidence (1)

sdk/dependencymap/azure-mgmt-dependencymap/azure/mgmt/dependencymap/_client.py:75

  • Filter out potential None values from the policies list before passing it to the ARMPipelineClient to ensure all list items are valid policy instances. This can help prevent unexpected issues during request processing.
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,

self._config.custom_hook_policy,
self._config.logging_policy,
policies.DistributedTracingPolicy(**kwargs),
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
Copy link
Preview

Copilot AI Mar 25, 2025

Choose a reason for hiding this comment

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

Consider filtering out None values from the policies list to avoid passing a None item to the AsyncARMPipelineClient, which could lead to runtime errors. One approach is to use a list comprehension to include only truthy policy instances.

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

@ChenxiJiang333
Copy link
Member

/azp run prepare-pipelines

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

2 participants