UNPKG

@cotofe/service-of-system

Version:

OpenAPI client for @cotofe/service-of-system

124 lines (123 loc) 7.13 kB
/** * Platform * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { ResponseClassBoolean, ResponseClassDataMeta, ResponseClassListDataListResponse, ResponseClassListStorageVersionListResponse, ResponseClassString, StorageCreateCliRequest, StorageDeleteCliRequest, StorageUpdateCliRequest } from '../models/index'; export interface SystemStorageCliControllerApiCreateUsingPOST1Request { authorization: string; encrypted?: boolean; storageCreateCliRequest?: StorageCreateCliRequest; } export interface SystemStorageCliControllerApiDeleteUsingDELETE1Request { authorization: string; encrypted?: boolean; storageDeleteCliRequest?: StorageDeleteCliRequest; } export interface SystemStorageCliControllerApiLatestVersionUsingGETRequest { dataName: string; authorization: string; encrypted?: boolean; } export interface SystemStorageCliControllerApiListUsingGET1Request { authorization: string; encrypted?: boolean; } export interface SystemStorageCliControllerApiMetaUsingGET1Request { dataName: string; authorization: string; version?: string; encrypted?: boolean; } export interface SystemStorageCliControllerApiUpdateUsingPUTRequest { authorization: string; encrypted?: boolean; storageUpdateCliRequest?: StorageUpdateCliRequest; } export interface SystemStorageCliControllerApiVersionListUsingGETRequest { dataName: string; authorization: string; encrypted?: boolean; } /** * */ export declare class SystemStorageCliControllerApi extends runtime.BaseAPI { /** * When using the same dataName to call the interface, the initial version number is v0. When called multiple times, the version number will increase to v1, v2... * create storage data */ createUsingPOST1Raw(requestParameters: SystemStorageCliControllerApiCreateUsingPOST1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseClassBoolean>>; /** * When using the same dataName to call the interface, the initial version number is v0. When called multiple times, the version number will increase to v1, v2... * create storage data */ createUsingPOST1(requestParameters: SystemStorageCliControllerApiCreateUsingPOST1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseClassBoolean>; /** * Delete the specified data name and version list. If the version list is empty, return an error message * delete storage data */ deleteUsingDELETE1Raw(requestParameters: SystemStorageCliControllerApiDeleteUsingDELETE1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseClassBoolean>>; /** * Delete the specified data name and version list. If the version list is empty, return an error message * delete storage data */ deleteUsingDELETE1(requestParameters: SystemStorageCliControllerApiDeleteUsingDELETE1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseClassBoolean>; /** * Get the latest version number of a certain data name * get latest version of storage data */ latestVersionUsingGETRaw(requestParameters: SystemStorageCliControllerApiLatestVersionUsingGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseClassString>>; /** * Get the latest version number of a certain data name * get latest version of storage data */ latestVersionUsingGET(requestParameters: SystemStorageCliControllerApiLatestVersionUsingGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseClassString>; /** * Retrieve all storage data for the current user, and only return the latest version for data with the same name * list storage data */ listUsingGET1Raw(requestParameters: SystemStorageCliControllerApiListUsingGET1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseClassListDataListResponse>>; /** * Retrieve all storage data for the current user, and only return the latest version for data with the same name * list storage data */ listUsingGET1(requestParameters: SystemStorageCliControllerApiListUsingGET1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseClassListDataListResponse>; /** * 1. If the version is empty, obtain the latest meta information of a data name under the current account for the version 2. If the version is not empty, obtain the meta information of the specified version for a certain data name under the current account * get meta info of storage data */ metaUsingGET1Raw(requestParameters: SystemStorageCliControllerApiMetaUsingGET1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseClassDataMeta>>; /** * 1. If the version is empty, obtain the latest meta information of a data name under the current account for the version 2. If the version is not empty, obtain the meta information of the specified version for a certain data name under the current account * get meta info of storage data */ metaUsingGET1(requestParameters: SystemStorageCliControllerApiMetaUsingGET1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseClassDataMeta>; /** * User can only update the tagNameList and description of the storage data * update storage data */ updateUsingPUTRaw(requestParameters: SystemStorageCliControllerApiUpdateUsingPUTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseClassBoolean>>; /** * User can only update the tagNameList and description of the storage data * update storage data */ updateUsingPUT(requestParameters: SystemStorageCliControllerApiUpdateUsingPUTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseClassBoolean>; /** * Obtain all version information corresponding to a certain data name * get storage version list */ versionListUsingGETRaw(requestParameters: SystemStorageCliControllerApiVersionListUsingGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseClassListStorageVersionListResponse>>; /** * Obtain all version information corresponding to a certain data name * get storage version list */ versionListUsingGET(requestParameters: SystemStorageCliControllerApiVersionListUsingGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseClassListStorageVersionListResponse>; }