Skip to main content

Interface IXperiflowStorageClient

Namespace: Workspace.XBR.Xperiflow.Core.RestApi.Storage

Assembly: Xperiflow.dll

Declaration
public interface IXperiflowStorageClient

Methods

GetDatabaseNamesResourceAsync(XperiflowSessionInfo, MemoizedCacheInfo?, CancellationToken)

DatabaseNamesResource

Declaration
Task<GetDatabaseNamesResourceResponseContext> GetDatabaseNamesResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

Get names of the databases in the elastic pool

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.GetDatabaseNamesResourceResponseContext >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

GetDatabaseSizeFragmentationResourceAsync(XperiflowSessionInfo, string, string, IEnumerable<string>?, string?, int?, int?, string?, MemoizedCacheInfo?, CancellationToken)

DatabaseSizeFragmentationResource

Declaration
Task<GetDatabaseSizeFragmentationResourceResponseContext> GetDatabaseSizeFragmentationResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, string database_resource, string database_schema, IEnumerable<string>? fields = null, string? filter = null, int? page = null, int? records_per_page = null, string? order_bys = null, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

Gets a information in relation to a database by project id. If no project id is supplied, it will get info from the DataSense_Framework database instead of a project.

Body Params:

  • project_id Optional(guid) The project unique identifier.

Returns:

  • project_id Optional(str): The project unique identifier.

  • database_resource (str): The project unique resource identifier

  • database_schema (str): The project unique schema identifier

  • database_current_size_datatable (DataTableContext): A datatable containing two columns

  • database_name (str): the database schema

  • database_size (str): the database size

  • database_size_limit_datatable (DataTableContext): A single column datatable containing the max size in bytes

  • DatabaseDataMaxSizeInBytes (float)

  • fragmentation_datatable (DataTableContext): A datatable containing relevant fragmentation information. Columns include:

  • Table (str)

  • Index (str)

  • partition_number (int)

  • fragmentation_percent (float)

  • page_count (int)

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.GetDatabaseSizeFragmentationResourceResponseContext >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
System.Stringdatabase_resourcethe database resource.
System.Stringdatabase_schemathe database schema.
System.Collections.Generic.IEnumerable<System.String>fieldsA json list of column names to return in the request.
System.StringfilterA json dictionary of a filter statement.
System.Nullable<System.Int32>pageThe page to return if using pagination.
System.Nullable<System.Int32>records_per_pageThe amount of records per page to return if using pagination.
System.Stringorder_bysA json dictionary containing an order by statement.
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

PostDatabaseCleanupResourceAsync(XperiflowSessionInfo, BodyCleanupContext, MemoizedCacheInfo?, CancellationToken)

DatabaseCleanupResource

Declaration
Task<NullableIntItemsIdentifierXperiflowResponseContext> PostDatabaseCleanupResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, BodyCleanupContext body, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

Commits a Feature DataSource to the BuildInfo. Note that there are only certain states of the Build that this is an allowed action.

Body Params:

  • project_ids (List/[str{guid}/], optional): The project unique identifiers you would like to add jobs to. If a list of project ids are not given, this api is limited to only reorganizing the framework database.

  • clean_types (List/[str/]): The clean types you would like to include for each project.

  • Choices:

    • "old_data_removal" - Will clean up prediction and pipeline data

    • "data_reorganize" - Will do an index rebuild

  • include_framework (bool): Whether to include the framework database when doing an index rebuild. This will only execute if you include "data_reorganize" in your clean types.

Returns:

  • job_ids (List/[int/]): The list of new job_ids that have been inserted as a result of the post

  • modified: (bool): whether the post modified anything successfully

  • message (str): Will tell you if the job(s) were successfully inserted, or will include error if unsuccessful.

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.NullableIntItemsIdentifierXperiflowResponseContext >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
Workspace.XBR.Xperiflow.Core.RestApi.Storage.BodyCleanupContextbody
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

GetMetaFileInfoResourceResourceAsync(XperiflowSessionInfo, string, string, MemoizedCacheInfo?, CancellationToken)

MetaFileInfoResource

Declaration
Task<GetMetaFileInfoResourceResponseContext> GetMetaFileInfoResourceResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, string path, string connection_key_reference, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

