nominal-api 0.589.1__py3-none-any.whl → 0.591.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 +2 -1
- nominal_api/_impl.py +808 -78
- nominal_api/persistent_compute_api/__init__.py +17 -0
- {nominal_api-0.589.1.dist-info → nominal_api-0.591.0.dist-info}/METADATA +1 -1
- {nominal_api-0.589.1.dist-info → nominal_api-0.591.0.dist-info}/RECORD +7 -6
- {nominal_api-0.589.1.dist-info → nominal_api-0.591.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.589.1.dist-info → nominal_api-0.591.0.dist-info}/top_level.txt +0 -0
nominal_api/_impl.py
CHANGED
|
@@ -943,17 +943,19 @@ class attachments_api_CreateAttachmentRequest(ConjureBeanType):
|
|
|
943
943
|
'title': ConjureFieldDefinition('title', str),
|
|
944
944
|
'description': ConjureFieldDefinition('description', str),
|
|
945
945
|
'properties': ConjureFieldDefinition('properties', Dict[api_PropertyName, api_PropertyValue]),
|
|
946
|
-
'labels': ConjureFieldDefinition('labels', List[api_Label])
|
|
946
|
+
'labels': ConjureFieldDefinition('labels', List[api_Label]),
|
|
947
|
+
'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
|
|
947
948
|
}
|
|
948
949
|
|
|
949
|
-
__slots__: List[str] = ['_s3_path', '_title', '_description', '_properties', '_labels']
|
|
950
|
+
__slots__: List[str] = ['_s3_path', '_title', '_description', '_properties', '_labels', '_workspace']
|
|
950
951
|
|
|
951
|
-
def __init__(self, description: str, labels: List[str], properties: Dict[str, str], s3_path: str, title: str) -> None:
|
|
952
|
+
def __init__(self, description: str, labels: List[str], properties: Dict[str, str], s3_path: str, title: str, workspace: Optional[str] = None) -> None:
|
|
952
953
|
self._s3_path = s3_path
|
|
953
954
|
self._title = title
|
|
954
955
|
self._description = description
|
|
955
956
|
self._properties = properties
|
|
956
957
|
self._labels = labels
|
|
958
|
+
self._workspace = workspace
|
|
957
959
|
|
|
958
960
|
@builtins.property
|
|
959
961
|
def s3_path(self) -> str:
|
|
@@ -975,6 +977,15 @@ class attachments_api_CreateAttachmentRequest(ConjureBeanType):
|
|
|
975
977
|
def labels(self) -> List[str]:
|
|
976
978
|
return self._labels
|
|
977
979
|
|
|
980
|
+
@builtins.property
|
|
981
|
+
def workspace(self) -> Optional[str]:
|
|
982
|
+
"""
|
|
983
|
+
The workspace in which to create the attachment. If not provided, the attachment will be created in
|
|
984
|
+
the default workspace for the user's organization, if the default workspace for the
|
|
985
|
+
organization is configured.
|
|
986
|
+
"""
|
|
987
|
+
return self._workspace
|
|
988
|
+
|
|
978
989
|
|
|
979
990
|
attachments_api_CreateAttachmentRequest.__name__ = "CreateAttachmentRequest"
|
|
980
991
|
attachments_api_CreateAttachmentRequest.__qualname__ = "CreateAttachmentRequest"
|
|
@@ -1033,6 +1044,7 @@ class attachments_api_SearchAttachmentsQuery(ConjureUnionType):
|
|
|
1033
1044
|
_property: Optional["api_Property"] = None
|
|
1034
1045
|
_and_: Optional[List["attachments_api_SearchAttachmentsQuery"]] = None
|
|
1035
1046
|
_or_: Optional[List["attachments_api_SearchAttachmentsQuery"]] = None
|
|
1047
|
+
_workspace: Optional[str] = None
|
|
1036
1048
|
|
|
1037
1049
|
@builtins.classmethod
|
|
1038
1050
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -1041,7 +1053,8 @@ class attachments_api_SearchAttachmentsQuery(ConjureUnionType):
|
|
|
1041
1053
|
'label': ConjureFieldDefinition('label', api_Label),
|
|
1042
1054
|
'property': ConjureFieldDefinition('property', api_Property),
|
|
1043
1055
|
'and_': ConjureFieldDefinition('and', List[attachments_api_SearchAttachmentsQuery]),
|
|
1044
|
-
'or_': ConjureFieldDefinition('or', List[attachments_api_SearchAttachmentsQuery])
|
|
1056
|
+
'or_': ConjureFieldDefinition('or', List[attachments_api_SearchAttachmentsQuery]),
|
|
1057
|
+
'workspace': ConjureFieldDefinition('workspace', api_ids_WorkspaceId)
|
|
1045
1058
|
}
|
|
1046
1059
|
|
|
1047
1060
|
def __init__(
|
|
@@ -1051,10 +1064,11 @@ class attachments_api_SearchAttachmentsQuery(ConjureUnionType):
|
|
|
1051
1064
|
property: Optional["api_Property"] = None,
|
|
1052
1065
|
and_: Optional[List["attachments_api_SearchAttachmentsQuery"]] = None,
|
|
1053
1066
|
or_: Optional[List["attachments_api_SearchAttachmentsQuery"]] = None,
|
|
1067
|
+
workspace: Optional[str] = None,
|
|
1054
1068
|
type_of_union: Optional[str] = None
|
|
1055
1069
|
) -> None:
|
|
1056
1070
|
if type_of_union is None:
|
|
1057
|
-
if (search_text is not None) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) != 1:
|
|
1071
|
+
if (search_text is not None) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (workspace is not None) != 1:
|
|
1058
1072
|
raise ValueError('a union must contain a single member')
|
|
1059
1073
|
|
|
1060
1074
|
if search_text is not None:
|
|
@@ -1072,6 +1086,9 @@ class attachments_api_SearchAttachmentsQuery(ConjureUnionType):
|
|
|
1072
1086
|
if or_ is not None:
|
|
1073
1087
|
self._or_ = or_
|
|
1074
1088
|
self._type = 'or'
|
|
1089
|
+
if workspace is not None:
|
|
1090
|
+
self._workspace = workspace
|
|
1091
|
+
self._type = 'workspace'
|
|
1075
1092
|
|
|
1076
1093
|
elif type_of_union == 'searchText':
|
|
1077
1094
|
if search_text is None:
|
|
@@ -1098,6 +1115,11 @@ class attachments_api_SearchAttachmentsQuery(ConjureUnionType):
|
|
|
1098
1115
|
raise ValueError('a union value must not be None')
|
|
1099
1116
|
self._or_ = or_
|
|
1100
1117
|
self._type = 'or'
|
|
1118
|
+
elif type_of_union == 'workspace':
|
|
1119
|
+
if workspace is None:
|
|
1120
|
+
raise ValueError('a union value must not be None')
|
|
1121
|
+
self._workspace = workspace
|
|
1122
|
+
self._type = 'workspace'
|
|
1101
1123
|
|
|
1102
1124
|
@builtins.property
|
|
1103
1125
|
def search_text(self) -> Optional[str]:
|
|
@@ -1119,6 +1141,10 @@ class attachments_api_SearchAttachmentsQuery(ConjureUnionType):
|
|
|
1119
1141
|
def or_(self) -> Optional[List["attachments_api_SearchAttachmentsQuery"]]:
|
|
1120
1142
|
return self._or_
|
|
1121
1143
|
|
|
1144
|
+
@builtins.property
|
|
1145
|
+
def workspace(self) -> Optional[str]:
|
|
1146
|
+
return self._workspace
|
|
1147
|
+
|
|
1122
1148
|
def accept(self, visitor) -> Any:
|
|
1123
1149
|
if not isinstance(visitor, attachments_api_SearchAttachmentsQueryVisitor):
|
|
1124
1150
|
raise ValueError('{} is not an instance of attachments_api_SearchAttachmentsQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -1132,6 +1158,8 @@ class attachments_api_SearchAttachmentsQuery(ConjureUnionType):
|
|
|
1132
1158
|
return visitor._and(self.and_)
|
|
1133
1159
|
if self._type == 'or' and self.or_ is not None:
|
|
1134
1160
|
return visitor._or(self.or_)
|
|
1161
|
+
if self._type == 'workspace' and self.workspace is not None:
|
|
1162
|
+
return visitor._workspace(self.workspace)
|
|
1135
1163
|
|
|
1136
1164
|
|
|
1137
1165
|
attachments_api_SearchAttachmentsQuery.__name__ = "SearchAttachmentsQuery"
|
|
@@ -1161,6 +1189,10 @@ class attachments_api_SearchAttachmentsQueryVisitor:
|
|
|
1161
1189
|
def _or(self, or_: List["attachments_api_SearchAttachmentsQuery"]) -> Any:
|
|
1162
1190
|
pass
|
|
1163
1191
|
|
|
1192
|
+
@abstractmethod
|
|
1193
|
+
def _workspace(self, workspace: str) -> Any:
|
|
1194
|
+
pass
|
|
1195
|
+
|
|
1164
1196
|
|
|
1165
1197
|
attachments_api_SearchAttachmentsQueryVisitor.__name__ = "SearchAttachmentsQueryVisitor"
|
|
1166
1198
|
attachments_api_SearchAttachmentsQueryVisitor.__qualname__ = "SearchAttachmentsQueryVisitor"
|
|
@@ -5983,6 +6015,7 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
5983
6015
|
_property: Optional["api_Property"] = None
|
|
5984
6016
|
_and_: Optional[List["event_SearchQuery"]] = None
|
|
5985
6017
|
_or_: Optional[List["event_SearchQuery"]] = None
|
|
6018
|
+
_workspace: Optional[str] = None
|
|
5986
6019
|
|
|
5987
6020
|
@builtins.classmethod
|
|
5988
6021
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -5994,7 +6027,8 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
5994
6027
|
'label': ConjureFieldDefinition('label', api_Label),
|
|
5995
6028
|
'property': ConjureFieldDefinition('property', api_Property),
|
|
5996
6029
|
'and_': ConjureFieldDefinition('and', List[event_SearchQuery]),
|
|
5997
|
-
'or_': ConjureFieldDefinition('or', List[event_SearchQuery])
|
|
6030
|
+
'or_': ConjureFieldDefinition('or', List[event_SearchQuery]),
|
|
6031
|
+
'workspace': ConjureFieldDefinition('workspace', api_ids_WorkspaceId)
|
|
5998
6032
|
}
|
|
5999
6033
|
|
|
6000
6034
|
def __init__(
|
|
@@ -6007,10 +6041,11 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
6007
6041
|
property: Optional["api_Property"] = None,
|
|
6008
6042
|
and_: Optional[List["event_SearchQuery"]] = None,
|
|
6009
6043
|
or_: Optional[List["event_SearchQuery"]] = None,
|
|
6044
|
+
workspace: Optional[str] = None,
|
|
6010
6045
|
type_of_union: Optional[str] = None
|
|
6011
6046
|
) -> None:
|
|
6012
6047
|
if type_of_union is None:
|
|
6013
|
-
if (search_text is not None) + (after is not None) + (before is not None) + (asset is not None) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) != 1:
|
|
6048
|
+
if (search_text is not None) + (after is not None) + (before is not None) + (asset is not None) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (workspace is not None) != 1:
|
|
6014
6049
|
raise ValueError('a union must contain a single member')
|
|
6015
6050
|
|
|
6016
6051
|
if search_text is not None:
|
|
@@ -6037,6 +6072,9 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
6037
6072
|
if or_ is not None:
|
|
6038
6073
|
self._or_ = or_
|
|
6039
6074
|
self._type = 'or'
|
|
6075
|
+
if workspace is not None:
|
|
6076
|
+
self._workspace = workspace
|
|
6077
|
+
self._type = 'workspace'
|
|
6040
6078
|
|
|
6041
6079
|
elif type_of_union == 'searchText':
|
|
6042
6080
|
if search_text is None:
|
|
@@ -6078,6 +6116,11 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
6078
6116
|
raise ValueError('a union value must not be None')
|
|
6079
6117
|
self._or_ = or_
|
|
6080
6118
|
self._type = 'or'
|
|
6119
|
+
elif type_of_union == 'workspace':
|
|
6120
|
+
if workspace is None:
|
|
6121
|
+
raise ValueError('a union value must not be None')
|
|
6122
|
+
self._workspace = workspace
|
|
6123
|
+
self._type = 'workspace'
|
|
6081
6124
|
|
|
6082
6125
|
@builtins.property
|
|
6083
6126
|
def search_text(self) -> Optional[str]:
|
|
@@ -6117,6 +6160,10 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
6117
6160
|
def or_(self) -> Optional[List["event_SearchQuery"]]:
|
|
6118
6161
|
return self._or_
|
|
6119
6162
|
|
|
6163
|
+
@builtins.property
|
|
6164
|
+
def workspace(self) -> Optional[str]:
|
|
6165
|
+
return self._workspace
|
|
6166
|
+
|
|
6120
6167
|
def accept(self, visitor) -> Any:
|
|
6121
6168
|
if not isinstance(visitor, event_SearchQueryVisitor):
|
|
6122
6169
|
raise ValueError('{} is not an instance of event_SearchQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -6136,6 +6183,8 @@ class event_SearchQuery(ConjureUnionType):
|
|
|
6136
6183
|
return visitor._and(self.and_)
|
|
6137
6184
|
if self._type == 'or' and self.or_ is not None:
|
|
6138
6185
|
return visitor._or(self.or_)
|
|
6186
|
+
if self._type == 'workspace' and self.workspace is not None:
|
|
6187
|
+
return visitor._workspace(self.workspace)
|
|
6139
6188
|
|
|
6140
6189
|
|
|
6141
6190
|
event_SearchQuery.__name__ = "SearchQuery"
|
|
@@ -6177,6 +6226,10 @@ class event_SearchQueryVisitor:
|
|
|
6177
6226
|
def _or(self, or_: List["event_SearchQuery"]) -> Any:
|
|
6178
6227
|
pass
|
|
6179
6228
|
|
|
6229
|
+
@abstractmethod
|
|
6230
|
+
def _workspace(self, workspace: str) -> Any:
|
|
6231
|
+
pass
|
|
6232
|
+
|
|
6180
6233
|
|
|
6181
6234
|
event_SearchQueryVisitor.__name__ = "SearchQueryVisitor"
|
|
6182
6235
|
event_SearchQueryVisitor.__qualname__ = "SearchQueryVisitor"
|
|
@@ -10010,6 +10063,382 @@ ingest_api_VideoTimestampManifestVisitor.__qualname__ = "VideoTimestampManifestV
|
|
|
10010
10063
|
ingest_api_VideoTimestampManifestVisitor.__module__ = "nominal_api.ingest_api"
|
|
10011
10064
|
|
|
10012
10065
|
|
|
10066
|
+
class persistent_compute_api_ClientMessage(ConjureUnionType):
|
|
10067
|
+
_subscribe: Optional[Dict[str, "persistent_compute_api_StreamingComputeNodeSubscription"]] = None
|
|
10068
|
+
_unsubscribe: Optional[List[str]] = None
|
|
10069
|
+
|
|
10070
|
+
@builtins.classmethod
|
|
10071
|
+
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
10072
|
+
return {
|
|
10073
|
+
'subscribe': ConjureFieldDefinition('subscribe', Dict[persistent_compute_api_SubscriptionId, persistent_compute_api_StreamingComputeNodeSubscription]),
|
|
10074
|
+
'unsubscribe': ConjureFieldDefinition('unsubscribe', List[persistent_compute_api_SubscriptionId])
|
|
10075
|
+
}
|
|
10076
|
+
|
|
10077
|
+
def __init__(
|
|
10078
|
+
self,
|
|
10079
|
+
subscribe: Optional[Dict[str, "persistent_compute_api_StreamingComputeNodeSubscription"]] = None,
|
|
10080
|
+
unsubscribe: Optional[List[str]] = None,
|
|
10081
|
+
type_of_union: Optional[str] = None
|
|
10082
|
+
) -> None:
|
|
10083
|
+
if type_of_union is None:
|
|
10084
|
+
if (subscribe is not None) + (unsubscribe is not None) != 1:
|
|
10085
|
+
raise ValueError('a union must contain a single member')
|
|
10086
|
+
|
|
10087
|
+
if subscribe is not None:
|
|
10088
|
+
self._subscribe = subscribe
|
|
10089
|
+
self._type = 'subscribe'
|
|
10090
|
+
if unsubscribe is not None:
|
|
10091
|
+
self._unsubscribe = unsubscribe
|
|
10092
|
+
self._type = 'unsubscribe'
|
|
10093
|
+
|
|
10094
|
+
elif type_of_union == 'subscribe':
|
|
10095
|
+
if subscribe is None:
|
|
10096
|
+
raise ValueError('a union value must not be None')
|
|
10097
|
+
self._subscribe = subscribe
|
|
10098
|
+
self._type = 'subscribe'
|
|
10099
|
+
elif type_of_union == 'unsubscribe':
|
|
10100
|
+
if unsubscribe is None:
|
|
10101
|
+
raise ValueError('a union value must not be None')
|
|
10102
|
+
self._unsubscribe = unsubscribe
|
|
10103
|
+
self._type = 'unsubscribe'
|
|
10104
|
+
|
|
10105
|
+
@builtins.property
|
|
10106
|
+
def subscribe(self) -> Optional[Dict[str, "persistent_compute_api_StreamingComputeNodeSubscription"]]:
|
|
10107
|
+
"""
|
|
10108
|
+
Subscribes to all of the given `StreamingComputeNodeSubscription`s. For identifying the subscriptions and
|
|
10109
|
+
their results a `SubscriptionId` has to be passed, which should be a unique identifier.
|
|
10110
|
+
If the subscription is invalid (e.g., window too big for in-memory compute or in-memory compute not
|
|
10111
|
+
enabled for datasource) a `ServerMessage::subscriptionError` will be sent back. Otherwise, updated results
|
|
10112
|
+
for the subscription will be sent periodically via `ServerMessage::subscriptionUpdate`.
|
|
10113
|
+
"""
|
|
10114
|
+
return self._subscribe
|
|
10115
|
+
|
|
10116
|
+
@builtins.property
|
|
10117
|
+
def unsubscribe(self) -> Optional[List[str]]:
|
|
10118
|
+
return self._unsubscribe
|
|
10119
|
+
|
|
10120
|
+
def accept(self, visitor) -> Any:
|
|
10121
|
+
if not isinstance(visitor, persistent_compute_api_ClientMessageVisitor):
|
|
10122
|
+
raise ValueError('{} is not an instance of persistent_compute_api_ClientMessageVisitor'.format(visitor.__class__.__name__))
|
|
10123
|
+
if self._type == 'subscribe' and self.subscribe is not None:
|
|
10124
|
+
return visitor._subscribe(self.subscribe)
|
|
10125
|
+
if self._type == 'unsubscribe' and self.unsubscribe is not None:
|
|
10126
|
+
return visitor._unsubscribe(self.unsubscribe)
|
|
10127
|
+
|
|
10128
|
+
|
|
10129
|
+
persistent_compute_api_ClientMessage.__name__ = "ClientMessage"
|
|
10130
|
+
persistent_compute_api_ClientMessage.__qualname__ = "ClientMessage"
|
|
10131
|
+
persistent_compute_api_ClientMessage.__module__ = "nominal_api.persistent_compute_api"
|
|
10132
|
+
|
|
10133
|
+
|
|
10134
|
+
class persistent_compute_api_ClientMessageVisitor:
|
|
10135
|
+
|
|
10136
|
+
@abstractmethod
|
|
10137
|
+
def _subscribe(self, subscribe: Dict[str, "persistent_compute_api_StreamingComputeNodeSubscription"]) -> Any:
|
|
10138
|
+
pass
|
|
10139
|
+
|
|
10140
|
+
@abstractmethod
|
|
10141
|
+
def _unsubscribe(self, unsubscribe: List[str]) -> Any:
|
|
10142
|
+
pass
|
|
10143
|
+
|
|
10144
|
+
|
|
10145
|
+
persistent_compute_api_ClientMessageVisitor.__name__ = "ClientMessageVisitor"
|
|
10146
|
+
persistent_compute_api_ClientMessageVisitor.__qualname__ = "ClientMessageVisitor"
|
|
10147
|
+
persistent_compute_api_ClientMessageVisitor.__module__ = "nominal_api.persistent_compute_api"
|
|
10148
|
+
|
|
10149
|
+
|
|
10150
|
+
class persistent_compute_api_FullResult(ConjureBeanType):
|
|
10151
|
+
|
|
10152
|
+
@builtins.classmethod
|
|
10153
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
10154
|
+
return {
|
|
10155
|
+
'subscription_id': ConjureFieldDefinition('subscriptionId', persistent_compute_api_SubscriptionId),
|
|
10156
|
+
'result': ConjureFieldDefinition('result', scout_compute_api_ComputeWithUnitsResult)
|
|
10157
|
+
}
|
|
10158
|
+
|
|
10159
|
+
__slots__: List[str] = ['_subscription_id', '_result']
|
|
10160
|
+
|
|
10161
|
+
def __init__(self, result: "scout_compute_api_ComputeWithUnitsResult", subscription_id: str) -> None:
|
|
10162
|
+
self._subscription_id = subscription_id
|
|
10163
|
+
self._result = result
|
|
10164
|
+
|
|
10165
|
+
@builtins.property
|
|
10166
|
+
def subscription_id(self) -> str:
|
|
10167
|
+
return self._subscription_id
|
|
10168
|
+
|
|
10169
|
+
@builtins.property
|
|
10170
|
+
def result(self) -> "scout_compute_api_ComputeWithUnitsResult":
|
|
10171
|
+
return self._result
|
|
10172
|
+
|
|
10173
|
+
|
|
10174
|
+
persistent_compute_api_FullResult.__name__ = "FullResult"
|
|
10175
|
+
persistent_compute_api_FullResult.__qualname__ = "FullResult"
|
|
10176
|
+
persistent_compute_api_FullResult.__module__ = "nominal_api.persistent_compute_api"
|
|
10177
|
+
|
|
10178
|
+
|
|
10179
|
+
class persistent_compute_api_ServerMessage(ConjureUnionType):
|
|
10180
|
+
_subscription_update: Optional["persistent_compute_api_SubscriptionUpdate"] = None
|
|
10181
|
+
_subscription_error: Optional["persistent_compute_api_SubscriptionError"] = None
|
|
10182
|
+
|
|
10183
|
+
@builtins.classmethod
|
|
10184
|
+
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
10185
|
+
return {
|
|
10186
|
+
'subscription_update': ConjureFieldDefinition('subscriptionUpdate', persistent_compute_api_SubscriptionUpdate),
|
|
10187
|
+
'subscription_error': ConjureFieldDefinition('subscriptionError', persistent_compute_api_SubscriptionError)
|
|
10188
|
+
}
|
|
10189
|
+
|
|
10190
|
+
def __init__(
|
|
10191
|
+
self,
|
|
10192
|
+
subscription_update: Optional["persistent_compute_api_SubscriptionUpdate"] = None,
|
|
10193
|
+
subscription_error: Optional["persistent_compute_api_SubscriptionError"] = None,
|
|
10194
|
+
type_of_union: Optional[str] = None
|
|
10195
|
+
) -> None:
|
|
10196
|
+
if type_of_union is None:
|
|
10197
|
+
if (subscription_update is not None) + (subscription_error is not None) != 1:
|
|
10198
|
+
raise ValueError('a union must contain a single member')
|
|
10199
|
+
|
|
10200
|
+
if subscription_update is not None:
|
|
10201
|
+
self._subscription_update = subscription_update
|
|
10202
|
+
self._type = 'subscriptionUpdate'
|
|
10203
|
+
if subscription_error is not None:
|
|
10204
|
+
self._subscription_error = subscription_error
|
|
10205
|
+
self._type = 'subscriptionError'
|
|
10206
|
+
|
|
10207
|
+
elif type_of_union == 'subscriptionUpdate':
|
|
10208
|
+
if subscription_update is None:
|
|
10209
|
+
raise ValueError('a union value must not be None')
|
|
10210
|
+
self._subscription_update = subscription_update
|
|
10211
|
+
self._type = 'subscriptionUpdate'
|
|
10212
|
+
elif type_of_union == 'subscriptionError':
|
|
10213
|
+
if subscription_error is None:
|
|
10214
|
+
raise ValueError('a union value must not be None')
|
|
10215
|
+
self._subscription_error = subscription_error
|
|
10216
|
+
self._type = 'subscriptionError'
|
|
10217
|
+
|
|
10218
|
+
@builtins.property
|
|
10219
|
+
def subscription_update(self) -> Optional["persistent_compute_api_SubscriptionUpdate"]:
|
|
10220
|
+
return self._subscription_update
|
|
10221
|
+
|
|
10222
|
+
@builtins.property
|
|
10223
|
+
def subscription_error(self) -> Optional["persistent_compute_api_SubscriptionError"]:
|
|
10224
|
+
return self._subscription_error
|
|
10225
|
+
|
|
10226
|
+
def accept(self, visitor) -> Any:
|
|
10227
|
+
if not isinstance(visitor, persistent_compute_api_ServerMessageVisitor):
|
|
10228
|
+
raise ValueError('{} is not an instance of persistent_compute_api_ServerMessageVisitor'.format(visitor.__class__.__name__))
|
|
10229
|
+
if self._type == 'subscriptionUpdate' and self.subscription_update is not None:
|
|
10230
|
+
return visitor._subscription_update(self.subscription_update)
|
|
10231
|
+
if self._type == 'subscriptionError' and self.subscription_error is not None:
|
|
10232
|
+
return visitor._subscription_error(self.subscription_error)
|
|
10233
|
+
|
|
10234
|
+
|
|
10235
|
+
persistent_compute_api_ServerMessage.__name__ = "ServerMessage"
|
|
10236
|
+
persistent_compute_api_ServerMessage.__qualname__ = "ServerMessage"
|
|
10237
|
+
persistent_compute_api_ServerMessage.__module__ = "nominal_api.persistent_compute_api"
|
|
10238
|
+
|
|
10239
|
+
|
|
10240
|
+
class persistent_compute_api_ServerMessageVisitor:
|
|
10241
|
+
|
|
10242
|
+
@abstractmethod
|
|
10243
|
+
def _subscription_update(self, subscription_update: "persistent_compute_api_SubscriptionUpdate") -> Any:
|
|
10244
|
+
pass
|
|
10245
|
+
|
|
10246
|
+
@abstractmethod
|
|
10247
|
+
def _subscription_error(self, subscription_error: "persistent_compute_api_SubscriptionError") -> Any:
|
|
10248
|
+
pass
|
|
10249
|
+
|
|
10250
|
+
|
|
10251
|
+
persistent_compute_api_ServerMessageVisitor.__name__ = "ServerMessageVisitor"
|
|
10252
|
+
persistent_compute_api_ServerMessageVisitor.__qualname__ = "ServerMessageVisitor"
|
|
10253
|
+
persistent_compute_api_ServerMessageVisitor.__module__ = "nominal_api.persistent_compute_api"
|
|
10254
|
+
|
|
10255
|
+
|
|
10256
|
+
class persistent_compute_api_StreamingComputeNodeRequest(ConjureBeanType):
|
|
10257
|
+
"""
|
|
10258
|
+
A templatized version of `ComputeNodeRequest` where the end of the range will track the current time and
|
|
10259
|
+
the start of the range tracks `windowWidth` time ago.
|
|
10260
|
+
"""
|
|
10261
|
+
|
|
10262
|
+
@builtins.classmethod
|
|
10263
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
10264
|
+
return {
|
|
10265
|
+
'node': ConjureFieldDefinition('node', scout_compute_api_ComputableNode),
|
|
10266
|
+
'window_width': ConjureFieldDefinition('windowWidth', scout_run_api_Duration),
|
|
10267
|
+
'context': ConjureFieldDefinition('context', scout_compute_api_Context)
|
|
10268
|
+
}
|
|
10269
|
+
|
|
10270
|
+
__slots__: List[str] = ['_node', '_window_width', '_context']
|
|
10271
|
+
|
|
10272
|
+
def __init__(self, context: "scout_compute_api_Context", node: "scout_compute_api_ComputableNode", window_width: "scout_run_api_Duration") -> None:
|
|
10273
|
+
self._node = node
|
|
10274
|
+
self._window_width = window_width
|
|
10275
|
+
self._context = context
|
|
10276
|
+
|
|
10277
|
+
@builtins.property
|
|
10278
|
+
def node(self) -> "scout_compute_api_ComputableNode":
|
|
10279
|
+
return self._node
|
|
10280
|
+
|
|
10281
|
+
@builtins.property
|
|
10282
|
+
def window_width(self) -> "scout_run_api_Duration":
|
|
10283
|
+
return self._window_width
|
|
10284
|
+
|
|
10285
|
+
@builtins.property
|
|
10286
|
+
def context(self) -> "scout_compute_api_Context":
|
|
10287
|
+
return self._context
|
|
10288
|
+
|
|
10289
|
+
|
|
10290
|
+
persistent_compute_api_StreamingComputeNodeRequest.__name__ = "StreamingComputeNodeRequest"
|
|
10291
|
+
persistent_compute_api_StreamingComputeNodeRequest.__qualname__ = "StreamingComputeNodeRequest"
|
|
10292
|
+
persistent_compute_api_StreamingComputeNodeRequest.__module__ = "nominal_api.persistent_compute_api"
|
|
10293
|
+
|
|
10294
|
+
|
|
10295
|
+
class persistent_compute_api_StreamingComputeNodeSubscription(ConjureBeanType):
|
|
10296
|
+
|
|
10297
|
+
@builtins.classmethod
|
|
10298
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
10299
|
+
return {
|
|
10300
|
+
'compute_request': ConjureFieldDefinition('computeRequest', persistent_compute_api_StreamingComputeNodeRequest),
|
|
10301
|
+
'subscription_options': ConjureFieldDefinition('subscriptionOptions', persistent_compute_api_SubscriptionOptions)
|
|
10302
|
+
}
|
|
10303
|
+
|
|
10304
|
+
__slots__: List[str] = ['_compute_request', '_subscription_options']
|
|
10305
|
+
|
|
10306
|
+
def __init__(self, compute_request: "persistent_compute_api_StreamingComputeNodeRequest", subscription_options: "persistent_compute_api_SubscriptionOptions") -> None:
|
|
10307
|
+
self._compute_request = compute_request
|
|
10308
|
+
self._subscription_options = subscription_options
|
|
10309
|
+
|
|
10310
|
+
@builtins.property
|
|
10311
|
+
def compute_request(self) -> "persistent_compute_api_StreamingComputeNodeRequest":
|
|
10312
|
+
return self._compute_request
|
|
10313
|
+
|
|
10314
|
+
@builtins.property
|
|
10315
|
+
def subscription_options(self) -> "persistent_compute_api_SubscriptionOptions":
|
|
10316
|
+
return self._subscription_options
|
|
10317
|
+
|
|
10318
|
+
|
|
10319
|
+
persistent_compute_api_StreamingComputeNodeSubscription.__name__ = "StreamingComputeNodeSubscription"
|
|
10320
|
+
persistent_compute_api_StreamingComputeNodeSubscription.__qualname__ = "StreamingComputeNodeSubscription"
|
|
10321
|
+
persistent_compute_api_StreamingComputeNodeSubscription.__module__ = "nominal_api.persistent_compute_api"
|
|
10322
|
+
|
|
10323
|
+
|
|
10324
|
+
class persistent_compute_api_SubscriptionError(ConjureBeanType):
|
|
10325
|
+
"""
|
|
10326
|
+
This will be sent if there is an error creating a subscription specified in `ClientMessage::subscribe`.
|
|
10327
|
+
Equivalent to throwing a 400 in a REST endpoint.
|
|
10328
|
+
"""
|
|
10329
|
+
|
|
10330
|
+
@builtins.classmethod
|
|
10331
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
10332
|
+
return {
|
|
10333
|
+
'subscription_id': ConjureFieldDefinition('subscriptionId', persistent_compute_api_SubscriptionId),
|
|
10334
|
+
'serializable_error': ConjureFieldDefinition('serializableError', api_SerializableError)
|
|
10335
|
+
}
|
|
10336
|
+
|
|
10337
|
+
__slots__: List[str] = ['_subscription_id', '_serializable_error']
|
|
10338
|
+
|
|
10339
|
+
def __init__(self, serializable_error: "api_SerializableError", subscription_id: str) -> None:
|
|
10340
|
+
self._subscription_id = subscription_id
|
|
10341
|
+
self._serializable_error = serializable_error
|
|
10342
|
+
|
|
10343
|
+
@builtins.property
|
|
10344
|
+
def subscription_id(self) -> str:
|
|
10345
|
+
return self._subscription_id
|
|
10346
|
+
|
|
10347
|
+
@builtins.property
|
|
10348
|
+
def serializable_error(self) -> "api_SerializableError":
|
|
10349
|
+
"""
|
|
10350
|
+
A serialized version of the error. Should match the errors defined below.
|
|
10351
|
+
"""
|
|
10352
|
+
return self._serializable_error
|
|
10353
|
+
|
|
10354
|
+
|
|
10355
|
+
persistent_compute_api_SubscriptionError.__name__ = "SubscriptionError"
|
|
10356
|
+
persistent_compute_api_SubscriptionError.__qualname__ = "SubscriptionError"
|
|
10357
|
+
persistent_compute_api_SubscriptionError.__module__ = "nominal_api.persistent_compute_api"
|
|
10358
|
+
|
|
10359
|
+
|
|
10360
|
+
class persistent_compute_api_SubscriptionOptions(ConjureBeanType):
|
|
10361
|
+
|
|
10362
|
+
@builtins.classmethod
|
|
10363
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
10364
|
+
return {
|
|
10365
|
+
'min_delay': ConjureFieldDefinition('minDelay', persistent_compute_api_Milliseconds)
|
|
10366
|
+
}
|
|
10367
|
+
|
|
10368
|
+
__slots__: List[str] = ['_min_delay']
|
|
10369
|
+
|
|
10370
|
+
def __init__(self, min_delay: int) -> None:
|
|
10371
|
+
self._min_delay = min_delay
|
|
10372
|
+
|
|
10373
|
+
@builtins.property
|
|
10374
|
+
def min_delay(self) -> int:
|
|
10375
|
+
"""
|
|
10376
|
+
The minimum delay between `SubscriptionUpdate`s sent for this subscription.
|
|
10377
|
+
"""
|
|
10378
|
+
return self._min_delay
|
|
10379
|
+
|
|
10380
|
+
|
|
10381
|
+
persistent_compute_api_SubscriptionOptions.__name__ = "SubscriptionOptions"
|
|
10382
|
+
persistent_compute_api_SubscriptionOptions.__qualname__ = "SubscriptionOptions"
|
|
10383
|
+
persistent_compute_api_SubscriptionOptions.__module__ = "nominal_api.persistent_compute_api"
|
|
10384
|
+
|
|
10385
|
+
|
|
10386
|
+
class persistent_compute_api_SubscriptionUpdate(ConjureUnionType):
|
|
10387
|
+
_full: Optional["persistent_compute_api_FullResult"] = None
|
|
10388
|
+
|
|
10389
|
+
@builtins.classmethod
|
|
10390
|
+
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
10391
|
+
return {
|
|
10392
|
+
'full': ConjureFieldDefinition('full', persistent_compute_api_FullResult)
|
|
10393
|
+
}
|
|
10394
|
+
|
|
10395
|
+
def __init__(
|
|
10396
|
+
self,
|
|
10397
|
+
full: Optional["persistent_compute_api_FullResult"] = None,
|
|
10398
|
+
type_of_union: Optional[str] = None
|
|
10399
|
+
) -> None:
|
|
10400
|
+
if type_of_union is None:
|
|
10401
|
+
if (full is not None) != 1:
|
|
10402
|
+
raise ValueError('a union must contain a single member')
|
|
10403
|
+
|
|
10404
|
+
if full is not None:
|
|
10405
|
+
self._full = full
|
|
10406
|
+
self._type = 'full'
|
|
10407
|
+
|
|
10408
|
+
elif type_of_union == 'full':
|
|
10409
|
+
if full is None:
|
|
10410
|
+
raise ValueError('a union value must not be None')
|
|
10411
|
+
self._full = full
|
|
10412
|
+
self._type = 'full'
|
|
10413
|
+
|
|
10414
|
+
@builtins.property
|
|
10415
|
+
def full(self) -> Optional["persistent_compute_api_FullResult"]:
|
|
10416
|
+
return self._full
|
|
10417
|
+
|
|
10418
|
+
def accept(self, visitor) -> Any:
|
|
10419
|
+
if not isinstance(visitor, persistent_compute_api_SubscriptionUpdateVisitor):
|
|
10420
|
+
raise ValueError('{} is not an instance of persistent_compute_api_SubscriptionUpdateVisitor'.format(visitor.__class__.__name__))
|
|
10421
|
+
if self._type == 'full' and self.full is not None:
|
|
10422
|
+
return visitor._full(self.full)
|
|
10423
|
+
|
|
10424
|
+
|
|
10425
|
+
persistent_compute_api_SubscriptionUpdate.__name__ = "SubscriptionUpdate"
|
|
10426
|
+
persistent_compute_api_SubscriptionUpdate.__qualname__ = "SubscriptionUpdate"
|
|
10427
|
+
persistent_compute_api_SubscriptionUpdate.__module__ = "nominal_api.persistent_compute_api"
|
|
10428
|
+
|
|
10429
|
+
|
|
10430
|
+
class persistent_compute_api_SubscriptionUpdateVisitor:
|
|
10431
|
+
|
|
10432
|
+
@abstractmethod
|
|
10433
|
+
def _full(self, full: "persistent_compute_api_FullResult") -> Any:
|
|
10434
|
+
pass
|
|
10435
|
+
|
|
10436
|
+
|
|
10437
|
+
persistent_compute_api_SubscriptionUpdateVisitor.__name__ = "SubscriptionUpdateVisitor"
|
|
10438
|
+
persistent_compute_api_SubscriptionUpdateVisitor.__qualname__ = "SubscriptionUpdateVisitor"
|
|
10439
|
+
persistent_compute_api_SubscriptionUpdateVisitor.__module__ = "nominal_api.persistent_compute_api"
|
|
10440
|
+
|
|
10441
|
+
|
|
10013
10442
|
class scout_InternalVersioningService(Service):
|
|
10014
10443
|
"""
|
|
10015
10444
|
These endpoints are not intended to be used directly by clients, since
|
|
@@ -10038,7 +10467,7 @@ Throws if the resource already has a commit graph.
|
|
|
10038
10467
|
|
|
10039
10468
|
_json: Any = ConjureEncoder().default(request)
|
|
10040
10469
|
|
|
10041
|
-
_path = '/scout/v1/versioning/
|
|
10470
|
+
_path = '/internal/scout/v1/versioning/{resourceRid}'
|
|
10042
10471
|
_path = _path.format(**_path_params)
|
|
10043
10472
|
|
|
10044
10473
|
_response: Response = self._request(
|
|
@@ -10074,7 +10503,7 @@ Throws if latestCommit is passed and is not the latest commit.
|
|
|
10074
10503
|
|
|
10075
10504
|
_json: Any = ConjureEncoder().default(request)
|
|
10076
10505
|
|
|
10077
|
-
_path = '/scout/v1/versioning/
|
|
10506
|
+
_path = '/internal/scout/v1/versioning/{resourceRid}/branch/{branchName}/working-state'
|
|
10078
10507
|
_path = _path.format(**_path_params)
|
|
10079
10508
|
|
|
10080
10509
|
_response: Response = self._request(
|
|
@@ -10110,7 +10539,7 @@ Throws if latestCommit is passed and is not the latest commit.
|
|
|
10110
10539
|
|
|
10111
10540
|
_json: Any = ConjureEncoder().default(request)
|
|
10112
10541
|
|
|
10113
|
-
_path = '/scout/v1/versioning/
|
|
10542
|
+
_path = '/internal/scout/v1/versioning/{resourceRid}/branch/{branchName}/commit'
|
|
10114
10543
|
_path = _path.format(**_path_params)
|
|
10115
10544
|
|
|
10116
10545
|
_response: Response = self._request(
|
|
@@ -10147,7 +10576,7 @@ Throws if the resource doesn't exist.
|
|
|
10147
10576
|
|
|
10148
10577
|
_json: Any = ConjureEncoder().default(request)
|
|
10149
10578
|
|
|
10150
|
-
_path = '/scout/v1/versioning/
|
|
10579
|
+
_path = '/internal/scout/v1/versioning/{resourceRid}/compact-commits'
|
|
10151
10580
|
_path = _path.format(**_path_params)
|
|
10152
10581
|
|
|
10153
10582
|
_response: Response = self._request(
|
|
@@ -10359,11 +10788,12 @@ a RunNotFound error will be thrown.
|
|
|
10359
10788
|
_decoder = ConjureDecoder()
|
|
10360
10789
|
return _decoder.decode(_response.json(), scout_notebook_api_NotebookMetadata, self._return_none_for_unknown_union_types)
|
|
10361
10790
|
|
|
10362
|
-
def get_all_labels_and_properties(self, auth_header: str) -> "scout_notebook_api_GetAllLabelsAndPropertiesResponse":
|
|
10791
|
+
def get_all_labels_and_properties(self, auth_header: str, workspaces: List[str] = None) -> "scout_notebook_api_GetAllLabelsAndPropertiesResponse":
|
|
10363
10792
|
"""
|
|
10364
10793
|
Returns all properties (key value pairs) and labels that have been previously used on workbook. These can
|
|
10365
10794
|
be used to organize workbooks.
|
|
10366
10795
|
"""
|
|
10796
|
+
workspaces = workspaces if workspaces is not None else []
|
|
10367
10797
|
|
|
10368
10798
|
_headers: Dict[str, Any] = {
|
|
10369
10799
|
'Accept': 'application/json',
|
|
@@ -10371,6 +10801,7 @@ be used to organize workbooks.
|
|
|
10371
10801
|
}
|
|
10372
10802
|
|
|
10373
10803
|
_params: Dict[str, Any] = {
|
|
10804
|
+
'workspaces': workspaces,
|
|
10374
10805
|
}
|
|
10375
10806
|
|
|
10376
10807
|
_path_params: Dict[str, Any] = {
|
|
@@ -10696,6 +11127,7 @@ Throws if any of the ref names conflict with existing data sources or each other
|
|
|
10696
11127
|
def create_or_update_run(self, auth_header: str, details: "scout_run_api_CreateOrUpdateRunRequest") -> "scout_run_api_Run":
|
|
10697
11128
|
"""
|
|
10698
11129
|
Updates a run if it exists, otherwise it's created from scratch.
|
|
11130
|
+
Will throw if the workspace of an existing run is different from the workspace of the request.
|
|
10699
11131
|
"""
|
|
10700
11132
|
|
|
10701
11133
|
_headers: Dict[str, Any] = {
|
|
@@ -10919,7 +11351,8 @@ including metrics for check and violation review status.
|
|
|
10919
11351
|
_decoder = ConjureDecoder()
|
|
10920
11352
|
return _decoder.decode(_response.json(), scout_run_api_GetRunsByAssetResponse, self._return_none_for_unknown_union_types)
|
|
10921
11353
|
|
|
10922
|
-
def get_all_runs_properties_and_labels(self, auth_header: str) -> "scout_run_api_AllRunsPropertiesAndLabelsResponse":
|
|
11354
|
+
def get_all_runs_properties_and_labels(self, auth_header: str, workspaces: List[str] = None) -> "scout_run_api_AllRunsPropertiesAndLabelsResponse":
|
|
11355
|
+
workspaces = workspaces if workspaces is not None else []
|
|
10923
11356
|
|
|
10924
11357
|
_headers: Dict[str, Any] = {
|
|
10925
11358
|
'Accept': 'application/json',
|
|
@@ -10927,6 +11360,7 @@ including metrics for check and violation review status.
|
|
|
10927
11360
|
}
|
|
10928
11361
|
|
|
10929
11362
|
_params: Dict[str, Any] = {
|
|
11363
|
+
'workspaces': workspaces,
|
|
10930
11364
|
}
|
|
10931
11365
|
|
|
10932
11366
|
_path_params: Dict[str, Any] = {
|
|
@@ -10947,9 +11381,9 @@ including metrics for check and violation review status.
|
|
|
10947
11381
|
_decoder = ConjureDecoder()
|
|
10948
11382
|
return _decoder.decode(_response.json(), scout_run_api_AllRunsPropertiesAndLabelsResponse, self._return_none_for_unknown_union_types)
|
|
10949
11383
|
|
|
10950
|
-
def search_runs(self, auth_header: str,
|
|
11384
|
+
def search_runs(self, auth_header: str, request: "scout_run_api_SearchRunsRequest") -> "scout_run_api_SearchRunsResponse":
|
|
10951
11385
|
"""
|
|
10952
|
-
Searches for runs that match the given
|
|
11386
|
+
Searches for runs that match the given filters.
|
|
10953
11387
|
"""
|
|
10954
11388
|
|
|
10955
11389
|
_headers: Dict[str, Any] = {
|
|
@@ -10964,7 +11398,7 @@ including metrics for check and violation review status.
|
|
|
10964
11398
|
_path_params: Dict[str, Any] = {
|
|
10965
11399
|
}
|
|
10966
11400
|
|
|
10967
|
-
_json: Any = ConjureEncoder().default(
|
|
11401
|
+
_json: Any = ConjureEncoder().default(request)
|
|
10968
11402
|
|
|
10969
11403
|
_path = '/scout/v1/search-runs'
|
|
10970
11404
|
_path = _path.format(**_path_params)
|
|
@@ -10979,10 +11413,10 @@ including metrics for check and violation review status.
|
|
|
10979
11413
|
_decoder = ConjureDecoder()
|
|
10980
11414
|
return _decoder.decode(_response.json(), scout_run_api_SearchRunsResponse, self._return_none_for_unknown_union_types)
|
|
10981
11415
|
|
|
10982
|
-
def search_runs_with_data_review_metrics(self, auth_header: str,
|
|
11416
|
+
def search_runs_with_data_review_metrics(self, auth_header: str, request: "scout_run_api_SearchRunsRequest") -> "scout_run_api_SearchRunsWithDataReviewMetricsResponse":
|
|
10983
11417
|
"""
|
|
10984
11418
|
Searches for runs that match the given filters and
|
|
10985
|
-
includes metrics for check and violation review status
|
|
11419
|
+
includes metrics for check and violation review status.
|
|
10986
11420
|
"""
|
|
10987
11421
|
|
|
10988
11422
|
_headers: Dict[str, Any] = {
|
|
@@ -10997,7 +11431,7 @@ includes metrics for check and violation review status
|
|
|
10997
11431
|
_path_params: Dict[str, Any] = {
|
|
10998
11432
|
}
|
|
10999
11433
|
|
|
11000
|
-
_json: Any = ConjureEncoder().default(
|
|
11434
|
+
_json: Any = ConjureEncoder().default(request)
|
|
11001
11435
|
|
|
11002
11436
|
_path = '/scout/v1/search-runs-with-data-review-metrics'
|
|
11003
11437
|
_path = _path.format(**_path_params)
|
|
@@ -11012,7 +11446,7 @@ includes metrics for check and violation review status
|
|
|
11012
11446
|
_decoder = ConjureDecoder()
|
|
11013
11447
|
return _decoder.decode(_response.json(), scout_run_api_SearchRunsWithDataReviewMetricsResponse, self._return_none_for_unknown_union_types)
|
|
11014
11448
|
|
|
11015
|
-
def search_runs_with_data_review_summary(self, auth_header: str,
|
|
11449
|
+
def search_runs_with_data_review_summary(self, auth_header: str, request: "scout_run_api_SearchRunsRequest") -> "scout_run_api_SearchRunsWithDataReviewSummaryResponse":
|
|
11016
11450
|
"""
|
|
11017
11451
|
Searches for runs that match the given filters and includes a summary of the data review status.
|
|
11018
11452
|
"""
|
|
@@ -11029,7 +11463,7 @@ includes metrics for check and violation review status
|
|
|
11029
11463
|
_path_params: Dict[str, Any] = {
|
|
11030
11464
|
}
|
|
11031
11465
|
|
|
11032
|
-
_json: Any = ConjureEncoder().default(
|
|
11466
|
+
_json: Any = ConjureEncoder().default(request)
|
|
11033
11467
|
|
|
11034
11468
|
_path = '/scout/v1/search-runs-with-data-review-summary'
|
|
11035
11469
|
_path = _path.format(**_path_params)
|
|
@@ -11076,10 +11510,11 @@ includes metrics for check and violation review status
|
|
|
11076
11510
|
_decoder = ConjureDecoder()
|
|
11077
11511
|
return _decoder.decode(_response.json(), bool, self._return_none_for_unknown_union_types)
|
|
11078
11512
|
|
|
11079
|
-
def get_data_source_ref_name_and_type_list(self, auth_header: str) -> List["scout_run_api_RefNameAndType"]:
|
|
11513
|
+
def get_data_source_ref_name_and_type_list(self, auth_header: str, workspaces: List[str] = None) -> List["scout_run_api_RefNameAndType"]:
|
|
11080
11514
|
"""
|
|
11081
|
-
Returns the list of ref names that are in use across
|
|
11515
|
+
Returns the list of ref names that are in use across specified and authorized workspaces.
|
|
11082
11516
|
"""
|
|
11517
|
+
workspaces = workspaces if workspaces is not None else []
|
|
11083
11518
|
|
|
11084
11519
|
_headers: Dict[str, Any] = {
|
|
11085
11520
|
'Accept': 'application/json',
|
|
@@ -11087,6 +11522,7 @@ includes metrics for check and violation review status
|
|
|
11087
11522
|
}
|
|
11088
11523
|
|
|
11089
11524
|
_params: Dict[str, Any] = {
|
|
11525
|
+
'workspaces': workspaces,
|
|
11090
11526
|
}
|
|
11091
11527
|
|
|
11092
11528
|
_path_params: Dict[str, Any] = {
|
|
@@ -11415,7 +11851,8 @@ Throws if you commit to an archived template.
|
|
|
11415
11851
|
_decoder = ConjureDecoder()
|
|
11416
11852
|
return _decoder.decode(_response.json(), scout_template_api_SearchTemplatesResponse, self._return_none_for_unknown_union_types)
|
|
11417
11853
|
|
|
11418
|
-
def get_all_labels_and_properties(self, auth_header: str) -> "scout_template_api_GetAllLabelsAndPropertiesResponse":
|
|
11854
|
+
def get_all_labels_and_properties(self, auth_header: str, workspaces: List[str] = None) -> "scout_template_api_GetAllLabelsAndPropertiesResponse":
|
|
11855
|
+
workspaces = workspaces if workspaces is not None else []
|
|
11419
11856
|
|
|
11420
11857
|
_headers: Dict[str, Any] = {
|
|
11421
11858
|
'Accept': 'application/json',
|
|
@@ -11423,6 +11860,7 @@ Throws if you commit to an archived template.
|
|
|
11423
11860
|
}
|
|
11424
11861
|
|
|
11425
11862
|
_params: Dict[str, Any] = {
|
|
11863
|
+
'workspaces': workspaces,
|
|
11426
11864
|
}
|
|
11427
11865
|
|
|
11428
11866
|
_path_params: Dict[str, Any] = {
|
|
@@ -12552,12 +12990,13 @@ class scout_asset_api_CreateAssetRequest(ConjureBeanType):
|
|
|
12552
12990
|
'links': ConjureFieldDefinition('links', List[scout_run_api_Link]),
|
|
12553
12991
|
'data_scopes': ConjureFieldDefinition('dataScopes', List[scout_asset_api_CreateAssetDataScope]),
|
|
12554
12992
|
'attachments': ConjureFieldDefinition('attachments', List[api_rids_AttachmentRid]),
|
|
12555
|
-
'type': ConjureFieldDefinition('type', OptionalTypeWrapper[scout_rids_api_TypeRid])
|
|
12993
|
+
'type': ConjureFieldDefinition('type', OptionalTypeWrapper[scout_rids_api_TypeRid]),
|
|
12994
|
+
'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
|
|
12556
12995
|
}
|
|
12557
12996
|
|
|
12558
|
-
__slots__: List[str] = ['_title', '_description', '_properties', '_labels', '_links', '_data_scopes', '_attachments', '_type']
|
|
12997
|
+
__slots__: List[str] = ['_title', '_description', '_properties', '_labels', '_links', '_data_scopes', '_attachments', '_type', '_workspace']
|
|
12559
12998
|
|
|
12560
|
-
def __init__(self, attachments: List[str], data_scopes: List["scout_asset_api_CreateAssetDataScope"], labels: List[str], links: List["scout_run_api_Link"], properties: Dict[str, str], title: str, description: Optional[str] = None, type: Optional[str] = None) -> None:
|
|
12999
|
+
def __init__(self, attachments: List[str], data_scopes: List["scout_asset_api_CreateAssetDataScope"], labels: List[str], links: List["scout_run_api_Link"], properties: Dict[str, str], title: str, description: Optional[str] = None, type: Optional[str] = None, workspace: Optional[str] = None) -> None:
|
|
12561
13000
|
self._title = title
|
|
12562
13001
|
self._description = description
|
|
12563
13002
|
self._properties = properties
|
|
@@ -12566,6 +13005,7 @@ class scout_asset_api_CreateAssetRequest(ConjureBeanType):
|
|
|
12566
13005
|
self._data_scopes = data_scopes
|
|
12567
13006
|
self._attachments = attachments
|
|
12568
13007
|
self._type = type
|
|
13008
|
+
self._workspace = workspace
|
|
12569
13009
|
|
|
12570
13010
|
@builtins.property
|
|
12571
13011
|
def title(self) -> str:
|
|
@@ -12602,6 +13042,16 @@ class scout_asset_api_CreateAssetRequest(ConjureBeanType):
|
|
|
12602
13042
|
def type(self) -> Optional[str]:
|
|
12603
13043
|
return self._type
|
|
12604
13044
|
|
|
13045
|
+
@builtins.property
|
|
13046
|
+
def workspace(self) -> Optional[str]:
|
|
13047
|
+
"""
|
|
13048
|
+
The workspace in which to create the asset. If not provided, the asset will be created in
|
|
13049
|
+
the default workspace for the user's organization, if the default workspace for the
|
|
13050
|
+
organization is configured.
|
|
13051
|
+
All data scopes, attachments, and the optional asset type must be in the same workspace.
|
|
13052
|
+
"""
|
|
13053
|
+
return self._workspace
|
|
13054
|
+
|
|
12605
13055
|
|
|
12606
13056
|
scout_asset_api_CreateAssetRequest.__name__ = "CreateAssetRequest"
|
|
12607
13057
|
scout_asset_api_CreateAssetRequest.__qualname__ = "CreateAssetRequest"
|
|
@@ -12616,16 +13066,18 @@ class scout_asset_api_CreateTypeRequest(ConjureBeanType):
|
|
|
12616
13066
|
'name': ConjureFieldDefinition('name', str),
|
|
12617
13067
|
'property_configs': ConjureFieldDefinition('propertyConfigs', Dict[api_PropertyName, scout_asset_api_PropertyConfig]),
|
|
12618
13068
|
'description': ConjureFieldDefinition('description', OptionalTypeWrapper[str]),
|
|
12619
|
-
'icon_name': ConjureFieldDefinition('iconName', OptionalTypeWrapper[str])
|
|
13069
|
+
'icon_name': ConjureFieldDefinition('iconName', OptionalTypeWrapper[str]),
|
|
13070
|
+
'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
|
|
12620
13071
|
}
|
|
12621
13072
|
|
|
12622
|
-
__slots__: List[str] = ['_name', '_property_configs', '_description', '_icon_name']
|
|
13073
|
+
__slots__: List[str] = ['_name', '_property_configs', '_description', '_icon_name', '_workspace']
|
|
12623
13074
|
|
|
12624
|
-
def __init__(self, name: str, property_configs: Dict[str, "scout_asset_api_PropertyConfig"], description: Optional[str] = None, icon_name: Optional[str] = None) -> None:
|
|
13075
|
+
def __init__(self, name: str, property_configs: Dict[str, "scout_asset_api_PropertyConfig"], description: Optional[str] = None, icon_name: Optional[str] = None, workspace: Optional[str] = None) -> None:
|
|
12625
13076
|
self._name = name
|
|
12626
13077
|
self._property_configs = property_configs
|
|
12627
13078
|
self._description = description
|
|
12628
13079
|
self._icon_name = icon_name
|
|
13080
|
+
self._workspace = workspace
|
|
12629
13081
|
|
|
12630
13082
|
@builtins.property
|
|
12631
13083
|
def name(self) -> str:
|
|
@@ -12643,6 +13095,15 @@ class scout_asset_api_CreateTypeRequest(ConjureBeanType):
|
|
|
12643
13095
|
def icon_name(self) -> Optional[str]:
|
|
12644
13096
|
return self._icon_name
|
|
12645
13097
|
|
|
13098
|
+
@builtins.property
|
|
13099
|
+
def workspace(self) -> Optional[str]:
|
|
13100
|
+
"""
|
|
13101
|
+
The workspace in which to create the asset type. If not provided, the asset type will be created in
|
|
13102
|
+
the default workspace for the user's organization, if the default workspace for the
|
|
13103
|
+
organization is configured.
|
|
13104
|
+
"""
|
|
13105
|
+
return self._workspace
|
|
13106
|
+
|
|
12646
13107
|
|
|
12647
13108
|
scout_asset_api_CreateTypeRequest.__name__ = "CreateTypeRequest"
|
|
12648
13109
|
scout_asset_api_CreateTypeRequest.__qualname__ = "CreateTypeRequest"
|
|
@@ -12781,6 +13242,7 @@ class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
|
12781
13242
|
_and_: Optional[List["scout_asset_api_SearchAssetsQuery"]] = None
|
|
12782
13243
|
_or_: Optional[List["scout_asset_api_SearchAssetsQuery"]] = None
|
|
12783
13244
|
_is_staged: Optional[bool] = None
|
|
13245
|
+
_workspace: Optional[str] = None
|
|
12784
13246
|
|
|
12785
13247
|
@builtins.classmethod
|
|
12786
13248
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -12791,7 +13253,8 @@ class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
|
12791
13253
|
'type_rid': ConjureFieldDefinition('typeRid', scout_rids_api_TypeRid),
|
|
12792
13254
|
'and_': ConjureFieldDefinition('and', List[scout_asset_api_SearchAssetsQuery]),
|
|
12793
13255
|
'or_': ConjureFieldDefinition('or', List[scout_asset_api_SearchAssetsQuery]),
|
|
12794
|
-
'is_staged': ConjureFieldDefinition('isStaged', bool)
|
|
13256
|
+
'is_staged': ConjureFieldDefinition('isStaged', bool),
|
|
13257
|
+
'workspace': ConjureFieldDefinition('workspace', api_ids_WorkspaceId)
|
|
12795
13258
|
}
|
|
12796
13259
|
|
|
12797
13260
|
def __init__(
|
|
@@ -12803,10 +13266,11 @@ class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
|
12803
13266
|
and_: Optional[List["scout_asset_api_SearchAssetsQuery"]] = None,
|
|
12804
13267
|
or_: Optional[List["scout_asset_api_SearchAssetsQuery"]] = None,
|
|
12805
13268
|
is_staged: Optional[bool] = None,
|
|
13269
|
+
workspace: Optional[str] = None,
|
|
12806
13270
|
type_of_union: Optional[str] = None
|
|
12807
13271
|
) -> None:
|
|
12808
13272
|
if type_of_union is None:
|
|
12809
|
-
if (search_text is not None) + (label is not None) + (property is not None) + (type_rid is not None) + (and_ is not None) + (or_ is not None) + (is_staged is not None) != 1:
|
|
13273
|
+
if (search_text is not None) + (label is not None) + (property is not None) + (type_rid is not None) + (and_ is not None) + (or_ is not None) + (is_staged is not None) + (workspace is not None) != 1:
|
|
12810
13274
|
raise ValueError('a union must contain a single member')
|
|
12811
13275
|
|
|
12812
13276
|
if search_text is not None:
|
|
@@ -12830,6 +13294,9 @@ class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
|
12830
13294
|
if is_staged is not None:
|
|
12831
13295
|
self._is_staged = is_staged
|
|
12832
13296
|
self._type = 'isStaged'
|
|
13297
|
+
if workspace is not None:
|
|
13298
|
+
self._workspace = workspace
|
|
13299
|
+
self._type = 'workspace'
|
|
12833
13300
|
|
|
12834
13301
|
elif type_of_union == 'searchText':
|
|
12835
13302
|
if search_text is None:
|
|
@@ -12866,6 +13333,11 @@ class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
|
12866
13333
|
raise ValueError('a union value must not be None')
|
|
12867
13334
|
self._is_staged = is_staged
|
|
12868
13335
|
self._type = 'isStaged'
|
|
13336
|
+
elif type_of_union == 'workspace':
|
|
13337
|
+
if workspace is None:
|
|
13338
|
+
raise ValueError('a union value must not be None')
|
|
13339
|
+
self._workspace = workspace
|
|
13340
|
+
self._type = 'workspace'
|
|
12869
13341
|
|
|
12870
13342
|
@builtins.property
|
|
12871
13343
|
def search_text(self) -> Optional[str]:
|
|
@@ -12895,6 +13367,10 @@ class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
|
12895
13367
|
def is_staged(self) -> Optional[bool]:
|
|
12896
13368
|
return self._is_staged
|
|
12897
13369
|
|
|
13370
|
+
@builtins.property
|
|
13371
|
+
def workspace(self) -> Optional[str]:
|
|
13372
|
+
return self._workspace
|
|
13373
|
+
|
|
12898
13374
|
def accept(self, visitor) -> Any:
|
|
12899
13375
|
if not isinstance(visitor, scout_asset_api_SearchAssetsQueryVisitor):
|
|
12900
13376
|
raise ValueError('{} is not an instance of scout_asset_api_SearchAssetsQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -12912,6 +13388,8 @@ class scout_asset_api_SearchAssetsQuery(ConjureUnionType):
|
|
|
12912
13388
|
return visitor._or(self.or_)
|
|
12913
13389
|
if self._type == 'isStaged' and self.is_staged is not None:
|
|
12914
13390
|
return visitor._is_staged(self.is_staged)
|
|
13391
|
+
if self._type == 'workspace' and self.workspace is not None:
|
|
13392
|
+
return visitor._workspace(self.workspace)
|
|
12915
13393
|
|
|
12916
13394
|
|
|
12917
13395
|
scout_asset_api_SearchAssetsQuery.__name__ = "SearchAssetsQuery"
|
|
@@ -12949,6 +13427,10 @@ class scout_asset_api_SearchAssetsQueryVisitor:
|
|
|
12949
13427
|
def _is_staged(self, is_staged: bool) -> Any:
|
|
12950
13428
|
pass
|
|
12951
13429
|
|
|
13430
|
+
@abstractmethod
|
|
13431
|
+
def _workspace(self, workspace: str) -> Any:
|
|
13432
|
+
pass
|
|
13433
|
+
|
|
12952
13434
|
|
|
12953
13435
|
scout_asset_api_SearchAssetsQueryVisitor.__name__ = "SearchAssetsQueryVisitor"
|
|
12954
13436
|
scout_asset_api_SearchAssetsQueryVisitor.__qualname__ = "SearchAssetsQueryVisitor"
|
|
@@ -13042,6 +13524,7 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
13042
13524
|
_property: Optional[str] = None
|
|
13043
13525
|
_and_: Optional[List["scout_asset_api_SearchTypesQuery"]] = None
|
|
13044
13526
|
_or_: Optional[List["scout_asset_api_SearchTypesQuery"]] = None
|
|
13527
|
+
_workspace: Optional[str] = None
|
|
13045
13528
|
|
|
13046
13529
|
@builtins.classmethod
|
|
13047
13530
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -13049,7 +13532,8 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
13049
13532
|
'search_text': ConjureFieldDefinition('searchText', str),
|
|
13050
13533
|
'property': ConjureFieldDefinition('property', api_PropertyName),
|
|
13051
13534
|
'and_': ConjureFieldDefinition('and', List[scout_asset_api_SearchTypesQuery]),
|
|
13052
|
-
'or_': ConjureFieldDefinition('or', List[scout_asset_api_SearchTypesQuery])
|
|
13535
|
+
'or_': ConjureFieldDefinition('or', List[scout_asset_api_SearchTypesQuery]),
|
|
13536
|
+
'workspace': ConjureFieldDefinition('workspace', api_ids_WorkspaceId)
|
|
13053
13537
|
}
|
|
13054
13538
|
|
|
13055
13539
|
def __init__(
|
|
@@ -13058,10 +13542,11 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
13058
13542
|
property: Optional[str] = None,
|
|
13059
13543
|
and_: Optional[List["scout_asset_api_SearchTypesQuery"]] = None,
|
|
13060
13544
|
or_: Optional[List["scout_asset_api_SearchTypesQuery"]] = None,
|
|
13545
|
+
workspace: Optional[str] = None,
|
|
13061
13546
|
type_of_union: Optional[str] = None
|
|
13062
13547
|
) -> None:
|
|
13063
13548
|
if type_of_union is None:
|
|
13064
|
-
if (search_text is not None) + (property is not None) + (and_ is not None) + (or_ is not None) != 1:
|
|
13549
|
+
if (search_text is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (workspace is not None) != 1:
|
|
13065
13550
|
raise ValueError('a union must contain a single member')
|
|
13066
13551
|
|
|
13067
13552
|
if search_text is not None:
|
|
@@ -13076,6 +13561,9 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
13076
13561
|
if or_ is not None:
|
|
13077
13562
|
self._or_ = or_
|
|
13078
13563
|
self._type = 'or'
|
|
13564
|
+
if workspace is not None:
|
|
13565
|
+
self._workspace = workspace
|
|
13566
|
+
self._type = 'workspace'
|
|
13079
13567
|
|
|
13080
13568
|
elif type_of_union == 'searchText':
|
|
13081
13569
|
if search_text is None:
|
|
@@ -13097,6 +13585,11 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
13097
13585
|
raise ValueError('a union value must not be None')
|
|
13098
13586
|
self._or_ = or_
|
|
13099
13587
|
self._type = 'or'
|
|
13588
|
+
elif type_of_union == 'workspace':
|
|
13589
|
+
if workspace is None:
|
|
13590
|
+
raise ValueError('a union value must not be None')
|
|
13591
|
+
self._workspace = workspace
|
|
13592
|
+
self._type = 'workspace'
|
|
13100
13593
|
|
|
13101
13594
|
@builtins.property
|
|
13102
13595
|
def search_text(self) -> Optional[str]:
|
|
@@ -13114,6 +13607,10 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
13114
13607
|
def or_(self) -> Optional[List["scout_asset_api_SearchTypesQuery"]]:
|
|
13115
13608
|
return self._or_
|
|
13116
13609
|
|
|
13610
|
+
@builtins.property
|
|
13611
|
+
def workspace(self) -> Optional[str]:
|
|
13612
|
+
return self._workspace
|
|
13613
|
+
|
|
13117
13614
|
def accept(self, visitor) -> Any:
|
|
13118
13615
|
if not isinstance(visitor, scout_asset_api_SearchTypesQueryVisitor):
|
|
13119
13616
|
raise ValueError('{} is not an instance of scout_asset_api_SearchTypesQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -13125,6 +13622,8 @@ class scout_asset_api_SearchTypesQuery(ConjureUnionType):
|
|
|
13125
13622
|
return visitor._and(self.and_)
|
|
13126
13623
|
if self._type == 'or' and self.or_ is not None:
|
|
13127
13624
|
return visitor._or(self.or_)
|
|
13625
|
+
if self._type == 'workspace' and self.workspace is not None:
|
|
13626
|
+
return visitor._workspace(self.workspace)
|
|
13128
13627
|
|
|
13129
13628
|
|
|
13130
13629
|
scout_asset_api_SearchTypesQuery.__name__ = "SearchTypesQuery"
|
|
@@ -13150,6 +13649,10 @@ class scout_asset_api_SearchTypesQueryVisitor:
|
|
|
13150
13649
|
def _or(self, or_: List["scout_asset_api_SearchTypesQuery"]) -> Any:
|
|
13151
13650
|
pass
|
|
13152
13651
|
|
|
13652
|
+
@abstractmethod
|
|
13653
|
+
def _workspace(self, workspace: str) -> Any:
|
|
13654
|
+
pass
|
|
13655
|
+
|
|
13153
13656
|
|
|
13154
13657
|
scout_asset_api_SearchTypesQueryVisitor.__name__ = "SearchTypesQueryVisitor"
|
|
13155
13658
|
scout_asset_api_SearchTypesQueryVisitor.__qualname__ = "SearchTypesQueryVisitor"
|
|
@@ -23329,6 +23832,7 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
|
|
|
23329
23832
|
_assignee_rid: Optional[str] = None
|
|
23330
23833
|
_is_published: Optional[bool] = None
|
|
23331
23834
|
_not_: Optional["scout_checks_api_ChecklistSearchQuery"] = None
|
|
23835
|
+
_workspace: Optional[str] = None
|
|
23332
23836
|
|
|
23333
23837
|
@builtins.classmethod
|
|
23334
23838
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -23341,7 +23845,8 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
|
|
|
23341
23845
|
'author_rid': ConjureFieldDefinition('authorRid', scout_rids_api_UserRid),
|
|
23342
23846
|
'assignee_rid': ConjureFieldDefinition('assigneeRid', scout_rids_api_UserRid),
|
|
23343
23847
|
'is_published': ConjureFieldDefinition('isPublished', bool),
|
|
23344
|
-
'not_': ConjureFieldDefinition('not', scout_checks_api_ChecklistSearchQuery)
|
|
23848
|
+
'not_': ConjureFieldDefinition('not', scout_checks_api_ChecklistSearchQuery),
|
|
23849
|
+
'workspace': ConjureFieldDefinition('workspace', api_ids_WorkspaceId)
|
|
23345
23850
|
}
|
|
23346
23851
|
|
|
23347
23852
|
def __init__(
|
|
@@ -23355,10 +23860,11 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
|
|
|
23355
23860
|
assignee_rid: Optional[str] = None,
|
|
23356
23861
|
is_published: Optional[bool] = None,
|
|
23357
23862
|
not_: Optional["scout_checks_api_ChecklistSearchQuery"] = None,
|
|
23863
|
+
workspace: Optional[str] = None,
|
|
23358
23864
|
type_of_union: Optional[str] = None
|
|
23359
23865
|
) -> None:
|
|
23360
23866
|
if type_of_union is None:
|
|
23361
|
-
if (and_ is not None) + (or_ is not None) + (search_text is not None) + (label is not None) + (property is not None) + (author_rid is not None) + (assignee_rid is not None) + (is_published is not None) + (not_ is not None) != 1:
|
|
23867
|
+
if (and_ is not None) + (or_ is not None) + (search_text is not None) + (label is not None) + (property is not None) + (author_rid is not None) + (assignee_rid is not None) + (is_published is not None) + (not_ is not None) + (workspace is not None) != 1:
|
|
23362
23868
|
raise ValueError('a union must contain a single member')
|
|
23363
23869
|
|
|
23364
23870
|
if and_ is not None:
|
|
@@ -23388,6 +23894,9 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
|
|
|
23388
23894
|
if not_ is not None:
|
|
23389
23895
|
self._not_ = not_
|
|
23390
23896
|
self._type = 'not'
|
|
23897
|
+
if workspace is not None:
|
|
23898
|
+
self._workspace = workspace
|
|
23899
|
+
self._type = 'workspace'
|
|
23391
23900
|
|
|
23392
23901
|
elif type_of_union == 'and':
|
|
23393
23902
|
if and_ is None:
|
|
@@ -23434,6 +23943,11 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
|
|
|
23434
23943
|
raise ValueError('a union value must not be None')
|
|
23435
23944
|
self._not_ = not_
|
|
23436
23945
|
self._type = 'not'
|
|
23946
|
+
elif type_of_union == 'workspace':
|
|
23947
|
+
if workspace is None:
|
|
23948
|
+
raise ValueError('a union value must not be None')
|
|
23949
|
+
self._workspace = workspace
|
|
23950
|
+
self._type = 'workspace'
|
|
23437
23951
|
|
|
23438
23952
|
@builtins.property
|
|
23439
23953
|
def and_(self) -> Optional[List["scout_checks_api_ChecklistSearchQuery"]]:
|
|
@@ -23471,6 +23985,10 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
|
|
|
23471
23985
|
def not_(self) -> Optional["scout_checks_api_ChecklistSearchQuery"]:
|
|
23472
23986
|
return self._not_
|
|
23473
23987
|
|
|
23988
|
+
@builtins.property
|
|
23989
|
+
def workspace(self) -> Optional[str]:
|
|
23990
|
+
return self._workspace
|
|
23991
|
+
|
|
23474
23992
|
def accept(self, visitor) -> Any:
|
|
23475
23993
|
if not isinstance(visitor, scout_checks_api_ChecklistSearchQueryVisitor):
|
|
23476
23994
|
raise ValueError('{} is not an instance of scout_checks_api_ChecklistSearchQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -23492,6 +24010,8 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
|
|
|
23492
24010
|
return visitor._is_published(self.is_published)
|
|
23493
24011
|
if self._type == 'not' and self.not_ is not None:
|
|
23494
24012
|
return visitor._not(self.not_)
|
|
24013
|
+
if self._type == 'workspace' and self.workspace is not None:
|
|
24014
|
+
return visitor._workspace(self.workspace)
|
|
23495
24015
|
|
|
23496
24016
|
|
|
23497
24017
|
scout_checks_api_ChecklistSearchQuery.__name__ = "ChecklistSearchQuery"
|
|
@@ -23537,6 +24057,10 @@ class scout_checks_api_ChecklistSearchQueryVisitor:
|
|
|
23537
24057
|
def _not(self, not_: "scout_checks_api_ChecklistSearchQuery") -> Any:
|
|
23538
24058
|
pass
|
|
23539
24059
|
|
|
24060
|
+
@abstractmethod
|
|
24061
|
+
def _workspace(self, workspace: str) -> Any:
|
|
24062
|
+
pass
|
|
24063
|
+
|
|
23540
24064
|
|
|
23541
24065
|
scout_checks_api_ChecklistSearchQueryVisitor.__name__ = "ChecklistSearchQueryVisitor"
|
|
23542
24066
|
scout_checks_api_ChecklistSearchQueryVisitor.__qualname__ = "ChecklistSearchQueryVisitor"
|
|
@@ -24018,10 +24542,11 @@ If neither is specified, branch = "main" is the default.
|
|
|
24018
24542
|
_decoder = ConjureDecoder()
|
|
24019
24543
|
return _decoder.decode(_response.json(), List[scout_checks_api_Check], self._return_none_for_unknown_union_types)
|
|
24020
24544
|
|
|
24021
|
-
def get_all_labels_and_properties(self, auth_header: str) -> "scout_checks_api_GetAllLabelsAndPropertiesResponse":
|
|
24545
|
+
def get_all_labels_and_properties(self, auth_header: str, workspaces: List[str] = None) -> "scout_checks_api_GetAllLabelsAndPropertiesResponse":
|
|
24022
24546
|
"""
|
|
24023
24547
|
Returns all labels and properties.
|
|
24024
24548
|
"""
|
|
24549
|
+
workspaces = workspaces if workspaces is not None else []
|
|
24025
24550
|
|
|
24026
24551
|
_headers: Dict[str, Any] = {
|
|
24027
24552
|
'Accept': 'application/json',
|
|
@@ -24029,6 +24554,7 @@ If neither is specified, branch = "main" is the default.
|
|
|
24029
24554
|
}
|
|
24030
24555
|
|
|
24031
24556
|
_params: Dict[str, Any] = {
|
|
24557
|
+
'workspaces': workspaces,
|
|
24032
24558
|
}
|
|
24033
24559
|
|
|
24034
24560
|
_path_params: Dict[str, Any] = {
|
|
@@ -24354,12 +24880,13 @@ class scout_checks_api_CreateChecklistRequest(ConjureBeanType):
|
|
|
24354
24880
|
'properties': ConjureFieldDefinition('properties', Dict[api_PropertyName, api_PropertyValue]),
|
|
24355
24881
|
'labels': ConjureFieldDefinition('labels', List[api_Label]),
|
|
24356
24882
|
'checklist_variables': ConjureFieldDefinition('checklistVariables', List[scout_checks_api_UnresolvedChecklistVariable]),
|
|
24357
|
-
'is_published': ConjureFieldDefinition('isPublished', OptionalTypeWrapper[bool])
|
|
24883
|
+
'is_published': ConjureFieldDefinition('isPublished', OptionalTypeWrapper[bool]),
|
|
24884
|
+
'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
|
|
24358
24885
|
}
|
|
24359
24886
|
|
|
24360
|
-
__slots__: List[str] = ['_commit_message', '_assignee_rid', '_title', '_description', '_functions', '_checks', '_properties', '_labels', '_checklist_variables', '_is_published']
|
|
24887
|
+
__slots__: List[str] = ['_commit_message', '_assignee_rid', '_title', '_description', '_functions', '_checks', '_properties', '_labels', '_checklist_variables', '_is_published', '_workspace']
|
|
24361
24888
|
|
|
24362
|
-
def __init__(self, assignee_rid: str, checklist_variables: List["scout_checks_api_UnresolvedChecklistVariable"], checks: List["scout_checks_api_CreateChecklistEntryRequest"], commit_message: str, description: str, functions: Dict[str, "scout_checks_api_CreateFunctionRequest"], labels: List[str], properties: Dict[str, str], title: str, is_published: Optional[bool] = None) -> None:
|
|
24889
|
+
def __init__(self, assignee_rid: str, checklist_variables: List["scout_checks_api_UnresolvedChecklistVariable"], checks: List["scout_checks_api_CreateChecklistEntryRequest"], commit_message: str, description: str, functions: Dict[str, "scout_checks_api_CreateFunctionRequest"], labels: List[str], properties: Dict[str, str], title: str, is_published: Optional[bool] = None, workspace: Optional[str] = None) -> None:
|
|
24363
24890
|
self._commit_message = commit_message
|
|
24364
24891
|
self._assignee_rid = assignee_rid
|
|
24365
24892
|
self._title = title
|
|
@@ -24370,6 +24897,7 @@ class scout_checks_api_CreateChecklistRequest(ConjureBeanType):
|
|
|
24370
24897
|
self._labels = labels
|
|
24371
24898
|
self._checklist_variables = checklist_variables
|
|
24372
24899
|
self._is_published = is_published
|
|
24900
|
+
self._workspace = workspace
|
|
24373
24901
|
|
|
24374
24902
|
@builtins.property
|
|
24375
24903
|
def commit_message(self) -> str:
|
|
@@ -24421,6 +24949,14 @@ If variable `a` depends on variable `b`, then `b` must be defined before `a` in
|
|
|
24421
24949
|
"""
|
|
24422
24950
|
return self._is_published
|
|
24423
24951
|
|
|
24952
|
+
@builtins.property
|
|
24953
|
+
def workspace(self) -> Optional[str]:
|
|
24954
|
+
"""
|
|
24955
|
+
The workspace in which to create the checklist. If not provided, the checklist will be created in the default workspace for
|
|
24956
|
+
the user's organization, if the default workspace for the organization is configured.
|
|
24957
|
+
"""
|
|
24958
|
+
return self._workspace
|
|
24959
|
+
|
|
24424
24960
|
|
|
24425
24961
|
scout_checks_api_CreateChecklistRequest.__name__ = "CreateChecklistRequest"
|
|
24426
24962
|
scout_checks_api_CreateChecklistRequest.__qualname__ = "CreateChecklistRequest"
|
|
@@ -58355,13 +58891,15 @@ class scout_metadata_ListPropertiesAndLabelsRequest(ConjureBeanType):
|
|
|
58355
58891
|
@builtins.classmethod
|
|
58356
58892
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
58357
58893
|
return {
|
|
58358
|
-
'resource_types': ConjureFieldDefinition('resourceTypes', OptionalTypeWrapper[List[scout_metadata_ResourceType]])
|
|
58894
|
+
'resource_types': ConjureFieldDefinition('resourceTypes', OptionalTypeWrapper[List[scout_metadata_ResourceType]]),
|
|
58895
|
+
'workspaces': ConjureFieldDefinition('workspaces', OptionalTypeWrapper[List[api_ids_WorkspaceId]])
|
|
58359
58896
|
}
|
|
58360
58897
|
|
|
58361
|
-
__slots__: List[str] = ['_resource_types']
|
|
58898
|
+
__slots__: List[str] = ['_resource_types', '_workspaces']
|
|
58362
58899
|
|
|
58363
|
-
def __init__(self, resource_types: Optional[List["scout_metadata_ResourceType"]] = None) -> None:
|
|
58900
|
+
def __init__(self, resource_types: Optional[List["scout_metadata_ResourceType"]] = None, workspaces: Optional[List[str]] = None) -> None:
|
|
58364
58901
|
self._resource_types = resource_types
|
|
58902
|
+
self._workspaces = workspaces
|
|
58365
58903
|
|
|
58366
58904
|
@builtins.property
|
|
58367
58905
|
def resource_types(self) -> Optional[List["scout_metadata_ResourceType"]]:
|
|
@@ -58370,6 +58908,13 @@ class scout_metadata_ListPropertiesAndLabelsRequest(ConjureBeanType):
|
|
|
58370
58908
|
"""
|
|
58371
58909
|
return self._resource_types
|
|
58372
58910
|
|
|
58911
|
+
@builtins.property
|
|
58912
|
+
def workspaces(self) -> Optional[List[str]]:
|
|
58913
|
+
"""
|
|
58914
|
+
If omitted, results will come from all workspaces the user belongs to.
|
|
58915
|
+
"""
|
|
58916
|
+
return self._workspaces
|
|
58917
|
+
|
|
58373
58918
|
|
|
58374
58919
|
scout_metadata_ListPropertiesAndLabelsRequest.__name__ = "ListPropertiesAndLabelsRequest"
|
|
58375
58920
|
scout_metadata_ListPropertiesAndLabelsRequest.__qualname__ = "ListPropertiesAndLabelsRequest"
|
|
@@ -58521,12 +59066,13 @@ class scout_notebook_api_CreateNotebookRequest(ConjureBeanType):
|
|
|
58521
59066
|
'content': ConjureFieldDefinition('content', OptionalTypeWrapper[scout_workbookcommon_api_WorkbookContent]),
|
|
58522
59067
|
'content_v2': ConjureFieldDefinition('contentV2', OptionalTypeWrapper[scout_workbookcommon_api_UnifiedWorkbookContent]),
|
|
58523
59068
|
'event_refs': ConjureFieldDefinition('eventRefs', List[scout_workbookcommon_api_EventReference]),
|
|
58524
|
-
'check_alert_refs': ConjureFieldDefinition('checkAlertRefs', List[scout_workbookcommon_api_CheckAlertReference])
|
|
59069
|
+
'check_alert_refs': ConjureFieldDefinition('checkAlertRefs', List[scout_workbookcommon_api_CheckAlertReference]),
|
|
59070
|
+
'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
|
|
58525
59071
|
}
|
|
58526
59072
|
|
|
58527
|
-
__slots__: List[str] = ['_title', '_description', '_notebook_type', '_is_draft', '_state_as_json', '_charts', '_run_rid', '_data_scope', '_layout', '_content', '_content_v2', '_event_refs', '_check_alert_refs']
|
|
59073
|
+
__slots__: List[str] = ['_title', '_description', '_notebook_type', '_is_draft', '_state_as_json', '_charts', '_run_rid', '_data_scope', '_layout', '_content', '_content_v2', '_event_refs', '_check_alert_refs', '_workspace']
|
|
58528
59074
|
|
|
58529
|
-
def __init__(self, check_alert_refs: List["scout_workbookcommon_api_CheckAlertReference"], description: str, event_refs: List["scout_workbookcommon_api_EventReference"], is_draft: bool, layout: "scout_layout_api_WorkbookLayout", state_as_json: str, title: str, charts: Optional[List["scout_notebook_api_ChartWithOverlays"]] = None, content: Optional["scout_workbookcommon_api_WorkbookContent"] = None, content_v2: Optional["scout_workbookcommon_api_UnifiedWorkbookContent"] = None, data_scope: Optional["scout_notebook_api_NotebookDataScope"] = None, notebook_type: Optional["scout_notebook_api_NotebookType"] = None, run_rid: Optional[str] = None) -> None:
|
|
59075
|
+
def __init__(self, check_alert_refs: List["scout_workbookcommon_api_CheckAlertReference"], description: str, event_refs: List["scout_workbookcommon_api_EventReference"], is_draft: bool, layout: "scout_layout_api_WorkbookLayout", state_as_json: str, title: str, charts: Optional[List["scout_notebook_api_ChartWithOverlays"]] = None, content: Optional["scout_workbookcommon_api_WorkbookContent"] = None, content_v2: Optional["scout_workbookcommon_api_UnifiedWorkbookContent"] = None, data_scope: Optional["scout_notebook_api_NotebookDataScope"] = None, notebook_type: Optional["scout_notebook_api_NotebookType"] = None, run_rid: Optional[str] = None, workspace: Optional[str] = None) -> None:
|
|
58530
59076
|
self._title = title
|
|
58531
59077
|
self._description = description
|
|
58532
59078
|
self._notebook_type = notebook_type
|
|
@@ -58540,6 +59086,7 @@ class scout_notebook_api_CreateNotebookRequest(ConjureBeanType):
|
|
|
58540
59086
|
self._content_v2 = content_v2
|
|
58541
59087
|
self._event_refs = event_refs
|
|
58542
59088
|
self._check_alert_refs = check_alert_refs
|
|
59089
|
+
self._workspace = workspace
|
|
58543
59090
|
|
|
58544
59091
|
@builtins.property
|
|
58545
59092
|
def title(self) -> str:
|
|
@@ -58611,6 +59158,14 @@ class scout_notebook_api_CreateNotebookRequest(ConjureBeanType):
|
|
|
58611
59158
|
"""
|
|
58612
59159
|
return self._check_alert_refs
|
|
58613
59160
|
|
|
59161
|
+
@builtins.property
|
|
59162
|
+
def workspace(self) -> Optional[str]:
|
|
59163
|
+
"""
|
|
59164
|
+
The workspace in which to create the workbook. If not provided, the workbook will be created in the default workspace for
|
|
59165
|
+
the user's organization, if the default workspace for the organization is configured.
|
|
59166
|
+
"""
|
|
59167
|
+
return self._workspace
|
|
59168
|
+
|
|
58614
59169
|
|
|
58615
59170
|
scout_notebook_api_CreateNotebookRequest.__name__ = "CreateNotebookRequest"
|
|
58616
59171
|
scout_notebook_api_CreateNotebookRequest.__qualname__ = "CreateNotebookRequest"
|
|
@@ -58999,6 +59554,7 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
|
|
|
58999
59554
|
_notebook_type: Optional["scout_notebook_api_NotebookType"] = None
|
|
59000
59555
|
_draft_state: Optional[bool] = None
|
|
59001
59556
|
_archived: Optional[bool] = None
|
|
59557
|
+
_workspace: Optional[str] = None
|
|
59002
59558
|
|
|
59003
59559
|
@builtins.classmethod
|
|
59004
59560
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -59014,7 +59570,8 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
|
|
|
59014
59570
|
'run_rid': ConjureFieldDefinition('runRid', scout_run_api_RunRid),
|
|
59015
59571
|
'notebook_type': ConjureFieldDefinition('notebookType', scout_notebook_api_NotebookType),
|
|
59016
59572
|
'draft_state': ConjureFieldDefinition('draftState', bool),
|
|
59017
|
-
'archived': ConjureFieldDefinition('archived', bool)
|
|
59573
|
+
'archived': ConjureFieldDefinition('archived', bool),
|
|
59574
|
+
'workspace': ConjureFieldDefinition('workspace', api_ids_WorkspaceId)
|
|
59018
59575
|
}
|
|
59019
59576
|
|
|
59020
59577
|
def __init__(
|
|
@@ -59031,10 +59588,11 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
|
|
|
59031
59588
|
notebook_type: Optional["scout_notebook_api_NotebookType"] = None,
|
|
59032
59589
|
draft_state: Optional[bool] = None,
|
|
59033
59590
|
archived: Optional[bool] = None,
|
|
59591
|
+
workspace: Optional[str] = None,
|
|
59034
59592
|
type_of_union: Optional[str] = None
|
|
59035
59593
|
) -> None:
|
|
59036
59594
|
if type_of_union is None:
|
|
59037
|
-
if (and_ is not None) + (or_ is not None) + (exact_match is not None) + (search_text is not None) + (label is not None) + (property is not None) + (asset_rid is not None) + (author_rid is not None) + (run_rid is not None) + (notebook_type is not None) + (draft_state is not None) + (archived is not None) != 1:
|
|
59595
|
+
if (and_ is not None) + (or_ is not None) + (exact_match is not None) + (search_text is not None) + (label is not None) + (property is not None) + (asset_rid is not None) + (author_rid is not None) + (run_rid is not None) + (notebook_type is not None) + (draft_state is not None) + (archived is not None) + (workspace is not None) != 1:
|
|
59038
59596
|
raise ValueError('a union must contain a single member')
|
|
59039
59597
|
|
|
59040
59598
|
if and_ is not None:
|
|
@@ -59073,6 +59631,9 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
|
|
|
59073
59631
|
if archived is not None:
|
|
59074
59632
|
self._archived = archived
|
|
59075
59633
|
self._type = 'archived'
|
|
59634
|
+
if workspace is not None:
|
|
59635
|
+
self._workspace = workspace
|
|
59636
|
+
self._type = 'workspace'
|
|
59076
59637
|
|
|
59077
59638
|
elif type_of_union == 'and':
|
|
59078
59639
|
if and_ is None:
|
|
@@ -59134,6 +59695,11 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
|
|
|
59134
59695
|
raise ValueError('a union value must not be None')
|
|
59135
59696
|
self._archived = archived
|
|
59136
59697
|
self._type = 'archived'
|
|
59698
|
+
elif type_of_union == 'workspace':
|
|
59699
|
+
if workspace is None:
|
|
59700
|
+
raise ValueError('a union value must not be None')
|
|
59701
|
+
self._workspace = workspace
|
|
59702
|
+
self._type = 'workspace'
|
|
59137
59703
|
|
|
59138
59704
|
@builtins.property
|
|
59139
59705
|
def and_(self) -> Optional[List["scout_notebook_api_SearchNotebooksQuery"]]:
|
|
@@ -59186,6 +59752,10 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
|
|
|
59186
59752
|
def archived(self) -> Optional[bool]:
|
|
59187
59753
|
return self._archived
|
|
59188
59754
|
|
|
59755
|
+
@builtins.property
|
|
59756
|
+
def workspace(self) -> Optional[str]:
|
|
59757
|
+
return self._workspace
|
|
59758
|
+
|
|
59189
59759
|
def accept(self, visitor) -> Any:
|
|
59190
59760
|
if not isinstance(visitor, scout_notebook_api_SearchNotebooksQueryVisitor):
|
|
59191
59761
|
raise ValueError('{} is not an instance of scout_notebook_api_SearchNotebooksQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -59213,6 +59783,8 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
|
|
|
59213
59783
|
return visitor._draft_state(self.draft_state)
|
|
59214
59784
|
if self._type == 'archived' and self.archived is not None:
|
|
59215
59785
|
return visitor._archived(self.archived)
|
|
59786
|
+
if self._type == 'workspace' and self.workspace is not None:
|
|
59787
|
+
return visitor._workspace(self.workspace)
|
|
59216
59788
|
|
|
59217
59789
|
|
|
59218
59790
|
scout_notebook_api_SearchNotebooksQuery.__name__ = "SearchNotebooksQuery"
|
|
@@ -59270,6 +59842,10 @@ class scout_notebook_api_SearchNotebooksQueryVisitor:
|
|
|
59270
59842
|
def _archived(self, archived: bool) -> Any:
|
|
59271
59843
|
pass
|
|
59272
59844
|
|
|
59845
|
+
@abstractmethod
|
|
59846
|
+
def _workspace(self, workspace: str) -> Any:
|
|
59847
|
+
pass
|
|
59848
|
+
|
|
59273
59849
|
|
|
59274
59850
|
scout_notebook_api_SearchNotebooksQueryVisitor.__name__ = "SearchNotebooksQueryVisitor"
|
|
59275
59851
|
scout_notebook_api_SearchNotebooksQueryVisitor.__qualname__ = "SearchNotebooksQueryVisitor"
|
|
@@ -59973,12 +60549,13 @@ class scout_run_api_CreateRunRequest(ConjureBeanType):
|
|
|
59973
60549
|
'data_sources': ConjureFieldDefinition('dataSources', Dict[scout_api_DataSourceRefName, scout_run_api_CreateRunDataSource]),
|
|
59974
60550
|
'attachments': ConjureFieldDefinition('attachments', List[api_rids_AttachmentRid]),
|
|
59975
60551
|
'asset': ConjureFieldDefinition('asset', OptionalTypeWrapper[scout_rids_api_AssetRid]),
|
|
59976
|
-
'assets': ConjureFieldDefinition('assets', List[scout_rids_api_AssetRid])
|
|
60552
|
+
'assets': ConjureFieldDefinition('assets', List[scout_rids_api_AssetRid]),
|
|
60553
|
+
'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
|
|
59977
60554
|
}
|
|
59978
60555
|
|
|
59979
|
-
__slots__: List[str] = ['_title', '_description', '_start_time', '_end_time', '_properties', '_labels', '_links', '_run_prefix', '_data_sources', '_attachments', '_asset', '_assets']
|
|
60556
|
+
__slots__: List[str] = ['_title', '_description', '_start_time', '_end_time', '_properties', '_labels', '_links', '_run_prefix', '_data_sources', '_attachments', '_asset', '_assets', '_workspace']
|
|
59980
60557
|
|
|
59981
|
-
def __init__(self, assets: List[str], attachments: List[str], data_sources: Dict[str, "scout_run_api_CreateRunDataSource"], description: str, labels: List[str], links: List["scout_run_api_Link"], properties: Dict[str, str], start_time: "scout_run_api_UtcTimestamp", title: str, asset: Optional[str] = None, end_time: Optional["scout_run_api_UtcTimestamp"] = None, run_prefix: Optional[str] = None) -> None:
|
|
60558
|
+
def __init__(self, assets: List[str], attachments: List[str], data_sources: Dict[str, "scout_run_api_CreateRunDataSource"], description: str, labels: List[str], links: List["scout_run_api_Link"], properties: Dict[str, str], start_time: "scout_run_api_UtcTimestamp", title: str, asset: Optional[str] = None, end_time: Optional["scout_run_api_UtcTimestamp"] = None, run_prefix: Optional[str] = None, workspace: Optional[str] = None) -> None:
|
|
59982
60559
|
self._title = title
|
|
59983
60560
|
self._description = description
|
|
59984
60561
|
self._start_time = start_time
|
|
@@ -59991,6 +60568,7 @@ class scout_run_api_CreateRunRequest(ConjureBeanType):
|
|
|
59991
60568
|
self._attachments = attachments
|
|
59992
60569
|
self._asset = asset
|
|
59993
60570
|
self._assets = assets
|
|
60571
|
+
self._workspace = workspace
|
|
59994
60572
|
|
|
59995
60573
|
@builtins.property
|
|
59996
60574
|
def title(self) -> str:
|
|
@@ -60040,6 +60618,16 @@ class scout_run_api_CreateRunRequest(ConjureBeanType):
|
|
|
60040
60618
|
def assets(self) -> List[str]:
|
|
60041
60619
|
return self._assets
|
|
60042
60620
|
|
|
60621
|
+
@builtins.property
|
|
60622
|
+
def workspace(self) -> Optional[str]:
|
|
60623
|
+
"""
|
|
60624
|
+
The workspace in which to create the run. If not provided, the run will be created in
|
|
60625
|
+
the default workspace for the user's organization, if the default workspace for the
|
|
60626
|
+
organization is configured.
|
|
60627
|
+
All data sources, attachments, and assets must be in the same workspace.
|
|
60628
|
+
"""
|
|
60629
|
+
return self._workspace
|
|
60630
|
+
|
|
60043
60631
|
|
|
60044
60632
|
scout_run_api_CreateRunRequest.__name__ = "CreateRunRequest"
|
|
60045
60633
|
scout_run_api_CreateRunRequest.__qualname__ = "CreateRunRequest"
|
|
@@ -60875,6 +61463,7 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
60875
61463
|
_check_alert_states_filter: Optional["scout_run_api_CheckAlertStatesFilter"] = None
|
|
60876
61464
|
_and_: Optional[List["scout_run_api_SearchQuery"]] = None
|
|
60877
61465
|
_or_: Optional[List["scout_run_api_SearchQuery"]] = None
|
|
61466
|
+
_workspace: Optional[str] = None
|
|
60878
61467
|
|
|
60879
61468
|
@builtins.classmethod
|
|
60880
61469
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -60893,7 +61482,8 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
60893
61482
|
'run_prefix': ConjureFieldDefinition('runPrefix', str),
|
|
60894
61483
|
'check_alert_states_filter': ConjureFieldDefinition('checkAlertStatesFilter', scout_run_api_CheckAlertStatesFilter),
|
|
60895
61484
|
'and_': ConjureFieldDefinition('and', List[scout_run_api_SearchQuery]),
|
|
60896
|
-
'or_': ConjureFieldDefinition('or', List[scout_run_api_SearchQuery])
|
|
61485
|
+
'or_': ConjureFieldDefinition('or', List[scout_run_api_SearchQuery]),
|
|
61486
|
+
'workspace': ConjureFieldDefinition('workspace', api_ids_WorkspaceId)
|
|
60897
61487
|
}
|
|
60898
61488
|
|
|
60899
61489
|
def __init__(
|
|
@@ -60913,10 +61503,11 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
60913
61503
|
check_alert_states_filter: Optional["scout_run_api_CheckAlertStatesFilter"] = None,
|
|
60914
61504
|
and_: Optional[List["scout_run_api_SearchQuery"]] = None,
|
|
60915
61505
|
or_: Optional[List["scout_run_api_SearchQuery"]] = None,
|
|
61506
|
+
workspace: Optional[str] = None,
|
|
60916
61507
|
type_of_union: Optional[str] = None
|
|
60917
61508
|
) -> None:
|
|
60918
61509
|
if type_of_union is None:
|
|
60919
|
-
if (start_time_inclusive is not None) + (end_time_inclusive is not None) + (exact_match is not None) + (search_text is not None) + (asset is not None) + (label is not None) + (property is not None) + (data_source_series_tag is not None) + (data_source_ref_name is not None) + (data_source is not None) + (run_number is not None) + (run_prefix is not None) + (check_alert_states_filter is not None) + (and_ is not None) + (or_ is not None) != 1:
|
|
61510
|
+
if (start_time_inclusive is not None) + (end_time_inclusive is not None) + (exact_match is not None) + (search_text is not None) + (asset is not None) + (label is not None) + (property is not None) + (data_source_series_tag is not None) + (data_source_ref_name is not None) + (data_source is not None) + (run_number is not None) + (run_prefix is not None) + (check_alert_states_filter is not None) + (and_ is not None) + (or_ is not None) + (workspace is not None) != 1:
|
|
60920
61511
|
raise ValueError('a union must contain a single member')
|
|
60921
61512
|
|
|
60922
61513
|
if start_time_inclusive is not None:
|
|
@@ -60964,6 +61555,9 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
60964
61555
|
if or_ is not None:
|
|
60965
61556
|
self._or_ = or_
|
|
60966
61557
|
self._type = 'or'
|
|
61558
|
+
if workspace is not None:
|
|
61559
|
+
self._workspace = workspace
|
|
61560
|
+
self._type = 'workspace'
|
|
60967
61561
|
|
|
60968
61562
|
elif type_of_union == 'startTimeInclusive':
|
|
60969
61563
|
if start_time_inclusive is None:
|
|
@@ -61040,6 +61634,11 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
61040
61634
|
raise ValueError('a union value must not be None')
|
|
61041
61635
|
self._or_ = or_
|
|
61042
61636
|
self._type = 'or'
|
|
61637
|
+
elif type_of_union == 'workspace':
|
|
61638
|
+
if workspace is None:
|
|
61639
|
+
raise ValueError('a union value must not be None')
|
|
61640
|
+
self._workspace = workspace
|
|
61641
|
+
self._type = 'workspace'
|
|
61043
61642
|
|
|
61044
61643
|
@builtins.property
|
|
61045
61644
|
def start_time_inclusive(self) -> Optional["scout_run_api_UtcTimestamp"]:
|
|
@@ -61107,6 +61706,10 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
61107
61706
|
def or_(self) -> Optional[List["scout_run_api_SearchQuery"]]:
|
|
61108
61707
|
return self._or_
|
|
61109
61708
|
|
|
61709
|
+
@builtins.property
|
|
61710
|
+
def workspace(self) -> Optional[str]:
|
|
61711
|
+
return self._workspace
|
|
61712
|
+
|
|
61110
61713
|
def accept(self, visitor) -> Any:
|
|
61111
61714
|
if not isinstance(visitor, scout_run_api_SearchQueryVisitor):
|
|
61112
61715
|
raise ValueError('{} is not an instance of scout_run_api_SearchQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -61140,6 +61743,8 @@ class scout_run_api_SearchQuery(ConjureUnionType):
|
|
|
61140
61743
|
return visitor._and(self.and_)
|
|
61141
61744
|
if self._type == 'or' and self.or_ is not None:
|
|
61142
61745
|
return visitor._or(self.or_)
|
|
61746
|
+
if self._type == 'workspace' and self.workspace is not None:
|
|
61747
|
+
return visitor._workspace(self.workspace)
|
|
61143
61748
|
|
|
61144
61749
|
|
|
61145
61750
|
scout_run_api_SearchQuery.__name__ = "SearchQuery"
|
|
@@ -61209,6 +61814,10 @@ class scout_run_api_SearchQueryVisitor:
|
|
|
61209
61814
|
def _or(self, or_: List["scout_run_api_SearchQuery"]) -> Any:
|
|
61210
61815
|
pass
|
|
61211
61816
|
|
|
61817
|
+
@abstractmethod
|
|
61818
|
+
def _workspace(self, workspace: str) -> Any:
|
|
61819
|
+
pass
|
|
61820
|
+
|
|
61212
61821
|
|
|
61213
61822
|
scout_run_api_SearchQueryVisitor.__name__ = "SearchQueryVisitor"
|
|
61214
61823
|
scout_run_api_SearchQueryVisitor.__qualname__ = "SearchQueryVisitor"
|
|
@@ -61742,12 +62351,13 @@ class scout_template_api_CreateTemplateRequest(ConjureBeanType):
|
|
|
61742
62351
|
'charts': ConjureFieldDefinition('charts', OptionalTypeWrapper[List[scout_rids_api_VersionedVizId]]),
|
|
61743
62352
|
'layout': ConjureFieldDefinition('layout', scout_layout_api_WorkbookLayout),
|
|
61744
62353
|
'content': ConjureFieldDefinition('content', scout_workbookcommon_api_WorkbookContent),
|
|
61745
|
-
'message': ConjureFieldDefinition('message', str)
|
|
62354
|
+
'message': ConjureFieldDefinition('message', str),
|
|
62355
|
+
'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
|
|
61746
62356
|
}
|
|
61747
62357
|
|
|
61748
|
-
__slots__: List[str] = ['_title', '_description', '_labels', '_properties', '_is_published', '_charts', '_layout', '_content', '_message']
|
|
62358
|
+
__slots__: List[str] = ['_title', '_description', '_labels', '_properties', '_is_published', '_charts', '_layout', '_content', '_message', '_workspace']
|
|
61749
62359
|
|
|
61750
|
-
def __init__(self, content: "scout_workbookcommon_api_WorkbookContent", description: str, labels: List[str], layout: "scout_layout_api_WorkbookLayout", message: str, properties: Dict[str, str], title: str, charts: Optional[List["scout_rids_api_VersionedVizId"]] = None, is_published: Optional[bool] = None) -> None:
|
|
62360
|
+
def __init__(self, content: "scout_workbookcommon_api_WorkbookContent", description: str, labels: List[str], layout: "scout_layout_api_WorkbookLayout", message: str, properties: Dict[str, str], title: str, charts: Optional[List["scout_rids_api_VersionedVizId"]] = None, is_published: Optional[bool] = None, workspace: Optional[str] = None) -> None:
|
|
61751
62361
|
self._title = title
|
|
61752
62362
|
self._description = description
|
|
61753
62363
|
self._labels = labels
|
|
@@ -61757,6 +62367,7 @@ class scout_template_api_CreateTemplateRequest(ConjureBeanType):
|
|
|
61757
62367
|
self._layout = layout
|
|
61758
62368
|
self._content = content
|
|
61759
62369
|
self._message = message
|
|
62370
|
+
self._workspace = workspace
|
|
61760
62371
|
|
|
61761
62372
|
@builtins.property
|
|
61762
62373
|
def title(self) -> str:
|
|
@@ -61797,6 +62408,14 @@ class scout_template_api_CreateTemplateRequest(ConjureBeanType):
|
|
|
61797
62408
|
def message(self) -> str:
|
|
61798
62409
|
return self._message
|
|
61799
62410
|
|
|
62411
|
+
@builtins.property
|
|
62412
|
+
def workspace(self) -> Optional[str]:
|
|
62413
|
+
"""
|
|
62414
|
+
The workspace in which to create the template. If not provided, the template will be created in the default workspace for
|
|
62415
|
+
the user's organization, if the default workspace for the organization is configured.
|
|
62416
|
+
"""
|
|
62417
|
+
return self._workspace
|
|
62418
|
+
|
|
61800
62419
|
|
|
61801
62420
|
scout_template_api_CreateTemplateRequest.__name__ = "CreateTemplateRequest"
|
|
61802
62421
|
scout_template_api_CreateTemplateRequest.__qualname__ = "CreateTemplateRequest"
|
|
@@ -61929,6 +62548,7 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
|
|
|
61929
62548
|
_created_by: Optional[str] = None
|
|
61930
62549
|
_is_archived: Optional[bool] = None
|
|
61931
62550
|
_is_published: Optional[bool] = None
|
|
62551
|
+
_workspace: Optional[str] = None
|
|
61932
62552
|
|
|
61933
62553
|
@builtins.classmethod
|
|
61934
62554
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -61941,7 +62561,8 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
|
|
|
61941
62561
|
'property': ConjureFieldDefinition('property', api_Property),
|
|
61942
62562
|
'created_by': ConjureFieldDefinition('createdBy', scout_rids_api_UserRid),
|
|
61943
62563
|
'is_archived': ConjureFieldDefinition('isArchived', bool),
|
|
61944
|
-
'is_published': ConjureFieldDefinition('isPublished', bool)
|
|
62564
|
+
'is_published': ConjureFieldDefinition('isPublished', bool),
|
|
62565
|
+
'workspace': ConjureFieldDefinition('workspace', api_ids_WorkspaceId)
|
|
61945
62566
|
}
|
|
61946
62567
|
|
|
61947
62568
|
def __init__(
|
|
@@ -61955,10 +62576,11 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
|
|
|
61955
62576
|
created_by: Optional[str] = None,
|
|
61956
62577
|
is_archived: Optional[bool] = None,
|
|
61957
62578
|
is_published: Optional[bool] = None,
|
|
62579
|
+
workspace: Optional[str] = None,
|
|
61958
62580
|
type_of_union: Optional[str] = None
|
|
61959
62581
|
) -> None:
|
|
61960
62582
|
if type_of_union is None:
|
|
61961
|
-
if (and_ is not None) + (or_ is not None) + (exact_match is not None) + (search_text is not None) + (label is not None) + (property is not None) + (created_by is not None) + (is_archived is not None) + (is_published is not None) != 1:
|
|
62583
|
+
if (and_ is not None) + (or_ is not None) + (exact_match is not None) + (search_text is not None) + (label is not None) + (property is not None) + (created_by is not None) + (is_archived is not None) + (is_published is not None) + (workspace is not None) != 1:
|
|
61962
62584
|
raise ValueError('a union must contain a single member')
|
|
61963
62585
|
|
|
61964
62586
|
if and_ is not None:
|
|
@@ -61988,6 +62610,9 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
|
|
|
61988
62610
|
if is_published is not None:
|
|
61989
62611
|
self._is_published = is_published
|
|
61990
62612
|
self._type = 'isPublished'
|
|
62613
|
+
if workspace is not None:
|
|
62614
|
+
self._workspace = workspace
|
|
62615
|
+
self._type = 'workspace'
|
|
61991
62616
|
|
|
61992
62617
|
elif type_of_union == 'and':
|
|
61993
62618
|
if and_ is None:
|
|
@@ -62034,6 +62659,11 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
|
|
|
62034
62659
|
raise ValueError('a union value must not be None')
|
|
62035
62660
|
self._is_published = is_published
|
|
62036
62661
|
self._type = 'isPublished'
|
|
62662
|
+
elif type_of_union == 'workspace':
|
|
62663
|
+
if workspace is None:
|
|
62664
|
+
raise ValueError('a union value must not be None')
|
|
62665
|
+
self._workspace = workspace
|
|
62666
|
+
self._type = 'workspace'
|
|
62037
62667
|
|
|
62038
62668
|
@builtins.property
|
|
62039
62669
|
def and_(self) -> Optional[List["scout_template_api_SearchTemplatesQuery"]]:
|
|
@@ -62077,6 +62707,10 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
|
|
|
62077
62707
|
def is_published(self) -> Optional[bool]:
|
|
62078
62708
|
return self._is_published
|
|
62079
62709
|
|
|
62710
|
+
@builtins.property
|
|
62711
|
+
def workspace(self) -> Optional[str]:
|
|
62712
|
+
return self._workspace
|
|
62713
|
+
|
|
62080
62714
|
def accept(self, visitor) -> Any:
|
|
62081
62715
|
if not isinstance(visitor, scout_template_api_SearchTemplatesQueryVisitor):
|
|
62082
62716
|
raise ValueError('{} is not an instance of scout_template_api_SearchTemplatesQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -62098,6 +62732,8 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
|
|
|
62098
62732
|
return visitor._is_archived(self.is_archived)
|
|
62099
62733
|
if self._type == 'isPublished' and self.is_published is not None:
|
|
62100
62734
|
return visitor._is_published(self.is_published)
|
|
62735
|
+
if self._type == 'workspace' and self.workspace is not None:
|
|
62736
|
+
return visitor._workspace(self.workspace)
|
|
62101
62737
|
|
|
62102
62738
|
|
|
62103
62739
|
scout_template_api_SearchTemplatesQuery.__name__ = "SearchTemplatesQuery"
|
|
@@ -62143,6 +62779,10 @@ class scout_template_api_SearchTemplatesQueryVisitor:
|
|
|
62143
62779
|
def _is_published(self, is_published: bool) -> Any:
|
|
62144
62780
|
pass
|
|
62145
62781
|
|
|
62782
|
+
@abstractmethod
|
|
62783
|
+
def _workspace(self, workspace: str) -> Any:
|
|
62784
|
+
pass
|
|
62785
|
+
|
|
62146
62786
|
|
|
62147
62787
|
scout_template_api_SearchTemplatesQueryVisitor.__name__ = "SearchTemplatesQueryVisitor"
|
|
62148
62788
|
scout_template_api_SearchTemplatesQueryVisitor.__qualname__ = "SearchTemplatesQueryVisitor"
|
|
@@ -64241,17 +64881,19 @@ class scout_video_api_CreateVideoRequest(ConjureBeanType):
|
|
|
64241
64881
|
'description': ConjureFieldDefinition('description', OptionalTypeWrapper[str]),
|
|
64242
64882
|
'labels': ConjureFieldDefinition('labels', List[api_Label]),
|
|
64243
64883
|
'properties': ConjureFieldDefinition('properties', Dict[api_PropertyName, api_PropertyValue]),
|
|
64244
|
-
'origin_metadata': ConjureFieldDefinition('originMetadata', scout_video_api_VideoOriginMetadata)
|
|
64884
|
+
'origin_metadata': ConjureFieldDefinition('originMetadata', scout_video_api_VideoOriginMetadata),
|
|
64885
|
+
'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
|
|
64245
64886
|
}
|
|
64246
64887
|
|
|
64247
|
-
__slots__: List[str] = ['_title', '_description', '_labels', '_properties', '_origin_metadata']
|
|
64888
|
+
__slots__: List[str] = ['_title', '_description', '_labels', '_properties', '_origin_metadata', '_workspace']
|
|
64248
64889
|
|
|
64249
|
-
def __init__(self, labels: List[str], origin_metadata: "scout_video_api_VideoOriginMetadata", properties: Dict[str, str], title: str, description: Optional[str] = None) -> None:
|
|
64890
|
+
def __init__(self, labels: List[str], origin_metadata: "scout_video_api_VideoOriginMetadata", properties: Dict[str, str], title: str, description: Optional[str] = None, workspace: Optional[str] = None) -> None:
|
|
64250
64891
|
self._title = title
|
|
64251
64892
|
self._description = description
|
|
64252
64893
|
self._labels = labels
|
|
64253
64894
|
self._properties = properties
|
|
64254
64895
|
self._origin_metadata = origin_metadata
|
|
64896
|
+
self._workspace = workspace
|
|
64255
64897
|
|
|
64256
64898
|
@builtins.property
|
|
64257
64899
|
def title(self) -> str:
|
|
@@ -64273,6 +64915,15 @@ class scout_video_api_CreateVideoRequest(ConjureBeanType):
|
|
|
64273
64915
|
def origin_metadata(self) -> "scout_video_api_VideoOriginMetadata":
|
|
64274
64916
|
return self._origin_metadata
|
|
64275
64917
|
|
|
64918
|
+
@builtins.property
|
|
64919
|
+
def workspace(self) -> Optional[str]:
|
|
64920
|
+
"""
|
|
64921
|
+
The workspace in which to create the video. If not provided, the video will be created in
|
|
64922
|
+
the default workspace for the user's organization, if the default workspace for the
|
|
64923
|
+
organization is configured.
|
|
64924
|
+
"""
|
|
64925
|
+
return self._workspace
|
|
64926
|
+
|
|
64276
64927
|
|
|
64277
64928
|
scout_video_api_CreateVideoRequest.__name__ = "CreateVideoRequest"
|
|
64278
64929
|
scout_video_api_CreateVideoRequest.__qualname__ = "CreateVideoRequest"
|
|
@@ -64710,6 +65361,7 @@ class scout_video_api_SearchVideosQuery(ConjureUnionType):
|
|
|
64710
65361
|
_and_: Optional[List["scout_video_api_SearchVideosQuery"]] = None
|
|
64711
65362
|
_or_: Optional[List["scout_video_api_SearchVideosQuery"]] = None
|
|
64712
65363
|
_ingest_status: Optional["api_IngestStatus"] = None
|
|
65364
|
+
_workspace: Optional[str] = None
|
|
64713
65365
|
|
|
64714
65366
|
@builtins.classmethod
|
|
64715
65367
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -64719,7 +65371,8 @@ class scout_video_api_SearchVideosQuery(ConjureUnionType):
|
|
|
64719
65371
|
'property': ConjureFieldDefinition('property', api_Property),
|
|
64720
65372
|
'and_': ConjureFieldDefinition('and', List[scout_video_api_SearchVideosQuery]),
|
|
64721
65373
|
'or_': ConjureFieldDefinition('or', List[scout_video_api_SearchVideosQuery]),
|
|
64722
|
-
'ingest_status': ConjureFieldDefinition('ingestStatus', api_IngestStatus)
|
|
65374
|
+
'ingest_status': ConjureFieldDefinition('ingestStatus', api_IngestStatus),
|
|
65375
|
+
'workspace': ConjureFieldDefinition('workspace', api_ids_WorkspaceId)
|
|
64723
65376
|
}
|
|
64724
65377
|
|
|
64725
65378
|
def __init__(
|
|
@@ -64730,10 +65383,11 @@ class scout_video_api_SearchVideosQuery(ConjureUnionType):
|
|
|
64730
65383
|
and_: Optional[List["scout_video_api_SearchVideosQuery"]] = None,
|
|
64731
65384
|
or_: Optional[List["scout_video_api_SearchVideosQuery"]] = None,
|
|
64732
65385
|
ingest_status: Optional["api_IngestStatus"] = None,
|
|
65386
|
+
workspace: Optional[str] = None,
|
|
64733
65387
|
type_of_union: Optional[str] = None
|
|
64734
65388
|
) -> None:
|
|
64735
65389
|
if type_of_union is None:
|
|
64736
|
-
if (search_text is not None) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (ingest_status is not None) != 1:
|
|
65390
|
+
if (search_text is not None) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (ingest_status is not None) + (workspace is not None) != 1:
|
|
64737
65391
|
raise ValueError('a union must contain a single member')
|
|
64738
65392
|
|
|
64739
65393
|
if search_text is not None:
|
|
@@ -64754,6 +65408,9 @@ class scout_video_api_SearchVideosQuery(ConjureUnionType):
|
|
|
64754
65408
|
if ingest_status is not None:
|
|
64755
65409
|
self._ingest_status = ingest_status
|
|
64756
65410
|
self._type = 'ingestStatus'
|
|
65411
|
+
if workspace is not None:
|
|
65412
|
+
self._workspace = workspace
|
|
65413
|
+
self._type = 'workspace'
|
|
64757
65414
|
|
|
64758
65415
|
elif type_of_union == 'searchText':
|
|
64759
65416
|
if search_text is None:
|
|
@@ -64785,6 +65442,11 @@ class scout_video_api_SearchVideosQuery(ConjureUnionType):
|
|
|
64785
65442
|
raise ValueError('a union value must not be None')
|
|
64786
65443
|
self._ingest_status = ingest_status
|
|
64787
65444
|
self._type = 'ingestStatus'
|
|
65445
|
+
elif type_of_union == 'workspace':
|
|
65446
|
+
if workspace is None:
|
|
65447
|
+
raise ValueError('a union value must not be None')
|
|
65448
|
+
self._workspace = workspace
|
|
65449
|
+
self._type = 'workspace'
|
|
64788
65450
|
|
|
64789
65451
|
@builtins.property
|
|
64790
65452
|
def search_text(self) -> Optional[str]:
|
|
@@ -64810,6 +65472,10 @@ class scout_video_api_SearchVideosQuery(ConjureUnionType):
|
|
|
64810
65472
|
def ingest_status(self) -> Optional["api_IngestStatus"]:
|
|
64811
65473
|
return self._ingest_status
|
|
64812
65474
|
|
|
65475
|
+
@builtins.property
|
|
65476
|
+
def workspace(self) -> Optional[str]:
|
|
65477
|
+
return self._workspace
|
|
65478
|
+
|
|
64813
65479
|
def accept(self, visitor) -> Any:
|
|
64814
65480
|
if not isinstance(visitor, scout_video_api_SearchVideosQueryVisitor):
|
|
64815
65481
|
raise ValueError('{} is not an instance of scout_video_api_SearchVideosQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -64825,6 +65491,8 @@ class scout_video_api_SearchVideosQuery(ConjureUnionType):
|
|
|
64825
65491
|
return visitor._or(self.or_)
|
|
64826
65492
|
if self._type == 'ingestStatus' and self.ingest_status is not None:
|
|
64827
65493
|
return visitor._ingest_status(self.ingest_status)
|
|
65494
|
+
if self._type == 'workspace' and self.workspace is not None:
|
|
65495
|
+
return visitor._workspace(self.workspace)
|
|
64828
65496
|
|
|
64829
65497
|
|
|
64830
65498
|
scout_video_api_SearchVideosQuery.__name__ = "SearchVideosQuery"
|
|
@@ -64858,6 +65526,10 @@ class scout_video_api_SearchVideosQueryVisitor:
|
|
|
64858
65526
|
def _ingest_status(self, ingest_status: "api_IngestStatus") -> Any:
|
|
64859
65527
|
pass
|
|
64860
65528
|
|
|
65529
|
+
@abstractmethod
|
|
65530
|
+
def _workspace(self, workspace: str) -> Any:
|
|
65531
|
+
pass
|
|
65532
|
+
|
|
64861
65533
|
|
|
64862
65534
|
scout_video_api_SearchVideosQueryVisitor.__name__ = "SearchVideosQueryVisitor"
|
|
64863
65535
|
scout_video_api_SearchVideosQueryVisitor.__qualname__ = "SearchVideosQueryVisitor"
|
|
@@ -66270,17 +66942,19 @@ class secrets_api_CreateSecretRequest(ConjureBeanType):
|
|
|
66270
66942
|
'description': ConjureFieldDefinition('description', str),
|
|
66271
66943
|
'decrypted_value': ConjureFieldDefinition('decryptedValue', str),
|
|
66272
66944
|
'properties': ConjureFieldDefinition('properties', Dict[api_PropertyName, api_PropertyValue]),
|
|
66273
|
-
'labels': ConjureFieldDefinition('labels', List[api_Label])
|
|
66945
|
+
'labels': ConjureFieldDefinition('labels', List[api_Label]),
|
|
66946
|
+
'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
|
|
66274
66947
|
}
|
|
66275
66948
|
|
|
66276
|
-
__slots__: List[str] = ['_name', '_description', '_decrypted_value', '_properties', '_labels']
|
|
66949
|
+
__slots__: List[str] = ['_name', '_description', '_decrypted_value', '_properties', '_labels', '_workspace']
|
|
66277
66950
|
|
|
66278
|
-
def __init__(self, decrypted_value: str, description: str, labels: List[str], name: str, properties: Dict[str, str]) -> None:
|
|
66951
|
+
def __init__(self, decrypted_value: str, description: str, labels: List[str], name: str, properties: Dict[str, str], workspace: Optional[str] = None) -> None:
|
|
66279
66952
|
self._name = name
|
|
66280
66953
|
self._description = description
|
|
66281
66954
|
self._decrypted_value = decrypted_value
|
|
66282
66955
|
self._properties = properties
|
|
66283
66956
|
self._labels = labels
|
|
66957
|
+
self._workspace = workspace
|
|
66284
66958
|
|
|
66285
66959
|
@builtins.property
|
|
66286
66960
|
def name(self) -> str:
|
|
@@ -66302,6 +66976,15 @@ class secrets_api_CreateSecretRequest(ConjureBeanType):
|
|
|
66302
66976
|
def labels(self) -> List[str]:
|
|
66303
66977
|
return self._labels
|
|
66304
66978
|
|
|
66979
|
+
@builtins.property
|
|
66980
|
+
def workspace(self) -> Optional[str]:
|
|
66981
|
+
"""
|
|
66982
|
+
The workspace in which to create the secret. If not provided, the secret will be created in
|
|
66983
|
+
the default workspace for the user's organization, if the default workspace for the
|
|
66984
|
+
organization is configured.
|
|
66985
|
+
"""
|
|
66986
|
+
return self._workspace
|
|
66987
|
+
|
|
66305
66988
|
|
|
66306
66989
|
secrets_api_CreateSecretRequest.__name__ = "CreateSecretRequest"
|
|
66307
66990
|
secrets_api_CreateSecretRequest.__qualname__ = "CreateSecretRequest"
|
|
@@ -66360,6 +67043,7 @@ class secrets_api_SearchSecretsQuery(ConjureUnionType):
|
|
|
66360
67043
|
_property: Optional["api_Property"] = None
|
|
66361
67044
|
_and_: Optional[List["secrets_api_SearchSecretsQuery"]] = None
|
|
66362
67045
|
_or_: Optional[List["secrets_api_SearchSecretsQuery"]] = None
|
|
67046
|
+
_workspace: Optional[str] = None
|
|
66363
67047
|
|
|
66364
67048
|
@builtins.classmethod
|
|
66365
67049
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -66368,7 +67052,8 @@ class secrets_api_SearchSecretsQuery(ConjureUnionType):
|
|
|
66368
67052
|
'label': ConjureFieldDefinition('label', api_Label),
|
|
66369
67053
|
'property': ConjureFieldDefinition('property', api_Property),
|
|
66370
67054
|
'and_': ConjureFieldDefinition('and', List[secrets_api_SearchSecretsQuery]),
|
|
66371
|
-
'or_': ConjureFieldDefinition('or', List[secrets_api_SearchSecretsQuery])
|
|
67055
|
+
'or_': ConjureFieldDefinition('or', List[secrets_api_SearchSecretsQuery]),
|
|
67056
|
+
'workspace': ConjureFieldDefinition('workspace', api_ids_WorkspaceId)
|
|
66372
67057
|
}
|
|
66373
67058
|
|
|
66374
67059
|
def __init__(
|
|
@@ -66378,10 +67063,11 @@ class secrets_api_SearchSecretsQuery(ConjureUnionType):
|
|
|
66378
67063
|
property: Optional["api_Property"] = None,
|
|
66379
67064
|
and_: Optional[List["secrets_api_SearchSecretsQuery"]] = None,
|
|
66380
67065
|
or_: Optional[List["secrets_api_SearchSecretsQuery"]] = None,
|
|
67066
|
+
workspace: Optional[str] = None,
|
|
66381
67067
|
type_of_union: Optional[str] = None
|
|
66382
67068
|
) -> None:
|
|
66383
67069
|
if type_of_union is None:
|
|
66384
|
-
if (search_text is not None) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) != 1:
|
|
67070
|
+
if (search_text is not None) + (label is not None) + (property is not None) + (and_ is not None) + (or_ is not None) + (workspace is not None) != 1:
|
|
66385
67071
|
raise ValueError('a union must contain a single member')
|
|
66386
67072
|
|
|
66387
67073
|
if search_text is not None:
|
|
@@ -66399,6 +67085,9 @@ class secrets_api_SearchSecretsQuery(ConjureUnionType):
|
|
|
66399
67085
|
if or_ is not None:
|
|
66400
67086
|
self._or_ = or_
|
|
66401
67087
|
self._type = 'or'
|
|
67088
|
+
if workspace is not None:
|
|
67089
|
+
self._workspace = workspace
|
|
67090
|
+
self._type = 'workspace'
|
|
66402
67091
|
|
|
66403
67092
|
elif type_of_union == 'searchText':
|
|
66404
67093
|
if search_text is None:
|
|
@@ -66425,6 +67114,11 @@ class secrets_api_SearchSecretsQuery(ConjureUnionType):
|
|
|
66425
67114
|
raise ValueError('a union value must not be None')
|
|
66426
67115
|
self._or_ = or_
|
|
66427
67116
|
self._type = 'or'
|
|
67117
|
+
elif type_of_union == 'workspace':
|
|
67118
|
+
if workspace is None:
|
|
67119
|
+
raise ValueError('a union value must not be None')
|
|
67120
|
+
self._workspace = workspace
|
|
67121
|
+
self._type = 'workspace'
|
|
66428
67122
|
|
|
66429
67123
|
@builtins.property
|
|
66430
67124
|
def search_text(self) -> Optional[str]:
|
|
@@ -66446,6 +67140,10 @@ class secrets_api_SearchSecretsQuery(ConjureUnionType):
|
|
|
66446
67140
|
def or_(self) -> Optional[List["secrets_api_SearchSecretsQuery"]]:
|
|
66447
67141
|
return self._or_
|
|
66448
67142
|
|
|
67143
|
+
@builtins.property
|
|
67144
|
+
def workspace(self) -> Optional[str]:
|
|
67145
|
+
return self._workspace
|
|
67146
|
+
|
|
66449
67147
|
def accept(self, visitor) -> Any:
|
|
66450
67148
|
if not isinstance(visitor, secrets_api_SearchSecretsQueryVisitor):
|
|
66451
67149
|
raise ValueError('{} is not an instance of secrets_api_SearchSecretsQueryVisitor'.format(visitor.__class__.__name__))
|
|
@@ -66459,6 +67157,8 @@ class secrets_api_SearchSecretsQuery(ConjureUnionType):
|
|
|
66459
67157
|
return visitor._and(self.and_)
|
|
66460
67158
|
if self._type == 'or' and self.or_ is not None:
|
|
66461
67159
|
return visitor._or(self.or_)
|
|
67160
|
+
if self._type == 'workspace' and self.workspace is not None:
|
|
67161
|
+
return visitor._workspace(self.workspace)
|
|
66462
67162
|
|
|
66463
67163
|
|
|
66464
67164
|
secrets_api_SearchSecretsQuery.__name__ = "SearchSecretsQuery"
|
|
@@ -66488,6 +67188,10 @@ class secrets_api_SearchSecretsQueryVisitor:
|
|
|
66488
67188
|
def _or(self, or_: List["secrets_api_SearchSecretsQuery"]) -> Any:
|
|
66489
67189
|
pass
|
|
66490
67190
|
|
|
67191
|
+
@abstractmethod
|
|
67192
|
+
def _workspace(self, workspace: str) -> Any:
|
|
67193
|
+
pass
|
|
67194
|
+
|
|
66491
67195
|
|
|
66492
67196
|
secrets_api_SearchSecretsQueryVisitor.__name__ = "SearchSecretsQueryVisitor"
|
|
66493
67197
|
secrets_api_SearchSecretsQueryVisitor.__qualname__ = "SearchSecretsQueryVisitor"
|
|
@@ -67082,16 +67786,18 @@ class storage_datasource_api_CreateNominalDataSourceRequest(ConjureBeanType):
|
|
|
67082
67786
|
'id': ConjureFieldDefinition('id', storage_datasource_api_NominalDataSourceId),
|
|
67083
67787
|
'description': ConjureFieldDefinition('description', OptionalTypeWrapper[str]),
|
|
67084
67788
|
'granularity': ConjureFieldDefinition('granularity', OptionalTypeWrapper[api_Granularity]),
|
|
67085
|
-
'in_memory_streaming_enabled': ConjureFieldDefinition('inMemoryStreamingEnabled', OptionalTypeWrapper[bool])
|
|
67789
|
+
'in_memory_streaming_enabled': ConjureFieldDefinition('inMemoryStreamingEnabled', OptionalTypeWrapper[bool]),
|
|
67790
|
+
'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
|
|
67086
67791
|
}
|
|
67087
67792
|
|
|
67088
|
-
__slots__: List[str] = ['_id', '_description', '_granularity', '_in_memory_streaming_enabled']
|
|
67793
|
+
__slots__: List[str] = ['_id', '_description', '_granularity', '_in_memory_streaming_enabled', '_workspace']
|
|
67089
67794
|
|
|
67090
|
-
def __init__(self, id: str, description: Optional[str] = None, granularity: Optional["api_Granularity"] = None, in_memory_streaming_enabled: Optional[bool] = None) -> None:
|
|
67795
|
+
def __init__(self, id: str, description: Optional[str] = None, granularity: Optional["api_Granularity"] = None, in_memory_streaming_enabled: Optional[bool] = None, workspace: Optional[str] = None) -> None:
|
|
67091
67796
|
self._id = id
|
|
67092
67797
|
self._description = description
|
|
67093
67798
|
self._granularity = granularity
|
|
67094
67799
|
self._in_memory_streaming_enabled = in_memory_streaming_enabled
|
|
67800
|
+
self._workspace = workspace
|
|
67095
67801
|
|
|
67096
67802
|
@builtins.property
|
|
67097
67803
|
def id(self) -> str:
|
|
@@ -67116,6 +67822,14 @@ Defaults to nanosecond granularity.
|
|
|
67116
67822
|
def in_memory_streaming_enabled(self) -> Optional[bool]:
|
|
67117
67823
|
return self._in_memory_streaming_enabled
|
|
67118
67824
|
|
|
67825
|
+
@builtins.property
|
|
67826
|
+
def workspace(self) -> Optional[str]:
|
|
67827
|
+
"""
|
|
67828
|
+
The workspace in which to create the datasource. If not provided, the datasource will be created in the default workspace for
|
|
67829
|
+
the user's organization, if the default workspace for the organization is configured.
|
|
67830
|
+
"""
|
|
67831
|
+
return self._workspace
|
|
67832
|
+
|
|
67119
67833
|
|
|
67120
67834
|
storage_datasource_api_CreateNominalDataSourceRequest.__name__ = "CreateNominalDataSourceRequest"
|
|
67121
67835
|
storage_datasource_api_CreateNominalDataSourceRequest.__qualname__ = "CreateNominalDataSourceRequest"
|
|
@@ -69077,14 +69791,16 @@ class themes_api_CreateChartThemeRequest(ConjureBeanType):
|
|
|
69077
69791
|
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
69078
69792
|
return {
|
|
69079
69793
|
'name': ConjureFieldDefinition('name', str),
|
|
69080
|
-
'content': ConjureFieldDefinition('content', themes_api_ChartThemeContent)
|
|
69794
|
+
'content': ConjureFieldDefinition('content', themes_api_ChartThemeContent),
|
|
69795
|
+
'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
|
|
69081
69796
|
}
|
|
69082
69797
|
|
|
69083
|
-
__slots__: List[str] = ['_name', '_content']
|
|
69798
|
+
__slots__: List[str] = ['_name', '_content', '_workspace']
|
|
69084
69799
|
|
|
69085
|
-
def __init__(self, content: "themes_api_ChartThemeContent", name: str) -> None:
|
|
69800
|
+
def __init__(self, content: "themes_api_ChartThemeContent", name: str, workspace: Optional[str] = None) -> None:
|
|
69086
69801
|
self._name = name
|
|
69087
69802
|
self._content = content
|
|
69803
|
+
self._workspace = workspace
|
|
69088
69804
|
|
|
69089
69805
|
@builtins.property
|
|
69090
69806
|
def name(self) -> str:
|
|
@@ -69100,6 +69816,14 @@ class themes_api_CreateChartThemeRequest(ConjureBeanType):
|
|
|
69100
69816
|
"""
|
|
69101
69817
|
return self._content
|
|
69102
69818
|
|
|
69819
|
+
@builtins.property
|
|
69820
|
+
def workspace(self) -> Optional[str]:
|
|
69821
|
+
"""
|
|
69822
|
+
The workspace in which to create the theme. If not provided, the theme will be created in the default workspace for
|
|
69823
|
+
the user's organization, if the default workspace for the organization is configured.
|
|
69824
|
+
"""
|
|
69825
|
+
return self._workspace
|
|
69826
|
+
|
|
69103
69827
|
|
|
69104
69828
|
themes_api_CreateChartThemeRequest.__name__ = "CreateChartThemeRequest"
|
|
69105
69829
|
themes_api_CreateChartThemeRequest.__qualname__ = "CreateChartThemeRequest"
|
|
@@ -69173,10 +69897,11 @@ class themes_api_ThemesService(Service):
|
|
|
69173
69897
|
Themes service manages themes for exporting charts.
|
|
69174
69898
|
"""
|
|
69175
69899
|
|
|
69176
|
-
def list_chart_themes(self, auth_header: str) -> List["themes_api_ChartTheme"]:
|
|
69900
|
+
def list_chart_themes(self, auth_header: str, workspaces: List[str] = None) -> List["themes_api_ChartTheme"]:
|
|
69177
69901
|
"""
|
|
69178
|
-
Get all chart themes saved to the
|
|
69902
|
+
Get all chart themes saved to the requested workspaces.
|
|
69179
69903
|
"""
|
|
69904
|
+
workspaces = workspaces if workspaces is not None else []
|
|
69180
69905
|
|
|
69181
69906
|
_headers: Dict[str, Any] = {
|
|
69182
69907
|
'Accept': 'application/json',
|
|
@@ -69184,6 +69909,7 @@ class themes_api_ThemesService(Service):
|
|
|
69184
69909
|
}
|
|
69185
69910
|
|
|
69186
69911
|
_params: Dict[str, Any] = {
|
|
69912
|
+
'workspaces': workspaces,
|
|
69187
69913
|
}
|
|
69188
69914
|
|
|
69189
69915
|
_path_params: Dict[str, Any] = {
|
|
@@ -73337,6 +74063,8 @@ datasource_DatasetFileId = str
|
|
|
73337
74063
|
|
|
73338
74064
|
api_rids_WorkspaceRid = str
|
|
73339
74065
|
|
|
74066
|
+
persistent_compute_api_SubscriptionId = str
|
|
74067
|
+
|
|
73340
74068
|
api_McapChannelTopic = str
|
|
73341
74069
|
|
|
73342
74070
|
scout_compute_api_VariableName = str
|
|
@@ -73349,6 +74077,8 @@ scout_channelvariables_api_ChannelVariableName = str
|
|
|
73349
74077
|
|
|
73350
74078
|
scout_datareview_api_ManualCheckEvaluationRid = str
|
|
73351
74079
|
|
|
74080
|
+
api_ids_WorkspaceId = str
|
|
74081
|
+
|
|
73352
74082
|
scout_asset_api_Channel = str
|
|
73353
74083
|
|
|
73354
74084
|
scout_rids_api_FunctionRid = str
|
|
@@ -73485,9 +74215,9 @@ storage_writer_api_MeasurementName = str
|
|
|
73485
74215
|
|
|
73486
74216
|
storage_datasource_api_NominalDataSourceId = str
|
|
73487
74217
|
|
|
73488
|
-
|
|
74218
|
+
persistent_compute_api_Milliseconds = int
|
|
73489
74219
|
|
|
73490
|
-
|
|
74220
|
+
scout_datareview_api_AutomaticCheckEvaluationRid = str
|
|
73491
74221
|
|
|
73492
74222
|
scout_compute_api_ErrorType = str
|
|
73493
74223
|
|