azure-quantum 2.4.0__py3-none-any.whl → 2.5.0.dev0__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.
@@ -0,0 +1,20 @@
1
+ # ------------------------------------
2
+ # Copyright (c) Microsoft Corporation.
3
+ # Licensed under the MIT License.
4
+ # ------------------------------------
5
+ """Customize generated code here.
6
+
7
+ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
8
+ """
9
+ from typing import List
10
+
11
+ __all__: List[str] = [] # Add all objects you want publicly available to users at this package level
12
+
13
+
14
+ def patch_sdk():
15
+ """Do not remove from this file.
16
+
17
+ `patch_sdk` is a last resort escape hatch that allows you to do customizations
18
+ you can't accomplish using the techniques described in
19
+ https://aka.ms/azsdk/python/dpcodegen/python/customize
20
+ """
@@ -2,54 +2,65 @@
2
2
  # --------------------------------------------------------------------------
3
3
  # Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  # Licensed under the MIT License. See License.txt in the project root for license information.
5
- # Code generated by Microsoft (R) AutoRest Code Generator.
5
+ # Code generated by Microsoft (R) Python Code Generator.
6
6
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  # --------------------------------------------------------------------------
8
+ # pylint: disable=wrong-import-position
8
9
 
9
- from ._models import BlobDetails
10
- from ._models import CostEstimate
11
- from ._models import ErrorData
12
- from ._models import ItemDetails
13
- from ._models import JobDetails
14
- from ._models import JsonPatchDocument
15
- from ._models import ProviderStatus
16
- from ._models import QuantumComputingData
17
- from ._models import Quota
18
- from ._models import RestError
19
- from ._models import SasUriResponse
20
- from ._models import SessionDetails
21
- from ._models import TargetStatus
22
- from ._models import UsageEvent
10
+ from typing import TYPE_CHECKING
23
11
 
24
- from ._enums import DimensionScope
25
- from ._enums import ItemType
26
- from ._enums import JobStatus
27
- from ._enums import JobType
28
- from ._enums import JsonPatchOperation
29
- from ._enums import MeterPeriod
30
- from ._enums import ProviderAvailability
31
- from ._enums import SessionJobFailurePolicy
32
- from ._enums import SessionStatus
33
- from ._enums import TargetAvailability
12
+ if TYPE_CHECKING:
13
+ from ._patch import * # pylint: disable=unused-wildcard-import
14
+
15
+
16
+ from ._models import ( # type: ignore
17
+ BlobDetails,
18
+ CostEstimate,
19
+ InnerError,
20
+ ItemDetails,
21
+ JobDetails,
22
+ JsonPatchObject,
23
+ ProviderStatus,
24
+ QuantumComputingData,
25
+ Quota,
26
+ SasUriResponse,
27
+ SessionDetails,
28
+ TargetStatus,
29
+ UsageEvent,
30
+ WorkspaceItemError,
31
+ )
32
+
33
+ from ._enums import ( # type: ignore
34
+ DimensionScope,
35
+ ItemType,
36
+ JobStatus,
37
+ JobType,
38
+ JsonPatchOperation,
39
+ MeterPeriod,
40
+ ProviderAvailability,
41
+ SessionJobFailurePolicy,
42
+ SessionStatus,
43
+ TargetAvailability,
44
+ )
34
45
  from ._patch import __all__ as _patch_all
35
- from ._patch import * # pylint: disable=unused-wildcard-import
46
+ from ._patch import *
36
47
  from ._patch import patch_sdk as _patch_sdk
37
48
 