API dedicated to retrieving file metadata.

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.GetMetaFileInfoResourceResponseContext >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
System.StringpathThe path to the file.
System.Stringconnection_key_referenceThe filesystem metadata connection key reference.
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

DeleteMetaFileInfoResourceAsync(XperiflowSessionInfo, string, string, MemoizedCacheInfo?, CancellationToken)

MetaFileInfoResource

Declaration
Task<NullDataXperiflowResponseContext> DeleteMetaFileInfoResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, string path, string connection_key_reference, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

API dedicated to deleting file metadata.

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.NullDataXperiflowResponseContext >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
System.StringpathThe path to the file.
System.Stringconnection_key_referenceThe filesystem metadata connection key reference.
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

GetMetaDirectoryInfoResourceAsync(XperiflowSessionInfo, string, string, bool?, int?, bool?, MemoizedCacheInfo?, CancellationToken)

MetaDirectoryInfoResource

Declaration
Task<GetMetaDirectoryInfoResourceResponseContext> GetMetaDirectoryInfoResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, string path, string connection_key_reference, bool? include_sub_content_metadata = null, int? max_depth = null, bool? with_dirs = null, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

API dedicated to retrieving directory metadata.

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.GetMetaDirectoryInfoResourceResponseContext >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
System.StringpathThe path to the file.
System.Stringconnection_key_referenceThe filesystem metadata connection key reference.
System.Nullable<System.Boolean>include_sub_content_metadataTo include or not include the sub content metadata within a directory.
System.Nullable<System.Int32>max_depthHow deep the sub content metadata should traverse for info.
System.Nullable<System.Boolean>with_dirsWhether to include directories, or just files in sub content metadata.
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

PostMetaDirectoryInfoResourceAsync(XperiflowSessionInfo, BodyMetaDirectoryInfoContext, string, MemoizedCacheInfo?, CancellationToken)

MetaDirectoryInfoResource

Declaration
Task<NullDataXperiflowResponseContext> PostMetaDirectoryInfoResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, BodyMetaDirectoryInfoContext body, string connection_key_reference, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

Creates a directory at a specified path.

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.NullDataXperiflowResponseContext >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
Workspace.XBR.Xperiflow.Core.RestApi.Storage.BodyMetaDirectoryInfoContextbody
System.Stringconnection_key_referenceThe filesystem metadata connection key reference.
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

DeleteMetaDirectoryInfoResourceAsync(XperiflowSessionInfo, string, string, bool?, int?, MemoizedCacheInfo?, CancellationToken)

MetaDirectoryInfoResource

Declaration
Task<NullDataXperiflowResponseContext> DeleteMetaDirectoryInfoResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, string path, string connection_key_reference, bool? recursive = null, int? max_depth = null, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

API dedicated to retrieving directory metadata.

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.NullDataXperiflowResponseContext >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
System.StringpathThe path to the file.
System.Stringconnection_key_referenceThe filesystem metadata connection key reference.
System.Nullable<System.Boolean>recursiveWhether the operation is recursive.
System.Nullable<System.Int32>max_depthHow deep the sub content metadata should traverse for info.
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

GetMetaFileContentReferenceResourceAsync(XperiflowSessionInfo, string, string, bool?, MemoizedCacheInfo?, CancellationToken)

MetaFileContentReferenceResource

Declaration
Task<GetMetaFileContentReferenceResourceResponseContext> GetMetaFileContentReferenceResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, string path, string connection_key_reference, bool? as_ephemeral = null, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

API dedicated to retrieving file content references.

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.GetMetaFileContentReferenceResourceResponseContext >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
System.StringpathThe path to the file.
System.Stringconnection_key_referenceThe filesystem metadata connection key reference.
System.Nullable<System.Boolean>as_ephemeralIf the file should be treated as ephemeral.
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

GetMetaFileContentStreamResourceAsync(XperiflowSessionInfo, string, string, int?, MemoizedCacheInfo?, CancellationToken)

MetaFileContentStreamResource

Declaration
Task<FileResponse> GetMetaFileContentStreamResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, string path, string connection_key_reference, int? content_size = null, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

