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
@@ -0,0 +1,8 @@
---
changeKind: dependencies
packages:
- "@autorest/python"
- "@azure-tools/typespec-python"
---

Bump typespec dependency
2 changes: 1 addition & 1 deletion packages/autorest.python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
"dependencies": {
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTU0NjIzOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.20.2.tgz",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTU2NjE3My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.20.2.tgz",
"@autorest/system-requirements": "~1.0.2",
"fs-extra": "~11.2.0",
"tsx": "~4.19.1"
Expand Down
66 changes: 33 additions & 33 deletions packages/typespec-python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,48 +48,48 @@
"generator/**"
],
"peerDependencies": {
"@typespec/compiler": "^1.5.0",
"@typespec/http": "^1.5.0",
"@typespec/rest": ">=0.75.0 <1.0.0",
"@typespec/versioning": ">=0.75.0 <1.0.0",
"@typespec/openapi": "^1.5.0",
"@typespec/events": ">=0.75.0 <1.0.0",
"@typespec/sse": ">=0.75.0 <1.0.0",
"@typespec/streams": ">=0.75.0 <1.0.0",
"@typespec/xml": ">=0.75.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.61.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.61.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.61.0 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.61.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.61.0 <1.0.0"
"@typespec/compiler": "^1.6.0",
"@typespec/http": "^1.6.0",
"@typespec/rest": ">=0.76.0 <1.0.0",
"@typespec/versioning": ">=0.76.0 <1.0.0",
"@typespec/openapi": "^1.6.0",
"@typespec/events": ">=0.76.0 <1.0.0",
"@typespec/sse": ">=0.76.0 <1.0.0",
"@typespec/streams": ">=0.76.0 <1.0.0",
"@typespec/xml": ">=0.76.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.62.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.62.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.62.0 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.62.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.62.0 <1.0.0"
},
"dependencies": {
"js-yaml": "~4.1.0",
"semver": "~7.6.2",
"tsx": "~4.19.1",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTU0NjIzOS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.20.2.tgz",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTU2NjE3My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.20.2.tgz",
"fs-extra": "~11.2.0"
},
"devDependencies": {
"@typespec/compiler": "^1.5.0",
"@typespec/http": "^1.5.0",
"@typespec/rest": "~0.75.0",
"@typespec/versioning": "~0.75.0",
"@typespec/openapi": "^1.5.0",
"@typespec/events": "~0.75.0",
"@typespec/sse": "~0.75.0",
"@typespec/streams": "~0.75.0",
"@typespec/compiler": "^1.6.0",
"@typespec/http": "^1.6.0",
"@typespec/rest": "~0.76.0",
"@typespec/versioning": "~0.76.0",
"@typespec/openapi": "^1.6.0",
"@typespec/events": "~0.76.0",
"@typespec/sse": "~0.76.0",
"@typespec/streams": "~0.76.0",
"@typespec/tspd": "~0.70.0",
"@typespec/xml": "~0.75.0",
"@azure-tools/typespec-azure-resource-manager": "~0.61.0",
"@azure-tools/typespec-azure-core": "~0.61.0",
"@azure-tools/typespec-azure-rulesets": "~0.61.0",
"@azure-tools/typespec-autorest": "~0.61.0",
"@azure-tools/typespec-client-generator-core": "~0.61.0",
"@azure-tools/azure-http-specs": "0.1.0-alpha.31",
"@typespec/http-specs": "0.1.0-alpha.27",
"@typespec/spector": "0.1.0-alpha.19",
"@typespec/spec-api": "0.1.0-alpha.9",
"@typespec/xml": "~0.76.0",
"@azure-tools/typespec-azure-resource-manager": "~0.62.0",
"@azure-tools/typespec-azure-core": "~0.62.0",
"@azure-tools/typespec-azure-rulesets": "~0.62.0",
"@azure-tools/typespec-autorest": "~0.62.0",
"@azure-tools/typespec-client-generator-core": "~0.62.0",
"@azure-tools/azure-http-specs": "0.1.0-alpha.32",
"@typespec/http-specs": "0.1.0-alpha.28",
"@typespec/spector": "0.1.0-alpha.20",
"@typespec/spec-api": "0.1.0-alpha.10",
"@types/js-yaml": "~4.0.5",
"@types/node": "~24.1.0",
"@types/yargs": "~17.0.33",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Release History

## 1.0.0b1 (1970-01-01)

### Other Changes

- Initial version
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Copyright (c) Microsoft Corporation.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include *.md
include LICENSE
include specs/azure/clientgenerator/core/nextlinkverb/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include specs/__init__.py
include specs/azure/__init__.py
include specs/azure/clientgenerator/__init__.py
include specs/azure/clientgenerator/core/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Specs Azure Clientgenerator Core Nextlinkverb client library for Python
<!-- write necessary description of service -->

## Getting started

### Install the package

```bash
python -m pip install specs-azure-clientgenerator-core-nextlinkverb
```

#### Prequisites

- Python 3.9 or later is required to use this package.
- You need an [Azure subscription][azure_sub] to use this package.
- An existing Specs Azure Clientgenerator Core Nextlinkverb instance.


## Contributing

This project welcomes contributions and suggestions. Most contributions require
you to agree to a Contributor License Agreement (CLA) declaring that you have
the right to, and actually do, grant us the rights to use your contribution.
For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether
you need to provide a CLA and decorate the PR appropriately (e.g., label,
comment). Simply follow the instructions provided by the bot. You will only
need to do this once across all repos using our CLA.

This project has adopted the
[Microsoft Open Source Code of Conduct][code_of_conduct]. For more information,
see the Code of Conduct FAQ or contact opencode@microsoft.com with any
additional questions or comments.

<!-- LINKS -->
[code_of_conduct]: https://opensource.microsoft.com/codeofconduct/
[authenticate_with_token]: https://docs.microsoft.com/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-an-authentication-token
[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#credentials
[azure_identity_pip]: https://pypi.org/project/azure-identity/
[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential
[pip]: https://pypi.org/project/pip/
[azure_sub]: https://azure.microsoft.com/free/
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"CrossLanguagePackageId": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb",
"CrossLanguageDefinitionId": {
"specs.azure.clientgenerator.core.nextlinkverb.models.Test": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb.Test",
"specs.azure.clientgenerator.core.nextlinkverb.NextLinkVerbClient.list_items": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb.listItems",
"specs.azure.clientgenerator.core.nextlinkverb.aio.NextLinkVerbClient.list_items": "_Specs_.Azure.ClientGenerator.Core.NextLinkVerb.listItems"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-e ../../../eng/tools/azure-sdk-tools
../../core/azure-core
aiohttp
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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 os
import pytest
from dotenv import load_dotenv
from devtools_testutils import (
test_proxy,
add_general_regex_sanitizer,
add_body_key_sanitizer,
add_header_regex_sanitizer,
)

load_dotenv()


# For security, please avoid record sensitive identity information in recordings
@pytest.fixture(scope="session", autouse=True)
def add_sanitizers(test_proxy):
nextlinkverb_subscription_id = os.environ.get(
"NEXTLINKVERB_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000"
)
nextlinkverb_tenant_id = os.environ.get("NEXTLINKVERB_TENANT_ID", "00000000-0000-0000-0000-000000000000")
nextlinkverb_client_id = os.environ.get("NEXTLINKVERB_CLIENT_ID", "00000000-0000-0000-0000-000000000000")
nextlinkverb_client_secret = os.environ.get("NEXTLINKVERB_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000")
add_general_regex_sanitizer(regex=nextlinkverb_subscription_id, value="00000000-0000-0000-0000-000000000000")
add_general_regex_sanitizer(regex=nextlinkverb_tenant_id, value="00000000-0000-0000-0000-000000000000")
add_general_regex_sanitizer(regex=nextlinkverb_client_id, value="00000000-0000-0000-0000-000000000000")
add_general_regex_sanitizer(regex=nextlinkverb_client_secret, value="00000000-0000-0000-0000-000000000000")

add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]")
add_header_regex_sanitizer(key="Cookie", value="cookie;")
add_body_key_sanitizer(json_path="$..access_token", value="access_token")
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 NextLinkVerbClientTestBase, NextLinkVerbPreparer


@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestNextLinkVerb(NextLinkVerbClientTestBase):
@NextLinkVerbPreparer()
@recorded_by_proxy
def test_list_items(self, nextlinkverb_endpoint):
client = self.create_client(endpoint=nextlinkverb_endpoint)
response = client.list_items()
result = [r for r in response]
# 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 NextLinkVerbPreparer
from testpreparer_async import NextLinkVerbClientTestBaseAsync


@pytest.mark.skip("you may need to update the auto-generated test case before run it")
class TestNextLinkVerbAsync(NextLinkVerbClientTestBaseAsync):
@NextLinkVerbPreparer()
@recorded_by_proxy_async
async def test_list_items(self, nextlinkverb_endpoint):
client = self.create_async_client(endpoint=nextlinkverb_endpoint)
response = client.list_items()
result = [r async for r in response]
# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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.
# --------------------------------------------------------------------------
from devtools_testutils import AzureRecordedTestCase, PowerShellPreparer
import functools
from specs.azure.clientgenerator.core.nextlinkverb import NextLinkVerbClient


class NextLinkVerbClientTestBase(AzureRecordedTestCase):

def create_client(self, endpoint):
credential = self.get_credential(NextLinkVerbClient)
return self.create_client_from_credential(
NextLinkVerbClient,
credential=credential,
endpoint=endpoint,
)


NextLinkVerbPreparer = functools.partial(
PowerShellPreparer, "nextlinkverb", nextlinkverb_endpoint="https://fake_nextlinkverb_endpoint.com"
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 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.
# --------------------------------------------------------------------------
from devtools_testutils import AzureRecordedTestCase
from specs.azure.clientgenerator.core.nextlinkverb.aio import NextLinkVerbClient


class NextLinkVerbClientTestBaseAsync(AzureRecordedTestCase):

def create_async_client(self, endpoint):
credential = self.get_credential(NextLinkVerbClient, is_async=True)
return self.create_client_from_credential(
NextLinkVerbClient,
credential=credential,
endpoint=endpoint,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------

[build-system]
requires = ["setuptools>=77.0.3", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "specs-azure-clientgenerator-core-nextlinkverb"
authors = [
{ name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" },
]
description = "Microsoft Corporation Azure Specs Azure Clientgenerator Core Nextlinkverb Client Library for Python"
license = "MIT"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.9"
keywords = ["azure", "azure sdk"]

dependencies = [
"isodate>=0.6.1",
"azure-core>=1.35.0",
"typing-extensions>=4.6.0",
]
dynamic = [
"version", "readme"
]

[project.urls]
repository = "https://github.com/Azure/azure-sdk-for-python"

[tool.setuptools.dynamic]
version = {attr = "specs.azure.clientgenerator.core.nextlinkverb._version.VERSION"}
readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"}

[tool.setuptools.packages.find]
exclude = [
"tests*",
"generated_tests*",
"samples*",
"generated_samples*",
"doc*",
"specs",
"specs.azure",
"specs.azure.clientgenerator",
"specs.azure.clientgenerator.core",
]

[tool.setuptools.package-data]
pytyped = ["py.typed"]
Loading
Loading