diff --git a/harness/determined/common/api/bindings.py b/harness/determined/common/api/bindings.py index b6384d66a20..22b7b470273 100644 --- a/harness/determined/common/api/bindings.py +++ b/harness/determined/common/api/bindings.py @@ -1726,40 +1726,36 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: class v1ArchiveRunsRequest(Printable): filter: "typing.Optional[str]" = None - runIds: "typing.Optional[typing.Sequence[int]]" = None def __init__( self, *, projectId: int, + runIds: "typing.Sequence[int]", filter: "typing.Union[str, None, Unset]" = _unset, - runIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, ): self.projectId = projectId + self.runIds = runIds if not isinstance(filter, Unset): self.filter = filter - if not isinstance(runIds, Unset): - self.runIds = runIds @classmethod def from_json(cls, obj: Json) -> "v1ArchiveRunsRequest": kwargs: "typing.Dict[str, typing.Any]" = { "projectId": obj["projectId"], + "runIds": obj["runIds"], } if "filter" in obj: kwargs["filter"] = obj["filter"] - if "runIds" in obj: - kwargs["runIds"] = obj["runIds"] return cls(**kwargs) def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: out: "typing.Dict[str, typing.Any]" = { "projectId": self.projectId, + "runIds": self.runIds, } if not omit_unset or "filter" in vars(self): out["filter"] = self.filter - if not omit_unset or "runIds" in vars(self): - out["runIds"] = self.runIds return out class v1ArchiveRunsResponse(Printable): @@ -1785,67 +1781,6 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: } return out -class v1ArchiveSearchesRequest(Printable): - filter: "typing.Optional[str]" = None - searchIds: "typing.Optional[typing.Sequence[int]]" = None - - def __init__( - self, - *, - projectId: int, - filter: "typing.Union[str, None, Unset]" = _unset, - searchIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, - ): - self.projectId = projectId - if not isinstance(filter, Unset): - self.filter = filter - if not isinstance(searchIds, Unset): - self.searchIds = searchIds - - @classmethod - def from_json(cls, obj: Json) -> "v1ArchiveSearchesRequest": - kwargs: "typing.Dict[str, typing.Any]" = { - "projectId": obj["projectId"], - } - if "filter" in obj: - kwargs["filter"] = obj["filter"] - if "searchIds" in obj: - kwargs["searchIds"] = obj["searchIds"] - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "projectId": self.projectId, - } - if not omit_unset or "filter" in vars(self): - out["filter"] = self.filter - if not omit_unset or "searchIds" in vars(self): - out["searchIds"] = self.searchIds - return out - -class v1ArchiveSearchesResponse(Printable): - """Response to ArchiveSearchesRequest.""" - - def __init__( - self, - *, - results: "typing.Sequence[v1SearchActionResult]", - ): - self.results = results - - @classmethod - def from_json(cls, obj: Json) -> "v1ArchiveSearchesResponse": - kwargs: "typing.Dict[str, typing.Any]" = { - "results": [v1SearchActionResult.from_json(x) for x in obj["results"]], - } - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "results": [x.to_json(omit_unset) for x in self.results], - } - return out - class v1AssignMultipleGroupsRequest(Printable): """Add and remove multiple users from multiple groups.""" @@ -2147,68 +2082,6 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: } return out -class v1CancelSearchesRequest(Printable): - """Cancel searches.""" - filter: "typing.Optional[str]" = None - searchIds: "typing.Optional[typing.Sequence[int]]" = None - - def __init__( - self, - *, - projectId: int, - filter: "typing.Union[str, None, Unset]" = _unset, - searchIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, - ): - self.projectId = projectId - if not isinstance(filter, Unset): - self.filter = filter - if not isinstance(searchIds, Unset): - self.searchIds = searchIds - - @classmethod - def from_json(cls, obj: Json) -> "v1CancelSearchesRequest": - kwargs: "typing.Dict[str, typing.Any]" = { - "projectId": obj["projectId"], - } - if "filter" in obj: - kwargs["filter"] = obj["filter"] - if "searchIds" in obj: - kwargs["searchIds"] = obj["searchIds"] - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "projectId": self.projectId, - } - if not omit_unset or "filter" in vars(self): - out["filter"] = self.filter - if not omit_unset or "searchIds" in vars(self): - out["searchIds"] = self.searchIds - return out - -class v1CancelSearchesResponse(Printable): - """Response to CancelSearchesRequest.""" - - def __init__( - self, - *, - results: "typing.Sequence[v1SearchActionResult]", - ): - self.results = results - - @classmethod - def from_json(cls, obj: Json) -> "v1CancelSearchesResponse": - kwargs: "typing.Dict[str, typing.Any]" = { - "results": [v1SearchActionResult.from_json(x) for x in obj["results"]], - } - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "results": [x.to_json(omit_unset) for x in self.results], - } - return out - class v1Checkpoint(Printable): """Checkpoint a collection of files saved by a task.""" allocationId: "typing.Optional[str]" = None @@ -3374,40 +3247,40 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: class v1DeleteRunsRequest(Printable): """Delete runs.""" filter: "typing.Optional[str]" = None - runIds: "typing.Optional[typing.Sequence[int]]" = None + projectId: "typing.Optional[int]" = None def __init__( self, *, - projectId: int, + runIds: "typing.Sequence[int]", filter: "typing.Union[str, None, Unset]" = _unset, - runIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, + projectId: "typing.Union[int, None, Unset]" = _unset, ): - self.projectId = projectId + self.runIds = runIds if not isinstance(filter, Unset): self.filter = filter - if not isinstance(runIds, Unset): - self.runIds = runIds + if not isinstance(projectId, Unset): + self.projectId = projectId @classmethod def from_json(cls, obj: Json) -> "v1DeleteRunsRequest": kwargs: "typing.Dict[str, typing.Any]" = { - "projectId": obj["projectId"], + "runIds": obj["runIds"], } if "filter" in obj: kwargs["filter"] = obj["filter"] - if "runIds" in obj: - kwargs["runIds"] = obj["runIds"] + if "projectId" in obj: + kwargs["projectId"] = obj["projectId"] return cls(**kwargs) def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: out: "typing.Dict[str, typing.Any]" = { - "projectId": self.projectId, + "runIds": self.runIds, } if not omit_unset or "filter" in vars(self): out["filter"] = self.filter - if not omit_unset or "runIds" in vars(self): - out["runIds"] = self.runIds + if not omit_unset or "projectId" in vars(self): + out["projectId"] = self.projectId return out class v1DeleteRunsResponse(Printable): @@ -3433,68 +3306,6 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: } return out -class v1DeleteSearchesRequest(Printable): - """Delete searches.""" - filter: "typing.Optional[str]" = None - searchIds: "typing.Optional[typing.Sequence[int]]" = None - - def __init__( - self, - *, - projectId: int, - filter: "typing.Union[str, None, Unset]" = _unset, - searchIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, - ): - self.projectId = projectId - if not isinstance(filter, Unset): - self.filter = filter - if not isinstance(searchIds, Unset): - self.searchIds = searchIds - - @classmethod - def from_json(cls, obj: Json) -> "v1DeleteSearchesRequest": - kwargs: "typing.Dict[str, typing.Any]" = { - "projectId": obj["projectId"], - } - if "filter" in obj: - kwargs["filter"] = obj["filter"] - if "searchIds" in obj: - kwargs["searchIds"] = obj["searchIds"] - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "projectId": self.projectId, - } - if not omit_unset or "filter" in vars(self): - out["filter"] = self.filter - if not omit_unset or "searchIds" in vars(self): - out["searchIds"] = self.searchIds - return out - -class v1DeleteSearchesResponse(Printable): - """Response to DeleteSearchesRequest.""" - - def __init__( - self, - *, - results: "typing.Sequence[v1SearchActionResult]", - ): - self.results = results - - @classmethod - def from_json(cls, obj: Json) -> "v1DeleteSearchesResponse": - kwargs: "typing.Dict[str, typing.Any]" = { - "results": [v1SearchActionResult.from_json(x) for x in obj["results"]], - } - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "results": [x.to_json(omit_unset) for x in self.results], - } - return out - class v1DeleteWorkspaceResponse(Printable): """Response to DeleteWorkspaceRequest.""" @@ -4674,55 +4485,6 @@ class v1GenericTaskState(DetEnum): STOPPING_COMPLETED = "GENERIC_TASK_STATE_STOPPING_COMPLETED" STOPPING_ERROR = "GENERIC_TASK_STATE_STOPPING_ERROR" -class v1GetAccessTokensRequestSortBy(DetEnum): - """Sort token info by the given field. - - SORT_BY_UNSPECIFIED: Returns token info in an unsorted list. - - SORT_BY_USER_ID: Returns token info sorted by user id. - - SORT_BY_EXPIRY: Returns token info sorted by expiry. - - SORT_BY_CREATED_AT: Returns token info sorted by created at. - - SORT_BY_TOKEN_TYPE: Returns token info sorted by token type. - - SORT_BY_REVOKED: Returns token info sorted by if it is revoked. - - SORT_BY_DESCRIPTION: Returns token info sorted by description of token. - """ - UNSPECIFIED = "SORT_BY_UNSPECIFIED" - USER_ID = "SORT_BY_USER_ID" - EXPIRY = "SORT_BY_EXPIRY" - CREATED_AT = "SORT_BY_CREATED_AT" - TOKEN_TYPE = "SORT_BY_TOKEN_TYPE" - REVOKED = "SORT_BY_REVOKED" - DESCRIPTION = "SORT_BY_DESCRIPTION" - -class v1GetAccessTokensResponse(Printable): - """Response to GetAccessTokensRequest.""" - pagination: "typing.Optional[v1Pagination]" = None - - def __init__( - self, - *, - tokenInfo: "typing.Sequence[v1TokenInfo]", - pagination: "typing.Union[v1Pagination, None, Unset]" = _unset, - ): - self.tokenInfo = tokenInfo - if not isinstance(pagination, Unset): - self.pagination = pagination - - @classmethod - def from_json(cls, obj: Json) -> "v1GetAccessTokensResponse": - kwargs: "typing.Dict[str, typing.Any]" = { - "tokenInfo": [v1TokenInfo.from_json(x) for x in obj["tokenInfo"]], - } - if "pagination" in obj: - kwargs["pagination"] = v1Pagination.from_json(obj["pagination"]) if obj["pagination"] is not None else None - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "tokenInfo": [x.to_json(omit_unset) for x in self.tokenInfo], - } - if not omit_unset or "pagination" in vars(self): - out["pagination"] = None if self.pagination is None else self.pagination.to_json(omit_unset) - return out - class v1GetActiveTasksCountResponse(Printable): """Response to GetActiveTasksCountRequest.""" @@ -7920,43 +7682,39 @@ class v1KillRunsRequest(Printable): """Kill runs.""" filter: "typing.Optional[str]" = None projectId: "typing.Optional[int]" = None - runIds: "typing.Optional[typing.Sequence[int]]" = None def __init__( self, *, + runIds: "typing.Sequence[int]", filter: "typing.Union[str, None, Unset]" = _unset, projectId: "typing.Union[int, None, Unset]" = _unset, - runIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, ): + self.runIds = runIds if not isinstance(filter, Unset): self.filter = filter if not isinstance(projectId, Unset): self.projectId = projectId - if not isinstance(runIds, Unset): - self.runIds = runIds @classmethod def from_json(cls, obj: Json) -> "v1KillRunsRequest": kwargs: "typing.Dict[str, typing.Any]" = { + "runIds": obj["runIds"], } if "filter" in obj: kwargs["filter"] = obj["filter"] if "projectId" in obj: kwargs["projectId"] = obj["projectId"] - if "runIds" in obj: - kwargs["runIds"] = obj["runIds"] return cls(**kwargs) def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: out: "typing.Dict[str, typing.Any]" = { + "runIds": self.runIds, } if not omit_unset or "filter" in vars(self): out["filter"] = self.filter if not omit_unset or "projectId" in vars(self): out["projectId"] = self.projectId - if not omit_unset or "runIds" in vars(self): - out["runIds"] = self.runIds return out class v1KillRunsResponse(Printable): @@ -7982,68 +7740,6 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: } return out -class v1KillSearchesRequest(Printable): - """Kill searches.""" - filter: "typing.Optional[str]" = None - searchIds: "typing.Optional[typing.Sequence[int]]" = None - - def __init__( - self, - *, - projectId: int, - filter: "typing.Union[str, None, Unset]" = _unset, - searchIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, - ): - self.projectId = projectId - if not isinstance(filter, Unset): - self.filter = filter - if not isinstance(searchIds, Unset): - self.searchIds = searchIds - - @classmethod - def from_json(cls, obj: Json) -> "v1KillSearchesRequest": - kwargs: "typing.Dict[str, typing.Any]" = { - "projectId": obj["projectId"], - } - if "filter" in obj: - kwargs["filter"] = obj["filter"] - if "searchIds" in obj: - kwargs["searchIds"] = obj["searchIds"] - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "projectId": self.projectId, - } - if not omit_unset or "filter" in vars(self): - out["filter"] = self.filter - if not omit_unset or "searchIds" in vars(self): - out["searchIds"] = self.searchIds - return out - -class v1KillSearchesResponse(Printable): - """Response to KillSearchesRequest.""" - - def __init__( - self, - *, - results: "typing.Sequence[v1SearchActionResult]", - ): - self.results = results - - @classmethod - def from_json(cls, obj: Json) -> "v1KillSearchesResponse": - kwargs: "typing.Dict[str, typing.Any]" = { - "results": [v1SearchActionResult.from_json(x) for x in obj["results"]], - } - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "results": [x.to_json(omit_unset) for x in self.results], - } - return out - class v1KillShellResponse(Printable): """Response to KillShellRequest.""" shell: "typing.Optional[v1Shell]" = None @@ -8490,122 +8186,20 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: out["warnings"] = None if self.warnings is None else [x.value for x in self.warnings] return out -class v1LaunchTensorboardSearchesRequest(Printable): - """Request to launch a tensorboard using searches matching a filter.""" - config: "typing.Optional[typing.Dict[str, typing.Any]]" = None - files: "typing.Optional[typing.Sequence[v1File]]" = None - filter: "typing.Optional[str]" = None - searchIds: "typing.Optional[typing.Sequence[int]]" = None - templateName: "typing.Optional[str]" = None - workspaceId: "typing.Optional[int]" = None - - def __init__( - self, - *, - config: "typing.Union[typing.Dict[str, typing.Any], None, Unset]" = _unset, - files: "typing.Union[typing.Sequence[v1File], None, Unset]" = _unset, - filter: "typing.Union[str, None, Unset]" = _unset, - searchIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, - templateName: "typing.Union[str, None, Unset]" = _unset, - workspaceId: "typing.Union[int, None, Unset]" = _unset, - ): - if not isinstance(config, Unset): - self.config = config - if not isinstance(files, Unset): - self.files = files - if not isinstance(filter, Unset): - self.filter = filter - if not isinstance(searchIds, Unset): - self.searchIds = searchIds - if not isinstance(templateName, Unset): - self.templateName = templateName - if not isinstance(workspaceId, Unset): - self.workspaceId = workspaceId - - @classmethod - def from_json(cls, obj: Json) -> "v1LaunchTensorboardSearchesRequest": - kwargs: "typing.Dict[str, typing.Any]" = { - } - if "config" in obj: - kwargs["config"] = obj["config"] - if "files" in obj: - kwargs["files"] = [v1File.from_json(x) for x in obj["files"]] if obj["files"] is not None else None - if "filter" in obj: - kwargs["filter"] = obj["filter"] - if "searchIds" in obj: - kwargs["searchIds"] = obj["searchIds"] - if "templateName" in obj: - kwargs["templateName"] = obj["templateName"] - if "workspaceId" in obj: - kwargs["workspaceId"] = obj["workspaceId"] - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - } - if not omit_unset or "config" in vars(self): - out["config"] = self.config - if not omit_unset or "files" in vars(self): - out["files"] = None if self.files is None else [x.to_json(omit_unset) for x in self.files] - if not omit_unset or "filter" in vars(self): - out["filter"] = self.filter - if not omit_unset or "searchIds" in vars(self): - out["searchIds"] = self.searchIds - if not omit_unset or "templateName" in vars(self): - out["templateName"] = self.templateName - if not omit_unset or "workspaceId" in vars(self): - out["workspaceId"] = self.workspaceId - return out - -class v1LaunchTensorboardSearchesResponse(Printable): - """Response to LaunchTensorboardSearchesRequest.""" - warnings: "typing.Optional[typing.Sequence[v1LaunchWarning]]" = None - - def __init__( - self, - *, - config: "typing.Dict[str, typing.Any]", - tensorboard: "v1Tensorboard", - warnings: "typing.Union[typing.Sequence[v1LaunchWarning], None, Unset]" = _unset, - ): - self.config = config - self.tensorboard = tensorboard - if not isinstance(warnings, Unset): - self.warnings = warnings - - @classmethod - def from_json(cls, obj: Json) -> "v1LaunchTensorboardSearchesResponse": - kwargs: "typing.Dict[str, typing.Any]" = { - "config": obj["config"], - "tensorboard": v1Tensorboard.from_json(obj["tensorboard"]), - } - if "warnings" in obj: - kwargs["warnings"] = [v1LaunchWarning(x) for x in obj["warnings"]] if obj["warnings"] is not None else None - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "config": self.config, - "tensorboard": self.tensorboard.to_json(omit_unset), - } - if not omit_unset or "warnings" in vars(self): - out["warnings"] = None if self.warnings is None else [x.value for x in self.warnings] - return out - -class v1LaunchWarning(DetEnum): - """Enum values for warnings when launching commands. - - LAUNCH_WARNING_UNSPECIFIED: Default value - - LAUNCH_WARNING_CURRENT_SLOTS_EXCEEDED: For a default webhook - """ - UNSPECIFIED = "LAUNCH_WARNING_UNSPECIFIED" - CURRENT_SLOTS_EXCEEDED = "LAUNCH_WARNING_CURRENT_SLOTS_EXCEEDED" - -class v1LimitedJob(Printable): - """LimitedJob is a Job with omitted fields.""" - priority: "typing.Optional[int]" = None - progress: "typing.Optional[float]" = None - summary: "typing.Optional[v1JobSummary]" = None - weight: "typing.Optional[float]" = None +class v1LaunchWarning(DetEnum): + """Enum values for warnings when launching commands. + - LAUNCH_WARNING_UNSPECIFIED: Default value + - LAUNCH_WARNING_CURRENT_SLOTS_EXCEEDED: For a default webhook + """ + UNSPECIFIED = "LAUNCH_WARNING_UNSPECIFIED" + CURRENT_SLOTS_EXCEEDED = "LAUNCH_WARNING_CURRENT_SLOTS_EXCEEDED" + +class v1LimitedJob(Printable): + """LimitedJob is a Job with omitted fields.""" + priority: "typing.Optional[int]" = None + progress: "typing.Optional[float]" = None + summary: "typing.Optional[v1JobSummary]" = None + weight: "typing.Optional[float]" = None def __init__( self, @@ -9609,24 +9203,22 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: class v1MoveRunsRequest(Printable): """Request to move the run to a different project.""" filter: "typing.Optional[str]" = None - runIds: "typing.Optional[typing.Sequence[int]]" = None skipMultitrial: "typing.Optional[bool]" = None def __init__( self, *, destinationProjectId: int, + runIds: "typing.Sequence[int]", sourceProjectId: int, filter: "typing.Union[str, None, Unset]" = _unset, - runIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, skipMultitrial: "typing.Union[bool, None, Unset]" = _unset, ): self.destinationProjectId = destinationProjectId + self.runIds = runIds self.sourceProjectId = sourceProjectId if not isinstance(filter, Unset): self.filter = filter - if not isinstance(runIds, Unset): - self.runIds = runIds if not isinstance(skipMultitrial, Unset): self.skipMultitrial = skipMultitrial @@ -9634,12 +9226,11 @@ def __init__( def from_json(cls, obj: Json) -> "v1MoveRunsRequest": kwargs: "typing.Dict[str, typing.Any]" = { "destinationProjectId": obj["destinationProjectId"], + "runIds": obj["runIds"], "sourceProjectId": obj["sourceProjectId"], } if "filter" in obj: kwargs["filter"] = obj["filter"] - if "runIds" in obj: - kwargs["runIds"] = obj["runIds"] if "skipMultitrial" in obj: kwargs["skipMultitrial"] = obj["skipMultitrial"] return cls(**kwargs) @@ -9647,12 +9238,11 @@ def from_json(cls, obj: Json) -> "v1MoveRunsRequest": def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: out: "typing.Dict[str, typing.Any]" = { "destinationProjectId": self.destinationProjectId, + "runIds": self.runIds, "sourceProjectId": self.sourceProjectId, } if not omit_unset or "filter" in vars(self): out["filter"] = self.filter - if not omit_unset or "runIds" in vars(self): - out["runIds"] = self.runIds if not omit_unset or "skipMultitrial" in vars(self): out["skipMultitrial"] = self.skipMultitrial return out @@ -9680,72 +9270,6 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: } return out -class v1MoveSearchesRequest(Printable): - """Request to move the search to a different project.""" - filter: "typing.Optional[str]" = None - searchIds: "typing.Optional[typing.Sequence[int]]" = None - - def __init__( - self, - *, - destinationProjectId: int, - sourceProjectId: int, - filter: "typing.Union[str, None, Unset]" = _unset, - searchIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, - ): - self.destinationProjectId = destinationProjectId - self.sourceProjectId = sourceProjectId - if not isinstance(filter, Unset): - self.filter = filter - if not isinstance(searchIds, Unset): - self.searchIds = searchIds - - @classmethod - def from_json(cls, obj: Json) -> "v1MoveSearchesRequest": - kwargs: "typing.Dict[str, typing.Any]" = { - "destinationProjectId": obj["destinationProjectId"], - "sourceProjectId": obj["sourceProjectId"], - } - if "filter" in obj: - kwargs["filter"] = obj["filter"] - if "searchIds" in obj: - kwargs["searchIds"] = obj["searchIds"] - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "destinationProjectId": self.destinationProjectId, - "sourceProjectId": self.sourceProjectId, - } - if not omit_unset or "filter" in vars(self): - out["filter"] = self.filter - if not omit_unset or "searchIds" in vars(self): - out["searchIds"] = self.searchIds - return out - -class v1MoveSearchesResponse(Printable): - """Response to MoveSearchesRequest.""" - - def __init__( - self, - *, - results: "typing.Sequence[v1SearchActionResult]", - ): - self.results = results - - @classmethod - def from_json(cls, obj: Json) -> "v1MoveSearchesResponse": - kwargs: "typing.Dict[str, typing.Any]" = { - "results": [v1SearchActionResult.from_json(x) for x in obj["results"]], - } - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "results": [x.to_json(omit_unset) for x in self.results], - } - return out - class v1Note(Printable): """Note is a user comment connected to a project.""" @@ -10055,72 +9579,6 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: out["total"] = self.total return out -class v1PatchAccessTokenRequest(Printable): - """Patch user's access token info.""" - description: "typing.Optional[str]" = None - setRevoked: "typing.Optional[bool]" = None - - def __init__( - self, - *, - tokenId: int, - description: "typing.Union[str, None, Unset]" = _unset, - setRevoked: "typing.Union[bool, None, Unset]" = _unset, - ): - self.tokenId = tokenId - if not isinstance(description, Unset): - self.description = description - if not isinstance(setRevoked, Unset): - self.setRevoked = setRevoked - - @classmethod - def from_json(cls, obj: Json) -> "v1PatchAccessTokenRequest": - kwargs: "typing.Dict[str, typing.Any]" = { - "tokenId": obj["tokenId"], - } - if "description" in obj: - kwargs["description"] = obj["description"] - if "setRevoked" in obj: - kwargs["setRevoked"] = obj["setRevoked"] - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "tokenId": self.tokenId, - } - if not omit_unset or "description" in vars(self): - out["description"] = self.description - if not omit_unset or "setRevoked" in vars(self): - out["setRevoked"] = self.setRevoked - return out - -class v1PatchAccessTokenResponse(Printable): - """Response to PatchAccessTokenRequest.""" - tokenInfo: "typing.Optional[v1TokenInfo]" = None - - def __init__( - self, - *, - tokenInfo: "typing.Union[v1TokenInfo, None, Unset]" = _unset, - ): - if not isinstance(tokenInfo, Unset): - self.tokenInfo = tokenInfo - - @classmethod - def from_json(cls, obj: Json) -> "v1PatchAccessTokenResponse": - kwargs: "typing.Dict[str, typing.Any]" = { - } - if "tokenInfo" in obj: - kwargs["tokenInfo"] = v1TokenInfo.from_json(obj["tokenInfo"]) if obj["tokenInfo"] is not None else None - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - } - if not omit_unset or "tokenInfo" in vars(self): - out["tokenInfo"] = None if self.tokenInfo is None else self.tokenInfo.to_json(omit_unset) - return out - class v1PatchCheckpoint(Printable): """Request to change checkpoint database information.""" resources: "typing.Optional[PatchCheckpointOptionalResources]" = None @@ -11047,40 +10505,36 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: class v1PauseRunsRequest(Printable): """Request to pause the experiment associated witha run.""" filter: "typing.Optional[str]" = None - runIds: "typing.Optional[typing.Sequence[int]]" = None def __init__( self, *, projectId: int, + runIds: "typing.Sequence[int]", filter: "typing.Union[str, None, Unset]" = _unset, - runIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, ): self.projectId = projectId + self.runIds = runIds if not isinstance(filter, Unset): self.filter = filter - if not isinstance(runIds, Unset): - self.runIds = runIds @classmethod def from_json(cls, obj: Json) -> "v1PauseRunsRequest": kwargs: "typing.Dict[str, typing.Any]" = { "projectId": obj["projectId"], + "runIds": obj["runIds"], } if "filter" in obj: kwargs["filter"] = obj["filter"] - if "runIds" in obj: - kwargs["runIds"] = obj["runIds"] return cls(**kwargs) def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: out: "typing.Dict[str, typing.Any]" = { "projectId": self.projectId, + "runIds": self.runIds, } if not omit_unset or "filter" in vars(self): out["filter"] = self.filter - if not omit_unset or "runIds" in vars(self): - out["runIds"] = self.runIds return out class v1PauseRunsResponse(Printable): @@ -11106,68 +10560,6 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: } return out -class v1PauseSearchesRequest(Printable): - """Request to pause the experiment associated witha search.""" - filter: "typing.Optional[str]" = None - searchIds: "typing.Optional[typing.Sequence[int]]" = None - - def __init__( - self, - *, - projectId: int, - filter: "typing.Union[str, None, Unset]" = _unset, - searchIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, - ): - self.projectId = projectId - if not isinstance(filter, Unset): - self.filter = filter - if not isinstance(searchIds, Unset): - self.searchIds = searchIds - - @classmethod - def from_json(cls, obj: Json) -> "v1PauseSearchesRequest": - kwargs: "typing.Dict[str, typing.Any]" = { - "projectId": obj["projectId"], - } - if "filter" in obj: - kwargs["filter"] = obj["filter"] - if "searchIds" in obj: - kwargs["searchIds"] = obj["searchIds"] - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "projectId": self.projectId, - } - if not omit_unset or "filter" in vars(self): - out["filter"] = self.filter - if not omit_unset or "searchIds" in vars(self): - out["searchIds"] = self.searchIds - return out - -class v1PauseSearchesResponse(Printable): - """Response to PauseSearchesRequest.""" - - def __init__( - self, - *, - results: "typing.Sequence[v1SearchActionResult]", - ): - self.results = results - - @classmethod - def from_json(cls, obj: Json) -> "v1PauseSearchesResponse": - kwargs: "typing.Dict[str, typing.Any]" = { - "results": [v1SearchActionResult.from_json(x) for x in obj["results"]], - } - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "results": [x.to_json(omit_unset) for x in self.results], - } - return out - class v1Permission(Printable): name: "typing.Optional[str]" = None scopeTypeMask: "typing.Optional[v1ScopeTypeMask]" = None @@ -11389,80 +10781,6 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: out["timeRange"] = None if self.timeRange is None else self.timeRange.to_json(omit_unset) return out -class v1PostAccessTokenRequest(Printable): - """Create the requested user's accessToken.""" - description: "typing.Optional[str]" = None - lifespan: "typing.Optional[str]" = None - - def __init__( - self, - *, - userId: int, - description: "typing.Union[str, None, Unset]" = _unset, - lifespan: "typing.Union[str, None, Unset]" = _unset, - ): - self.userId = userId - if not isinstance(description, Unset): - self.description = description - if not isinstance(lifespan, Unset): - self.lifespan = lifespan - - @classmethod - def from_json(cls, obj: Json) -> "v1PostAccessTokenRequest": - kwargs: "typing.Dict[str, typing.Any]" = { - "userId": obj["userId"], - } - if "description" in obj: - kwargs["description"] = obj["description"] - if "lifespan" in obj: - kwargs["lifespan"] = obj["lifespan"] - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "userId": self.userId, - } - if not omit_unset or "description" in vars(self): - out["description"] = self.description - if not omit_unset or "lifespan" in vars(self): - out["lifespan"] = self.lifespan - return out - -class v1PostAccessTokenResponse(Printable): - """Response to PostAccessTokenRequest.""" - token: "typing.Optional[str]" = None - tokenId: "typing.Optional[int]" = None - - def __init__( - self, - *, - token: "typing.Union[str, None, Unset]" = _unset, - tokenId: "typing.Union[int, None, Unset]" = _unset, - ): - if not isinstance(token, Unset): - self.token = token - if not isinstance(tokenId, Unset): - self.tokenId = tokenId - - @classmethod - def from_json(cls, obj: Json) -> "v1PostAccessTokenResponse": - kwargs: "typing.Dict[str, typing.Any]" = { - } - if "token" in obj: - kwargs["token"] = obj["token"] - if "tokenId" in obj: - kwargs["tokenId"] = obj["tokenId"] - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - } - if not omit_unset or "token" in vars(self): - out["token"] = self.token - if not omit_unset or "tokenId" in vars(self): - out["tokenId"] = self.tokenId - return out - class v1PostAllocationAcceleratorDataRequest(Printable): """Set the accelerator data for some allocation.""" @@ -14121,40 +13439,36 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: class v1ResumeRunsRequest(Printable): """Request to unpause the experiment associated witha run.""" filter: "typing.Optional[str]" = None - runIds: "typing.Optional[typing.Sequence[int]]" = None def __init__( self, *, projectId: int, + runIds: "typing.Sequence[int]", filter: "typing.Union[str, None, Unset]" = _unset, - runIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, ): self.projectId = projectId + self.runIds = runIds if not isinstance(filter, Unset): self.filter = filter - if not isinstance(runIds, Unset): - self.runIds = runIds @classmethod def from_json(cls, obj: Json) -> "v1ResumeRunsRequest": kwargs: "typing.Dict[str, typing.Any]" = { "projectId": obj["projectId"], + "runIds": obj["runIds"], } if "filter" in obj: kwargs["filter"] = obj["filter"] - if "runIds" in obj: - kwargs["runIds"] = obj["runIds"] return cls(**kwargs) def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: out: "typing.Dict[str, typing.Any]" = { "projectId": self.projectId, + "runIds": self.runIds, } if not omit_unset or "filter" in vars(self): out["filter"] = self.filter - if not omit_unset or "runIds" in vars(self): - out["runIds"] = self.runIds return out class v1ResumeRunsResponse(Printable): @@ -14180,68 +13494,6 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: } return out -class v1ResumeSearchesRequest(Printable): - """Request to unpause the experiment associated witha search.""" - filter: "typing.Optional[str]" = None - searchIds: "typing.Optional[typing.Sequence[int]]" = None - - def __init__( - self, - *, - projectId: int, - filter: "typing.Union[str, None, Unset]" = _unset, - searchIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, - ): - self.projectId = projectId - if not isinstance(filter, Unset): - self.filter = filter - if not isinstance(searchIds, Unset): - self.searchIds = searchIds - - @classmethod - def from_json(cls, obj: Json) -> "v1ResumeSearchesRequest": - kwargs: "typing.Dict[str, typing.Any]" = { - "projectId": obj["projectId"], - } - if "filter" in obj: - kwargs["filter"] = obj["filter"] - if "searchIds" in obj: - kwargs["searchIds"] = obj["searchIds"] - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "projectId": self.projectId, - } - if not omit_unset or "filter" in vars(self): - out["filter"] = self.filter - if not omit_unset or "searchIds" in vars(self): - out["searchIds"] = self.searchIds - return out - -class v1ResumeSearchesResponse(Printable): - """Response to ResumeSearchesRequest.""" - - def __init__( - self, - *, - results: "typing.Sequence[v1SearchActionResult]", - ): - self.results = results - - @classmethod - def from_json(cls, obj: Json) -> "v1ResumeSearchesResponse": - kwargs: "typing.Dict[str, typing.Any]" = { - "results": [v1SearchActionResult.from_json(x) for x in obj["results"]], - } - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "results": [x.to_json(omit_unset) for x in self.results], - } - return out - class v1Role(Printable): name: "typing.Optional[str]" = None permissions: "typing.Optional[typing.Sequence[v1Permission]]" = None @@ -14592,33 +13844,6 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: out["workspace"] = self.workspace return out -class v1SearchActionResult(Printable): - """Message for results of individual searches in a multi-search action.""" - - def __init__( - self, - *, - error: str, - id: int, - ): - self.error = error - self.id = id - - @classmethod - def from_json(cls, obj: Json) -> "v1SearchActionResult": - kwargs: "typing.Dict[str, typing.Any]" = { - "error": obj["error"], - "id": obj["id"], - } - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "error": self.error, - "id": self.id, - } - return out - class v1SearchExperimentExperiment(Printable): bestTrial: "typing.Optional[trialv1Trial]" = None @@ -16195,104 +15420,27 @@ def from_json(cls, obj: Json) -> "v1TimestampFieldFilter": } if "gt" in obj: kwargs["gt"] = obj["gt"] - if "gte" in obj: - kwargs["gte"] = obj["gte"] - if "lt" in obj: - kwargs["lt"] = obj["lt"] - if "lte" in obj: - kwargs["lte"] = obj["lte"] - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - } - if not omit_unset or "gt" in vars(self): - out["gt"] = self.gt - if not omit_unset or "gte" in vars(self): - out["gte"] = self.gte - if not omit_unset or "lt" in vars(self): - out["lt"] = self.lt - if not omit_unset or "lte" in vars(self): - out["lte"] = self.lte - return out - -class v1TokenInfo(Printable): - """TokenInfo represents a token entry in the database.""" - createdAt: "typing.Optional[str]" = None - description: "typing.Optional[str]" = None - expiry: "typing.Optional[str]" = None - revoked: "typing.Optional[bool]" = None - tokenType: "typing.Optional[v1TokenType]" = None - - def __init__( - self, - *, - id: int, - userId: int, - createdAt: "typing.Union[str, None, Unset]" = _unset, - description: "typing.Union[str, None, Unset]" = _unset, - expiry: "typing.Union[str, None, Unset]" = _unset, - revoked: "typing.Union[bool, None, Unset]" = _unset, - tokenType: "typing.Union[v1TokenType, None, Unset]" = _unset, - ): - self.id = id - self.userId = userId - if not isinstance(createdAt, Unset): - self.createdAt = createdAt - if not isinstance(description, Unset): - self.description = description - if not isinstance(expiry, Unset): - self.expiry = expiry - if not isinstance(revoked, Unset): - self.revoked = revoked - if not isinstance(tokenType, Unset): - self.tokenType = tokenType - - @classmethod - def from_json(cls, obj: Json) -> "v1TokenInfo": - kwargs: "typing.Dict[str, typing.Any]" = { - "id": obj["id"], - "userId": obj["userId"], - } - if "createdAt" in obj: - kwargs["createdAt"] = obj["createdAt"] - if "description" in obj: - kwargs["description"] = obj["description"] - if "expiry" in obj: - kwargs["expiry"] = obj["expiry"] - if "revoked" in obj: - kwargs["revoked"] = obj["revoked"] - if "tokenType" in obj: - kwargs["tokenType"] = v1TokenType(obj["tokenType"]) if obj["tokenType"] is not None else None + if "gte" in obj: + kwargs["gte"] = obj["gte"] + if "lt" in obj: + kwargs["lt"] = obj["lt"] + if "lte" in obj: + kwargs["lte"] = obj["lte"] return cls(**kwargs) def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: out: "typing.Dict[str, typing.Any]" = { - "id": self.id, - "userId": self.userId, } - if not omit_unset or "createdAt" in vars(self): - out["createdAt"] = self.createdAt - if not omit_unset or "description" in vars(self): - out["description"] = self.description - if not omit_unset or "expiry" in vars(self): - out["expiry"] = self.expiry - if not omit_unset or "revoked" in vars(self): - out["revoked"] = self.revoked - if not omit_unset or "tokenType" in vars(self): - out["tokenType"] = None if self.tokenType is None else self.tokenType.value + if not omit_unset or "gt" in vars(self): + out["gt"] = self.gt + if not omit_unset or "gte" in vars(self): + out["gte"] = self.gte + if not omit_unset or "lt" in vars(self): + out["lt"] = self.lt + if not omit_unset or "lte" in vars(self): + out["lte"] = self.lte return out -class v1TokenType(DetEnum): - """Token type. - - TOKEN_TYPE_UNSPECIFIED: Default token type. - - TOKEN_TYPE_USER_SESSION: User Session token. - - TOKEN_TYPE_ACCESS_TOKEN: Access token. - """ - UNSPECIFIED = "TOKEN_TYPE_UNSPECIFIED" - USER_SESSION = "TOKEN_TYPE_USER_SESSION" - ACCESS_TOKEN = "TOKEN_TYPE_ACCESS_TOKEN" - class v1TrialEarlyExit(Printable): """Signals to the experiment the trial early exited.""" @@ -16960,40 +16108,36 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: class v1UnarchiveRunsRequest(Printable): filter: "typing.Optional[str]" = None - runIds: "typing.Optional[typing.Sequence[int]]" = None def __init__( self, *, projectId: int, + runIds: "typing.Sequence[int]", filter: "typing.Union[str, None, Unset]" = _unset, - runIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, ): self.projectId = projectId + self.runIds = runIds if not isinstance(filter, Unset): self.filter = filter - if not isinstance(runIds, Unset): - self.runIds = runIds @classmethod def from_json(cls, obj: Json) -> "v1UnarchiveRunsRequest": kwargs: "typing.Dict[str, typing.Any]" = { "projectId": obj["projectId"], + "runIds": obj["runIds"], } if "filter" in obj: kwargs["filter"] = obj["filter"] - if "runIds" in obj: - kwargs["runIds"] = obj["runIds"] return cls(**kwargs) def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: out: "typing.Dict[str, typing.Any]" = { "projectId": self.projectId, + "runIds": self.runIds, } if not omit_unset or "filter" in vars(self): out["filter"] = self.filter - if not omit_unset or "runIds" in vars(self): - out["runIds"] = self.runIds return out class v1UnarchiveRunsResponse(Printable): @@ -17019,67 +16163,6 @@ def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: } return out -class v1UnarchiveSearchesRequest(Printable): - filter: "typing.Optional[str]" = None - searchIds: "typing.Optional[typing.Sequence[int]]" = None - - def __init__( - self, - *, - projectId: int, - filter: "typing.Union[str, None, Unset]" = _unset, - searchIds: "typing.Union[typing.Sequence[int], None, Unset]" = _unset, - ): - self.projectId = projectId - if not isinstance(filter, Unset): - self.filter = filter - if not isinstance(searchIds, Unset): - self.searchIds = searchIds - - @classmethod - def from_json(cls, obj: Json) -> "v1UnarchiveSearchesRequest": - kwargs: "typing.Dict[str, typing.Any]" = { - "projectId": obj["projectId"], - } - if "filter" in obj: - kwargs["filter"] = obj["filter"] - if "searchIds" in obj: - kwargs["searchIds"] = obj["searchIds"] - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "projectId": self.projectId, - } - if not omit_unset or "filter" in vars(self): - out["filter"] = self.filter - if not omit_unset or "searchIds" in vars(self): - out["searchIds"] = self.searchIds - return out - -class v1UnarchiveSearchesResponse(Printable): - """Response to UnarchiveSearchesRequest.""" - - def __init__( - self, - *, - results: "typing.Sequence[v1SearchActionResult]", - ): - self.results = results - - @classmethod - def from_json(cls, obj: Json) -> "v1UnarchiveSearchesResponse": - kwargs: "typing.Dict[str, typing.Any]" = { - "results": [v1SearchActionResult.from_json(x) for x in obj["results"]], - } - return cls(**kwargs) - - def to_json(self, omit_unset: bool = False) -> typing.Dict[str, typing.Any]: - out: "typing.Dict[str, typing.Any]" = { - "results": [x.to_json(omit_unset) for x in self.results], - } - return out - class v1UnbindRPFromWorkspaceRequest(Printable): """Unbind a resource pool to workspaces.""" workspaceIds: "typing.Optional[typing.Sequence[int]]" = None @@ -18221,27 +17304,6 @@ def post_ArchiveRuns( return v1ArchiveRunsResponse.from_json(_resp.json()) raise APIHttpError("post_ArchiveRuns", _resp) -def post_ArchiveSearches( - session: "api.BaseSession", - *, - body: "v1ArchiveSearchesRequest", -) -> "v1ArchiveSearchesResponse": - """Archive searches.""" - _params = None - _resp = session._do_request( - method="POST", - path="/api/v1/searches/archive", - params=_params, - json=body.to_json(True), - data=None, - headers=None, - timeout=None, - stream=False, - ) - if _resp.status_code == 200: - return v1ArchiveSearchesResponse.from_json(_resp.json()) - raise APIHttpError("post_ArchiveSearches", _resp) - def post_ArchiveWorkspace( session: "api.BaseSession", *, @@ -18405,27 +17467,6 @@ def post_CancelExperiments( return v1CancelExperimentsResponse.from_json(_resp.json()) raise APIHttpError("post_CancelExperiments", _resp) -def post_CancelSearches( - session: "api.BaseSession", - *, - body: "v1CancelSearchesRequest", -) -> "v1CancelSearchesResponse": - """Cancel searches.""" - _params = None - _resp = session._do_request( - method="POST", - path="/api/v1/searches/cancel", - params=_params, - json=body.to_json(True), - data=None, - headers=None, - timeout=None, - stream=False, - ) - if _resp.status_code == 200: - return v1CancelSearchesResponse.from_json(_resp.json()) - raise APIHttpError("post_CancelSearches", _resp) - def post_CheckpointsRemoveFiles( session: "api.BaseSession", *, @@ -18940,7 +17981,7 @@ def post_DeleteRuns( *, body: "v1DeleteRunsRequest", ) -> "v1DeleteRunsResponse": - """Delete runs.""" + """Delete a list of runs.""" _params = None _resp = session._do_request( method="POST", @@ -18956,27 +17997,6 @@ def post_DeleteRuns( return v1DeleteRunsResponse.from_json(_resp.json()) raise APIHttpError("post_DeleteRuns", _resp) -def post_DeleteSearches( - session: "api.BaseSession", - *, - body: "v1DeleteSearchesRequest", -) -> "v1DeleteSearchesResponse": - """Delete searches.""" - _params = None - _resp = session._do_request( - method="POST", - path="/api/v1/searches/delete", - params=_params, - json=body.to_json(True), - data=None, - headers=None, - timeout=None, - stream=False, - ) - if _resp.status_code == 200: - return v1DeleteSearchesResponse.from_json(_resp.json()) - raise APIHttpError("post_DeleteSearches", _resp) - def delete_DeleteTemplate( session: "api.BaseSession", *, @@ -19286,63 +18306,6 @@ def get_ExpMetricNames( return raise APIHttpError("get_ExpMetricNames", _resp) -def get_GetAccessTokens( - session: "api.BaseSession", - *, - limit: "typing.Optional[int]" = None, - offset: "typing.Optional[int]" = None, - orderBy: "typing.Optional[v1OrderBy]" = None, - showInactive: "typing.Optional[bool]" = None, - sortBy: "typing.Optional[v1GetAccessTokensRequestSortBy]" = None, - tokenIds: "typing.Optional[typing.Sequence[int]]" = None, - username: "typing.Optional[str]" = None, -) -> "v1GetAccessTokensResponse": - """Get a list of all access token records. - - - limit: Limit the number of projects. A value of 0 denotes no limit. - - offset: Skip the number of projects before returning results. Negative values -denote number of projects to skip from the end before returning results. - - orderBy: Order token info in either ascending or descending order. - - - ORDER_BY_UNSPECIFIED: Returns records in no specific order. - - ORDER_BY_ASC: Returns records in ascending order. - - ORDER_BY_DESC: Returns records in descending order. - - showInactive: Filter by active status. - - sortBy: Sort token info by the given field. - - - SORT_BY_UNSPECIFIED: Returns token info in an unsorted list. - - SORT_BY_USER_ID: Returns token info sorted by user id. - - SORT_BY_EXPIRY: Returns token info sorted by expiry. - - SORT_BY_CREATED_AT: Returns token info sorted by created at. - - SORT_BY_TOKEN_TYPE: Returns token info sorted by token type. - - SORT_BY_REVOKED: Returns token info sorted by if it is revoked. - - SORT_BY_DESCRIPTION: Returns token info sorted by description of token. - - tokenIds: Filter on token_ids. - - username: Filter by username. - """ - _params = { - "limit": limit, - "offset": offset, - "orderBy": orderBy.value if orderBy is not None else None, - "showInactive": str(showInactive).lower() if showInactive is not None else None, - "sortBy": sortBy.value if sortBy is not None else None, - "tokenIds": tokenIds, - "username": username, - } - _resp = session._do_request( - method="GET", - path="/api/v1/tokens", - params=_params, - json=None, - data=None, - headers=None, - timeout=None, - stream=False, - ) - if _resp.status_code == 200: - return v1GetAccessTokensResponse.from_json(_resp.json()) - raise APIHttpError("get_GetAccessTokens", _resp) - def get_GetActiveTasksCount( session: "api.BaseSession", ) -> "v1GetActiveTasksCountResponse": @@ -22406,7 +21369,7 @@ def post_KillRuns( *, body: "v1KillRunsRequest", ) -> "v1KillRunsResponse": - """Kill runs.""" + """Get a list of runs.""" _params = None _resp = session._do_request( method="POST", @@ -22422,27 +21385,6 @@ def post_KillRuns( return v1KillRunsResponse.from_json(_resp.json()) raise APIHttpError("post_KillRuns", _resp) -def post_KillSearches( - session: "api.BaseSession", - *, - body: "v1KillSearchesRequest", -) -> "v1KillSearchesResponse": - """Kill searches.""" - _params = None - _resp = session._do_request( - method="POST", - path="/api/v1/searches/kill", - params=_params, - json=body.to_json(True), - data=None, - headers=None, - timeout=None, - stream=False, - ) - if _resp.status_code == 200: - return v1KillSearchesResponse.from_json(_resp.json()) - raise APIHttpError("post_KillSearches", _resp) - def post_KillShell( session: "api.BaseSession", *, @@ -22603,27 +21545,6 @@ def post_LaunchTensorboard( return v1LaunchTensorboardResponse.from_json(_resp.json()) raise APIHttpError("post_LaunchTensorboard", _resp) -def post_LaunchTensorboardSearches( - session: "api.BaseSession", - *, - body: "v1LaunchTensorboardSearchesRequest", -) -> "v1LaunchTensorboardSearchesResponse": - """Launch a tensorboard for one or more searches using bulk search filters.""" - _params = None - _resp = session._do_request( - method="POST", - path="/api/v1/searches/tensorboards", - params=_params, - json=body.to_json(True), - data=None, - headers=None, - timeout=None, - stream=False, - ) - if _resp.status_code == 200: - return v1LaunchTensorboardSearchesResponse.from_json(_resp.json()) - raise APIHttpError("post_LaunchTensorboardSearches", _resp) - def get_ListRPsBoundToWorkspace( session: "api.BaseSession", *, @@ -23030,27 +21951,6 @@ def post_MoveRuns( return v1MoveRunsResponse.from_json(_resp.json()) raise APIHttpError("post_MoveRuns", _resp) -def post_MoveSearches( - session: "api.BaseSession", - *, - body: "v1MoveSearchesRequest", -) -> "v1MoveSearchesResponse": - """Move searches.""" - _params = None - _resp = session._do_request( - method="POST", - path="/api/v1/searches/move", - params=_params, - json=body.to_json(True), - data=None, - headers=None, - timeout=None, - stream=False, - ) - if _resp.status_code == 200: - return v1MoveSearchesResponse.from_json(_resp.json()) - raise APIHttpError("post_MoveSearches", _resp) - def post_NotifyContainerRunning( session: "api.BaseSession", *, @@ -23110,31 +22010,6 @@ def put_OverwriteRPWorkspaceBindings( return raise APIHttpError("put_OverwriteRPWorkspaceBindings", _resp) -def patch_PatchAccessToken( - session: "api.BaseSession", - *, - body: "v1PatchAccessTokenRequest", - tokenId: int, -) -> "v1PatchAccessTokenResponse": - """Patch an access token's mutable fields. - - - tokenId: The id of the token. - """ - _params = None - _resp = session._do_request( - method="PATCH", - path=f"/api/v1/tokens/{tokenId}", - params=_params, - json=body.to_json(True), - data=None, - headers=None, - timeout=None, - stream=False, - ) - if _resp.status_code == 200: - return v1PatchAccessTokenResponse.from_json(_resp.json()) - raise APIHttpError("patch_PatchAccessToken", _resp) - def patch_PatchCheckpoints( session: "api.BaseSession", *, @@ -23556,27 +22431,6 @@ def post_PauseRuns( return v1PauseRunsResponse.from_json(_resp.json()) raise APIHttpError("post_PauseRuns", _resp) -def post_PauseSearches( - session: "api.BaseSession", - *, - body: "v1PauseSearchesRequest", -) -> "v1PauseSearchesResponse": - """Pause experiment associated with provided searches.""" - _params = None - _resp = session._do_request( - method="POST", - path="/api/v1/searches/pause", - params=_params, - json=body.to_json(True), - data=None, - headers=None, - timeout=None, - stream=False, - ) - if _resp.status_code == 200: - return v1PauseSearchesResponse.from_json(_resp.json()) - raise APIHttpError("post_PauseSearches", _resp) - def post_PinWorkspace( session: "api.BaseSession", *, @@ -23601,27 +22455,6 @@ def post_PinWorkspace( return raise APIHttpError("post_PinWorkspace", _resp) -def post_PostAccessToken( - session: "api.BaseSession", - *, - body: "v1PostAccessTokenRequest", -) -> "v1PostAccessTokenResponse": - """Create and get a user's access token""" - _params = None - _resp = session._do_request( - method="POST", - path="/api/v1/tokens", - params=_params, - json=body.to_json(True), - data=None, - headers=None, - timeout=None, - stream=False, - ) - if _resp.status_code == 200: - return v1PostAccessTokenResponse.from_json(_resp.json()) - raise APIHttpError("post_PostAccessToken", _resp) - def post_PostAllocationAcceleratorData( session: "api.BaseSession", *, @@ -24617,27 +23450,6 @@ def post_ResumeRuns( return v1ResumeRunsResponse.from_json(_resp.json()) raise APIHttpError("post_ResumeRuns", _resp) -def post_ResumeSearches( - session: "api.BaseSession", - *, - body: "v1ResumeSearchesRequest", -) -> "v1ResumeSearchesResponse": - """Unpause experiment associated with provided searches.""" - _params = None - _resp = session._do_request( - method="POST", - path="/api/v1/searches/resume", - params=_params, - json=body.to_json(True), - data=None, - headers=None, - timeout=None, - stream=False, - ) - if _resp.status_code == 200: - return v1ResumeSearchesResponse.from_json(_resp.json()) - raise APIHttpError("post_ResumeSearches", _resp) - def post_RunPrepareForReporting( session: "api.BaseSession", *, @@ -25484,27 +24296,6 @@ def post_UnarchiveRuns( return v1UnarchiveRunsResponse.from_json(_resp.json()) raise APIHttpError("post_UnarchiveRuns", _resp) -def post_UnarchiveSearches( - session: "api.BaseSession", - *, - body: "v1UnarchiveSearchesRequest", -) -> "v1UnarchiveSearchesResponse": - """Unarchive searches.""" - _params = None - _resp = session._do_request( - method="POST", - path="/api/v1/searches/unarchive", - params=_params, - json=body.to_json(True), - data=None, - headers=None, - timeout=None, - stream=False, - ) - if _resp.status_code == 200: - return v1UnarchiveSearchesResponse.from_json(_resp.json()) - raise APIHttpError("post_UnarchiveSearches", _resp) - def post_UnarchiveWorkspace( session: "api.BaseSession", *, @@ -25676,7 +24467,6 @@ def get_health( # Paginated is a union type of objects whose .pagination # attribute is a v1Pagination-type object. Paginated = typing.Union[ - v1GetAccessTokensResponse, v1GetAgentsResponse, v1GetCommandsResponse, v1GetExperimentCheckpointsResponse, diff --git a/webui/react/src/services/api-ts-sdk/api.ts b/webui/react/src/services/api-ts-sdk/api.ts index f6a2db5e811..aec5529de24 100644 --- a/webui/react/src/services/api-ts-sdk/api.ts +++ b/webui/react/src/services/api-ts-sdk/api.ts @@ -1549,11 +1549,11 @@ export interface V1ArchiveProjectResponse { */ export interface V1ArchiveRunsRequest { /** - * The ids of the runs being archived. Leave empty if using filter. + * The ids of the runs being archived. * @type {Array} * @memberof V1ArchiveRunsRequest */ - runIds?: Array; + runIds: Array; /** * The id of the current parent project. * @type {number} @@ -1580,44 +1580,6 @@ export interface V1ArchiveRunsResponse { */ results: Array; } -/** - * - * @export - * @interface V1ArchiveSearchesRequest - */ -export interface V1ArchiveSearchesRequest { - /** - * The ids of the searches being archived. Leave empty if using filter. - * @type {Array} - * @memberof V1ArchiveSearchesRequest - */ - searchIds?: Array; - /** - * The id of the current parent project. - * @type {number} - * @memberof V1ArchiveSearchesRequest - */ - projectId: number; - /** - * Filter expression - * @type {string} - * @memberof V1ArchiveSearchesRequest - */ - filter?: string; -} -/** - * Response to ArchiveSearchesRequest. - * @export - * @interface V1ArchiveSearchesResponse - */ -export interface V1ArchiveSearchesResponse { - /** - * Details on success or error for each search. - * @type {Array} - * @memberof V1ArchiveSearchesResponse - */ - results: Array; -} /** * Response to ArchiveWorkspaceRequest. * @export @@ -1854,44 +1816,6 @@ export interface V1CancelExperimentsResponse { */ results: Array; } -/** - * Cancel searches. - * @export - * @interface V1CancelSearchesRequest - */ -export interface V1CancelSearchesRequest { - /** - * The ids of the searches being canceled. Leave empty if using filter. - * @type {Array} - * @memberof V1CancelSearchesRequest - */ - searchIds?: Array; - /** - * Project id of the searches being canceled. - * @type {number} - * @memberof V1CancelSearchesRequest - */ - projectId: number; - /** - * Filter expression - * @type {string} - * @memberof V1CancelSearchesRequest - */ - filter?: string; -} -/** - * Response to CancelSearchesRequest. - * @export - * @interface V1CancelSearchesResponse - */ -export interface V1CancelSearchesResponse { - /** - * Details on success or error for each search. - * @type {Array} - * @memberof V1CancelSearchesResponse - */ - results: Array; -} /** * Checkpoint a collection of files saved by a task. * @export @@ -2747,17 +2671,17 @@ export interface V1DeleteProjectResponse { */ export interface V1DeleteRunsRequest { /** - * The ids of the runs being deleted. Leave empty if using filter. + * The ids of the runs being deleted. * @type {Array} * @memberof V1DeleteRunsRequest */ - runIds?: Array; + runIds: Array; /** * Project id of the runs being deleted. * @type {number} * @memberof V1DeleteRunsRequest */ - projectId: number; + projectId?: number; /** * Filter expression * @type {string} @@ -2778,44 +2702,6 @@ export interface V1DeleteRunsResponse { */ results: Array; } -/** - * Delete searches. - * @export - * @interface V1DeleteSearchesRequest - */ -export interface V1DeleteSearchesRequest { - /** - * The ids of the searches being deleted. Leave empty if using filter. - * @type {Array} - * @memberof V1DeleteSearchesRequest - */ - searchIds?: Array; - /** - * Project id of the searches being deleted. - * @type {number} - * @memberof V1DeleteSearchesRequest - */ - projectId: number; - /** - * Filter expression - * @type {string} - * @memberof V1DeleteSearchesRequest - */ - filter?: string; -} -/** - * Response to DeleteSearchesRequest. - * @export - * @interface V1DeleteSearchesResponse - */ -export interface V1DeleteSearchesResponse { - /** - * Details on success or error for each search. - * @type {Array} - * @memberof V1DeleteSearchesResponse - */ - results: Array; -} /** * Response to DeleteTemplateRequest. * @export @@ -3751,40 +3637,6 @@ export const V1GenericTaskState = { STOPPINGERROR: 'GENERIC_TASK_STATE_STOPPING_ERROR', } as const export type V1GenericTaskState = ValueOf -/** - * Sort token info by the given field. - SORT_BY_UNSPECIFIED: Returns token info in an unsorted list. - SORT_BY_USER_ID: Returns token info sorted by user id. - SORT_BY_EXPIRY: Returns token info sorted by expiry. - SORT_BY_CREATED_AT: Returns token info sorted by created at. - SORT_BY_TOKEN_TYPE: Returns token info sorted by token type. - SORT_BY_REVOKED: Returns token info sorted by if it is revoked. - SORT_BY_DESCRIPTION: Returns token info sorted by description of token. - * @export - * @enum {string} - */ -export const V1GetAccessTokensRequestSortBy = { - UNSPECIFIED: 'SORT_BY_UNSPECIFIED', - USERID: 'SORT_BY_USER_ID', - EXPIRY: 'SORT_BY_EXPIRY', - CREATEDAT: 'SORT_BY_CREATED_AT', - TOKENTYPE: 'SORT_BY_TOKEN_TYPE', - REVOKED: 'SORT_BY_REVOKED', - DESCRIPTION: 'SORT_BY_DESCRIPTION', -} as const -export type V1GetAccessTokensRequestSortBy = ValueOf -/** - * Response to GetAccessTokensRequest. - * @export - * @interface V1GetAccessTokensResponse - */ -export interface V1GetAccessTokensResponse { - /** - * List of token information. - * @type {Array} - * @memberof V1GetAccessTokensResponse - */ - tokenInfo: Array; - /** - * Pagination information of the full dataset. - * @type {V1Pagination} - * @memberof V1GetAccessTokensResponse - */ - pagination?: V1Pagination; -} /** * Response to GetActiveTasksCountRequest. * @export @@ -5834,11 +5686,11 @@ export interface V1KillNotebookResponse { */ export interface V1KillRunsRequest { /** - * The ids of the runs being killed. Leave empty if using filter. + * The ids of the runs being killed. * @type {Array} * @memberof V1KillRunsRequest */ - runIds?: Array; + runIds: Array; /** * Project id of the runs being killed. * @type {number} @@ -5865,44 +5717,6 @@ export interface V1KillRunsResponse { */ results: Array; } -/** - * Kill searches. - * @export - * @interface V1KillSearchesRequest - */ -export interface V1KillSearchesRequest { - /** - * The ids of the searches being killed. Leave empty if using filter. - * @type {Array} - * @memberof V1KillSearchesRequest - */ - searchIds?: Array; - /** - * Project id of the searches being killed. - * @type {number} - * @memberof V1KillSearchesRequest - */ - projectId: number; - /** - * Filter expression - * @type {string} - * @memberof V1KillSearchesRequest - */ - filter?: string; -} -/** - * Response to KillSearchesRequest. - * @export - * @interface V1KillSearchesResponse - */ -export interface V1KillSearchesResponse { - /** - * Details on success or error for each search. - * @type {Array} - * @memberof V1KillSearchesResponse - */ - results: Array; -} /** * Response to KillShellRequest. * @export @@ -6196,74 +6010,6 @@ export interface V1LaunchTensorboardResponse { */ warnings?: Array; } -/** - * Request to launch a tensorboard using searches matching a filter. - * @export - * @interface V1LaunchTensorboardSearchesRequest - */ -export interface V1LaunchTensorboardSearchesRequest { - /** - * Targets all searches matching filter expression. Leave empty if using IDs. - * @type {string} - * @memberof V1LaunchTensorboardSearchesRequest - */ - filter?: string; - /** - * Tensorboard config (JSON). - * @type {any} - * @memberof V1LaunchTensorboardSearchesRequest - */ - config?: any; - /** - * Tensorboard template name. - * @type {string} - * @memberof V1LaunchTensorboardSearchesRequest - */ - templateName?: string; - /** - * The files to run with the command. - * @type {Array} - * @memberof V1LaunchTensorboardSearchesRequest - */ - files?: Array; - /** - * Workspace in which to launch tensorboard. Defaults to 'Uncategorized'. - * @type {number} - * @memberof V1LaunchTensorboardSearchesRequest - */ - workspaceId?: number; - /** - * Target search IDs. Leave empty if using filter. - * @type {Array} - * @memberof V1LaunchTensorboardSearchesRequest - */ - searchIds?: Array; -} -/** - * Response to LaunchTensorboardSearchesRequest. - * @export - * @interface V1LaunchTensorboardSearchesResponse - */ -export interface V1LaunchTensorboardSearchesResponse { - /** - * The requested tensorboard. - * @type {V1Tensorboard} - * @memberof V1LaunchTensorboardSearchesResponse - */ - tensorboard: V1Tensorboard; - /** - * The config; - * @type {any} - * @memberof V1LaunchTensorboardSearchesResponse - */ - config: any; - /** - * List of any related warnings. - * @type {Array} - * @memberof V1LaunchTensorboardSearchesResponse - */ - warnings?: Array; -} /** * Enum values for warnings when launching commands. - LAUNCH_WARNING_UNSPECIFIED: Default value - LAUNCH_WARNING_CURRENT_SLOTS_EXCEEDED: For a default webhook * @export @@ -7081,11 +6827,11 @@ export interface V1MoveProjectResponse { */ export interface V1MoveRunsRequest { /** - * The ids of the runs being moved. Leave empty if using filter. + * The ids of the runs being moved. * @type {Array} * @memberof V1MoveRunsRequest */ - runIds?: Array; + runIds: Array; /** * The id of the current parent project. * @type {number} @@ -7124,50 +6870,6 @@ export interface V1MoveRunsResponse { */ results: Array; } -/** - * Request to move the search to a different project. - * @export - * @interface V1MoveSearchesRequest - */ -export interface V1MoveSearchesRequest { - /** - * The ids of the searches being moved. Leave empty if using filter. - * @type {Array} - * @memberof V1MoveSearchesRequest - */ - searchIds?: Array; - /** - * The id of the current parent project. - * @type {number} - * @memberof V1MoveSearchesRequest - */ - sourceProjectId: number; - /** - * The id of the new parent project. - * @type {number} - * @memberof V1MoveSearchesRequest - */ - destinationProjectId: number; - /** - * Filter expression - * @type {string} - * @memberof V1MoveSearchesRequest - */ - filter?: string; -} -/** - * Response to MoveSearchesRequest. - * @export - * @interface V1MoveSearchesResponse - */ -export interface V1MoveSearchesResponse { - /** - * Details on success or error for each search. - * @type {Array} - * @memberof V1MoveSearchesResponse - */ - results: Array; -} /** * Note is a user comment connected to a project. * @export @@ -7408,44 +7110,6 @@ export interface V1Pagination { */ total?: number; } -/** - * Patch user's access token info. - * @export - * @interface V1PatchAccessTokenRequest - */ -export interface V1PatchAccessTokenRequest { - /** - * The id of the token. - * @type {number} - * @memberof V1PatchAccessTokenRequest - */ - tokenId: number; - /** - * The requested updated token description. - * @type {string} - * @memberof V1PatchAccessTokenRequest - */ - description?: string; - /** - * The requested updated token revoke status. - * @type {boolean} - * @memberof V1PatchAccessTokenRequest - */ - setRevoked?: boolean; -} -/** - * Response to PatchAccessTokenRequest. - * @export - * @interface V1PatchAccessTokenResponse - */ -export interface V1PatchAccessTokenResponse { - /** - * The updated token information. - * @type {V1TokenInfo} - * @memberof V1PatchAccessTokenResponse - */ - tokenInfo?: V1TokenInfo; -} /** * Request to change checkpoint database information. * @export @@ -8065,11 +7729,11 @@ export interface V1PauseGenericTaskResponse { */ export interface V1PauseRunsRequest { /** - * The ids of the runs being paused. Leave empty if using filter. + * The ids of the runs being moved. * @type {Array} * @memberof V1PauseRunsRequest */ - runIds?: Array; + runIds: Array; /** * The id of the project of the runs being paused. * @type {number} @@ -8096,44 +7760,6 @@ export interface V1PauseRunsResponse { */ results: Array; } -/** - * Request to pause the experiment associated witha search. - * @export - * @interface V1PauseSearchesRequest - */ -export interface V1PauseSearchesRequest { - /** - * The ids of the searches being moved. Leave empty if using filter. - * @type {Array} - * @memberof V1PauseSearchesRequest - */ - searchIds?: Array; - /** - * The id of the project of the searches being paused. - * @type {number} - * @memberof V1PauseSearchesRequest - */ - projectId: number; - /** - * Filter expression - * @type {string} - * @memberof V1PauseSearchesRequest - */ - filter?: string; -} -/** - * Response to PauseSearchesRequest. - * @export - * @interface V1PauseSearchesResponse - */ -export interface V1PauseSearchesResponse { - /** - * Details on success or error for each search. - * @type {Array} - * @memberof V1PauseSearchesResponse - */ - results: Array; -} /** * * @export @@ -8266,50 +7892,6 @@ export interface V1PolymorphicFilter { */ timeRange?: V1TimestampFieldFilter; } -/** - * Create the requested user's accessToken. - * @export - * @interface V1PostAccessTokenRequest - */ -export interface V1PostAccessTokenRequest { - /** - * The id of the user. - * @type {number} - * @memberof V1PostAccessTokenRequest - */ - userId: number; - /** - * Lifespan expressing how long the token should last. Should be a Go-format duration (e.g. "2s", "4m", "72h".) - * @type {string} - * @memberof V1PostAccessTokenRequest - */ - lifespan?: string; - /** - * Description of the token. - * @type {string} - * @memberof V1PostAccessTokenRequest - */ - description?: string; -} -/** - * Response to PostAccessTokenRequest. - * @export - * @interface V1PostAccessTokenResponse - */ -export interface V1PostAccessTokenResponse { - /** - * token value string. - * @type {string} - * @memberof V1PostAccessTokenResponse - */ - token?: string; - /** - * token id. - * @type {number} - * @memberof V1PostAccessTokenResponse - */ - tokenId?: number; -} /** * Set the accelerator data for some allocation. * @export @@ -10350,11 +9932,11 @@ export interface V1ResourcesSummary { */ export interface V1ResumeRunsRequest { /** - * The ids of the runs being moved. Leave empty if using filter. + * The ids of the runs being moved. * @type {Array} * @memberof V1ResumeRunsRequest */ - runIds?: Array; + runIds: Array; /** * The id of the project of the runs being unpaused. * @type {number} @@ -10382,45 +9964,7 @@ export interface V1ResumeRunsResponse { results: Array; } /** - * Request to unpause the experiment associated witha search. - * @export - * @interface V1ResumeSearchesRequest - */ -export interface V1ResumeSearchesRequest { - /** - * The ids of the searches being moved. Leave empty if using filter. - * @type {Array} - * @memberof V1ResumeSearchesRequest - */ - searchIds?: Array; - /** - * The id of the project of the searches being unpaused. - * @type {number} - * @memberof V1ResumeSearchesRequest - */ - projectId: number; - /** - * Filter expression - * @type {string} - * @memberof V1ResumeSearchesRequest - */ - filter?: string; -} -/** - * Response to ResumeSearchesRequest. - * @export - * @interface V1ResumeSearchesResponse - */ -export interface V1ResumeSearchesResponse { - /** - * Details on success or error for each search. - * @type {Array} - * @memberof V1ResumeSearchesResponse - */ - results: Array; -} -/** - * + * * @export * @interface V1Role */ @@ -10635,25 +10179,6 @@ export interface V1ScopeTypeMask { */ workspace?: boolean; } -/** - * Message for results of individual searches in a multi-search action. - * @export - * @interface V1SearchActionResult - */ -export interface V1SearchActionResult { - /** - * Optional error message. - * @type {string} - * @memberof V1SearchActionResult - */ - error: string; - /** - * search ID. - * @type {number} - * @memberof V1SearchActionResult - */ - id: number; -} /** * * @export @@ -11799,66 +11324,6 @@ export interface V1TimestampFieldFilter { */ gte?: Date | DateString; } -/** - * TokenInfo represents a token entry in the database. - * @export - * @interface V1TokenInfo - */ -export interface V1TokenInfo { - /** - * The token ID. - * @type {number} - * @memberof V1TokenInfo - */ - id: number; - /** - * The id of the user the token belongs to. - * @type {number} - * @memberof V1TokenInfo - */ - userId: number; - /** - * Timestamp of when the token expires. - * @type {Date | DateString} - * @memberof V1TokenInfo - */ - expiry?: Date | DateString; - /** - * Tiemstamp of when the token was created. - * @type {Date | DateString} - * @memberof V1TokenInfo - */ - createdAt?: Date | DateString; - /** - * Type of token this entry represents. - * @type {V1TokenType} - * @memberof V1TokenInfo - */ - tokenType?: V1TokenType; - /** - * Flag denoting if this token is revoked. - * @type {boolean} - * @memberof V1TokenInfo - */ - revoked?: boolean; - /** - * Description of the token. - * @type {string} - * @memberof V1TokenInfo - */ - description?: string; -} -/** - * Token type. - TOKEN_TYPE_UNSPECIFIED: Default token type. - TOKEN_TYPE_USER_SESSION: User Session token. - TOKEN_TYPE_ACCESS_TOKEN: Access token. - * @export - * @enum {string} - */ -export const V1TokenType = { - UNSPECIFIED: 'TOKEN_TYPE_UNSPECIFIED', - USERSESSION: 'TOKEN_TYPE_USER_SESSION', - ACCESSTOKEN: 'TOKEN_TYPE_ACCESS_TOKEN', -} as const -export type V1TokenType = ValueOf /** * Signals to the experiment the trial early exited. * @export @@ -12382,11 +11847,11 @@ export interface V1UnarchiveProjectResponse { */ export interface V1UnarchiveRunsRequest { /** - * The ids of the runs being unarchived. Leave empty if using filter. + * The ids of the runs being unarchived. * @type {Array} * @memberof V1UnarchiveRunsRequest */ - runIds?: Array; + runIds: Array; /** * The id of the current parent project. * @type {number} @@ -12413,44 +11878,6 @@ export interface V1UnarchiveRunsResponse { */ results: Array; } -/** - * - * @export - * @interface V1UnarchiveSearchesRequest - */ -export interface V1UnarchiveSearchesRequest { - /** - * The ids of the searches being unarchived. Leave empty if using filter. - * @type {Array} - * @memberof V1UnarchiveSearchesRequest - */ - searchIds?: Array; - /** - * The id of the current parent project. - * @type {number} - * @memberof V1UnarchiveSearchesRequest - */ - projectId: number; - /** - * Filter expression - * @type {string} - * @memberof V1UnarchiveSearchesRequest - */ - filter?: string; -} -/** - * Response to UnarchiveSearchesRequest. - * @export - * @interface V1UnarchiveSearchesResponse - */ -export interface V1UnarchiveSearchesResponse { - /** - * Details on success or error for each search. - * @type {Array} - * @memberof V1UnarchiveSearchesResponse - */ - results: Array; -} /** * Response to UnarchiveWorkspaceRequest. * @export @@ -20285,44 +19712,6 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat options: localVarRequestOptions, }; }, - /** - * - * @summary Archive searches. - * @param {V1ArchiveSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - archiveSearches(body: V1ArchiveSearchesRequest, options: any = {}): FetchArgs { - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling archiveSearches.'); - } - const localVarPath = `/api/v1/searches/archive`; - const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'POST', ...options }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BearerToken required - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? configuration.apiKey("Authorization") - : configuration.apiKey; - localVarHeaderParameter["Authorization"] = localVarApiKeyValue; - } - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); - objToSearchParams(options.query || {}, localVarUrlObj.searchParams); - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - localVarRequestOptions.body = JSON.stringify(body) - - return { - url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, - options: localVarRequestOptions, - }; - }, /** * * @summary Assign multiple users to multiple groups. @@ -20405,44 +19794,6 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat options: localVarRequestOptions, }; }, - /** - * - * @summary Cancel searches. - * @param {V1CancelSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cancelSearches(body: V1CancelSearchesRequest, options: any = {}): FetchArgs { - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling cancelSearches.'); - } - const localVarPath = `/api/v1/searches/cancel`; - const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'POST', ...options }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BearerToken required - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? configuration.apiKey("Authorization") - : configuration.apiKey; - localVarHeaderParameter["Authorization"] = localVarApiKeyValue; - } - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); - objToSearchParams(options.query || {}, localVarUrlObj.searchParams); - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - localVarRequestOptions.body = JSON.stringify(body) - - return { - url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, - options: localVarRequestOptions, - }; - }, /** * * @summary Cleanup task logs according to the retention policy. @@ -20701,7 +20052,7 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat }, /** * - * @summary Delete runs. + * @summary Delete a list of runs. * @param {V1DeleteRunsRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -20737,44 +20088,6 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat options: localVarRequestOptions, }; }, - /** - * - * @summary Delete searches. - * @param {V1DeleteSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteSearches(body: V1DeleteSearchesRequest, options: any = {}): FetchArgs { - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling deleteSearches.'); - } - const localVarPath = `/api/v1/searches/delete`; - const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'POST', ...options }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BearerToken required - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? configuration.apiKey("Authorization") - : configuration.apiKey; - localVarHeaderParameter["Authorization"] = localVarApiKeyValue; - } - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); - objToSearchParams(options.query || {}, localVarUrlObj.searchParams); - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - localVarRequestOptions.body = JSON.stringify(body) - - return { - url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, - options: localVarRequestOptions, - }; - }, /** * * @summary Get the set of metric names recorded for a list of experiments. @@ -21781,7 +21094,7 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat }, /** * - * @summary Kill runs. + * @summary Get a list of runs. * @param {V1KillRunsRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -21819,19 +21132,22 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat }, /** * - * @summary Kill searches. - * @param {V1KillSearchesRequest} body + * @summary List all resource pools, bound and unbound, available to a specific workspace + * @param {number} workspaceId Workspace ID. + * @param {number} [offset] The offset to use with pagination. + * @param {number} [limit] The maximum number of results to return. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - killSearches(body: V1KillSearchesRequest, options: any = {}): FetchArgs { - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling killSearches.'); + listRPsBoundToWorkspace(workspaceId: number, offset?: number, limit?: number, options: any = {}): FetchArgs { + // verify required parameter 'workspaceId' is not null or undefined + if (workspaceId === null || workspaceId === undefined) { + throw new RequiredError('workspaceId','Required parameter workspaceId was null or undefined when calling listRPsBoundToWorkspace.'); } - const localVarPath = `/api/v1/searches/kill`; + const localVarPath = `/api/v1/workspaces/{workspaceId}/available-resource-pools` + .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId))); const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'POST', ...options }; + const localVarRequestOptions = { method: 'GET', ...options }; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; @@ -21843,12 +21159,17 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat localVarHeaderParameter["Authorization"] = localVarApiKeyValue; } - localVarHeaderParameter['Content-Type'] = 'application/json'; + if (offset !== undefined) { + localVarQueryParameter['offset'] = offset + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit + } objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); objToSearchParams(options.query || {}, localVarUrlObj.searchParams); localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - localVarRequestOptions.body = JSON.stringify(body) return { url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, @@ -21857,19 +21178,22 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat }, /** * - * @summary Launch a tensorboard for one or more searches using bulk search filters. - * @param {V1LaunchTensorboardSearchesRequest} body + * @summary List all workspaces bound to a specific resource pool + * @param {string} resourcePoolName Resource pool name. + * @param {number} [offset] The offset to use with pagination. + * @param {number} [limit] The maximum number of results to return. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - launchTensorboardSearches(body: V1LaunchTensorboardSearchesRequest, options: any = {}): FetchArgs { - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling launchTensorboardSearches.'); + listWorkspacesBoundToRP(resourcePoolName: string, offset?: number, limit?: number, options: any = {}): FetchArgs { + // verify required parameter 'resourcePoolName' is not null or undefined + if (resourcePoolName === null || resourcePoolName === undefined) { + throw new RequiredError('resourcePoolName','Required parameter resourcePoolName was null or undefined when calling listWorkspacesBoundToRP.'); } - const localVarPath = `/api/v1/searches/tensorboards`; + const localVarPath = `/api/v1/resource-pools/{resourcePoolName}/workspace-bindings` + .replace(`{${"resourcePoolName"}}`, encodeURIComponent(String(resourcePoolName))); const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'POST', ...options }; + const localVarRequestOptions = { method: 'GET', ...options }; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; @@ -21881,12 +21205,17 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat localVarHeaderParameter["Authorization"] = localVarApiKeyValue; } - localVarHeaderParameter['Content-Type'] = 'application/json'; + if (offset !== undefined) { + localVarQueryParameter['offset'] = offset + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit + } objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); objToSearchParams(options.query || {}, localVarUrlObj.searchParams); localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - localVarRequestOptions.body = JSON.stringify(body) return { url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, @@ -21895,109 +21224,17 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat }, /** * - * @summary List all resource pools, bound and unbound, available to a specific workspace - * @param {number} workspaceId Workspace ID. - * @param {number} [offset] The offset to use with pagination. - * @param {number} [limit] The maximum number of results to return. + * @summary Mark the given reservation (container, pod, etc) within an allocation as a daemon reservation. In the exit of a successful exit, Determined will wait for all resources to exit - unless they are marked as daemon resources, in which case Determined will clean them up regardless of exit status after all non-daemon resources have exited. + * @param {string} allocationId The id of the allocation. + * @param {string} resourcesId The id of the clump of resources to mark as daemon. + * @param {V1MarkAllocationResourcesDaemonRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listRPsBoundToWorkspace(workspaceId: number, offset?: number, limit?: number, options: any = {}): FetchArgs { - // verify required parameter 'workspaceId' is not null or undefined - if (workspaceId === null || workspaceId === undefined) { - throw new RequiredError('workspaceId','Required parameter workspaceId was null or undefined when calling listRPsBoundToWorkspace.'); - } - const localVarPath = `/api/v1/workspaces/{workspaceId}/available-resource-pools` - .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId))); - const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'GET', ...options }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BearerToken required - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? configuration.apiKey("Authorization") - : configuration.apiKey; - localVarHeaderParameter["Authorization"] = localVarApiKeyValue; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit - } - - objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); - objToSearchParams(options.query || {}, localVarUrlObj.searchParams); - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - - return { - url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, - options: localVarRequestOptions, - }; - }, - /** - * - * @summary List all workspaces bound to a specific resource pool - * @param {string} resourcePoolName Resource pool name. - * @param {number} [offset] The offset to use with pagination. - * @param {number} [limit] The maximum number of results to return. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listWorkspacesBoundToRP(resourcePoolName: string, offset?: number, limit?: number, options: any = {}): FetchArgs { - // verify required parameter 'resourcePoolName' is not null or undefined - if (resourcePoolName === null || resourcePoolName === undefined) { - throw new RequiredError('resourcePoolName','Required parameter resourcePoolName was null or undefined when calling listWorkspacesBoundToRP.'); - } - const localVarPath = `/api/v1/resource-pools/{resourcePoolName}/workspace-bindings` - .replace(`{${"resourcePoolName"}}`, encodeURIComponent(String(resourcePoolName))); - const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'GET', ...options }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BearerToken required - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? configuration.apiKey("Authorization") - : configuration.apiKey; - localVarHeaderParameter["Authorization"] = localVarApiKeyValue; - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit - } - - objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); - objToSearchParams(options.query || {}, localVarUrlObj.searchParams); - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - - return { - url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Mark the given reservation (container, pod, etc) within an allocation as a daemon reservation. In the exit of a successful exit, Determined will wait for all resources to exit - unless they are marked as daemon resources, in which case Determined will clean them up regardless of exit status after all non-daemon resources have exited. - * @param {string} allocationId The id of the allocation. - * @param {string} resourcesId The id of the clump of resources to mark as daemon. - * @param {V1MarkAllocationResourcesDaemonRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - markAllocationResourcesDaemon(allocationId: string, resourcesId: string, body: V1MarkAllocationResourcesDaemonRequest, options: any = {}): FetchArgs { - // verify required parameter 'allocationId' is not null or undefined - if (allocationId === null || allocationId === undefined) { - throw new RequiredError('allocationId','Required parameter allocationId was null or undefined when calling markAllocationResourcesDaemon.'); + markAllocationResourcesDaemon(allocationId: string, resourcesId: string, body: V1MarkAllocationResourcesDaemonRequest, options: any = {}): FetchArgs { + // verify required parameter 'allocationId' is not null or undefined + if (allocationId === null || allocationId === undefined) { + throw new RequiredError('allocationId','Required parameter allocationId was null or undefined when calling markAllocationResourcesDaemon.'); } // verify required parameter 'resourcesId' is not null or undefined if (resourcesId === null || resourcesId === undefined) { @@ -22133,44 +21370,6 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat options: localVarRequestOptions, }; }, - /** - * - * @summary Move searches. - * @param {V1MoveSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moveSearches(body: V1MoveSearchesRequest, options: any = {}): FetchArgs { - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling moveSearches.'); - } - const localVarPath = `/api/v1/searches/move`; - const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'POST', ...options }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BearerToken required - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? configuration.apiKey("Authorization") - : configuration.apiKey; - localVarHeaderParameter["Authorization"] = localVarApiKeyValue; - } - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); - objToSearchParams(options.query || {}, localVarUrlObj.searchParams); - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - localVarRequestOptions.body = JSON.stringify(body) - - return { - url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, - options: localVarRequestOptions, - }; - }, /** * * @summary NotifyContainterRunning is used to notify the master that the container is running. On HPC, the launcher will report a state of "Running" as soon as Slurm starts the job, but the container may be in the process of getting pulled down from the Internet, so the experiment is not really considered to be in a "Running" state until all the containers that are part of the experiment are running and not being pulled. @@ -22453,44 +21652,6 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat options: localVarRequestOptions, }; }, - /** - * - * @summary Pause experiment associated with provided searches. - * @param {V1PauseSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - pauseSearches(body: V1PauseSearchesRequest, options: any = {}): FetchArgs { - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling pauseSearches.'); - } - const localVarPath = `/api/v1/searches/pause`; - const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'POST', ...options }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BearerToken required - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? configuration.apiKey("Authorization") - : configuration.apiKey; - localVarHeaderParameter["Authorization"] = localVarApiKeyValue; - } - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); - objToSearchParams(options.query || {}, localVarUrlObj.searchParams); - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - localVarRequestOptions.body = JSON.stringify(body) - - return { - url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, - options: localVarRequestOptions, - }; - }, /** * * @summary PostAllocationAcceleratorData sets the accelerator for a given allocation. @@ -23159,44 +22320,6 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat options: localVarRequestOptions, }; }, - /** - * - * @summary Unpause experiment associated with provided searches. - * @param {V1ResumeSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - resumeSearches(body: V1ResumeSearchesRequest, options: any = {}): FetchArgs { - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling resumeSearches.'); - } - const localVarPath = `/api/v1/searches/resume`; - const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'POST', ...options }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BearerToken required - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? configuration.apiKey("Authorization") - : configuration.apiKey; - localVarHeaderParameter["Authorization"] = localVarApiKeyValue; - } - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); - objToSearchParams(options.query || {}, localVarUrlObj.searchParams); - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - localVarRequestOptions.body = JSON.stringify(body) - - return { - url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, - options: localVarRequestOptions, - }; - }, /** * * @summary Start syncing and prepare to be able to report to a run. This should be called once per task that will report to the run. @@ -23547,44 +22670,6 @@ export const InternalApiFetchParamCreator = function (configuration?: Configurat options: localVarRequestOptions, }; }, - /** - * - * @summary Unarchive searches. - * @param {V1UnarchiveSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - unarchiveSearches(body: V1UnarchiveSearchesRequest, options: any = {}): FetchArgs { - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling unarchiveSearches.'); - } - const localVarPath = `/api/v1/searches/unarchive`; - const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'POST', ...options }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BearerToken required - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? configuration.apiKey("Authorization") - : configuration.apiKey; - localVarHeaderParameter["Authorization"] = localVarApiKeyValue; - } - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); - objToSearchParams(options.query || {}, localVarUrlObj.searchParams); - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - localVarRequestOptions.body = JSON.stringify(body) - - return { - url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, - options: localVarRequestOptions, - }; - }, /** * * @summary Unbind resource pool to workspace @@ -23915,25 +23000,6 @@ export const InternalApiFp = function (configuration?: Configuration) { }); }; }, - /** - * - * @summary Archive searches. - * @param {V1ArchiveSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - archiveSearches(body: V1ArchiveSearchesRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise { - const localVarFetchArgs = InternalApiFetchParamCreator(configuration).archiveSearches(body, options); - return (fetch: FetchAPI = window.fetch, basePath: string = BASE_PATH) => { - return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { - if (response.status >= 200 && response.status < 300) { - return response.json(); - } else { - throw response; - } - }); - }; - }, /** * * @summary Assign multiple users to multiple groups. @@ -23973,25 +23039,6 @@ export const InternalApiFp = function (configuration?: Configuration) { }); }; }, - /** - * - * @summary Cancel searches. - * @param {V1CancelSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cancelSearches(body: V1CancelSearchesRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise { - const localVarFetchArgs = InternalApiFetchParamCreator(configuration).cancelSearches(body, options); - return (fetch: FetchAPI = window.fetch, basePath: string = BASE_PATH) => { - return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { - if (response.status >= 200 && response.status < 300) { - return response.json(); - } else { - throw response; - } - }); - }; - }, /** * * @summary Cleanup task logs according to the retention policy. @@ -24126,7 +23173,7 @@ export const InternalApiFp = function (configuration?: Configuration) { }, /** * - * @summary Delete runs. + * @summary Delete a list of runs. * @param {V1DeleteRunsRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -24143,25 +23190,6 @@ export const InternalApiFp = function (configuration?: Configuration) { }); }; }, - /** - * - * @summary Delete searches. - * @param {V1DeleteSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteSearches(body: V1DeleteSearchesRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise { - const localVarFetchArgs = InternalApiFetchParamCreator(configuration).deleteSearches(body, options); - return (fetch: FetchAPI = window.fetch, basePath: string = BASE_PATH) => { - return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { - if (response.status >= 200 && response.status < 300) { - return response.json(); - } else { - throw response; - } - }); - }; - }, /** * * @summary Get the set of metric names recorded for a list of experiments. @@ -24648,7 +23676,7 @@ export const InternalApiFp = function (configuration?: Configuration) { }, /** * - * @summary Kill runs. + * @summary Get a list of runs. * @param {V1KillRunsRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -24665,44 +23693,6 @@ export const InternalApiFp = function (configuration?: Configuration) { }); }; }, - /** - * - * @summary Kill searches. - * @param {V1KillSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - killSearches(body: V1KillSearchesRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise { - const localVarFetchArgs = InternalApiFetchParamCreator(configuration).killSearches(body, options); - return (fetch: FetchAPI = window.fetch, basePath: string = BASE_PATH) => { - return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { - if (response.status >= 200 && response.status < 300) { - return response.json(); - } else { - throw response; - } - }); - }; - }, - /** - * - * @summary Launch a tensorboard for one or more searches using bulk search filters. - * @param {V1LaunchTensorboardSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - launchTensorboardSearches(body: V1LaunchTensorboardSearchesRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise { - const localVarFetchArgs = InternalApiFetchParamCreator(configuration).launchTensorboardSearches(body, options); - return (fetch: FetchAPI = window.fetch, basePath: string = BASE_PATH) => { - return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { - if (response.status >= 200 && response.status < 300) { - return response.json(); - } else { - throw response; - } - }); - }; - }, /** * * @summary List all resource pools, bound and unbound, available to a specific workspace @@ -24808,25 +23798,6 @@ export const InternalApiFp = function (configuration?: Configuration) { }); }; }, - /** - * - * @summary Move searches. - * @param {V1MoveSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moveSearches(body: V1MoveSearchesRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise { - const localVarFetchArgs = InternalApiFetchParamCreator(configuration).moveSearches(body, options); - return (fetch: FetchAPI = window.fetch, basePath: string = BASE_PATH) => { - return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { - if (response.status >= 200 && response.status < 300) { - return response.json(); - } else { - throw response; - } - }); - }; - }, /** * * @summary NotifyContainterRunning is used to notify the master that the container is running. On HPC, the launcher will report a state of "Running" as soon as Slurm starts the job, but the container may be in the process of getting pulled down from the Internet, so the experiment is not really considered to be in a "Running" state until all the containers that are part of the experiment are running and not being pulled. @@ -24963,25 +23934,6 @@ export const InternalApiFp = function (configuration?: Configuration) { }); }; }, - /** - * - * @summary Pause experiment associated with provided searches. - * @param {V1PauseSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - pauseSearches(body: V1PauseSearchesRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise { - const localVarFetchArgs = InternalApiFetchParamCreator(configuration).pauseSearches(body, options); - return (fetch: FetchAPI = window.fetch, basePath: string = BASE_PATH) => { - return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { - if (response.status >= 200 && response.status < 300) { - return response.json(); - } else { - throw response; - } - }); - }; - }, /** * * @summary PostAllocationAcceleratorData sets the accelerator for a given allocation. @@ -25296,25 +24248,6 @@ export const InternalApiFp = function (configuration?: Configuration) { }); }; }, - /** - * - * @summary Unpause experiment associated with provided searches. - * @param {V1ResumeSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - resumeSearches(body: V1ResumeSearchesRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise { - const localVarFetchArgs = InternalApiFetchParamCreator(configuration).resumeSearches(body, options); - return (fetch: FetchAPI = window.fetch, basePath: string = BASE_PATH) => { - return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { - if (response.status >= 200 && response.status < 300) { - return response.json(); - } else { - throw response; - } - }); - }; - }, /** * * @summary Start syncing and prepare to be able to report to a run. This should be called once per task that will report to the run. @@ -25463,25 +24396,6 @@ export const InternalApiFp = function (configuration?: Configuration) { }); }; }, - /** - * - * @summary Unarchive searches. - * @param {V1UnarchiveSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - unarchiveSearches(body: V1UnarchiveSearchesRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise { - const localVarFetchArgs = InternalApiFetchParamCreator(configuration).unarchiveSearches(body, options); - return (fetch: FetchAPI = window.fetch, basePath: string = BASE_PATH) => { - return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { - if (response.status >= 200 && response.status < 300) { - return response.json(); - } else { - throw response; - } - }); - }; - }, /** * * @summary Unbind resource pool to workspace @@ -25656,16 +24570,6 @@ export const InternalApiFactory = function (configuration?: Configuration, fetch archiveRuns(body: V1ArchiveRunsRequest, options?: any) { return InternalApiFp(configuration).archiveRuns(body, options)(fetch, basePath); }, - /** - * - * @summary Archive searches. - * @param {V1ArchiveSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - archiveSearches(body: V1ArchiveSearchesRequest, options?: any) { - return InternalApiFp(configuration).archiveSearches(body, options)(fetch, basePath); - }, /** * * @summary Assign multiple users to multiple groups. @@ -25687,16 +24591,6 @@ export const InternalApiFactory = function (configuration?: Configuration, fetch bindRPToWorkspace(resourcePoolName: string, body: V1BindRPToWorkspaceRequest, options?: any) { return InternalApiFp(configuration).bindRPToWorkspace(resourcePoolName, body, options)(fetch, basePath); }, - /** - * - * @summary Cancel searches. - * @param {V1CancelSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cancelSearches(body: V1CancelSearchesRequest, options?: any) { - return InternalApiFp(configuration).cancelSearches(body, options)(fetch, basePath); - }, /** * * @summary Cleanup task logs according to the retention policy. @@ -25768,7 +24662,7 @@ export const InternalApiFactory = function (configuration?: Configuration, fetch }, /** * - * @summary Delete runs. + * @summary Delete a list of runs. * @param {V1DeleteRunsRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -25776,16 +24670,6 @@ export const InternalApiFactory = function (configuration?: Configuration, fetch deleteRuns(body: V1DeleteRunsRequest, options?: any) { return InternalApiFp(configuration).deleteRuns(body, options)(fetch, basePath); }, - /** - * - * @summary Delete searches. - * @param {V1DeleteSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteSearches(body: V1DeleteSearchesRequest, options?: any) { - return InternalApiFp(configuration).deleteSearches(body, options)(fetch, basePath); - }, /** * * @summary Get the set of metric names recorded for a list of experiments. @@ -26056,7 +24940,7 @@ export const InternalApiFactory = function (configuration?: Configuration, fetch }, /** * - * @summary Kill runs. + * @summary Get a list of runs. * @param {V1KillRunsRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -26064,26 +24948,6 @@ export const InternalApiFactory = function (configuration?: Configuration, fetch killRuns(body: V1KillRunsRequest, options?: any) { return InternalApiFp(configuration).killRuns(body, options)(fetch, basePath); }, - /** - * - * @summary Kill searches. - * @param {V1KillSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - killSearches(body: V1KillSearchesRequest, options?: any) { - return InternalApiFp(configuration).killSearches(body, options)(fetch, basePath); - }, - /** - * - * @summary Launch a tensorboard for one or more searches using bulk search filters. - * @param {V1LaunchTensorboardSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - launchTensorboardSearches(body: V1LaunchTensorboardSearchesRequest, options?: any) { - return InternalApiFp(configuration).launchTensorboardSearches(body, options)(fetch, basePath); - }, /** * * @summary List all resource pools, bound and unbound, available to a specific workspace @@ -26144,16 +25008,6 @@ export const InternalApiFactory = function (configuration?: Configuration, fetch moveRuns(body: V1MoveRunsRequest, options?: any) { return InternalApiFp(configuration).moveRuns(body, options)(fetch, basePath); }, - /** - * - * @summary Move searches. - * @param {V1MoveSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moveSearches(body: V1MoveSearchesRequest, options?: any) { - return InternalApiFp(configuration).moveSearches(body, options)(fetch, basePath); - }, /** * * @summary NotifyContainterRunning is used to notify the master that the container is running. On HPC, the launcher will report a state of "Running" as soon as Slurm starts the job, but the container may be in the process of getting pulled down from the Internet, so the experiment is not really considered to be in a "Running" state until all the containers that are part of the experiment are running and not being pulled. @@ -26227,16 +25081,6 @@ export const InternalApiFactory = function (configuration?: Configuration, fetch pauseRuns(body: V1PauseRunsRequest, options?: any) { return InternalApiFp(configuration).pauseRuns(body, options)(fetch, basePath); }, - /** - * - * @summary Pause experiment associated with provided searches. - * @param {V1PauseSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - pauseSearches(body: V1PauseSearchesRequest, options?: any) { - return InternalApiFp(configuration).pauseSearches(body, options)(fetch, basePath); - }, /** * * @summary PostAllocationAcceleratorData sets the accelerator for a given allocation. @@ -26407,16 +25251,6 @@ export const InternalApiFactory = function (configuration?: Configuration, fetch resumeRuns(body: V1ResumeRunsRequest, options?: any) { return InternalApiFp(configuration).resumeRuns(body, options)(fetch, basePath); }, - /** - * - * @summary Unpause experiment associated with provided searches. - * @param {V1ResumeSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - resumeSearches(body: V1ResumeSearchesRequest, options?: any) { - return InternalApiFp(configuration).resumeSearches(body, options)(fetch, basePath); - }, /** * * @summary Start syncing and prepare to be able to report to a run. This should be called once per task that will report to the run. @@ -26502,16 +25336,6 @@ export const InternalApiFactory = function (configuration?: Configuration, fetch unarchiveRuns(body: V1UnarchiveRunsRequest, options?: any) { return InternalApiFp(configuration).unarchiveRuns(body, options)(fetch, basePath); }, - /** - * - * @summary Unarchive searches. - * @param {V1UnarchiveSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - unarchiveSearches(body: V1UnarchiveSearchesRequest, options?: any) { - return InternalApiFp(configuration).unarchiveSearches(body, options)(fetch, basePath); - }, /** * * @summary Unbind resource pool to workspace @@ -26667,18 +25491,6 @@ export class InternalApi extends BaseAPI { return InternalApiFp(this.configuration).archiveRuns(body, options)(this.fetch, this.basePath) } - /** - * - * @summary Archive searches. - * @param {V1ArchiveSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof InternalApi - */ - public archiveSearches(body: V1ArchiveSearchesRequest, options?: any) { - return InternalApiFp(this.configuration).archiveSearches(body, options)(this.fetch, this.basePath) - } - /** * * @summary Assign multiple users to multiple groups. @@ -26704,18 +25516,6 @@ export class InternalApi extends BaseAPI { return InternalApiFp(this.configuration).bindRPToWorkspace(resourcePoolName, body, options)(this.fetch, this.basePath) } - /** - * - * @summary Cancel searches. - * @param {V1CancelSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof InternalApi - */ - public cancelSearches(body: V1CancelSearchesRequest, options?: any) { - return InternalApiFp(this.configuration).cancelSearches(body, options)(this.fetch, this.basePath) - } - /** * * @summary Cleanup task logs according to the retention policy. @@ -26801,7 +25601,7 @@ export class InternalApi extends BaseAPI { /** * - * @summary Delete runs. + * @summary Delete a list of runs. * @param {V1DeleteRunsRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -26811,18 +25611,6 @@ export class InternalApi extends BaseAPI { return InternalApiFp(this.configuration).deleteRuns(body, options)(this.fetch, this.basePath) } - /** - * - * @summary Delete searches. - * @param {V1DeleteSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof InternalApi - */ - public deleteSearches(body: V1DeleteSearchesRequest, options?: any) { - return InternalApiFp(this.configuration).deleteSearches(body, options)(this.fetch, this.basePath) - } - /** * * @summary Get the set of metric names recorded for a list of experiments. @@ -27141,7 +25929,7 @@ export class InternalApi extends BaseAPI { /** * - * @summary Kill runs. + * @summary Get a list of runs. * @param {V1KillRunsRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -27151,30 +25939,6 @@ export class InternalApi extends BaseAPI { return InternalApiFp(this.configuration).killRuns(body, options)(this.fetch, this.basePath) } - /** - * - * @summary Kill searches. - * @param {V1KillSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof InternalApi - */ - public killSearches(body: V1KillSearchesRequest, options?: any) { - return InternalApiFp(this.configuration).killSearches(body, options)(this.fetch, this.basePath) - } - - /** - * - * @summary Launch a tensorboard for one or more searches using bulk search filters. - * @param {V1LaunchTensorboardSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof InternalApi - */ - public launchTensorboardSearches(body: V1LaunchTensorboardSearchesRequest, options?: any) { - return InternalApiFp(this.configuration).launchTensorboardSearches(body, options)(this.fetch, this.basePath) - } - /** * * @summary List all resource pools, bound and unbound, available to a specific workspace @@ -27245,18 +26009,6 @@ export class InternalApi extends BaseAPI { return InternalApiFp(this.configuration).moveRuns(body, options)(this.fetch, this.basePath) } - /** - * - * @summary Move searches. - * @param {V1MoveSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof InternalApi - */ - public moveSearches(body: V1MoveSearchesRequest, options?: any) { - return InternalApiFp(this.configuration).moveSearches(body, options)(this.fetch, this.basePath) - } - /** * * @summary NotifyContainterRunning is used to notify the master that the container is running. On HPC, the launcher will report a state of "Running" as soon as Slurm starts the job, but the container may be in the process of getting pulled down from the Internet, so the experiment is not really considered to be in a "Running" state until all the containers that are part of the experiment are running and not being pulled. @@ -27334,26 +26086,14 @@ export class InternalApi extends BaseAPI { /** * - * @summary Pause experiment associated with provided runs. - * @param {V1PauseRunsRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof InternalApi - */ - public pauseRuns(body: V1PauseRunsRequest, options?: any) { - return InternalApiFp(this.configuration).pauseRuns(body, options)(this.fetch, this.basePath) - } - - /** - * - * @summary Pause experiment associated with provided searches. - * @param {V1PauseSearchesRequest} body + * @summary Pause experiment associated with provided runs. + * @param {V1PauseRunsRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InternalApi */ - public pauseSearches(body: V1PauseSearchesRequest, options?: any) { - return InternalApiFp(this.configuration).pauseSearches(body, options)(this.fetch, this.basePath) + public pauseRuns(body: V1PauseRunsRequest, options?: any) { + return InternalApiFp(this.configuration).pauseRuns(body, options)(this.fetch, this.basePath) } /** @@ -27558,18 +26298,6 @@ export class InternalApi extends BaseAPI { return InternalApiFp(this.configuration).resumeRuns(body, options)(this.fetch, this.basePath) } - /** - * - * @summary Unpause experiment associated with provided searches. - * @param {V1ResumeSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof InternalApi - */ - public resumeSearches(body: V1ResumeSearchesRequest, options?: any) { - return InternalApiFp(this.configuration).resumeSearches(body, options)(this.fetch, this.basePath) - } - /** * * @summary Start syncing and prepare to be able to report to a run. This should be called once per task that will report to the run. @@ -27669,18 +26397,6 @@ export class InternalApi extends BaseAPI { return InternalApiFp(this.configuration).unarchiveRuns(body, options)(this.fetch, this.basePath) } - /** - * - * @summary Unarchive searches. - * @param {V1UnarchiveSearchesRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof InternalApi - */ - public unarchiveSearches(body: V1UnarchiveSearchesRequest, options?: any) { - return InternalApiFp(this.configuration).unarchiveSearches(body, options)(this.fetch, this.basePath) - } - /** * * @summary Unbind resource pool to workspace @@ -34123,333 +32839,6 @@ export class TensorboardsApi extends BaseAPI { } -/** - * TokensApi - fetch parameter creator - * @export - */ -export const TokensApiFetchParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Get a list of all access token records. - * @param {V1GetAccessTokensRequestSortBy} [sortBy] Sort token info by the given field. - SORT_BY_UNSPECIFIED: Returns token info in an unsorted list. - SORT_BY_USER_ID: Returns token info sorted by user id. - SORT_BY_EXPIRY: Returns token info sorted by expiry. - SORT_BY_CREATED_AT: Returns token info sorted by created at. - SORT_BY_TOKEN_TYPE: Returns token info sorted by token type. - SORT_BY_REVOKED: Returns token info sorted by if it is revoked. - SORT_BY_DESCRIPTION: Returns token info sorted by description of token. - * @param {V1OrderBy} [orderBy] Order token info in either ascending or descending order. - ORDER_BY_UNSPECIFIED: Returns records in no specific order. - ORDER_BY_ASC: Returns records in ascending order. - ORDER_BY_DESC: Returns records in descending order. - * @param {number} [offset] Skip the number of projects before returning results. Negative values denote number of projects to skip from the end before returning results. - * @param {number} [limit] Limit the number of projects. A value of 0 denotes no limit. - * @param {Array} [tokenIds] Filter on token_ids. - * @param {string} [username] Filter by username. - * @param {boolean} [showInactive] Filter by active status. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAccessTokens(sortBy?: V1GetAccessTokensRequestSortBy, orderBy?: V1OrderBy, offset?: number, limit?: number, tokenIds?: Array, username?: string, showInactive?: boolean, options: any = {}): FetchArgs { - const localVarPath = `/api/v1/tokens`; - const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'GET', ...options }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BearerToken required - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? configuration.apiKey("Authorization") - : configuration.apiKey; - localVarHeaderParameter["Authorization"] = localVarApiKeyValue; - } - - if (sortBy !== undefined) { - localVarQueryParameter['sortBy'] = sortBy - } - - if (orderBy !== undefined) { - localVarQueryParameter['orderBy'] = orderBy - } - - if (offset !== undefined) { - localVarQueryParameter['offset'] = offset - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit - } - - if (tokenIds) { - localVarQueryParameter['tokenIds'] = tokenIds - } - - if (username !== undefined) { - localVarQueryParameter['username'] = username - } - - if (showInactive !== undefined) { - localVarQueryParameter['showInactive'] = showInactive - } - - objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); - objToSearchParams(options.query || {}, localVarUrlObj.searchParams); - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - - return { - url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Patch an access token's mutable fields. - * @param {number} tokenId The id of the token. - * @param {V1PatchAccessTokenRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - patchAccessToken(tokenId: number, body: V1PatchAccessTokenRequest, options: any = {}): FetchArgs { - // verify required parameter 'tokenId' is not null or undefined - if (tokenId === null || tokenId === undefined) { - throw new RequiredError('tokenId','Required parameter tokenId was null or undefined when calling patchAccessToken.'); - } - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling patchAccessToken.'); - } - const localVarPath = `/api/v1/tokens/{tokenId}` - .replace(`{${"tokenId"}}`, encodeURIComponent(String(tokenId))); - const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'PATCH', ...options }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BearerToken required - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? configuration.apiKey("Authorization") - : configuration.apiKey; - localVarHeaderParameter["Authorization"] = localVarApiKeyValue; - } - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); - objToSearchParams(options.query || {}, localVarUrlObj.searchParams); - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - localVarRequestOptions.body = JSON.stringify(body) - - return { - url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create and get a user's access token - * @param {V1PostAccessTokenRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - postAccessToken(body: V1PostAccessTokenRequest, options: any = {}): FetchArgs { - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling postAccessToken.'); - } - const localVarPath = `/api/v1/tokens`; - const localVarUrlObj = new URL(localVarPath, BASE_PATH); - const localVarRequestOptions = { method: 'POST', ...options }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication BearerToken required - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? configuration.apiKey("Authorization") - : configuration.apiKey; - localVarHeaderParameter["Authorization"] = localVarApiKeyValue; - } - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - objToSearchParams(localVarQueryParameter, localVarUrlObj.searchParams); - objToSearchParams(options.query || {}, localVarUrlObj.searchParams); - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...options.headers }; - localVarRequestOptions.body = JSON.stringify(body) - - return { - url: `${localVarUrlObj.pathname}${localVarUrlObj.search}`, - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * TokensApi - functional programming interface - * @export - */ -export const TokensApiFp = function (configuration?: Configuration) { - return { - /** - * - * @summary Get a list of all access token records. - * @param {V1GetAccessTokensRequestSortBy} [sortBy] Sort token info by the given field. - SORT_BY_UNSPECIFIED: Returns token info in an unsorted list. - SORT_BY_USER_ID: Returns token info sorted by user id. - SORT_BY_EXPIRY: Returns token info sorted by expiry. - SORT_BY_CREATED_AT: Returns token info sorted by created at. - SORT_BY_TOKEN_TYPE: Returns token info sorted by token type. - SORT_BY_REVOKED: Returns token info sorted by if it is revoked. - SORT_BY_DESCRIPTION: Returns token info sorted by description of token. - * @param {V1OrderBy} [orderBy] Order token info in either ascending or descending order. - ORDER_BY_UNSPECIFIED: Returns records in no specific order. - ORDER_BY_ASC: Returns records in ascending order. - ORDER_BY_DESC: Returns records in descending order. - * @param {number} [offset] Skip the number of projects before returning results. Negative values denote number of projects to skip from the end before returning results. - * @param {number} [limit] Limit the number of projects. A value of 0 denotes no limit. - * @param {Array} [tokenIds] Filter on token_ids. - * @param {string} [username] Filter by username. - * @param {boolean} [showInactive] Filter by active status. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAccessTokens(sortBy?: V1GetAccessTokensRequestSortBy, orderBy?: V1OrderBy, offset?: number, limit?: number, tokenIds?: Array, username?: string, showInactive?: boolean, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise { - const localVarFetchArgs = TokensApiFetchParamCreator(configuration).getAccessTokens(sortBy, orderBy, offset, limit, tokenIds, username, showInactive, options); - return (fetch: FetchAPI = window.fetch, basePath: string = BASE_PATH) => { - return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { - if (response.status >= 200 && response.status < 300) { - return response.json(); - } else { - throw response; - } - }); - }; - }, - /** - * - * @summary Patch an access token's mutable fields. - * @param {number} tokenId The id of the token. - * @param {V1PatchAccessTokenRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - patchAccessToken(tokenId: number, body: V1PatchAccessTokenRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise { - const localVarFetchArgs = TokensApiFetchParamCreator(configuration).patchAccessToken(tokenId, body, options); - return (fetch: FetchAPI = window.fetch, basePath: string = BASE_PATH) => { - return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { - if (response.status >= 200 && response.status < 300) { - return response.json(); - } else { - throw response; - } - }); - }; - }, - /** - * - * @summary Create and get a user's access token - * @param {V1PostAccessTokenRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - postAccessToken(body: V1PostAccessTokenRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise { - const localVarFetchArgs = TokensApiFetchParamCreator(configuration).postAccessToken(body, options); - return (fetch: FetchAPI = window.fetch, basePath: string = BASE_PATH) => { - return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => { - if (response.status >= 200 && response.status < 300) { - return response.json(); - } else { - throw response; - } - }); - }; - }, - } -}; - -/** - * TokensApi - factory interface - * @export - */ -export const TokensApiFactory = function (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) { - return { - /** - * - * @summary Get a list of all access token records. - * @param {V1GetAccessTokensRequestSortBy} [sortBy] Sort token info by the given field. - SORT_BY_UNSPECIFIED: Returns token info in an unsorted list. - SORT_BY_USER_ID: Returns token info sorted by user id. - SORT_BY_EXPIRY: Returns token info sorted by expiry. - SORT_BY_CREATED_AT: Returns token info sorted by created at. - SORT_BY_TOKEN_TYPE: Returns token info sorted by token type. - SORT_BY_REVOKED: Returns token info sorted by if it is revoked. - SORT_BY_DESCRIPTION: Returns token info sorted by description of token. - * @param {V1OrderBy} [orderBy] Order token info in either ascending or descending order. - ORDER_BY_UNSPECIFIED: Returns records in no specific order. - ORDER_BY_ASC: Returns records in ascending order. - ORDER_BY_DESC: Returns records in descending order. - * @param {number} [offset] Skip the number of projects before returning results. Negative values denote number of projects to skip from the end before returning results. - * @param {number} [limit] Limit the number of projects. A value of 0 denotes no limit. - * @param {Array} [tokenIds] Filter on token_ids. - * @param {string} [username] Filter by username. - * @param {boolean} [showInactive] Filter by active status. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - getAccessTokens(sortBy?: V1GetAccessTokensRequestSortBy, orderBy?: V1OrderBy, offset?: number, limit?: number, tokenIds?: Array, username?: string, showInactive?: boolean, options?: any) { - return TokensApiFp(configuration).getAccessTokens(sortBy, orderBy, offset, limit, tokenIds, username, showInactive, options)(fetch, basePath); - }, - /** - * - * @summary Patch an access token's mutable fields. - * @param {number} tokenId The id of the token. - * @param {V1PatchAccessTokenRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - patchAccessToken(tokenId: number, body: V1PatchAccessTokenRequest, options?: any) { - return TokensApiFp(configuration).patchAccessToken(tokenId, body, options)(fetch, basePath); - }, - /** - * - * @summary Create and get a user's access token - * @param {V1PostAccessTokenRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - postAccessToken(body: V1PostAccessTokenRequest, options?: any) { - return TokensApiFp(configuration).postAccessToken(body, options)(fetch, basePath); - }, - } -}; - -/** - * TokensApi - object-oriented interface - * @export - * @class - * @extends {BaseAPI} - */ -export class TokensApi extends BaseAPI { - /** - * - * @summary Get a list of all access token records. - * @param {V1GetAccessTokensRequestSortBy} [sortBy] Sort token info by the given field. - SORT_BY_UNSPECIFIED: Returns token info in an unsorted list. - SORT_BY_USER_ID: Returns token info sorted by user id. - SORT_BY_EXPIRY: Returns token info sorted by expiry. - SORT_BY_CREATED_AT: Returns token info sorted by created at. - SORT_BY_TOKEN_TYPE: Returns token info sorted by token type. - SORT_BY_REVOKED: Returns token info sorted by if it is revoked. - SORT_BY_DESCRIPTION: Returns token info sorted by description of token. - * @param {V1OrderBy} [orderBy] Order token info in either ascending or descending order. - ORDER_BY_UNSPECIFIED: Returns records in no specific order. - ORDER_BY_ASC: Returns records in ascending order. - ORDER_BY_DESC: Returns records in descending order. - * @param {number} [offset] Skip the number of projects before returning results. Negative values denote number of projects to skip from the end before returning results. - * @param {number} [limit] Limit the number of projects. A value of 0 denotes no limit. - * @param {Array} [tokenIds] Filter on token_ids. - * @param {string} [username] Filter by username. - * @param {boolean} [showInactive] Filter by active status. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof TokensApi - */ - public getAccessTokens(sortBy?: V1GetAccessTokensRequestSortBy, orderBy?: V1OrderBy, offset?: number, limit?: number, tokenIds?: Array, username?: string, showInactive?: boolean, options?: any) { - return TokensApiFp(this.configuration).getAccessTokens(sortBy, orderBy, offset, limit, tokenIds, username, showInactive, options)(this.fetch, this.basePath) - } - - /** - * - * @summary Patch an access token's mutable fields. - * @param {number} tokenId The id of the token. - * @param {V1PatchAccessTokenRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof TokensApi - */ - public patchAccessToken(tokenId: number, body: V1PatchAccessTokenRequest, options?: any) { - return TokensApiFp(this.configuration).patchAccessToken(tokenId, body, options)(this.fetch, this.basePath) - } - - /** - * - * @summary Create and get a user's access token - * @param {V1PostAccessTokenRequest} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof TokensApi - */ - public postAccessToken(body: V1PostAccessTokenRequest, options?: any) { - return TokensApiFp(this.configuration).postAccessToken(body, options)(this.fetch, this.basePath) - } - -} - /** * TrialsApi - fetch parameter creator * @export