Skip to content

Commit c384278

Browse files
author
SDKAuto
committed
CodeGen from PR 3538 in test-repo-billy/azure-rest-api-specs
Merge 5e402e6624cbefecb6b32e8a6e44dc0fe0f4654b into 3fa195c1f44ba3a67ffa664584936a781f35d505
1 parent 5fa44c1 commit c384278

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1235
-3252
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"commit": "8e89c3d0d28ca231e16c33c546978d28613bc4d4",
3+
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs",
4+
"typespec_src": "specification/schemaregistry/SchemaRegistry",
5+
"@azure-tools/typespec-python": "0.37.0"
6+
}

sdk/schemaregistry/azure-schemaregistry/azure/schemaregistry/__init__.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,28 @@
55
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._client import SchemaRegistryClient # type: ignore
916
from ._version import VERSION
1017

1118
__version__ = VERSION
1219

1320
try:
1421
from ._patch import __all__ as _patch_all
15-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1623
except ImportError:
1724
_patch_all = []
1825
from ._patch import patch_sdk as _patch_sdk
1926

2027
__all__ = [
2128
"SchemaRegistryClient",
2229
]
23-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2431

2532
_patch_sdk()

sdk/schemaregistry/azure-schemaregistry/azure/schemaregistry/_client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919
from ._serialization import Deserializer, Serializer
2020

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

2524

26-
class SchemaRegistryClient(SchemaRegistryClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
25+
class SchemaRegistryClient(SchemaRegistryClientOperationsMixin):
2726
"""SchemaRegistryClient is a client for registering and retrieving schemas from the Azure Schema
2827
Registry service.
2928
@@ -32,13 +31,12 @@ class SchemaRegistryClient(SchemaRegistryClientOperationsMixin): # pylint: disa
3231
:type fully_qualified_namespace: str
3332
:param credential: Credential used to authenticate requests to the service. Required.
3433
:type credential: ~azure.core.credentials.TokenCredential
35-
:keyword api_version: The API version to use for this operation. Default value is "2022-10".
34+
:keyword api_version: The API version to use for this operation. Default value is "2023-07-01".
3635
Note that overriding this default value may result in unsupported behavior.
3736
:paramtype api_version: str
3837
"""
3938

4039
def __init__(self, fully_qualified_namespace: str, credential: "TokenCredential", **kwargs: Any) -> None:
41-
super().__init__()
4240
_endpoint = "https://{fullyQualifiedNamespace}"
4341
self._config = SchemaRegistryClientConfiguration(
4442
fully_qualified_namespace=fully_qualified_namespace, credential=credential, **kwargs

sdk/schemaregistry/azure-schemaregistry/azure/schemaregistry/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
from ._version import VERSION
1414

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

1918

20-
class SchemaRegistryClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
19+
class SchemaRegistryClientConfiguration: # pylint: disable=too-many-instance-attributes
2120
"""Configuration for SchemaRegistryClient.
2221
2322
Note that all parameters used to create this instance are saved as instance
@@ -28,13 +27,13 @@ class SchemaRegistryClientConfiguration: # pylint: disable=too-many-instance-at
2827
:type fully_qualified_namespace: str
2928
:param credential: Credential used to authenticate requests to the service. Required.
3029
:type credential: ~azure.core.credentials.TokenCredential
31-
:keyword api_version: The API version to use for this operation. Default value is "2022-10".
30+
:keyword api_version: The API version to use for this operation. Default value is "2023-07-01".
3231
Note that overriding this default value may result in unsupported behavior.
3332
:paramtype api_version: str
3433
"""
3534

3635
def __init__(self, fully_qualified_namespace: str, credential: "TokenCredential", **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2022-10")
36+
api_version: str = kwargs.pop("api_version", "2023-07-01")
3837

3938
if fully_qualified_namespace is None:
4039
raise ValueError("Parameter 'fully_qualified_namespace' must not be None.")

0 commit comments

Comments
 (0)