Skip to content

Commit

Permalink
CodeGen from PR 20092 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
migrate to .net track 2 batch 2 (Azure#20092)
  • Loading branch information
SDKAuto committed Aug 5, 2022
1 parent 3f52cf8 commit c620028
Show file tree
Hide file tree
Showing 33 changed files with 2,480 additions and 1,815 deletions.
6 changes: 3 additions & 3 deletions sdk/batch/azure-mgmt-batch/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.7.2",
"use": [
"@autorest/python@5.13.0",
"@autorest/python@5.16.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "5ee062ac3cc2df298ff47bdfc7792d257fd85bb8",
"commit": "63f4e39c20223c20941614e776d33e699c3e2777",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/batch/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/batch/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/batch/resource-manager/readme.md"
}
13 changes: 9 additions & 4 deletions sdk/batch/azure-mgmt-batch/azure/mgmt/batch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
from ._version import VERSION

__version__ = VERSION

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__ = ['BatchManagementClient']
__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 @@ -72,15 +72,33 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.batch_account = BatchAccountOperations(self._client, self._config, self._serialize, self._deserialize)
self.application_package = ApplicationPackageOperations(self._client, self._config, self._serialize, self._deserialize)
self.application = ApplicationOperations(self._client, self._config, self._serialize, self._deserialize)
self.location = LocationOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.certificate = CertificateOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_link_resource = PrivateLinkResourceOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connection = PrivateEndpointConnectionOperations(self._client, self._config, self._serialize, self._deserialize)
self.pool = PoolOperations(self._client, self._config, self._serialize, self._deserialize)
self.batch_account = BatchAccountOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.application_package = ApplicationPackageOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.application = ApplicationOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.location = LocationOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize
)
self.certificate = CertificateOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_link_resource = PrivateLinkResourceOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_endpoint_connection = PrivateEndpointConnectionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.pool = PoolOperations(
self._client, self._config, self._serialize, self._deserialize
)


def _send_request(
Expand Down
110 changes: 0 additions & 110 deletions sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_metadata.json

This file was deleted.

2 changes: 1 addition & 1 deletion sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "16.2.0"
VERSION = "14.0.0b1"
13 changes: 9 additions & 4 deletions sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
# --------------------------------------------------------------------------

from ._batch_management_client import BatchManagementClient

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__ = ['BatchManagementClient']
__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 @@ -72,15 +72,33 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.batch_account = BatchAccountOperations(self._client, self._config, self._serialize, self._deserialize)
self.application_package = ApplicationPackageOperations(self._client, self._config, self._serialize, self._deserialize)
self.application = ApplicationOperations(self._client, self._config, self._serialize, self._deserialize)
self.location = LocationOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.certificate = CertificateOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_link_resource = PrivateLinkResourceOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connection = PrivateEndpointConnectionOperations(self._client, self._config, self._serialize, self._deserialize)
self.pool = PoolOperations(self._client, self._config, self._serialize, self._deserialize)
self.batch_account = BatchAccountOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.application_package = ApplicationPackageOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.application = ApplicationOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.location = LocationOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize
)
self.certificate = CertificateOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_link_resource = PrivateLinkResourceOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_endpoint_connection = PrivateEndpointConnectionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.pool = PoolOperations(
self._client, self._config, self._serialize, self._deserialize
)


def _send_request(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
from ._private_endpoint_connection_operations import PrivateEndpointConnectionOperations
from ._pool_operations import PoolOperations

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__ = [
'BatchAccountOperations',
'ApplicationPackageOperations',
Expand All @@ -27,3 +30,5 @@
'PrivateEndpointConnectionOperations',
'PoolOperations',
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Loading

0 comments on commit c620028

Please sign in to comment.