nominal-api 0.619.0__py3-none-any.whl → 0.621.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.
Potentially problematic release.
This version of nominal-api might be problematic. Click here for more details.
- nominal_api/__init__.py +1 -1
- nominal_api/_impl.py +123 -4
- nominal_api/authorization/__init__.py +2 -0
- {nominal_api-0.619.0.dist-info → nominal_api-0.621.0.dist-info}/METADATA +1 -1
- {nominal_api-0.619.0.dist-info → nominal_api-0.621.0.dist-info}/RECORD +7 -7
- {nominal_api-0.619.0.dist-info → nominal_api-0.621.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.619.0.dist-info → nominal_api-0.621.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -2433,6 +2433,83 @@ authorization_AuthorizationService.__qualname__ = "AuthorizationService"
|
|
|
2433
2433
|
authorization_AuthorizationService.__module__ = "nominal_api.authorization"
|
|
2434
2434
|
|
|
2435
2435
|
|
|
2436
|
+
class authorization_Claim(ConjureUnionType):
|
|
2437
|
+
_string: Optional[str] = None
|
|
2438
|
+
_string_list: Optional[List[str]] = None
|
|
2439
|
+
|
|
2440
|
+
@builtins.classmethod
|
|
2441
|
+
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
2442
|
+
return {
|
|
2443
|
+
'string': ConjureFieldDefinition('string', str),
|
|
2444
|
+
'string_list': ConjureFieldDefinition('stringList', List[str])
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
def __init__(
|
|
2448
|
+
self,
|
|
2449
|
+
string: Optional[str] = None,
|
|
2450
|
+
string_list: Optional[List[str]] = None,
|
|
2451
|
+
type_of_union: Optional[str] = None
|
|
2452
|
+
) -> None:
|
|
2453
|
+
if type_of_union is None:
|
|
2454
|
+
if (string is not None) + (string_list is not None) != 1:
|
|
2455
|
+
raise ValueError('a union must contain a single member')
|
|
2456
|
+
|
|
2457
|
+
if string is not None:
|
|
2458
|
+
self._string = string
|
|
2459
|
+
self._type = 'string'
|
|
2460
|
+
if string_list is not None:
|
|
2461
|
+
self._string_list = string_list
|
|
2462
|
+
self._type = 'stringList'
|
|
2463
|
+
|
|
2464
|
+
elif type_of_union == 'string':
|
|
2465
|
+
if string is None:
|
|
2466
|
+
raise ValueError('a union value must not be None')
|
|
2467
|
+
self._string = string
|
|
2468
|
+
self._type = 'string'
|
|
2469
|
+
elif type_of_union == 'stringList':
|
|
2470
|
+
if string_list is None:
|
|
2471
|
+
raise ValueError('a union value must not be None')
|
|
2472
|
+
self._string_list = string_list
|
|
2473
|
+
self._type = 'stringList'
|
|
2474
|
+
|
|
2475
|
+
@builtins.property
|
|
2476
|
+
def string(self) -> Optional[str]:
|
|
2477
|
+
return self._string
|
|
2478
|
+
|
|
2479
|
+
@builtins.property
|
|
2480
|
+
def string_list(self) -> Optional[List[str]]:
|
|
2481
|
+
return self._string_list
|
|
2482
|
+
|
|
2483
|
+
def accept(self, visitor) -> Any:
|
|
2484
|
+
if not isinstance(visitor, authorization_ClaimVisitor):
|
|
2485
|
+
raise ValueError('{} is not an instance of authorization_ClaimVisitor'.format(visitor.__class__.__name__))
|
|
2486
|
+
if self._type == 'string' and self.string is not None:
|
|
2487
|
+
return visitor._string(self.string)
|
|
2488
|
+
if self._type == 'stringList' and self.string_list is not None:
|
|
2489
|
+
return visitor._string_list(self.string_list)
|
|
2490
|
+
|
|
2491
|
+
|
|
2492
|
+
authorization_Claim.__name__ = "Claim"
|
|
2493
|
+
authorization_Claim.__qualname__ = "Claim"
|
|
2494
|
+
authorization_Claim.__module__ = "nominal_api.authorization"
|
|
2495
|
+
|
|
2496
|
+
|
|
2497
|
+
class authorization_ClaimVisitor:
|
|
2498
|
+
|
|
2499
|
+
@abstractmethod
|
|
2500
|
+
def _string(self, string: str) -> Any:
|
|
2501
|
+
pass
|
|
2502
|
+
|
|
2503
|
+
@abstractmethod
|
|
2504
|
+
def _string_list(self, string_list: List[str]) -> Any:
|
|
2505
|
+
pass
|
|
2506
|
+
|
|
2507
|
+
|
|
2508
|
+
authorization_ClaimVisitor.__name__ = "ClaimVisitor"
|
|
2509
|
+
authorization_ClaimVisitor.__qualname__ = "ClaimVisitor"
|
|
2510
|
+
authorization_ClaimVisitor.__module__ = "nominal_api.authorization"
|
|
2511
|
+
|
|
2512
|
+
|
|
2436
2513
|
class authorization_CreateApiKeyRequest(ConjureBeanType):
|
|
2437
2514
|
|
|
2438
2515
|
@builtins.classmethod
|
|
@@ -39939,13 +40016,15 @@ class scout_compute_api_SelectValue(ConjureUnionType):
|
|
|
39939
40016
|
_first_point: Optional["scout_compute_api_Series"] = None
|
|
39940
40017
|
_first_range: Optional["scout_compute_api_RangeSeries"] = None
|
|
39941
40018
|
_last_point: Optional["scout_compute_api_Series"] = None
|
|
40019
|
+
_last_range: Optional["scout_compute_api_RangeSeries"] = None
|
|
39942
40020
|
|
|
39943
40021
|
@builtins.classmethod
|
|
39944
40022
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
39945
40023
|
return {
|
|
39946
40024
|
'first_point': ConjureFieldDefinition('firstPoint', scout_compute_api_Series),
|
|
39947
40025
|
'first_range': ConjureFieldDefinition('firstRange', scout_compute_api_RangeSeries),
|
|
39948
|
-
'last_point': ConjureFieldDefinition('lastPoint', scout_compute_api_Series)
|
|
40026
|
+
'last_point': ConjureFieldDefinition('lastPoint', scout_compute_api_Series),
|
|
40027
|
+
'last_range': ConjureFieldDefinition('lastRange', scout_compute_api_RangeSeries)
|
|
39949
40028
|
}
|
|
39950
40029
|
|
|
39951
40030
|
def __init__(
|
|
@@ -39953,10 +40032,11 @@ class scout_compute_api_SelectValue(ConjureUnionType):
|
|
|
39953
40032
|
first_point: Optional["scout_compute_api_Series"] = None,
|
|
39954
40033
|
first_range: Optional["scout_compute_api_RangeSeries"] = None,
|
|
39955
40034
|
last_point: Optional["scout_compute_api_Series"] = None,
|
|
40035
|
+
last_range: Optional["scout_compute_api_RangeSeries"] = None,
|
|
39956
40036
|
type_of_union: Optional[str] = None
|
|
39957
40037
|
) -> None:
|
|
39958
40038
|
if type_of_union is None:
|
|
39959
|
-
if (first_point is not None) + (first_range is not None) + (last_point is not None) != 1:
|
|
40039
|
+
if (first_point is not None) + (first_range is not None) + (last_point is not None) + (last_range is not None) != 1:
|
|
39960
40040
|
raise ValueError('a union must contain a single member')
|
|
39961
40041
|
|
|
39962
40042
|
if first_point is not None:
|
|
@@ -39968,6 +40048,9 @@ class scout_compute_api_SelectValue(ConjureUnionType):
|
|
|
39968
40048
|
if last_point is not None:
|
|
39969
40049
|
self._last_point = last_point
|
|
39970
40050
|
self._type = 'lastPoint'
|
|
40051
|
+
if last_range is not None:
|
|
40052
|
+
self._last_range = last_range
|
|
40053
|
+
self._type = 'lastRange'
|
|
39971
40054
|
|
|
39972
40055
|
elif type_of_union == 'firstPoint':
|
|
39973
40056
|
if first_point is None:
|
|
@@ -39984,6 +40067,11 @@ class scout_compute_api_SelectValue(ConjureUnionType):
|
|
|
39984
40067
|
raise ValueError('a union value must not be None')
|
|
39985
40068
|
self._last_point = last_point
|
|
39986
40069
|
self._type = 'lastPoint'
|
|
40070
|
+
elif type_of_union == 'lastRange':
|
|
40071
|
+
if last_range is None:
|
|
40072
|
+
raise ValueError('a union value must not be None')
|
|
40073
|
+
self._last_range = last_range
|
|
40074
|
+
self._type = 'lastRange'
|
|
39987
40075
|
|
|
39988
40076
|
@builtins.property
|
|
39989
40077
|
def first_point(self) -> Optional["scout_compute_api_Series"]:
|
|
@@ -39997,6 +40085,10 @@ class scout_compute_api_SelectValue(ConjureUnionType):
|
|
|
39997
40085
|
def last_point(self) -> Optional["scout_compute_api_Series"]:
|
|
39998
40086
|
return self._last_point
|
|
39999
40087
|
|
|
40088
|
+
@builtins.property
|
|
40089
|
+
def last_range(self) -> Optional["scout_compute_api_RangeSeries"]:
|
|
40090
|
+
return self._last_range
|
|
40091
|
+
|
|
40000
40092
|
def accept(self, visitor) -> Any:
|
|
40001
40093
|
if not isinstance(visitor, scout_compute_api_SelectValueVisitor):
|
|
40002
40094
|
raise ValueError('{} is not an instance of scout_compute_api_SelectValueVisitor'.format(visitor.__class__.__name__))
|
|
@@ -40006,6 +40098,8 @@ class scout_compute_api_SelectValue(ConjureUnionType):
|
|
|
40006
40098
|
return visitor._first_range(self.first_range)
|
|
40007
40099
|
if self._type == 'lastPoint' and self.last_point is not None:
|
|
40008
40100
|
return visitor._last_point(self.last_point)
|
|
40101
|
+
if self._type == 'lastRange' and self.last_range is not None:
|
|
40102
|
+
return visitor._last_range(self.last_range)
|
|
40009
40103
|
|
|
40010
40104
|
|
|
40011
40105
|
scout_compute_api_SelectValue.__name__ = "SelectValue"
|
|
@@ -40027,6 +40121,10 @@ class scout_compute_api_SelectValueVisitor:
|
|
|
40027
40121
|
def _last_point(self, last_point: "scout_compute_api_Series") -> Any:
|
|
40028
40122
|
pass
|
|
40029
40123
|
|
|
40124
|
+
@abstractmethod
|
|
40125
|
+
def _last_range(self, last_range: "scout_compute_api_RangeSeries") -> Any:
|
|
40126
|
+
pass
|
|
40127
|
+
|
|
40030
40128
|
|
|
40031
40129
|
scout_compute_api_SelectValueVisitor.__name__ = "SelectValueVisitor"
|
|
40032
40130
|
scout_compute_api_SelectValueVisitor.__qualname__ = "SelectValueVisitor"
|
|
@@ -48986,13 +49084,15 @@ class scout_compute_resolved_api_SelectValueNode(ConjureUnionType):
|
|
|
48986
49084
|
_first_point: Optional["scout_compute_resolved_api_SeriesNode"] = None
|
|
48987
49085
|
_first_range: Optional["scout_compute_resolved_api_RangesNode"] = None
|
|
48988
49086
|
_last_point: Optional["scout_compute_resolved_api_SeriesNode"] = None
|
|
49087
|
+
_last_range: Optional["scout_compute_resolved_api_RangesNode"] = None
|
|
48989
49088
|
|
|
48990
49089
|
@builtins.classmethod
|
|
48991
49090
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
48992
49091
|
return {
|
|
48993
49092
|
'first_point': ConjureFieldDefinition('firstPoint', scout_compute_resolved_api_SeriesNode),
|
|
48994
49093
|
'first_range': ConjureFieldDefinition('firstRange', scout_compute_resolved_api_RangesNode),
|
|
48995
|
-
'last_point': ConjureFieldDefinition('lastPoint', scout_compute_resolved_api_SeriesNode)
|
|
49094
|
+
'last_point': ConjureFieldDefinition('lastPoint', scout_compute_resolved_api_SeriesNode),
|
|
49095
|
+
'last_range': ConjureFieldDefinition('lastRange', scout_compute_resolved_api_RangesNode)
|
|
48996
49096
|
}
|
|
48997
49097
|
|
|
48998
49098
|
def __init__(
|
|
@@ -49000,10 +49100,11 @@ class scout_compute_resolved_api_SelectValueNode(ConjureUnionType):
|
|
|
49000
49100
|
first_point: Optional["scout_compute_resolved_api_SeriesNode"] = None,
|
|
49001
49101
|
first_range: Optional["scout_compute_resolved_api_RangesNode"] = None,
|
|
49002
49102
|
last_point: Optional["scout_compute_resolved_api_SeriesNode"] = None,
|
|
49103
|
+
last_range: Optional["scout_compute_resolved_api_RangesNode"] = None,
|
|
49003
49104
|
type_of_union: Optional[str] = None
|
|
49004
49105
|
) -> None:
|
|
49005
49106
|
if type_of_union is None:
|
|
49006
|
-
if (first_point is not None) + (first_range is not None) + (last_point is not None) != 1:
|
|
49107
|
+
if (first_point is not None) + (first_range is not None) + (last_point is not None) + (last_range is not None) != 1:
|
|
49007
49108
|
raise ValueError('a union must contain a single member')
|
|
49008
49109
|
|
|
49009
49110
|
if first_point is not None:
|
|
@@ -49015,6 +49116,9 @@ class scout_compute_resolved_api_SelectValueNode(ConjureUnionType):
|
|
|
49015
49116
|
if last_point is not None:
|
|
49016
49117
|
self._last_point = last_point
|
|
49017
49118
|
self._type = 'lastPoint'
|
|
49119
|
+
if last_range is not None:
|
|
49120
|
+
self._last_range = last_range
|
|
49121
|
+
self._type = 'lastRange'
|
|
49018
49122
|
|
|
49019
49123
|
elif type_of_union == 'firstPoint':
|
|
49020
49124
|
if first_point is None:
|
|
@@ -49031,6 +49135,11 @@ class scout_compute_resolved_api_SelectValueNode(ConjureUnionType):
|
|
|
49031
49135
|
raise ValueError('a union value must not be None')
|
|
49032
49136
|
self._last_point = last_point
|
|
49033
49137
|
self._type = 'lastPoint'
|
|
49138
|
+
elif type_of_union == 'lastRange':
|
|
49139
|
+
if last_range is None:
|
|
49140
|
+
raise ValueError('a union value must not be None')
|
|
49141
|
+
self._last_range = last_range
|
|
49142
|
+
self._type = 'lastRange'
|
|
49034
49143
|
|
|
49035
49144
|
@builtins.property
|
|
49036
49145
|
def first_point(self) -> Optional["scout_compute_resolved_api_SeriesNode"]:
|
|
@@ -49044,6 +49153,10 @@ class scout_compute_resolved_api_SelectValueNode(ConjureUnionType):
|
|
|
49044
49153
|
def last_point(self) -> Optional["scout_compute_resolved_api_SeriesNode"]:
|
|
49045
49154
|
return self._last_point
|
|
49046
49155
|
|
|
49156
|
+
@builtins.property
|
|
49157
|
+
def last_range(self) -> Optional["scout_compute_resolved_api_RangesNode"]:
|
|
49158
|
+
return self._last_range
|
|
49159
|
+
|
|
49047
49160
|
def accept(self, visitor) -> Any:
|
|
49048
49161
|
if not isinstance(visitor, scout_compute_resolved_api_SelectValueNodeVisitor):
|
|
49049
49162
|
raise ValueError('{} is not an instance of scout_compute_resolved_api_SelectValueNodeVisitor'.format(visitor.__class__.__name__))
|
|
@@ -49053,6 +49166,8 @@ class scout_compute_resolved_api_SelectValueNode(ConjureUnionType):
|
|
|
49053
49166
|
return visitor._first_range(self.first_range)
|
|
49054
49167
|
if self._type == 'lastPoint' and self.last_point is not None:
|
|
49055
49168
|
return visitor._last_point(self.last_point)
|
|
49169
|
+
if self._type == 'lastRange' and self.last_range is not None:
|
|
49170
|
+
return visitor._last_range(self.last_range)
|
|
49056
49171
|
|
|
49057
49172
|
|
|
49058
49173
|
scout_compute_resolved_api_SelectValueNode.__name__ = "SelectValueNode"
|
|
@@ -49074,6 +49189,10 @@ class scout_compute_resolved_api_SelectValueNodeVisitor:
|
|
|
49074
49189
|
def _last_point(self, last_point: "scout_compute_resolved_api_SeriesNode") -> Any:
|
|
49075
49190
|
pass
|
|
49076
49191
|
|
|
49192
|
+
@abstractmethod
|
|
49193
|
+
def _last_range(self, last_range: "scout_compute_resolved_api_RangesNode") -> Any:
|
|
49194
|
+
pass
|
|
49195
|
+
|
|
49077
49196
|
|
|
49078
49197
|
scout_compute_resolved_api_SelectValueNodeVisitor.__name__ = "SelectValueNodeVisitor"
|
|
49079
49198
|
scout_compute_resolved_api_SelectValueNodeVisitor.__qualname__ = "SelectValueNodeVisitor"
|
|
@@ -4,6 +4,8 @@ from .._impl import (
|
|
|
4
4
|
authorization_ApiKeyRid as ApiKeyRid,
|
|
5
5
|
authorization_AuthorizationRequest as AuthorizationRequest,
|
|
6
6
|
authorization_AuthorizationService as AuthorizationService,
|
|
7
|
+
authorization_Claim as Claim,
|
|
8
|
+
authorization_ClaimVisitor as ClaimVisitor,
|
|
7
9
|
authorization_CreateApiKeyRequest as CreateApiKeyRequest,
|
|
8
10
|
authorization_CreateApiKeyResponse as CreateApiKeyResponse,
|
|
9
11
|
authorization_GetAccessTokenFromApiKeyRequest as GetAccessTokenFromApiKeyRequest,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=bNSfoZZt3sMHaZ8x218pvZhUM01KSi1oOOgpS2xXfgE,1968
|
|
2
|
+
nominal_api/_impl.py,sha256=rowkQT01DPB4jQTKsythRZsRWhV9FFWrF5OC0VCiJs8,2959590
|
|
3
3
|
nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
4
4
|
nominal_api/api/__init__.py,sha256=kJBEE_HLVpKYdLH12KyO-cSAVzwxYpBwaaDutCtT-LM,1236
|
|
5
5
|
nominal_api/api_ids/__init__.py,sha256=CAtt44XgNZEEUDv-BbEbYtuxQ8y1wqSZU-STjBYdZv8,80
|
|
6
6
|
nominal_api/api_rids/__init__.py,sha256=qerno2fgGWLfokoSdCarKSXg2jDjTJpz45Wv8PnqI6Q,500
|
|
7
7
|
nominal_api/attachments_api/__init__.py,sha256=eQBE8xVTFDaTItCZv-WJSZqSStpgdai192n23pmVeeQ,634
|
|
8
8
|
nominal_api/authentication_api/__init__.py,sha256=HBQrldagoqcvYES_kjB1Eh8oZTZ8SJdX85UZySJB9z0,986
|
|
9
|
-
nominal_api/authorization/__init__.py,sha256=
|
|
9
|
+
nominal_api/authorization/__init__.py,sha256=F6JRzi_O0vr5jgwPbDlQMHLLKpCzyc9u5DYHfycnhYU,1130
|
|
10
10
|
nominal_api/comments_api/__init__.py,sha256=bt24EdmTY513nKMrWMCsfYV0XmX7VKQgOFH4I4tKWy4,860
|
|
11
11
|
nominal_api/connect_download/__init__.py,sha256=kYpjIjuFHA3uix70bJ5gV9-7BmDcJZAcm_e3MeMVSSQ,83
|
|
12
12
|
nominal_api/datasource/__init__.py,sha256=C2lvxiWYnZRjaMKL2sY9_bfgZezBpK39A3VtgSASgRI,134
|
|
@@ -72,7 +72,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=Q9iZHurmyDsJIFbUg-Eb
|
|
|
72
72
|
nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
|
|
73
73
|
nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
|
|
74
74
|
nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
|
|
75
|
-
nominal_api-0.
|
|
76
|
-
nominal_api-0.
|
|
77
|
-
nominal_api-0.
|
|
78
|
-
nominal_api-0.
|
|
75
|
+
nominal_api-0.621.0.dist-info/METADATA,sha256=MSO5MT5ZLdf6xzcYaibi4VQC79w_2MI7vzlit-tThsw,199
|
|
76
|
+
nominal_api-0.621.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
77
|
+
nominal_api-0.621.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
78
|
+
nominal_api-0.621.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|