Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
{
"CrossLanguagePackageId": "_Specs_.Azure.ClientGenerator.Core.ExactName",
"CrossLanguageDefinitionId": {
"specs.azure.clientgenerator.core.exactname.enumvalue.models.EndpointConfig": "_Specs_.Azure.ClientGenerator.Core.ExactName.EnumValue.EndpointConfig",
"specs.azure.clientgenerator.core.exactname.model.models.My_model": "_Specs_.Azure.ClientGenerator.Core.ExactName.Model.ExactModel",
"specs.azure.clientgenerator.core.exactname.property.models.ScopedModel": "_Specs_.Azure.ClientGenerator.Core.ExactName.Property.ScopedModel",
"specs.azure.clientgenerator.core.exactname.models.AgentEndpointProtocol": "_Specs_.Azure.ClientGenerator.Core.ExactName.EnumValue.AgentEndpointProtocol",
"specs.azure.clientgenerator.core.exactname.operations.ModelOperations.send": "_Specs_.Azure.ClientGenerator.Core.ExactName.Model.send",
"specs.azure.clientgenerator.core.exactname.aio.operations.ModelOperations.send": "_Specs_.Azure.ClientGenerator.Core.ExactName.Model.send",
"specs.azure.clientgenerator.core.exactname.operations.PropertyOperations.send": "_Specs_.Azure.ClientGenerator.Core.ExactName.Property.send",
"specs.azure.clientgenerator.core.exactname.aio.operations.PropertyOperations.send": "_Specs_.Azure.ClientGenerator.Core.ExactName.Property.send"
"specs.azure.clientgenerator.core.exactname.aio.operations.PropertyOperations.send": "_Specs_.Azure.ClientGenerator.Core.ExactName.Property.send",
"specs.azure.clientgenerator.core.exactname.operations.EnumValueOperations.send": "_Specs_.Azure.ClientGenerator.Core.ExactName.EnumValue.send",
"specs.azure.clientgenerator.core.exactname.aio.operations.EnumValueOperations.send": "_Specs_.Azure.ClientGenerator.Core.ExactName.EnumValue.send",
"specs.azure.clientgenerator.core.exactname.operations.OperationOperations.myOp": "_Specs_.Azure.ClientGenerator.Core.ExactName.Operation.myOp",
"specs.azure.clientgenerator.core.exactname.aio.operations.OperationOperations.myOp": "_Specs_.Azure.ClientGenerator.Core.ExactName.Operation.myOp",
"specs.azure.clientgenerator.core.exactname.operations.ParameterOperations.send": "_Specs_.Azure.ClientGenerator.Core.ExactName.Parameter.send",
"specs.azure.clientgenerator.core.exactname.aio.operations.ParameterOperations.send": "_Specs_.Azure.ClientGenerator.Core.ExactName.Parameter.send"
},
"CrossLanguageVersion": "cc4f69ca2424"
"CrossLanguageVersion": "29dab5aacd02"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import pytest
from devtools_testutils import recorded_by_proxy
from testpreparer import ExactNameClientTestBase, ExactNamePreparer


@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestExactNameEnumValueOperations(ExactNameClientTestBase):
@ExactNamePreparer()
@recorded_by_proxy
def test_enum_value_send(self, exactname_endpoint):
client = self.create_client(endpoint=exactname_endpoint)
response = client.enum_value.send(
body={"protocol": "str"},
)

# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import pytest
from devtools_testutils.aio import recorded_by_proxy_async
from testpreparer import ExactNamePreparer
from testpreparer_async import ExactNameClientTestBaseAsync


@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestExactNameEnumValueOperationsAsync(ExactNameClientTestBaseAsync):
@ExactNamePreparer()
@recorded_by_proxy_async
async def test_enum_value_send(self, exactname_endpoint):
client = self.create_async_client(endpoint=exactname_endpoint)
response = await client.enum_value.send(
body={"protocol": "str"},
)

# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import pytest
from devtools_testutils import recorded_by_proxy
from testpreparer import ExactNameClientTestBase, ExactNamePreparer


@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestExactNameOperationOperations(ExactNameClientTestBase):
@ExactNamePreparer()
@recorded_by_proxy
def test_operation_myOp(self, exactname_endpoint):
client = self.create_client(endpoint=exactname_endpoint)
response = client.operation.myOp()

# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import pytest
from devtools_testutils.aio import recorded_by_proxy_async
from testpreparer import ExactNamePreparer
from testpreparer_async import ExactNameClientTestBaseAsync


@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestExactNameOperationOperationsAsync(ExactNameClientTestBaseAsync):
@ExactNamePreparer()
@recorded_by_proxy_async
async def test_operation_myOp(self, exactname_endpoint):
client = self.create_async_client(endpoint=exactname_endpoint)
response = await client.operation.myOp()

# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import pytest
from devtools_testutils import recorded_by_proxy
from testpreparer import ExactNameClientTestBase, ExactNamePreparer


@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestExactNameParameterOperations(ExactNameClientTestBase):
@ExactNamePreparer()
@recorded_by_proxy
def test_parameter_send(self, exactname_endpoint):
client = self.create_client(endpoint=exactname_endpoint)
response = client.parameter.send(
myParam="str",
)

# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import pytest
from devtools_testutils.aio import recorded_by_proxy_async
from testpreparer import ExactNamePreparer
from testpreparer_async import ExactNameClientTestBaseAsync


@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestExactNameParameterOperationsAsync(ExactNameClientTestBaseAsync):
@ExactNamePreparer()
@recorded_by_proxy_async
async def test_parameter_send(self, exactname_endpoint):
client = self.create_async_client(endpoint=exactname_endpoint)
response = await client.parameter.send(
myParam="str",
)

# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@

from ._configuration import ExactNameClientConfiguration
from ._utils.serialization import Deserializer, Serializer
from .enumvalue.operations import EnumValueOperations
from .model.operations import ModelOperations
from .operation.operations import OperationOperations
from .parameter.operations import ParameterOperations
from .property.operations import PropertyOperations

if sys.version_info >= (3, 11):
Expand All @@ -32,6 +35,12 @@ class ExactNameClient: # pylint: disable=client-accepts-api-version-keyword
:vartype model: specs.azure.clientgenerator.core.exactname.operations.ModelOperations
:ivar property: PropertyOperations operations
:vartype property: specs.azure.clientgenerator.core.exactname.operations.PropertyOperations
:ivar enum_value: EnumValueOperations operations
:vartype enum_value: specs.azure.clientgenerator.core.exactname.operations.EnumValueOperations
:ivar operation: OperationOperations operations
:vartype operation: specs.azure.clientgenerator.core.exactname.operations.OperationOperations
:ivar parameter: ParameterOperations operations
:vartype parameter: specs.azure.clientgenerator.core.exactname.operations.ParameterOperations
:keyword endpoint: Service host. Default value is "http://localhost:3000".
:paramtype endpoint: str
"""
Expand Down Expand Up @@ -66,6 +75,9 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
self._serialize.client_side_validation = False
self.model = ModelOperations(self._client, self._config, self._serialize, self._deserialize)
self.property = PropertyOperations(self._client, self._config, self._serialize, self._deserialize)
self.enum_value = EnumValueOperations(self._client, self._config, self._serialize, self._deserialize)
self.operation = OperationOperations(self._client, self._config, self._serialize, self._deserialize)
self.parameter = ParameterOperations(self._client, self._config, self._serialize, self._deserialize)

def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
from azure.core.rest import AsyncHttpResponse, HttpRequest

from .._utils.serialization import Deserializer, Serializer
from ..enumvalue.aio.operations import EnumValueOperations
from ..model.aio.operations import ModelOperations
from ..operation.aio.operations import OperationOperations
from ..parameter.aio.operations import ParameterOperations
from ..property.aio.operations import PropertyOperations
from ._configuration import ExactNameClientConfiguration

Expand All @@ -32,6 +35,15 @@ class ExactNameClient: # pylint: disable=client-accepts-api-version-keyword
:vartype model: specs.azure.clientgenerator.core.exactname.aio.operations.ModelOperations
:ivar property: PropertyOperations operations
:vartype property: specs.azure.clientgenerator.core.exactname.aio.operations.PropertyOperations
:ivar enum_value: EnumValueOperations operations
:vartype enum_value:
specs.azure.clientgenerator.core.exactname.aio.operations.EnumValueOperations
:ivar operation: OperationOperations operations
:vartype operation:
specs.azure.clientgenerator.core.exactname.aio.operations.OperationOperations
:ivar parameter: ParameterOperations operations
:vartype parameter:
specs.azure.clientgenerator.core.exactname.aio.operations.ParameterOperations
:keyword endpoint: Service host. Default value is "http://localhost:3000".
:paramtype endpoint: str
"""
Expand Down Expand Up @@ -66,6 +78,9 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
self._serialize.client_side_validation = False
self.model = ModelOperations(self._client, self._config, self._serialize, self._deserialize)
self.property = PropertyOperations(self._client, self._config, self._serialize, self._deserialize)
self.enum_value = EnumValueOperations(self._client, self._config, self._serialize, self._deserialize)
self.operation = OperationOperations(self._client, self._config, self._serialize, self._deserialize)
self.parameter = ParameterOperations(self._client, self._config, self._serialize, self._deserialize)

def send_request(
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._operations import EnumValueOperations # type: ignore

from ._patch import __all__ as _patch_all
from ._patch import *
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"EnumValueOperations",
]
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
Loading