azure-quantum 3.5.1.dev1__py3-none-any.whl → 3.6.1__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 +2 -2
- azure/quantum/_client/_client.py +18 -57
- azure/quantum/_client/_configuration.py +13 -22
- azure/quantum/_client/_patch.py +7 -6
- azure/quantum/_client/_utils/__init__.py +6 -0
- azure/quantum/_client/{_model_base.py → _utils/model_base.py} +210 -45
- azure/quantum/_client/{_serialization.py → _utils/serialization.py} +74 -151
- azure/quantum/_client/_validation.py +66 -0
- azure/quantum/_client/_version.py +1 -1
- azure/quantum/_client/aio/__init__.py +29 -0
- azure/quantum/_client/aio/_client.py +110 -0
- azure/quantum/_client/aio/_configuration.py +75 -0
- azure/quantum/_client/aio/_patch.py +21 -0
- azure/quantum/_client/aio/operations/__init__.py +25 -0
- azure/quantum/_client/aio/operations/_operations.py +1988 -0
- azure/quantum/_client/aio/operations/_patch.py +21 -0
- azure/quantum/_client/models/__init__.py +8 -4
- azure/quantum/_client/models/_enums.py +28 -23
- azure/quantum/_client/models/_models.py +198 -106
- azure/quantum/_client/models/_patch.py +7 -6
- azure/quantum/_client/operations/__init__.py +2 -12
- azure/quantum/_client/operations/_operations.py +900 -715
- azure/quantum/_client/operations/_patch.py +7 -6
- azure/quantum/_constants.py +6 -1
- azure/quantum/_mgmt_client.py +19 -9
- azure/quantum/_workspace_connection_params.py +27 -2
- azure/quantum/job/base_job.py +8 -0
- azure/quantum/job/job.py +13 -4
- azure/quantum/job/session.py +11 -0
- azure/quantum/target/rigetti/target.py +1 -6
- azure/quantum/target/target.py +5 -1
- azure/quantum/target/target_factory.py +14 -7
- azure/quantum/version.py +1 -1
- azure/quantum/workspace.py +35 -31
- {azure_quantum-3.5.1.dev1.dist-info → azure_quantum-3.6.1.dist-info}/METADATA +2 -6
- azure_quantum-3.6.1.dist-info/RECORD +74 -0
- {azure_quantum-3.5.1.dev1.dist-info → azure_quantum-3.6.1.dist-info}/WHEEL +1 -1
- azure_quantum-3.5.1.dev1.dist-info/RECORD +0 -65
- {azure_quantum-3.5.1.dev1.dist-info → azure_quantum-3.6.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
# --------------------------------------------------------------------------
|
|
6
|
+
"""Customize generated code here.
|
|
7
|
+
|
|
8
|
+
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def patch_sdk():
|
|
16
|
+
"""Do not remove from this file.
|
|
17
|
+
|
|
18
|
+
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
|
19
|
+
you can't accomplish using the techniques described in
|
|
20
|
+
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
|
21
|
+
"""
|
|
@@ -19,24 +19,26 @@ from ._models import ( # type: ignore
|
|
|
19
19
|
InnerError,
|
|
20
20
|
ItemDetails,
|
|
21
21
|
JobDetails,
|
|
22
|
-
|
|
22
|
+
JobUpdateOptions,
|
|
23
23
|
ProviderStatus,
|
|
24
24
|
QuantumComputingData,
|
|
25
25
|
Quota,
|
|
26
26
|
SasUriResponse,
|
|
27
27
|
SessionDetails,
|
|
28
28
|
TargetStatus,
|
|
29
|
+
Usage,
|
|
29
30
|
UsageEvent,
|
|
30
31
|
WorkspaceItemError,
|
|
31
32
|
)
|
|
32
33
|
|
|
33
34
|
from ._enums import ( # type: ignore
|
|
35
|
+
CreatedByType,
|
|
34
36
|
DimensionScope,
|
|
35
37
|
ItemType,
|
|
36
38
|
JobStatus,
|
|
37
39
|
JobType,
|
|
38
|
-
JsonPatchOperation,
|
|
39
40
|
MeterPeriod,
|
|
41
|
+
Priority,
|
|
40
42
|
ProviderAvailability,
|
|
41
43
|
SessionJobFailurePolicy,
|
|
42
44
|
SessionStatus,
|
|
@@ -52,21 +54,23 @@ __all__ = [
|
|
|
52
54
|
"InnerError",
|
|
53
55
|
"ItemDetails",
|
|
54
56
|
"JobDetails",
|
|
55
|
-
"
|
|
57
|
+
"JobUpdateOptions",
|
|
56
58
|
"ProviderStatus",
|
|
57
59
|
"QuantumComputingData",
|
|
58
60
|
"Quota",
|
|
59
61
|
"SasUriResponse",
|
|
60
62
|
"SessionDetails",
|
|
61
63
|
"TargetStatus",
|
|
64
|
+
"Usage",
|
|
62
65
|
"UsageEvent",
|
|
63
66
|
"WorkspaceItemError",
|
|
67
|
+
"CreatedByType",
|
|
64
68
|
"DimensionScope",
|
|
65
69
|
"ItemType",
|
|
66
70
|
"JobStatus",
|
|
67
71
|
"JobType",
|
|
68
|
-
"JsonPatchOperation",
|
|
69
72
|
"MeterPeriod",
|
|
73
|
+
"Priority",
|
|
70
74
|
"ProviderAvailability",
|
|
71
75
|
"SessionJobFailurePolicy",
|
|
72
76
|
"SessionStatus",
|
|
@@ -10,6 +10,19 @@ from enum import Enum
|
|
|
10
10
|
from azure.core import CaseInsensitiveEnumMeta
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
14
|
+
"""The type of identity that created the item."""
|
|
15
|
+
|
|
16
|
+
USER = "User"
|
|
17
|
+
"""The item is created by user"""
|
|
18
|
+
APPLICATION = "Application"
|
|
19
|
+
"""The item is created by application"""
|
|
20
|
+
MANAGED_IDENTITY = "ManagedIdentity"
|
|
21
|
+
"""The item is created using managed identity"""
|
|
22
|
+
KEY = "Key"
|
|
23
|
+
"""The item is created using key"""
|
|
24
|
+
|
|
25
|
+
|
|
13
26
|
class DimensionScope(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
14
27
|
"""The scope at which the quota is applied to."""
|
|
15
28
|
|
|
@@ -31,20 +44,20 @@ class ItemType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
|
31
44
|
class JobStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
32
45
|
"""The status of the job."""
|
|
33
46
|
|
|
47
|
+
QUEUED = "Queued"
|
|
48
|
+
"""The job has been queued."""
|
|
34
49
|
WAITING = "Waiting"
|
|
35
50
|
"""The job is waiting in the queue to be executed."""
|
|
36
|
-
QUEUED = "Queued"
|
|
37
|
-
"""The job is queued for execution."""
|
|
38
51
|
EXECUTING = "Executing"
|
|
39
52
|
"""The job is being executed."""
|
|
40
|
-
FINISHING = "Finishing"
|
|
41
|
-
"""The job is in the process of finishing."""
|
|
42
53
|
CANCELLATION_REQUESTED = "CancellationRequested"
|
|
43
|
-
"""Cancellation
|
|
54
|
+
"""Cancellation of the job has been requested."""
|
|
44
55
|
CANCELLING = "Cancelling"
|
|
45
56
|
"""The job is in the process of being cancelled."""
|
|
57
|
+
FINISHING = "Finishing"
|
|
58
|
+
"""The job is in the process of being finished."""
|
|
46
59
|
COMPLETED = "Completed"
|
|
47
|
-
"""The job
|
|
60
|
+
"""The job completed."""
|
|
48
61
|
SUCCEEDED = "Succeeded"
|
|
49
62
|
"""The job completed with success."""
|
|
50
63
|
FAILED = "Failed"
|
|
@@ -64,23 +77,6 @@ class JobType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
|
64
77
|
"""Optimization job type."""
|
|
65
78
|
|
|
66
79
|
|
|
67
|
-
class JsonPatchOperation(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
68
|
-
"""The operation to be performed."""
|
|
69
|
-
|
|
70
|
-
ADD = "add"
|
|
71
|
-
"""Add value operation."""
|
|
72
|
-
REMOVE = "remove"
|
|
73
|
-
"""Remove value operation."""
|
|
74
|
-
REPLACE = "replace"
|
|
75
|
-
"""Replace value operation."""
|
|
76
|
-
MOVE = "move"
|
|
77
|
-
"""Move value operation."""
|
|
78
|
-
COPY = "copy"
|
|
79
|
-
"""Copy value operation."""
|
|
80
|
-
TEST = "test"
|
|
81
|
-
"""Test value operation."""
|
|
82
|
-
|
|
83
|
-
|
|
84
80
|
class MeterPeriod(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
85
81
|
"""The time period in which the quota's underlying meter is accumulated. Based on calendar year.
|
|
86
82
|
'None' is used for concurrent quotas.
|
|
@@ -92,6 +88,15 @@ class MeterPeriod(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
|
92
88
|
"""The meter period is per month."""
|
|
93
89
|
|
|
94
90
|
|
|
91
|
+
class Priority(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
92
|
+
"""Job priority levels."""
|
|
93
|
+
|
|
94
|
+
STANDARD = "Standard"
|
|
95
|
+
"""The job's base priority."""
|
|
96
|
+
HIGH = "High"
|
|
97
|
+
"""The job's priority is elevated."""
|
|
98
|
+
|
|
99
|
+
|
|
95
100
|
class ProviderAvailability(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
|
96
101
|
"""Provider availability."""
|
|
97
102
|
|