API dedicated to retrieving file content references.

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.FileResponse >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
System.StringpathThe path to the file.
System.Stringconnection_key_referenceThe filesystem metadata connection key reference.
System.Nullable<System.Int32>content_sizeThe content size to return of the file. Use this for preview.
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

PostMetaFileContentWriteStartResourceAsync(XperiflowSessionInfo, BodyMetadataWriteStartContext, string, MemoizedCacheInfo?, CancellationToken)

MetaFileContentWriteStartResource

Declaration
Task<PostMetaFileContentWriteStartResourceResponseContext> PostMetaFileContentWriteStartResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, BodyMetadataWriteStartContext body, string connection_key_reference, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

API dedicated to initializing a write to the content storage of meta filesystem.

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.PostMetaFileContentWriteStartResourceResponseContext >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
Workspace.XBR.Xperiflow.Core.RestApi.Storage.BodyMetadataWriteStartContextbody
System.Stringconnection_key_referenceThe filesystem metadata connection key reference.
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

PostMetaFileContentWriteUndoStartResourceAsync(XperiflowSessionInfo, BodyMetadataWriteStartUndoContext, string, MemoizedCacheInfo?, CancellationToken)

MetaFileContentWriteUndoStartResource

Declaration
Task<NullDataXperiflowResponseContext> PostMetaFileContentWriteUndoStartResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, BodyMetadataWriteStartUndoContext body, string connection_key_reference, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

API dedicated to undoing an initialized write to the content storage of meta filesystem.

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.NullDataXperiflowResponseContext >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
Workspace.XBR.Xperiflow.Core.RestApi.Storage.BodyMetadataWriteStartUndoContextbody
System.Stringconnection_key_referenceThe filesystem metadata connection key reference.
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

PostMetaFileContentWriteResourceAsync(XperiflowSessionInfo, BodyMetadataWriteContext, string, MemoizedCacheInfo?, CancellationToken)

MetaFileContentWriteResource

Declaration
Task<NullDataXperiflowResponseContext> PostMetaFileContentWriteResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, BodyMetadataWriteContext body, string connection_key_reference, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

API dedicated to writing data to the content storage of meta filesystem.

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.NullDataXperiflowResponseContext >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
Workspace.XBR.Xperiflow.Core.RestApi.Storage.BodyMetadataWriteContextbody
System.Stringconnection_key_referenceThe filesystem metadata connection key reference.
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

PostMetaFileContentWriteCommitResourceAsync(XperiflowSessionInfo, BodyMetadataWriteCommitContext, string, MemoizedCacheInfo?, CancellationToken)

MetaFileContentWriteCommitResource

Declaration
Task<NullDataXperiflowResponseContext> PostMetaFileContentWriteCommitResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, BodyMetadataWriteCommitContext body, string connection_key_reference, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

API dedicated to committing the written data to the content storage of meta filesystem.

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.NullDataXperiflowResponseContext >

ok

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
Workspace.XBR.Xperiflow.Core.RestApi.Storage.BodyMetadataWriteCommitContextbody
System.Stringconnection_key_referenceThe filesystem metadata connection key reference.
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

PostMetaDBParsingResourceAsync(XperiflowSessionInfo, BodyMetaDbParsingContext, MemoizedCacheInfo?, CancellationToken)

MetaDBParsingResource

Declaration
Task<PostMetadbParseResponseContext> PostMetaDBParsingResourceAsync(XperiflowSessionInfo x_OS_SessionInfo, BodyMetaDbParsingContext body, MemoizedCacheInfo? cacheInfo = null, CancellationToken cancellationToken = default)
Remarks

API dedicated to converting sql queries using short hand paths (routine://...) to their corresponding azure container paths.

Returns

Task< Workspace.XBR.Xperiflow.Core.RestApi.Storage.PostMetadbParseResponseContext >

created

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Core.Session.XperiflowSessionInfox_OS_SessionInfoOneStream session info header object.
Workspace.XBR.Xperiflow.Core.RestApi.Storage.BodyMetaDbParsingContextbody
Workspace.XBR.Xperiflow.Utilities.Http.MemoizedCacheInfocacheInfo
System.Threading.CancellationTokencancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions

Workspace.XBR.Xperiflow.Core.RestApi.Exceptions.XperiflowApiException A server side error occurred.

Was this page helpful?