nominal-api 0.623.0__py3-none-any.whl → 0.625.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 +450 -188
- nominal_api/api/__init__.py +1 -0
- nominal_api/datasource_api/__init__.py +1 -0
- nominal_api/persistent_compute_api/__init__.py +9 -1
- nominal_api/scout_favorites_api/__init__.py +0 -1
- {nominal_api-0.623.0.dist-info → nominal_api-0.625.0.dist-info}/METADATA +1 -1
- {nominal_api-0.623.0.dist-info → nominal_api-0.625.0.dist-info}/RECORD +10 -10
- {nominal_api-0.623.0.dist-info → nominal_api-0.625.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.623.0.dist-info → nominal_api-0.625.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -404,6 +404,35 @@ api_Property.__qualname__ = "Property"
|
|
|
404
404
|
api_Property.__module__ = "nominal_api.api"
|
|
405
405
|
|
|
406
406
|
|
|
407
|
+
class api_Range(ConjureBeanType):
|
|
408
|
+
|
|
409
|
+
@builtins.classmethod
|
|
410
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
411
|
+
return {
|
|
412
|
+
'start': ConjureFieldDefinition('start', api_Timestamp),
|
|
413
|
+
'end': ConjureFieldDefinition('end', api_Timestamp)
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
__slots__: List[str] = ['_start', '_end']
|
|
417
|
+
|
|
418
|
+
def __init__(self, end: "api_Timestamp", start: "api_Timestamp") -> None:
|
|
419
|
+
self._start = start
|
|
420
|
+
self._end = end
|
|
421
|
+
|
|
422
|
+
@builtins.property
|
|
423
|
+
def start(self) -> "api_Timestamp":
|
|
424
|
+
return self._start
|
|
425
|
+
|
|
426
|
+
@builtins.property
|
|
427
|
+
def end(self) -> "api_Timestamp":
|
|
428
|
+
return self._end
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
api_Range.__name__ = "Range"
|
|
432
|
+
api_Range.__qualname__ = "Range"
|
|
433
|
+
api_Range.__module__ = "nominal_api.api"
|
|
434
|
+
|
|
435
|
+
|
|
407
436
|
class api_SerializableError(ConjureBeanType):
|
|
408
437
|
"""
|
|
409
438
|
A SerializableError is a representation of a ServiceException that exists to send error
|
|
@@ -4345,6 +4374,40 @@ datasource_api_GetDataScopeBoundsResponse.__qualname__ = "GetDataScopeBoundsResp
|
|
|
4345
4374
|
datasource_api_GetDataScopeBoundsResponse.__module__ = "nominal_api.datasource_api"
|
|
4346
4375
|
|
|
4347
4376
|
|
|
4377
|
+
class datasource_api_GetTagValuesForDataSourceRequest(ConjureBeanType):
|
|
4378
|
+
|
|
4379
|
+
@builtins.classmethod
|
|
4380
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
4381
|
+
return {
|
|
4382
|
+
'tag_keys': ConjureFieldDefinition('tagKeys', List[api_TagName]),
|
|
4383
|
+
'range': ConjureFieldDefinition('range', OptionalTypeWrapper[api_Range])
|
|
4384
|
+
}
|
|
4385
|
+
|
|
4386
|
+
__slots__: List[str] = ['_tag_keys', '_range']
|
|
4387
|
+
|
|
4388
|
+
def __init__(self, tag_keys: List[str], range: Optional["api_Range"] = None) -> None:
|
|
4389
|
+
self._tag_keys = tag_keys
|
|
4390
|
+
self._range = range
|
|
4391
|
+
|
|
4392
|
+
@builtins.property
|
|
4393
|
+
def tag_keys(self) -> List[str]:
|
|
4394
|
+
return self._tag_keys
|
|
4395
|
+
|
|
4396
|
+
@builtins.property
|
|
4397
|
+
def range(self) -> Optional["api_Range"]:
|
|
4398
|
+
"""
|
|
4399
|
+
For Nominal data sources, a time range can be provided to filter tag values to those present within the
|
|
4400
|
+
months spanned by the range. If left empty, this defaults to the last month. For external data sources,
|
|
4401
|
+
the range must not be specified, as all tag values are returned.
|
|
4402
|
+
"""
|
|
4403
|
+
return self._range
|
|
4404
|
+
|
|
4405
|
+
|
|
4406
|
+
datasource_api_GetTagValuesForDataSourceRequest.__name__ = "GetTagValuesForDataSourceRequest"
|
|
4407
|
+
datasource_api_GetTagValuesForDataSourceRequest.__qualname__ = "GetTagValuesForDataSourceRequest"
|
|
4408
|
+
datasource_api_GetTagValuesForDataSourceRequest.__module__ = "nominal_api.datasource_api"
|
|
4409
|
+
|
|
4410
|
+
|
|
4348
4411
|
class datasource_api_IndexChannelPrefixTreeRequest(ConjureBeanType):
|
|
4349
4412
|
|
|
4350
4413
|
@builtins.classmethod
|
|
@@ -11752,24 +11815,18 @@ append result for [117s, 122s].
|
|
|
11752
11815
|
@builtins.classmethod
|
|
11753
11816
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
11754
11817
|
return {
|
|
11755
|
-
'subscription_id': ConjureFieldDefinition('subscriptionId', persistent_compute_api_SubscriptionId),
|
|
11756
11818
|
'start': ConjureFieldDefinition('start', api_Timestamp),
|
|
11757
11819
|
'end': ConjureFieldDefinition('end', api_Timestamp),
|
|
11758
11820
|
'result': ConjureFieldDefinition('result', persistent_compute_api_ComputeNodeAppendResponse)
|
|
11759
11821
|
}
|
|
11760
11822
|
|
|
11761
|
-
__slots__: List[str] = ['
|
|
11823
|
+
__slots__: List[str] = ['_start', '_end', '_result']
|
|
11762
11824
|
|
|
11763
|
-
def __init__(self, end: "api_Timestamp", result: "persistent_compute_api_ComputeNodeAppendResponse", start: "api_Timestamp"
|
|
11764
|
-
self._subscription_id = subscription_id
|
|
11825
|
+
def __init__(self, end: "api_Timestamp", result: "persistent_compute_api_ComputeNodeAppendResponse", start: "api_Timestamp") -> None:
|
|
11765
11826
|
self._start = start
|
|
11766
11827
|
self._end = end
|
|
11767
11828
|
self._result = result
|
|
11768
11829
|
|
|
11769
|
-
@builtins.property
|
|
11770
|
-
def subscription_id(self) -> str:
|
|
11771
|
-
return self._subscription_id
|
|
11772
|
-
|
|
11773
11830
|
@builtins.property
|
|
11774
11831
|
def start(self) -> "api_Timestamp":
|
|
11775
11832
|
"""
|
|
@@ -11860,9 +11917,9 @@ class persistent_compute_api_ClientMessage(ConjureUnionType):
|
|
|
11860
11917
|
"""
|
|
11861
11918
|
Subscribes to all of the given `StreamingComputeNodeSubscription`s. For identifying the subscriptions and
|
|
11862
11919
|
their results a `SubscriptionId` has to be passed, which should be a unique identifier.
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11920
|
+
A `ServerMessage::subscriptionCreation` will be sent back for each subscription which shows whether the
|
|
11921
|
+
subscription was successfully created. If it was, updated results for the subscription will be sent
|
|
11922
|
+
periodically via `ServerMessage::subscriptionUpdate`.
|
|
11866
11923
|
"""
|
|
11867
11924
|
return self._subscribe
|
|
11868
11925
|
|
|
@@ -11921,7 +11978,7 @@ persistent_compute_api_ClientMessageVisitor.__module__ = "nominal_api.persistent
|
|
|
11921
11978
|
|
|
11922
11979
|
|
|
11923
11980
|
class persistent_compute_api_ComputeNodeAppendResponse(ConjureUnionType):
|
|
11924
|
-
"""These cover the subset of the union type in `
|
|
11981
|
+
"""These cover the subset of the union type in `ComputeNodeResponse` for which we support append results.
|
|
11925
11982
|
Append results will have the same subtype as the previous full result for the same `SubscriptionId`.
|
|
11926
11983
|
If the subtype were to change (e.g., we start doing bucketing because data frequency increased) we will send
|
|
11927
11984
|
a new full result with that new type. The results will also have the same units as the previous `FullResult`.
|
|
@@ -12136,22 +12193,16 @@ class persistent_compute_api_FullResult(ConjureBeanType):
|
|
|
12136
12193
|
@builtins.classmethod
|
|
12137
12194
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
12138
12195
|
return {
|
|
12139
|
-
'
|
|
12140
|
-
'result': ConjureFieldDefinition('result', scout_compute_api_ComputeWithUnitsResponse)
|
|
12196
|
+
'result': ConjureFieldDefinition('result', scout_compute_api_ComputeNodeResponse)
|
|
12141
12197
|
}
|
|
12142
12198
|
|
|
12143
|
-
__slots__: List[str] = ['
|
|
12199
|
+
__slots__: List[str] = ['_result']
|
|
12144
12200
|
|
|
12145
|
-
def __init__(self, result: "
|
|
12146
|
-
self._subscription_id = subscription_id
|
|
12201
|
+
def __init__(self, result: "scout_compute_api_ComputeNodeResponse") -> None:
|
|
12147
12202
|
self._result = result
|
|
12148
12203
|
|
|
12149
12204
|
@builtins.property
|
|
12150
|
-
def
|
|
12151
|
-
return self._subscription_id
|
|
12152
|
-
|
|
12153
|
-
@builtins.property
|
|
12154
|
-
def result(self) -> "scout_compute_api_ComputeWithUnitsResponse":
|
|
12205
|
+
def result(self) -> "scout_compute_api_ComputeNodeResponse":
|
|
12155
12206
|
return self._result
|
|
12156
12207
|
|
|
12157
12208
|
|
|
@@ -12160,6 +12211,83 @@ persistent_compute_api_FullResult.__qualname__ = "FullResult"
|
|
|
12160
12211
|
persistent_compute_api_FullResult.__module__ = "nominal_api.persistent_compute_api"
|
|
12161
12212
|
|
|
12162
12213
|
|
|
12214
|
+
class persistent_compute_api_HealthMessage(ConjureUnionType):
|
|
12215
|
+
_ping: Optional["persistent_compute_api_Ping"] = None
|
|
12216
|
+
_pong: Optional["persistent_compute_api_Pong"] = None
|
|
12217
|
+
|
|
12218
|
+
@builtins.classmethod
|
|
12219
|
+
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
12220
|
+
return {
|
|
12221
|
+
'ping': ConjureFieldDefinition('ping', persistent_compute_api_Ping),
|
|
12222
|
+
'pong': ConjureFieldDefinition('pong', persistent_compute_api_Pong)
|
|
12223
|
+
}
|
|
12224
|
+
|
|
12225
|
+
def __init__(
|
|
12226
|
+
self,
|
|
12227
|
+
ping: Optional["persistent_compute_api_Ping"] = None,
|
|
12228
|
+
pong: Optional["persistent_compute_api_Pong"] = None,
|
|
12229
|
+
type_of_union: Optional[str] = None
|
|
12230
|
+
) -> None:
|
|
12231
|
+
if type_of_union is None:
|
|
12232
|
+
if (ping is not None) + (pong is not None) != 1:
|
|
12233
|
+
raise ValueError('a union must contain a single member')
|
|
12234
|
+
|
|
12235
|
+
if ping is not None:
|
|
12236
|
+
self._ping = ping
|
|
12237
|
+
self._type = 'ping'
|
|
12238
|
+
if pong is not None:
|
|
12239
|
+
self._pong = pong
|
|
12240
|
+
self._type = 'pong'
|
|
12241
|
+
|
|
12242
|
+
elif type_of_union == 'ping':
|
|
12243
|
+
if ping is None:
|
|
12244
|
+
raise ValueError('a union value must not be None')
|
|
12245
|
+
self._ping = ping
|
|
12246
|
+
self._type = 'ping'
|
|
12247
|
+
elif type_of_union == 'pong':
|
|
12248
|
+
if pong is None:
|
|
12249
|
+
raise ValueError('a union value must not be None')
|
|
12250
|
+
self._pong = pong
|
|
12251
|
+
self._type = 'pong'
|
|
12252
|
+
|
|
12253
|
+
@builtins.property
|
|
12254
|
+
def ping(self) -> Optional["persistent_compute_api_Ping"]:
|
|
12255
|
+
return self._ping
|
|
12256
|
+
|
|
12257
|
+
@builtins.property
|
|
12258
|
+
def pong(self) -> Optional["persistent_compute_api_Pong"]:
|
|
12259
|
+
return self._pong
|
|
12260
|
+
|
|
12261
|
+
def accept(self, visitor) -> Any:
|
|
12262
|
+
if not isinstance(visitor, persistent_compute_api_HealthMessageVisitor):
|
|
12263
|
+
raise ValueError('{} is not an instance of persistent_compute_api_HealthMessageVisitor'.format(visitor.__class__.__name__))
|
|
12264
|
+
if self._type == 'ping' and self.ping is not None:
|
|
12265
|
+
return visitor._ping(self.ping)
|
|
12266
|
+
if self._type == 'pong' and self.pong is not None:
|
|
12267
|
+
return visitor._pong(self.pong)
|
|
12268
|
+
|
|
12269
|
+
|
|
12270
|
+
persistent_compute_api_HealthMessage.__name__ = "HealthMessage"
|
|
12271
|
+
persistent_compute_api_HealthMessage.__qualname__ = "HealthMessage"
|
|
12272
|
+
persistent_compute_api_HealthMessage.__module__ = "nominal_api.persistent_compute_api"
|
|
12273
|
+
|
|
12274
|
+
|
|
12275
|
+
class persistent_compute_api_HealthMessageVisitor:
|
|
12276
|
+
|
|
12277
|
+
@abstractmethod
|
|
12278
|
+
def _ping(self, ping: "persistent_compute_api_Ping") -> Any:
|
|
12279
|
+
pass
|
|
12280
|
+
|
|
12281
|
+
@abstractmethod
|
|
12282
|
+
def _pong(self, pong: "persistent_compute_api_Pong") -> Any:
|
|
12283
|
+
pass
|
|
12284
|
+
|
|
12285
|
+
|
|
12286
|
+
persistent_compute_api_HealthMessageVisitor.__name__ = "HealthMessageVisitor"
|
|
12287
|
+
persistent_compute_api_HealthMessageVisitor.__qualname__ = "HealthMessageVisitor"
|
|
12288
|
+
persistent_compute_api_HealthMessageVisitor.__module__ = "nominal_api.persistent_compute_api"
|
|
12289
|
+
|
|
12290
|
+
|
|
12163
12291
|
class persistent_compute_api_Ping(ConjureBeanType):
|
|
12164
12292
|
"""
|
|
12165
12293
|
A ping can be sent by both client and server to keep the connection open and check that it is still working.
|
|
@@ -12219,93 +12347,76 @@ persistent_compute_api_Pong.__module__ = "nominal_api.persistent_compute_api"
|
|
|
12219
12347
|
|
|
12220
12348
|
|
|
12221
12349
|
class persistent_compute_api_ServerMessage(ConjureUnionType):
|
|
12222
|
-
_subscription_update: Optional["
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
_pong: Optional["persistent_compute_api_Pong"] = None
|
|
12350
|
+
_subscription_update: Optional["persistent_compute_api_SubscriptionUpdateMessage"] = None
|
|
12351
|
+
_subscription_creation: Optional["persistent_compute_api_SubscriptionCreationMessage"] = None
|
|
12352
|
+
_health: Optional["persistent_compute_api_HealthMessage"] = None
|
|
12226
12353
|
|
|
12227
12354
|
@builtins.classmethod
|
|
12228
12355
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
12229
12356
|
return {
|
|
12230
|
-
'subscription_update': ConjureFieldDefinition('subscriptionUpdate',
|
|
12231
|
-
'
|
|
12232
|
-
'
|
|
12233
|
-
'pong': ConjureFieldDefinition('pong', persistent_compute_api_Pong)
|
|
12357
|
+
'subscription_update': ConjureFieldDefinition('subscriptionUpdate', persistent_compute_api_SubscriptionUpdateMessage),
|
|
12358
|
+
'subscription_creation': ConjureFieldDefinition('subscriptionCreation', persistent_compute_api_SubscriptionCreationMessage),
|
|
12359
|
+
'health': ConjureFieldDefinition('health', persistent_compute_api_HealthMessage)
|
|
12234
12360
|
}
|
|
12235
12361
|
|
|
12236
12362
|
def __init__(
|
|
12237
12363
|
self,
|
|
12238
|
-
subscription_update: Optional["
|
|
12239
|
-
|
|
12240
|
-
|
|
12241
|
-
pong: Optional["persistent_compute_api_Pong"] = None,
|
|
12364
|
+
subscription_update: Optional["persistent_compute_api_SubscriptionUpdateMessage"] = None,
|
|
12365
|
+
subscription_creation: Optional["persistent_compute_api_SubscriptionCreationMessage"] = None,
|
|
12366
|
+
health: Optional["persistent_compute_api_HealthMessage"] = None,
|
|
12242
12367
|
type_of_union: Optional[str] = None
|
|
12243
12368
|
) -> None:
|
|
12244
12369
|
if type_of_union is None:
|
|
12245
|
-
if (subscription_update is not None) + (
|
|
12370
|
+
if (subscription_update is not None) + (subscription_creation is not None) + (health is not None) != 1:
|
|
12246
12371
|
raise ValueError('a union must contain a single member')
|
|
12247
12372
|
|
|
12248
12373
|
if subscription_update is not None:
|
|
12249
12374
|
self._subscription_update = subscription_update
|
|
12250
12375
|
self._type = 'subscriptionUpdate'
|
|
12251
|
-
if
|
|
12252
|
-
self.
|
|
12253
|
-
self._type = '
|
|
12254
|
-
if
|
|
12255
|
-
self.
|
|
12256
|
-
self._type = '
|
|
12257
|
-
if pong is not None:
|
|
12258
|
-
self._pong = pong
|
|
12259
|
-
self._type = 'pong'
|
|
12376
|
+
if subscription_creation is not None:
|
|
12377
|
+
self._subscription_creation = subscription_creation
|
|
12378
|
+
self._type = 'subscriptionCreation'
|
|
12379
|
+
if health is not None:
|
|
12380
|
+
self._health = health
|
|
12381
|
+
self._type = 'health'
|
|
12260
12382
|
|
|
12261
12383
|
elif type_of_union == 'subscriptionUpdate':
|
|
12262
12384
|
if subscription_update is None:
|
|
12263
12385
|
raise ValueError('a union value must not be None')
|
|
12264
12386
|
self._subscription_update = subscription_update
|
|
12265
12387
|
self._type = 'subscriptionUpdate'
|
|
12266
|
-
elif type_of_union == '
|
|
12267
|
-
if
|
|
12388
|
+
elif type_of_union == 'subscriptionCreation':
|
|
12389
|
+
if subscription_creation is None:
|
|
12268
12390
|
raise ValueError('a union value must not be None')
|
|
12269
|
-
self.
|
|
12270
|
-
self._type = '
|
|
12271
|
-
elif type_of_union == '
|
|
12272
|
-
if
|
|
12391
|
+
self._subscription_creation = subscription_creation
|
|
12392
|
+
self._type = 'subscriptionCreation'
|
|
12393
|
+
elif type_of_union == 'health':
|
|
12394
|
+
if health is None:
|
|
12273
12395
|
raise ValueError('a union value must not be None')
|
|
12274
|
-
self.
|
|
12275
|
-
self._type = '
|
|
12276
|
-
elif type_of_union == 'pong':
|
|
12277
|
-
if pong is None:
|
|
12278
|
-
raise ValueError('a union value must not be None')
|
|
12279
|
-
self._pong = pong
|
|
12280
|
-
self._type = 'pong'
|
|
12396
|
+
self._health = health
|
|
12397
|
+
self._type = 'health'
|
|
12281
12398
|
|
|
12282
12399
|
@builtins.property
|
|
12283
|
-
def subscription_update(self) -> Optional["
|
|
12400
|
+
def subscription_update(self) -> Optional["persistent_compute_api_SubscriptionUpdateMessage"]:
|
|
12284
12401
|
return self._subscription_update
|
|
12285
12402
|
|
|
12286
12403
|
@builtins.property
|
|
12287
|
-
def
|
|
12288
|
-
return self.
|
|
12289
|
-
|
|
12290
|
-
@builtins.property
|
|
12291
|
-
def ping(self) -> Optional["persistent_compute_api_Ping"]:
|
|
12292
|
-
return self._ping
|
|
12404
|
+
def subscription_creation(self) -> Optional["persistent_compute_api_SubscriptionCreationMessage"]:
|
|
12405
|
+
return self._subscription_creation
|
|
12293
12406
|
|
|
12294
12407
|
@builtins.property
|
|
12295
|
-
def
|
|
12296
|
-
return self.
|
|
12408
|
+
def health(self) -> Optional["persistent_compute_api_HealthMessage"]:
|
|
12409
|
+
return self._health
|
|
12297
12410
|
|
|
12298
12411
|
def accept(self, visitor) -> Any:
|
|
12299
12412
|
if not isinstance(visitor, persistent_compute_api_ServerMessageVisitor):
|
|
12300
12413
|
raise ValueError('{} is not an instance of persistent_compute_api_ServerMessageVisitor'.format(visitor.__class__.__name__))
|
|
12301
12414
|
if self._type == 'subscriptionUpdate' and self.subscription_update is not None:
|
|
12302
12415
|
return visitor._subscription_update(self.subscription_update)
|
|
12303
|
-
if self._type == '
|
|
12304
|
-
return visitor.
|
|
12305
|
-
if self._type == '
|
|
12306
|
-
return visitor.
|
|
12307
|
-
if self._type == 'pong' and self.pong is not None:
|
|
12308
|
-
return visitor._pong(self.pong)
|
|
12416
|
+
if self._type == 'subscriptionCreation' and self.subscription_creation is not None:
|
|
12417
|
+
return visitor._subscription_creation(self.subscription_creation)
|
|
12418
|
+
if self._type == 'health' and self.health is not None:
|
|
12419
|
+
return visitor._health(self.health)
|
|
12309
12420
|
|
|
12310
12421
|
|
|
12311
12422
|
persistent_compute_api_ServerMessage.__name__ = "ServerMessage"
|
|
@@ -12316,19 +12427,15 @@ persistent_compute_api_ServerMessage.__module__ = "nominal_api.persistent_comput
|
|
|
12316
12427
|
class persistent_compute_api_ServerMessageVisitor:
|
|
12317
12428
|
|
|
12318
12429
|
@abstractmethod
|
|
12319
|
-
def _subscription_update(self, subscription_update: "
|
|
12430
|
+
def _subscription_update(self, subscription_update: "persistent_compute_api_SubscriptionUpdateMessage") -> Any:
|
|
12320
12431
|
pass
|
|
12321
12432
|
|
|
12322
12433
|
@abstractmethod
|
|
12323
|
-
def
|
|
12434
|
+
def _subscription_creation(self, subscription_creation: "persistent_compute_api_SubscriptionCreationMessage") -> Any:
|
|
12324
12435
|
pass
|
|
12325
12436
|
|
|
12326
12437
|
@abstractmethod
|
|
12327
|
-
def
|
|
12328
|
-
pass
|
|
12329
|
-
|
|
12330
|
-
@abstractmethod
|
|
12331
|
-
def _pong(self, pong: "persistent_compute_api_Pong") -> Any:
|
|
12438
|
+
def _health(self, health: "persistent_compute_api_HealthMessage") -> Any:
|
|
12332
12439
|
pass
|
|
12333
12440
|
|
|
12334
12441
|
|
|
@@ -12405,30 +12512,100 @@ persistent_compute_api_StreamingComputeNodeSubscription.__qualname__ = "Streamin
|
|
|
12405
12512
|
persistent_compute_api_StreamingComputeNodeSubscription.__module__ = "nominal_api.persistent_compute_api"
|
|
12406
12513
|
|
|
12407
12514
|
|
|
12408
|
-
class
|
|
12515
|
+
class persistent_compute_api_SubscriptionCreation(ConjureUnionType):
|
|
12516
|
+
_success: Optional["persistent_compute_api_SubscriptionCreationSuccess"] = None
|
|
12517
|
+
_error: Optional["persistent_compute_api_SubscriptionCreationError"] = None
|
|
12518
|
+
|
|
12519
|
+
@builtins.classmethod
|
|
12520
|
+
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
12521
|
+
return {
|
|
12522
|
+
'success': ConjureFieldDefinition('success', persistent_compute_api_SubscriptionCreationSuccess),
|
|
12523
|
+
'error': ConjureFieldDefinition('error', persistent_compute_api_SubscriptionCreationError)
|
|
12524
|
+
}
|
|
12525
|
+
|
|
12526
|
+
def __init__(
|
|
12527
|
+
self,
|
|
12528
|
+
success: Optional["persistent_compute_api_SubscriptionCreationSuccess"] = None,
|
|
12529
|
+
error: Optional["persistent_compute_api_SubscriptionCreationError"] = None,
|
|
12530
|
+
type_of_union: Optional[str] = None
|
|
12531
|
+
) -> None:
|
|
12532
|
+
if type_of_union is None:
|
|
12533
|
+
if (success is not None) + (error is not None) != 1:
|
|
12534
|
+
raise ValueError('a union must contain a single member')
|
|
12535
|
+
|
|
12536
|
+
if success is not None:
|
|
12537
|
+
self._success = success
|
|
12538
|
+
self._type = 'success'
|
|
12539
|
+
if error is not None:
|
|
12540
|
+
self._error = error
|
|
12541
|
+
self._type = 'error'
|
|
12542
|
+
|
|
12543
|
+
elif type_of_union == 'success':
|
|
12544
|
+
if success is None:
|
|
12545
|
+
raise ValueError('a union value must not be None')
|
|
12546
|
+
self._success = success
|
|
12547
|
+
self._type = 'success'
|
|
12548
|
+
elif type_of_union == 'error':
|
|
12549
|
+
if error is None:
|
|
12550
|
+
raise ValueError('a union value must not be None')
|
|
12551
|
+
self._error = error
|
|
12552
|
+
self._type = 'error'
|
|
12553
|
+
|
|
12554
|
+
@builtins.property
|
|
12555
|
+
def success(self) -> Optional["persistent_compute_api_SubscriptionCreationSuccess"]:
|
|
12556
|
+
return self._success
|
|
12557
|
+
|
|
12558
|
+
@builtins.property
|
|
12559
|
+
def error(self) -> Optional["persistent_compute_api_SubscriptionCreationError"]:
|
|
12560
|
+
return self._error
|
|
12561
|
+
|
|
12562
|
+
def accept(self, visitor) -> Any:
|
|
12563
|
+
if not isinstance(visitor, persistent_compute_api_SubscriptionCreationVisitor):
|
|
12564
|
+
raise ValueError('{} is not an instance of persistent_compute_api_SubscriptionCreationVisitor'.format(visitor.__class__.__name__))
|
|
12565
|
+
if self._type == 'success' and self.success is not None:
|
|
12566
|
+
return visitor._success(self.success)
|
|
12567
|
+
if self._type == 'error' and self.error is not None:
|
|
12568
|
+
return visitor._error(self.error)
|
|
12569
|
+
|
|
12570
|
+
|
|
12571
|
+
persistent_compute_api_SubscriptionCreation.__name__ = "SubscriptionCreation"
|
|
12572
|
+
persistent_compute_api_SubscriptionCreation.__qualname__ = "SubscriptionCreation"
|
|
12573
|
+
persistent_compute_api_SubscriptionCreation.__module__ = "nominal_api.persistent_compute_api"
|
|
12574
|
+
|
|
12575
|
+
|
|
12576
|
+
class persistent_compute_api_SubscriptionCreationVisitor:
|
|
12577
|
+
|
|
12578
|
+
@abstractmethod
|
|
12579
|
+
def _success(self, success: "persistent_compute_api_SubscriptionCreationSuccess") -> Any:
|
|
12580
|
+
pass
|
|
12581
|
+
|
|
12582
|
+
@abstractmethod
|
|
12583
|
+
def _error(self, error: "persistent_compute_api_SubscriptionCreationError") -> Any:
|
|
12584
|
+
pass
|
|
12585
|
+
|
|
12586
|
+
|
|
12587
|
+
persistent_compute_api_SubscriptionCreationVisitor.__name__ = "SubscriptionCreationVisitor"
|
|
12588
|
+
persistent_compute_api_SubscriptionCreationVisitor.__qualname__ = "SubscriptionCreationVisitor"
|
|
12589
|
+
persistent_compute_api_SubscriptionCreationVisitor.__module__ = "nominal_api.persistent_compute_api"
|
|
12590
|
+
|
|
12591
|
+
|
|
12592
|
+
class persistent_compute_api_SubscriptionCreationError(ConjureBeanType):
|
|
12409
12593
|
"""
|
|
12410
|
-
This will be sent if there is an error while creating
|
|
12411
|
-
|
|
12412
|
-
if warranted.
|
|
12594
|
+
This will be sent if there is an error while creating a subscription. This means that the subscription was
|
|
12595
|
+
never created and the client will have to re-try creating it if warranted.
|
|
12413
12596
|
"""
|
|
12414
12597
|
|
|
12415
12598
|
@builtins.classmethod
|
|
12416
12599
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
12417
12600
|
return {
|
|
12418
|
-
'subscription_id': ConjureFieldDefinition('subscriptionId', persistent_compute_api_SubscriptionId),
|
|
12419
12601
|
'serializable_error': ConjureFieldDefinition('serializableError', api_SerializableError)
|
|
12420
12602
|
}
|
|
12421
12603
|
|
|
12422
|
-
__slots__: List[str] = ['
|
|
12604
|
+
__slots__: List[str] = ['_serializable_error']
|
|
12423
12605
|
|
|
12424
|
-
def __init__(self, serializable_error: "api_SerializableError"
|
|
12425
|
-
self._subscription_id = subscription_id
|
|
12606
|
+
def __init__(self, serializable_error: "api_SerializableError") -> None:
|
|
12426
12607
|
self._serializable_error = serializable_error
|
|
12427
12608
|
|
|
12428
|
-
@builtins.property
|
|
12429
|
-
def subscription_id(self) -> str:
|
|
12430
|
-
return self._subscription_id
|
|
12431
|
-
|
|
12432
12609
|
@builtins.property
|
|
12433
12610
|
def serializable_error(self) -> "api_SerializableError":
|
|
12434
12611
|
"""
|
|
@@ -12437,9 +12614,64 @@ if warranted.
|
|
|
12437
12614
|
return self._serializable_error
|
|
12438
12615
|
|
|
12439
12616
|
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
|
|
12617
|
+
persistent_compute_api_SubscriptionCreationError.__name__ = "SubscriptionCreationError"
|
|
12618
|
+
persistent_compute_api_SubscriptionCreationError.__qualname__ = "SubscriptionCreationError"
|
|
12619
|
+
persistent_compute_api_SubscriptionCreationError.__module__ = "nominal_api.persistent_compute_api"
|
|
12620
|
+
|
|
12621
|
+
|
|
12622
|
+
class persistent_compute_api_SubscriptionCreationMessage(ConjureBeanType):
|
|
12623
|
+
|
|
12624
|
+
@builtins.classmethod
|
|
12625
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
12626
|
+
return {
|
|
12627
|
+
'subscription_id': ConjureFieldDefinition('subscriptionId', persistent_compute_api_SubscriptionId),
|
|
12628
|
+
'creation': ConjureFieldDefinition('creation', persistent_compute_api_SubscriptionCreation)
|
|
12629
|
+
}
|
|
12630
|
+
|
|
12631
|
+
__slots__: List[str] = ['_subscription_id', '_creation']
|
|
12632
|
+
|
|
12633
|
+
def __init__(self, creation: "persistent_compute_api_SubscriptionCreation", subscription_id: str) -> None:
|
|
12634
|
+
self._subscription_id = subscription_id
|
|
12635
|
+
self._creation = creation
|
|
12636
|
+
|
|
12637
|
+
@builtins.property
|
|
12638
|
+
def subscription_id(self) -> str:
|
|
12639
|
+
return self._subscription_id
|
|
12640
|
+
|
|
12641
|
+
@builtins.property
|
|
12642
|
+
def creation(self) -> "persistent_compute_api_SubscriptionCreation":
|
|
12643
|
+
return self._creation
|
|
12644
|
+
|
|
12645
|
+
|
|
12646
|
+
persistent_compute_api_SubscriptionCreationMessage.__name__ = "SubscriptionCreationMessage"
|
|
12647
|
+
persistent_compute_api_SubscriptionCreationMessage.__qualname__ = "SubscriptionCreationMessage"
|
|
12648
|
+
persistent_compute_api_SubscriptionCreationMessage.__module__ = "nominal_api.persistent_compute_api"
|
|
12649
|
+
|
|
12650
|
+
|
|
12651
|
+
class persistent_compute_api_SubscriptionCreationSuccess(ConjureBeanType):
|
|
12652
|
+
"""
|
|
12653
|
+
Will be returned once a subscriptions has been successfully created.
|
|
12654
|
+
"""
|
|
12655
|
+
|
|
12656
|
+
@builtins.classmethod
|
|
12657
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
12658
|
+
return {
|
|
12659
|
+
'unit_result': ConjureFieldDefinition('unitResult', scout_compute_api_ComputeUnitResult)
|
|
12660
|
+
}
|
|
12661
|
+
|
|
12662
|
+
__slots__: List[str] = ['_unit_result']
|
|
12663
|
+
|
|
12664
|
+
def __init__(self, unit_result: "scout_compute_api_ComputeUnitResult") -> None:
|
|
12665
|
+
self._unit_result = unit_result
|
|
12666
|
+
|
|
12667
|
+
@builtins.property
|
|
12668
|
+
def unit_result(self) -> "scout_compute_api_ComputeUnitResult":
|
|
12669
|
+
return self._unit_result
|
|
12670
|
+
|
|
12671
|
+
|
|
12672
|
+
persistent_compute_api_SubscriptionCreationSuccess.__name__ = "SubscriptionCreationSuccess"
|
|
12673
|
+
persistent_compute_api_SubscriptionCreationSuccess.__qualname__ = "SubscriptionCreationSuccess"
|
|
12674
|
+
persistent_compute_api_SubscriptionCreationSuccess.__module__ = "nominal_api.persistent_compute_api"
|
|
12443
12675
|
|
|
12444
12676
|
|
|
12445
12677
|
class persistent_compute_api_SubscriptionOptions(ConjureBeanType):
|
|
@@ -12486,22 +12718,25 @@ persistent_compute_api_SubscriptionOptions.__module__ = "nominal_api.persistent_
|
|
|
12486
12718
|
class persistent_compute_api_SubscriptionUpdate(ConjureUnionType):
|
|
12487
12719
|
_full: Optional["persistent_compute_api_FullResult"] = None
|
|
12488
12720
|
_append: Optional["persistent_compute_api_AppendResult"] = None
|
|
12721
|
+
_error: Optional["persistent_compute_api_SubscriptionUpdateError"] = None
|
|
12489
12722
|
|
|
12490
12723
|
@builtins.classmethod
|
|
12491
12724
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
12492
12725
|
return {
|
|
12493
12726
|
'full': ConjureFieldDefinition('full', persistent_compute_api_FullResult),
|
|
12494
|
-
'append': ConjureFieldDefinition('append', persistent_compute_api_AppendResult)
|
|
12727
|
+
'append': ConjureFieldDefinition('append', persistent_compute_api_AppendResult),
|
|
12728
|
+
'error': ConjureFieldDefinition('error', persistent_compute_api_SubscriptionUpdateError)
|
|
12495
12729
|
}
|
|
12496
12730
|
|
|
12497
12731
|
def __init__(
|
|
12498
12732
|
self,
|
|
12499
12733
|
full: Optional["persistent_compute_api_FullResult"] = None,
|
|
12500
12734
|
append: Optional["persistent_compute_api_AppendResult"] = None,
|
|
12735
|
+
error: Optional["persistent_compute_api_SubscriptionUpdateError"] = None,
|
|
12501
12736
|
type_of_union: Optional[str] = None
|
|
12502
12737
|
) -> None:
|
|
12503
12738
|
if type_of_union is None:
|
|
12504
|
-
if (full is not None) + (append is not None) != 1:
|
|
12739
|
+
if (full is not None) + (append is not None) + (error is not None) != 1:
|
|
12505
12740
|
raise ValueError('a union must contain a single member')
|
|
12506
12741
|
|
|
12507
12742
|
if full is not None:
|
|
@@ -12510,6 +12745,9 @@ class persistent_compute_api_SubscriptionUpdate(ConjureUnionType):
|
|
|
12510
12745
|
if append is not None:
|
|
12511
12746
|
self._append = append
|
|
12512
12747
|
self._type = 'append'
|
|
12748
|
+
if error is not None:
|
|
12749
|
+
self._error = error
|
|
12750
|
+
self._type = 'error'
|
|
12513
12751
|
|
|
12514
12752
|
elif type_of_union == 'full':
|
|
12515
12753
|
if full is None:
|
|
@@ -12521,6 +12759,11 @@ class persistent_compute_api_SubscriptionUpdate(ConjureUnionType):
|
|
|
12521
12759
|
raise ValueError('a union value must not be None')
|
|
12522
12760
|
self._append = append
|
|
12523
12761
|
self._type = 'append'
|
|
12762
|
+
elif type_of_union == 'error':
|
|
12763
|
+
if error is None:
|
|
12764
|
+
raise ValueError('a union value must not be None')
|
|
12765
|
+
self._error = error
|
|
12766
|
+
self._type = 'error'
|
|
12524
12767
|
|
|
12525
12768
|
@builtins.property
|
|
12526
12769
|
def full(self) -> Optional["persistent_compute_api_FullResult"]:
|
|
@@ -12530,6 +12773,10 @@ class persistent_compute_api_SubscriptionUpdate(ConjureUnionType):
|
|
|
12530
12773
|
def append(self) -> Optional["persistent_compute_api_AppendResult"]:
|
|
12531
12774
|
return self._append
|
|
12532
12775
|
|
|
12776
|
+
@builtins.property
|
|
12777
|
+
def error(self) -> Optional["persistent_compute_api_SubscriptionUpdateError"]:
|
|
12778
|
+
return self._error
|
|
12779
|
+
|
|
12533
12780
|
def accept(self, visitor) -> Any:
|
|
12534
12781
|
if not isinstance(visitor, persistent_compute_api_SubscriptionUpdateVisitor):
|
|
12535
12782
|
raise ValueError('{} is not an instance of persistent_compute_api_SubscriptionUpdateVisitor'.format(visitor.__class__.__name__))
|
|
@@ -12537,6 +12784,8 @@ class persistent_compute_api_SubscriptionUpdate(ConjureUnionType):
|
|
|
12537
12784
|
return visitor._full(self.full)
|
|
12538
12785
|
if self._type == 'append' and self.append is not None:
|
|
12539
12786
|
return visitor._append(self.append)
|
|
12787
|
+
if self._type == 'error' and self.error is not None:
|
|
12788
|
+
return visitor._error(self.error)
|
|
12540
12789
|
|
|
12541
12790
|
|
|
12542
12791
|
persistent_compute_api_SubscriptionUpdate.__name__ = "SubscriptionUpdate"
|
|
@@ -12554,12 +12803,75 @@ class persistent_compute_api_SubscriptionUpdateVisitor:
|
|
|
12554
12803
|
def _append(self, append: "persistent_compute_api_AppendResult") -> Any:
|
|
12555
12804
|
pass
|
|
12556
12805
|
|
|
12806
|
+
@abstractmethod
|
|
12807
|
+
def _error(self, error: "persistent_compute_api_SubscriptionUpdateError") -> Any:
|
|
12808
|
+
pass
|
|
12809
|
+
|
|
12557
12810
|
|
|
12558
12811
|
persistent_compute_api_SubscriptionUpdateVisitor.__name__ = "SubscriptionUpdateVisitor"
|
|
12559
12812
|
persistent_compute_api_SubscriptionUpdateVisitor.__qualname__ = "SubscriptionUpdateVisitor"
|
|
12560
12813
|
persistent_compute_api_SubscriptionUpdateVisitor.__module__ = "nominal_api.persistent_compute_api"
|
|
12561
12814
|
|
|
12562
12815
|
|
|
12816
|
+
class persistent_compute_api_SubscriptionUpdateError(ConjureBeanType):
|
|
12817
|
+
"""
|
|
12818
|
+
This will be sent if there is an error while updating a subscription. Note: This won't automatically cancel
|
|
12819
|
+
the subscription. The client will have to call `ClientMessage::unsubscribe` to do that if warranted.
|
|
12820
|
+
"""
|
|
12821
|
+
|
|
12822
|
+
@builtins.classmethod
|
|
12823
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
12824
|
+
return {
|
|
12825
|
+
'serializable_error': ConjureFieldDefinition('serializableError', api_SerializableError)
|
|
12826
|
+
}
|
|
12827
|
+
|
|
12828
|
+
__slots__: List[str] = ['_serializable_error']
|
|
12829
|
+
|
|
12830
|
+
def __init__(self, serializable_error: "api_SerializableError") -> None:
|
|
12831
|
+
self._serializable_error = serializable_error
|
|
12832
|
+
|
|
12833
|
+
@builtins.property
|
|
12834
|
+
def serializable_error(self) -> "api_SerializableError":
|
|
12835
|
+
"""
|
|
12836
|
+
A serialized version of the error. Should match the errors defined below.
|
|
12837
|
+
"""
|
|
12838
|
+
return self._serializable_error
|
|
12839
|
+
|
|
12840
|
+
|
|
12841
|
+
persistent_compute_api_SubscriptionUpdateError.__name__ = "SubscriptionUpdateError"
|
|
12842
|
+
persistent_compute_api_SubscriptionUpdateError.__qualname__ = "SubscriptionUpdateError"
|
|
12843
|
+
persistent_compute_api_SubscriptionUpdateError.__module__ = "nominal_api.persistent_compute_api"
|
|
12844
|
+
|
|
12845
|
+
|
|
12846
|
+
class persistent_compute_api_SubscriptionUpdateMessage(ConjureBeanType):
|
|
12847
|
+
|
|
12848
|
+
@builtins.classmethod
|
|
12849
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
12850
|
+
return {
|
|
12851
|
+
'subscription_id': ConjureFieldDefinition('subscriptionId', persistent_compute_api_SubscriptionId),
|
|
12852
|
+
'update': ConjureFieldDefinition('update', persistent_compute_api_SubscriptionUpdate)
|
|
12853
|
+
}
|
|
12854
|
+
|
|
12855
|
+
__slots__: List[str] = ['_subscription_id', '_update']
|
|
12856
|
+
|
|
12857
|
+
def __init__(self, subscription_id: str, update: "persistent_compute_api_SubscriptionUpdate") -> None:
|
|
12858
|
+
self._subscription_id = subscription_id
|
|
12859
|
+
self._update = update
|
|
12860
|
+
|
|
12861
|
+
@builtins.property
|
|
12862
|
+
def subscription_id(self) -> str:
|
|
12863
|
+
return self._subscription_id
|
|
12864
|
+
|
|
12865
|
+
@builtins.property
|
|
12866
|
+
def update(self) -> "persistent_compute_api_SubscriptionUpdate":
|
|
12867
|
+
return self._update
|
|
12868
|
+
|
|
12869
|
+
|
|
12870
|
+
persistent_compute_api_SubscriptionUpdateMessage.__name__ = "SubscriptionUpdateMessage"
|
|
12871
|
+
persistent_compute_api_SubscriptionUpdateMessage.__qualname__ = "SubscriptionUpdateMessage"
|
|
12872
|
+
persistent_compute_api_SubscriptionUpdateMessage.__module__ = "nominal_api.persistent_compute_api"
|
|
12873
|
+
|
|
12874
|
+
|
|
12563
12875
|
class scout_InternalVersioningService(Service):
|
|
12564
12876
|
"""
|
|
12565
12877
|
These endpoints are not intended to be used directly by clients, since
|
|
@@ -56461,6 +56773,42 @@ in the same order as requests.
|
|
|
56461
56773
|
_decoder = ConjureDecoder()
|
|
56462
56774
|
return _decoder.decode(_response.json(), datasource_api_BatchGetDataScopeBoundsResponse, self._return_none_for_unknown_union_types)
|
|
56463
56775
|
|
|
56776
|
+
def get_tag_values_for_data_source(self, auth_header: str, data_source_rid: str, request: "datasource_api_GetTagValuesForDataSourceRequest") -> Dict[str, List[str]]:
|
|
56777
|
+
"""
|
|
56778
|
+
Returns available tag values for a given data source for a set of tag keys. For Nominal data sources, a time
|
|
56779
|
+
range can be provided to filter tag values to those present within the months spanned by the range. If no
|
|
56780
|
+
time range is provided, this defaults to the last month. For external data sources, the range must not be
|
|
56781
|
+
specified, as all tag values are returned.
|
|
56782
|
+
"""
|
|
56783
|
+
|
|
56784
|
+
_headers: Dict[str, Any] = {
|
|
56785
|
+
'Accept': 'application/json',
|
|
56786
|
+
'Content-Type': 'application/json',
|
|
56787
|
+
'Authorization': auth_header,
|
|
56788
|
+
}
|
|
56789
|
+
|
|
56790
|
+
_params: Dict[str, Any] = {
|
|
56791
|
+
}
|
|
56792
|
+
|
|
56793
|
+
_path_params: Dict[str, Any] = {
|
|
56794
|
+
'dataSourceRid': data_source_rid,
|
|
56795
|
+
}
|
|
56796
|
+
|
|
56797
|
+
_json: Any = ConjureEncoder().default(request)
|
|
56798
|
+
|
|
56799
|
+
_path = '/data-source/v1/data-sources/{dataSourceRid}/get-tags'
|
|
56800
|
+
_path = _path.format(**_path_params)
|
|
56801
|
+
|
|
56802
|
+
_response: Response = self._request(
|
|
56803
|
+
'POST',
|
|
56804
|
+
self._uri + _path,
|
|
56805
|
+
params=_params,
|
|
56806
|
+
headers=_headers,
|
|
56807
|
+
json=_json)
|
|
56808
|
+
|
|
56809
|
+
_decoder = ConjureDecoder()
|
|
56810
|
+
return _decoder.decode(_response.json(), Dict[api_TagName, List[api_TagValue]], self._return_none_for_unknown_union_types)
|
|
56811
|
+
|
|
56464
56812
|
|
|
56465
56813
|
scout_datasource_DataSourceService.__name__ = "DataSourceService"
|
|
56466
56814
|
scout_datasource_DataSourceService.__qualname__ = "DataSourceService"
|
|
@@ -56989,7 +57337,7 @@ class scout_datasource_connection_api_Connection(ConjureBeanType):
|
|
|
56989
57337
|
'description': ConjureFieldDefinition('description', OptionalTypeWrapper[str]),
|
|
56990
57338
|
'connection_details': ConjureFieldDefinition('connectionDetails', scout_datasource_connection_api_ConnectionDetails),
|
|
56991
57339
|
'required_tag_names': ConjureFieldDefinition('requiredTagNames', List[api_TagName]),
|
|
56992
|
-
'available_tag_values': ConjureFieldDefinition('availableTagValues', Dict[api_TagName, List[api_TagValue]]),
|
|
57340
|
+
'available_tag_values': ConjureFieldDefinition('availableTagValues', OptionalTypeWrapper[Dict[api_TagName, List[api_TagValue]]]),
|
|
56993
57341
|
'metadata': ConjureFieldDefinition('metadata', Dict[str, str]),
|
|
56994
57342
|
'scraping': ConjureFieldDefinition('scraping', OptionalTypeWrapper[scout_datasource_connection_api_ScrapingConfig]),
|
|
56995
57343
|
'should_scrape': ConjureFieldDefinition('shouldScrape', bool),
|
|
@@ -57000,7 +57348,7 @@ class scout_datasource_connection_api_Connection(ConjureBeanType):
|
|
|
57000
57348
|
|
|
57001
57349
|
__slots__: List[str] = ['_rid', '_display_name', '_description', '_connection_details', '_required_tag_names', '_available_tag_values', '_metadata', '_scraping', '_should_scrape', '_limits', '_connection_status', '_is_archived']
|
|
57002
57350
|
|
|
57003
|
-
def __init__(self,
|
|
57351
|
+
def __init__(self, connection_details: "scout_datasource_connection_api_ConnectionDetails", connection_status: "scout_datasource_connection_api_ConnectionStatus", display_name: str, is_archived: bool, metadata: Dict[str, str], required_tag_names: List[str], rid: str, should_scrape: bool, available_tag_values: Optional[Dict[str, List[str]]] = None, description: Optional[str] = None, limits: Optional["scout_datasource_connection_api_LimitsConfig"] = None, scraping: Optional["scout_datasource_connection_api_ScrapingConfig"] = None) -> None:
|
|
57004
57352
|
self._rid = rid
|
|
57005
57353
|
self._display_name = display_name
|
|
57006
57354
|
self._description = description
|
|
@@ -57042,7 +57390,10 @@ rather than strictly required.
|
|
|
57042
57390
|
return self._required_tag_names
|
|
57043
57391
|
|
|
57044
57392
|
@builtins.property
|
|
57045
|
-
def available_tag_values(self) -> Dict[str, List[str]]:
|
|
57393
|
+
def available_tag_values(self) -> Optional[Dict[str, List[str]]]:
|
|
57394
|
+
"""
|
|
57395
|
+
Deprecated, use the getAvailableTagsForConnection endpoint instead
|
|
57396
|
+
"""
|
|
57046
57397
|
return self._available_tag_values
|
|
57047
57398
|
|
|
57048
57399
|
@builtins.property
|
|
@@ -59210,101 +59561,12 @@ quick access within search pages throughout the application for themselves.
|
|
|
59210
59561
|
_decoder = ConjureDecoder()
|
|
59211
59562
|
return _decoder.decode(_response.json(), scout_favorites_api_FavoritesListResponse, self._return_none_for_unknown_union_types)
|
|
59212
59563
|
|
|
59213
|
-
def update_favorites(self, auth_header: str, request: "scout_favorites_api_SetFavoritesListRequest") -> "scout_favorites_api_FavoritesListResponse":
|
|
59214
|
-
"""
|
|
59215
|
-
Update the user's favorited resources.
|
|
59216
|
-
This will use the org's default workspace if the user has access to it.
|
|
59217
|
-
"""
|
|
59218
|
-
|
|
59219
|
-
_headers: Dict[str, Any] = {
|
|
59220
|
-
'Accept': 'application/json',
|
|
59221
|
-
'Content-Type': 'application/json',
|
|
59222
|
-
'Authorization': auth_header,
|
|
59223
|
-
}
|
|
59224
|
-
|
|
59225
|
-
_params: Dict[str, Any] = {
|
|
59226
|
-
}
|
|
59227
|
-
|
|
59228
|
-
_path_params: Dict[str, Any] = {
|
|
59229
|
-
}
|
|
59230
|
-
|
|
59231
|
-
_json: Any = ConjureEncoder().default(request)
|
|
59232
|
-
|
|
59233
|
-
_path = '/scout/v2/favorites'
|
|
59234
|
-
_path = _path.format(**_path_params)
|
|
59235
|
-
|
|
59236
|
-
_response: Response = self._request(
|
|
59237
|
-
'PUT',
|
|
59238
|
-
self._uri + _path,
|
|
59239
|
-
params=_params,
|
|
59240
|
-
headers=_headers,
|
|
59241
|
-
json=_json)
|
|
59242
|
-
|
|
59243
|
-
_decoder = ConjureDecoder()
|
|
59244
|
-
return _decoder.decode(_response.json(), scout_favorites_api_FavoritesListResponse, self._return_none_for_unknown_union_types)
|
|
59245
|
-
|
|
59246
|
-
def list_favorites(self, auth_header: str, request: "scout_favorites_api_DeprecatedListFavoritesRequest") -> "scout_favorites_api_FavoritesListResponse":
|
|
59247
|
-
"""
|
|
59248
|
-
Retrieves all the user's favorites with filtering options on the resource types to include.
|
|
59249
|
-
This will use the org's default workspace if the user has access to it.
|
|
59250
|
-
"""
|
|
59251
|
-
|
|
59252
|
-
_headers: Dict[str, Any] = {
|
|
59253
|
-
'Accept': 'application/json',
|
|
59254
|
-
'Content-Type': 'application/json',
|
|
59255
|
-
'Authorization': auth_header,
|
|
59256
|
-
}
|
|
59257
|
-
|
|
59258
|
-
_params: Dict[str, Any] = {
|
|
59259
|
-
}
|
|
59260
|
-
|
|
59261
|
-
_path_params: Dict[str, Any] = {
|
|
59262
|
-
}
|
|
59263
|
-
|
|
59264
|
-
_json: Any = ConjureEncoder().default(request)
|
|
59265
|
-
|
|
59266
|
-
_path = '/scout/v2/favorites/list'
|
|
59267
|
-
_path = _path.format(**_path_params)
|
|
59268
|
-
|
|
59269
|
-
_response: Response = self._request(
|
|
59270
|
-
'POST',
|
|
59271
|
-
self._uri + _path,
|
|
59272
|
-
params=_params,
|
|
59273
|
-
headers=_headers,
|
|
59274
|
-
json=_json)
|
|
59275
|
-
|
|
59276
|
-
_decoder = ConjureDecoder()
|
|
59277
|
-
return _decoder.decode(_response.json(), scout_favorites_api_FavoritesListResponse, self._return_none_for_unknown_union_types)
|
|
59278
|
-
|
|
59279
59564
|
|
|
59280
59565
|
scout_favorites_FavoritesService.__name__ = "FavoritesService"
|
|
59281
59566
|
scout_favorites_FavoritesService.__qualname__ = "FavoritesService"
|
|
59282
59567
|
scout_favorites_FavoritesService.__module__ = "nominal_api.scout_favorites"
|
|
59283
59568
|
|
|
59284
59569
|
|
|
59285
|
-
class scout_favorites_api_DeprecatedListFavoritesRequest(ConjureBeanType):
|
|
59286
|
-
|
|
59287
|
-
@builtins.classmethod
|
|
59288
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
59289
|
-
return {
|
|
59290
|
-
'resource_types': ConjureFieldDefinition('resourceTypes', OptionalTypeWrapper[List[scout_favorites_api_ResourceType]])
|
|
59291
|
-
}
|
|
59292
|
-
|
|
59293
|
-
__slots__: List[str] = ['_resource_types']
|
|
59294
|
-
|
|
59295
|
-
def __init__(self, resource_types: Optional[List["scout_favorites_api_ResourceType"]] = None) -> None:
|
|
59296
|
-
self._resource_types = resource_types
|
|
59297
|
-
|
|
59298
|
-
@builtins.property
|
|
59299
|
-
def resource_types(self) -> Optional[List["scout_favorites_api_ResourceType"]]:
|
|
59300
|
-
return self._resource_types
|
|
59301
|
-
|
|
59302
|
-
|
|
59303
|
-
scout_favorites_api_DeprecatedListFavoritesRequest.__name__ = "DeprecatedListFavoritesRequest"
|
|
59304
|
-
scout_favorites_api_DeprecatedListFavoritesRequest.__qualname__ = "DeprecatedListFavoritesRequest"
|
|
59305
|
-
scout_favorites_api_DeprecatedListFavoritesRequest.__module__ = "nominal_api.scout_favorites_api"
|
|
59306
|
-
|
|
59307
|
-
|
|
59308
59570
|
class scout_favorites_api_FavoriteResource(ConjureUnionType):
|
|
59309
59571
|
_asset: Optional[str] = None
|
|
59310
59572
|
_run: Optional[str] = None
|
nominal_api/api/__init__.py
CHANGED
|
@@ -22,6 +22,7 @@ from .._impl import (
|
|
|
22
22
|
api_Property as Property,
|
|
23
23
|
api_PropertyName as PropertyName,
|
|
24
24
|
api_PropertyValue as PropertyValue,
|
|
25
|
+
api_Range as Range,
|
|
25
26
|
api_S3Path as S3Path,
|
|
26
27
|
api_SerializableError as SerializableError,
|
|
27
28
|
api_SeriesArchetypeRid as SeriesArchetypeRid,
|
|
@@ -17,6 +17,7 @@ from .._impl import (
|
|
|
17
17
|
datasource_api_GetAvailableTagsForChannelResponse as GetAvailableTagsForChannelResponse,
|
|
18
18
|
datasource_api_GetDataScopeBoundsRequest as GetDataScopeBoundsRequest,
|
|
19
19
|
datasource_api_GetDataScopeBoundsResponse as GetDataScopeBoundsResponse,
|
|
20
|
+
datasource_api_GetTagValuesForDataSourceRequest as GetTagValuesForDataSourceRequest,
|
|
20
21
|
datasource_api_IndexChannelPrefixTreeRequest as IndexChannelPrefixTreeRequest,
|
|
21
22
|
datasource_api_SearchChannelsRequest as SearchChannelsRequest,
|
|
22
23
|
datasource_api_SearchChannelsResponse as SearchChannelsResponse,
|
|
@@ -6,6 +6,8 @@ from .._impl import (
|
|
|
6
6
|
persistent_compute_api_ComputeNodeAppendResponse as ComputeNodeAppendResponse,
|
|
7
7
|
persistent_compute_api_ComputeNodeAppendResponseVisitor as ComputeNodeAppendResponseVisitor,
|
|
8
8
|
persistent_compute_api_FullResult as FullResult,
|
|
9
|
+
persistent_compute_api_HealthMessage as HealthMessage,
|
|
10
|
+
persistent_compute_api_HealthMessageVisitor as HealthMessageVisitor,
|
|
9
11
|
persistent_compute_api_Milliseconds as Milliseconds,
|
|
10
12
|
persistent_compute_api_Ping as Ping,
|
|
11
13
|
persistent_compute_api_Pong as Pong,
|
|
@@ -13,10 +15,16 @@ from .._impl import (
|
|
|
13
15
|
persistent_compute_api_ServerMessageVisitor as ServerMessageVisitor,
|
|
14
16
|
persistent_compute_api_StreamingComputeNodeRequest as StreamingComputeNodeRequest,
|
|
15
17
|
persistent_compute_api_StreamingComputeNodeSubscription as StreamingComputeNodeSubscription,
|
|
16
|
-
|
|
18
|
+
persistent_compute_api_SubscriptionCreation as SubscriptionCreation,
|
|
19
|
+
persistent_compute_api_SubscriptionCreationError as SubscriptionCreationError,
|
|
20
|
+
persistent_compute_api_SubscriptionCreationMessage as SubscriptionCreationMessage,
|
|
21
|
+
persistent_compute_api_SubscriptionCreationSuccess as SubscriptionCreationSuccess,
|
|
22
|
+
persistent_compute_api_SubscriptionCreationVisitor as SubscriptionCreationVisitor,
|
|
17
23
|
persistent_compute_api_SubscriptionId as SubscriptionId,
|
|
18
24
|
persistent_compute_api_SubscriptionOptions as SubscriptionOptions,
|
|
19
25
|
persistent_compute_api_SubscriptionUpdate as SubscriptionUpdate,
|
|
26
|
+
persistent_compute_api_SubscriptionUpdateError as SubscriptionUpdateError,
|
|
27
|
+
persistent_compute_api_SubscriptionUpdateMessage as SubscriptionUpdateMessage,
|
|
20
28
|
persistent_compute_api_SubscriptionUpdateVisitor as SubscriptionUpdateVisitor,
|
|
21
29
|
)
|
|
22
30
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
2
|
from .._impl import (
|
|
3
|
-
scout_favorites_api_DeprecatedListFavoritesRequest as DeprecatedListFavoritesRequest,
|
|
4
3
|
scout_favorites_api_FavoriteResource as FavoriteResource,
|
|
5
4
|
scout_favorites_api_FavoriteResourceVisitor as FavoriteResourceVisitor,
|
|
6
5
|
scout_favorites_api_FavoritesListResponse as FavoritesListResponse,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=1jB8LoHK2esww0ZdWjOh83WJuQgcQ7hFuoisU9N8-64,1995
|
|
2
|
+
nominal_api/_impl.py,sha256=Jq-jFqwQaz9E4LSegTSByQn1WFPF_IB3LSJQL3QKazE,3003501
|
|
3
3
|
nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
4
|
-
nominal_api/api/__init__.py,sha256=
|
|
4
|
+
nominal_api/api/__init__.py,sha256=1oJPOuAMfV2uClPUW8Ie1nj2Y6j81TDpedcc3yUFTe0,1294
|
|
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
|
|
@@ -10,14 +10,14 @@ nominal_api/authorization/__init__.py,sha256=F6JRzi_O0vr5jgwPbDlQMHLLKpCzyc9u5DY
|
|
|
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
|
|
13
|
-
nominal_api/datasource_api/__init__.py,sha256
|
|
13
|
+
nominal_api/datasource_api/__init__.py,sha256=-0v4FGK22kyCALrJ-LRcwJ-QHDUnFCBqj_LkpEt_rgs,2163
|
|
14
14
|
nominal_api/datasource_logset/__init__.py,sha256=H3fNxqyYC490MwvdWbt5BwhgWQUev7uieaLz5hUbZDc,94
|
|
15
15
|
nominal_api/datasource_logset_api/__init__.py,sha256=JyjO1tQmG-HZ7kYMi8lSfeaaYddBZdCMIyqc0IUJfWo,1006
|
|
16
16
|
nominal_api/datasource_pagination_api/__init__.py,sha256=3GO8TAUavOe6dUEitOhje74aSZHjTKVI5N1MNuct1lI,212
|
|
17
17
|
nominal_api/event/__init__.py,sha256=YUhvDFXtyAn08WNd7Xwnybz3PtflvtTcIOaunRS5-1I,836
|
|
18
18
|
nominal_api/ingest_api/__init__.py,sha256=jpxmJO0dzcCEIv5iM7xvziQEs1x92XLTm-LmbHxtii4,6953
|
|
19
19
|
nominal_api/ingest_workflow_api/__init__.py,sha256=1oJO78YCmXFkfN5LY7x0gOJwtijrOcXD8Sl0GJCOyrk,1352
|
|
20
|
-
nominal_api/persistent_compute_api/__init__.py,sha256=
|
|
20
|
+
nominal_api/persistent_compute_api/__init__.py,sha256=9X56Ar01aw8PUC7rVVZ2A9Vny0QIXaJPWJtjjCY4IWg,1912
|
|
21
21
|
nominal_api/scout/__init__.py,sha256=ip3XK_9jJKAoFiCifUVMTpDMiUE4mWIdGzMDu7LASus,324
|
|
22
22
|
nominal_api/scout_api/__init__.py,sha256=biO4DEygbGcLwM6Dg2VuvMra3A5EW6NBjukbIemXoG8,178
|
|
23
23
|
nominal_api/scout_asset_api/__init__.py,sha256=Ph-KlW-ki0JRejYQZDvbZ2jRzNAttVBux27lcEj7--Q,1910
|
|
@@ -41,7 +41,7 @@ nominal_api/scout_datasource_connection/__init__.py,sha256=he1CCSqMBwRWnzovWCeYP
|
|
|
41
41
|
nominal_api/scout_datasource_connection_api/__init__.py,sha256=uZDDTsvvsr_7LfkHwEIfPnV9MsHoxmoTL95e37bZ_nE,4984
|
|
42
42
|
nominal_api/scout_datasource_connection_api_influx/__init__.py,sha256=PeUZYnCR7Iq92bRuygtWly-HaZ-G1MfqShxJmamiTWA,99
|
|
43
43
|
nominal_api/scout_favorites/__init__.py,sha256=qiOvaWVVl3O7tXZIq_NrCWFcMx-Q-H5sA_NpIc4TFVU,98
|
|
44
|
-
nominal_api/scout_favorites_api/__init__.py,sha256=
|
|
44
|
+
nominal_api/scout_favorites_api/__init__.py,sha256=VOsTMNCQTHYxdYRzRlvEyli5b7Lo2BEnSNcWT2HA9uY,380
|
|
45
45
|
nominal_api/scout_integrations_api/__init__.py,sha256=8iXeDLEbgMYEZz0dEZsvUj7v9JkuaaTdxkzS-ld8E0U,1432
|
|
46
46
|
nominal_api/scout_internal_search_api/__init__.py,sha256=CF2YYZXkl95YkEgCbhqXSdAQ4ayPDDOJiCcyoFKOaA8,520
|
|
47
47
|
nominal_api/scout_jobs_api/__init__.py,sha256=_2ETRUShk1pestGAKzHwc69S-ililQRD4Y9JLD5qqZ4,146
|
|
@@ -73,7 +73,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=Q9iZHurmyDsJIFbUg-Eb
|
|
|
73
73
|
nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
|
|
74
74
|
nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
|
|
75
75
|
nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
|
|
76
|
-
nominal_api-0.
|
|
77
|
-
nominal_api-0.
|
|
78
|
-
nominal_api-0.
|
|
79
|
-
nominal_api-0.
|
|
76
|
+
nominal_api-0.625.0.dist-info/METADATA,sha256=ZXo6H9Ssw4miirmImDttwuvrFjGUGOYOqpUe359MGcQ,199
|
|
77
|
+
nominal_api-0.625.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
78
|
+
nominal_api-0.625.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
79
|
+
nominal_api-0.625.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|