API Classes¶
Apps¶
Kelvin API Client.
- class kelvin.api.client.api.apps.Apps(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (BaseModel | None)
_name (str | None)
- classmethod list_apps_context(sort_by=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns App resource contexts that match the request filters.
- Overloads:
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppsContextList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppsContextList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppsContextList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.AppsContextListPaginatedResponseCursor, responses.AppsContextListPaginatedResponseLimits]
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppsContextList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.AppsResourceContext]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (AppsContextList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[AppsResourceContext] | AppsContextListPaginatedResponseCursor | AppsContextListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.app.read.
listAppsContext:POST/api/v4/apps/context/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[AppsContextList,Mapping[str,object],None]) – requests.AppsContextList, optional**kwargs (object) –
- Extra parameters for requests.AppsContextList
list_apps_context: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[AppsResourceContext] | AppsContextListPaginatedResponseCursor | AppsContextListPaginatedResponseLimits | dict[str, object] | Response
- classmethod create_app_version(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create App Version
- Overloads:
cls, data (Optional[Union[requests.AppVersionCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.AppVersionCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.AppVersionCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.AppVersionCreate
- Parameters:
- Return type:
AppVersionCreate | dict[str, object] | Response
Permission Required: kelvin.permission.app.create.
createAppVersion:POST/api/v4/apps/create- Parameters:
- Return type:
AppVersionCreate | dict[str, object] | Response
- classmethod list_apps(app_names=None, app_types=None, resources=None, search=None, sort_by=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns Apps that match the provided filters.
- Overloads:
cls, app_names (Optional[Sequence[str]]), app_types (Optional[Sequence[str]]), resources (Optional[Sequence[str]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, app_names (Optional[Sequence[str]]), app_types (Optional[Sequence[str]]), resources (Optional[Sequence[str]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, app_names (Optional[Sequence[str]]), app_types (Optional[Sequence[str]]), resources (Optional[Sequence[str]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.AppsListPaginatedResponseCursor, responses.AppsListPaginatedResponseLimits]
cls, app_names (Optional[Sequence[str]]), app_types (Optional[Sequence[str]]), resources (Optional[Sequence[str]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.AppShort]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[AppShort] | AppsListPaginatedResponseCursor | AppsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.app.read.
listApps:GET/api/v4/apps/list- Parameters:
app_names (
Optional[Sequence[str]]) –Sequence[str]Return only Apps whose name matches one or more values.app_types (
Optional[Sequence[str]]) –Sequence[str]Return only Apps whose type matches one or more values.resources (
Optional[Sequence[str]]) –Sequence[str]Return only Apps associated with the provided resource KRNs. Allowed namespace is asset.search (
Optional[Sequence[str]]) –Sequence[str]Case-insensitive partial match against App name and title.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[AppShort] | AppsListPaginatedResponseCursor | AppsListPaginatedResponseLimits | dict[str, object] | Response
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod delete_app(app_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Delete App
- Overloads:
cls, app_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, app_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, app_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.app.delete.
deleteApp:POST/api/v4/apps/{app_name}/delete
- classmethod get_app(app_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns App details for the provided app_name.
- Overloads:
cls, app_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, app_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, app_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.AppGet
- Parameters:
- Return type:
Permission Required: kelvin.permission.app.read.
getApp:GET/api/v4/apps/{app_name}/get
- classmethod patch_app(app_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update details of an Application. Any parameters that are not provided will remain unchanged.
- Overloads:
cls, app_name (str), data (Optional[Union[requests.AppPatch, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, app_name (str), data (Optional[Union[requests.AppPatch, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, app_name (str), data (Optional[Union[requests.AppPatch, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.AppPatch
- Parameters:
- Return type:
Permission Required: kelvin.permission.app.update.
patchApp:POST/api/v4/apps/{app_name}/patch- Parameters:
- Return type:
- classmethod delete_app_resources(app_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Delete App Resources
- Overloads:
cls, app_name (str), data (Optional[Union[requests.AppResourcesDelete, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, app_name (str), data (Optional[Union[requests.AppResourcesDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, app_name (str), data (Optional[Union[requests.AppResourcesDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.app.update.
deleteAppResources:POST/api/v4/apps/{app_name}/resources/delete
- classmethod disable_app_resources(app_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Disable App Resources
- Overloads:
cls, app_name (str), data (Optional[Union[requests.AppResourcesDisable, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, app_name (str), data (Optional[Union[requests.AppResourcesDisable, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, app_name (str), data (Optional[Union[requests.AppResourcesDisable, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.app.update.
disableAppResources:POST/api/v4/apps/{app_name}/resources/disable- Parameters:
- Return type:
- classmethod enable_app_resources(app_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Enable App Resources
- Overloads:
cls, app_name (str), data (Optional[Union[requests.AppResourcesEnable, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, app_name (str), data (Optional[Union[requests.AppResourcesEnable, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, app_name (str), data (Optional[Union[requests.AppResourcesEnable, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.app.update.
enableAppResources:POST/api/v4/apps/{app_name}/resources/enable
- classmethod list_app_resources(app_name, search=None, resources=None, app_versions=None, workload_names=None, enabled=None, sort_by=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
List App Resources
- Overloads:
cls, app_name (str), search (Optional[Sequence[str]]), resources (Optional[Sequence[str]]), app_versions (Optional[Sequence[str]]), workload_names (Optional[Sequence[str]]), enabled (Optional[bool]), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, app_name (str), search (Optional[Sequence[str]]), resources (Optional[Sequence[str]]), app_versions (Optional[Sequence[str]]), workload_names (Optional[Sequence[str]]), enabled (Optional[bool]), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, app_name (str), search (Optional[Sequence[str]]), resources (Optional[Sequence[str]]), app_versions (Optional[Sequence[str]]), workload_names (Optional[Sequence[str]]), enabled (Optional[bool]), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.AppResourcesListPaginatedResponseCursor, responses.AppResourcesListPaginatedResponseLimits]
cls, app_name (str), search (Optional[Sequence[str]]), resources (Optional[Sequence[str]]), app_versions (Optional[Sequence[str]]), workload_names (Optional[Sequence[str]]), enabled (Optional[bool]), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.AppResource]
- Parameters:
app_name (str)
enabled (bool | None)
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[AppResource] | AppResourcesListPaginatedResponseCursor | AppResourcesListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.app.read.
listAppResources:GET/api/v4/apps/{app_name}/resources/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[AppResource] | AppResourcesListPaginatedResponseCursor | AppResourcesListPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_app_version(app_name, app_version, _dry_run=False, _get_response=False, _client=None)[source]¶
Delete App Version
- Overloads:
cls, app_name (str), app_version (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, app_name (str), app_version (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, app_name (str), app_version (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.app.delete.
deleteAppVersion:POST/api/v4/apps/{app_name}/v/{app_version}/delete
- classmethod deploy_app_version(app_name, app_version, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Deploy App Version
- Overloads:
cls, app_name (str), app_version (str), data (Optional[Union[requests.AppVersionDeploy, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, app_name (str), app_version (str), data (Optional[Union[requests.AppVersionDeploy, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, app_name (str), app_version (str), data (Optional[Union[requests.AppVersionDeploy, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.AppVersionDeploy
- Parameters:
- Return type:
AppVersionDeploy | dict[str, object] | Response
Issues the deployment of workloads based on the specified instructions.
The deployment section defines the strategy to deploy the application to resources (i.e. assets) by creating the necessary workloads based on the maximum number of resources each instance can handle, as well as the target cluster where the workloads will be deployed.
Each resource (i.e. asset) is defined in the runtime section, which includes defining its parameters and data stream mappings.
The parameters section is optional. If provided, it will update all parameters for that resource with the provided values, otherwise, the current ones will be injected into the new workloads. If parameters is set and a parameter is not defined, the current value will be deleted, effectively setting it to the default value. This behaviour means that setting parameters to an empty object ({}) will reset all parameters of that resource to their default values.
Permission Required: kelvin.permission.app.deploy.
deployAppVersion:POST/api/v4/apps/{app_name}/v/{app_version}/deploy- Parameters:
- Return type:
AppVersionDeploy | dict[str, object] | Response
- classmethod get_app_version(app_name, app_version, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns details for the specified App version.
- Overloads:
cls, app_name (str), app_version (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, app_name (str), app_version (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, app_name (str), app_version (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.AppVersionGet
- Parameters:
- Return type:
AppVersionGet | dict[str, object] | Response
Permission Required: kelvin.permission.app.read.
getAppVersion:GET/api/v4/apps/{app_name}/v/{app_version}/get
- classmethod patch_app_version(app_name, app_version, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update App Version
- Overloads:
cls, app_name (str), app_version (str), data (Optional[Union[requests.AppVersionPatch, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, app_name (str), app_version (str), data (Optional[Union[requests.AppVersionPatch, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, app_name (str), app_version (str), data (Optional[Union[requests.AppVersionPatch, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.AppVersionPatch
- Parameters:
- Return type:
AppVersionPatch | dict[str, object] | Response
Partially update the default settings and schemas for an App Version. The following keys can be updated individually. If a key is not specified, its existing value will remain unchanged. If a key is specified, it will completely overwrite the current value for that key and its nested fields.
image
defaults.deployment.max_resources
defaults.deployment.deployment_type
defaults.deployment.target
defaults.app.configuration
defaults.app.io_datastream_mapping
defaults.api_permissions
defaults.system
schemas.parameters
schemas.configuration
schemas.io_configuration
Permission Required: kelvin.permission.app.update.
patchAppVersion:POST/api/v4/apps/{app_name}/v/{app_version}/patch- Parameters:
- Return type:
AppVersionPatch | dict[str, object] | Response
- classmethod update_app_version(app_name, app_version, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update App Version
- Overloads:
cls, app_name (str), app_version (str), data (Optional[Union[requests.AppVersionUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, app_name (str), app_version (str), data (Optional[Union[requests.AppVersionUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, app_name (str), app_version (str), data (Optional[Union[requests.AppVersionUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.AppVersionUpdate
- Parameters:
- Return type:
AppVersionUpdate | dict[str, object] | Response
Update the default settings and schemas for an App Version.
Permission Required: kelvin.permission.app.update.
updateAppVersion:POST/api/v4/apps/{app_name}/v/{app_version}/update- Parameters:
- Return type:
AppVersionUpdate | dict[str, object] | Response
AppParameters¶
Kelvin API Client.
- class kelvin.api.client.api.app_parameters.AppParameters(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod list_app_version_parameters_history(sort_by=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
List App Version Parameters History
- Overloads:
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppVersionParametersHistoryList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppVersionParametersHistoryList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppVersionParametersHistoryList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.AppVersionParametersHistoryListPaginatedResponseCursor, responses.AppVersionParametersHistoryListPaginatedResponseLimits]
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppVersionParametersHistoryList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.AppVersionParameter]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (AppVersionParametersHistoryList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[AppVersionParameter] | AppVersionParametersHistoryListPaginatedResponseCursor | AppVersionParametersHistoryListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.parameter.read.
listAppVersionParametersHistory:POST/api/v4/apps/parameters/history/list- Parameters:
sort_by (
Optional[Sequence[str]]) –Sequence[str]Sort the results by one or more enumerators.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[AppVersionParametersHistoryList,Mapping[str,object],None]) – requests.AppVersionParametersHistoryList, optional**kwargs (object) –
- Extra parameters for requests.AppVersionParametersHistoryList
list_app_version_parameters_history: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[AppVersionParameter] | AppVersionParametersHistoryListPaginatedResponseCursor | AppVersionParametersHistoryListPaginatedResponseLimits | dict[str, object] | Response
- classmethod list_app_parameters(sort_by=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns App parameter definitions that match the request filters.
- Overloads:
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppParametersList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppParametersList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppParametersList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.AppParametersListPaginatedResponseCursor, responses.AppParametersListPaginatedResponseLimits]
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppParametersList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.AppParameter]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (AppParametersList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[AppParameter] | AppParametersListPaginatedResponseCursor | AppParametersListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.parameter.read.
listAppParameters:POST/api/v4/apps/parameters/list- Parameters:
sort_by (
Optional[Sequence[str]]) –Sequence[str]Sort results by one or more fields.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[AppParametersList,Mapping[str,object],None]) – requests.AppParametersList, optional**kwargs (object) –
- Extra parameters for requests.AppParametersList
list_app_parameters: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[AppParameter] | AppParametersListPaginatedResponseCursor | AppParametersListPaginatedResponseLimits | dict[str, object] | Response
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod create_parameters_schedule(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new schedule to apply parameters to an application.
- Overloads:
cls, data (Optional[Union[requests.ParametersScheduleCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.ParametersScheduleCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.ParametersScheduleCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.ParametersScheduleCreate
- Parameters:
- Return type:
ParametersScheduleCreate | dict[str, object] | Response
Schedules are sets of application parameter values that are applied to a group of assets at a given time.
Optionally, those values can be reverted to the desired value. When doing so, parameter values are defined for each asset individually, and the assets and parameters must match the original schedule. For example, if 2 parameters were changed for 2 assets and a revert operation is requested, then the revert parameters must have 2 assets and 2 parameters for each asset.
The schedule must be created in the future and, if a revert operation is requested, the revert date must be after the scheduled date.
Upon creation, the current values of the parameters are stored in the original_resource_parameters field.
Permission Required: kelvin.permission.parameter.update.
createParametersSchedule:POST/api/v4/apps/parameters/schedules/create- Parameters:
- Return type:
ParametersScheduleCreate | dict[str, object] | Response
- classmethod list_parameters_schedule(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns a list of Parameter Schedules and its parameters. The Parameter Schedules can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ParametersScheduleList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ParametersScheduleList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ParametersScheduleList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.ParametersScheduleListPaginatedResponseCursor, responses.ParametersScheduleListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ParametersScheduleList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[responses.ParametersScheduleGet]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (ParametersScheduleList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[ParametersScheduleGet] | ParametersScheduleListPaginatedResponseCursor | ParametersScheduleListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.parameter.read.
listParametersSchedule:POST/api/v4/apps/parameters/schedules/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)sort_by (
Optional[Sequence[str]]) –Sequence[str]Sort the results by one or more enumerators.data (
Union[ParametersScheduleList,Mapping[str,object],None]) – requests.ParametersScheduleList, optional**kwargs (object) –
- Extra parameters for requests.ParametersScheduleList
list_parameters_schedule: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[ParametersScheduleGet] | ParametersScheduleListPaginatedResponseCursor | ParametersScheduleListPaginatedResponseLimits | dict[str, object] | Response
- classmethod apply_parameters_schedule(schedule_id, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Apply the scheduled or reverted parameters of a specific schedule.
- Overloads:
cls, schedule_id (str), data (Optional[Union[requests.ParametersScheduleApply, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, schedule_id (str), data (Optional[Union[requests.ParametersScheduleApply, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, schedule_id (str), data (Optional[Union[requests.ParametersScheduleApply, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
There are 2 types of the “apply” action:
schedule: Applies the scheduled parameters if the schedule is in the
scheduled state. - schedule-revert: Applies the revert parameters if the schedule is in the scheduled-revert state.
If the schedule is not in the supported state for the selected type, the API will return an error.
Errors encountered when calling this API will not affect the schedule state.
Permission Required: kelvin.permission.parameter.update.
applyParametersSchedule:POST/api/v4/apps/parameters/schedules/{schedule_id}/apply- Parameters:
schedule_id (
str) –str, optional The parameter schedule key id to be applied immediately.data (
Union[ParametersScheduleApply,Mapping[str,object],None]) – requests.ParametersScheduleApply, optional**kwargs (object) –
- Extra parameters for requests.ParametersScheduleApply
apply_parameters_schedule: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
- classmethod delete_parameters_schedule(schedule_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Delete a specific schedule.
- Overloads:
cls, schedule_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, schedule_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, schedule_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.parameter.update.
deleteParametersSchedule:POST/api/v4/apps/parameters/schedules/{schedule_id}/delete
- classmethod get_parameters_schedule(schedule_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Get a specific schedule.
- Overloads:
cls, schedule_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, schedule_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, schedule_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.ParametersScheduleGet
- Parameters:
- Return type:
ParametersScheduleGet | dict[str, object] | Response
Permission Required: kelvin.permission.parameter.read.
getParametersSchedule:GET/api/v4/apps/parameters/schedules/{schedule_id}/get
- classmethod get_app_version_parameters_unique_values(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Get App Version Parameters Unique Values
- Overloads:
cls, data (Optional[Union[requests.AppVersionParametersUniqueValuesGet, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.AppVersionParametersUniqueValuesGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.AppVersionParametersUniqueValuesGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.AppVersionParametersUniqueValuesGet
- Parameters:
- Return type:
AppVersionParametersUniqueValuesGet | dict[str, object] | Response
Permission Required: kelvin.permission.parameter.read.
getAppVersionParametersUniqueValues:POST/api/v4/apps/parameters/unique-values/get- Parameters:
data (
Union[AppVersionParametersUniqueValuesGet,Mapping[str,object],None]) – requests.AppVersionParametersUniqueValuesGet, optional**kwargs (object) –
- Extra parameters for requests.AppVersionParametersUniqueValuesGet
get_app_version_parameters_unique_values: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
AppVersionParametersUniqueValuesGet | dict[str, object] | Response
- classmethod list_app_version_parameter_values(sort_by=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
List App Version Parameter Values
- Overloads:
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppVersionParameterValuesList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppVersionParameterValuesList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppVersionParameterValuesList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.AppVersionParameterValuesListPaginatedResponseCursor, responses.AppVersionParameterValuesListPaginatedResponseLimits]
cls, sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.AppVersionParameterValuesList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.AppVersionParameter]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (AppVersionParameterValuesList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[AppVersionParameter] | AppVersionParameterValuesListPaginatedResponseCursor | AppVersionParameterValuesListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.parameter.read.
listAppVersionParameterValues:POST/api/v4/apps/parameters/values/list- Parameters:
sort_by (
Optional[Sequence[str]]) –Sequence[str]Sort the results by one or more enumerators.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[AppVersionParameterValuesList,Mapping[str,object],None]) – requests.AppVersionParameterValuesList, optional**kwargs (object) –
- Extra parameters for requests.AppVersionParameterValuesList
list_app_version_parameter_values: str
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[AppVersionParameter] | AppVersionParameterValuesListPaginatedResponseCursor | AppVersionParameterValuesListPaginatedResponseLimits | dict[str, object] | Response
- classmethod update_app_version_parameters_defaults(app_name, app_version, patch=None, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update App Version Parameters Defaults
- Overloads:
cls, app_name (str), app_version (str), patch (Optional[bool]), data (Optional[Union[requests.AppVersionParametersDefaultsUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, app_name (str), app_version (str), patch (Optional[bool]), data (Optional[Union[requests.AppVersionParametersDefaultsUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, app_name (str), app_version (str), patch (Optional[bool]), data (Optional[Union[requests.AppVersionParametersDefaultsUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.app.update.
updateAppVersionParametersDefaults:POST/api/v4/apps/{app_name}/v/{app_version}/parameters/defaults/update- Parameters:
patch (
Optional[bool]) –boolIf set to true, it only updates the parameters that are explicitly defined in the request.data (
Union[AppVersionParametersDefaultsUpdate,Mapping[str,object],None]) – requests.AppVersionParametersDefaultsUpdate, optional**kwargs (object) –
- Extra parameters for requests.AppVersionParametersDefaultsUpdate
update_app_version_parameters_defaults: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
- classmethod get_app_version_parameters_fallback_values(app_name, app_version, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Get App Version Parameters Fallback Values
- Overloads:
cls, app_name (str), app_version (str), data (Optional[Union[requests.AppVersionParametersFallbackValuesGet, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, app_name (str), app_version (str), data (Optional[Union[requests.AppVersionParametersFallbackValuesGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, app_name (str), app_version (str), data (Optional[Union[requests.AppVersionParametersFallbackValuesGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.AppVersionParametersFallbackValuesGet
- Parameters:
- Return type:
AppVersionParametersFallbackValuesGet | dict[str, object] | Response
Permission Required: kelvin.permission.parameter.read.
getAppVersionParametersFallbackValues:POST/api/v4/apps/{app_name}/v/{app_version}/parameters/fallback-values/get- Parameters:
data (
Union[AppVersionParametersFallbackValuesGet,Mapping[str,object],None]) – requests.AppVersionParametersFallbackValuesGet, optional**kwargs (object) –
- Extra parameters for requests.AppVersionParametersFallbackValuesGet
get_app_version_parameters_fallback_values: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
AppVersionParametersFallbackValuesGet | dict[str, object] | Response
- classmethod update_app_version_parameters(app_name, app_version, patch=None, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update App Version Parameters
- Overloads:
cls, app_name (str), app_version (str), patch (Optional[bool]), data (Optional[Union[requests.AppVersionParametersUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, app_name (str), app_version (str), patch (Optional[bool]), data (Optional[Union[requests.AppVersionParametersUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, app_name (str), app_version (str), patch (Optional[bool]), data (Optional[Union[requests.AppVersionParametersUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.parameter.update.
updateAppVersionParameters:POST/api/v4/apps/{app_name}/v/{app_version}/parameters/values/update- Parameters:
patch (
Optional[bool]) –boolIf set to true, it only updates the parameters that are explicitly defined in the request.data (
Union[AppVersionParametersUpdate,Mapping[str,object],None]) – requests.AppVersionParametersUpdate, optional**kwargs (object) –
- Extra parameters for requests.AppVersionParametersUpdate
update_app_version_parameters: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
AppWorkloads¶
Kelvin API Client.
- class kelvin.api.client.api.app_workloads.AppWorkloads(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod apply_workloads(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Initiate final deploy action for the downloaded Workloads. Only valid for Workloads that were previously deployed with the keys staged set to true and instantly_apply set to false.
- Overloads:
cls, data (Optional[Union[requests.WorkloadsApply, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.WorkloadsApply, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.WorkloadsApply, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.workload.update.
applyWorkloads:POST/api/v4/apps/workloads/apply- Parameters:
- Return type:
- classmethod update_workloads_bulk(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update Workloads Bulk
- Overloads:
cls, data (Optional[Union[requests.WorkloadsBulkUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.WorkloadsBulkUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.WorkloadsBulkUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.workload.update.
updateWorkloadsBulk:POST/api/v4/apps/workloads/bulk/update- Parameters:
- Return type:
- classmethod create_workload(stopped=None, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create Workload
- Overloads:
cls, stopped (Optional[bool]), data (Optional[Union[requests.WorkloadCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, stopped (Optional[bool]), data (Optional[Union[requests.WorkloadCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, stopped (Optional[bool]), data (Optional[Union[requests.WorkloadCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.WorkloadCreate
- Parameters:
- Return type:
WorkloadCreate | dict[str, object] | Response
Permission Required: kelvin.permission.workload.create.
createWorkload:POST/api/v4/apps/workloads/create- Parameters:
stopped (
Optional[bool]) –boolIf set to true, the workload created will be deployed in a stopped state.data (
Union[WorkloadCreate,Mapping[str,object],None]) – requests.WorkloadCreate, optional**kwargs (object) –
- Extra parameters for requests.WorkloadCreate
create_workload: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
WorkloadCreate | dict[str, object] | Response
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod delete_workloads(staged=None, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Delete Workload
- Overloads:
cls, staged (Optional[bool]), data (Optional[Union[requests.WorkloadsDelete, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, staged (Optional[bool]), data (Optional[Union[requests.WorkloadsDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, staged (Optional[bool]), data (Optional[Union[requests.WorkloadsDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.workload.delete.
deleteWorkloads:POST/api/v4/apps/workloads/delete- Parameters:
- Return type:
- classmethod enable_workloads(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Enable pending Workloads created with enabled=false.
- Overloads:
cls, data (Optional[Union[requests.WorkloadsEnable, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.WorkloadsEnable, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.WorkloadsEnable, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.workload.update.
enableWorkloads:POST/api/v4/apps/workloads/enable- Parameters:
- Return type:
- classmethod list_workloads(search=None, app_names=None, app_versions=None, app_types=None, cluster_names=None, node_names=None, workload_names=None, resources=None, staged=None, statuses=None, download_statuses=None, sort_by=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns workloads that match the provided filters.
- Overloads:
cls, search (Optional[Sequence[str]]), app_names (Optional[Sequence[str]]), app_versions (Optional[Sequence[str]]), app_types (Optional[Sequence[str]]), cluster_names (Optional[Sequence[str]]), node_names (Optional[Sequence[str]]), workload_names (Optional[Sequence[str]]), resources (Optional[str]), staged (Optional[bool]), statuses (Optional[Sequence[str]]), download_statuses (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, search (Optional[Sequence[str]]), app_names (Optional[Sequence[str]]), app_versions (Optional[Sequence[str]]), app_types (Optional[Sequence[str]]), cluster_names (Optional[Sequence[str]]), node_names (Optional[Sequence[str]]), workload_names (Optional[Sequence[str]]), resources (Optional[str]), staged (Optional[bool]), statuses (Optional[Sequence[str]]), download_statuses (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, search (Optional[Sequence[str]]), app_names (Optional[Sequence[str]]), app_versions (Optional[Sequence[str]]), app_types (Optional[Sequence[str]]), cluster_names (Optional[Sequence[str]]), node_names (Optional[Sequence[str]]), workload_names (Optional[Sequence[str]]), resources (Optional[str]), staged (Optional[bool]), statuses (Optional[Sequence[str]]), download_statuses (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.WorkloadsListPaginatedResponseCursor, responses.WorkloadsListPaginatedResponseLimits]
cls, search (Optional[Sequence[str]]), app_names (Optional[Sequence[str]]), app_versions (Optional[Sequence[str]]), app_types (Optional[Sequence[str]]), cluster_names (Optional[Sequence[str]]), node_names (Optional[Sequence[str]]), workload_names (Optional[Sequence[str]]), resources (Optional[str]), staged (Optional[bool]), statuses (Optional[Sequence[str]]), download_statuses (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.WorkloadSummary]
- Parameters:
resources (str | None)
staged (bool | None)
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[WorkloadSummary] | WorkloadsListPaginatedResponseCursor | WorkloadsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.workload.read.
listWorkloads:GET/api/v4/apps/workloads/list- Parameters:
search (
Optional[Sequence[str]]) –Sequence[str]Case-insensitive partial match against workload name, title, app_name, and cluster_name.app_names (
Optional[Sequence[str]]) –Sequence[str]Return only workloads whose app_name matches one or more values.app_versions (
Optional[Sequence[str]]) –Sequence[str]Return only workloads whose app_version matches one or more values.app_types (
Optional[Sequence[str]]) –Sequence[str]Return only workloads whose app_type matches one or more values.cluster_names (
Optional[Sequence[str]]) –Sequence[str]Return only workloads whose cluster_name matches one or more values.node_names (
Optional[Sequence[str]]) –Sequence[str]Return only workloads whose node_name matches one or more values.workload_names (
Optional[Sequence[str]]) –Sequence[str]Return only workloads whose name matches one or more values.resources (
Optional[str]) –strReturn only workloads associated with the provided resource KRN. Allowed namespace is asset.staged (
Optional[bool]) –boolIf true, return only workloads that have staged updates.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[WorkloadSummary] | WorkloadsListPaginatedResponseCursor | WorkloadsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod start_workloads(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Permission Required: kelvin.permission.workload.update.
- Overloads:
cls, data (Optional[Union[requests.WorkloadsStart, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.WorkloadsStart, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.WorkloadsStart, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
startWorkloads:POST/api/v4/apps/workloads/start- Parameters:
- Return type:
- classmethod stop_workloads(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Permission Required: kelvin.permission.workload.update.
- Overloads:
cls, data (Optional[Union[requests.WorkloadsStop, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.WorkloadsStop, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.WorkloadsStop, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
stopWorkloads:POST/api/v4/apps/workloads/stop- Parameters:
- Return type:
- classmethod download_workload(workload_name, address=None, _dry_run=False, _get_response=False, _client=None)[source]¶
Download the Workload package file for offline installation on the Edge System. The system automatically generates the file for download if the package is not already available.
- Overloads:
cls, workload_name (str), address (Optional[bool]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, workload_name (str), address (Optional[bool]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, workload_name (str), address (Optional[bool]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → str
- Parameters:
- Return type:
Permission Required: kelvin.permission.workload.read.
downloadWorkload:GET/api/v4/apps/workloads/{workload_name}/download- Parameters:
- Return type:
- classmethod get_workload(workload_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns details for a single workload identified by workload_name.
- Overloads:
cls, workload_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, workload_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, workload_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.WorkloadGet
- Parameters:
- Return type:
WorkloadGet | dict[str, object] | Response
Includes runtime configuration, deployment metadata, and lifecycle status.
Permission Required: kelvin.permission.workload.read.
getWorkload:GET/api/v4/apps/workloads/{workload_name}/get
- classmethod get_workload_logs(workload_name, tail_lines=None, since_time=None, _dry_run=False, _get_response=False, _client=None)[source]¶
Get Workload Logs
- Overloads:
cls, workload_name (str), tail_lines (Optional[int]), since_time (Optional[datetime]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, workload_name (str), tail_lines (Optional[int]), since_time (Optional[datetime]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, workload_name (str), tail_lines (Optional[int]), since_time (Optional[datetime]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.WorkloadLogsGet
- Parameters:
- Return type:
WorkloadLogsGet | dict[str, object] | Response
Permission Required: kelvin.permission.workload.read.
getWorkloadLogs:GET/api/v4/apps/workloads/{workload_name}/logs/get- Parameters:
workload_name (
str) –str, optional Unique identifier name of the Workload.tail_lines (
Optional[int]) –intSpecify the number of the most recent log lines to retrieve, counting backwards from the latest entry.since_time (
Optional[datetime]) –datetimeUTC time of the starting point for log retrieval, formatted in RFC 3339._dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
WorkloadLogsGet | dict[str, object] | Response
- classmethod update_workload(workload_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update Workload
- Overloads:
cls, workload_name (str), data (Optional[Union[requests.WorkloadUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, workload_name (str), data (Optional[Union[requests.WorkloadUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, workload_name (str), data (Optional[Union[requests.WorkloadUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.WorkloadUpdate
- Parameters:
- Return type:
WorkloadUpdate | dict[str, object] | Response
Update the modifiable components of a Workload. The following keys can be updated individually. If a key is not specified, its existing value will remain unchanged. If a key is specified, it will completely overwrite the current value for that key and its nested fields.
title
app_version
cluster_name
node_name
deployment_type
runtime.resources
runtime.configuration
system
api_permissions
The deployment_type field controls how the update is applied rather than being a stored property of the workload. When set to a staged type, the update creates a staged version instead of applying changes directly.
Deployment transitions from enabled=false to active execution are handled through /apps/workloads/enable.
Permission Required: kelvin.permission.workload.update.
updateWorkload:POST/api/v4/apps/workloads/{workload_name}/patch- Parameters:
- Return type:
WorkloadUpdate | dict[str, object] | Response
- classmethod add_workload_resources(workload_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Add WorkloadResources
- Overloads:
cls, workload_name (str), data (Optional[Union[requests.WorkloadResourcesAdd, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, workload_name (str), data (Optional[Union[requests.WorkloadResourcesAdd, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, workload_name (str), data (Optional[Union[requests.WorkloadResourcesAdd, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.WorkloadResourcesAdd
- Parameters:
- Return type:
WorkloadResourcesAdd | dict[str, object] | Response
Permission Required: kelvin.permission.workload.update.
addWorkloadResources:POST/api/v4/apps/workloads/{workload_name}/resources/add- Parameters:
- Return type:
WorkloadResourcesAdd | dict[str, object] | Response
- classmethod remove_workload_resources(workload_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Remove WorkloadResources
- Overloads:
cls, workload_name (str), data (Optional[Union[requests.WorkloadResourcesRemove, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, workload_name (str), data (Optional[Union[requests.WorkloadResourcesRemove, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, workload_name (str), data (Optional[Union[requests.WorkloadResourcesRemove, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.workload.update.
removeWorkloadResources:POST/api/v4/apps/workloads/{workload_name}/resources/remove- Parameters:
- Return type:
Asset¶
Kelvin API Client.
- class kelvin.api.client.api.asset.Asset(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod create_asset_bulk(dry_run=None, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create new Assets.
- Overloads:
cls, dry_run (Optional[bool]), data (Optional[Union[requests.AssetBulkCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, dry_run (Optional[bool]), data (Optional[Union[requests.AssetBulkCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, dry_run (Optional[bool]), data (Optional[Union[requests.AssetBulkCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → str
- Parameters:
- Return type:
Permission Required: kelvin.permission.asset.create.
createAssetBulk:POST/api/v4/assets/bulk/create- Parameters:
dry_run (
Optional[bool]) –boolExecutes a simulated run when set to true, providing feedback without altering server data.data (
Union[AssetBulkCreate,Mapping[str,object],None]) – requests.AssetBulkCreate, optional**kwargs (object) –
- Extra parameters for requests.AssetBulkCreate
create_asset_bulk: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
- classmethod delete_asset_bulk(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Delete a list of existing Assets.
- Overloads:
cls, data (Optional[Union[requests.AssetBulkDelete, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.AssetBulkDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.AssetBulkDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permanently delete a list of existing Kelvin Assets. This cannot be undone once the API request has been submitted.
Permission Required: kelvin.permission.asset.delete.
deleteAssetBulk:POST/api/v4/assets/bulk/delete- Parameters:
- Return type:
- classmethod update_asset_bulk(dry_run=None, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update a list of existing Assets.
- Overloads:
cls, dry_run (Optional[bool]), data (Optional[Union[requests.AssetBulkUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, dry_run (Optional[bool]), data (Optional[Union[requests.AssetBulkUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, dry_run (Optional[bool]), data (Optional[Union[requests.AssetBulkUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.asset.update.
updateAssetBulk:POST/api/v4/assets/bulk/update- Parameters:
dry_run (
Optional[bool]) –boolExecutes a simulated run when set to true, providing feedback without altering server data.data (
Union[AssetBulkUpdate,Mapping[str,object],None]) – requests.AssetBulkUpdate, optional**kwargs (object) –
- Extra parameters for requests.AssetBulkUpdate
update_asset_bulk: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
- classmethod create_asset(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Asset.
- Overloads:
cls, data (Optional[Union[requests.AssetCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.AssetCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.AssetCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.AssetCreate
- Parameters:
- Return type:
AssetCreate | dict[str, object] | Response | None
Permission Required: kelvin.permission.asset.create.
createAsset:POST/api/v4/assets/create- Parameters:
- Return type:
AssetCreate | dict[str, object] | Response | None
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod list_assets(search=None, names=None, asset_type_name=None, status_state=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Assets and its parameters. The Assets can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, search (Optional[Sequence[str]]), names (Optional[Sequence[str]]), asset_type_name (Optional[Sequence[str]]), status_state (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, search (Optional[Sequence[str]]), names (Optional[Sequence[str]]), asset_type_name (Optional[Sequence[str]]), status_state (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, search (Optional[Sequence[str]]), names (Optional[Sequence[str]]), asset_type_name (Optional[Sequence[str]]), status_state (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.AssetsListPaginatedResponseCursor, responses.AssetsListPaginatedResponseLimits]
cls, search (Optional[Sequence[str]]), names (Optional[Sequence[str]]), asset_type_name (Optional[Sequence[str]]), status_state (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.Asset]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[Asset] | AssetsListPaginatedResponseCursor | AssetsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.asset.read.
listAssets:GET/api/v4/assets/list- Parameters:
search (
Optional[Sequence[str]]) –Sequence[str]Search and filter on the list based on the keys title (Display Name) or name. All values in array will be filtered as OR. The search is case insensitive and will find partial matches as well.names (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key name. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters.asset_type_name (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key asset_type_name. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters.status_state (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key [‘status’][‘state’]. Multiple statuses can be given and will be filtered as OR. The allowed values are: online, offline, unknown.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[Asset] | AssetsListPaginatedResponseCursor | AssetsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod list_assets_advanced(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns a list of Assets and its parameters. The Assets can be filtered and sorted on the server before being returned. Advanced filter options available for more granular return list.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.AssetsAdvancedList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.AssetsAdvancedList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.AssetsAdvancedList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.AssetsAdvancedListPaginatedResponseCursor, responses.AssetsAdvancedListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.AssetsAdvancedList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.Asset]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (AssetsAdvancedList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[Asset] | AssetsAdvancedListPaginatedResponseCursor | AssetsAdvancedListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.asset.read.
listAssetsAdvanced:POST/api/v4/assets/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[AssetsAdvancedList,Mapping[str,object],None]) – requests.AssetsAdvancedList, optional**kwargs (object) –
- Extra parameters for requests.AssetsAdvancedList
list_assets_advanced: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[Asset] | AssetsAdvancedListPaginatedResponseCursor | AssetsAdvancedListPaginatedResponseLimits | dict[str, object] | Response
- classmethod get_asset_status_count(_dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the total count of Assets grouped by the parameter status.
- Overloads:
cls, _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.AssetStatusCountGet
- Parameters:
- Return type:
AssetStatusCountGet | dict[str, object] | Response
Permission Required: kelvin.permission.asset.read.
getAssetStatusCount:GET/api/v4/assets/status/count/get
- classmethod get_asset_status_current(_dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of all Assets and their current status (state).
- Overloads:
cls, _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.AssetStatusCurrentGet
- Parameters:
- Return type:
AssetStatusCurrentGet | dict[str, object] | Response
Permission Required: kelvin.permission.asset.read.
getAssetStatusCurrent:GET/api/v4/assets/status/current/get
- classmethod create_asset_type(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Asset Type.
- Overloads:
cls, data (Optional[Union[requests.AssetTypeCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.AssetTypeCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.AssetTypeCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.AssetTypeCreate
- Parameters:
- Return type:
AssetTypeCreate | dict[str, object] | Response
Permission Required: kelvin.permission.asset_type.create.
createAssetType:POST/api/v4/assets/types/create- Parameters:
- Return type:
AssetTypeCreate | dict[str, object] | Response
- classmethod delete_asset_type_bulk(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Delete a list of existing Asset Types.
- Overloads:
cls, data (Optional[Union[requests.AssetTypeBulkDelete, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.AssetTypeBulkDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.AssetTypeBulkDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permanently delete a list of existing Kelvin Asset Types. This cannot be undone once the API request has been submitted.
This command can not delete Kelvin Asset Types that are currently linked to any Kelvin Assets and will return an error 409.
Permission Required: kelvin.permission.asset_type.delete.
deleteAssetTypeBulk:POST/api/v4/assets/types/delete- Parameters:
- Return type:
- classmethod list_asset_types(search=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Asset Types and its parameters. The Asset Types can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.AssetTypesListPaginatedResponseCursor, responses.AssetTypesListPaginatedResponseLimits]
cls, search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.AssetType]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[AssetType] | AssetTypesListPaginatedResponseCursor | AssetTypesListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.asset_type.read.
listAssetTypes:GET/api/v4/assets/types/list- Parameters:
search (
Optional[Sequence[str]]) –Sequence[str]Search and filter on the list based on the keys title (Display Name) or name. The search is case insensitive and will find partial matches as well.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[AssetType] | AssetTypesListPaginatedResponseCursor | AssetTypesListPaginatedResponseLimits | dict[str, object] | Response
- classmethod list_asset_types_advanced(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns a list of Asset Types and its parameters. The Asset Types can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.AssetTypesAdvancedList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.AssetTypesAdvancedList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.AssetTypesAdvancedList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.AssetTypesAdvancedListPaginatedResponseCursor, responses.AssetTypesAdvancedListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.AssetTypesAdvancedList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.AssetType]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (AssetTypesAdvancedList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[AssetType] | AssetTypesAdvancedListPaginatedResponseCursor | AssetTypesAdvancedListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.asset_type.read.
listAssetTypesAdvanced:POST/api/v4/assets/types/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[AssetTypesAdvancedList,Mapping[str,object],None]) – requests.AssetTypesAdvancedList, optional**kwargs (object) –
- Extra parameters for requests.AssetTypesAdvancedList
list_asset_types_advanced: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[AssetType] | AssetTypesAdvancedListPaginatedResponseCursor | AssetTypesAdvancedListPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_asset_type(asset_type_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Asset Type. An error will be returned if there are any current links to an Asset. This cannot be undone once the API request has been submitted.
- Overloads:
cls, asset_type_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, asset_type_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, asset_type_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.asset_type.delete.
deleteAssetType:POST/api/v4/assets/types/{asset_type_name}/delete
- classmethod get_asset_type(asset_type_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieves the parameters of an Asset Type. Permission Required: kelvin.permission.asset_type.read.
- Overloads:
cls, asset_type_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, asset_type_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, asset_type_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.AssetTypeGet
- Parameters:
- Return type:
AssetTypeGet | dict[str, object] | Response
getAssetType:GET/api/v4/assets/types/{asset_type_name}/get
- classmethod update_asset_type(asset_type_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Updates an existing Asset Type with any new values passed through the body parameters. All body parameters are optional and if not provided will remain unchanged. Only the unique identifier name can not be changed.
- Overloads:
cls, asset_type_name (str), data (Optional[Union[requests.AssetTypeUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, asset_type_name (str), data (Optional[Union[requests.AssetTypeUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, asset_type_name (str), data (Optional[Union[requests.AssetTypeUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.AssetTypeUpdate
- Parameters:
- Return type:
AssetTypeUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.asset_type.update.
updateAssetType:POST/api/v4/assets/types/{asset_type_name}/update- Parameters:
asset_type_name (
str) –str, optional Asset Type key name to update. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[AssetTypeUpdate,Mapping[str,object],None]) – requests.AssetTypeUpdate, optional**kwargs (object) –
- Extra parameters for requests.AssetTypeUpdate
update_asset_type: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
AssetTypeUpdate | dict[str, object] | Response
- classmethod delete_asset(asset_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Asset. This cannot be undone once the API request has been submitted.
- Overloads:
cls, asset_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, asset_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, asset_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
The data in the Asset / Data Stream pairs is not deleted and can be recovered if you create the same Asset name again.
Permission Required: kelvin.permission.asset.delete.
deleteAsset:POST/api/v4/assets/{asset_name}/delete
- classmethod get_asset(asset_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters of an Asset.
- Overloads:
cls, asset_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, asset_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, asset_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.AssetGet
- Parameters:
- Return type:
Permission Required: kelvin.permission.asset.read.
getAsset:GET/api/v4/assets/{asset_name}/get
- classmethod update_asset(asset_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update an existing Asset with any new values passed through the body parameters. The minimum required in the body parameters is title. If this body parameter does not need to be changed, it should still have the original Display Name (title`) given. Any other body parameters that are not required and not provided will remain unchanged.
- Overloads:
cls, asset_name (str), data (Optional[Union[requests.AssetUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, asset_name (str), data (Optional[Union[requests.AssetUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, asset_name (str), data (Optional[Union[requests.AssetUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.AssetUpdate
- Parameters:
- Return type:
AssetUpdate | dict[str, object] | Response | None
Permission Required: kelvin.permission.asset.update.
updateAsset:POST/api/v4/assets/{asset_name}/update- Parameters:
asset_name (
str) –str, optional Asset key name to get. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[AssetUpdate,Mapping[str,object],None]) – requests.AssetUpdate, optional**kwargs (object) –
- Extra parameters for requests.AssetUpdate
update_asset: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
AssetUpdate | dict[str, object] | Response | None
AssetInsights¶
Kelvin API Client.
- class kelvin.api.client.api.asset_insights.AssetInsights(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod get_asset_insights(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Migrated Asset Insights API.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.AssetInsightsGet, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.AssetInsightsGet, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.AssetInsightsGet, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.AssetInsightsGetPaginatedResponseCursor, responses.AssetInsightsGetPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.AssetInsightsGet, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[responses.AssetInsightsItem]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (AssetInsightsGet | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[AssetInsightsItem] | AssetInsightsGetPaginatedResponseCursor | AssetInsightsGetPaginatedResponseLimits | dict[str, object] | Response
Advanced Asset Insights collates Asset data and optional custom defined fields and returns a structured array of Asset related objects. Ideal for generating UI lists, it accommodates search, filters, and optional enrichment data on Data Streams, Parameters, Control Changes, Recommendations, Data Tags, and more.
Permission Required: kelvin.permission.asset_insights.read.
getAssetInsights:POST/api/v4/asset-insights/get- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[AssetInsightsGet,Mapping[str,object],None]) – requests.AssetInsightsGet, optional**kwargs (object) –
- Extra parameters for requests.AssetInsightsGet
get_asset_insights: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[AssetInsightsItem] | AssetInsightsGetPaginatedResponseCursor | AssetInsightsGetPaginatedResponseLimits | dict[str, object] | Response
- classmethod get_asset_insights_v1(page_size=10000, page=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Deprecated legacy Asset Insights API.
- Overloads:
cls, page_size (Optional[int]), page (Optional[int]), data (Optional[Union[requests.AssetInsightsV1Get, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, page_size (Optional[int]), page (Optional[int]), data (Optional[Union[requests.AssetInsightsV1Get, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, page_size (Optional[int]), page (Optional[int]), data (Optional[Union[requests.AssetInsightsV1Get, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.AssetInsightsV1GetPaginated
cls, page_size (Optional[int]), page (Optional[int]), data (Optional[Union[requests.AssetInsightsV1Get, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[responses.AssetInsightsV1Item]
- Parameters:
- Return type:
KList[AssetInsightsV1Item] | AssetInsightsV1GetPaginated | dict[str, object] | Response
This v1 endpoint is kept for backwards compatibility. Use /asset-insights/get for the migrated Asset Insights API.
Permission Required: kelvin.permission.asset_insights.read.
getAssetInsightsV1:POST/api/v4/asset-insights/v1/get- Parameters:
page_size (
Optional[int]) –intNumber of Asset objects to be returned.page (
Optional[int]) –intReturn the list of Asset objects on requested page using the page_size as a page calculation reference.data (
Union[AssetInsightsV1Get,Mapping[str,object],None]) – requests.AssetInsightsV1Get, optional**kwargs (object) –
- Extra parameters for requests.AssetInsightsV1Get
get_asset_insights_v1: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[AssetInsightsV1Item] | AssetInsightsV1GetPaginated | dict[str, object] | Response
ControlChange¶
Kelvin API Client.
- class kelvin.api.client.api.control_change.ControlChange(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod get_control_change_clustering(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Retrieve the total count of Control Changes matching an array of resources and filter options between two dates grouped by the parameter time_bucket. Will also return a list of all the Control Change `id`s counted.
- Overloads:
cls, data (Optional[Union[requests.ControlChangeClusteringGet, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.ControlChangeClusteringGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.ControlChangeClusteringGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[responses.ControlChangeClustering]
- Parameters:
- Return type:
KList[ControlChangeClustering] | dict[str, object] | Response
Permission Required: kelvin.permission.control_change.read.
getControlChangeClustering:POST/api/v4/control-changes/clustering/get- Parameters:
data (
Union[ControlChangeClusteringGet,Mapping[str,object],None]) – requests.ControlChangeClusteringGet, optional**kwargs (object) –
- Extra parameters for requests.ControlChangeClusteringGet
get_control_change_clustering: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[ControlChangeClustering] | dict[str, object] | Response
- classmethod create_control_change(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Send a new value to be written to an Asset / Data Stream pair. The Control Change Manager will automatically find which Cluster and Bridge to communicate the change to.
- Overloads:
cls, data (Optional[Union[requests.ControlChangeCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.ControlChangeCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.ControlChangeCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.ControlChangeCreate
- Parameters:
- Return type:
ControlChangeCreate | dict[str, object] | Response
Permission Required: kelvin.permission.control_change.create.
createControlChange:POST/api/v4/control-changes/create- Parameters:
- Return type:
ControlChangeCreate | dict[str, object] | Response
- fields = None¶
- classmethod get_control_change_last(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns the latest Control Change for each resource that matches the request filters.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangeLastGet, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangeLastGet, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangeLastGet, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.ControlChangeLastGetPaginatedResponseCursor, responses.ControlChangeLastGetPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangeLastGet, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[responses.ControlChangeGet]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (ControlChangeLastGet | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[ControlChangeGet] | ControlChangeLastGetPaginatedResponseCursor | ControlChangeLastGetPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.control_change.read.
getControlChangeLast:POST/api/v4/control-changes/last/get- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[ControlChangeLastGet,Mapping[str,object],None]) – requests.ControlChangeLastGet, optional**kwargs (object) –
- Extra parameters for requests.ControlChangeLastGet
get_control_change_last: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[ControlChangeGet] | ControlChangeLastGetPaginatedResponseCursor | ControlChangeLastGetPaginatedResponseLimits | dict[str, object] | Response
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod list_control_changes(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns Control Changes that match the request filters.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangesList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangesList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangesList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.ControlChangesListPaginatedResponseCursor, responses.ControlChangesListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangesList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[responses.ControlChangeGet]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (ControlChangesList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[ControlChangeGet] | ControlChangesListPaginatedResponseCursor | ControlChangesListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.control_change.read.
listControlChanges:POST/api/v4/control-changes/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[ControlChangesList,Mapping[str,object],None]) – requests.ControlChangesList, optional**kwargs (object) –
- Extra parameters for requests.ControlChangesList
list_control_changes: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[ControlChangeGet] | ControlChangesListPaginatedResponseCursor | ControlChangesListPaginatedResponseLimits | dict[str, object] | Response
- classmethod create_control_change_policy(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Control Change Policy.
- Overloads:
cls, data (Optional[Union[requests.ControlChangePolicyCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.ControlChangePolicyCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.ControlChangePolicyCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.ControlChangePolicyCreate
- Parameters:
- Return type:
ControlChangePolicyCreate | dict[str, object] | Response
A Control Change Policy defines default execution behavior and completion criteria for Control Changes on a resource.
Policy fields override platform defaults. If a field is also set in the Control Change request, the Control Change value takes precedence. Resolution is per field: if a field is unset in both the Control Change request and the policy, it falls back to the platform default.
expiration_date is required in Control Change requests and is not part of policy configuration. Guardrails are configured separately and are not part of policy configuration.
Validation rules: - The policy resource and all policy.resource_value_check[].resource
values must belong to the same asset.
All referenced datastreams must share the same data type.
Permission Required: kelvin.permission.control_change.create.
createControlChangePolicy:POST/api/v4/control-changes/policies/create- Parameters:
data (
Union[ControlChangePolicyCreate,Mapping[str,object],None]) – requests.ControlChangePolicyCreate, optional**kwargs (object) –
- Extra parameters for requests.ControlChangePolicyCreate
create_control_change_policy: str
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
ControlChangePolicyCreate | dict[str, object] | Response
- classmethod list_control_change_policies(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, search=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
List Control Change Policies based on the provided filters.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangePoliciesList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangePoliciesList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangePoliciesList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.ControlChangePoliciesListPaginatedResponseCursor, responses.ControlChangePoliciesListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangePoliciesList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.ControlChangePolicy]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
data (ControlChangePoliciesList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[ControlChangePolicy] | ControlChangePoliciesListPaginatedResponseCursor | ControlChangePoliciesListPaginatedResponseLimits | dict[str, object] | Response
Returned items include only fields explicitly configured in each resource policy. Fields omitted in policy configuration inherit at runtime based on per-field precedence: Control Change request value, then resource policy, then platform defaults.
Permission Required: kelvin.permission.control_change.read.
listControlChangePolicies:POST/api/v4/control-changes/policies/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)search (
Optional[Sequence[str]]) –Sequence[str]Search for Control Change Policies with resources matching the search term.data (
Union[ControlChangePoliciesList,Mapping[str,object],None]) – requests.ControlChangePoliciesList, optional**kwargs (object) –
- Extra parameters for requests.ControlChangePoliciesList
list_control_change_policies: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[ControlChangePolicy] | ControlChangePoliciesListPaginatedResponseCursor | ControlChangePoliciesListPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_control_change_policy(resource, _dry_run=False, _get_response=False, _client=None)[source]¶
Delete a Control Change Policy by resource.
- Overloads:
cls, resource (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, resource (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, resource (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.control_change.delete.
deleteControlChangePolicy:POST/api/v4/control-changes/policies/{resource}/delete
- classmethod get_control_change_policy(resource, _dry_run=False, _get_response=False, _client=None)[source]¶
Get a Control Change Policy by resource.
- Overloads:
cls, resource (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, resource (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, resource (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.ControlChangePolicyGet
- Parameters:
- Return type:
ControlChangePolicyGet | dict[str, object] | Response
The response returns only fields explicitly configured in the resource policy. Fields omitted in policy configuration inherit at runtime based on per-field precedence: Control Change request value, then resource policy, then platform defaults.
expiration_date and guardrails are not part of policy configuration.
Permission Required: kelvin.permission.control_change.read.
getControlChangePolicy:GET/api/v4/control-changes/policies/{resource}/get
- classmethod update_control_change_policy(resource, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Replace the full Control Change Policy configuration for the resource. Any policy fields omitted from this request are unset in policy configuration and therefore inherit at runtime, except resource_value_check, which is cleared when omitted.
- Overloads:
cls, resource (str), data (Optional[Union[requests.ControlChangePolicyUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, resource (str), data (Optional[Union[requests.ControlChangePolicyUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, resource (str), data (Optional[Union[requests.ControlChangePolicyUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.ControlChangePolicyUpdate
- Parameters:
- Return type:
ControlChangePolicyUpdate | dict[str, object] | Response
Policy fields override platform defaults. If a field is also set in the Control Change request, the Control Change value takes precedence. Resolution is per field: if a field is unset in both the Control Change request and the policy, it falls back to the platform default.
expiration_date is required in Control Change requests and is not part of policy configuration. Guardrails are configured separately and are not part of policy configuration.
Validation rules: - The path resource and all policy.resource_value_check[].resource
values must belong to the same asset.
All referenced datastreams must share the same data type.
Permission Required: kelvin.permission.control_change.update.
updateControlChangePolicy:POST/api/v4/control-changes/policies/{resource}/update- Parameters:
resource (
str) –str, optional Asset/Data Stream pair to update the associated Control Change Policy.data (
Union[ControlChangePolicyUpdate,Mapping[str,object],None]) – requests.ControlChangePolicyUpdate, optional**kwargs (object) –
- Extra parameters for requests.ControlChangePolicyUpdate
update_control_change_policy: str
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
ControlChangePolicyUpdate | dict[str, object] | Response
- classmethod get_control_change_range(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns Control Changes created within a specified time range that match the request filters.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangeRangeGet, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangeRangeGet, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangeRangeGet, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.ControlChangeRangeGetPaginatedResponseCursor, responses.ControlChangeRangeGetPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ControlChangeRangeGet, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[responses.ControlChangeGet]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (ControlChangeRangeGet | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[ControlChangeGet] | ControlChangeRangeGetPaginatedResponseCursor | ControlChangeRangeGetPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.control_change.read.
getControlChangeRange:POST/api/v4/control-changes/range/get- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[ControlChangeRangeGet,Mapping[str,object],None]) – requests.ControlChangeRangeGet, optional**kwargs (object) –
- Extra parameters for requests.ControlChangeRangeGet
get_control_change_range: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[ControlChangeGet] | ControlChangeRangeGetPaginatedResponseCursor | ControlChangeRangeGetPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_control_change(control_change_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Deletes a control change
- Overloads:
cls, control_change_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, control_change_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, control_change_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.control_change.delete.
deleteControlChange:POST/api/v4/control-changes/{control_change_id}/delete
- classmethod get_control_change(control_change_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a Control Change by control_change_id, including its current state and status history.
- Overloads:
cls, control_change_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, control_change_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, control_change_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.ControlChangeGet
- Parameters:
- Return type:
ControlChangeGet | dict[str, object] | Response
Permission Required: kelvin.permission.control_change.read.
getControlChange:GET/api/v4/control-changes/{control_change_id}/get
CustomActions¶
Kelvin API Client.
- class kelvin.api.client.api.custom_actions.CustomActions(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod create_custom_action(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create Custom Action.
- Overloads:
cls, data (Optional[Union[requests.CustomActionCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.CustomActionCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.CustomActionCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.CustomActionCreate
- Parameters:
- Return type:
CustomActionCreate | dict[str, object] | Response
The platform validates payload against the schema bound to type before creating the Custom Action. Types without a schema accept any object payload.
Permission Required: kelvin.permission.custom-actions.create.
createCustomAction:POST/api/v4/custom-actions/create- Parameters:
- Return type:
CustomActionCreate | dict[str, object] | Response
- classmethod list_custom_actions(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns Custom Actions that match the provided filters.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.CustomActionsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.CustomActionsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.CustomActionsList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.CustomActionsListPaginatedResponseCursor, responses.CustomActionsListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.CustomActionsList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.CustomAction]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (CustomActionsList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[CustomAction] | CustomActionsListPaginatedResponseCursor | CustomActionsListPaginatedResponseLimits | dict[str, object] | Response
Use query parameters for pagination and sorting, and the request body for field-based filtering.
Permission Required: kelvin.permission.custom-actions.read.
listCustomActions:POST/api/v4/custom-actions/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[CustomActionsList,Mapping[str,object],None]) – requests.CustomActionsList, optional**kwargs (object) –
- Extra parameters for requests.CustomActionsList
list_custom_actions: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[CustomAction] | CustomActionsListPaginatedResponseCursor | CustomActionsListPaginatedResponseLimits | dict[str, object] | Response
- fields = None¶
- classmethod get_custom_actions_sync(cluster, _dry_run=False, _get_response=False, _client=None)[source]¶
Get Custom Actions (Sync).
- Overloads:
cls, cluster (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, cluster (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, cluster (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.CustomActionsSyncGet
- Parameters:
- Return type:
CustomActionsSyncGet | dict[str, object] | Response
Permission Required: kelvin.permission.custom-actions.read.
getCustomActionsSync:GET/api/v4/custom-actions/sync/{cluster}/get
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod list_custom_actions_sync(cluster, sort_by=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Custom Action objects for the specified cluster. The list can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, cluster (str), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, cluster (str), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, cluster (str), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.CustomActionsSyncListPaginatedResponseCursor, responses.CustomActionsSyncListPaginatedResponseLimits]
cls, cluster (str), sort_by (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.CustomAction]
- Parameters:
cluster (str)
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[CustomAction] | CustomActionsSyncListPaginatedResponseCursor | CustomActionsSyncListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.custom-actions.read.
listCustomActionsSync:GET/api/v4/custom-actions/sync/{cluster}/pending/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[CustomAction] | CustomActionsSyncListPaginatedResponseCursor | CustomActionsSyncListPaginatedResponseLimits | dict[str, object] | Response
- classmethod create_custom_actions_type(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Custom Action Type.
- Overloads:
cls, data (Optional[Union[requests.CustomActionsTypeCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.CustomActionsTypeCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.CustomActionsTypeCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.CustomActionsTypeCreate
- Parameters:
- Return type:
CustomActionsTypeCreate | dict[str, object] | Response
schema, when provided, must be a valid JSON Schema for the Custom Action payload object. The platform binds the schema to the new type and uses it to validate payloads on /custom-actions/create. To change the payload contract, create a new Custom Action type.
Permission Required: kelvin.permission.custom-actions.create.
createCustomActionsType:POST/api/v4/custom-actions/types/create- Parameters:
- Return type:
CustomActionsTypeCreate | dict[str, object] | Response
- classmethod list_custom_actions_types(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, search=None, app_names=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Custom Action Type objects. The list can be optionally filtered and sorted on the server before being returned. Permission Required: kelvin.permission.custom-actions.read.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), app_names (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), app_names (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), app_names (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.CustomActionsTypesListPaginatedCursor, responses.CustomActionsTypesListPaginatedLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), app_names (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.CustomActionType]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[CustomActionType] | CustomActionsTypesListPaginatedCursor | CustomActionsTypesListPaginatedLimits | dict[str, object] | Response
listCustomActionsTypes:GET/api/v4/custom-actions/types/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)search (
Optional[Sequence[str]]) –Sequence[str]Search and filter on the list based on the key name and title. The search is case insensitive and will find partial matches as well.app_names (
Optional[Sequence[str]]) –Sequence[str]Filter the list of custom action types to include only those that are currently in use by the specified applications.fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[CustomActionType] | CustomActionsTypesListPaginatedCursor | CustomActionsTypesListPaginatedLimits | dict[str, object] | Response
- classmethod delete_custom_action_type(name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Custom Action Type. An error will be returned if there are any current Custom Action linked to the Custom Action Type. This cannot be undone once the API request has been submitted.
- Overloads:
cls, name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.custom-actions.delete.
deleteCustomActionType:POST/api/v4/custom-actions/types/{name}/delete
- classmethod get_custom_actions_type(name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieves the parameters of a Custom Action Type.
- Overloads:
cls, name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.CustomActionsTypeGet
- Parameters:
- Return type:
CustomActionsTypeGet | dict[str, object] | Response
Permission Required: kelvin.permission.custom-actions.read.
getCustomActionsType:GET/api/v4/custom-actions/types/{name}/get
- classmethod update_custom_actions_type(name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Updates an existing Custom Action Type with any new values passed through the body parameters. All body parameters are optional and if not provided will remain unchanged. Only the unique identifier name can not be changed.
- Overloads:
cls, name (str), data (Optional[Union[requests.CustomActionsTypeUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, name (str), data (Optional[Union[requests.CustomActionsTypeUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, name (str), data (Optional[Union[requests.CustomActionsTypeUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.CustomActionsTypeUpdate
- Parameters:
- Return type:
CustomActionsTypeUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.custom-actions.update.
updateCustomActionsType:POST/api/v4/custom-actions/types/{name}/update- Parameters:
name (
str) –str, optional Custom Action Type key name to update. Case sensitive name.data (
Union[CustomActionsTypeUpdate,Mapping[str,object],None]) – requests.CustomActionsTypeUpdate, optional**kwargs (object) –
- Extra parameters for requests.CustomActionsTypeUpdate
update_custom_actions_type: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
CustomActionsTypeUpdate | dict[str, object] | Response
- classmethod delete_custom_action(action_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Custom Action.
- Overloads:
cls, action_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, action_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, action_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.custom-actions.delete.
deleteCustomAction:POST/api/v4/custom-actions/{action_id}/delete
- classmethod get_custom_action(action_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a single Custom Action by action_id.
- Overloads:
cls, action_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, action_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, action_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.CustomActionGet
- Parameters:
- Return type:
CustomActionGet | dict[str, object] | Response
Includes current lifecycle state, transition history, and payload details.
Permission Required: kelvin.permission.custom-actions.read.
getCustomAction:GET/api/v4/custom-actions/{action_id}/get
- classmethod update_custom_action(action_id, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update Custom Action
- Overloads:
cls, action_id (str), data (Optional[Union[requests.CustomActionUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, action_id (str), data (Optional[Union[requests.CustomActionUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, action_id (str), data (Optional[Union[requests.CustomActionUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.CustomActionUpdate
- Parameters:
- Return type:
CustomActionUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.custom-actions.update.
updateCustomAction:POST/api/v4/custom-actions/{action_id}/update- Parameters:
- Return type:
CustomActionUpdate | dict[str, object] | Response
DataQuality¶
Kelvin API Client.
- class kelvin.api.client.api.data_quality.DataQuality(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod delete_bulk_data_quality(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Deletes multiple data quality configurations.
- Overloads:
cls, data (Optional[Union[requests.BulkDataQualityDelete, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.BulkDataQualityDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.BulkDataQualityDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.data-quality.delete.
deleteBulkDataQuality:POST/api/v4/data-quality/configuration/bulk/delete- Parameters:
- Return type:
- classmethod upsert_bulk_data_quality(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create or update multiple data quality configurations at once.
- Overloads:
cls, data (Optional[Union[requests.BulkDataQualityUpsert, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.BulkDataQualityUpsert, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.BulkDataQualityUpsert, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.data-quality.create.
upsertBulkDataQuality:POST/api/v4/data-quality/configuration/bulk/upsert- Parameters:
- Return type:
- classmethod create_data_quality(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Data Quality Configuration.
- Overloads:
cls, data (Optional[Union[requests.DataQualityCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.DataQualityCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.DataQualityCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataQualityCreate
- Parameters:
- Return type:
DataQualityCreate | dict[str, object] | Response
A data Quality is a configuration that defines all the algorithms being used to monitor a resource data quality.
All configurations are optional. There are no validations done regarding each configuration content.
Permission Required: kelvin.permission.data-quality.create.
createDataQuality:POST/api/v4/data-quality/configuration/create- Parameters:
- Return type:
DataQualityCreate | dict[str, object] | Response
- fields = None¶
- classmethod list_data_quality(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, search=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
List data quality configurations based on the provided filters.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataQualityList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataQualityList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataQualityList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.DataQualityListPaginatedResponseCursor, responses.DataQualityListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataQualityList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.DataQuality]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (DataQualityList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[DataQuality] | DataQualityListPaginatedResponseCursor | DataQualityListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.data-quality.read.
listDataQuality:POST/api/v4/data-quality/configuration/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)search (
Optional[Sequence[str]]) –Sequence[str]Search for data qualities with resources matching the search term.data (
Union[DataQualityList,Mapping[str,object],None]) – requests.DataQualityList, optional**kwargs (object) –
- Extra parameters for requests.DataQualityList
list_data_quality: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[DataQuality] | DataQualityListPaginatedResponseCursor | DataQualityListPaginatedResponseLimits | dict[str, object] | Response
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod delete_data_quality(resource, _dry_run=False, _get_response=False, _client=None)[source]¶
Delete a Data Quality configuration by resource.
- Overloads:
cls, resource (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, resource (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, resource (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.data-quality.delete.
deleteDataQuality:POST/api/v4/data-quality/configuration/{resource}/delete
- classmethod get_data_quality(resource, _dry_run=False, _get_response=False, _client=None)[source]¶
Get a Data Quality configuration by resource.
- Overloads:
cls, resource (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, resource (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, resource (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.DataQualityGet
- Parameters:
- Return type:
DataQualityGet | dict[str, object] | Response
Permission Required: kelvin.permission.data-quality.read.
getDataQuality:GET/api/v4/data-quality/configuration/{resource}/get
- classmethod update_data_quality(resource, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update a Data Quality by providing the new configuration. This request changes the whole Data Quality Configuration.
- Overloads:
cls, resource (str), data (Optional[Union[requests.DataQualityUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, resource (str), data (Optional[Union[requests.DataQualityUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, resource (str), data (Optional[Union[requests.DataQualityUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataQualityUpdate
- Parameters:
- Return type:
DataQualityUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.data-quality.update.
updateDataQuality:POST/api/v4/data-quality/configuration/{resource}/update- Parameters:
resource (
str) –str, optional Asset Data Stream pair to update the associated Data Quality configurations. (example: krn:ad:asset1/setpoint).data (
Union[DataQualityUpdate,Mapping[str,object],None]) – requests.DataQualityUpdate, optional**kwargs (object) –
- Extra parameters for requests.DataQualityUpdate
update_data_quality: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
DataQualityUpdate | dict[str, object] | Response
- classmethod bulk_delete_data_quality_metrics(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Delete multiple Data Quality Metrics by their names in a single request.
- Overloads:
cls, data (Optional[Union[requests.DeleteDataQualityMetricsBulk, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.DeleteDataQualityMetricsBulk, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.DeleteDataQualityMetricsBulk, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.data-quality.delete.
bulkDeleteDataQualityMetrics:POST/api/v4/data-quality/metric/bulk/delete- Parameters:
data (
Union[DeleteDataQualityMetricsBulk,Mapping[str,object],None]) – requests.DeleteDataQualityMetricsBulk, optional**kwargs (object) –
- Extra parameters for requests.DeleteDataQualityMetricsBulk
bulk_delete_data_quality_metrics: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
- classmethod bulk_upsert_data_quality_metrics(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create or update multiple Data Quality Metrics in a single request.
- Overloads:
cls, data (Optional[Union[requests.UpsertDataQualityMetricsBulk, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.UpsertDataQualityMetricsBulk, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.UpsertDataQualityMetricsBulk, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.data-quality.create and kelvin.permission.data-quality.update.
bulkUpsertDataQualityMetrics:POST/api/v4/data-quality/metric/bulk/upsert- Parameters:
data (
Union[UpsertDataQualityMetricsBulk,Mapping[str,object],None]) – requests.UpsertDataQualityMetricsBulk, optional**kwargs (object) –
- Extra parameters for requests.UpsertDataQualityMetricsBulk
bulk_upsert_data_quality_metrics: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
- classmethod create_data_quality_metric(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Data Quality Metric.
- Overloads:
cls, data (Optional[Union[requests.DataQualityMetricCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.DataQualityMetricCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.DataQualityMetricCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataQualityMetricCreate
- Parameters:
- Return type:
DataQualityMetricCreate | dict[str, object] | Response
Permission Required: kelvin.permission.data-quality.create.
createDataQualityMetric:POST/api/v4/data-quality/metric/create- Parameters:
- Return type:
DataQualityMetricCreate | dict[str, object] | Response
- classmethod list_data_quality_metrics(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns a list of Data Quality Metrics and its parameters. The Data Quality Metrics can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataQualityMetricsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataQualityMetricsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataQualityMetricsList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.DataQualityMetricsListPaginatedResponseCursor, responses.DataQualityMetricsListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataQualityMetricsList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.DataQualityMetric]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (DataQualityMetricsList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[DataQualityMetric] | DataQualityMetricsListPaginatedResponseCursor | DataQualityMetricsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.data-quality.read.
listDataQualityMetrics:POST/api/v4/data-quality/metric/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[DataQualityMetricsList,Mapping[str,object],None]) – requests.DataQualityMetricsList, optional**kwargs (object) –
- Extra parameters for requests.DataQualityMetricsList
list_data_quality_metrics: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[DataQualityMetric] | DataQualityMetricsListPaginatedResponseCursor | DataQualityMetricsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_data_quality_metric(metric_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Delete a Data Quality Metric by name.
- Overloads:
cls, metric_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, metric_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, metric_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.data-quality.delete.
deleteDataQualityMetric:POST/api/v4/data-quality/metric/{metric_name}/delete
- classmethod get_data_quality_metric(metric_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters of a Data Quality Metric.
- Overloads:
cls, metric_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, metric_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, metric_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.DataQualityMetricGet
- Parameters:
- Return type:
DataQualityMetricGet | dict[str, object] | Response
Permission Required: kelvin.permission.data-quality.read.
getDataQualityMetric:GET/api/v4/data-quality/metric/{metric_name}/get
- classmethod update_data_quality_metric(metric_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update an existing Data Quality Metric.
- Overloads:
cls, metric_name (str), data (Optional[Union[requests.DataQualityMetricUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, metric_name (str), data (Optional[Union[requests.DataQualityMetricUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, metric_name (str), data (Optional[Union[requests.DataQualityMetricUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataQualityMetricUpdate
- Parameters:
- Return type:
DataQualityMetricUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.data-quality.update.
updateDataQualityMetric:POST/api/v4/data-quality/metric/{metric_name}/update- Parameters:
metric_name (
str) –str, optional The unique identifier name of the Data Quality Metric to update.data (
Union[DataQualityMetricUpdate,Mapping[str,object],None]) – requests.DataQualityMetricUpdate, optional**kwargs (object) –
- Extra parameters for requests.DataQualityMetricUpdate
update_data_quality_metric: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
DataQualityMetricUpdate | dict[str, object] | Response
- classmethod data_quality_simulate(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Simulate the effect of data quality updates without making permanent changes.
- Overloads:
cls, data (Optional[Union[requests.DataQualitySimulate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.DataQualitySimulate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.DataQualitySimulate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataQualitySimulate
- Parameters:
- Return type:
DataQualitySimulate | dict[str, object] | Response
Permission Required: kelvin.permission.data-quality.read.
DataQualitySimulate:POST/api/v4/data-quality/simulate- Parameters:
- Return type:
DataQualitySimulate | dict[str, object] | Response
- classmethod data_quality_statistics(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Retrieve data quality statistics regarding the ‘kelvin_data_quality_score’ metric.
- Overloads:
cls, data (Optional[Union[requests.DataQualityStatistics, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.DataQualityStatistics, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.DataQualityStatistics, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataQualityStatistics
- Parameters:
- Return type:
DataQualityStatistics | dict[str, object] | Response
Permission Required: kelvin.permission.data-quality.read.
DataQualityStatistics:POST/api/v4/data-quality/statistics- Parameters:
- Return type:
DataQualityStatistics | dict[str, object] | Response
DataTag¶
Kelvin API Client.
- class kelvin.api.client.api.data_tag.DataTag(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod create_data_tag(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Data Tag event.
- Overloads:
cls, data (Optional[Union[requests.DataTagCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.DataTagCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.DataTagCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataTagCreate
- Parameters:
- Return type:
DataTagCreate | dict[str, object] | Response
Permission Required: kelvin.permission.datatag.create.
createDataTag:POST/api/v4/datatags/create- Parameters:
- Return type:
DataTagCreate | dict[str, object] | Response
- classmethod list_data_tag(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns Data Tags that match the provided filters.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataTagList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataTagList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataTagList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.DataTagListPaginatedResponseCursor, responses.DataTagListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataTagList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.DataTag]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (DataTagList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[DataTag] | DataTagListPaginatedResponseCursor | DataTagListPaginatedResponseLimits | dict[str, object] | Response
Use query parameters for pagination and sorting, and the request body for field-based filtering.
Permission Required: kelvin.permission.datatag.read.
listDataTag:POST/api/v4/datatags/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[DataTagList,Mapping[str,object],None]) – requests.DataTagList, optional**kwargs (object) –
- Extra parameters for requests.DataTagList
list_data_tag: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[DataTag] | DataTagListPaginatedResponseCursor | DataTagListPaginatedResponseLimits | dict[str, object] | Response
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod create_tag(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Tag.
- Overloads:
cls, data (Optional[Union[requests.TagCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.TagCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.TagCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.TagCreate
- Parameters:
- Return type:
Permission Required: kelvin.permission.datatag.create.
createTag:POST/api/v4/datatags/tags/create- Parameters:
- Return type:
- classmethod list_tag(search=None, names=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Tags. The Tags can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, search (Optional[Sequence[str]]), names (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, search (Optional[Sequence[str]]), names (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, search (Optional[Sequence[str]]), names (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.TagListPaginatedResponseCursor, responses.TagListPaginatedResponseLimits]
cls, search (Optional[Sequence[str]]), names (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.Tag]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[Tag] | TagListPaginatedResponseCursor | TagListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.datatag.read.
listTag:GET/api/v4/datatags/tags/list- Parameters:
search (
Optional[Sequence[str]]) –Sequence[str]Search and filter on the list based on the key name (Tag Name). All values in array will be filtered as OR. The search is case insensitive and will find partial matches as well.names (
Optional[Sequence[str]]) –Sequence[str]Filter on the list based on the key name (Tag Name). All values in array will be filtered as OR. The search is case insensitive and is on the full Tags name only.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[Tag] | TagListPaginatedResponseCursor | TagListPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_tag(tag_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Tag. An error will be returned if there are any current links to a DataTag and the Tag will not be deleted. Permission Required: kelvin.permission.datatag.delete.
- Overloads:
cls, tag_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, tag_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, tag_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
deleteTag:POST/api/v4/datatags/tags/{tag_name}/delete
- classmethod get_tag(tag_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieves a Tag.
- Overloads:
cls, tag_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, tag_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, tag_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.TagGet
- Parameters:
- Return type:
Permission Required: kelvin.permission.datatag.read.
getTag:GET/api/v4/datatags/tags/{tag_name}/get
- classmethod update_tag(tag_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update an existing Tag. The Tag key name can not be updated.
- Overloads:
cls, tag_name (str), data (Optional[Union[requests.TagUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, tag_name (str), data (Optional[Union[requests.TagUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, tag_name (str), data (Optional[Union[requests.TagUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.TagUpdate
- Parameters:
- Return type:
Permission Required: kelvin.permission.datatag.update.
updateTag:POST/api/v4/datatags/tags/{tag_name}/update- Parameters:
- Return type:
- classmethod delete_data_tag(datatag_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Data Tag. Permission Required: kelvin.permission.datatag.delete.
- Overloads:
cls, datatag_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, datatag_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, datatag_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
deleteDataTag:POST/api/v4/datatags/{datatag_id}/delete
- classmethod get_data_tag(datatag_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a single Data Tag by datatag_id.
- Overloads:
cls, datatag_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, datatag_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, datatag_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.DataTagGet
- Parameters:
- Return type:
DataTagGet | dict[str, object] | Response
Includes the tagged time interval, source, and optional context datastreams.
Permission Required: kelvin.permission.datatag.read.
getDataTag:GET/api/v4/datatags/{datatag_id}/get
- classmethod update_data_tag(datatag_id, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update an existing Data Tag. Any parameters that are not provided will remain unchanged.
- Overloads:
cls, datatag_id (str), data (Optional[Union[requests.DataTagUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, datatag_id (str), data (Optional[Union[requests.DataTagUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, datatag_id (str), data (Optional[Union[requests.DataTagUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataTagUpdate
- Parameters:
- Return type:
DataTagUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.datatag.update.
updateDataTag:POST/api/v4/datatags/{datatag_id}/update- Parameters:
- Return type:
DataTagUpdate | dict[str, object] | Response
DataStreams¶
Kelvin API Client.
- class kelvin.api.client.api.datastreams.Datastreams(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod create_bulk_data_stream(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a list of new Data Streams.
- Overloads:
cls, data (Optional[Union[requests.BulkDataStreamCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.BulkDataStreamCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.BulkDataStreamCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → str
- Parameters:
- Return type:
Permission Required: kelvin.permission.datastreams.create.
createBulkDataStream:POST/api/v4/datastreams/bulk/create- Parameters:
- Return type:
- classmethod delete_bulk_data_stream(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Delete a list of Data Streams.
- Overloads:
cls, data (Optional[Union[requests.BulkDataStreamDelete, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.BulkDataStreamDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.BulkDataStreamDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.datastreams.delete.
deleteBulkDataStream:POST/api/v4/datastreams/bulk/delete- Parameters:
- Return type:
- classmethod list_data_stream_contexts(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns a list of Data Streams, where each stream includes an array of its associated Assets and respective data sources. The list can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataStreamContextsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataStreamContextsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataStreamContextsList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.DataStreamContextsListPaginatedResponseCursor, responses.DataStreamContextsListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataStreamContextsList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[responses.DataStreamContext]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (DataStreamContextsList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[DataStreamContext] | DataStreamContextsListPaginatedResponseCursor | DataStreamContextsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.read.
listDataStreamContexts:POST/api/v4/datastreams/context/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[DataStreamContextsList,Mapping[str,object],None]) – requests.DataStreamContextsList, optional**kwargs (object) –
- Extra parameters for requests.DataStreamContextsList
list_data_stream_contexts: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[DataStreamContext] | DataStreamContextsListPaginatedResponseCursor | DataStreamContextsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod create_data_stream(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Data Stream.
- Overloads:
cls, data (Optional[Union[requests.DataStreamCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.DataStreamCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.DataStreamCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataStreamCreate
- Parameters:
- Return type:
DataStreamCreate | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.create.
createDataStream:POST/api/v4/datastreams/create- Parameters:
- Return type:
DataStreamCreate | dict[str, object] | Response
- fields = None¶
- classmethod list_data_streams_data_types(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, search=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Data Types and its parameters. The Data Types can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.DataStreamsDataTypesListPaginatedResponseCursor, responses.DataStreamsDataTypesListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.DataStreamDataType]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[DataStreamDataType] | DataStreamsDataTypesListPaginatedResponseCursor | DataStreamsDataTypesListPaginatedResponseLimits | dict[str, object] | Response
Pagination Sortable Columns: name, title, created, updated
Permission Required: kelvin.permission.datastreams.read.
listDataStreamsDataTypes:GET/api/v4/datastreams/data-types/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[DataStreamDataType] | DataStreamsDataTypesListPaginatedResponseCursor | DataStreamsDataTypesListPaginatedResponseLimits | dict[str, object] | Response
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod list_data_streams(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns a list of Data Streams and its parameters. The Data Streams can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataStreamsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataStreamsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataStreamsList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.DataStreamsListPaginatedResponseCursor, responses.DataStreamsListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.DataStreamsList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[responses.DataStream]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (DataStreamsList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[DataStream] | DataStreamsListPaginatedResponseCursor | DataStreamsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.read.
listDataStreams:POST/api/v4/datastreams/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[DataStreamsList,Mapping[str,object],None]) – requests.DataStreamsList, optional**kwargs (object) –
- Extra parameters for requests.DataStreamsList
list_data_streams: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[DataStream] | DataStreamsListPaginatedResponseCursor | DataStreamsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod create_data_stream_semantic_type(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Semantic Type.
- Overloads:
cls, data (Optional[Union[requests.DataStreamSemanticTypeCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.DataStreamSemanticTypeCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.DataStreamSemanticTypeCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataStreamSemanticTypeCreate
- Parameters:
- Return type:
DataStreamSemanticTypeCreate | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.create.
createDataStreamSemanticType:POST/api/v4/datastreams/semantic-types/create- Parameters:
data (
Union[DataStreamSemanticTypeCreate,Mapping[str,object],None]) – requests.DataStreamSemanticTypeCreate, optional**kwargs (object) –
- Extra parameters for requests.DataStreamSemanticTypeCreate
create_data_stream_semantic_type: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
DataStreamSemanticTypeCreate | dict[str, object] | Response
- classmethod list_data_streams_semantic_types(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, search=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Semantic Types and its parameters. The Semantic Types can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.DataStreamsSemanticTypesListPaginatedResponseCursor, responses.DataStreamsSemanticTypesListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.DataStreamSemanticType]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[DataStreamSemanticType] | DataStreamsSemanticTypesListPaginatedResponseCursor | DataStreamsSemanticTypesListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.read.
listDataStreamsSemanticTypes:GET/api/v4/datastreams/semantic-types/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[DataStreamSemanticType] | DataStreamsSemanticTypesListPaginatedResponseCursor | DataStreamsSemanticTypesListPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_data_stream_semantic_type(semantic_type_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Semantic Type. An error will be returned if there are any current links to a Semantic Type. This cannot be undone once the API request has been submitted.
- Overloads:
cls, semantic_type_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, semantic_type_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, semantic_type_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.datastreams.delete.
deleteDataStreamSemanticType:POST/api/v4/datastreams/semantic-types/{semantic_type_name}/delete
- classmethod get_data_stream_semantic_type(semantic_type_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters of a Semantic Type.
- Overloads:
cls, semantic_type_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, semantic_type_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, semantic_type_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.DataStreamSemanticTypeGet
- Parameters:
- Return type:
DataStreamSemanticTypeGet | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.read.
getDataStreamSemanticType:GET/api/v4/datastreams/semantic-types/{semantic_type_name}/get- Parameters:
- Return type:
DataStreamSemanticTypeGet | dict[str, object] | Response
- classmethod update_data_stream_semantic_type(semantic_type_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Updates an existing Semantic Type with any new values passed through the body parameters. All body parameters are optional and if not provided will remain unchanged.
- Overloads:
cls, semantic_type_name (str), data (Optional[Union[requests.DataStreamSemanticTypeUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, semantic_type_name (str), data (Optional[Union[requests.DataStreamSemanticTypeUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, semantic_type_name (str), data (Optional[Union[requests.DataStreamSemanticTypeUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataStreamSemanticTypeUpdate
- Parameters:
- Return type:
DataStreamSemanticTypeUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.create.
updateDataStreamSemanticType:POST/api/v4/datastreams/semantic-types/{semantic_type_name}/update- Parameters:
semantic_type_name (
str) –str, optional Semantic Type key name to get. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[DataStreamSemanticTypeUpdate,Mapping[str,object],None]) – requests.DataStreamSemanticTypeUpdate, optional**kwargs (object) –
- Extra parameters for requests.DataStreamSemanticTypeUpdate
update_data_stream_semantic_type: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
DataStreamSemanticTypeUpdate | dict[str, object] | Response
- classmethod create_bulk_data_stream_unit(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a list of new Units.
- Overloads:
cls, data (Optional[Union[requests.BulkDataStreamUnitCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.BulkDataStreamUnitCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.BulkDataStreamUnitCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → str
- Parameters:
- Return type:
Permission Required: kelvin.permission.datastreams.create.
createBulkDataStreamUnit:POST/api/v4/datastreams/units/bulk/create- Parameters:
data (
Union[BulkDataStreamUnitCreate,Mapping[str,object],None]) – requests.BulkDataStreamUnitCreate, optional**kwargs (object) –
- Extra parameters for requests.BulkDataStreamUnitCreate
create_bulk_data_stream_unit: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
- classmethod create_data_stream_unit(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Unit.
- Overloads:
cls, data (Optional[Union[requests.DataStreamUnitCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.DataStreamUnitCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.DataStreamUnitCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataStreamUnitCreate
- Parameters:
- Return type:
DataStreamUnitCreate | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.create.
createDataStreamUnit:POST/api/v4/datastreams/units/create- Parameters:
- Return type:
DataStreamUnitCreate | dict[str, object] | Response
- classmethod list_data_streams_units(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, search=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Units and its parameters. The Units can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.DataStreamsUnitsListPaginatedResponseCursor, responses.DataStreamsUnitsListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.Unit]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[Unit] | DataStreamsUnitsListPaginatedResponseCursor | DataStreamsUnitsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.read.
listDataStreamsUnits:GET/api/v4/datastreams/units/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[Unit] | DataStreamsUnitsListPaginatedResponseCursor | DataStreamsUnitsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_data_stream_unit(unit_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Unit. An error will be returned if there are any current links to a Unit. This cannot be undone once the API request has been submitted.
- Overloads:
cls, unit_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, unit_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, unit_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.datastreams.delete.
deleteDataStreamUnit:POST/api/v4/datastreams/units/{unit_name}/delete
- classmethod get_data_stream_unit(unit_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters of a Unit.
- Overloads:
cls, unit_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, unit_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, unit_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.DataStreamUnitGet
- Parameters:
- Return type:
DataStreamUnitGet | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.read.
getDataStreamUnit:GET/api/v4/datastreams/units/{unit_name}/get
- classmethod update_data_stream_unit(unit_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Updates an existing Unit with any new values passed through the body parameters. All body parameters are optional and if not provided will remain unchanged.
- Overloads:
cls, unit_name (str), data (Optional[Union[requests.DataStreamUnitUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, unit_name (str), data (Optional[Union[requests.DataStreamUnitUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, unit_name (str), data (Optional[Union[requests.DataStreamUnitUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataStreamUnitUpdate
- Parameters:
- Return type:
DataStreamUnitUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.update.
updateDataStreamUnit:POST/api/v4/datastreams/units/{unit_name}/update- Parameters:
unit_name (
str) –str, optional Unit parameter name to get. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[DataStreamUnitUpdate,Mapping[str,object],None]) – requests.DataStreamUnitUpdate, optional**kwargs (object) –
- Extra parameters for requests.DataStreamUnitUpdate
update_data_stream_unit: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
DataStreamUnitUpdate | dict[str, object] | Response
- classmethod get_data_stream_context(datastream_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve an array of Assets and respective data sources contextualized within a specific Data Stream.
- Overloads:
cls, datastream_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, datastream_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, datastream_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.DataStreamContextGet
- Parameters:
- Return type:
DataStreamContextGet | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.read.
getDataStreamContext:GET/api/v4/datastreams/{datastream_name}/context/get- Parameters:
- Return type:
DataStreamContextGet | dict[str, object] | Response
- classmethod delete_data_stream(datastream_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Data Stream. You will no longer be able to access any data saved in Asset / Data Stream pairs. This cannot be undone once the API request has been submitted.
- Overloads:
cls, datastream_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, datastream_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, datastream_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.datastreams.delete.
deleteDataStream:POST/api/v4/datastreams/{datastream_name}/delete
- classmethod get_data_stream(datastream_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters of a Data Stream.
- Overloads:
cls, datastream_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, datastream_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, datastream_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.DataStreamGet
- Parameters:
- Return type:
DataStreamGet | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.read.
getDataStream:GET/api/v4/datastreams/{datastream_name}/get
- classmethod update_data_stream(datastream_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update an existing Data Stream with a new ‘title’ and/or ‘description’ and/or ‘type’ and/or ‘semantic_type_name’ and/or ‘unit_name’. Any parameters that are not provided will remain unchanged.
- Overloads:
cls, datastream_name (str), data (Optional[Union[requests.DataStreamUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, datastream_name (str), data (Optional[Union[requests.DataStreamUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, datastream_name (str), data (Optional[Union[requests.DataStreamUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.DataStreamUpdate
- Parameters:
- Return type:
DataStreamUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.datastreams.update.
updateDataStream:POST/api/v4/datastreams/{datastream_name}/update- Parameters:
datastream_name (
str) –str, optional Data Stream key name to get. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[DataStreamUpdate,Mapping[str,object],None]) – requests.DataStreamUpdate, optional**kwargs (object) –
- Extra parameters for requests.DataStreamUpdate
update_data_stream: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
DataStreamUpdate | dict[str, object] | Response
FileStorage¶
Kelvin API Client.
- class kelvin.api.client.api.filestorage.Filestorage(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod list_files(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
List the files currently present in the filestorage
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.FilesList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.FilesList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.FilesList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.FilesListPaginatedCursor, responses.FilesListPaginatedLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), data (Optional[Union[requests.FilesList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.FileStorage]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[FileStorage] | FilesListPaginatedCursor | FilesListPaginatedLimits | dict[str, object] | Response
Permission Required: kelvin.permission.filestorage.read.
listFiles:POST/api/v4/filestorage/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[FilesList,Mapping[str,object],None]) – requests.FilesList, optional**kwargs (object) –
- Extra parameters for requests.FilesList
list_files: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[FileStorage] | FilesListPaginatedCursor | FilesListPaginatedLimits | dict[str, object] | Response
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod upload_file(file, metadata=None, _dry_run=False, _get_response=False, _client=None)[source]¶
Upload a file
- Overloads:
cls, file (str), metadata (Optional[dict[str, object]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, file (str), metadata (Optional[dict[str, object]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, file (str), metadata (Optional[dict[str, object]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.FileUpload
- Parameters:
- Return type:
FileUpload | dict[str, object] | Response
Permission Required: kelvin.permission.filestorage.upload.
uploadFile:POST/api/v4/filestorage/upload
- classmethod delete_file(file_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Deletes the requested file from filestorage
- Overloads:
cls, file_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, file_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, file_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.filestorage.delete.
deleteFile:POST/api/v4/filestorage/{file_id}/delete
- classmethod download_file(file_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Downloads the requested file
- Overloads:
cls, file_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, file_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, file_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Iterator[bytes]
- Parameters:
- Return type:
Permission Required: kelvin.permission.filestorage.download.
downloadFile:GET/api/v4/filestorage/{file_id}/download
- classmethod get_file(file_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Fetches the information for a specific file
- Overloads:
cls, file_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, file_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, file_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.FileGet
- Parameters:
- Return type:
Permission Required: kelvin.permission.filestorage.read.
getFile:GET/api/v4/filestorage/{file_id}/get
Guardrails¶
Kelvin API Client.
- class kelvin.api.client.api.guardrails.Guardrails(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod create_bulk_guardrails(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create multiple guardrails at once.
- Overloads:
cls, data (Optional[Union[requests.BulkGuardrailsCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.BulkGuardrailsCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.BulkGuardrailsCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.BulkGuardrailsCreate
- Parameters:
- Return type:
BulkGuardrailsCreate | dict[str, object] | Response | None
Permission Required: kelvin.permission.guardrails.create.
createBulkGuardrails:POST/api/v4/guardrails/bulk/create- Parameters:
- Return type:
BulkGuardrailsCreate | dict[str, object] | Response | None
- classmethod delete_bulk_guardrails(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Deletes multiple guardrails.
- Overloads:
cls, data (Optional[Union[requests.BulkGuardrailsDelete, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.BulkGuardrailsDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.BulkGuardrailsDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.guardrails.delete.
deleteBulkGuardrails:POST/api/v4/guardrails/bulk/delete- Parameters:
- Return type:
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod create_guardrail(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Guardrail.
- Overloads:
cls, data (Optional[Union[requests.GuardrailCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.GuardrailCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.GuardrailCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.GuardrailCreate
- Parameters:
- Return type:
GuardrailCreate | dict[str, object] | Response
A Guardrail is a configuration that defines a range of values, absolute or relative, that a control change must stay within. If the control change is outside of the defined range, it will be blocked and marked as rejected.
All configurations are optional. There are no validations done regarding a min being higher than a max or vice versa.
Additionally, a Guardrail value may be set by a data stream.
Permission Required: kelvin.permission.guardrails.create.
createGuardrail:POST/api/v4/guardrails/create- Parameters:
- Return type:
GuardrailCreate | dict[str, object] | Response
- classmethod list_guardrails(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, search=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
List guardrails based on the provided filters.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.GuardrailsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.GuardrailsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.GuardrailsList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.GuardrailsListPaginatedResponseCursor, responses.GuardrailsListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), search (Optional[Sequence[str]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.GuardrailsList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.Guardrail]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (GuardrailsList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[Guardrail] | GuardrailsListPaginatedResponseCursor | GuardrailsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.guardrails.read.
listGuardrails:POST/api/v4/guardrails/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)search (
Optional[Sequence[str]]) –Sequence[str]Search for guardrails with resources matching the search term.data (
Union[GuardrailsList,Mapping[str,object],None]) – requests.GuardrailsList, optional**kwargs (object) –
- Extra parameters for requests.GuardrailsList
list_guardrails: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[Guardrail] | GuardrailsListPaginatedResponseCursor | GuardrailsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_guardrail(resource, _dry_run=False, _get_response=False, _client=None)[source]¶
Delete a Guardrail by ID.
- Overloads:
cls, resource (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, resource (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, resource (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.guardrails.delete.
deleteGuardrail:POST/api/v4/guardrails/{resource}/delete
- classmethod get_guardrail(resource, _dry_run=False, _get_response=False, _client=None)[source]¶
Get a Guardrail by ID.
- Overloads:
cls, resource (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, resource (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, resource (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.GuardrailGet
- Parameters:
- Return type:
GuardrailGet | dict[str, object] | Response
Permission Required: kelvin.permission.guardrails.read.
getGuardrail:GET/api/v4/guardrails/{resource}/get
- classmethod update_guardrail(resource, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update a Guardrail by providing the Guardrail ID and the fields to update. This request changes the whole Guardrail.
- Overloads:
cls, resource (str), data (Optional[Union[requests.GuardrailUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, resource (str), data (Optional[Union[requests.GuardrailUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, resource (str), data (Optional[Union[requests.GuardrailUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.GuardrailUpdate
- Parameters:
- Return type:
GuardrailUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.guardrails.update.
updateGuardrail:POST/api/v4/guardrails/{resource}/update- Parameters:
resource (
str) –str, optional Asset/Data Stream pair to update the associated Guardrail configurations. (example: krn:ad:asset1/setpoint).data (
Union[GuardrailUpdate,Mapping[str,object],None]) – requests.GuardrailUpdate, optional**kwargs (object) –
- Extra parameters for requests.GuardrailUpdate
update_guardrail: str
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
GuardrailUpdate | dict[str, object] | Response
Instance¶
Kelvin API Client.
- class kelvin.api.client.api.instance.Instance(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod list_instance_audit_logs(action=None, user_id=None, namespace=None, identifier=None, username=None, request_id=None, search=None, from_date_time=None, to_date_time=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
List Audit Log Permission Required: kelvin.permission.audit_log.read.
- Overloads:
cls, action (Optional[Sequence[str]]), user_id (Optional[Sequence[str]]), namespace (Optional[Sequence[str]]), identifier (Optional[Sequence[str]]), username (Optional[Sequence[str]]), request_id (Optional[Sequence[str]]), search (Optional[Sequence[str]]), from_date_time (Optional[datetime]), to_date_time (Optional[datetime]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, action (Optional[Sequence[str]]), user_id (Optional[Sequence[str]]), namespace (Optional[Sequence[str]]), identifier (Optional[Sequence[str]]), username (Optional[Sequence[str]]), request_id (Optional[Sequence[str]]), search (Optional[Sequence[str]]), from_date_time (Optional[datetime]), to_date_time (Optional[datetime]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, action (Optional[Sequence[str]]), user_id (Optional[Sequence[str]]), namespace (Optional[Sequence[str]]), identifier (Optional[Sequence[str]]), username (Optional[Sequence[str]]), request_id (Optional[Sequence[str]]), search (Optional[Sequence[str]]), from_date_time (Optional[datetime]), to_date_time (Optional[datetime]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.InstanceAuditLogsListPaginatedResponseCursor, responses.InstanceAuditLogsListPaginatedResponseLimits]
cls, action (Optional[Sequence[str]]), user_id (Optional[Sequence[str]]), namespace (Optional[Sequence[str]]), identifier (Optional[Sequence[str]]), username (Optional[Sequence[str]]), request_id (Optional[Sequence[str]]), search (Optional[Sequence[str]]), from_date_time (Optional[datetime]), to_date_time (Optional[datetime]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[responses.InstanceAuditLogGetItem]
- Parameters:
from_date_time (datetime | None)
to_date_time (datetime | None)
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[InstanceAuditLogGetItem] | InstanceAuditLogsListPaginatedResponseCursor | InstanceAuditLogsListPaginatedResponseLimits | dict[str, object] | Response
listInstanceAuditLogs:GET/api/v4/instance/auditlog/list- Parameters:
action (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key action. The filter is on the full name only.user_id (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key user_id. The filter is on the full name only.namespace (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key namespace. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters. If set, it will override acp_nameidentifier (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key identifier. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters. If set, it will override acp_nameusername (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key username. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters. If set, it will override acp_namerequest_id (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key request_id. The filter is on the full name only.search (
Optional[Sequence[str]]) –Sequence[str]Search Audit Logs by key action, username or namespace. All values in array will be filtered as OR. The search is case insensitive and will find partial matches as well.from_date_time (
Optional[datetime]) –datetimeFilter actions that occurred at or after this UTC time, formatted in RFC 3339.to_date_time (
Optional[datetime]) –datetimeFilter actions that occurred until or at this UTC time, formatted in RFC 3339.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[InstanceAuditLogGetItem] | InstanceAuditLogsListPaginatedResponseCursor | InstanceAuditLogsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod get_instance_audit_log(audit_logger_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Get Audit Log
- Overloads:
cls, audit_logger_id (int), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, audit_logger_id (int), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, audit_logger_id (int), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.InstanceAuditLogGet
- Parameters:
- Return type:
InstanceAuditLogGet | dict[str, object] | Response
Permission Required: kelvin.permission.audit_log.read.
getInstanceAuditLog:GET/api/v4/instance/auditlog/{audit_logger_id}/get
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod get_instance_settings_kelvin_cluster(_dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the Cluster Instance Settings.
- Overloads:
cls, _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.InstanceSettingsKelvinClusterGet
- Parameters:
- Return type:
InstanceSettingsKelvinClusterGet | dict[str, object] | Response
Permission Required: kelvin.permission.instance.read.
getInstanceSettingsKelvinCluster:GET/api/v4/instance/settings/kelvin-cluster/get
- classmethod update_instance_settings_kelvin_cluster(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Updates an existing Kelvin Cluster Instance Settings with any new values passed through the body parameters. All body parameters are optional and if not provided will remain unchanged.
- Overloads:
cls, data (Optional[Union[requests.InstanceSettingsKelvinClusterUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.InstanceSettingsKelvinClusterUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.InstanceSettingsKelvinClusterUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.InstanceSettingsKelvinClusterUpdate
- Parameters:
- Return type:
InstanceSettingsKelvinClusterUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.instance.update.
updateInstanceSettingsKelvinCluster:POST/api/v4/instance/settings/kelvin-cluster/update- Parameters:
data (
Union[InstanceSettingsKelvinClusterUpdate,Mapping[str,object],None]) – requests.InstanceSettingsKelvinClusterUpdate, optional**kwargs (object) –
- Extra parameters for requests.InstanceSettingsKelvinClusterUpdate
update_instance_settings_kelvin_cluster: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
InstanceSettingsKelvinClusterUpdate | dict[str, object] | Response
- classmethod list_instance_settings(names=None, search=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
List Instance Settings
- Overloads:
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.InstanceSettingsListPaginatedResponseCursor, responses.InstanceSettingsListPaginatedResponseLimits]
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.InstanceSettings]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[InstanceSettings] | InstanceSettingsListPaginatedResponseCursor | InstanceSettingsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.instance.read.
listInstanceSettings:GET/api/v4/instance/settings/list- Parameters:
names (
Optional[Sequence[str]]) –Sequence[str]Filter Instance Setting list based on the key name.search (
Optional[Sequence[str]]) –Sequence[str]Search and filter on the Instance Setting list based on the key name. The search is case sensitive but will find partial matches anywhere in the name.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[InstanceSettings] | InstanceSettingsListPaginatedResponseCursor | InstanceSettingsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_instance_setting(setting_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Instance Setting. This cannot be undone once the API request has been submitted.
- Overloads:
cls, setting_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, setting_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, setting_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.instance.delete.
deleteInstanceSetting:POST/api/v4/instance/settings/{setting_name}/delete
- classmethod get_instance_settings(setting_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters of an Instance Setting.
- Overloads:
cls, setting_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, setting_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, setting_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.InstanceSettingsGet
- Parameters:
- Return type:
InstanceSettingsGet | dict[str, object] | Response
Permission Required: kelvin.permission.instance.read.
getInstanceSettings:GET/api/v4/instance/settings/{setting_name}/get
- classmethod update_instance_settings(setting_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update an existing Instance Settings. Any parameters that are not provided will remain unchanged.
- Overloads:
cls, setting_name (str), data (Optional[Union[requests.InstanceSettingsUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, setting_name (str), data (Optional[Union[requests.InstanceSettingsUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, setting_name (str), data (Optional[Union[requests.InstanceSettingsUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.InstanceSettingsUpdate
- Parameters:
- Return type:
InstanceSettingsUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.instance.update.
updateInstanceSettings:POST/api/v4/instance/settings/{setting_name}/update- Parameters:
setting_name (
str) –str, optional Unique identifier name of the Instance Setting to update.data (
Union[InstanceSettingsUpdate,Mapping[str,object],None]) – requests.InstanceSettingsUpdate, optional**kwargs (object) –
- Extra parameters for requests.InstanceSettingsUpdate
update_instance_settings: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
InstanceSettingsUpdate | dict[str, object] | Response
- classmethod get_instance_status(_dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the Health Status of all services on the Instance
- Overloads:
cls, _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.InstanceStatusGet
- Parameters:
- Return type:
InstanceStatusGet | dict[str, object] | Response
Permission Required: n/a.
getInstanceStatus:GET/api/v4/instance/status/get
Orchestration¶
Kelvin API Client.
- class kelvin.api.client.api.orchestration.Orchestration(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod create_orchestration_clusters(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Cluster. This only creates the Cloud registration, the actual installation still needs to be manually performed on the server/kubernetes cluster. The provision script to run locally on the server for type registered as k3s or on an existing kubernetes cluster for type registered as kubernetes will be in the key `provision_script ` in the 201 response body.
- Overloads:
cls, data (Optional[Union[requests.OrchestrationClustersCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.OrchestrationClustersCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.OrchestrationClustersCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.OrchestrationClustersCreate
- Parameters:
- Return type:
OrchestrationClustersCreate | dict[str, object] | Response
Permission Required: kelvin.permission.cluster.create.
createOrchestrationClusters:POST/api/v4/orchestration/clusters/create- Parameters:
data (
Union[OrchestrationClustersCreate,Mapping[str,object],None]) – requests.OrchestrationClustersCreate, optional**kwargs (object) –
- Extra parameters for requests.OrchestrationClustersCreate
create_orchestration_clusters: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
OrchestrationClustersCreate | dict[str, object] | Response
- classmethod list_orchestration_clusters(names=None, search=None, type=None, ready=None, status=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Cluster objects. The list can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), type (Optional[Sequence[str]]), ready (Optional[bool]), status (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), type (Optional[Sequence[str]]), ready (Optional[bool]), status (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), type (Optional[Sequence[str]]), ready (Optional[bool]), status (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.OrchestrationClustersListPaginatedResponseCursor, responses.OrchestrationClustersListPaginatedResponseLimits]
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), type (Optional[Sequence[str]]), ready (Optional[bool]), status (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[responses.OrchestrationClustersCreateItem]
- Parameters:
ready (bool | None)
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[OrchestrationClustersCreateItem] | OrchestrationClustersListPaginatedResponseCursor | OrchestrationClustersListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.cluster.read.
listOrchestrationClusters:GET/api/v4/orchestration/clusters/list- Parameters:
names (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the Cluster key name. The filter is on the full name only. All strings in the array are treated as OR. Can only contain lowercase alphanumeric characters and ., _ or - characters.search (
Optional[Sequence[str]]) –Sequence[str]Search and filter on the list based on the Cluster keys title (Display Name) or name. The search is case insensitive and will find partial matches as well.type (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the Cluster key type. The filter is on the full name only. All strings in the array are treated as OR. Options are k3s and kubernetesready (
Optional[bool]) –boolA filter on the list based on the Cluster key ready. Options are true and falsestatus (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the Cluster key status. The filter is on the full name only. All strings in the array are treated as OR. Options are pending_provision, pending, online, unreachable and requires_attentionpagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)sort_by (
Optional[Sequence[str]]) –Sequence[str]Sort the results by one of the Cluster parameters. Only one parameter can be selected. Options: name, title, ready, type, status, last_seen, created, updated, kelvin_version, container_version.fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[OrchestrationClustersCreateItem] | OrchestrationClustersListPaginatedResponseCursor | OrchestrationClustersListPaginatedResponseLimits | dict[str, object] | Response
- classmethod download_orchestration_cluster_provision_binary(arch=None, type=None, _dry_run=False, _get_response=False, _client=None)[source]¶
Download Cluster Provision Binary
- Overloads:
cls, arch (Optional[Literal[‘amd64’, ‘arm64’, ‘armv7’]]), type (Optional[Literal[‘kubernetes’, ‘docker’]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, arch (Optional[Literal[‘amd64’, ‘arm64’, ‘armv7’]]), type (Optional[Literal[‘kubernetes’, ‘docker’]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, arch (Optional[Literal[‘amd64’, ‘arm64’, ‘armv7’]]), type (Optional[Literal[‘kubernetes’, ‘docker’]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Iterator[bytes]
- Parameters:
- Return type:
Permission Required: kelvin.permission.cluster.read.
downloadOrchestrationClusterProvisionBinary:GET/api/v4/orchestration/clusters/provision/bin/download- Parameters:
arch (
Optional[Literal['amd64','arm64','armv7']]) –Literal['amd64', 'arm64', 'armv7']Architecture of the binary to download. Options are amd64, arm64, armv7 (default: amd64) (‘amd64’, ‘arm64’, ‘armv7’)type (
Optional[Literal['kubernetes','docker']]) –Literal['kubernetes', 'docker']Type of the binary to download. Options are kubernetes, docker (default: kubernetes) (‘kubernetes’, ‘docker’)_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod delete_orchestration_clusters(cluster_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Cluster and its Nodes. This will also delete Workloads, Bridges and Services residing on the Cluster. This cannot be undone once the API request has been submitted.
- Overloads:
cls, cluster_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, cluster_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, cluster_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.cluster.delete.
deleteOrchestrationClusters:POST/api/v4/orchestration/clusters/{cluster_name}/delete
- classmethod apply_orchestration_clusters_edge_apps_version(cluster_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Initiates available cluster upgrades; requires cluster to be online and ready.
- Overloads:
cls, cluster_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, cluster_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, cluster_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → str
- Parameters:
- Return type:
Permission Required: kelvin.permission.cluster.update.
applyOrchestrationClustersEdgeAppsVersion:GET/api/v4/orchestration/clusters/{cluster_name}/edge-apps/version/apply
- classmethod update_orchestration_clusters_edge_apps_version_force(cluster_name, persist=None, _dry_run=False, _get_response=False, _client=None)[source]¶
Force available updates to Cluster even if update setting is disabled. Optionally keep a force update action on standby if the Cluster is offline. This ensures the update is applied once the Cluster returns online.
- Overloads:
cls, cluster_name (str), persist (Optional[bool]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, cluster_name (str), persist (Optional[bool]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, cluster_name (str), persist (Optional[bool]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → str
- Parameters:
- Return type:
Permission Required: kelvin.permission.cluster.update.
updateOrchestrationClustersEdgeAppsVersionForce:POST/api/v4/orchestration/clusters/{cluster_name}/edge-apps/version/force-update- Parameters:
cluster_name (
str) –str, optional Cluster key name to initiate upgrades. The string can only contain lowercase alphanumeric characters and ., _ or - characters.persist (
Optional[bool]) –boolOptional setting to wait if the Cluster is currently unreachable and force the update when the Cluster is next online._dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
- classmethod get_orchestration_clusters(cluster_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters and status of a Cluster.
- Overloads:
cls, cluster_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, cluster_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, cluster_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.OrchestrationClustersGet
- Parameters:
- Return type:
OrchestrationClustersGet | dict[str, object] | Response
Permission Required: kelvin.permission.cluster.read.
getOrchestrationClusters:GET/api/v4/orchestration/clusters/{cluster_name}/get
- classmethod get_orchestration_clusters_manifests(cluster_name, version, _dry_run=False, _get_response=False, _client=None)[source]¶
Get Cluster Manifests
- Overloads:
cls, cluster_name (str), version (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, cluster_name (str), version (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, cluster_name (str), version (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.OrchestrationClustersManifestsGet
- Parameters:
- Return type:
OrchestrationClustersManifestsGet | dict[str, object] | Response | None
Permission Required: kelvin.permission.cluster.read.
getOrchestrationClustersManifests:GET/api/v4/orchestration/clusters/{cluster_name}/manifests/get- Parameters:
cluster_name (
str) –str, optional Cluster key name to retrieve provision yaml file. The string can only contain lowercase alphanumeric characters and ., _ or - characters.version (
str) –str, optional Current version of the key kelvin_version in version object of the Cluster parameters._dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
OrchestrationClustersManifestsGet | dict[str, object] | Response | None
- classmethod list_orchestration_clusters_node(cluster_name, search=None, status=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Node objects in a Cluster. The list can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, cluster_name (str), search (Optional[Sequence[str]]), status (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, cluster_name (str), search (Optional[Sequence[str]]), status (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, cluster_name (str), search (Optional[Sequence[str]]), status (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.OrchestrationClustersNodeListPaginatedResponseCursor, responses.OrchestrationClustersNodeListPaginatedResponseLimits]
cls, cluster_name (str), search (Optional[Sequence[str]]), status (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[responses.OrchestrationClustersNodesGetItem]
- Parameters:
cluster_name (str)
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[OrchestrationClustersNodesGetItem] | OrchestrationClustersNodeListPaginatedResponseCursor | OrchestrationClustersNodeListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.cluster.read.
listOrchestrationClustersNode:GET/api/v4/orchestration/clusters/{cluster_name}/nodes/list- Parameters:
cluster_name (
str) –str, optional Cluster key name containing the Nodes to list. The filter is on the full name only. Can only contain lowercase alphanumeric characters and ., _ or - characters.search (
Optional[Sequence[str]]) –Sequence[str]Search and filter on the list based on the Node name. The search is case insensitive and will find partial matches as well.status (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the Node key status. The filter is on the full name only. All strings in the array are treated as OR. Options are online, unreachable and not_readypagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)sort_by (
Optional[Sequence[str]]) –Sequence[str]Sort the results by one of the Cluster parameters. Only one parameter can be selected. Options: id, name, status, last_seen, created and updated.fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[OrchestrationClustersNodesGetItem] | OrchestrationClustersNodeListPaginatedResponseCursor | OrchestrationClustersNodeListPaginatedResponseLimits | dict[str, object] | Response
- classmethod get_orchestration_clusters_nodes(cluster_name, node_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters and status of a specific Node on a Cluster.
- Overloads:
cls, cluster_name (str), node_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, cluster_name (str), node_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, cluster_name (str), node_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.OrchestrationClustersNodesGet
- Parameters:
- Return type:
OrchestrationClustersNodesGet | dict[str, object] | Response
Permission Required: kelvin.permission.cluster.read.
getOrchestrationClustersNodes:GET/api/v4/orchestration/clusters/{cluster_name}/nodes/{node_name}/get- Parameters:
cluster_name (
str) –str, optional Cluster key name to look for Node. The string can only contain lowercase alphanumeric characters and ., _ or - characters.node_name (
str) –str, optional Node key name to get. The string can only contain lowercase alphanumeric characters and ., _ or - characters._dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
OrchestrationClustersNodesGet | dict[str, object] | Response
- classmethod get_orchestration_clusters_provision(cluster_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Get Clusters Provision YAML Specifications
- Overloads:
cls, cluster_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, cluster_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, cluster_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → str
- Parameters:
- Return type:
Permission Required: kelvin.permission.cluster.read.
getOrchestrationClustersProvision:GET/api/v4/orchestration/clusters/{cluster_name}/provision/get- Parameters:
- Return type:
- classmethod list_orchestration_clusters_service(cluster_name, search=None, workload_name=None, service_type=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Service objects in a Cluster. The list can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, cluster_name (str), search (Optional[Sequence[str]]), workload_name (Optional[Sequence[str]]), service_type (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, cluster_name (str), search (Optional[Sequence[str]]), workload_name (Optional[Sequence[str]]), service_type (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, cluster_name (str), search (Optional[Sequence[str]]), workload_name (Optional[Sequence[str]]), service_type (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.OrchestrationClustersServiceListPaginatedResponseCursor, responses.OrchestrationClustersServiceListPaginatedResponseLimits]
cls, cluster_name (str), search (Optional[Sequence[str]]), workload_name (Optional[Sequence[str]]), service_type (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[responses.ServiceItem]
- Parameters:
cluster_name (str)
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[ServiceItem] | OrchestrationClustersServiceListPaginatedResponseCursor | OrchestrationClustersServiceListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.cluster.read.
listOrchestrationClustersService:GET/api/v4/orchestration/clusters/{cluster_name}/services/list- Parameters:
cluster_name (
str) –str, optional Cluster key name containing the Services to list. The filter is on the full name only. Can only contain lowercase alphanumeric characters and ., _ or - characters.search (
Optional[Sequence[str]]) –Sequence[str]Search and filter on the list based on any of the Service keys name, workload_name, network_interface, address, and service_type. The search is case insensitive and will find partial matches as well. All strings in the array are treated as OR.workload_name (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the Workload key name. The filter is on the full name only. All strings in the array are treated as OR.service_type (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the Service Type key service_type. The filter is on the full name only. All strings in the array are treated as OR. Options are cluster_ip, node_port and host_port.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)sort_by (
Optional[Sequence[str]]) –Sequence[str]Sort the results by one of the Cluster parameters. Only one parameter can be selected. Options: name, workload_name, network_interface, service_type, address, created and updated.fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[ServiceItem] | OrchestrationClustersServiceListPaginatedResponseCursor | OrchestrationClustersServiceListPaginatedResponseLimits | dict[str, object] | Response
- classmethod update_orchestration_clusters(cluster_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update the configuration settings of the Cluster. Only key/values provided in the request body will be updated, all other settings will remain unchanged.
- Overloads:
cls, cluster_name (str), data (Optional[Union[requests.OrchestrationClustersUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, cluster_name (str), data (Optional[Union[requests.OrchestrationClustersUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, cluster_name (str), data (Optional[Union[requests.OrchestrationClustersUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.OrchestrationClustersUpdate
- Parameters:
- Return type:
OrchestrationClustersUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.cluster.update.
updateOrchestrationClusters:POST/api/v4/orchestration/clusters/{cluster_name}/update- Parameters:
cluster_name (
str) –str, optional Cluster key name target for sending parameter updates. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[OrchestrationClustersUpdate,Mapping[str,object],None]) – requests.OrchestrationClustersUpdate, optional**kwargs (object) –
- Extra parameters for requests.OrchestrationClustersUpdate
update_orchestration_clusters: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
OrchestrationClustersUpdate | dict[str, object] | Response
Properties¶
Kelvin API Client.
- class kelvin.api.client.api.properties.Properties(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod create_property(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Property Definition
- Overloads:
cls, data (Optional[Union[requests.PropertyCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.PropertyCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.PropertyCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.PropertyCreate
- Parameters:
- Return type:
PropertyCreate | dict[str, object] | Response
Permission Required: kelvin.permission.property.create.
createProperty:POST/api/v4/properties/create- Parameters:
- Return type:
PropertyCreate | dict[str, object] | Response
- classmethod list_properties(search=None, primitive_type=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Property Definitions. The Properties can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, search (Optional[Sequence[str]]), primitive_type (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, search (Optional[Sequence[str]]), primitive_type (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, search (Optional[Sequence[str]]), primitive_type (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.PropertiesListPaginatedResponseCursor, responses.PropertiesListPaginatedResponseLimits]
cls, search (Optional[Sequence[str]]), primitive_type (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.PropertyDefinition]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[PropertyDefinition] | PropertiesListPaginatedResponseCursor | PropertiesListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.property.read.
listProperties:GET/api/v4/properties/list- Parameters:
search (
Optional[Sequence[str]]) –Sequence[str]Search and filter on the list based on the keys title (Display Name) or name. All values in array will be filtered as OR. The search is case insensitive and will find partial matches as well.primitive_type (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key primitive_type. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[PropertyDefinition] | PropertiesListPaginatedResponseCursor | PropertiesListPaginatedResponseLimits | dict[str, object] | Response
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod get_property_unique_values(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Fetch the unique values for each property.
- Overloads:
cls, data (Optional[Union[requests.PropertyUniqueValuesGet, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.PropertyUniqueValuesGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.PropertyUniqueValuesGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.PropertyUniqueValuesGet
- Parameters:
- Return type:
PropertyUniqueValuesGet | dict[str, object] | Response
Permission Required: kelvin.permission.property.read.
getPropertyUniqueValues:POST/api/v4/properties/unique/values/get- Parameters:
- Return type:
PropertyUniqueValuesGet | dict[str, object] | Response
- classmethod delete_property(property_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Property. This cannot be undone once the API request has been submitted.
- Overloads:
cls, property_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, property_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, property_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.property.delete.
deleteProperty:POST/api/v4/properties/{property_name}/delete- Parameters:
- Return type:
- classmethod get_property(property_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve a Property Definition.
- Overloads:
cls, property_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, property_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, property_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.PropertyGet
- Parameters:
- Return type:
PropertyGet | dict[str, object] | Response
Permission Required: kelvin.permission.property.read.
getProperty:GET/api/v4/properties/{property_name}/get
- classmethod delete_property_values(property_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Permanently delete existing property Values. This cannot be undone once the API request has been submitted. Permission Required: kelvin.permission.property.delete.
- Overloads:
cls, property_name (str), data (Optional[Union[requests.PropertyValuesDelete, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, property_name (str), data (Optional[Union[requests.PropertyValuesDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, property_name (str), data (Optional[Union[requests.PropertyValuesDelete, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
deletePropertyValues:POST/api/v4/properties/{property_name}/values/delete- Parameters:
property_name (
str) –str, optional Property name for which the values are to be deleted. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[PropertyValuesDelete,Mapping[str,object],None]) – requests.PropertyValuesDelete, optional**kwargs (object) –
- Extra parameters for requests.PropertyValuesDelete
delete_property_values: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
- classmethod get_property_values(property_name, resource_type=None, _dry_run=False, _get_response=False, _client=None)[source]¶
Fetch property values belonging to a particular property definition.
- Overloads:
cls, property_name (str), resource_type (Optional[Sequence[str]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, property_name (str), resource_type (Optional[Sequence[str]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, property_name (str), resource_type (Optional[Sequence[str]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.PropertyValuesGet
- Parameters:
- Return type:
PropertyValuesGet | dict[str, object] | Response
Permission Required: kelvin.permission.property.read.
getPropertyValues:GET/api/v4/properties/{property_name}/values/get- Parameters:
property_name (
str) –str, optional Property name for which the values are to be fetched. The string can only contain lowercase alphanumeric characters and ., _ or - characters.resource_type (
Optional[Sequence[str]]) –Sequence[str]Array of resource types to filter the list of Property values returned._dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
PropertyValuesGet | dict[str, object] | Response
- classmethod property_range_get(property_name, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Fetch the value history for a property given a time range.
- Overloads:
cls, property_name (str), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RangeGetPropertyValues, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, property_name (str), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RangeGetPropertyValues, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, property_name (str), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RangeGetPropertyValues, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.RangeGetPropertyPaginatedResponseCursor, responses.RangeGetPropertyPaginatedResponseLimits]
cls, property_name (str), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RangeGetPropertyValues, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.PropertyValueHistory]
- Parameters:
property_name (str)
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (RangeGetPropertyValues | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[PropertyValueHistory] | RangeGetPropertyPaginatedResponseCursor | RangeGetPropertyPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.property.read.
propertyRangeGet:POST/api/v4/properties/{property_name}/values/range/get- Parameters:
property_name (
str) –str, optional Property name for which the values are to be updated. The string can only contain lowercase alphanumeric characters and ., _ or - characters.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[RangeGetPropertyValues,Mapping[str,object],None]) – requests.RangeGetPropertyValues, optional**kwargs (object) –
- Extra parameters for requests.RangeGetPropertyValues
property_range_get: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[PropertyValueHistory] | RangeGetPropertyPaginatedResponseCursor | RangeGetPropertyPaginatedResponseLimits | dict[str, object] | Response
- classmethod update_property_values(property_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create or update Property Values.
- Overloads:
cls, property_name (str), data (Optional[Union[requests.PropertyValuesUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, property_name (str), data (Optional[Union[requests.PropertyValuesUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, property_name (str), data (Optional[Union[requests.PropertyValuesUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → str
- Parameters:
- Return type:
Permission Required: kelvin.permission.property.create.
updatePropertyValues:POST/api/v4/properties/{property_name}/values/update- Parameters:
property_name (
str) –str, optional Property name for which the values are to be updated. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[PropertyValuesUpdate,Mapping[str,object],None]) – requests.PropertyValuesUpdate, optional**kwargs (object) –
- Extra parameters for requests.PropertyValuesUpdate
update_property_values: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
Recommendation¶
Kelvin API Client.
- class kelvin.api.client.api.recommendation.Recommendation(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod get_recommendation_clustering(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Retrieve the total count of Recommendations matching an array of resources and filter options between two dates grouped by the parameter time_bucket. Will also return a list of all the Recommendation `id`s counted.
- Overloads:
cls, data (Optional[Union[requests.RecommendationClusteringGet, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.RecommendationClusteringGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.RecommendationClusteringGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[responses.RecommendationClustering]
- Parameters:
- Return type:
KList[RecommendationClustering] | dict[str, object] | Response
Permission Required: kelvin.permission.recommendation.read.
getRecommendationClustering:POST/api/v4/recommendations/clustering/get- Parameters:
data (
Union[RecommendationClusteringGet,Mapping[str,object],None]) – requests.RecommendationClusteringGet, optional**kwargs (object) –
- Extra parameters for requests.RecommendationClusteringGet
get_recommendation_clustering: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[RecommendationClustering] | dict[str, object] | Response
- classmethod create_recommendation(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Recommendation. The new recommendation will automatically inherit the state pending.
- Overloads:
cls, data (Optional[Union[requests.RecommendationCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.RecommendationCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.RecommendationCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.RecommendationCreate
- Parameters:
- Return type:
RecommendationCreate | dict[str, object] | Response
Permission Required: kelvin.permission.recommendation.create.
createRecommendation:POST/api/v4/recommendations/create- Parameters:
- Return type:
RecommendationCreate | dict[str, object] | Response
- classmethod get_recommendation_last(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns the latest Recommendation for each resource that matches the request filters.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RecommendationLastGet, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RecommendationLastGet, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RecommendationLastGet, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.RecommendationLastGetPaginatedResponseCursor, responses.RecommendationLastGetPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RecommendationLastGet, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.Recommendation]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (RecommendationLastGet | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[Recommendation] | RecommendationLastGetPaginatedResponseCursor | RecommendationLastGetPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.recommendation.read.
getRecommendationLast:POST/api/v4/recommendations/last/get- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[RecommendationLastGet,Mapping[str,object],None]) – requests.RecommendationLastGet, optional**kwargs (object) –
- Extra parameters for requests.RecommendationLastGet
get_recommendation_last: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[Recommendation] | RecommendationLastGetPaginatedResponseCursor | RecommendationLastGetPaginatedResponseLimits | dict[str, object] | Response
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod list_recommendations(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns Recommendations that match the request filters.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RecommendationsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RecommendationsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RecommendationsList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.RecommendationsListPaginatedResponseCursor, responses.RecommendationsListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RecommendationsList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.Recommendation]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (RecommendationsList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[Recommendation] | RecommendationsListPaginatedResponseCursor | RecommendationsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.recommendation.read.
listRecommendations:POST/api/v4/recommendations/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[RecommendationsList,Mapping[str,object],None]) – requests.RecommendationsList, optional**kwargs (object) –
- Extra parameters for requests.RecommendationsList
list_recommendations: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[Recommendation] | RecommendationsListPaginatedResponseCursor | RecommendationsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod get_recommendation_range(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns Recommendations created within a specified time range that match the request filters.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RecommendationRangeGet, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RecommendationRangeGet, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RecommendationRangeGet, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.RecommendationRangeGetPaginatedResponseCursor, responses.RecommendationRangeGetPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.RecommendationRangeGet, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.Recommendation]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (RecommendationRangeGet | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[Recommendation] | RecommendationRangeGetPaginatedResponseCursor | RecommendationRangeGetPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.recommendation.read.
getRecommendationRange:POST/api/v4/recommendations/range/get- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[RecommendationRangeGet,Mapping[str,object],None]) – requests.RecommendationRangeGet, optional**kwargs (object) –
- Extra parameters for requests.RecommendationRangeGet
get_recommendation_range: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[Recommendation] | RecommendationRangeGetPaginatedResponseCursor | RecommendationRangeGetPaginatedResponseLimits | dict[str, object] | Response
- classmethod create_recommendation_type(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Recommendation Type.
- Overloads:
cls, data (Optional[Union[requests.RecommendationTypeCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.RecommendationTypeCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.RecommendationTypeCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.RecommendationTypeCreate
- Parameters:
- Return type:
RecommendationTypeCreate | dict[str, object] | Response
Permission Required: kelvin.permission.recommendation.create.
createRecommendationType:POST/api/v4/recommendations/types/create- Parameters:
- Return type:
RecommendationTypeCreate | dict[str, object] | Response
- classmethod list_recommendation_types(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, search=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Recommendation Type objects. The list can be optionally filtered and sorted on the server before being returned. Permission Required: kelvin.permission.recommendation.read.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.RecommendationTypesListPaginatedCursor, responses.RecommendationTypesListPaginatedLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.RecommendationType]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[RecommendationType] | RecommendationTypesListPaginatedCursor | RecommendationTypesListPaginatedLimits | dict[str, object] | Response
listRecommendationTypes:GET/api/v4/recommendations/types/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)search (
Optional[Sequence[str]]) –Sequence[str]Search and filter on the list based on the key name and title. The search is case insensitive and will find partial matches as well.fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[RecommendationType] | RecommendationTypesListPaginatedCursor | RecommendationTypesListPaginatedLimits | dict[str, object] | Response
- classmethod delete_recommendation_type(name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Recommendation Type. An error will be returned if there are any current Recommendations linked to the Recommendation Type. This cannot be undone once the API request has been submitted.
- Overloads:
cls, name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.recommendation.delete.
deleteRecommendationType:POST/api/v4/recommendations/types/{name}/delete
- classmethod get_recommendation_type(name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieves the parameters of a Recommendation Type.
- Overloads:
cls, name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.RecommendationTypeGet
- Parameters:
- Return type:
RecommendationTypeGet | dict[str, object] | Response
Permission Required: kelvin.permission.recommendation.read.
getRecommendationType:GET/api/v4/recommendations/types/{name}/get
- classmethod update_recommendation_type(name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Updates an existing Recommendation Type with any new values passed through the body parameters. All body parameters are optional and if not provided will remain unchanged. Only the unique identifier name can not be changed.
- Overloads:
cls, name (str), data (Optional[Union[requests.RecommendationTypeUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, name (str), data (Optional[Union[requests.RecommendationTypeUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, name (str), data (Optional[Union[requests.RecommendationTypeUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.RecommendationTypeUpdate
- Parameters:
- Return type:
RecommendationTypeUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.recommendation.update.
updateRecommendationType:POST/api/v4/recommendations/types/{name}/update- Parameters:
name (
str) –str, optional Recommendation Type key name to update. Case sensitive name.data (
Union[RecommendationTypeUpdate,Mapping[str,object],None]) – requests.RecommendationTypeUpdate, optional**kwargs (object) –
- Extra parameters for requests.RecommendationTypeUpdate
update_recommendation_type: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
RecommendationTypeUpdate | dict[str, object] | Response
- classmethod update_recommendation_accept(recommendation_id, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update a Recommendation state to accepted. This will trigger all objects in the actions parameter to be initiated. You will need to continue to monitor each action individually (for example a Control Change) to ensure it is completed successfully.
- Overloads:
cls, recommendation_id (str), data (Optional[Union[requests.RecommendationAcceptUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, recommendation_id (str), data (Optional[Union[requests.RecommendationAcceptUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, recommendation_id (str), data (Optional[Union[requests.RecommendationAcceptUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.recommendation.update.
updateRecommendationAccept:POST/api/v4/recommendations/{recommendation_id}/accept/update- Parameters:
recommendation_id (
str) –str, optional Recommendation key id to accept. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[RecommendationAcceptUpdate,Mapping[str,object],None]) – requests.RecommendationAcceptUpdate, optional**kwargs (object) –
- Extra parameters for requests.RecommendationAcceptUpdate
update_recommendation_accept: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
- classmethod delete_recommendation(recommendation_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Recommendation. Recommendations with states tagged as accepted or auto_accepted can not be deleted. This action cannot be undone once the API request has been submitted. Permission Required: kelvin.permission.recommendation.delete.
- Overloads:
cls, recommendation_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, recommendation_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, recommendation_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
deleteRecommendation:POST/api/v4/recommendations/{recommendation_id}/delete
- classmethod get_recommendation(recommendation_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a Recommendation by recommendation_id, including its current state and associated actions.
- Overloads:
cls, recommendation_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, recommendation_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, recommendation_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.RecommendationGet
- Parameters:
- Return type:
RecommendationGet | dict[str, object] | Response
Permission Required: kelvin.permission.recommendation.read.
getRecommendation:GET/api/v4/recommendations/{recommendation_id}/get
- classmethod update_recommendation_metadata(recommendation_id, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Replace a Recommendation’s metadata without changing its state, confidence, or message. Useful for attaching or correcting an external reference (e.g. a workorder or ticket ID) that is issued asynchronously, after the Recommendation has already been accepted or rejected. If metadata is provided, it fully replaces the existing value (pass an empty object to clear it); if omitted, existing metadata is left untouched. This endpoint works regardless of the Recommendation’s current state.
- Overloads:
cls, recommendation_id (str), data (Optional[Union[requests.RecommendationMetadataUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, recommendation_id (str), data (Optional[Union[requests.RecommendationMetadataUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, recommendation_id (str), data (Optional[Union[requests.RecommendationMetadataUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.RecommendationMetadataUpdate
- Parameters:
- Return type:
RecommendationMetadataUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.recommendation.update.
updateRecommendationMetadata:POST/api/v4/recommendations/{recommendation_id}/metadata/update- Parameters:
recommendation_id (
str) –str, optional Recommendation key id whose metadata is being updated. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[RecommendationMetadataUpdate,Mapping[str,object],None]) – requests.RecommendationMetadataUpdate, optional**kwargs (object) –
- Extra parameters for requests.RecommendationMetadataUpdate
update_recommendation_metadata: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
RecommendationMetadataUpdate | dict[str, object] | Response
- classmethod update_recommendation_reject(recommendation_id, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update a Recommendation state to rejected. All actions will only be archived and not implemented.
- Overloads:
cls, recommendation_id (str), data (Optional[Union[requests.RecommendationRejectUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, recommendation_id (str), data (Optional[Union[requests.RecommendationRejectUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, recommendation_id (str), data (Optional[Union[requests.RecommendationRejectUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.recommendation.update.
updateRecommendationReject:POST/api/v4/recommendations/{recommendation_id}/reject/update- Parameters:
recommendation_id (
str) –str, optional Recommendation key id to reject. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[RecommendationRejectUpdate,Mapping[str,object],None]) – requests.RecommendationRejectUpdate, optional**kwargs (object) –
- Extra parameters for requests.RecommendationRejectUpdate
update_recommendation_reject: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
Secret¶
Kelvin API Client.
- class kelvin.api.client.api.secret.Secret(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod create_secret(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new Secret.
- Overloads:
cls, data (Optional[Union[requests.SecretCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.SecretCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.SecretCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.SecretCreate
- Parameters:
- Return type:
SecretCreate | dict[str, object] | Response
Once this is created you can not change or see the value itself from Kelvin API. Retrieval of the value can only be done through an App.
Permission Required: kelvin.permission.secret.create.
createSecret:POST/api/v4/secrets/create- Parameters:
- Return type:
SecretCreate | dict[str, object] | Response
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod list_secrets(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, search=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Secrets. The actual Secret itself can not be retrieved here and is only available from an App.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.SecretsListPaginatedResponseCursor, responses.SecretsListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), search (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[responses.SecretItem]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[SecretItem] | SecretsListPaginatedResponseCursor | SecretsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.secret.read.
listSecrets:GET/api/v4/secrets/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[SecretItem] | SecretsListPaginatedResponseCursor | SecretsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_secret(secret_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete a Secret. This cannot be undone once the API request has been submitted.
- Overloads:
cls, secret_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, secret_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, secret_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.secret.delete.
deleteSecret:POST/api/v4/secrets/{secret_name}/delete
- classmethod update_secret(secret_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update an existing Secret with a new ‘value’. Any parameters that are not provided will remain unchanged.
- Overloads:
cls, secret_name (str), data (Optional[Union[requests.SecretUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, secret_name (str), data (Optional[Union[requests.SecretUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, secret_name (str), data (Optional[Union[requests.SecretUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.SecretUpdate
- Parameters:
- Return type:
SecretUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.secret.update.
updateSecret:POST/api/v4/secrets/{secret_name}/update- Parameters:
secret_name (
str) –str, optional Secret key name to update. The string can only contain lowercase alphanumeric characters and - characters.data (
Union[SecretUpdate,Mapping[str,object],None]) – requests.SecretUpdate, optional**kwargs (object) –
- Extra parameters for requests.SecretUpdate
update_secret: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
SecretUpdate | dict[str, object] | Response
Thread¶
Kelvin API Client.
- class kelvin.api.client.api.thread.Thread(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod create_thread(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create Thread
- Overloads:
cls, data (Optional[Union[requests.ThreadCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.ThreadCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.ThreadCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.ThreadCreate
- Parameters:
- Return type:
ThreadCreate | dict[str, object] | Response
Permission Required: kelvin.permission.threads.create.
createThread:POST/api/v4/threads/create- Parameters:
- Return type:
ThreadCreate | dict[str, object] | Response
- classmethod list_threads(type=None, related_to=None, user_id=None, _dry_run=False, _get_response=False, _client=None)[source]¶
List Threads
- Overloads:
cls, type (Optional[str]), related_to (Optional[str]), user_id (Optional[str]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, type (Optional[str]), related_to (Optional[str]), user_id (Optional[str]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, type (Optional[str]), related_to (Optional[str]), user_id (Optional[str]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[responses.ThreadsList]
- Parameters:
- Return type:
KList[ThreadsList] | dict[str, object] | Response
Pagination Sortable Columns: thread.id
Permission Required: kelvin.permission.threads.read.
listThreads:GET/api/v4/threads/list- Parameters:
- Return type:
KList[ThreadsList] | dict[str, object] | Response
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod delete_thread(thread_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Delete Thread
- Overloads:
cls, thread_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, thread_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, thread_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.threads.delete.
deleteThread:POST/api/v4/threads/{thread_id}/delete
- classmethod update_thread_follow(thread_id, follow=None, _dry_run=False, _get_response=False, _client=None)[source]¶
Update Thread Follow
- Overloads:
cls, thread_id (str), follow (Optional[bool]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, thread_id (str), follow (Optional[bool]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, thread_id (str), follow (Optional[bool]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.ThreadFollowUpdate
- Parameters:
- Return type:
ThreadFollowUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.threads.read.
updateThreadFollow:POST/api/v4/threads/{thread_id}/follow/update
- classmethod get_thread(thread_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Get Thread
- Overloads:
cls, thread_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, thread_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, thread_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.ThreadGet
- Parameters:
- Return type:
Permission Required: kelvin.permission.threads.read.
getThread:GET/api/v4/threads/{thread_id}/get
- classmethod create_thread_reply(thread_id, reply_id=None, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create Thread Reply
- Overloads:
cls, thread_id (str), reply_id (Optional[str]), data (Optional[Union[requests.ThreadReplyCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, thread_id (str), reply_id (Optional[str]), data (Optional[Union[requests.ThreadReplyCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, thread_id (str), reply_id (Optional[str]), data (Optional[Union[requests.ThreadReplyCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.ThreadReplyCreate
- Parameters:
- Return type:
ThreadReplyCreate | dict[str, object] | Response
Permission Required: kelvin.permission.threads.create.
createThreadReply:POST/api/v4/threads/{thread_id}/replies/create- Parameters:
- Return type:
ThreadReplyCreate | dict[str, object] | Response
- classmethod delete_thread_reply(thread_id, reply_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Delete Thread Reply
- Overloads:
cls, thread_id (str), reply_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, thread_id (str), reply_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, thread_id (str), reply_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → str
- Parameters:
- Return type:
Permission Required: kelvin.permission.threads.delete.
deleteThreadReply:POST/api/v4/threads/{thread_id}/replies/{reply_id}/delete
- classmethod update_thread_reply(thread_id, reply_id, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update Thread Reply
- Overloads:
cls, thread_id (str), reply_id (str), data (Optional[Union[requests.ThreadReplyUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, thread_id (str), reply_id (str), data (Optional[Union[requests.ThreadReplyUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, thread_id (str), reply_id (str), data (Optional[Union[requests.ThreadReplyUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.ThreadReplyUpdate
- Parameters:
- Return type:
ThreadReplyUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.threads.update.
updateThreadReply:POST/api/v4/threads/{thread_id}/replies/{reply_id}/update- Parameters:
- Return type:
ThreadReplyUpdate | dict[str, object] | Response
- classmethod update_thread_seen(thread_id, seen=None, _dry_run=False, _get_response=False, _client=None)[source]¶
Update Thread Seen
- Overloads:
cls, thread_id (str), seen (Optional[bool]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, thread_id (str), seen (Optional[bool]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, thread_id (str), seen (Optional[bool]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.ThreadSeenUpdate
- Parameters:
- Return type:
ThreadSeenUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.threads.read.
updateThreadSeen:POST/api/v4/threads/{thread_id}/seen/update
- classmethod update_thread(thread_id, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update Thread
- Overloads:
cls, thread_id (str), data (Optional[Union[requests.ThreadUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, thread_id (str), data (Optional[Union[requests.ThreadUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, thread_id (str), data (Optional[Union[requests.ThreadUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.ThreadUpdate
- Parameters:
- Return type:
ThreadUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.threads.update.
updateThread:POST/api/v4/threads/{thread_id}/update- Parameters:
- Return type:
ThreadUpdate | dict[str, object] | Response
Timeseries¶
Kelvin API Client.
- class kelvin.api.client.api.timeseries.Timeseries(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod create_timeseries(publish=None, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create Time Series Data individually or in bulk for one or more Asset / Data Stream resources.
- Overloads:
cls, publish (Optional[bool]), data (Optional[Union[requests.TimeseriesCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, publish (Optional[bool]), data (Optional[Union[requests.TimeseriesCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, publish (Optional[bool]), data (Optional[Union[requests.TimeseriesCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → str
- Parameters:
- Return type:
<span style=”color: #ff0000;font-weight: bold;”>WARNING</span> : If a value already exists at the defined time, then it will be overwritten with the new payload value. The old value will be lost and is not recoverable !
Permission Required: kelvin.permission.storage.create.
createTimeseries:POST/api/v4/timeseries/create- Parameters:
- Return type:
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod get_timeseries_last(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns the latest stored value for each selector in the request. For advanced field projection behavior, see the fields property description. This endpoint is not paginated.
- Overloads:
cls, data (Optional[Union[requests.TimeseriesLastGet, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.TimeseriesLastGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.TimeseriesLastGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[responses.TimeseriesLastGet]
- Parameters:
- Return type:
KList[TimeseriesLastGet] | dict[str, object] | Response
Permission Required: kelvin.permission.storage.read.
getTimeseriesLast:POST/api/v4/timeseries/last/get- Parameters:
- Return type:
KList[TimeseriesLastGet] | dict[str, object] | Response
- classmethod list_timeseries(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns a list of Time Series objects and its latest value. The list returned can be optionally restricted to one or more resources and/or sources.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.TimeseriesList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.TimeseriesList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.TimeseriesList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.TimeseriesListPaginatedResponseCursor, responses.TimeseriesListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.TimeseriesList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[type.TimeseriesData]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (TimeseriesList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[TimeseriesData] | TimeseriesListPaginatedResponseCursor | TimeseriesListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.storage.read.
listTimeseries:POST/api/v4/timeseries/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)data (
Union[TimeseriesList,Mapping[str,object],None]) – requests.TimeseriesList, optional**kwargs (object) –
- Extra parameters for requests.TimeseriesList
list_timeseries: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[TimeseriesData] | TimeseriesListPaginatedResponseCursor | TimeseriesListPaginatedResponseLimits | dict[str, object] | Response
- classmethod download_timeseries_range(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns a CSV file with Time Series data within the specified time range one or more resources (Asset /Data Stream pairs). Optional to preprocess and aggregate the data on the server using agg and time_bucket before downloading.
- Overloads:
cls, data (Optional[Union[requests.TimeseriesRangeDownload, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.TimeseriesRangeDownload, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.TimeseriesRangeDownload, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → str
- Parameters:
- Return type:
Permission Required: kelvin.permission.storage.read’.
downloadTimeseriesRange:POST/api/v4/timeseries/range/download- Parameters:
- Return type:
- classmethod get_timeseries_range(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Streams timeseries points within the requested time range for one or more resources. For field projection behavior, see the fields property description. When aggregation is enabled, fill controls empty aggregation buckets.
- Overloads:
cls, data (Optional[Union[requests.TimeseriesRangeGet, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.TimeseriesRangeGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.TimeseriesRangeGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KIterator[responses.TimeseriesRangeGet]
- Parameters:
- Return type:
KIterator[TimeseriesRangeGet] | dict[str, object] | Response
Permission Required: kelvin.permission.storage.read.
getTimeseriesRange:POST/api/v4/timeseries/range/get- Parameters:
- Return type:
KIterator[TimeseriesRangeGet] | dict[str, object] | Response
User¶
Kelvin API Client.
- class kelvin.api.client.api.user.User(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod list_users(username=None, email=None, name=None, search=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Users and its parameters. The list can be optionally filtered and sorted on the server before being returned. Permission Required: kelvin.permission.users.read.
- Overloads:
cls, username (Optional[Sequence[str]]), email (Optional[Sequence[str]]), name (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, username (Optional[Sequence[str]]), email (Optional[Sequence[str]]), name (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, username (Optional[Sequence[str]]), email (Optional[Sequence[str]]), name (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.UsersListPaginatedResponseCursor, responses.UsersListPaginatedResponseLimits]
cls, username (Optional[Sequence[str]]), email (Optional[Sequence[str]]), name (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[responses.UserItem]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[UserItem] | UsersListPaginatedResponseCursor | UsersListPaginatedResponseLimits | dict[str, object] | Response
listUsers:GET/api/v4/users/list- Parameters:
username (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key username. The filter is on the full name only. All values in array will be filtered as OR. The string can only contain lowercase alphanumeric characters and ., _ or - characters.email (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key email. The search is case insensitive and will find partial matches as well. All values in array will be filtered as OR.name (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the User’s first_name and last_name separated by a space. The filter is on exact matches only and is case sensitive. All values in array will be filtered as OR.search (
Optional[Sequence[str]]) –Sequence[str]Search Users by key first_name, last_name or email. All values in array will be filtered as OR. The search is case insensitive and will find partial matches as well.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[UserItem] | UsersListPaginatedResponseCursor | UsersListPaginatedResponseLimits | dict[str, object] | Response
- classmethod get_user_me(_dry_run=False, _get_response=False, _client=None)[source]¶
Get Current User
- Overloads:
cls, _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.UserMeGet
- Parameters:
- Return type:
Permission Required: n/a.
getUserMe:GET/api/v4/users/me
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod list_user_settings(names=None, search=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of User Settings and its parameters. The list can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.UserSettingsListPaginatedResponseCursor, responses.UserSettingsListPaginatedResponseLimits]
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.UserSetting]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[UserSetting] | UserSettingsListPaginatedResponseCursor | UserSettingsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.users.read.
listUserSettings:GET/api/v4/users/settings/list- Parameters:
names (
Optional[Sequence[str]]) –Sequence[str]Filter User Setting list based on the key setting_name.search (
Optional[Sequence[str]]) –Sequence[str]Search User Setting by key setting_name. All values in array will be filtered as OR. The search is case insensitive and will find partial matches as well.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[UserSetting] | UserSettingsListPaginatedResponseCursor | UserSettingsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_user_settings(setting_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing User Setting. This cannot be undone once the API request has been submitted.
- Overloads:
cls, setting_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, setting_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, setting_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.users.delete.
deleteUserSettings:POST/api/v4/users/settings/{setting_name}/delete
- classmethod get_user_settings(setting_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters of a User Setting.
- Overloads:
cls, setting_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, setting_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, setting_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.UserSettingsGet
- Parameters:
- Return type:
UserSettingsGet | dict[str, object] | Response
Permission Required: kelvin.permission.users.read.
getUserSettings:GET/api/v4/users/settings/{setting_name}/get- Parameters:
- Return type:
UserSettingsGet | dict[str, object] | Response
- classmethod update_user_settings(setting_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Updates an existing User Setting payload with any new values.
- Overloads:
cls, setting_name (str), data (Optional[Union[requests.UserSettingsUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, setting_name (str), data (Optional[Union[requests.UserSettingsUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, setting_name (str), data (Optional[Union[requests.UserSettingsUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.UserSettingsUpdate
- Parameters:
- Return type:
UserSettingsUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.users.update.
updateUserSettings:POST/api/v4/users/settings/{setting_name}/update- Parameters:
setting_name (
str) –str, optional The User Setting key setting_name. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[UserSettingsUpdate,Mapping[str,object],None]) – requests.UserSettingsUpdate, optional**kwargs (object) –
- Extra parameters for requests.UserSettingsUpdate
update_user_settings: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
UserSettingsUpdate | dict[str, object] | Response
Returns a list of Shared Settings and its parameters. The list can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.SharedSettingsListPaginatedResponseCursor, responses.SharedSettingsListPaginatedResponseLimits]
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[type.SharedSetting]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[SharedSetting] | SharedSettingsListPaginatedResponseCursor | SharedSettingsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.users.read.
listSharedSettings:GET/api/v4/users/shared/settings/list- Parameters:
names (
Optional[Sequence[str]]) –Sequence[str]Filter Shared Setting list based on the key setting_name.search (
Optional[Sequence[str]]) –Sequence[str]Search Shared Setting by key setting_name. All values in array will be filtered as OR. The search is case insensitive and will find partial matches as well.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[SharedSetting] | SharedSettingsListPaginatedResponseCursor | SharedSettingsListPaginatedResponseLimits | dict[str, object] | Response
Permanently delete an existing Shared Setting. This cannot be undone once the API request has been submitted.
- Overloads:
cls, setting_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, setting_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, setting_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.users.delete.
deleteSharedSettings:POST/api/v4/users/shared/settings/{setting_name}/delete
Retrieve the parameters of a Shared Setting.
- Overloads:
cls, setting_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, setting_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, setting_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.SharedSettingsGet
- Parameters:
- Return type:
SharedSettingsGet | dict[str, object] | Response
Permission Required: kelvin.permission.users.read.
getSharedSettings:GET/api/v4/users/shared/settings/{setting_name}/get- Parameters:
- Return type:
SharedSettingsGet | dict[str, object] | Response
Updates an existing Shared Setting payload with any new values.
- Overloads:
cls, setting_name (str), data (Optional[Union[requests.SharedSettingsUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, setting_name (str), data (Optional[Union[requests.SharedSettingsUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, setting_name (str), data (Optional[Union[requests.SharedSettingsUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.SharedSettingsUpdate
- Parameters:
- Return type:
SharedSettingsUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.users.update.
updateSharedSettings:POST/api/v4/users/shared/settings/{setting_name}/update- Parameters:
setting_name (
str) –str, optional The Shared Setting key setting_name. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[SharedSettingsUpdate,Mapping[str,object],None]) – requests.SharedSettingsUpdate, optional**kwargs (object) –
- Extra parameters for requests.SharedSettingsUpdate
update_shared_settings: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
SharedSettingsUpdate | dict[str, object] | Response
- classmethod get_user(user_id, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters of a User.
- Overloads:
cls, user_id (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, user_id (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, user_id (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.UserGet
- Parameters:
- Return type:
Permission Required: kelvin.permission.users.read.
getUser:GET/api/v4/users/{user_id}/get
AppRegistry (Deprecated)¶
Kelvin API Client.
- class kelvin.api.client.api.deprecated_app_registry.DeprecatedAppRegistry(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod create_legacy_app(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Create a new App or App Version in the App Registry. A new version will be automatically appended if the App already exists.
- Overloads:
cls, data (Optional[Union[requests.LegacyAppCreate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.LegacyAppCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.LegacyAppCreate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.LegacyAppCreate
- Parameters:
- Return type:
LegacyAppCreate | dict[str, object] | Response
Note : The Kelvin API request is not the recommended way to create an App and will not be documented. Check Kelvin’s documentation on the best methods to create Apps.
Because the Applications have migrated to new types, this endpoint converts the legacy type to the current one as shown in the following table:
Legacy Type | Current Type ||-------------|————–| | kelvin | app | | bridge | importer | | `docker | docker |
Permission Required: kelvin.permission.app_registry.create.
createLegacyApp:POST/api/v4/appregistry/create- Parameters:
- Return type:
LegacyAppCreate | dict[str, object] | Response
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod list_legacy_app_registry_apps(type=None, search=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Apps in the App Registry and its parameters. The list can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, type (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, type (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, type (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.LegacyAppRegistryAppsListPaginatedResponseCursor, responses.LegacyAppRegistryAppsListPaginatedResponseLimits]
cls, type (Optional[Sequence[str]]), search (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[responses.LegacyAppItem]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[LegacyAppItem] | LegacyAppRegistryAppsListPaginatedResponseCursor | LegacyAppRegistryAppsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.app_registry.read.
listLegacyAppRegistryApps:GET/api/v4/appregistry/list- Parameters:
type (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key type. This type is the legacy type, mapped from the current App Types.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[LegacyAppItem] | LegacyAppRegistryAppsListPaginatedResponseCursor | LegacyAppRegistryAppsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_legacy_app(app_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete all versions of an App in the App Registry. This cannot be undone once the API request has been submitted.
- Overloads:
cls, app_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, app_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, app_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.app_registry.delete.
deleteLegacyApp:POST/api/v4/appregistry/{app_name}/delete
- classmethod get_legacy_app_registry_app(app_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters of an App in the App Registry.
- Overloads:
cls, app_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, app_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, app_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.LegacyAppRegistryAppGet
- Parameters:
- Return type:
LegacyAppRegistryAppGet | dict[str, object] | Response
Because the Applications have migrated to new types, this endpoint converts the current type to the legacy one as shown in the following table:
Current Type | Legacy Type ||--------------|————-| | app | kelvin | | importer | bridge | | exporter | bridge | | docker | docker |
Permission Required: kelvin.permission.app_registry.read.
getLegacyAppRegistryApp:GET/api/v4/appregistry/{app_name}/get- Parameters:
- Return type:
LegacyAppRegistryAppGet | dict[str, object] | Response
- classmethod update_legacy_app(app_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update an existing App with a new ‘title’ and/or ‘description’. Any parameters that are not provided will remain unchanged.
- Overloads:
cls, app_name (str), data (Optional[Union[requests.LegacyAppUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, app_name (str), data (Optional[Union[requests.LegacyAppUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, app_name (str), data (Optional[Union[requests.LegacyAppUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.LegacyAppUpdate
- Parameters:
- Return type:
LegacyAppUpdate | dict[str, object] | Response
Permission Required: kelvin.permission.app_registry.update.
updateLegacyApp:POST/api/v4/appregistry/{app_name}/update- Parameters:
app_name (
str) –str, optional App Registry App key name to retrieve. The string can only contain lowercase alphanumeric characters and ., _ or - characters.data (
Union[LegacyAppUpdate,Mapping[str,object],None]) – requests.LegacyAppUpdate, optional**kwargs (object) –
- Extra parameters for requests.LegacyAppUpdate
update_legacy_app: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
LegacyAppUpdate | dict[str, object] | Response
- classmethod delete_legacy_app_version(app_name, app_version, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently one version of an App in the App Registry. All other versions of an App will remain unaffected. This cannot be undone once the API request has been submitted.
- Overloads:
cls, app_name (str), app_version (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, app_name (str), app_version (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, app_name (str), app_version (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.app_registry.delete.
deleteLegacyAppVersion:POST/api/v4/appregistry/{app_name}/versions/{app_version}/delete- Parameters:
app_name (
str) –str, optional App Registry App key name to delete. The string can only contain lowercase alphanumeric characters and ., _ or - characters.app_version (
str) –str, optional Version number of the App in the App Registry to delete._dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
- classmethod get_legacy_app_version(app_name, app_version, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters of a specific version of an App in the App Registry.
- Overloads:
cls, app_name (str), app_version (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, app_name (str), app_version (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, app_name (str), app_version (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.LegacyAppVersionGet
- Parameters:
- Return type:
LegacyAppVersionGet | dict[str, object] | Response
Because the Applications have migrated to new types, this endpoint converts the current type to the legacy one as shown in the following table:
Current Type | Legacy Type ||--------------|————-| | app | kelvin | | importer | bridge | | exporter | bridge | | docker | docker |
Permission Required: kelvin.permission.app_registry.read.
getLegacyAppVersion:GET/api/v4/appregistry/{app_name}/versions/{app_version}/get- Parameters:
app_name (
str) –str, optional App Registry App key name to retrieve. The string can only contain lowercase alphanumeric characters and ., _ or - characters.app_version (
str) –str, optional Version number of the App in the App Registry to retrieve._dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
LegacyAppVersionGet | dict[str, object] | Response
Bridge (Deprecated)¶
Kelvin API Client.
- class kelvin.api.client.api.deprecated_bridge.DeprecatedBridge(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod deploy_bridge(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Deploy a Bridge (Connection) from the App Registry as a Workload to a Cluster/Node.
- Overloads:
cls, data (Optional[Union[requests.BridgeDeploy, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.BridgeDeploy, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.BridgeDeploy, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.BridgeDeploy
- Parameters:
- Return type:
BridgeDeploy | dict[str, object] | Response
Permission Required: kelvin.permission.bridge.create.
deployBridge:POST/api/v4/bridges/deploy- Parameters:
- Return type:
BridgeDeploy | dict[str, object] | Response
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod list_bridges(names=None, search=None, cluster_name=None, workload_name=None, status_state=None, app_name=None, app_version=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Bridges (also known as Connections) and its parameters. The list can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), cluster_name (Optional[Sequence[str]]), workload_name (Optional[Sequence[str]]), status_state (Optional[Sequence[str]]), app_name (Optional[Sequence[str]]), app_version (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), cluster_name (Optional[Sequence[str]]), workload_name (Optional[Sequence[str]]), status_state (Optional[Sequence[str]]), app_name (Optional[Sequence[str]]), app_version (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), cluster_name (Optional[Sequence[str]]), workload_name (Optional[Sequence[str]]), status_state (Optional[Sequence[str]]), app_name (Optional[Sequence[str]]), app_version (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.BridgesListPaginatedResponseCursor, responses.BridgesListPaginatedResponseLimits]
cls, names (Optional[Sequence[str]]), search (Optional[Sequence[str]]), cluster_name (Optional[Sequence[str]]), workload_name (Optional[Sequence[str]]), status_state (Optional[Sequence[str]]), app_name (Optional[Sequence[str]]), app_version (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[responses.BridgeItem]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[BridgeItem] | BridgesListPaginatedResponseCursor | BridgesListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.bridge.read.
listBridges:GET/api/v4/bridges/list- Parameters:
names (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key name. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters.search (
Optional[Sequence[str]]) –Sequence[str]Search and filter on the list based on the keys name, title (Display Name), cluster_name, node_name and workload_name. All strings in the array are treated as OR. The search is case insensitive and will find partial matches as well.cluster_name (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key cluster_name. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters. If set, it will override acp_nameworkload_name (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key workload_name. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters.status_state (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key state in the status object. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters.app_name (
Optional[Sequence[str]]) –Sequence[str]Unique identifier name of the App. The string can only contain lowercase alphanumeric characters and ., _ or - characters.app_version (
Optional[Sequence[str]]) –Sequence[str]App versionpagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[BridgeItem] | BridgesListPaginatedResponseCursor | BridgesListPaginatedResponseLimits | dict[str, object] | Response
- classmethod delete_bridge(bridge_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Permanently delete an existing Bridge (Connection). You will no longer receive Asset / Data Stream data from the assets associated with the Bridge (Connection). This cannot be undone once the API request has been submitted.
- Overloads:
cls, bridge_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, bridge_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, bridge_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.bridge.delete.
deleteBridge:POST/api/v4/bridges/{bridge_name}/delete
- classmethod get_bridge(bridge_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters of a Bridge (Connection).
- Overloads:
cls, bridge_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, bridge_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, bridge_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.BridgeGet
- Parameters:
- Return type:
Permission Required: kelvin.permission.bridge.read.
getBridge:GET/api/v4/bridges/{bridge_name}/get
- classmethod start_bridge(bridge_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Start running the Bridge (Connection).
- Overloads:
cls, bridge_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, bridge_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, bridge_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.bridge.update.
startBridge:GET/api/v4/bridges/{bridge_name}/start
- classmethod stop_bridge(bridge_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Stop running the Bridge (Connection). Permission Required: kelvin.permission.bridge.update.
- Overloads:
cls, bridge_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, bridge_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, bridge_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
stopBridge:GET/api/v4/bridges/{bridge_name}/stop
Parameters (Deprecated)¶
Kelvin API Client.
- class kelvin.api.client.api.deprecated_parameters.DeprecatedParameters(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod update_parameters_app_version(app_name, version, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Bulk update Parameters for multiple resources of a given App Version. Parameters belonging to the App Version but not specified in the payload will not be changed. Setting a value to null will cause the parameter to be unset. Additionally, it’s also possible to set a comment for each parameter change.
- Overloads:
cls, app_name (str), version (str), data (Optional[Union[requests.ParametersAppVersionUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, app_name (str), version (str), data (Optional[Union[requests.ParametersAppVersionUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, app_name (str), version (str), data (Optional[Union[requests.ParametersAppVersionUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
The source of the change will, by default, be the user making the API request. If the user making the request is a Service Account, it can, optionally, set its own source KRN.
updateParametersAppVersion:POST/api/v4/parameters/app/{app_name}/versions/{version}/update- Parameters:
app_name (
str) –str, optional Application key name to associate with Assets (resources) to perform the required actions.data (
Union[ParametersAppVersionUpdate,Mapping[str,object],None]) – requests.ParametersAppVersionUpdate, optional**kwargs (object) –
- Extra parameters for requests.ParametersAppVersionUpdate
update_parameters_app_version: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod list_parameters_definitions(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns a list of Parameters and its definition in each App. The list can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ParametersDefinitionsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ParametersDefinitionsList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ParametersDefinitionsList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.ParametersDefinitionsListPaginatedResponseCursor, responses.ParametersDefinitionsListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ParametersDefinitionsList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[responses.ParameterDefinitionItem]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (ParametersDefinitionsList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[ParameterDefinitionItem] | ParametersDefinitionsListPaginatedResponseCursor | ParametersDefinitionsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.parameter.read.
listParametersDefinitions:POST/api/v4/parameters/definitions/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)sort_by (
Optional[Sequence[str]]) –Sequence[str]Sort the results by one or more enumerators.data (
Union[ParametersDefinitionsList,Mapping[str,object],None]) – requests.ParametersDefinitionsList, optional**kwargs (object) –
- Extra parameters for requests.ParametersDefinitionsList
list_parameters_definitions: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[ParameterDefinitionItem] | ParametersDefinitionsListPaginatedResponseCursor | ParametersDefinitionsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod list_resource_parameters(pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, data=None, fetch=True, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns a list of Parameters and all values for each Resource. The list can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ResourceParametersList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ResourceParametersList, Mapping[str, object]]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ResourceParametersList, Mapping[str, object]]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → Union[responses.ResourceParametersListPaginatedResponseCursor, responses.ResourceParametersListPaginatedResponseLimits]
cls, pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), data (Optional[Union[requests.ResourceParametersList, Mapping[str, object]]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → KList[responses.ParameterValueHistorianItem]
- Parameters:
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
data (ResourceParametersList | Mapping[str, object] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
kwargs (object)
- Return type:
KList[ParameterValueHistorianItem] | ResourceParametersListPaginatedResponseCursor | ResourceParametersListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.parameter.read.
listResourceParameters:POST/api/v4/parameters/resources/list- Parameters:
pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)sort_by (
Optional[Sequence[str]]) –Sequence[str]Sort the results by one or more enumerators.data (
Union[ResourceParametersList,Mapping[str,object],None]) – requests.ResourceParametersList, optional**kwargs (object) –
- Extra parameters for requests.ResourceParametersList
list_resource_parameters: dict
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
KList[ParameterValueHistorianItem] | ResourceParametersListPaginatedResponseCursor | ResourceParametersListPaginatedResponseLimits | dict[str, object] | Response
- classmethod get_parameters_values(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Returns a list of all unique values for each Parameter. Default values will not be shown. If the App is not specified, then the response will be grouped by App Name.
- Overloads:
cls, data (Optional[Union[requests.ParametersValuesGet, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.ParametersValuesGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.ParametersValuesGet, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.ParametersValuesGet
- Parameters:
- Return type:
ParametersValuesGet | dict[str, object] | Response
Permission Required: kelvin.permission.parameter.read.
getParametersValues:POST/api/v4/parameters/values/get- Parameters:
- Return type:
ParametersValuesGet | dict[str, object] | Response
Workload (Deprecated)¶
Kelvin API Client.
- class kelvin.api.client.api.deprecated_workload.DeprecatedWorkload(_owner=None, _name=None, **kwargs)[source]¶
Bases:
ApiServiceModel- Parameters:
_owner (Optional['BaseModel'])
_name (Optional[str])
- classmethod apply_legacy_workload(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Initiate final deploy action for the downloaded Workloads. Only valid for Workloads that were previously deployed with the keys staged set to true and instantly_apply set to false.
- Overloads:
cls, data (Optional[Union[requests.LegacyWorkloadApply, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.LegacyWorkloadApply, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.LegacyWorkloadApply, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.workload.update.
applyLegacyWorkload:POST/api/v4/workloads/apply- Parameters:
- Return type:
- classmethod deploy_legacy_workload(data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Deploy an App from the App Registry as a Workload to a Cluster/Node.
- Overloads:
cls, data (Optional[Union[requests.LegacyWorkloadDeploy, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, data (Optional[Union[requests.LegacyWorkloadDeploy, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, data (Optional[Union[requests.LegacyWorkloadDeploy, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.LegacyWorkloadDeploy
- Parameters:
- Return type:
LegacyWorkloadDeploy | dict[str, object] | Response | None
Permission Required: kelvin.permission.workload.update.
deployLegacyWorkload:POST/api/v4/workloads/deploy- Parameters:
- Return type:
LegacyWorkloadDeploy | dict[str, object] | Response | None
- fields = None¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- schema = None¶
- classmethod list_legacy_workloads(search=None, app_name=None, app_version=None, acp_name=None, cluster_name=None, node_name=None, workload_name=None, enabled=None, asset_name=None, staged=None, download_statuses=None, pagination_type=None, page_size=10000, page=None, next=None, previous=None, direction=None, nulls=None, sort_by=None, fetch=True, _dry_run=False, _get_response=False, _client=None)[source]¶
Returns a list of Workload objects. The list can be optionally filtered and sorted on the server before being returned.
- Overloads:
cls, search (Optional[Sequence[str]]), app_name (Optional[Sequence[str]]), app_version (Optional[Sequence[str]]), acp_name (Optional[Sequence[str]]), cluster_name (Optional[Sequence[str]]), node_name (Optional[Sequence[str]]), workload_name (Optional[Sequence[str]]), enabled (Optional[bool]), asset_name (Optional[str]), staged (Optional[bool]), download_statuses (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, search (Optional[Sequence[str]]), app_name (Optional[Sequence[str]]), app_version (Optional[Sequence[str]]), acp_name (Optional[Sequence[str]]), cluster_name (Optional[Sequence[str]]), node_name (Optional[Sequence[str]]), workload_name (Optional[Sequence[str]]), enabled (Optional[bool]), asset_name (Optional[str]), staged (Optional[bool]), download_statuses (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (bool), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, search (Optional[Sequence[str]]), app_name (Optional[Sequence[str]]), app_version (Optional[Sequence[str]]), acp_name (Optional[Sequence[str]]), cluster_name (Optional[Sequence[str]]), node_name (Optional[Sequence[str]]), workload_name (Optional[Sequence[str]]), enabled (Optional[bool]), asset_name (Optional[str]), staged (Optional[bool]), download_statuses (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[False]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → Union[responses.LegacyWorkloadsListPaginatedResponseCursor, responses.LegacyWorkloadsListPaginatedResponseLimits]
cls, search (Optional[Sequence[str]]), app_name (Optional[Sequence[str]]), app_version (Optional[Sequence[str]]), acp_name (Optional[Sequence[str]]), cluster_name (Optional[Sequence[str]]), node_name (Optional[Sequence[str]]), workload_name (Optional[Sequence[str]]), enabled (Optional[bool]), asset_name (Optional[str]), staged (Optional[bool]), download_statuses (Optional[Sequence[str]]), pagination_type (Optional[Literal[‘limits’, ‘cursor’, ‘stream’]]), page_size (Optional[int]), page (Optional[int]), next (Optional[str]), previous (Optional[str]), direction (Optional[Literal[‘asc’, ‘desc’]]), nulls (Optional[Literal[‘first’, ‘last’]]), sort_by (Optional[Sequence[str]]), fetch (Literal[True]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → KList[responses.LegacyWorkloadItem]
- Parameters:
enabled (bool | None)
asset_name (str | None)
staged (bool | None)
pagination_type (Literal['limits', 'cursor', 'stream'] | None)
page_size (int | None)
page (int | None)
next (str | None)
previous (str | None)
direction (Literal['asc', 'desc'] | None)
nulls (Literal['first', 'last'] | None)
fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[LegacyWorkloadItem] | LegacyWorkloadsListPaginatedResponseCursor | LegacyWorkloadsListPaginatedResponseLimits | dict[str, object] | Response
Permission Required: kelvin.permission.workload.read.
listLegacyWorkloads:GET/api/v4/workloads/list- Parameters:
search (
Optional[Sequence[str]]) –Sequence[str]Search and filter on the list based on the keys name, title (Display Name), app_name, cluster_name and node_name. All strings in the array are treated as OR. The search is case insensitive and will find partial matches as well.app_name (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key app_name. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters.app_version (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key app_version. The filter is on the full value only. The string can only contain lowercase alphanumeric characters and ., _ or - characters.acp_name (
Optional[Sequence[str]]) –Sequence[str][Deprecated] A filter on the list based on the key acp_name. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters.cluster_name (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key cluster_name. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters. If set, it will override acp_namenode_name (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key node_name. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters.workload_name (
Optional[Sequence[str]]) –Sequence[str]A filter on the list based on the key name. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters.enabled (
Optional[bool]) –boolA filter on the list based on the key status (start/stop function in Kelvin UI) of the Workloads.asset_name (
Optional[str]) –strA filter on the list based on Asset name associated with the Workload. The filter is on the full name only. The string can only contain lowercase alphanumeric characters and ., _ or - characters.staged (
Optional[bool]) –boolA filter on the key staged. Using true will only show staged workloads, false will show all workloads.pagination_type (
Optional[Literal['limits','cursor','stream']]) –Literal['limits', 'cursor', 'stream']Method of pagination to use for return results where total_items is greater than page_size. cursor and limits will return one page of results, stream will return all results. (‘limits’, ‘cursor’, ‘stream’)page_size (
Optional[int]) –intNumber of objects to be returned in each page. Page size can range between 1 and 10000 objects.page (
Optional[int]) –intAn integer for the wanted page of results. Used only with pagination_type set as limits.next (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to start for the next page. Used only with pagination_type set as cursor.previous (
Optional[str]) –strAn alphanumeric string bookmark to indicate where to end for the previous page. Used only with pagination_type set as cursor.direction (
Optional[Literal['asc','desc']]) –Literal['asc', 'desc']Sorting order according to the sort_by parameter. (‘asc’, ‘desc’)nulls (
Optional[Literal['first','last']]) –Literal['first', 'last']Null ordering according to the sort_by parameter. Defaults to first for ascending order and last for descending order. (‘first’, ‘last’)fetch (bool)
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
KList[LegacyWorkloadItem] | LegacyWorkloadsListPaginatedResponseCursor | LegacyWorkloadsListPaginatedResponseLimits | dict[str, object] | Response
- classmethod get_legacy_workload_configuration(workload_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the configuration of a Workload.
- Overloads:
cls, workload_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, workload_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, workload_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.LegacyWorkloadConfigurationGet
- Parameters:
- Return type:
LegacyWorkloadConfigurationGet | dict[str, object] | Response | None
Permission Required: kelvin.permission.workload.read.
getLegacyWorkloadConfiguration:GET/api/v4/workloads/{workload_name}/configurations/get
- classmethod update_legacy_workload_configuration(workload_name, data=None, _dry_run=False, _get_response=False, _client=None, **kwargs)[source]¶
Update the configuration of a Workload.
- Overloads:
cls, workload_name (str), data (Optional[Union[requests.LegacyWorkloadConfigurationUpdate, Mapping[str, object]]]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]), kwargs (object) → dict[str, object]
cls, workload_name (str), data (Optional[Union[requests.LegacyWorkloadConfigurationUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]), kwargs (object) → Response
cls, workload_name (str), data (Optional[Union[requests.LegacyWorkloadConfigurationUpdate, Mapping[str, object]]]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]), kwargs (object) → responses.LegacyWorkloadConfigurationUpdate
- Parameters:
- Return type:
LegacyWorkloadConfigurationUpdate | dict[str, object] | Response | None
Permission Required: kelvin.permission.workload.update
`WARNING!!`: Sending an empty configuration object will remove all configurations.
updateLegacyWorkloadConfiguration:POST/api/v4/workloads/{workload_name}/configurations/update- Parameters:
workload_name (
str) –str, optional Unique identifier name of the Workload.data (
Union[LegacyWorkloadConfigurationUpdate,Mapping[str,object],None]) – requests.LegacyWorkloadConfigurationUpdate, optional**kwargs (object) –
- Extra parameters for requests.LegacyWorkloadConfigurationUpdate
update_legacy_workload_configuration: dict
_dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
**kwargs
- Return type:
LegacyWorkloadConfigurationUpdate | dict[str, object] | Response | None
- classmethod download_legacy_workload(workload_name, address=None, _dry_run=False, _get_response=False, _client=None)[source]¶
Download the Workload package file for offline installation on the Edge System. The system automatically generates the file for download if the package is not already available.
- Overloads:
cls, workload_name (str), address (Optional[bool]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, workload_name (str), address (Optional[bool]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, workload_name (str), address (Optional[bool]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → str
- Parameters:
- Return type:
Permission Required: kelvin.permission.workload.read.
downloadLegacyWorkload:GET/api/v4/workloads/{workload_name}/download- Parameters:
- Return type:
- classmethod get_legacy_workload(workload_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Retrieve the parameters of a Workload.
- Overloads:
cls, workload_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, workload_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, workload_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.LegacyWorkloadGet
- Parameters:
- Return type:
LegacyWorkloadGet | dict[str, object] | Response
Permission Required: kelvin.permission.workload.read.
getLegacyWorkload:GET/api/v4/workloads/{workload_name}/get
- classmethod get_legacy_workload_logs(workload_name, tail_lines=None, since_time=None, _dry_run=False, _get_response=False, _client=None)[source]¶
Get Workload Logs
- Overloads:
cls, workload_name (str), tail_lines (Optional[int]), since_time (Optional[datetime]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, workload_name (str), tail_lines (Optional[int]), since_time (Optional[datetime]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, workload_name (str), tail_lines (Optional[int]), since_time (Optional[datetime]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → responses.LegacyWorkloadLogsGet
- Parameters:
- Return type:
LegacyWorkloadLogsGet | dict[str, object] | Response
Permission Required: kelvin.permission.workload.read.
getLegacyWorkloadLogs:GET/api/v4/workloads/{workload_name}/logs/get- Parameters:
workload_name (
str) –str, optional Unique identifier name of the Workload.tail_lines (
Optional[int]) –intSpecify the number of the most recent log lines to retrieve, counting backwards from the latest entry.since_time (
Optional[datetime]) –datetimeUTC time of the starting point for log retrieval, formatted in RFC 3339._dry_run (bool)
_get_response (bool)
_client (SyncBaseClient | None)
- Return type:
LegacyWorkloadLogsGet | dict[str, object] | Response
- classmethod start_workload(workload_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Start running the Workload.
- Overloads:
cls, workload_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, workload_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, workload_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.workload.update.
startWorkload:GET/api/v4/workloads/{workload_name}/start
- classmethod stop_workload(workload_name, _dry_run=False, _get_response=False, _client=None)[source]¶
Stop running the Workload.
- Overloads:
cls, workload_name (str), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, workload_name (str), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, workload_name (str), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.workload.update.
stopWorkload:GET/api/v4/workloads/{workload_name}/stop
- classmethod undeploy_workload(workload_name, staged=None, _dry_run=False, _get_response=False, _client=None)[source]¶
Undeploy Workload from the Edge System.
- Overloads:
cls, workload_name (str), staged (Optional[bool]), _dry_run (Literal[True]), _get_response (bool), _client (Optional[SyncBaseClient]) → dict[str, object]
cls, workload_name (str), staged (Optional[bool]), _dry_run (Literal[False]), _get_response (Literal[True]), _client (Optional[SyncBaseClient]) → Response
cls, workload_name (str), staged (Optional[bool]), _dry_run (Literal[False]), _get_response (Literal[False]), _client (Optional[SyncBaseClient]) → None
- Parameters:
- Return type:
Permission Required: kelvin.permission.workload.delete.
undeployWorkload:POST/api/v4/workloads/{workload_name}/undeploy- Parameters:
- Return type: