Skip to content

Commit

Permalink
Merge pull request #333 from microsoft/dev
Browse files Browse the repository at this point in the history
Merging a lot from dev to main
  • Loading branch information
markusheiliger authored May 5, 2022
2 parents 5937cbc + 72edb26 commit a0896e3
Show file tree
Hide file tree
Showing 176 changed files with 22,128 additions and 16,008 deletions.
13 changes: 9 additions & 4 deletions client/tc/azext_tc/vendored_sdks/teamcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
# --------------------------------------------------------------------------

from ._team_cloud_client import TeamCloudClient

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['TeamCloudClient']
__all__.extend([p for p in _patch_all if p not in __all__])

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
from ._patch import patch_sdk
patch_sdk()
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TeamCloudClient(TeamCloudClientOperationsMixin):
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param base_url: Service URL. Default value is ''.
:param base_url: Service URL. Default value is "".
:type base_url: str
"""

Expand Down
13 changes: 9 additions & 4 deletions client/tc/azext_tc/vendored_sdks/teamcloud/aio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
# --------------------------------------------------------------------------

from ._team_cloud_client import TeamCloudClient

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['TeamCloudClient']
__all__.extend([p for p in _patch_all if p not in __all__])

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
from ._patch import patch_sdk
patch_sdk()
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TeamCloudClient(TeamCloudClientOperationsMixin):
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param base_url: Service URL. Default value is ''.
:param base_url: Service URL. Default value is "".
:type base_url: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

from ._team_cloud_client_operations import TeamCloudClientOperationsMixin

from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
from ._patch import patch_sdk as _patch_sdk
__all__ = [
'TeamCloudClientOperationsMixin',
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
"""Customize generated code here.
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""
from typing import TYPE_CHECKING

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import List

__all__ = [] # type: List[str] # Add all objects you want publicly available to users at this package level

def patch_sdk():
"""Do not remove from this file.
`patch_sdk` is a last resort escape hatch that allows you to do customizations
you can't accomplish using the techniques described in
https://aka.ms/azsdk/python/dpcodegen/python/customize
"""
Loading

0 comments on commit a0896e3

Please sign in to comment.