Skip to content

Commit

Permalink
Regenerate SDK based on typespec-python branch main
Browse files Browse the repository at this point in the history
  • Loading branch information
azure-sdk committed Oct 14, 2024
1 parent f2bc1fc commit 9ab81ae
Show file tree
Hide file tree
Showing 1,198 changed files with 89,986 additions and 173,900 deletions.
33 changes: 33 additions & 0 deletions aaaa-regenerate-sdk-result.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"succeed_to_regenerate": [
"azure-ai-contentsafety",
"azure-ai-documentintelligence",
"azure-ai-translation-document",
"azure-ai-translation-text",
"azure-ai-vision-face",
"azure-ai-vision-imageanalysis",
"azure-batch",
"azure-communication-jobrouter",
"azure-communication-messages",
"azure-developer-devcenter",
"azure-eventgrid",
"azure-health-deidentification",
"azure-healthinsights-radiologyinsights",
"azure-mgmt-computefleet",
"azure-mgmt-computeschedule",
"azure-mgmt-devopsinfrastructure",
"azure-mgmt-edgezones",
"azure-mgmt-fabric",
"azure-mgmt-healthdataaiservices",
"azure-mgmt-mongocluster",
"azure-mgmt-standbypool",
"azure-mgmt-trustedsigning",
"azure-purview-datamap",
"azure-schemaregistry",
"azure_ai_assets_v2024_04_01"
],
"fail_to_regenerate": [
"azure-ai-inference"
],
"time_to_regenerate": "2024-10-14 00:05:12.457596"
}
6 changes: 3 additions & 3 deletions eng/emitter-package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions eng/emitter-package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"main": "dist/src/index.js",
"dependencies": {
"@azure-tools/typespec-python": "0.36.0"
"@azure-tools/typespec-python": "/mnt/vss/_work/1/s/autorest.python/packages/typespec-python/azure-tools-typespec-python-0.36.0.tgz"
},
"devDependencies": {
"@azure-tools/typespec-autorest": "~0.47.0",
Expand All @@ -16,4 +16,4 @@
"@typespec/versioning": "~0.61.0",
"@typespec/xml": "~0.61.0"
}
}
}
2 changes: 1 addition & 1 deletion sdk/ai/azure-ai-inference/tsp-location.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
directory: specification/ai/ModelClient
commit: 3e95e575e537024a02470cf59c7a78078dc10cd1
commit: 15b16d1b5c3cccdecdd1cfe936f6a8005680c557
repo: Azure/azure-rest-api-specs
additionalDirectories:
2 changes: 1 addition & 1 deletion sdk/batch/azure-batch/azure/batch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
__all__ = [
"BatchClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
8 changes: 4 additions & 4 deletions sdk/batch/azure-batch/azure/batch/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from copy import deepcopy
from typing import Any, TYPE_CHECKING
from typing_extensions import Self

from azure.core import PipelineClient
from azure.core.pipeline import policies
Expand All @@ -18,11 +19,10 @@
from ._serialization import Deserializer, Serializer

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential


class BatchClient(BatchClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
class BatchClient(BatchClientOperationsMixin):
"""BatchClient.
:param endpoint: Batch account endpoint (for example:
Expand All @@ -31,7 +31,7 @@ class BatchClient(BatchClientOperationsMixin): # pylint: disable=client-accepts
:param credential: Credential used to authenticate requests to the service. Required.
:type credential: ~azure.core.credentials.TokenCredential
:keyword api_version: The API version to use for this operation. Default value is
"2024-02-01.19.0". Note that overriding this default value may result in unsupported behavior.
"2024-07-01.20.0". Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
"""

Expand Down Expand Up @@ -91,7 +91,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
def close(self) -> None:
self._client.close()

def __enter__(self) -> "BatchClient":
def __enter__(self) -> Self:
self._client.__enter__()
return self

Expand Down
5 changes: 2 additions & 3 deletions sdk/batch/azure-batch/azure/batch/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential


Expand All @@ -29,12 +28,12 @@ class BatchClientConfiguration: # pylint: disable=too-many-instance-attributes
:param credential: Credential used to authenticate requests to the service. Required.
:type credential: ~azure.core.credentials.TokenCredential
:keyword api_version: The API version to use for this operation. Default value is
"2024-02-01.19.0". Note that overriding this default value may result in unsupported behavior.
"2024-07-01.20.0". Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, endpoint: str, credential: "TokenCredential", **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-02-01.19.0")
api_version: str = kwargs.pop("api_version", "2024-07-01.20.0")

if endpoint is None:
raise ValueError("Parameter 'endpoint' must not be None.")
Expand Down
Loading

0 comments on commit 9ab81ae

Please sign in to comment.