nominal-api 0.867.0__py3-none-any.whl → 0.869.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.
nominal_api/__init__.py CHANGED
@@ -81,5 +81,5 @@ __all__ = [
81
81
 
82
82
  __conjure_generator_version__ = "4.17.0"
83
83
 
84
- __version__ = "0.867.0"
84
+ __version__ = "0.869.0"
85
85
 
nominal_api/_impl.py CHANGED
@@ -19674,6 +19674,64 @@ includes metrics for check and violation review status.
19674
19674
  _decoder = ConjureDecoder()
19675
19675
  return _decoder.decode(_response.json(), bool, self._return_none_for_unknown_union_types)
19676
19676
 
19677
+ def archive_runs(self, auth_header: str, request: "scout_run_api_ArchiveRunsRequest") -> None:
19678
+ _conjure_encoder = ConjureEncoder()
19679
+
19680
+ _headers: Dict[str, Any] = {
19681
+ 'Accept': 'application/json',
19682
+ 'Content-Type': 'application/json',
19683
+ 'Authorization': auth_header,
19684
+ }
19685
+
19686
+ _params: Dict[str, Any] = {
19687
+ }
19688
+
19689
+ _path_params: Dict[str, str] = {
19690
+ }
19691
+
19692
+ _json: Any = _conjure_encoder.default(request)
19693
+
19694
+ _path = '/scout/v1/archive-run'
19695
+ _path = _path.format(**_path_params)
19696
+
19697
+ _response: Response = self._request(
19698
+ 'POST',
19699
+ self._uri + _path,
19700
+ params=_params,
19701
+ headers=_headers,
19702
+ json=_json)
19703
+
19704
+ return
19705
+
19706
+ def unarchive_runs(self, auth_header: str, request: "scout_run_api_UnarchiveRunsRequest") -> None:
19707
+ _conjure_encoder = ConjureEncoder()
19708
+
19709
+ _headers: Dict[str, Any] = {
19710
+ 'Accept': 'application/json',
19711
+ 'Content-Type': 'application/json',
19712
+ 'Authorization': auth_header,
19713
+ }
19714
+
19715
+ _params: Dict[str, Any] = {
19716
+ }
19717
+
19718
+ _path_params: Dict[str, str] = {
19719
+ }
19720
+
19721
+ _json: Any = _conjure_encoder.default(request)
19722
+
19723
+ _path = '/scout/v1/unarchive-run'
19724
+ _path = _path.format(**_path_params)
19725
+
19726
+ _response: Response = self._request(
19727
+ 'POST',
19728
+ self._uri + _path,
19729
+ params=_params,
19730
+ headers=_headers,
19731
+ json=_json)
19732
+
19733
+ return
19734
+
19677
19735
  def get_data_source_ref_name_and_type_list(self, auth_header: str, workspaces: List[str] = None) -> List["scout_run_api_RefNameAndType"]:
19678
19736
  """Returns the list of ref names that are in use across specified and authorized workspaces.
19679
19737
  """
@@ -76177,6 +76235,7 @@ scout_notebook_api_NotebookType.__module__ = "nominal_api.scout_notebook_api"
76177
76235
  class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
76178
76236
  _and_: Optional[List["scout_notebook_api_SearchNotebooksQuery"]] = None
76179
76237
  _or_: Optional[List["scout_notebook_api_SearchNotebooksQuery"]] = None
76238
+ _not_: Optional["scout_notebook_api_SearchNotebooksQuery"] = None
76180
76239
  _exact_match: Optional[str] = None
76181
76240
  _search_text: Optional[str] = None
76182
76241
  _label: Optional[str] = None
@@ -76189,12 +76248,15 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
76189
76248
  _draft_state: Optional[bool] = None
76190
76249
  _archived: Optional[bool] = None
76191
76250
  _workspace: Optional[str] = None
76251
+ _author_is_current_user: Optional["api_Empty"] = None
76252
+ _author_rids: Optional[List[str]] = None
76192
76253
 
76193
76254
  @builtins.classmethod
76194
76255
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
76195
76256
  return {
76196
76257
  'and_': ConjureFieldDefinition('and', List[scout_notebook_api_SearchNotebooksQuery]),
76197
76258
  'or_': ConjureFieldDefinition('or', List[scout_notebook_api_SearchNotebooksQuery]),
76259
+ 'not_': ConjureFieldDefinition('not', scout_notebook_api_SearchNotebooksQuery),
76198
76260
  'exact_match': ConjureFieldDefinition('exactMatch', str),
76199
76261
  'search_text': ConjureFieldDefinition('searchText', str),
76200
76262
  'label': ConjureFieldDefinition('label', api_Label),
@@ -76206,13 +76268,16 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
76206
76268
  'notebook_type': ConjureFieldDefinition('notebookType', scout_notebook_api_NotebookType),
76207
76269
  'draft_state': ConjureFieldDefinition('draftState', bool),
76208
76270
  'archived': ConjureFieldDefinition('archived', bool),
76209
- 'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid)
76271
+ 'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid),
76272
+ 'author_is_current_user': ConjureFieldDefinition('authorIsCurrentUser', api_Empty),
76273
+ 'author_rids': ConjureFieldDefinition('authorRids', List[scout_rids_api_UserRid])
76210
76274
  }
76211
76275
 
76212
76276
  def __init__(
76213
76277
  self,
76214
76278
  and_: Optional[List["scout_notebook_api_SearchNotebooksQuery"]] = None,
76215
76279
  or_: Optional[List["scout_notebook_api_SearchNotebooksQuery"]] = None,
76280
+ not_: Optional["scout_notebook_api_SearchNotebooksQuery"] = None,
76216
76281
  exact_match: Optional[str] = None,
76217
76282
  search_text: Optional[str] = None,
76218
76283
  label: Optional[str] = None,
@@ -76225,10 +76290,12 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
76225
76290
  draft_state: Optional[bool] = None,
76226
76291
  archived: Optional[bool] = None,
76227
76292
  workspace: Optional[str] = None,
76293
+ author_is_current_user: Optional["api_Empty"] = None,
76294
+ author_rids: Optional[List[str]] = None,
76228
76295
  type_of_union: Optional[str] = None
76229
76296
  ) -> None:
76230
76297
  if type_of_union is None:
76231
- 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) + (exact_asset_rids 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:
76298
+ if (and_ is not None) + (or_ is not None) + (not_ 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) + (exact_asset_rids 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) + (author_is_current_user is not None) + (author_rids is not None) != 1:
76232
76299
  raise ValueError('a union must contain a single member')
76233
76300
 
76234
76301
  if and_ is not None:
@@ -76237,6 +76304,9 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
76237
76304
  if or_ is not None:
76238
76305
  self._or_ = or_
76239
76306
  self._type = 'or'
76307
+ if not_ is not None:
76308
+ self._not_ = not_
76309
+ self._type = 'not'
76240
76310
  if exact_match is not None:
76241
76311
  self._exact_match = exact_match
76242
76312
  self._type = 'exactMatch'
@@ -76273,6 +76343,12 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
76273
76343
  if workspace is not None:
76274
76344
  self._workspace = workspace
76275
76345
  self._type = 'workspace'
76346
+ if author_is_current_user is not None:
76347
+ self._author_is_current_user = author_is_current_user
76348
+ self._type = 'authorIsCurrentUser'
76349
+ if author_rids is not None:
76350
+ self._author_rids = author_rids
76351
+ self._type = 'authorRids'
76276
76352
 
76277
76353
  elif type_of_union == 'and':
76278
76354
  if and_ is None:
@@ -76284,6 +76360,11 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
76284
76360
  raise ValueError('a union value must not be None')
76285
76361
  self._or_ = or_
76286
76362
  self._type = 'or'
76363
+ elif type_of_union == 'not':
76364
+ if not_ is None:
76365
+ raise ValueError('a union value must not be None')
76366
+ self._not_ = not_
76367
+ self._type = 'not'
76287
76368
  elif type_of_union == 'exactMatch':
76288
76369
  if exact_match is None:
76289
76370
  raise ValueError('a union value must not be None')
@@ -76344,6 +76425,16 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
76344
76425
  raise ValueError('a union value must not be None')
76345
76426
  self._workspace = workspace
76346
76427
  self._type = 'workspace'
76428
+ elif type_of_union == 'authorIsCurrentUser':
76429
+ if author_is_current_user is None:
76430
+ raise ValueError('a union value must not be None')
76431
+ self._author_is_current_user = author_is_current_user
76432
+ self._type = 'authorIsCurrentUser'
76433
+ elif type_of_union == 'authorRids':
76434
+ if author_rids is None:
76435
+ raise ValueError('a union value must not be None')
76436
+ self._author_rids = author_rids
76437
+ self._type = 'authorRids'
76347
76438
 
76348
76439
  @builtins.property
76349
76440
  def and_(self) -> Optional[List["scout_notebook_api_SearchNotebooksQuery"]]:
@@ -76353,6 +76444,10 @@ class scout_notebook_api_SearchNotebooksQuery(ConjureUnionType):
76353
76444
  def or_(self) -> Optional[List["scout_notebook_api_SearchNotebooksQuery"]]:
76354
76445
  return self._or_
76355
76446
 
76447
+ @builtins.property
76448
+ def not_(self) -> Optional["scout_notebook_api_SearchNotebooksQuery"]:
76449
+ return self._not_
76450
+
76356
76451
  @builtins.property
76357
76452
  def exact_match(self) -> Optional[str]:
76358
76453
  """Performs case insensitive exact match search on the title.
@@ -76406,6 +76501,14 @@ To do a partial match, use an "and" on AssetRid queries.
76406
76501
  def workspace(self) -> Optional[str]:
76407
76502
  return self._workspace
76408
76503
 
76504
+ @builtins.property
76505
+ def author_is_current_user(self) -> Optional["api_Empty"]:
76506
+ return self._author_is_current_user
76507
+
76508
+ @builtins.property
76509
+ def author_rids(self) -> Optional[List[str]]:
76510
+ return self._author_rids
76511
+
76409
76512
  def accept(self, visitor) -> Any:
76410
76513
  if not isinstance(visitor, scout_notebook_api_SearchNotebooksQueryVisitor):
76411
76514
  raise ValueError('{} is not an instance of scout_notebook_api_SearchNotebooksQueryVisitor'.format(visitor.__class__.__name__))
@@ -76413,6 +76516,8 @@ To do a partial match, use an "and" on AssetRid queries.
76413
76516
  return visitor._and(self.and_)
76414
76517
  if self._type == 'or' and self.or_ is not None:
76415
76518
  return visitor._or(self.or_)
76519
+ if self._type == 'not' and self.not_ is not None:
76520
+ return visitor._not(self.not_)
76416
76521
  if self._type == 'exactMatch' and self.exact_match is not None:
76417
76522
  return visitor._exact_match(self.exact_match)
76418
76523
  if self._type == 'searchText' and self.search_text is not None:
@@ -76437,6 +76542,10 @@ To do a partial match, use an "and" on AssetRid queries.
76437
76542
  return visitor._archived(self.archived)
76438
76543
  if self._type == 'workspace' and self.workspace is not None:
76439
76544
  return visitor._workspace(self.workspace)
76545
+ if self._type == 'authorIsCurrentUser' and self.author_is_current_user is not None:
76546
+ return visitor._author_is_current_user(self.author_is_current_user)
76547
+ if self._type == 'authorRids' and self.author_rids is not None:
76548
+ return visitor._author_rids(self.author_rids)
76440
76549
 
76441
76550
 
76442
76551
  scout_notebook_api_SearchNotebooksQuery.__name__ = "SearchNotebooksQuery"
@@ -76454,6 +76563,10 @@ class scout_notebook_api_SearchNotebooksQueryVisitor:
76454
76563
  def _or(self, or_: List["scout_notebook_api_SearchNotebooksQuery"]) -> Any:
76455
76564
  pass
76456
76565
 
76566
+ @abstractmethod
76567
+ def _not(self, not_: "scout_notebook_api_SearchNotebooksQuery") -> Any:
76568
+ pass
76569
+
76457
76570
  @abstractmethod
76458
76571
  def _exact_match(self, exact_match: str) -> Any:
76459
76572
  pass
@@ -76502,6 +76615,14 @@ class scout_notebook_api_SearchNotebooksQueryVisitor:
76502
76615
  def _workspace(self, workspace: str) -> Any:
76503
76616
  pass
76504
76617
 
76618
+ @abstractmethod
76619
+ def _author_is_current_user(self, author_is_current_user: "api_Empty") -> Any:
76620
+ pass
76621
+
76622
+ @abstractmethod
76623
+ def _author_rids(self, author_rids: List[str]) -> Any:
76624
+ pass
76625
+
76505
76626
 
76506
76627
  scout_notebook_api_SearchNotebooksQueryVisitor.__name__ = "SearchNotebooksQueryVisitor"
76507
76628
  scout_notebook_api_SearchNotebooksQueryVisitor.__qualname__ = "SearchNotebooksQueryVisitor"
@@ -77081,6 +77202,38 @@ scout_run_api_AllRunsPropertiesAndLabelsResponse.__qualname__ = "AllRunsProperti
77081
77202
  scout_run_api_AllRunsPropertiesAndLabelsResponse.__module__ = "nominal_api.scout_run_api"
77082
77203
 
77083
77204
 
77205
+ class scout_run_api_ArchiveRunsRequest(ConjureBeanType):
77206
+
77207
+ @builtins.classmethod
77208
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
77209
+ return {
77210
+ 'rids': ConjureFieldDefinition('rids', List[scout_run_api_RunRid]),
77211
+ 'include_linked_workbooks': ConjureFieldDefinition('includeLinkedWorkbooks', OptionalTypeWrapper[bool])
77212
+ }
77213
+
77214
+ __slots__: List[str] = ['_rids', '_include_linked_workbooks']
77215
+
77216
+ def __init__(self, rids: List[str], include_linked_workbooks: Optional[bool] = None) -> None:
77217
+ self._rids = rids
77218
+ self._include_linked_workbooks = include_linked_workbooks
77219
+
77220
+ @builtins.property
77221
+ def rids(self) -> List[str]:
77222
+ return self._rids
77223
+
77224
+ @builtins.property
77225
+ def include_linked_workbooks(self) -> Optional[bool]:
77226
+ """If true, all auto-archived workbooks that are linked to run will be unarchived as well.
77227
+ Defaults to false.
77228
+ """
77229
+ return self._include_linked_workbooks
77230
+
77231
+
77232
+ scout_run_api_ArchiveRunsRequest.__name__ = "ArchiveRunsRequest"
77233
+ scout_run_api_ArchiveRunsRequest.__qualname__ = "ArchiveRunsRequest"
77234
+ scout_run_api_ArchiveRunsRequest.__module__ = "nominal_api.scout_run_api"
77235
+
77236
+
77084
77237
  class scout_run_api_ChannelMetadata(ConjureBeanType):
77085
77238
 
77086
77239
  @builtins.classmethod
@@ -79055,6 +79208,38 @@ scout_run_api_TimeRangeFilter.__qualname__ = "TimeRangeFilter"
79055
79208
  scout_run_api_TimeRangeFilter.__module__ = "nominal_api.scout_run_api"
79056
79209
 
79057
79210
 
79211
+ class scout_run_api_UnarchiveRunsRequest(ConjureBeanType):
79212
+
79213
+ @builtins.classmethod
79214
+ def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
79215
+ return {
79216
+ 'rids': ConjureFieldDefinition('rids', List[scout_run_api_RunRid]),
79217
+ 'include_linked_workbooks': ConjureFieldDefinition('includeLinkedWorkbooks', OptionalTypeWrapper[bool])
79218
+ }
79219
+
79220
+ __slots__: List[str] = ['_rids', '_include_linked_workbooks']
79221
+
79222
+ def __init__(self, rids: List[str], include_linked_workbooks: Optional[bool] = None) -> None:
79223
+ self._rids = rids
79224
+ self._include_linked_workbooks = include_linked_workbooks
79225
+
79226
+ @builtins.property
79227
+ def rids(self) -> List[str]:
79228
+ return self._rids
79229
+
79230
+ @builtins.property
79231
+ def include_linked_workbooks(self) -> Optional[bool]:
79232
+ """If true, all auto-archived workbooks that are linked to run will be unarchived as well.
79233
+ Defaults to false.
79234
+ """
79235
+ return self._include_linked_workbooks
79236
+
79237
+
79238
+ scout_run_api_UnarchiveRunsRequest.__name__ = "UnarchiveRunsRequest"
79239
+ scout_run_api_UnarchiveRunsRequest.__qualname__ = "UnarchiveRunsRequest"
79240
+ scout_run_api_UnarchiveRunsRequest.__module__ = "nominal_api.scout_run_api"
79241
+
79242
+
79058
79243
  class scout_run_api_Unit(ConjureBeanType):
79059
79244
 
79060
79245
  @builtins.classmethod
@@ -81024,6 +81209,7 @@ scout_template_api_SaveTemplateRequest.__module__ = "nominal_api.scout_template_
81024
81209
  class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
81025
81210
  _and_: Optional[List["scout_template_api_SearchTemplatesQuery"]] = None
81026
81211
  _or_: Optional[List["scout_template_api_SearchTemplatesQuery"]] = None
81212
+ _not_: Optional["scout_template_api_SearchTemplatesQuery"] = None
81027
81213
  _exact_match: Optional[str] = None
81028
81214
  _search_text: Optional[str] = None
81029
81215
  _label: Optional[str] = None
@@ -81032,12 +81218,15 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
81032
81218
  _is_archived: Optional[bool] = None
81033
81219
  _is_published: Optional[bool] = None
81034
81220
  _workspace: Optional[str] = None
81221
+ _author_is_current_user: Optional["api_Empty"] = None
81222
+ _author_rids: Optional[List[str]] = None
81035
81223
 
81036
81224
  @builtins.classmethod
81037
81225
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
81038
81226
  return {
81039
81227
  'and_': ConjureFieldDefinition('and', List[scout_template_api_SearchTemplatesQuery]),
81040
81228
  'or_': ConjureFieldDefinition('or', List[scout_template_api_SearchTemplatesQuery]),
81229
+ 'not_': ConjureFieldDefinition('not', scout_template_api_SearchTemplatesQuery),
81041
81230
  'exact_match': ConjureFieldDefinition('exactMatch', str),
81042
81231
  'search_text': ConjureFieldDefinition('searchText', str),
81043
81232
  'label': ConjureFieldDefinition('label', api_Label),
@@ -81045,13 +81234,16 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
81045
81234
  'created_by': ConjureFieldDefinition('createdBy', scout_rids_api_UserRid),
81046
81235
  'is_archived': ConjureFieldDefinition('isArchived', bool),
81047
81236
  'is_published': ConjureFieldDefinition('isPublished', bool),
81048
- 'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid)
81237
+ 'workspace': ConjureFieldDefinition('workspace', api_rids_WorkspaceRid),
81238
+ 'author_is_current_user': ConjureFieldDefinition('authorIsCurrentUser', api_Empty),
81239
+ 'author_rids': ConjureFieldDefinition('authorRids', List[scout_rids_api_UserRid])
81049
81240
  }
81050
81241
 
81051
81242
  def __init__(
81052
81243
  self,
81053
81244
  and_: Optional[List["scout_template_api_SearchTemplatesQuery"]] = None,
81054
81245
  or_: Optional[List["scout_template_api_SearchTemplatesQuery"]] = None,
81246
+ not_: Optional["scout_template_api_SearchTemplatesQuery"] = None,
81055
81247
  exact_match: Optional[str] = None,
81056
81248
  search_text: Optional[str] = None,
81057
81249
  label: Optional[str] = None,
@@ -81060,10 +81252,12 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
81060
81252
  is_archived: Optional[bool] = None,
81061
81253
  is_published: Optional[bool] = None,
81062
81254
  workspace: Optional[str] = None,
81255
+ author_is_current_user: Optional["api_Empty"] = None,
81256
+ author_rids: Optional[List[str]] = None,
81063
81257
  type_of_union: Optional[str] = None
81064
81258
  ) -> None:
81065
81259
  if type_of_union is None:
81066
- 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:
81260
+ if (and_ is not None) + (or_ is not None) + (not_ 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) + (author_is_current_user is not None) + (author_rids is not None) != 1:
81067
81261
  raise ValueError('a union must contain a single member')
81068
81262
 
81069
81263
  if and_ is not None:
@@ -81072,6 +81266,9 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
81072
81266
  if or_ is not None:
81073
81267
  self._or_ = or_
81074
81268
  self._type = 'or'
81269
+ if not_ is not None:
81270
+ self._not_ = not_
81271
+ self._type = 'not'
81075
81272
  if exact_match is not None:
81076
81273
  self._exact_match = exact_match
81077
81274
  self._type = 'exactMatch'
@@ -81096,6 +81293,12 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
81096
81293
  if workspace is not None:
81097
81294
  self._workspace = workspace
81098
81295
  self._type = 'workspace'
81296
+ if author_is_current_user is not None:
81297
+ self._author_is_current_user = author_is_current_user
81298
+ self._type = 'authorIsCurrentUser'
81299
+ if author_rids is not None:
81300
+ self._author_rids = author_rids
81301
+ self._type = 'authorRids'
81099
81302
 
81100
81303
  elif type_of_union == 'and':
81101
81304
  if and_ is None:
@@ -81107,6 +81310,11 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
81107
81310
  raise ValueError('a union value must not be None')
81108
81311
  self._or_ = or_
81109
81312
  self._type = 'or'
81313
+ elif type_of_union == 'not':
81314
+ if not_ is None:
81315
+ raise ValueError('a union value must not be None')
81316
+ self._not_ = not_
81317
+ self._type = 'not'
81110
81318
  elif type_of_union == 'exactMatch':
81111
81319
  if exact_match is None:
81112
81320
  raise ValueError('a union value must not be None')
@@ -81147,6 +81355,16 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
81147
81355
  raise ValueError('a union value must not be None')
81148
81356
  self._workspace = workspace
81149
81357
  self._type = 'workspace'
81358
+ elif type_of_union == 'authorIsCurrentUser':
81359
+ if author_is_current_user is None:
81360
+ raise ValueError('a union value must not be None')
81361
+ self._author_is_current_user = author_is_current_user
81362
+ self._type = 'authorIsCurrentUser'
81363
+ elif type_of_union == 'authorRids':
81364
+ if author_rids is None:
81365
+ raise ValueError('a union value must not be None')
81366
+ self._author_rids = author_rids
81367
+ self._type = 'authorRids'
81150
81368
 
81151
81369
  @builtins.property
81152
81370
  def and_(self) -> Optional[List["scout_template_api_SearchTemplatesQuery"]]:
@@ -81156,6 +81374,10 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
81156
81374
  def or_(self) -> Optional[List["scout_template_api_SearchTemplatesQuery"]]:
81157
81375
  return self._or_
81158
81376
 
81377
+ @builtins.property
81378
+ def not_(self) -> Optional["scout_template_api_SearchTemplatesQuery"]:
81379
+ return self._not_
81380
+
81159
81381
  @builtins.property
81160
81382
  def exact_match(self) -> Optional[str]:
81161
81383
  """Performs case insensitive exact match search on the title.
@@ -81192,6 +81414,14 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
81192
81414
  def workspace(self) -> Optional[str]:
81193
81415
  return self._workspace
81194
81416
 
81417
+ @builtins.property
81418
+ def author_is_current_user(self) -> Optional["api_Empty"]:
81419
+ return self._author_is_current_user
81420
+
81421
+ @builtins.property
81422
+ def author_rids(self) -> Optional[List[str]]:
81423
+ return self._author_rids
81424
+
81195
81425
  def accept(self, visitor) -> Any:
81196
81426
  if not isinstance(visitor, scout_template_api_SearchTemplatesQueryVisitor):
81197
81427
  raise ValueError('{} is not an instance of scout_template_api_SearchTemplatesQueryVisitor'.format(visitor.__class__.__name__))
@@ -81199,6 +81429,8 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
81199
81429
  return visitor._and(self.and_)
81200
81430
  if self._type == 'or' and self.or_ is not None:
81201
81431
  return visitor._or(self.or_)
81432
+ if self._type == 'not' and self.not_ is not None:
81433
+ return visitor._not(self.not_)
81202
81434
  if self._type == 'exactMatch' and self.exact_match is not None:
81203
81435
  return visitor._exact_match(self.exact_match)
81204
81436
  if self._type == 'searchText' and self.search_text is not None:
@@ -81215,6 +81447,10 @@ class scout_template_api_SearchTemplatesQuery(ConjureUnionType):
81215
81447
  return visitor._is_published(self.is_published)
81216
81448
  if self._type == 'workspace' and self.workspace is not None:
81217
81449
  return visitor._workspace(self.workspace)
81450
+ if self._type == 'authorIsCurrentUser' and self.author_is_current_user is not None:
81451
+ return visitor._author_is_current_user(self.author_is_current_user)
81452
+ if self._type == 'authorRids' and self.author_rids is not None:
81453
+ return visitor._author_rids(self.author_rids)
81218
81454
 
81219
81455
 
81220
81456
  scout_template_api_SearchTemplatesQuery.__name__ = "SearchTemplatesQuery"
@@ -81232,6 +81468,10 @@ class scout_template_api_SearchTemplatesQueryVisitor:
81232
81468
  def _or(self, or_: List["scout_template_api_SearchTemplatesQuery"]) -> Any:
81233
81469
  pass
81234
81470
 
81471
+ @abstractmethod
81472
+ def _not(self, not_: "scout_template_api_SearchTemplatesQuery") -> Any:
81473
+ pass
81474
+
81235
81475
  @abstractmethod
81236
81476
  def _exact_match(self, exact_match: str) -> Any:
81237
81477
  pass
@@ -81264,6 +81504,14 @@ class scout_template_api_SearchTemplatesQueryVisitor:
81264
81504
  def _workspace(self, workspace: str) -> Any:
81265
81505
  pass
81266
81506
 
81507
+ @abstractmethod
81508
+ def _author_is_current_user(self, author_is_current_user: "api_Empty") -> Any:
81509
+ pass
81510
+
81511
+ @abstractmethod
81512
+ def _author_rids(self, author_rids: List[str]) -> Any:
81513
+ pass
81514
+
81267
81515
 
81268
81516
  scout_template_api_SearchTemplatesQueryVisitor.__name__ = "SearchTemplatesQueryVisitor"
81269
81517
  scout_template_api_SearchTemplatesQueryVisitor.__qualname__ = "SearchTemplatesQueryVisitor"
@@ -1,6 +1,7 @@
1
1
  # coding=utf-8
2
2
  from .._impl import (
3
3
  scout_run_api_AllRunsPropertiesAndLabelsResponse as AllRunsPropertiesAndLabelsResponse,
4
+ scout_run_api_ArchiveRunsRequest as ArchiveRunsRequest,
4
5
  scout_run_api_ChannelMetadata as ChannelMetadata,
5
6
  scout_run_api_CheckAlertStatesFilter as CheckAlertStatesFilter,
6
7
  scout_run_api_ConnectionRid as ConnectionRid,
@@ -43,6 +44,7 @@ from .._impl import (
43
44
  scout_run_api_SortOptions as SortOptions,
44
45
  scout_run_api_SortProperty as SortProperty,
45
46
  scout_run_api_TimeRangeFilter as TimeRangeFilter,
47
+ scout_run_api_UnarchiveRunsRequest as UnarchiveRunsRequest,
46
48
  scout_run_api_Unit as Unit,
47
49
  scout_run_api_UpdateAttachmentsRequest as UpdateAttachmentsRequest,
48
50
  scout_run_api_UpdateRunRequest as UpdateRunRequest,
@@ -52,6 +54,7 @@ from .._impl import (
52
54
 
53
55
  __all__ = [
54
56
  'AllRunsPropertiesAndLabelsResponse',
57
+ 'ArchiveRunsRequest',
55
58
  'ChannelMetadata',
56
59
  'CheckAlertStatesFilter',
57
60
  'ConnectionRid',
@@ -94,6 +97,7 @@ __all__ = [
94
97
  'SortOptions',
95
98
  'SortProperty',
96
99
  'TimeRangeFilter',
100
+ 'UnarchiveRunsRequest',
97
101
  'Unit',
98
102
  'UpdateAttachmentsRequest',
99
103
  'UpdateRunRequest',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.867.0
3
+ Version: 0.869.0
4
4
  Requires-Python: >=3.8
5
5
  Requires-Dist: requests
6
6
  Requires-Dist: conjure-python-client<4,>=2.8.0
@@ -1,5 +1,5 @@
1
- nominal_api/__init__.py,sha256=ZBzR2RtI0QfZjDhBDRf2cqwAouRegUVg_EeswHf7Pyo,2088
2
- nominal_api/_impl.py,sha256=QlBMnAYFqC704POc1Kjka1JXyjicszdlu94uEN2cFpY,3724720
1
+ nominal_api/__init__.py,sha256=7cQYVboZP3sQ9fdy5Vb5hrdt7sUDJ37j-1jjJvk5Yjg,2088
2
+ nominal_api/_impl.py,sha256=SuYBcV7RhcdoZQ9MGU-1u-g5kGfL-Qhu76TYbq6PfcI,3734480
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=ZiGjcYwIBCrZR5pPqyqX2ggRJmVcSlOCazMtF2xCZzw,2171
5
5
  nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
@@ -52,7 +52,7 @@ nominal_api/scout_metadata/__init__.py,sha256=tfnzE6dlVBki1ZSy276mkDQQeKehmJLaG9
52
52
  nominal_api/scout_notebook_api/__init__.py,sha256=b-4ONsrgT2NziNHq8em09YxbZcQcKLWmPYkpxBFHPFA,1820
53
53
  nominal_api/scout_plotting/__init__.py,sha256=RJK9HlPmNW_dxSz7CprwjfNKke86x11rQ7BF5pwrBv4,127
54
54
  nominal_api/scout_rids_api/__init__.py,sha256=tObQlt4-bYGcBEgPDHXaadr159GlkYSDdZME1072m94,2101
55
- nominal_api/scout_run_api/__init__.py,sha256=DOerd1dppDM4RLDgPrjh-3i-VAaXtp6XPEqkET0N5W0,4051
55
+ nominal_api/scout_run_api/__init__.py,sha256=3PANPkCkx_CIEdI22kUOQa_fe7GK8OCfMJTw-FaHGsM,4229
56
56
  nominal_api/scout_savedviews/__init__.py,sha256=yky0iF6IK8U5xnDjfzvUuXOb-Tl5RF6dic6abhuX-V8,138
57
57
  nominal_api/scout_savedviews_api/__init__.py,sha256=qGCgh8Pv9N-uekuDwDCHlBu9DCflIT6MiDhtFSmtKQ4,3148
58
58
  nominal_api/scout_template_api/__init__.py,sha256=Yu7FHTypJv09dBKqnWS_dDeXdwI1hgGGZNDbMOHZKr8,1550
@@ -78,7 +78,7 @@ nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrR
78
78
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=USBxFmNnVFdnhTPLvWi3UgsvBZ4Iz4ycNgBTi10F-zI,1603
79
79
  nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
80
80
  nominal_api/usercreation_api/__init__.py,sha256=Q6M70SlKFVfIxZqRohD4XYmBz5t2DP1DB0a0Q6glqGA,171
81
- nominal_api-0.867.0.dist-info/METADATA,sha256=taUl3ufddYPxhYoa2gXfBdKsPay-z1cu3J_V5ech10A,199
82
- nominal_api-0.867.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
- nominal_api-0.867.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
84
- nominal_api-0.867.0.dist-info/RECORD,,
81
+ nominal_api-0.869.0.dist-info/METADATA,sha256=xpKJTr4NfUpH2z-zaWvgPyywyTpeoOVqjtifkgA50kU,199
82
+ nominal_api-0.869.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
+ nominal_api-0.869.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
84
+ nominal_api-0.869.0.dist-info/RECORD,,