nominal-api 0.590.0__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 CHANGED
@@ -75,5 +75,5 @@ __all__ = [
75
75
 
76
76
  __conjure_generator_version__ = "4.9.0"
77
77
 
78
- __version__ = "0.590.0"
78
+ __version__ = "0.591.0"
79
79
 
nominal_api/_impl.py CHANGED
@@ -10467,7 +10467,7 @@ Throws if the resource already has a commit graph.
10467
10467
 
10468
10468
  _json: Any = ConjureEncoder().default(request)
10469
10469
 
10470
- _path = '/scout/v1/versioning/internal/{resourceRid}'
10470
+ _path = '/internal/scout/v1/versioning/{resourceRid}'
10471
10471
  _path = _path.format(**_path_params)
10472
10472
 
10473
10473
  _response: Response = self._request(
@@ -10503,7 +10503,7 @@ Throws if latestCommit is passed and is not the latest commit.
10503
10503
 
10504
10504
  _json: Any = ConjureEncoder().default(request)
10505
10505
 
10506
- _path = '/scout/v1/versioning/internal/{resourceRid}/branch/{branchName}/working-state'
10506
+ _path = '/internal/scout/v1/versioning/{resourceRid}/branch/{branchName}/working-state'
10507
10507
  _path = _path.format(**_path_params)
10508
10508
 
10509
10509
  _response: Response = self._request(
@@ -10539,7 +10539,7 @@ Throws if latestCommit is passed and is not the latest commit.
10539
10539
 
10540
10540
  _json: Any = ConjureEncoder().default(request)
10541
10541
 
10542
- _path = '/scout/v1/versioning/internal/{resourceRid}/branch/{branchName}/commit'
10542
+ _path = '/internal/scout/v1/versioning/{resourceRid}/branch/{branchName}/commit'
10543
10543
  _path = _path.format(**_path_params)
10544
10544
 
10545
10545
  _response: Response = self._request(
@@ -10576,7 +10576,7 @@ Throws if the resource doesn't exist.
10576
10576
 
10577
10577
  _json: Any = ConjureEncoder().default(request)
10578
10578
 
10579
- _path = '/scout/v1/versioning/internal/{resourceRid}/compact-commits'
10579
+ _path = '/internal/scout/v1/versioning/{resourceRid}/compact-commits'
10580
10580
  _path = _path.format(**_path_params)
10581
10581
 
10582
10582
  _response: Response = self._request(
@@ -23832,6 +23832,7 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
23832
23832
  _assignee_rid: Optional[str] = None
23833
23833
  _is_published: Optional[bool] = None
23834
23834
  _not_: Optional["scout_checks_api_ChecklistSearchQuery"] = None
23835
+ _workspace: Optional[str] = None
23835
23836
 
23836
23837
  @builtins.classmethod
23837
23838
  def _options(cls) -> Dict[str, ConjureFieldDefinition]:
@@ -23844,7 +23845,8 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
23844
23845
  'author_rid': ConjureFieldDefinition('authorRid', scout_rids_api_UserRid),
23845
23846
  'assignee_rid': ConjureFieldDefinition('assigneeRid', scout_rids_api_UserRid),
23846
23847
  'is_published': ConjureFieldDefinition('isPublished', bool),
23847
- 'not_': ConjureFieldDefinition('not', scout_checks_api_ChecklistSearchQuery)
23848
+ 'not_': ConjureFieldDefinition('not', scout_checks_api_ChecklistSearchQuery),
23849
+ 'workspace': ConjureFieldDefinition('workspace', api_ids_WorkspaceId)
23848
23850
  }
23849
23851
 
23850
23852
  def __init__(
@@ -23858,10 +23860,11 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
23858
23860
  assignee_rid: Optional[str] = None,
23859
23861
  is_published: Optional[bool] = None,
23860
23862
  not_: Optional["scout_checks_api_ChecklistSearchQuery"] = None,
23863
+ workspace: Optional[str] = None,
23861
23864
  type_of_union: Optional[str] = None
23862
23865
  ) -> None:
23863
23866
  if type_of_union is None:
23864
- 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:
23865
23868
  raise ValueError('a union must contain a single member')
23866
23869
 
23867
23870
  if and_ is not None:
@@ -23891,6 +23894,9 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
23891
23894
  if not_ is not None:
23892
23895
  self._not_ = not_
23893
23896
  self._type = 'not'
23897
+ if workspace is not None:
23898
+ self._workspace = workspace
23899
+ self._type = 'workspace'
23894
23900
 
23895
23901
  elif type_of_union == 'and':
23896
23902
  if and_ is None:
@@ -23937,6 +23943,11 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
23937
23943
  raise ValueError('a union value must not be None')
23938
23944
  self._not_ = not_
23939
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'
23940
23951
 
23941
23952
  @builtins.property
23942
23953
  def and_(self) -> Optional[List["scout_checks_api_ChecklistSearchQuery"]]:
@@ -23974,6 +23985,10 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
23974
23985
  def not_(self) -> Optional["scout_checks_api_ChecklistSearchQuery"]:
23975
23986
  return self._not_
23976
23987
 
23988
+ @builtins.property
23989
+ def workspace(self) -> Optional[str]:
23990
+ return self._workspace
23991
+
23977
23992
  def accept(self, visitor) -> Any:
23978
23993
  if not isinstance(visitor, scout_checks_api_ChecklistSearchQueryVisitor):
23979
23994
  raise ValueError('{} is not an instance of scout_checks_api_ChecklistSearchQueryVisitor'.format(visitor.__class__.__name__))
@@ -23995,6 +24010,8 @@ class scout_checks_api_ChecklistSearchQuery(ConjureUnionType):
23995
24010
  return visitor._is_published(self.is_published)
23996
24011
  if self._type == 'not' and self.not_ is not None:
23997
24012
  return visitor._not(self.not_)
24013
+ if self._type == 'workspace' and self.workspace is not None:
24014
+ return visitor._workspace(self.workspace)
23998
24015
 
23999
24016
 
24000
24017
  scout_checks_api_ChecklistSearchQuery.__name__ = "ChecklistSearchQuery"
@@ -24040,6 +24057,10 @@ class scout_checks_api_ChecklistSearchQueryVisitor:
24040
24057
  def _not(self, not_: "scout_checks_api_ChecklistSearchQuery") -> Any:
24041
24058
  pass
24042
24059
 
24060
+ @abstractmethod
24061
+ def _workspace(self, workspace: str) -> Any:
24062
+ pass
24063
+
24043
24064
 
24044
24065
  scout_checks_api_ChecklistSearchQueryVisitor.__name__ = "ChecklistSearchQueryVisitor"
24045
24066
  scout_checks_api_ChecklistSearchQueryVisitor.__qualname__ = "ChecklistSearchQueryVisitor"
@@ -24521,10 +24542,11 @@ If neither is specified, branch = "main" is the default.
24521
24542
  _decoder = ConjureDecoder()
24522
24543
  return _decoder.decode(_response.json(), List[scout_checks_api_Check], self._return_none_for_unknown_union_types)
24523
24544
 
24524
- 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":
24525
24546
  """
24526
24547
  Returns all labels and properties.
24527
24548
  """
24549
+ workspaces = workspaces if workspaces is not None else []
24528
24550
 
24529
24551
  _headers: Dict[str, Any] = {
24530
24552
  'Accept': 'application/json',
@@ -24532,6 +24554,7 @@ If neither is specified, branch = "main" is the default.
24532
24554
  }
24533
24555
 
24534
24556
  _params: Dict[str, Any] = {
24557
+ 'workspaces': workspaces,
24535
24558
  }
24536
24559
 
24537
24560
  _path_params: Dict[str, Any] = {
@@ -24857,12 +24880,13 @@ class scout_checks_api_CreateChecklistRequest(ConjureBeanType):
24857
24880
  'properties': ConjureFieldDefinition('properties', Dict[api_PropertyName, api_PropertyValue]),
24858
24881
  'labels': ConjureFieldDefinition('labels', List[api_Label]),
24859
24882
  'checklist_variables': ConjureFieldDefinition('checklistVariables', List[scout_checks_api_UnresolvedChecklistVariable]),
24860
- 'is_published': ConjureFieldDefinition('isPublished', OptionalTypeWrapper[bool])
24883
+ 'is_published': ConjureFieldDefinition('isPublished', OptionalTypeWrapper[bool]),
24884
+ 'workspace': ConjureFieldDefinition('workspace', OptionalTypeWrapper[api_ids_WorkspaceId])
24861
24885
  }
24862
24886
 
24863
- __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']
24864
24888
 
24865
- 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:
24866
24890
  self._commit_message = commit_message
24867
24891
  self._assignee_rid = assignee_rid
24868
24892
  self._title = title
@@ -24873,6 +24897,7 @@ class scout_checks_api_CreateChecklistRequest(ConjureBeanType):
24873
24897
  self._labels = labels
24874
24898
  self._checklist_variables = checklist_variables
24875
24899
  self._is_published = is_published
24900
+ self._workspace = workspace
24876
24901
 
24877
24902
  @builtins.property
24878
24903
  def commit_message(self) -> str:
@@ -24924,6 +24949,14 @@ If variable `a` depends on variable `b`, then `b` must be defined before `a` in
24924
24949
  """
24925
24950
  return self._is_published
24926
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
+
24927
24960
 
24928
24961
  scout_checks_api_CreateChecklistRequest.__name__ = "CreateChecklistRequest"
24929
24962
  scout_checks_api_CreateChecklistRequest.__qualname__ = "CreateChecklistRequest"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nominal-api
3
- Version: 0.590.0
3
+ Version: 0.591.0
4
4
  Requires-Python: >=3.8
5
5
  Requires-Dist: requests
6
6
  Requires-Dist: conjure-python-client<3,>=2.8.0
@@ -1,5 +1,5 @@
1
- nominal_api/__init__.py,sha256=JWa1TNmGMtGgdNrXEPWPPHk1RVMTxpNHjlp-7TzpZEU,1968
2
- nominal_api/_impl.py,sha256=lWrWgozES8Xs23yERC5pI3D-F_xU3lVr3H9w3fMz-TY,2870354
1
+ nominal_api/__init__.py,sha256=FIGlzkJguCOH0Exgb8e6ZrjnnHwk7w4cNqytYa4mBlo,1968
2
+ nominal_api/_impl.py,sha256=jfnHKrIbjt_94S9nkm_qE5vlV57MTC0v6ZR-J_HrPiY,2871852
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=kJBEE_HLVpKYdLH12KyO-cSAVzwxYpBwaaDutCtT-LM,1236
5
5
  nominal_api/api_ids/__init__.py,sha256=CAtt44XgNZEEUDv-BbEbYtuxQ8y1wqSZU-STjBYdZv8,80
@@ -72,7 +72,7 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=7NlQhIzOKOcjwMNUI89f
72
72
  nominal_api/timeseries_seriescache/__init__.py,sha256=tFCkNuyrVMgtj-HIl1pOYPJHaL2VikI4C_x97bX_Lcs,109
73
73
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=U9EhlqdF9qzD1O9al0vcvcdgS_C5lq-lN3Kmr0K3g84,1191
74
74
  nominal_api/upload_api/__init__.py,sha256=ZMudWMSqCrNozohbHaJKuxJnT9Edepe7nxxXMz_pT9k,87
75
- nominal_api-0.590.0.dist-info/METADATA,sha256=l27YENTrJkTFG3tXiRXQDxW2FFa8oaoTNm3jrRd4bqI,199
76
- nominal_api-0.590.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
77
- nominal_api-0.590.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
78
- nominal_api-0.590.0.dist-info/RECORD,,
75
+ nominal_api-0.591.0.dist-info/METADATA,sha256=DUH0MDQbQtj45Ti3pIuWhvPxk-AR4U01Vw3Y2lxj5L4,199
76
+ nominal_api-0.591.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
77
+ nominal_api-0.591.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
78
+ nominal_api-0.591.0.dist-info/RECORD,,