azure-quantum 2.5.0.dev2__py3-none-any.whl → 3.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- azure/quantum/_client/__init__.py +11 -5
- azure/quantum/_client/_client.py +40 -49
- azure/quantum/_client/_configuration.py +34 -41
- azure/quantum/_client/_model_base.py +1159 -0
- azure/quantum/_client/_serialization.py +285 -172
- azure/quantum/_client/_version.py +1 -1
- azure/quantum/_client/models/__init__.py +41 -30
- azure/quantum/_client/models/_enums.py +34 -4
- azure/quantum/_client/models/_models.py +435 -764
- azure/quantum/_client/operations/__init__.py +16 -10
- azure/quantum/_client/operations/_operations.py +1191 -769
- azure/quantum/target/microsoft/elements/dft/target.py +4 -1
- azure/quantum/version.py +1 -1
- azure/quantum/workspace.py +371 -38
- {azure_quantum-2.5.0.dev2.dist-info → azure_quantum-3.0.0.dist-info}/METADATA +1 -1
- {azure_quantum-2.5.0.dev2.dist-info → azure_quantum-3.0.0.dist-info}/RECORD +18 -18
- azure/quantum/_client/_vendor.py +0 -20
- {azure_quantum-2.5.0.dev2.dist-info → azure_quantum-3.0.0.dist-info}/WHEEL +0 -0
- {azure_quantum-2.5.0.dev2.dist-info → azure_quantum-3.0.0.dist-info}/top_level.txt +0 -0
azure/quantum/_client/_vendor.py
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# --------------------------------------------------------------------------
|
|
2
|
-
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
# Code generated by Microsoft (R) AutoRest Code Generator.
|
|
5
|
-
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6
|
-
# --------------------------------------------------------------------------
|
|
7
|
-
|
|
8
|
-
from typing import List, cast
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
def _format_url_section(template, **kwargs):
|
|
12
|
-
components = template.split("/")
|
|
13
|
-
while components:
|
|
14
|
-
try:
|
|
15
|
-
return template.format(**kwargs)
|
|
16
|
-
except KeyError as key:
|
|
17
|
-
# Need the cast, as for some reasons "split" is typed as list[str | Any]
|
|
18
|
-
formatted_components = cast(List[str], template.split("/"))
|
|
19
|
-
components = [c for c in formatted_components if "{}".format(key.args[0]) not in c]
|
|
20
|
-
template = "/".join(components)
|
|
File without changes
|
|
File without changes
|