nominal-api 0.832.2__py3-none-any.whl → 0.833.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 +196 -778
- nominal_api/ingest_api/__init__.py +6 -0
- nominal_api/ingest_workflow_api/__init__.py +2 -0
- nominal_api/scout_compute_api/__init__.py +0 -16
- nominal_api/scout_compute_resolved_api/__init__.py +0 -2
- {nominal_api-0.832.2.dist-info → nominal_api-0.833.0.dist-info}/METADATA +1 -1
- {nominal_api-0.832.2.dist-info → nominal_api-0.833.0.dist-info}/RECORD +10 -10
- {nominal_api-0.832.2.dist-info → nominal_api-0.833.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.832.2.dist-info → nominal_api-0.833.0.dist-info}/top_level.txt +0 -0
nominal_api/_impl.py
CHANGED
|
@@ -9880,6 +9880,65 @@ ingest_api_IngestDetailsVisitor.__qualname__ = "IngestDetailsVisitor"
|
|
|
9880
9880
|
ingest_api_IngestDetailsVisitor.__module__ = "nominal_api.ingest_api"
|
|
9881
9881
|
|
|
9882
9882
|
|
|
9883
|
+
class ingest_api_IngestJob(ConjureBeanType):
|
|
9884
|
+
|
|
9885
|
+
@builtins.classmethod
|
|
9886
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
9887
|
+
return {
|
|
9888
|
+
'ingest_job_rid': ConjureFieldDefinition('ingestJobRid', ingest_api_IngestJobRid),
|
|
9889
|
+
'status': ConjureFieldDefinition('status', ingest_api_IngestJobStatus),
|
|
9890
|
+
'ingest_job_request': ConjureFieldDefinition('ingestJobRequest', ingest_api_IngestJobRequest),
|
|
9891
|
+
'origin_files': ConjureFieldDefinition('originFiles', OptionalTypeWrapper[List[str]]),
|
|
9892
|
+
'created_by': ConjureFieldDefinition('createdBy', str),
|
|
9893
|
+
'org_uuid': ConjureFieldDefinition('orgUuid', str),
|
|
9894
|
+
'ingest_type': ConjureFieldDefinition('ingestType', ingest_api_IngestType)
|
|
9895
|
+
}
|
|
9896
|
+
|
|
9897
|
+
__slots__: List[str] = ['_ingest_job_rid', '_status', '_ingest_job_request', '_origin_files', '_created_by', '_org_uuid', '_ingest_type']
|
|
9898
|
+
|
|
9899
|
+
def __init__(self, created_by: str, ingest_job_request: "ingest_api_IngestJobRequest", ingest_job_rid: str, ingest_type: "ingest_api_IngestType", org_uuid: str, status: "ingest_api_IngestJobStatus", origin_files: Optional[List[str]] = None) -> None:
|
|
9900
|
+
self._ingest_job_rid = ingest_job_rid
|
|
9901
|
+
self._status = status
|
|
9902
|
+
self._ingest_job_request = ingest_job_request
|
|
9903
|
+
self._origin_files = origin_files
|
|
9904
|
+
self._created_by = created_by
|
|
9905
|
+
self._org_uuid = org_uuid
|
|
9906
|
+
self._ingest_type = ingest_type
|
|
9907
|
+
|
|
9908
|
+
@builtins.property
|
|
9909
|
+
def ingest_job_rid(self) -> str:
|
|
9910
|
+
return self._ingest_job_rid
|
|
9911
|
+
|
|
9912
|
+
@builtins.property
|
|
9913
|
+
def status(self) -> "ingest_api_IngestJobStatus":
|
|
9914
|
+
return self._status
|
|
9915
|
+
|
|
9916
|
+
@builtins.property
|
|
9917
|
+
def ingest_job_request(self) -> "ingest_api_IngestJobRequest":
|
|
9918
|
+
return self._ingest_job_request
|
|
9919
|
+
|
|
9920
|
+
@builtins.property
|
|
9921
|
+
def origin_files(self) -> Optional[List[str]]:
|
|
9922
|
+
return self._origin_files
|
|
9923
|
+
|
|
9924
|
+
@builtins.property
|
|
9925
|
+
def created_by(self) -> str:
|
|
9926
|
+
return self._created_by
|
|
9927
|
+
|
|
9928
|
+
@builtins.property
|
|
9929
|
+
def org_uuid(self) -> str:
|
|
9930
|
+
return self._org_uuid
|
|
9931
|
+
|
|
9932
|
+
@builtins.property
|
|
9933
|
+
def ingest_type(self) -> "ingest_api_IngestType":
|
|
9934
|
+
return self._ingest_type
|
|
9935
|
+
|
|
9936
|
+
|
|
9937
|
+
ingest_api_IngestJob.__name__ = "IngestJob"
|
|
9938
|
+
ingest_api_IngestJob.__qualname__ = "IngestJob"
|
|
9939
|
+
ingest_api_IngestJob.__module__ = "nominal_api.ingest_api"
|
|
9940
|
+
|
|
9941
|
+
|
|
9883
9942
|
class ingest_api_IngestJobRequest(ConjureUnionType):
|
|
9884
9943
|
_ingest_mcap: Optional["ingest_api_IngestMcapRequest"] = None
|
|
9885
9944
|
_trigger_file_ingest: Optional["ingest_api_TriggerFileIngest"] = None
|
|
@@ -9999,6 +10058,32 @@ ingest_api_IngestJobRequestVisitor.__qualname__ = "IngestJobRequestVisitor"
|
|
|
9999
10058
|
ingest_api_IngestJobRequestVisitor.__module__ = "nominal_api.ingest_api"
|
|
10000
10059
|
|
|
10001
10060
|
|
|
10061
|
+
class ingest_api_IngestJobStatus(ConjureEnumType):
|
|
10062
|
+
|
|
10063
|
+
SUBMITTED = 'SUBMITTED'
|
|
10064
|
+
'''SUBMITTED'''
|
|
10065
|
+
QUEUED = 'QUEUED'
|
|
10066
|
+
'''QUEUED'''
|
|
10067
|
+
IN_PROGRESS = 'IN_PROGRESS'
|
|
10068
|
+
'''IN_PROGRESS'''
|
|
10069
|
+
COMPLETED = 'COMPLETED'
|
|
10070
|
+
'''COMPLETED'''
|
|
10071
|
+
FAILED = 'FAILED'
|
|
10072
|
+
'''FAILED'''
|
|
10073
|
+
CANCELLED = 'CANCELLED'
|
|
10074
|
+
'''CANCELLED'''
|
|
10075
|
+
UNKNOWN = 'UNKNOWN'
|
|
10076
|
+
'''UNKNOWN'''
|
|
10077
|
+
|
|
10078
|
+
def __reduce_ex__(self, proto):
|
|
10079
|
+
return self.__class__, (self.name,)
|
|
10080
|
+
|
|
10081
|
+
|
|
10082
|
+
ingest_api_IngestJobStatus.__name__ = "IngestJobStatus"
|
|
10083
|
+
ingest_api_IngestJobStatus.__qualname__ = "IngestJobStatus"
|
|
10084
|
+
ingest_api_IngestJobStatus.__module__ = "nominal_api.ingest_api"
|
|
10085
|
+
|
|
10086
|
+
|
|
10002
10087
|
class ingest_api_IngestMcapRequest(ConjureBeanType):
|
|
10003
10088
|
|
|
10004
10089
|
@builtins.classmethod
|
|
@@ -11060,6 +11145,34 @@ ingest_api_IngestStatus.__qualname__ = "IngestStatus"
|
|
|
11060
11145
|
ingest_api_IngestStatus.__module__ = "nominal_api.ingest_api"
|
|
11061
11146
|
|
|
11062
11147
|
|
|
11148
|
+
class ingest_api_IngestType(ConjureEnumType):
|
|
11149
|
+
|
|
11150
|
+
TABULAR = 'TABULAR'
|
|
11151
|
+
'''TABULAR'''
|
|
11152
|
+
MCAP = 'MCAP'
|
|
11153
|
+
'''MCAP'''
|
|
11154
|
+
DATAFLASH = 'DATAFLASH'
|
|
11155
|
+
'''DATAFLASH'''
|
|
11156
|
+
JOURNAL_JSON = 'JOURNAL_JSON'
|
|
11157
|
+
'''JOURNAL_JSON'''
|
|
11158
|
+
CONTAINERIZED = 'CONTAINERIZED'
|
|
11159
|
+
'''CONTAINERIZED'''
|
|
11160
|
+
VIDEO = 'VIDEO'
|
|
11161
|
+
'''VIDEO'''
|
|
11162
|
+
AVRO_STREAM = 'AVRO_STREAM'
|
|
11163
|
+
'''AVRO_STREAM'''
|
|
11164
|
+
UNKNOWN = 'UNKNOWN'
|
|
11165
|
+
'''UNKNOWN'''
|
|
11166
|
+
|
|
11167
|
+
def __reduce_ex__(self, proto):
|
|
11168
|
+
return self.__class__, (self.name,)
|
|
11169
|
+
|
|
11170
|
+
|
|
11171
|
+
ingest_api_IngestType.__name__ = "IngestType"
|
|
11172
|
+
ingest_api_IngestType.__qualname__ = "IngestType"
|
|
11173
|
+
ingest_api_IngestType.__module__ = "nominal_api.ingest_api"
|
|
11174
|
+
|
|
11175
|
+
|
|
11063
11176
|
class ingest_api_IngestVideoFileDetails(ConjureBeanType):
|
|
11064
11177
|
|
|
11065
11178
|
@builtins.classmethod
|
|
@@ -14078,6 +14191,79 @@ ingest_workflow_api_IngestDataflashResponse.__qualname__ = "IngestDataflashRespo
|
|
|
14078
14191
|
ingest_workflow_api_IngestDataflashResponse.__module__ = "nominal_api.ingest_workflow_api"
|
|
14079
14192
|
|
|
14080
14193
|
|
|
14194
|
+
class ingest_workflow_api_IngestInternalService(Service):
|
|
14195
|
+
|
|
14196
|
+
def get_ingest_job(self, auth_header: str, ingest_job_rid: str) -> "ingest_api_IngestJob":
|
|
14197
|
+
"""Returns a single ingest job by RID.
|
|
14198
|
+
"""
|
|
14199
|
+
_conjure_encoder = ConjureEncoder()
|
|
14200
|
+
|
|
14201
|
+
_headers: Dict[str, Any] = {
|
|
14202
|
+
'Accept': 'application/json',
|
|
14203
|
+
'Authorization': auth_header,
|
|
14204
|
+
}
|
|
14205
|
+
|
|
14206
|
+
_params: Dict[str, Any] = {
|
|
14207
|
+
}
|
|
14208
|
+
|
|
14209
|
+
_path_params: Dict[str, str] = {
|
|
14210
|
+
'ingestJobRid': quote(str(_conjure_encoder.default(ingest_job_rid)), safe=''),
|
|
14211
|
+
}
|
|
14212
|
+
|
|
14213
|
+
_json: Any = None
|
|
14214
|
+
|
|
14215
|
+
_path = '/internal/ingest/v1/ingest-job/{ingestJobRid}'
|
|
14216
|
+
_path = _path.format(**_path_params)
|
|
14217
|
+
|
|
14218
|
+
_response: Response = self._request(
|
|
14219
|
+
'GET',
|
|
14220
|
+
self._uri + _path,
|
|
14221
|
+
params=_params,
|
|
14222
|
+
headers=_headers,
|
|
14223
|
+
json=_json)
|
|
14224
|
+
|
|
14225
|
+
_decoder = ConjureDecoder()
|
|
14226
|
+
return _decoder.decode(_response.json(), ingest_api_IngestJob, self._return_none_for_unknown_union_types)
|
|
14227
|
+
|
|
14228
|
+
def update_ingest_job_status(self, auth_header: str, ingest_job_rid: str, status: "ingest_api_IngestJobStatus") -> "ingest_api_IngestJobStatus":
|
|
14229
|
+
"""Updates the status of an ingest job.
|
|
14230
|
+
"""
|
|
14231
|
+
_conjure_encoder = ConjureEncoder()
|
|
14232
|
+
|
|
14233
|
+
_headers: Dict[str, Any] = {
|
|
14234
|
+
'Accept': 'application/json',
|
|
14235
|
+
'Content-Type': 'application/json',
|
|
14236
|
+
'Authorization': auth_header,
|
|
14237
|
+
}
|
|
14238
|
+
|
|
14239
|
+
_params: Dict[str, Any] = {
|
|
14240
|
+
}
|
|
14241
|
+
|
|
14242
|
+
_path_params: Dict[str, str] = {
|
|
14243
|
+
'ingestJobRid': quote(str(_conjure_encoder.default(ingest_job_rid)), safe=''),
|
|
14244
|
+
}
|
|
14245
|
+
|
|
14246
|
+
_json: Any = _conjure_encoder.default(status)
|
|
14247
|
+
|
|
14248
|
+
_path = '/internal/ingest/v1/ingest-job/{ingestJobRid}/status'
|
|
14249
|
+
_path = _path.format(**_path_params)
|
|
14250
|
+
|
|
14251
|
+
_response: Response = self._request(
|
|
14252
|
+
'PUT',
|
|
14253
|
+
self._uri + _path,
|
|
14254
|
+
params=_params,
|
|
14255
|
+
headers=_headers,
|
|
14256
|
+
json=_json)
|
|
14257
|
+
|
|
14258
|
+
_decoder = ConjureDecoder()
|
|
14259
|
+
return _decoder.decode(_response.json(), ingest_api_IngestJobStatus, self._return_none_for_unknown_union_types)
|
|
14260
|
+
|
|
14261
|
+
|
|
14262
|
+
ingest_workflow_api_IngestInternalService.__name__ = "IngestInternalService"
|
|
14263
|
+
ingest_workflow_api_IngestInternalService.__qualname__ = "IngestInternalService"
|
|
14264
|
+
ingest_workflow_api_IngestInternalService.__module__ = "nominal_api.ingest_workflow_api"
|
|
14265
|
+
|
|
14266
|
+
|
|
14081
14267
|
class ingest_workflow_api_IngestMcapProtobufRequest(ConjureBeanType):
|
|
14082
14268
|
|
|
14083
14269
|
@builtins.classmethod
|
|
@@ -41773,551 +41959,6 @@ scout_compute_api_ComputableNodeVisitor.__qualname__ = "ComputableNodeVisitor"
|
|
|
41773
41959
|
scout_compute_api_ComputableNodeVisitor.__module__ = "nominal_api.scout_compute_api"
|
|
41774
41960
|
|
|
41775
41961
|
|
|
41776
|
-
class scout_compute_api_ComputeEventQuery(ConjureUnionType):
|
|
41777
|
-
_search_text: Optional[str] = None
|
|
41778
|
-
_after: Optional["scout_compute_api_TimestampConstant"] = None
|
|
41779
|
-
_before: Optional["scout_compute_api_TimestampConstant"] = None
|
|
41780
|
-
_advanced_time_filter: Optional["scout_compute_api_EventTimeFilter"] = None
|
|
41781
|
-
_asset: Optional["scout_compute_api_StringConstant"] = None
|
|
41782
|
-
_template: Optional["scout_compute_api_StringConstant"] = None
|
|
41783
|
-
_workbook: Optional["scout_compute_api_StringConstant"] = None
|
|
41784
|
-
_data_review: Optional["scout_compute_api_StringConstant"] = None
|
|
41785
|
-
_origin_type: Optional["scout_compute_api_SearchEventOriginType"] = None
|
|
41786
|
-
_data_review_check: Optional["scout_compute_api_StringConstant"] = None
|
|
41787
|
-
_disposition_status: Optional["scout_compute_api_EventDispositionStatus"] = None
|
|
41788
|
-
_priority: Optional["scout_compute_api_StringConstant"] = None
|
|
41789
|
-
_assignee: Optional["scout_compute_api_StringConstant"] = None
|
|
41790
|
-
_event_type: Optional["scout_compute_api_EventType"] = None
|
|
41791
|
-
_created_by: Optional["scout_compute_api_StringConstant"] = None
|
|
41792
|
-
_label: Optional["scout_compute_api_StringConstant"] = None
|
|
41793
|
-
_property: Optional["scout_compute_api_Property"] = None
|
|
41794
|
-
_and_: Optional[List["scout_compute_api_ComputeEventQuery"]] = None
|
|
41795
|
-
_or_: Optional[List["scout_compute_api_ComputeEventQuery"]] = None
|
|
41796
|
-
_not_: Optional["scout_compute_api_ComputeEventQuery"] = None
|
|
41797
|
-
_workspace: Optional["scout_compute_api_StringConstant"] = None
|
|
41798
|
-
_procedure: Optional["scout_compute_api_StringConstant"] = None
|
|
41799
|
-
_procedure_execution: Optional["scout_compute_api_StringConstant"] = None
|
|
41800
|
-
_step_id: Optional["scout_compute_api_StringConstant"] = None
|
|
41801
|
-
|
|
41802
|
-
@builtins.classmethod
|
|
41803
|
-
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
41804
|
-
return {
|
|
41805
|
-
'search_text': ConjureFieldDefinition('searchText', str),
|
|
41806
|
-
'after': ConjureFieldDefinition('after', scout_compute_api_TimestampConstant),
|
|
41807
|
-
'before': ConjureFieldDefinition('before', scout_compute_api_TimestampConstant),
|
|
41808
|
-
'advanced_time_filter': ConjureFieldDefinition('advancedTimeFilter', scout_compute_api_EventTimeFilter),
|
|
41809
|
-
'asset': ConjureFieldDefinition('asset', scout_compute_api_StringConstant),
|
|
41810
|
-
'template': ConjureFieldDefinition('template', scout_compute_api_StringConstant),
|
|
41811
|
-
'workbook': ConjureFieldDefinition('workbook', scout_compute_api_StringConstant),
|
|
41812
|
-
'data_review': ConjureFieldDefinition('dataReview', scout_compute_api_StringConstant),
|
|
41813
|
-
'origin_type': ConjureFieldDefinition('originType', scout_compute_api_SearchEventOriginType),
|
|
41814
|
-
'data_review_check': ConjureFieldDefinition('dataReviewCheck', scout_compute_api_StringConstant),
|
|
41815
|
-
'disposition_status': ConjureFieldDefinition('dispositionStatus', scout_compute_api_EventDispositionStatus),
|
|
41816
|
-
'priority': ConjureFieldDefinition('priority', scout_compute_api_StringConstant),
|
|
41817
|
-
'assignee': ConjureFieldDefinition('assignee', scout_compute_api_StringConstant),
|
|
41818
|
-
'event_type': ConjureFieldDefinition('eventType', scout_compute_api_EventType),
|
|
41819
|
-
'created_by': ConjureFieldDefinition('createdBy', scout_compute_api_StringConstant),
|
|
41820
|
-
'label': ConjureFieldDefinition('label', scout_compute_api_StringConstant),
|
|
41821
|
-
'property': ConjureFieldDefinition('property', scout_compute_api_Property),
|
|
41822
|
-
'and_': ConjureFieldDefinition('and', List[scout_compute_api_ComputeEventQuery]),
|
|
41823
|
-
'or_': ConjureFieldDefinition('or', List[scout_compute_api_ComputeEventQuery]),
|
|
41824
|
-
'not_': ConjureFieldDefinition('not', scout_compute_api_ComputeEventQuery),
|
|
41825
|
-
'workspace': ConjureFieldDefinition('workspace', scout_compute_api_StringConstant),
|
|
41826
|
-
'procedure': ConjureFieldDefinition('procedure', scout_compute_api_StringConstant),
|
|
41827
|
-
'procedure_execution': ConjureFieldDefinition('procedureExecution', scout_compute_api_StringConstant),
|
|
41828
|
-
'step_id': ConjureFieldDefinition('stepId', scout_compute_api_StringConstant)
|
|
41829
|
-
}
|
|
41830
|
-
|
|
41831
|
-
def __init__(
|
|
41832
|
-
self,
|
|
41833
|
-
search_text: Optional[str] = None,
|
|
41834
|
-
after: Optional["scout_compute_api_TimestampConstant"] = None,
|
|
41835
|
-
before: Optional["scout_compute_api_TimestampConstant"] = None,
|
|
41836
|
-
advanced_time_filter: Optional["scout_compute_api_EventTimeFilter"] = None,
|
|
41837
|
-
asset: Optional["scout_compute_api_StringConstant"] = None,
|
|
41838
|
-
template: Optional["scout_compute_api_StringConstant"] = None,
|
|
41839
|
-
workbook: Optional["scout_compute_api_StringConstant"] = None,
|
|
41840
|
-
data_review: Optional["scout_compute_api_StringConstant"] = None,
|
|
41841
|
-
origin_type: Optional["scout_compute_api_SearchEventOriginType"] = None,
|
|
41842
|
-
data_review_check: Optional["scout_compute_api_StringConstant"] = None,
|
|
41843
|
-
disposition_status: Optional["scout_compute_api_EventDispositionStatus"] = None,
|
|
41844
|
-
priority: Optional["scout_compute_api_StringConstant"] = None,
|
|
41845
|
-
assignee: Optional["scout_compute_api_StringConstant"] = None,
|
|
41846
|
-
event_type: Optional["scout_compute_api_EventType"] = None,
|
|
41847
|
-
created_by: Optional["scout_compute_api_StringConstant"] = None,
|
|
41848
|
-
label: Optional["scout_compute_api_StringConstant"] = None,
|
|
41849
|
-
property: Optional["scout_compute_api_Property"] = None,
|
|
41850
|
-
and_: Optional[List["scout_compute_api_ComputeEventQuery"]] = None,
|
|
41851
|
-
or_: Optional[List["scout_compute_api_ComputeEventQuery"]] = None,
|
|
41852
|
-
not_: Optional["scout_compute_api_ComputeEventQuery"] = None,
|
|
41853
|
-
workspace: Optional["scout_compute_api_StringConstant"] = None,
|
|
41854
|
-
procedure: Optional["scout_compute_api_StringConstant"] = None,
|
|
41855
|
-
procedure_execution: Optional["scout_compute_api_StringConstant"] = None,
|
|
41856
|
-
step_id: Optional["scout_compute_api_StringConstant"] = None,
|
|
41857
|
-
type_of_union: Optional[str] = None
|
|
41858
|
-
) -> None:
|
|
41859
|
-
if type_of_union is None:
|
|
41860
|
-
if (search_text is not None) + (after is not None) + (before is not None) + (advanced_time_filter is not None) + (asset is not None) + (template is not None) + (workbook is not None) + (data_review is not None) + (origin_type is not None) + (data_review_check is not None) + (disposition_status is not None) + (priority is not None) + (assignee is not None) + (event_type is not None) + (created_by is not None) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (not_ is not None) + (workspace is not None) + (procedure is not None) + (procedure_execution is not None) + (step_id is not None) != 1:
|
|
41861
|
-
raise ValueError('a union must contain a single member')
|
|
41862
|
-
|
|
41863
|
-
if search_text is not None:
|
|
41864
|
-
self._search_text = search_text
|
|
41865
|
-
self._type = 'searchText'
|
|
41866
|
-
if after is not None:
|
|
41867
|
-
self._after = after
|
|
41868
|
-
self._type = 'after'
|
|
41869
|
-
if before is not None:
|
|
41870
|
-
self._before = before
|
|
41871
|
-
self._type = 'before'
|
|
41872
|
-
if advanced_time_filter is not None:
|
|
41873
|
-
self._advanced_time_filter = advanced_time_filter
|
|
41874
|
-
self._type = 'advancedTimeFilter'
|
|
41875
|
-
if asset is not None:
|
|
41876
|
-
self._asset = asset
|
|
41877
|
-
self._type = 'asset'
|
|
41878
|
-
if template is not None:
|
|
41879
|
-
self._template = template
|
|
41880
|
-
self._type = 'template'
|
|
41881
|
-
if workbook is not None:
|
|
41882
|
-
self._workbook = workbook
|
|
41883
|
-
self._type = 'workbook'
|
|
41884
|
-
if data_review is not None:
|
|
41885
|
-
self._data_review = data_review
|
|
41886
|
-
self._type = 'dataReview'
|
|
41887
|
-
if origin_type is not None:
|
|
41888
|
-
self._origin_type = origin_type
|
|
41889
|
-
self._type = 'originType'
|
|
41890
|
-
if data_review_check is not None:
|
|
41891
|
-
self._data_review_check = data_review_check
|
|
41892
|
-
self._type = 'dataReviewCheck'
|
|
41893
|
-
if disposition_status is not None:
|
|
41894
|
-
self._disposition_status = disposition_status
|
|
41895
|
-
self._type = 'dispositionStatus'
|
|
41896
|
-
if priority is not None:
|
|
41897
|
-
self._priority = priority
|
|
41898
|
-
self._type = 'priority'
|
|
41899
|
-
if assignee is not None:
|
|
41900
|
-
self._assignee = assignee
|
|
41901
|
-
self._type = 'assignee'
|
|
41902
|
-
if event_type is not None:
|
|
41903
|
-
self._event_type = event_type
|
|
41904
|
-
self._type = 'eventType'
|
|
41905
|
-
if created_by is not None:
|
|
41906
|
-
self._created_by = created_by
|
|
41907
|
-
self._type = 'createdBy'
|
|
41908
|
-
if label is not None:
|
|
41909
|
-
self._label = label
|
|
41910
|
-
self._type = 'label'
|
|
41911
|
-
if property is not None:
|
|
41912
|
-
self._property = property
|
|
41913
|
-
self._type = 'property'
|
|
41914
|
-
if and_ is not None:
|
|
41915
|
-
self._and_ = and_
|
|
41916
|
-
self._type = 'and'
|
|
41917
|
-
if or_ is not None:
|
|
41918
|
-
self._or_ = or_
|
|
41919
|
-
self._type = 'or'
|
|
41920
|
-
if not_ is not None:
|
|
41921
|
-
self._not_ = not_
|
|
41922
|
-
self._type = 'not'
|
|
41923
|
-
if workspace is not None:
|
|
41924
|
-
self._workspace = workspace
|
|
41925
|
-
self._type = 'workspace'
|
|
41926
|
-
if procedure is not None:
|
|
41927
|
-
self._procedure = procedure
|
|
41928
|
-
self._type = 'procedure'
|
|
41929
|
-
if procedure_execution is not None:
|
|
41930
|
-
self._procedure_execution = procedure_execution
|
|
41931
|
-
self._type = 'procedureExecution'
|
|
41932
|
-
if step_id is not None:
|
|
41933
|
-
self._step_id = step_id
|
|
41934
|
-
self._type = 'stepId'
|
|
41935
|
-
|
|
41936
|
-
elif type_of_union == 'searchText':
|
|
41937
|
-
if search_text is None:
|
|
41938
|
-
raise ValueError('a union value must not be None')
|
|
41939
|
-
self._search_text = search_text
|
|
41940
|
-
self._type = 'searchText'
|
|
41941
|
-
elif type_of_union == 'after':
|
|
41942
|
-
if after is None:
|
|
41943
|
-
raise ValueError('a union value must not be None')
|
|
41944
|
-
self._after = after
|
|
41945
|
-
self._type = 'after'
|
|
41946
|
-
elif type_of_union == 'before':
|
|
41947
|
-
if before is None:
|
|
41948
|
-
raise ValueError('a union value must not be None')
|
|
41949
|
-
self._before = before
|
|
41950
|
-
self._type = 'before'
|
|
41951
|
-
elif type_of_union == 'advancedTimeFilter':
|
|
41952
|
-
if advanced_time_filter is None:
|
|
41953
|
-
raise ValueError('a union value must not be None')
|
|
41954
|
-
self._advanced_time_filter = advanced_time_filter
|
|
41955
|
-
self._type = 'advancedTimeFilter'
|
|
41956
|
-
elif type_of_union == 'asset':
|
|
41957
|
-
if asset is None:
|
|
41958
|
-
raise ValueError('a union value must not be None')
|
|
41959
|
-
self._asset = asset
|
|
41960
|
-
self._type = 'asset'
|
|
41961
|
-
elif type_of_union == 'template':
|
|
41962
|
-
if template is None:
|
|
41963
|
-
raise ValueError('a union value must not be None')
|
|
41964
|
-
self._template = template
|
|
41965
|
-
self._type = 'template'
|
|
41966
|
-
elif type_of_union == 'workbook':
|
|
41967
|
-
if workbook is None:
|
|
41968
|
-
raise ValueError('a union value must not be None')
|
|
41969
|
-
self._workbook = workbook
|
|
41970
|
-
self._type = 'workbook'
|
|
41971
|
-
elif type_of_union == 'dataReview':
|
|
41972
|
-
if data_review is None:
|
|
41973
|
-
raise ValueError('a union value must not be None')
|
|
41974
|
-
self._data_review = data_review
|
|
41975
|
-
self._type = 'dataReview'
|
|
41976
|
-
elif type_of_union == 'originType':
|
|
41977
|
-
if origin_type is None:
|
|
41978
|
-
raise ValueError('a union value must not be None')
|
|
41979
|
-
self._origin_type = origin_type
|
|
41980
|
-
self._type = 'originType'
|
|
41981
|
-
elif type_of_union == 'dataReviewCheck':
|
|
41982
|
-
if data_review_check is None:
|
|
41983
|
-
raise ValueError('a union value must not be None')
|
|
41984
|
-
self._data_review_check = data_review_check
|
|
41985
|
-
self._type = 'dataReviewCheck'
|
|
41986
|
-
elif type_of_union == 'dispositionStatus':
|
|
41987
|
-
if disposition_status is None:
|
|
41988
|
-
raise ValueError('a union value must not be None')
|
|
41989
|
-
self._disposition_status = disposition_status
|
|
41990
|
-
self._type = 'dispositionStatus'
|
|
41991
|
-
elif type_of_union == 'priority':
|
|
41992
|
-
if priority is None:
|
|
41993
|
-
raise ValueError('a union value must not be None')
|
|
41994
|
-
self._priority = priority
|
|
41995
|
-
self._type = 'priority'
|
|
41996
|
-
elif type_of_union == 'assignee':
|
|
41997
|
-
if assignee is None:
|
|
41998
|
-
raise ValueError('a union value must not be None')
|
|
41999
|
-
self._assignee = assignee
|
|
42000
|
-
self._type = 'assignee'
|
|
42001
|
-
elif type_of_union == 'eventType':
|
|
42002
|
-
if event_type is None:
|
|
42003
|
-
raise ValueError('a union value must not be None')
|
|
42004
|
-
self._event_type = event_type
|
|
42005
|
-
self._type = 'eventType'
|
|
42006
|
-
elif type_of_union == 'createdBy':
|
|
42007
|
-
if created_by is None:
|
|
42008
|
-
raise ValueError('a union value must not be None')
|
|
42009
|
-
self._created_by = created_by
|
|
42010
|
-
self._type = 'createdBy'
|
|
42011
|
-
elif type_of_union == 'label':
|
|
42012
|
-
if label is None:
|
|
42013
|
-
raise ValueError('a union value must not be None')
|
|
42014
|
-
self._label = label
|
|
42015
|
-
self._type = 'label'
|
|
42016
|
-
elif type_of_union == 'property':
|
|
42017
|
-
if property is None:
|
|
42018
|
-
raise ValueError('a union value must not be None')
|
|
42019
|
-
self._property = property
|
|
42020
|
-
self._type = 'property'
|
|
42021
|
-
elif type_of_union == 'and':
|
|
42022
|
-
if and_ is None:
|
|
42023
|
-
raise ValueError('a union value must not be None')
|
|
42024
|
-
self._and_ = and_
|
|
42025
|
-
self._type = 'and'
|
|
42026
|
-
elif type_of_union == 'or':
|
|
42027
|
-
if or_ is None:
|
|
42028
|
-
raise ValueError('a union value must not be None')
|
|
42029
|
-
self._or_ = or_
|
|
42030
|
-
self._type = 'or'
|
|
42031
|
-
elif type_of_union == 'not':
|
|
42032
|
-
if not_ is None:
|
|
42033
|
-
raise ValueError('a union value must not be None')
|
|
42034
|
-
self._not_ = not_
|
|
42035
|
-
self._type = 'not'
|
|
42036
|
-
elif type_of_union == 'workspace':
|
|
42037
|
-
if workspace is None:
|
|
42038
|
-
raise ValueError('a union value must not be None')
|
|
42039
|
-
self._workspace = workspace
|
|
42040
|
-
self._type = 'workspace'
|
|
42041
|
-
elif type_of_union == 'procedure':
|
|
42042
|
-
if procedure is None:
|
|
42043
|
-
raise ValueError('a union value must not be None')
|
|
42044
|
-
self._procedure = procedure
|
|
42045
|
-
self._type = 'procedure'
|
|
42046
|
-
elif type_of_union == 'procedureExecution':
|
|
42047
|
-
if procedure_execution is None:
|
|
42048
|
-
raise ValueError('a union value must not be None')
|
|
42049
|
-
self._procedure_execution = procedure_execution
|
|
42050
|
-
self._type = 'procedureExecution'
|
|
42051
|
-
elif type_of_union == 'stepId':
|
|
42052
|
-
if step_id is None:
|
|
42053
|
-
raise ValueError('a union value must not be None')
|
|
42054
|
-
self._step_id = step_id
|
|
42055
|
-
self._type = 'stepId'
|
|
42056
|
-
|
|
42057
|
-
@builtins.property
|
|
42058
|
-
def search_text(self) -> Optional[str]:
|
|
42059
|
-
return self._search_text
|
|
42060
|
-
|
|
42061
|
-
@builtins.property
|
|
42062
|
-
def after(self) -> Optional["scout_compute_api_TimestampConstant"]:
|
|
42063
|
-
"""Filters to events after this timestamp, exclusive.
|
|
42064
|
-
This includes events that start before, but end after this time.
|
|
42065
|
-
"""
|
|
42066
|
-
return self._after
|
|
42067
|
-
|
|
42068
|
-
@builtins.property
|
|
42069
|
-
def before(self) -> Optional["scout_compute_api_TimestampConstant"]:
|
|
42070
|
-
"""Filters to events before this timestamp, exclusive.
|
|
42071
|
-
This includes events that start before, but end after this time.
|
|
42072
|
-
"""
|
|
42073
|
-
return self._before
|
|
42074
|
-
|
|
42075
|
-
@builtins.property
|
|
42076
|
-
def advanced_time_filter(self) -> Optional["scout_compute_api_EventTimeFilter"]:
|
|
42077
|
-
return self._advanced_time_filter
|
|
42078
|
-
|
|
42079
|
-
@builtins.property
|
|
42080
|
-
def asset(self) -> Optional["scout_compute_api_StringConstant"]:
|
|
42081
|
-
return self._asset
|
|
42082
|
-
|
|
42083
|
-
@builtins.property
|
|
42084
|
-
def template(self) -> Optional["scout_compute_api_StringConstant"]:
|
|
42085
|
-
return self._template
|
|
42086
|
-
|
|
42087
|
-
@builtins.property
|
|
42088
|
-
def workbook(self) -> Optional["scout_compute_api_StringConstant"]:
|
|
42089
|
-
return self._workbook
|
|
42090
|
-
|
|
42091
|
-
@builtins.property
|
|
42092
|
-
def data_review(self) -> Optional["scout_compute_api_StringConstant"]:
|
|
42093
|
-
return self._data_review
|
|
42094
|
-
|
|
42095
|
-
@builtins.property
|
|
42096
|
-
def origin_type(self) -> Optional["scout_compute_api_SearchEventOriginType"]:
|
|
42097
|
-
return self._origin_type
|
|
42098
|
-
|
|
42099
|
-
@builtins.property
|
|
42100
|
-
def data_review_check(self) -> Optional["scout_compute_api_StringConstant"]:
|
|
42101
|
-
return self._data_review_check
|
|
42102
|
-
|
|
42103
|
-
@builtins.property
|
|
42104
|
-
def disposition_status(self) -> Optional["scout_compute_api_EventDispositionStatus"]:
|
|
42105
|
-
return self._disposition_status
|
|
42106
|
-
|
|
42107
|
-
@builtins.property
|
|
42108
|
-
def priority(self) -> Optional["scout_compute_api_StringConstant"]:
|
|
42109
|
-
return self._priority
|
|
42110
|
-
|
|
42111
|
-
@builtins.property
|
|
42112
|
-
def assignee(self) -> Optional["scout_compute_api_StringConstant"]:
|
|
42113
|
-
return self._assignee
|
|
42114
|
-
|
|
42115
|
-
@builtins.property
|
|
42116
|
-
def event_type(self) -> Optional["scout_compute_api_EventType"]:
|
|
42117
|
-
return self._event_type
|
|
42118
|
-
|
|
42119
|
-
@builtins.property
|
|
42120
|
-
def created_by(self) -> Optional["scout_compute_api_StringConstant"]:
|
|
42121
|
-
return self._created_by
|
|
42122
|
-
|
|
42123
|
-
@builtins.property
|
|
42124
|
-
def label(self) -> Optional["scout_compute_api_StringConstant"]:
|
|
42125
|
-
return self._label
|
|
42126
|
-
|
|
42127
|
-
@builtins.property
|
|
42128
|
-
def property(self) -> Optional["scout_compute_api_Property"]:
|
|
42129
|
-
return self._property
|
|
42130
|
-
|
|
42131
|
-
@builtins.property
|
|
42132
|
-
def and_(self) -> Optional[List["scout_compute_api_ComputeEventQuery"]]:
|
|
42133
|
-
return self._and_
|
|
42134
|
-
|
|
42135
|
-
@builtins.property
|
|
42136
|
-
def or_(self) -> Optional[List["scout_compute_api_ComputeEventQuery"]]:
|
|
42137
|
-
return self._or_
|
|
42138
|
-
|
|
42139
|
-
@builtins.property
|
|
42140
|
-
def not_(self) -> Optional["scout_compute_api_ComputeEventQuery"]:
|
|
42141
|
-
return self._not_
|
|
42142
|
-
|
|
42143
|
-
@builtins.property
|
|
42144
|
-
def workspace(self) -> Optional["scout_compute_api_StringConstant"]:
|
|
42145
|
-
return self._workspace
|
|
42146
|
-
|
|
42147
|
-
@builtins.property
|
|
42148
|
-
def procedure(self) -> Optional["scout_compute_api_StringConstant"]:
|
|
42149
|
-
return self._procedure
|
|
42150
|
-
|
|
42151
|
-
@builtins.property
|
|
42152
|
-
def procedure_execution(self) -> Optional["scout_compute_api_StringConstant"]:
|
|
42153
|
-
return self._procedure_execution
|
|
42154
|
-
|
|
42155
|
-
@builtins.property
|
|
42156
|
-
def step_id(self) -> Optional["scout_compute_api_StringConstant"]:
|
|
42157
|
-
return self._step_id
|
|
42158
|
-
|
|
42159
|
-
def accept(self, visitor) -> Any:
|
|
42160
|
-
if not isinstance(visitor, scout_compute_api_ComputeEventQueryVisitor):
|
|
42161
|
-
raise ValueError('{} is not an instance of scout_compute_api_ComputeEventQueryVisitor'.format(visitor.__class__.__name__))
|
|
42162
|
-
if self._type == 'searchText' and self.search_text is not None:
|
|
42163
|
-
return visitor._search_text(self.search_text)
|
|
42164
|
-
if self._type == 'after' and self.after is not None:
|
|
42165
|
-
return visitor._after(self.after)
|
|
42166
|
-
if self._type == 'before' and self.before is not None:
|
|
42167
|
-
return visitor._before(self.before)
|
|
42168
|
-
if self._type == 'advancedTimeFilter' and self.advanced_time_filter is not None:
|
|
42169
|
-
return visitor._advanced_time_filter(self.advanced_time_filter)
|
|
42170
|
-
if self._type == 'asset' and self.asset is not None:
|
|
42171
|
-
return visitor._asset(self.asset)
|
|
42172
|
-
if self._type == 'template' and self.template is not None:
|
|
42173
|
-
return visitor._template(self.template)
|
|
42174
|
-
if self._type == 'workbook' and self.workbook is not None:
|
|
42175
|
-
return visitor._workbook(self.workbook)
|
|
42176
|
-
if self._type == 'dataReview' and self.data_review is not None:
|
|
42177
|
-
return visitor._data_review(self.data_review)
|
|
42178
|
-
if self._type == 'originType' and self.origin_type is not None:
|
|
42179
|
-
return visitor._origin_type(self.origin_type)
|
|
42180
|
-
if self._type == 'dataReviewCheck' and self.data_review_check is not None:
|
|
42181
|
-
return visitor._data_review_check(self.data_review_check)
|
|
42182
|
-
if self._type == 'dispositionStatus' and self.disposition_status is not None:
|
|
42183
|
-
return visitor._disposition_status(self.disposition_status)
|
|
42184
|
-
if self._type == 'priority' and self.priority is not None:
|
|
42185
|
-
return visitor._priority(self.priority)
|
|
42186
|
-
if self._type == 'assignee' and self.assignee is not None:
|
|
42187
|
-
return visitor._assignee(self.assignee)
|
|
42188
|
-
if self._type == 'eventType' and self.event_type is not None:
|
|
42189
|
-
return visitor._event_type(self.event_type)
|
|
42190
|
-
if self._type == 'createdBy' and self.created_by is not None:
|
|
42191
|
-
return visitor._created_by(self.created_by)
|
|
42192
|
-
if self._type == 'label' and self.label is not None:
|
|
42193
|
-
return visitor._label(self.label)
|
|
42194
|
-
if self._type == 'property' and self.property is not None:
|
|
42195
|
-
return visitor._property(self.property)
|
|
42196
|
-
if self._type == 'and' and self.and_ is not None:
|
|
42197
|
-
return visitor._and(self.and_)
|
|
42198
|
-
if self._type == 'or' and self.or_ is not None:
|
|
42199
|
-
return visitor._or(self.or_)
|
|
42200
|
-
if self._type == 'not' and self.not_ is not None:
|
|
42201
|
-
return visitor._not(self.not_)
|
|
42202
|
-
if self._type == 'workspace' and self.workspace is not None:
|
|
42203
|
-
return visitor._workspace(self.workspace)
|
|
42204
|
-
if self._type == 'procedure' and self.procedure is not None:
|
|
42205
|
-
return visitor._procedure(self.procedure)
|
|
42206
|
-
if self._type == 'procedureExecution' and self.procedure_execution is not None:
|
|
42207
|
-
return visitor._procedure_execution(self.procedure_execution)
|
|
42208
|
-
if self._type == 'stepId' and self.step_id is not None:
|
|
42209
|
-
return visitor._step_id(self.step_id)
|
|
42210
|
-
|
|
42211
|
-
|
|
42212
|
-
scout_compute_api_ComputeEventQuery.__name__ = "ComputeEventQuery"
|
|
42213
|
-
scout_compute_api_ComputeEventQuery.__qualname__ = "ComputeEventQuery"
|
|
42214
|
-
scout_compute_api_ComputeEventQuery.__module__ = "nominal_api.scout_compute_api"
|
|
42215
|
-
|
|
42216
|
-
|
|
42217
|
-
class scout_compute_api_ComputeEventQueryVisitor:
|
|
42218
|
-
|
|
42219
|
-
@abstractmethod
|
|
42220
|
-
def _search_text(self, search_text: str) -> Any:
|
|
42221
|
-
pass
|
|
42222
|
-
|
|
42223
|
-
@abstractmethod
|
|
42224
|
-
def _after(self, after: "scout_compute_api_TimestampConstant") -> Any:
|
|
42225
|
-
pass
|
|
42226
|
-
|
|
42227
|
-
@abstractmethod
|
|
42228
|
-
def _before(self, before: "scout_compute_api_TimestampConstant") -> Any:
|
|
42229
|
-
pass
|
|
42230
|
-
|
|
42231
|
-
@abstractmethod
|
|
42232
|
-
def _advanced_time_filter(self, advanced_time_filter: "scout_compute_api_EventTimeFilter") -> Any:
|
|
42233
|
-
pass
|
|
42234
|
-
|
|
42235
|
-
@abstractmethod
|
|
42236
|
-
def _asset(self, asset: "scout_compute_api_StringConstant") -> Any:
|
|
42237
|
-
pass
|
|
42238
|
-
|
|
42239
|
-
@abstractmethod
|
|
42240
|
-
def _template(self, template: "scout_compute_api_StringConstant") -> Any:
|
|
42241
|
-
pass
|
|
42242
|
-
|
|
42243
|
-
@abstractmethod
|
|
42244
|
-
def _workbook(self, workbook: "scout_compute_api_StringConstant") -> Any:
|
|
42245
|
-
pass
|
|
42246
|
-
|
|
42247
|
-
@abstractmethod
|
|
42248
|
-
def _data_review(self, data_review: "scout_compute_api_StringConstant") -> Any:
|
|
42249
|
-
pass
|
|
42250
|
-
|
|
42251
|
-
@abstractmethod
|
|
42252
|
-
def _origin_type(self, origin_type: "scout_compute_api_SearchEventOriginType") -> Any:
|
|
42253
|
-
pass
|
|
42254
|
-
|
|
42255
|
-
@abstractmethod
|
|
42256
|
-
def _data_review_check(self, data_review_check: "scout_compute_api_StringConstant") -> Any:
|
|
42257
|
-
pass
|
|
42258
|
-
|
|
42259
|
-
@abstractmethod
|
|
42260
|
-
def _disposition_status(self, disposition_status: "scout_compute_api_EventDispositionStatus") -> Any:
|
|
42261
|
-
pass
|
|
42262
|
-
|
|
42263
|
-
@abstractmethod
|
|
42264
|
-
def _priority(self, priority: "scout_compute_api_StringConstant") -> Any:
|
|
42265
|
-
pass
|
|
42266
|
-
|
|
42267
|
-
@abstractmethod
|
|
42268
|
-
def _assignee(self, assignee: "scout_compute_api_StringConstant") -> Any:
|
|
42269
|
-
pass
|
|
42270
|
-
|
|
42271
|
-
@abstractmethod
|
|
42272
|
-
def _event_type(self, event_type: "scout_compute_api_EventType") -> Any:
|
|
42273
|
-
pass
|
|
42274
|
-
|
|
42275
|
-
@abstractmethod
|
|
42276
|
-
def _created_by(self, created_by: "scout_compute_api_StringConstant") -> Any:
|
|
42277
|
-
pass
|
|
42278
|
-
|
|
42279
|
-
@abstractmethod
|
|
42280
|
-
def _label(self, label: "scout_compute_api_StringConstant") -> Any:
|
|
42281
|
-
pass
|
|
42282
|
-
|
|
42283
|
-
@abstractmethod
|
|
42284
|
-
def _property(self, property: "scout_compute_api_Property") -> Any:
|
|
42285
|
-
pass
|
|
42286
|
-
|
|
42287
|
-
@abstractmethod
|
|
42288
|
-
def _and(self, and_: List["scout_compute_api_ComputeEventQuery"]) -> Any:
|
|
42289
|
-
pass
|
|
42290
|
-
|
|
42291
|
-
@abstractmethod
|
|
42292
|
-
def _or(self, or_: List["scout_compute_api_ComputeEventQuery"]) -> Any:
|
|
42293
|
-
pass
|
|
42294
|
-
|
|
42295
|
-
@abstractmethod
|
|
42296
|
-
def _not(self, not_: "scout_compute_api_ComputeEventQuery") -> Any:
|
|
42297
|
-
pass
|
|
42298
|
-
|
|
42299
|
-
@abstractmethod
|
|
42300
|
-
def _workspace(self, workspace: "scout_compute_api_StringConstant") -> Any:
|
|
42301
|
-
pass
|
|
42302
|
-
|
|
42303
|
-
@abstractmethod
|
|
42304
|
-
def _procedure(self, procedure: "scout_compute_api_StringConstant") -> Any:
|
|
42305
|
-
pass
|
|
42306
|
-
|
|
42307
|
-
@abstractmethod
|
|
42308
|
-
def _procedure_execution(self, procedure_execution: "scout_compute_api_StringConstant") -> Any:
|
|
42309
|
-
pass
|
|
42310
|
-
|
|
42311
|
-
@abstractmethod
|
|
42312
|
-
def _step_id(self, step_id: "scout_compute_api_StringConstant") -> Any:
|
|
42313
|
-
pass
|
|
42314
|
-
|
|
42315
|
-
|
|
42316
|
-
scout_compute_api_ComputeEventQueryVisitor.__name__ = "ComputeEventQueryVisitor"
|
|
42317
|
-
scout_compute_api_ComputeEventQueryVisitor.__qualname__ = "ComputeEventQueryVisitor"
|
|
42318
|
-
scout_compute_api_ComputeEventQueryVisitor.__module__ = "nominal_api.scout_compute_api"
|
|
42319
|
-
|
|
42320
|
-
|
|
42321
41962
|
class scout_compute_api_ComputeNode(ConjureUnionType):
|
|
42322
41963
|
_enum: Optional["scout_compute_api_EnumSeries"] = None
|
|
42323
41964
|
_numeric: Optional["scout_compute_api_NumericSeries"] = None
|
|
@@ -45605,109 +45246,6 @@ scout_compute_api_ErrorResult.__qualname__ = "ErrorResult"
|
|
|
45605
45246
|
scout_compute_api_ErrorResult.__module__ = "nominal_api.scout_compute_api"
|
|
45606
45247
|
|
|
45607
45248
|
|
|
45608
|
-
class scout_compute_api_EventDispositionStatus(ConjureEnumType):
|
|
45609
|
-
|
|
45610
|
-
PENDING_REVIEW = 'PENDING_REVIEW'
|
|
45611
|
-
'''PENDING_REVIEW'''
|
|
45612
|
-
CLOSED_IGNORED = 'CLOSED_IGNORED'
|
|
45613
|
-
'''CLOSED_IGNORED'''
|
|
45614
|
-
CLOSED_REQUIRES_FURTHER_ACTION = 'CLOSED_REQUIRES_FURTHER_ACTION'
|
|
45615
|
-
'''CLOSED_REQUIRES_FURTHER_ACTION'''
|
|
45616
|
-
NO_DISPOSITION = 'NO_DISPOSITION'
|
|
45617
|
-
'''NO_DISPOSITION'''
|
|
45618
|
-
UNKNOWN = 'UNKNOWN'
|
|
45619
|
-
'''UNKNOWN'''
|
|
45620
|
-
|
|
45621
|
-
def __reduce_ex__(self, proto):
|
|
45622
|
-
return self.__class__, (self.name,)
|
|
45623
|
-
|
|
45624
|
-
|
|
45625
|
-
scout_compute_api_EventDispositionStatus.__name__ = "EventDispositionStatus"
|
|
45626
|
-
scout_compute_api_EventDispositionStatus.__qualname__ = "EventDispositionStatus"
|
|
45627
|
-
scout_compute_api_EventDispositionStatus.__module__ = "nominal_api.scout_compute_api"
|
|
45628
|
-
|
|
45629
|
-
|
|
45630
|
-
class scout_compute_api_EventTimeFilter(ConjureBeanType):
|
|
45631
|
-
|
|
45632
|
-
@builtins.classmethod
|
|
45633
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
45634
|
-
return {
|
|
45635
|
-
'timestamp': ConjureFieldDefinition('timestamp', scout_compute_api_TimestampConstant),
|
|
45636
|
-
'timestamp_condition': ConjureFieldDefinition('timestampCondition', scout_compute_api_EventTimeFilterCondition)
|
|
45637
|
-
}
|
|
45638
|
-
|
|
45639
|
-
__slots__: List[str] = ['_timestamp', '_timestamp_condition']
|
|
45640
|
-
|
|
45641
|
-
def __init__(self, timestamp: "scout_compute_api_TimestampConstant", timestamp_condition: "scout_compute_api_EventTimeFilterCondition") -> None:
|
|
45642
|
-
self._timestamp = timestamp
|
|
45643
|
-
self._timestamp_condition = timestamp_condition
|
|
45644
|
-
|
|
45645
|
-
@builtins.property
|
|
45646
|
-
def timestamp(self) -> "scout_compute_api_TimestampConstant":
|
|
45647
|
-
return self._timestamp
|
|
45648
|
-
|
|
45649
|
-
@builtins.property
|
|
45650
|
-
def timestamp_condition(self) -> "scout_compute_api_EventTimeFilterCondition":
|
|
45651
|
-
return self._timestamp_condition
|
|
45652
|
-
|
|
45653
|
-
|
|
45654
|
-
scout_compute_api_EventTimeFilter.__name__ = "EventTimeFilter"
|
|
45655
|
-
scout_compute_api_EventTimeFilter.__qualname__ = "EventTimeFilter"
|
|
45656
|
-
scout_compute_api_EventTimeFilter.__module__ = "nominal_api.scout_compute_api"
|
|
45657
|
-
|
|
45658
|
-
|
|
45659
|
-
class scout_compute_api_EventTimeFilterCondition(ConjureEnumType):
|
|
45660
|
-
|
|
45661
|
-
START_TIME_BEFORE_INCLUSIVE = 'START_TIME_BEFORE_INCLUSIVE'
|
|
45662
|
-
'''START_TIME_BEFORE_INCLUSIVE'''
|
|
45663
|
-
START_TIME_BEFORE_EXCLUSIVE = 'START_TIME_BEFORE_EXCLUSIVE'
|
|
45664
|
-
'''START_TIME_BEFORE_EXCLUSIVE'''
|
|
45665
|
-
START_TIME_AFTER_INCLUSIVE = 'START_TIME_AFTER_INCLUSIVE'
|
|
45666
|
-
'''START_TIME_AFTER_INCLUSIVE'''
|
|
45667
|
-
START_TIME_AFTER_EXCLUSIVE = 'START_TIME_AFTER_EXCLUSIVE'
|
|
45668
|
-
'''START_TIME_AFTER_EXCLUSIVE'''
|
|
45669
|
-
END_TIME_BEFORE_INCLUSIVE = 'END_TIME_BEFORE_INCLUSIVE'
|
|
45670
|
-
'''END_TIME_BEFORE_INCLUSIVE'''
|
|
45671
|
-
END_TIME_BEFORE_EXCLUSIVE = 'END_TIME_BEFORE_EXCLUSIVE'
|
|
45672
|
-
'''END_TIME_BEFORE_EXCLUSIVE'''
|
|
45673
|
-
END_TIME_AFTER_INCLUSIVE = 'END_TIME_AFTER_INCLUSIVE'
|
|
45674
|
-
'''END_TIME_AFTER_INCLUSIVE'''
|
|
45675
|
-
END_TIME_AFTER_EXCLUSIVE = 'END_TIME_AFTER_EXCLUSIVE'
|
|
45676
|
-
'''END_TIME_AFTER_EXCLUSIVE'''
|
|
45677
|
-
UNKNOWN = 'UNKNOWN'
|
|
45678
|
-
'''UNKNOWN'''
|
|
45679
|
-
|
|
45680
|
-
def __reduce_ex__(self, proto):
|
|
45681
|
-
return self.__class__, (self.name,)
|
|
45682
|
-
|
|
45683
|
-
|
|
45684
|
-
scout_compute_api_EventTimeFilterCondition.__name__ = "EventTimeFilterCondition"
|
|
45685
|
-
scout_compute_api_EventTimeFilterCondition.__qualname__ = "EventTimeFilterCondition"
|
|
45686
|
-
scout_compute_api_EventTimeFilterCondition.__module__ = "nominal_api.scout_compute_api"
|
|
45687
|
-
|
|
45688
|
-
|
|
45689
|
-
class scout_compute_api_EventType(ConjureEnumType):
|
|
45690
|
-
|
|
45691
|
-
INFO = 'INFO'
|
|
45692
|
-
'''INFO'''
|
|
45693
|
-
FLAG = 'FLAG'
|
|
45694
|
-
'''FLAG'''
|
|
45695
|
-
ERROR = 'ERROR'
|
|
45696
|
-
'''ERROR'''
|
|
45697
|
-
SUCCESS = 'SUCCESS'
|
|
45698
|
-
'''SUCCESS'''
|
|
45699
|
-
UNKNOWN = 'UNKNOWN'
|
|
45700
|
-
'''UNKNOWN'''
|
|
45701
|
-
|
|
45702
|
-
def __reduce_ex__(self, proto):
|
|
45703
|
-
return self.__class__, (self.name,)
|
|
45704
|
-
|
|
45705
|
-
|
|
45706
|
-
scout_compute_api_EventType.__name__ = "EventType"
|
|
45707
|
-
scout_compute_api_EventType.__qualname__ = "EventType"
|
|
45708
|
-
scout_compute_api_EventType.__module__ = "nominal_api.scout_compute_api"
|
|
45709
|
-
|
|
45710
|
-
|
|
45711
45249
|
class scout_compute_api_EventsSearchRanges(ConjureBeanType):
|
|
45712
45250
|
"""Produces a range series with a range for each event matching the query.
|
|
45713
45251
|
Throws if there are more than 1,000 results.
|
|
@@ -45716,17 +45254,17 @@ Throws if there are more than 1,000 results.
|
|
|
45716
45254
|
@builtins.classmethod
|
|
45717
45255
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
45718
45256
|
return {
|
|
45719
|
-
'
|
|
45257
|
+
'search_query': ConjureFieldDefinition('searchQuery', event_SearchQuery)
|
|
45720
45258
|
}
|
|
45721
45259
|
|
|
45722
|
-
__slots__: List[str] = ['
|
|
45260
|
+
__slots__: List[str] = ['_search_query']
|
|
45723
45261
|
|
|
45724
|
-
def __init__(self,
|
|
45725
|
-
self.
|
|
45262
|
+
def __init__(self, search_query: "event_SearchQuery") -> None:
|
|
45263
|
+
self._search_query = search_query
|
|
45726
45264
|
|
|
45727
45265
|
@builtins.property
|
|
45728
|
-
def
|
|
45729
|
-
return self.
|
|
45266
|
+
def search_query(self) -> "event_SearchQuery":
|
|
45267
|
+
return self._search_query
|
|
45730
45268
|
|
|
45731
45269
|
|
|
45732
45270
|
scout_compute_api_EventsSearchRanges.__name__ = "EventsSearchRanges"
|
|
@@ -50218,35 +49756,6 @@ scout_compute_api_ProductSeries.__qualname__ = "ProductSeries"
|
|
|
50218
49756
|
scout_compute_api_ProductSeries.__module__ = "nominal_api.scout_compute_api"
|
|
50219
49757
|
|
|
50220
49758
|
|
|
50221
|
-
class scout_compute_api_Property(ConjureBeanType):
|
|
50222
|
-
|
|
50223
|
-
@builtins.classmethod
|
|
50224
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
50225
|
-
return {
|
|
50226
|
-
'name': ConjureFieldDefinition('name', scout_compute_api_StringConstant),
|
|
50227
|
-
'value': ConjureFieldDefinition('value', scout_compute_api_StringConstant)
|
|
50228
|
-
}
|
|
50229
|
-
|
|
50230
|
-
__slots__: List[str] = ['_name', '_value']
|
|
50231
|
-
|
|
50232
|
-
def __init__(self, name: "scout_compute_api_StringConstant", value: "scout_compute_api_StringConstant") -> None:
|
|
50233
|
-
self._name = name
|
|
50234
|
-
self._value = value
|
|
50235
|
-
|
|
50236
|
-
@builtins.property
|
|
50237
|
-
def name(self) -> "scout_compute_api_StringConstant":
|
|
50238
|
-
return self._name
|
|
50239
|
-
|
|
50240
|
-
@builtins.property
|
|
50241
|
-
def value(self) -> "scout_compute_api_StringConstant":
|
|
50242
|
-
return self._value
|
|
50243
|
-
|
|
50244
|
-
|
|
50245
|
-
scout_compute_api_Property.__name__ = "Property"
|
|
50246
|
-
scout_compute_api_Property.__qualname__ = "Property"
|
|
50247
|
-
scout_compute_api_Property.__module__ = "nominal_api.scout_compute_api"
|
|
50248
|
-
|
|
50249
|
-
|
|
50250
49759
|
class scout_compute_api_Range(ConjureBeanType):
|
|
50251
49760
|
"""The end represents the first timestamp that does not belong to the range. If absent, there is no known
|
|
50252
49761
|
end to the range.
|
|
@@ -51821,30 +51330,6 @@ scout_compute_api_ScatterSummarizationStrategyVisitor.__qualname__ = "ScatterSum
|
|
|
51821
51330
|
scout_compute_api_ScatterSummarizationStrategyVisitor.__module__ = "nominal_api.scout_compute_api"
|
|
51822
51331
|
|
|
51823
51332
|
|
|
51824
|
-
class scout_compute_api_SearchEventOriginType(ConjureEnumType):
|
|
51825
|
-
|
|
51826
|
-
WORKBOOK = 'WORKBOOK'
|
|
51827
|
-
'''WORKBOOK'''
|
|
51828
|
-
TEMPLATE = 'TEMPLATE'
|
|
51829
|
-
'''TEMPLATE'''
|
|
51830
|
-
API = 'API'
|
|
51831
|
-
'''API'''
|
|
51832
|
-
DATA_REVIEW = 'DATA_REVIEW'
|
|
51833
|
-
'''DATA_REVIEW'''
|
|
51834
|
-
PROCEDURE = 'PROCEDURE'
|
|
51835
|
-
'''PROCEDURE'''
|
|
51836
|
-
UNKNOWN = 'UNKNOWN'
|
|
51837
|
-
'''UNKNOWN'''
|
|
51838
|
-
|
|
51839
|
-
def __reduce_ex__(self, proto):
|
|
51840
|
-
return self.__class__, (self.name,)
|
|
51841
|
-
|
|
51842
|
-
|
|
51843
|
-
scout_compute_api_SearchEventOriginType.__name__ = "SearchEventOriginType"
|
|
51844
|
-
scout_compute_api_SearchEventOriginType.__qualname__ = "SearchEventOriginType"
|
|
51845
|
-
scout_compute_api_SearchEventOriginType.__module__ = "nominal_api.scout_compute_api"
|
|
51846
|
-
|
|
51847
|
-
|
|
51848
51333
|
class scout_compute_api_SelectIndexFrom1dEnumArraySeries(ConjureBeanType):
|
|
51849
51334
|
"""For each timestamp, selects a single enum value from the 1D enum array at the specified index. If the index
|
|
51850
51335
|
is out of bounds for an array at a given timestamp, it is omitted.
|
|
@@ -58040,29 +57525,6 @@ scout_compute_resolved_api_EnumUnionSeriesNode.__qualname__ = "EnumUnionSeriesNo
|
|
|
58040
57525
|
scout_compute_resolved_api_EnumUnionSeriesNode.__module__ = "nominal_api.scout_compute_resolved_api"
|
|
58041
57526
|
|
|
58042
57527
|
|
|
58043
|
-
class scout_compute_resolved_api_EventSearchNode(ConjureBeanType):
|
|
58044
|
-
|
|
58045
|
-
@builtins.classmethod
|
|
58046
|
-
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
58047
|
-
return {
|
|
58048
|
-
'query': ConjureFieldDefinition('query', event_SearchQuery)
|
|
58049
|
-
}
|
|
58050
|
-
|
|
58051
|
-
__slots__: List[str] = ['_query']
|
|
58052
|
-
|
|
58053
|
-
def __init__(self, query: "event_SearchQuery") -> None:
|
|
58054
|
-
self._query = query
|
|
58055
|
-
|
|
58056
|
-
@builtins.property
|
|
58057
|
-
def query(self) -> "event_SearchQuery":
|
|
58058
|
-
return self._query
|
|
58059
|
-
|
|
58060
|
-
|
|
58061
|
-
scout_compute_resolved_api_EventSearchNode.__name__ = "EventSearchNode"
|
|
58062
|
-
scout_compute_resolved_api_EventSearchNode.__qualname__ = "EventSearchNode"
|
|
58063
|
-
scout_compute_resolved_api_EventSearchNode.__module__ = "nominal_api.scout_compute_resolved_api"
|
|
58064
|
-
|
|
58065
|
-
|
|
58066
57528
|
class scout_compute_resolved_api_ExponentialCurve(ConjureBeanType):
|
|
58067
57529
|
|
|
58068
57530
|
@builtins.classmethod
|
|
@@ -60451,7 +59913,6 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
|
|
|
60451
59913
|
_stability_detection: Optional["scout_compute_resolved_api_StabilityDetectionRangesNode"] = None
|
|
60452
59914
|
_threshold: Optional["scout_compute_resolved_api_ThresholdingRangesNode"] = None
|
|
60453
59915
|
_union_range: Optional["scout_compute_resolved_api_UnionRangesNode"] = None
|
|
60454
|
-
_event_search: Optional["scout_compute_resolved_api_EventSearchNode"] = None
|
|
60455
59916
|
|
|
60456
59917
|
@builtins.classmethod
|
|
60457
59918
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -60470,8 +59931,7 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
|
|
|
60470
59931
|
'stale_range': ConjureFieldDefinition('staleRange', scout_compute_resolved_api_StaleRangesNode),
|
|
60471
59932
|
'stability_detection': ConjureFieldDefinition('stabilityDetection', scout_compute_resolved_api_StabilityDetectionRangesNode),
|
|
60472
59933
|
'threshold': ConjureFieldDefinition('threshold', scout_compute_resolved_api_ThresholdingRangesNode),
|
|
60473
|
-
'union_range': ConjureFieldDefinition('unionRange', scout_compute_resolved_api_UnionRangesNode)
|
|
60474
|
-
'event_search': ConjureFieldDefinition('eventSearch', scout_compute_resolved_api_EventSearchNode)
|
|
59934
|
+
'union_range': ConjureFieldDefinition('unionRange', scout_compute_resolved_api_UnionRangesNode)
|
|
60475
59935
|
}
|
|
60476
59936
|
|
|
60477
59937
|
def __init__(
|
|
@@ -60491,11 +59951,10 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
|
|
|
60491
59951
|
stability_detection: Optional["scout_compute_resolved_api_StabilityDetectionRangesNode"] = None,
|
|
60492
59952
|
threshold: Optional["scout_compute_resolved_api_ThresholdingRangesNode"] = None,
|
|
60493
59953
|
union_range: Optional["scout_compute_resolved_api_UnionRangesNode"] = None,
|
|
60494
|
-
event_search: Optional["scout_compute_resolved_api_EventSearchNode"] = None,
|
|
60495
59954
|
type_of_union: Optional[str] = None
|
|
60496
59955
|
) -> None:
|
|
60497
59956
|
if type_of_union is None:
|
|
60498
|
-
if (duration_filter is not None) + (enum_equality is not None) + (enum_filter is not None) + (extrema is not None) + (intersect_range is not None) + (literal_ranges is not None) + (min_max_threshold is not None) + (not_ is not None) + (on_change is not None) + (range_numeric_aggregation is not None) + (series_crossover_ranges_node is not None) + (stale_range is not None) + (stability_detection is not None) + (threshold is not None) + (union_range is not None)
|
|
59957
|
+
if (duration_filter is not None) + (enum_equality is not None) + (enum_filter is not None) + (extrema is not None) + (intersect_range is not None) + (literal_ranges is not None) + (min_max_threshold is not None) + (not_ is not None) + (on_change is not None) + (range_numeric_aggregation is not None) + (series_crossover_ranges_node is not None) + (stale_range is not None) + (stability_detection is not None) + (threshold is not None) + (union_range is not None) != 1:
|
|
60499
59958
|
raise ValueError('a union must contain a single member')
|
|
60500
59959
|
|
|
60501
59960
|
if duration_filter is not None:
|
|
@@ -60543,9 +60002,6 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
|
|
|
60543
60002
|
if union_range is not None:
|
|
60544
60003
|
self._union_range = union_range
|
|
60545
60004
|
self._type = 'unionRange'
|
|
60546
|
-
if event_search is not None:
|
|
60547
|
-
self._event_search = event_search
|
|
60548
|
-
self._type = 'eventSearch'
|
|
60549
60005
|
|
|
60550
60006
|
elif type_of_union == 'durationFilter':
|
|
60551
60007
|
if duration_filter is None:
|
|
@@ -60622,11 +60078,6 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
|
|
|
60622
60078
|
raise ValueError('a union value must not be None')
|
|
60623
60079
|
self._union_range = union_range
|
|
60624
60080
|
self._type = 'unionRange'
|
|
60625
|
-
elif type_of_union == 'eventSearch':
|
|
60626
|
-
if event_search is None:
|
|
60627
|
-
raise ValueError('a union value must not be None')
|
|
60628
|
-
self._event_search = event_search
|
|
60629
|
-
self._type = 'eventSearch'
|
|
60630
60081
|
|
|
60631
60082
|
@builtins.property
|
|
60632
60083
|
def duration_filter(self) -> Optional["scout_compute_resolved_api_DurationFilterRangesNode"]:
|
|
@@ -60688,10 +60139,6 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
|
|
|
60688
60139
|
def union_range(self) -> Optional["scout_compute_resolved_api_UnionRangesNode"]:
|
|
60689
60140
|
return self._union_range
|
|
60690
60141
|
|
|
60691
|
-
@builtins.property
|
|
60692
|
-
def event_search(self) -> Optional["scout_compute_resolved_api_EventSearchNode"]:
|
|
60693
|
-
return self._event_search
|
|
60694
|
-
|
|
60695
60142
|
def accept(self, visitor) -> Any:
|
|
60696
60143
|
if not isinstance(visitor, scout_compute_resolved_api_RangesNodeVisitor):
|
|
60697
60144
|
raise ValueError('{} is not an instance of scout_compute_resolved_api_RangesNodeVisitor'.format(visitor.__class__.__name__))
|
|
@@ -60725,8 +60172,6 @@ class scout_compute_resolved_api_RangesNode(ConjureUnionType):
|
|
|
60725
60172
|
return visitor._threshold(self.threshold)
|
|
60726
60173
|
if self._type == 'unionRange' and self.union_range is not None:
|
|
60727
60174
|
return visitor._union_range(self.union_range)
|
|
60728
|
-
if self._type == 'eventSearch' and self.event_search is not None:
|
|
60729
|
-
return visitor._event_search(self.event_search)
|
|
60730
60175
|
|
|
60731
60176
|
|
|
60732
60177
|
scout_compute_resolved_api_RangesNode.__name__ = "RangesNode"
|
|
@@ -60796,10 +60241,6 @@ class scout_compute_resolved_api_RangesNodeVisitor:
|
|
|
60796
60241
|
def _union_range(self, union_range: "scout_compute_resolved_api_UnionRangesNode") -> Any:
|
|
60797
60242
|
pass
|
|
60798
60243
|
|
|
60799
|
-
@abstractmethod
|
|
60800
|
-
def _event_search(self, event_search: "scout_compute_resolved_api_EventSearchNode") -> Any:
|
|
60801
|
-
pass
|
|
60802
|
-
|
|
60803
60244
|
|
|
60804
60245
|
scout_compute_resolved_api_RangesNodeVisitor.__name__ = "RangesNodeVisitor"
|
|
60805
60246
|
scout_compute_resolved_api_RangesNodeVisitor.__qualname__ = "RangesNodeVisitor"
|
|
@@ -69897,15 +69338,13 @@ class scout_datasource_connection_api_InfluxChannelNameComponent(ConjureUnionTyp
|
|
|
69897
69338
|
_bucket: Optional["api_Empty"] = None
|
|
69898
69339
|
_measurement: Optional["api_Empty"] = None
|
|
69899
69340
|
_field: Optional["api_Empty"] = None
|
|
69900
|
-
_tag_value: Optional[str] = None
|
|
69901
69341
|
|
|
69902
69342
|
@builtins.classmethod
|
|
69903
69343
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
69904
69344
|
return {
|
|
69905
69345
|
'bucket': ConjureFieldDefinition('bucket', api_Empty),
|
|
69906
69346
|
'measurement': ConjureFieldDefinition('measurement', api_Empty),
|
|
69907
|
-
'field': ConjureFieldDefinition('field', api_Empty)
|
|
69908
|
-
'tag_value': ConjureFieldDefinition('tagValue', api_TagName)
|
|
69347
|
+
'field': ConjureFieldDefinition('field', api_Empty)
|
|
69909
69348
|
}
|
|
69910
69349
|
|
|
69911
69350
|
def __init__(
|
|
@@ -69913,11 +69352,10 @@ class scout_datasource_connection_api_InfluxChannelNameComponent(ConjureUnionTyp
|
|
|
69913
69352
|
bucket: Optional["api_Empty"] = None,
|
|
69914
69353
|
measurement: Optional["api_Empty"] = None,
|
|
69915
69354
|
field: Optional["api_Empty"] = None,
|
|
69916
|
-
tag_value: Optional[str] = None,
|
|
69917
69355
|
type_of_union: Optional[str] = None
|
|
69918
69356
|
) -> None:
|
|
69919
69357
|
if type_of_union is None:
|
|
69920
|
-
if (bucket is not None) + (measurement is not None) + (field is not None)
|
|
69358
|
+
if (bucket is not None) + (measurement is not None) + (field is not None) != 1:
|
|
69921
69359
|
raise ValueError('a union must contain a single member')
|
|
69922
69360
|
|
|
69923
69361
|
if bucket is not None:
|
|
@@ -69929,9 +69367,6 @@ class scout_datasource_connection_api_InfluxChannelNameComponent(ConjureUnionTyp
|
|
|
69929
69367
|
if field is not None:
|
|
69930
69368
|
self._field = field
|
|
69931
69369
|
self._type = 'field'
|
|
69932
|
-
if tag_value is not None:
|
|
69933
|
-
self._tag_value = tag_value
|
|
69934
|
-
self._type = 'tagValue'
|
|
69935
69370
|
|
|
69936
69371
|
elif type_of_union == 'bucket':
|
|
69937
69372
|
if bucket is None:
|
|
@@ -69948,11 +69383,6 @@ class scout_datasource_connection_api_InfluxChannelNameComponent(ConjureUnionTyp
|
|
|
69948
69383
|
raise ValueError('a union value must not be None')
|
|
69949
69384
|
self._field = field
|
|
69950
69385
|
self._type = 'field'
|
|
69951
|
-
elif type_of_union == 'tagValue':
|
|
69952
|
-
if tag_value is None:
|
|
69953
|
-
raise ValueError('a union value must not be None')
|
|
69954
|
-
self._tag_value = tag_value
|
|
69955
|
-
self._type = 'tagValue'
|
|
69956
69386
|
|
|
69957
69387
|
@builtins.property
|
|
69958
69388
|
def bucket(self) -> Optional["api_Empty"]:
|
|
@@ -69966,12 +69396,6 @@ class scout_datasource_connection_api_InfluxChannelNameComponent(ConjureUnionTyp
|
|
|
69966
69396
|
def field(self) -> Optional["api_Empty"]:
|
|
69967
69397
|
return self._field
|
|
69968
69398
|
|
|
69969
|
-
@builtins.property
|
|
69970
|
-
def tag_value(self) -> Optional[str]:
|
|
69971
|
-
"""The value for the specified TagName will be used. If the tag is not present, it will be omitted.
|
|
69972
|
-
"""
|
|
69973
|
-
return self._tag_value
|
|
69974
|
-
|
|
69975
69399
|
def accept(self, visitor) -> Any:
|
|
69976
69400
|
if not isinstance(visitor, scout_datasource_connection_api_InfluxChannelNameComponentVisitor):
|
|
69977
69401
|
raise ValueError('{} is not an instance of scout_datasource_connection_api_InfluxChannelNameComponentVisitor'.format(visitor.__class__.__name__))
|
|
@@ -69981,8 +69405,6 @@ class scout_datasource_connection_api_InfluxChannelNameComponent(ConjureUnionTyp
|
|
|
69981
69405
|
return visitor._measurement(self.measurement)
|
|
69982
69406
|
if self._type == 'field' and self.field is not None:
|
|
69983
69407
|
return visitor._field(self.field)
|
|
69984
|
-
if self._type == 'tagValue' and self.tag_value is not None:
|
|
69985
|
-
return visitor._tag_value(self.tag_value)
|
|
69986
69408
|
|
|
69987
69409
|
|
|
69988
69410
|
scout_datasource_connection_api_InfluxChannelNameComponent.__name__ = "InfluxChannelNameComponent"
|
|
@@ -70004,10 +69426,6 @@ class scout_datasource_connection_api_InfluxChannelNameComponentVisitor:
|
|
|
70004
69426
|
def _field(self, field: "api_Empty") -> Any:
|
|
70005
69427
|
pass
|
|
70006
69428
|
|
|
70007
|
-
@abstractmethod
|
|
70008
|
-
def _tag_value(self, tag_value: str) -> Any:
|
|
70009
|
-
pass
|
|
70010
|
-
|
|
70011
69429
|
|
|
70012
69430
|
scout_datasource_connection_api_InfluxChannelNameComponentVisitor.__name__ = "InfluxChannelNameComponentVisitor"
|
|
70013
69431
|
scout_datasource_connection_api_InfluxChannelNameComponentVisitor.__qualname__ = "InfluxChannelNameComponentVisitor"
|