Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2979994
codegen update
Han-msft Aug 27, 2024
269e116
Update client _patch
Han-msft Aug 27, 2024
6f89e05
Update version
Han-msft Aug 27, 2024
ed8876b
Update assets
Han-msft Aug 27, 2024
4a19c27
Update codegen
Han-msft Aug 28, 2024
492b67b
Sample for large face list
Han-msft Aug 28, 2024
0fc87db
Add LPG sample
Han-msft Aug 28, 2024
ae592ed
Update codegen
Han-msft Sep 2, 2024
d7a0393
Remove unused testcase
Han-msft Sep 2, 2024
99837e6
Add findsimilar test
Han-msft Sep 2, 2024
9315435
Add identify test
Han-msft Sep 3, 2024
453f812
Remove FL and PG
Han-msft Sep 6, 2024
2cf5745
Fix test
Han-msft Sep 6, 2024
d29b753
Update codegen
Han-msft Sep 9, 2024
c5d7ed8
Remove _operations
Han-msft Sep 9, 2024
a1d365e
Add changelog
Han-msft Sep 9, 2024
0ec1f1e
Codegen
Han-msft Sep 9, 2024
b96d74a
Add new content to README
Han-msft Sep 10, 2024
b0f98e5
Merge remote-tracking branch 'origin/main' into hachiang/face-v1.1
Han-msft Sep 13, 2024
3c2367c
Regen
Han-msft Sep 13, 2024
5fd08b6
Update model enum
Han-msft Sep 19, 2024
3b4be0b
Update typo in generated test
Han-msft Sep 19, 2024
8c39cc2
Add enum breaking change schangelog
Han-msft Sep 24, 2024
af693ed
Merge remote-tracking branch 'origin/main' into hachiang/face-v1.1
Han-msft Oct 9, 2024
e2cb5ac
update codegen
Han-msft Oct 9, 2024
6900326
Fix customization
Han-msft Oct 9, 2024
efb967b
Suppress verifytypes
Han-msft Oct 9, 2024
3d21d99
Update to latest tsp
Han-msft Oct 9, 2024
fc3fb85
Pause verifytypes
Han-msft Oct 9, 2024
7d58902
Update release date
Han-msft Oct 22, 2024
4fa8355
Update date
Han-msft Oct 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update codegen
  • Loading branch information
Han-msft committed Oct 9, 2024
commit e2cb5acbd1546661fbc4507922fc20969ec68c59
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@
)

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


class FaceAdministrationClient: # pylint: disable=client-accepts-api-version-keyword
class FaceAdministrationClient:
"""FaceAdministrationClient.

:ivar large_face_list: LargeFaceListOperations operations
Expand Down Expand Up @@ -122,7 +121,7 @@ def __exit__(self, *exc_details: Any) -> None:
self._client.__exit__(*exc_details)


class FaceClient(FaceClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
class FaceClient(FaceClientOperationsMixin):
"""FaceClient.

:param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example:
Expand Down Expand Up @@ -201,7 +200,7 @@ def __exit__(self, *exc_details: Any) -> None:
self._client.__exit__(*exc_details)


class FaceSessionClient(FaceSessionClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
class FaceSessionClient(FaceSessionClientOperationsMixin):
"""FaceSessionClient.

:param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
from ._version import VERSION

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


class FaceAdministrationClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class FaceAdministrationClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for FaceAdministrationClient.

Note that all parameters used to create this instance are saved as instance
Expand Down Expand Up @@ -128,7 +127,7 @@ def _configure(self, **kwargs: Any) -> None:
self.authentication_policy = self._infer_policy(**kwargs)


class FaceSessionClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class FaceSessionClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for FaceSessionClient.

Note that all parameters used to create this instance are saved as instance
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand Down Expand Up @@ -636,7 +637,7 @@ def _deserialize(cls, data, exist_discriminators):
return mapped_cls._deserialize(data, exist_discriminators)

def as_dict(self, *, exclude_readonly: bool = False) -> typing.Dict[str, typing.Any]:
"""Return a dict that can be JSONify using json.dump.
"""Return a dict that can be turned into json using json.dump.

:keyword bool exclude_readonly: Whether to remove the readonly properties.
:returns: A dict JSON compatible object
Expand Down Expand Up @@ -733,7 +734,7 @@ def _sorted_annotations(types: typing.List[typing.Any]) -> typing.List[typing.An
)


def _get_deserialize_callable_from_annotation( # pylint: disable=R0911, R0915, R0912
def _get_deserialize_callable_from_annotation( # pylint: disable=too-many-return-statements, too-many-branches
annotation: typing.Any,
module: typing.Optional[str],
rf: typing.Optional["_RestField"] = None,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from ._model_base import Model, SdkJSONEncoder

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

from ._serialization import Deserializer, Serializer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@
)

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


class FaceAdministrationClient: # pylint: disable=client-accepts-api-version-keyword
class FaceAdministrationClient:
"""FaceAdministrationClient.

:ivar large_face_list: LargeFaceListOperations operations
Expand Down Expand Up @@ -126,7 +125,7 @@ async def __aexit__(self, *exc_details: Any) -> None:
await self._client.__aexit__(*exc_details)


class FaceClient(FaceClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
class FaceClient(FaceClientOperationsMixin):
"""FaceClient.

:param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example:
Expand Down Expand Up @@ -209,7 +208,7 @@ async def __aexit__(self, *exc_details: Any) -> None:
await self._client.__aexit__(*exc_details)


class FaceSessionClient(FaceSessionClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
class FaceSessionClient(FaceSessionClientOperationsMixin):
"""FaceSessionClient.

:param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
from .._version import VERSION

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


class FaceAdministrationClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class FaceAdministrationClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for FaceAdministrationClient.

Note that all parameters used to create this instance are saved as instance
Expand Down Expand Up @@ -132,7 +131,7 @@ def _configure(self, **kwargs: Any) -> None:
self.authentication_policy = self._infer_policy(**kwargs)


class FaceSessionClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class FaceSessionClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for FaceSessionClient.

Note that all parameters used to create this instance are saved as instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from ._configuration import FaceClientConfiguration, FaceSessionClientConfiguration

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

from .._serialization import Deserializer, Serializer
Expand Down
Loading