-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoRelease] t2-automation-2022-07-05-46277(Do not merge) (#25069)
* code and test * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: zhenbiao wei <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
- Loading branch information
1 parent
c37ce1d
commit 6724606
Showing
116 changed files
with
29,229 additions
and
20,313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"autorest": "3.7.2", | ||
"use": [ | ||
"@autorest/[email protected]", | ||
"@autorest/[email protected]" | ||
], | ||
"commit": "fc2245b8f0fe6f17628e3b5a306b4b150c73cff0", | ||
"repository_url": "https://github.com/Azure/azure-rest-api-specs", | ||
"autorest_command": "autorest specification/automation/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2", | ||
"readme": "specification/automation/resource-manager/readme.md" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
349 changes: 203 additions & 146 deletions
349
sdk/automation/azure-mgmt-automation/azure/mgmt/automation/_automation_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
sdk/automation/azure-mgmt-automation/azure/mgmt/automation/_patch.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ------------------------------------ | ||
# 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 List | ||
|
||
__all__: 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 | ||
""" |
45 changes: 45 additions & 0 deletions
45
sdk/automation/azure-mgmt-automation/azure/mgmt/automation/_vendor.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for license information. | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from abc import ABC | ||
from typing import TYPE_CHECKING | ||
|
||
from azure.core.pipeline.transport import HttpRequest | ||
|
||
from ._configuration import AutomationClientConfiguration | ||
|
||
if TYPE_CHECKING: | ||
# pylint: disable=unused-import,ungrouped-imports | ||
from msrest import Deserializer, Serializer | ||
|
||
from azure.core import PipelineClient | ||
|
||
def _convert_request(request, files=None): | ||
data = request.content if not files else None | ||
request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) | ||
if files: | ||
request.set_formdata_body(files) | ||
return request | ||
|
||
def _format_url_section(template, **kwargs): | ||
components = template.split("/") | ||
while components: | ||
try: | ||
return template.format(**kwargs) | ||
except KeyError as key: | ||
formatted_components = template.split("/") | ||
components = [ | ||
c for c in formatted_components if "{}".format(key.args[0]) not in c | ||
] | ||
template = "/".join(components) | ||
|
||
class MixinABC(ABC): | ||
"""DO NOT use this class. It is for internal typing use only.""" | ||
_client: "PipelineClient" | ||
_config: AutomationClientConfiguration | ||
_serialize: "Serializer" | ||
_deserialize: "Deserializer" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.