Skip to content

Commit

Permalink
GA batch track2 sdk (Azure#15906)
Browse files Browse the repository at this point in the history
  • Loading branch information
00Kai0 authored and rakshith91 committed Jan 8, 2021
1 parent 0e7edda commit 88bbdf9
Show file tree
Hide file tree
Showing 29 changed files with 628 additions and 530 deletions.
4 changes: 4 additions & 0 deletions sdk/batch/azure-mgmt-batch/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 14.0.0 (2020-12-22)

- GA release

## 14.0.0b1 (2020-10-23)

This is beta preview version.
Expand Down
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 = "14.0.0b1"
VERSION = "14.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core.exceptions import ARMErrorFormat

from ... import models
from ... import models as _models

T = TypeVar('T')
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
Expand All @@ -33,7 +33,7 @@ class ApplicationOperations:
:param deserializer: An object model deserializer.
"""

models = models
models = _models

def __init__(self, client, config, serializer, deserializer) -> None:
self._client = client
Expand All @@ -46,9 +46,9 @@ async def create(
resource_group_name: str,
account_name: str,
application_name: str,
parameters: Optional["models.Application"] = None,
parameters: Optional["_models.Application"] = None,
**kwargs
) -> "models.Application":
) -> "_models.Application":
"""Adds an application to the specified Batch account.
:param resource_group_name: The name of the resource group that contains the Batch account.
Expand All @@ -64,7 +64,7 @@ async def create(
:rtype: ~azure.mgmt.batch.models.Application
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.Application"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.Application"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -179,7 +179,7 @@ async def get(
account_name: str,
application_name: str,
**kwargs
) -> "models.Application":
) -> "_models.Application":
"""Gets information about the specified application.
:param resource_group_name: The name of the resource group that contains the Batch account.
Expand All @@ -193,7 +193,7 @@ async def get(
:rtype: ~azure.mgmt.batch.models.Application
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.Application"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.Application"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -240,9 +240,9 @@ async def update(
resource_group_name: str,
account_name: str,
application_name: str,
parameters: "models.Application",
parameters: "_models.Application",
**kwargs
) -> "models.Application":
) -> "_models.Application":
"""Updates settings for the specified application.
:param resource_group_name: The name of the resource group that contains the Batch account.
Expand All @@ -258,7 +258,7 @@ async def update(
:rtype: ~azure.mgmt.batch.models.Application
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.Application"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.Application"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -311,7 +311,7 @@ def list(
account_name: str,
maxresults: Optional[int] = None,
**kwargs
) -> AsyncIterable["models.ListApplicationsResult"]:
) -> AsyncIterable["_models.ListApplicationsResult"]:
"""Lists all of the applications in the specified account.
:param resource_group_name: The name of the resource group that contains the Batch account.
Expand All @@ -325,7 +325,7 @@ def list(
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.ListApplicationsResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ListApplicationsResult"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ListApplicationsResult"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core.exceptions import ARMErrorFormat

from ... import models
from ... import models as _models

T = TypeVar('T')
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
Expand All @@ -33,7 +33,7 @@ class ApplicationPackageOperations:
:param deserializer: An object model deserializer.
"""

models = models
models = _models

def __init__(self, client, config, serializer, deserializer) -> None:
self._client = client
Expand All @@ -47,9 +47,9 @@ async def activate(
account_name: str,
application_name: str,
version_name: str,
parameters: "models.ActivateApplicationPackageParameters",
parameters: "_models.ActivateApplicationPackageParameters",
**kwargs
) -> "models.ApplicationPackage":
) -> "_models.ApplicationPackage":
"""Activates the specified application package. This should be done after the
``ApplicationPackage`` was created and uploaded. This needs to be done before an
``ApplicationPackage`` can be used on Pools or Tasks.
Expand All @@ -69,7 +69,7 @@ async def activate(
:rtype: ~azure.mgmt.batch.models.ApplicationPackage
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ApplicationPackage"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ApplicationPackage"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -123,9 +123,9 @@ async def create(
account_name: str,
application_name: str,
version_name: str,
parameters: Optional["models.ApplicationPackage"] = None,
parameters: Optional["_models.ApplicationPackage"] = None,
**kwargs
) -> "models.ApplicationPackage":
) -> "_models.ApplicationPackage":
"""Creates an application package record. The record contains the SAS where the package should be
uploaded to. Once it is uploaded the ``ApplicationPackage`` needs to be activated using
``ApplicationPackageActive`` before it can be used.
Expand All @@ -145,7 +145,7 @@ async def create(
:rtype: ~azure.mgmt.batch.models.ApplicationPackage
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ApplicationPackage"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ApplicationPackage"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -266,7 +266,7 @@ async def get(
application_name: str,
version_name: str,
**kwargs
) -> "models.ApplicationPackage":
) -> "_models.ApplicationPackage":
"""Gets information about the specified application package.
:param resource_group_name: The name of the resource group that contains the Batch account.
Expand All @@ -282,7 +282,7 @@ async def get(
:rtype: ~azure.mgmt.batch.models.ApplicationPackage
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ApplicationPackage"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ApplicationPackage"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -332,7 +332,7 @@ def list(
application_name: str,
maxresults: Optional[int] = None,
**kwargs
) -> AsyncIterable["models.ListApplicationPackagesResult"]:
) -> AsyncIterable["_models.ListApplicationPackagesResult"]:
"""Lists all of the application packages in the specified application.
:param resource_group_name: The name of the resource group that contains the Batch account.
Expand All @@ -348,7 +348,7 @@ def list(
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.batch.models.ListApplicationPackagesResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.ListApplicationPackagesResult"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ListApplicationPackagesResult"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down
Loading

0 comments on commit 88bbdf9

Please sign in to comment.