38
49
  __all__ = [
39
50
  "BlobDetails",
40
51
  "CostEstimate",
41
- "ErrorData",
52
+ "InnerError",
42
53
  "ItemDetails",
43
54
  "JobDetails",
44
- "JsonPatchDocument",
55
+ "JsonPatchObject",
45
56
  "ProviderStatus",
46
57
  "QuantumComputingData",
47
58
  "Quota",
48
- "RestError",
49
59
  "SasUriResponse",
50
60
  "SessionDetails",
51
61
  "TargetStatus",
52
62
  "UsageEvent",
63
+ "WorkspaceItemError",
53
64
  "DimensionScope",
54
65
  "ItemType",
55
66
  "JobStatus",
@@ -61,5 +72,5 @@ __all__ = [
61
72
  "SessionStatus",
62
73
  "TargetAvailability",
63
74
  ]
64
- __all__.extend([p for p in _patch_all if p not in __all__])
75
+ __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
65
76
  _patch_sdk()
@@ -2,7 +2,7 @@
2
2
  # --------------------------------------------------------------------------
3
3
  # Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  # Licensed under the MIT License. See License.txt in the project root for license information.
5
- # Code generated by Microsoft (R) AutoRest Code Generator.
5
+ # Code generated by Microsoft (R) Python Code Generator.
6
6
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  # --------------------------------------------------------------------------
8
8
 
@@ -11,14 +11,16 @@ from azure.core import CaseInsensitiveEnumMeta
11
11
 
12
12
 
13
13
  class DimensionScope(str, Enum, metaclass=CaseInsensitiveEnumMeta):
14
- """The scope at which the quota is applied."""
14
+ """The scope at which the quota is applied to."""
15
15
 
16
16
  WORKSPACE = "Workspace"
17
+ """The quota is applied to the Quantum Workspace."""
17
18
  SUBSCRIPTION = "Subscription"
19
+ """The quota is applied to the Azure Subscription."""
18
20
 
19
21
 
20
22
  class ItemType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
21
- """The type of item."""
23
+ """The type of the workspace item."""
22
24
 
23
25
  JOB = "Job"
24
26
  """A program, problem, or application submitted for processing."""
@@ -30,29 +32,43 @@ class JobStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
30
32
  """The status of the job."""
31
33
 
32
34
  WAITING = "Waiting"
35
+ """The job is waiting in the queue to be executed."""
33
36
  EXECUTING = "Executing"
37
+ """The job is being executed."""
34
38
  SUCCEEDED = "Succeeded"
39
+ """The job completed with success."""
35
40
  FAILED = "Failed"
41
+ """The job completed with failure."""
36
42
  CANCELLED = "Cancelled"
43
+ """The job was cancelled."""
37
44
 
38
45
 
39
46
  class JobType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
40
- """The type of job."""
47
+ """The type of the job."""
41
48
 
42
49
  UNKNOWN = "Unknown"
50
+ """Unknown job type."""
43
51
  QUANTUM_COMPUTING = "QuantumComputing"
52
+ """Quantum Computing job type."""
44
53
  OPTIMIZATION = "Optimization"
54
+ """Optimization job type."""
45
55
 
46
56
 
47
57
  class JsonPatchOperation(str, Enum, metaclass=CaseInsensitiveEnumMeta):
48
58
  """The operation to be performed."""
49
59
 
50
60
  ADD = "add"
61
+ """Add value operation."""
51
62
  REMOVE = "remove"
63
+ """Remove value operation."""
52
64
  REPLACE = "replace"
65
+ """Replace value operation."""
53
66
  MOVE = "move"
67
+ """Move value operation."""
54
68
  COPY = "copy"
69
+ """Copy value operation."""
55
70
  TEST = "test"
71
+ """Test value operation."""
56
72
 
57
73
 
58
74
  class MeterPeriod(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -61,15 +77,20 @@ class MeterPeriod(str, Enum, metaclass=CaseInsensitiveEnumMeta):
61
77
  """
62
78
 
63
79
  NONE = "None"
80
+ """The meter period is instantaneous. Used for concurrent quotas."""
64
81
  MONTHLY = "Monthly"
82
+ """The meter period is per month."""
65
83
 
66
84
 
67
85
  class ProviderAvailability(str, Enum, metaclass=CaseInsensitiveEnumMeta):
68
86
  """Provider availability."""
69
87
 
70
88
  AVAILABLE = "Available"
89
+ """Provider is available."""
71
90
  DEGRADED = "Degraded"
91
+ """Provider is available with degraded experience."""
72
92
  UNAVAILABLE = "Unavailable"
93
+ """Provider is unavailable."""
73
94
 
74
95
 
75
96
  class SessionJobFailurePolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -85,16 +106,25 @@ class SessionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
85
106
  """The status of the session."""
86
107
 
87
108
  WAITING = "Waiting"
109
+ """The session is waiting in the queue to be executed."""
88
110
  EXECUTING = "Executing"
111
+ """The session is being executed."""
89
112
  SUCCEEDED = "Succeeded"
113
+ """The session completed with success."""
90
114
  FAILED = "Failed"
115
+ """The session completed with failure."""
91
116
  FAILURE_S_ = "Failure(s)"
117
+ """The session completed with some failures."""
92
118
  TIMED_OUT = "TimedOut"
119
+ """The session timed out."""
93
120
 
94
121
 
95
122
  class TargetAvailability(str, Enum, metaclass=CaseInsensitiveEnumMeta):
96
123
  """Target availability."""
97
124
 
98
125
  AVAILABLE = "Available"
126
+ """Target is available."""
99
127
  DEGRADED = "Degraded"
128
+ """Target is available with degraded experience."""
100
129
  UNAVAILABLE = "Unavailable"
130
+ """Target is unavailable."""