Skip to content

Commit 2e73606

Browse files
author
SDKAuto
committed
CodeGen from PR 33881 in Azure/azure-rest-api-specs
Merge 75eee67128e57fc00f25eca195679e8db7cf2e96 into 4ee934e52d72abab89bd0cc706b3f7bf8818729d
1 parent 8b96068 commit 2e73606

File tree

13 files changed

+43
-55
lines changed

13 files changed

+43
-55
lines changed

sdk/pineconevectordb/azure-mgmt-pineconevectordb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"commit": "70eec0726034ed22734168f3cd3d2b641dbc5723",
2+
"commit": "89947eccd80af5d47393e716ec19c5c22b02d818",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"typespec_src": "specification/liftrpinecone/Pinecone.VectorDb.Management",
5-
"@azure-tools/typespec-python": "0.39.1"
5+
"@azure-tools/typespec-python": "0.42.2"
66
}

sdk/pineconevectordb/azure-mgmt-pineconevectordb/azure/mgmt/pineconevectordb/_model_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# coding=utf-8
33
# --------------------------------------------------------------------------
44
# Copyright (c) Microsoft Corporation. All rights reserved.
5-
# Licensed under the MIT License. See License.txt in the project root for
6-
# license information.
5+
# Licensed under the MIT License. See License.txt in the project root for license information.
6+
# Code generated by Microsoft (R) Python Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
78
# --------------------------------------------------------------------------
89
# pylint: disable=protected-access, broad-except
910

sdk/pineconevectordb/azure-mgmt-pineconevectordb/azure/mgmt/pineconevectordb/_patch.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# ------------------------------------
2-
# Copyright (c) Microsoft Corporation.
3-
# Licensed under the MIT License.
4-
# ------------------------------------
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# --------------------------------------------------------------------------
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize

sdk/pineconevectordb/azure-mgmt-pineconevectordb/azure/mgmt/pineconevectordb/_serialization.py

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,10 @@
11
# pylint: disable=line-too-long,useless-suppression,too-many-lines
2+
# coding=utf-8
23
# --------------------------------------------------------------------------
3-
#
44
# Copyright (c) Microsoft Corporation. All rights reserved.
5-
#
6-
# The MIT License (MIT)
7-
#
8-
# Permission is hereby granted, free of charge, to any person obtaining a copy
9-
# of this software and associated documentation files (the ""Software""), to
10-
# deal in the Software without restriction, including without limitation the
11-
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12-
# sell copies of the Software, and to permit persons to whom the Software is
13-
# furnished to do so, subject to the following conditions:
14-
#
15-
# The above copyright notice and this permission notice shall be included in
16-
# all copies or substantial portions of the Software.
17-
#
18-
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24-
# IN THE SOFTWARE.
25-
#
5+
# Licensed under the MIT License. See License.txt in the project root for license information.
6+
# Code generated by Microsoft (R) Python Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
268
# --------------------------------------------------------------------------
279

2810
# pyright: reportUnnecessaryTypeIgnoreComment=false

sdk/pineconevectordb/azure-mgmt-pineconevectordb/azure/mgmt/pineconevectordb/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b2"
9+
VERSION = "1.0.0b1"

sdk/pineconevectordb/azure-mgmt-pineconevectordb/azure/mgmt/pineconevectordb/aio/_patch.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# ------------------------------------
2-
# Copyright (c) Microsoft Corporation.
3-
# Licensed under the MIT License.
4-
# ------------------------------------
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# --------------------------------------------------------------------------
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize

sdk/pineconevectordb/azure-mgmt-pineconevectordb/azure/mgmt/pineconevectordb/aio/operations/_operations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def prepare_request(next_link=None):
134134

135135
async def extract_data(pipeline_response):
136136
deserialized = pipeline_response.http_response.json()
137-
list_of_elem = _deserialize(List[_models.Operation], deserialized["value"])
137+
list_of_elem = _deserialize(List[_models.Operation], deserialized.get("value", []))
138138
if cls:
139139
list_of_elem = cls(list_of_elem) # type: ignore
140140
return deserialized.get("nextLink") or None, AsyncList(list_of_elem)
@@ -830,7 +830,7 @@ def prepare_request(next_link=None):
830830

831831
async def extract_data(pipeline_response):
832832
deserialized = pipeline_response.http_response.json()
833-
list_of_elem = _deserialize(List[_models.OrganizationResource], deserialized["value"])
833+
list_of_elem = _deserialize(List[_models.OrganizationResource], deserialized.get("value", []))
834834
if cls:
835835
list_of_elem = cls(list_of_elem) # type: ignore
836836
return deserialized.get("nextLink") or None, AsyncList(list_of_elem)
@@ -915,7 +915,7 @@ def prepare_request(next_link=None):
915915

916916
async def extract_data(pipeline_response):
917917
deserialized = pipeline_response.http_response.json()
918-
list_of_elem = _deserialize(List[_models.OrganizationResource], deserialized["value"])
918+
list_of_elem = _deserialize(List[_models.OrganizationResource], deserialized.get("value", []))
919919
if cls:
920920
list_of_elem = cls(list_of_elem) # type: ignore
921921
return deserialized.get("nextLink") or None, AsyncList(list_of_elem)

sdk/pineconevectordb/azure-mgmt-pineconevectordb/azure/mgmt/pineconevectordb/aio/operations/_patch.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# ------------------------------------
2-
# Copyright (c) Microsoft Corporation.
3-
# Licensed under the MIT License.
4-
# ------------------------------------
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# --------------------------------------------------------------------------
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize

sdk/pineconevectordb/azure-mgmt-pineconevectordb/azure/mgmt/pineconevectordb/models/_patch.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# ------------------------------------
2-
# Copyright (c) Microsoft Corporation.
3-
# Licensed under the MIT License.
4-
# ------------------------------------
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# --------------------------------------------------------------------------
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize

0 commit comments

Comments
 (0)