You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cognite/client/_api/data_modeling/instances.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -858,7 +858,7 @@ def histogram(
858
858
histograms: Histogram,
859
859
instance_type: Literal["node", "edge"] ="node",
860
860
query: str|None=None,
861
-
properties: Sequence[str] |None=None,
861
+
properties: SequenceNotStr[str] |None=None,
862
862
filter: Filter|None=None,
863
863
limit: int=DEFAULT_LIMIT_READ,
864
864
) ->HistogramValue:
@@ -871,7 +871,7 @@ def histogram(
871
871
histograms: Sequence[Histogram],
872
872
instance_type: Literal["node", "edge"] ="node",
873
873
query: str|None=None,
874
-
properties: Sequence[str] |None=None,
874
+
properties: SequenceNotStr[str] |None=None,
875
875
filter: Filter|None=None,
876
876
limit: int=DEFAULT_LIMIT_READ,
877
877
) ->list[HistogramValue]:
@@ -883,7 +883,7 @@ def histogram(
883
883
histograms: Histogram|Sequence[Histogram],
884
884
instance_type: Literal["node", "edge"] ="node",
885
885
query: str|None=None,
886
-
properties: Sequence[str] |None=None,
886
+
properties: SequenceNotStr[str] |None=None,
887
887
filter: Filter|None=None,
888
888
limit: int=DEFAULT_LIMIT_READ,
889
889
) ->HistogramValue|list[HistogramValue]:
@@ -894,7 +894,7 @@ def histogram(
894
894
histograms (Histogram | Sequence[Histogram]): The properties to aggregate over.
895
895
instance_type (Literal["node", "edge"]): Whether to search for nodes or edges.
896
896
query (str | None): Query string that will be parsed and used for search.
897
-
properties (Sequence[str] | None): Optional array of properties you want to search through. If you do not specify one or more properties, the service will search all text fields within the view.
897
+
properties (SequenceNotStr[str] | None): Optional array of properties you want to search through. If you do not specify one or more properties, the service will search all text fields within the view.
898
898
filter (Filter | None): Advanced filtering of instances.
899
899
limit (int): Maximum number of instances to return. Defaults to 25.
aggregates (Aggregate | str | list[Aggregate | str] | None): Single aggregate or list of aggregates to retrieve. Default: None (raw datapoints returned)
aggregates (Aggregate | str | list[Aggregate | str] | None): Single aggregate or list of aggregates to retrieve. Default: None (raw datapoints returned)
aggregates (Aggregate | str | list[Aggregate | str] | None): Single aggregate or list of aggregates to retrieve. Default: None (raw datapoints returned)
id (int | Sequence[int] | None): ID or list of IDs.
1044
-
external_id (str | Sequence[str] | None): External ID or list of External IDs.
1045
+
external_id (str | SequenceNotStr[str] | None): External ID or list of External IDs.
1045
1046
start (datetime): Inclusive start, must be time zone aware.
1046
1047
end (datetime): Exclusive end, must be time zone aware and have the same time zone as start.
1047
1048
aggregates (Aggregate | str | Sequence[Aggregate | str] | None): Single aggregate or list of aggregates to retrieve. Default: None (raw datapoints returned)
"""`Delete subscription(s). This operation cannot be undone. <https://pr-2221.specs.preview.cogniteapp.com/20230101-beta.json.html#tag/Data-point-subscriptions/operation/deleteSubscriptions>`_
83
84
84
85
Args:
85
-
external_id (str | Sequence[str]): External ID or list of external IDs of subscriptions to delete.
86
+
external_id (str | SequenceNotStr[str]): External ID or list of external IDs of subscriptions to delete.
86
87
ignore_unknown_ids (bool): Whether to ignore IDs and external IDs that are not found rather than throw an exception.
0 commit comments