UNPKG

@cotofe/service-of-system

Version:

OpenAPI client for @cotofe/service-of-system

124 lines (123 loc) 7 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 StorageCliControllerApiCreateUsingPOST1Request { authorization: string; encrypted?: boolean; storageCreateCliRequest?: StorageCreateCliRequest; } export interface StorageCliControllerApiDeleteUsingDELETE1Request { authorization: string; encrypted?: boolean; storageDeleteCliRequest?: StorageDeleteCliRequest; } export interface StorageCliControllerApiLatestVersionUsingGETRequest { dataName: string; authorization: string; encrypted?: boolean; } export interface StorageCliControllerApiListUsingGET1Request { authorization: string; encrypted?: boolean; } export interface StorageCliControllerApiMetaUsingGET1Request { dataName: string; authorization: string; version?: string; encrypted?: boolean; } export interface StorageCliControllerApiUpdateUsingPUTRequest { authorization: string; encrypted?: boolean; storageUpdateCliRequest?: StorageUpdateCliRequest; } export interface StorageCliControllerApiVersionListUsingGETRequest { dataName: string; authorization: string; encrypted?: boolean; } /** * */ export declare class StorageCliControllerApi 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: StorageCliControllerApiCreateUsingPOST1Request, 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: StorageCliControllerApiCreateUsingPOST1Request, 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: StorageCliControllerApiDeleteUsingDELETE1Request, 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: StorageCliControllerApiDeleteUsingDELETE1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseClassBoolean>; /** * Get the latest version number of a certain data name * get latest version of storage data */ latestVersionUsingGETRaw(requestParameters: StorageCliControllerApiLatestVersionUsingGETRequest, 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: StorageCliControllerApiLatestVersionUsingGETRequest, 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: StorageCliControllerApiListUsingGET1Request, 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: StorageCliControllerApiListUsingGET1Request, 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: StorageCliControllerApiMetaUsingGET1Request, 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: StorageCliControllerApiMetaUsingGET1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseClassDataMeta>; /** * User can only update the tagNameList and description of the storage data * update storage data */ updateUsingPUTRaw(requestParameters: StorageCliControllerApiUpdateUsingPUTRequest, 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: StorageCliControllerApiUpdateUsingPUTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseClassBoolean>; /** * Obtain all version information corresponding to a certain data name * get storage version list */ versionListUsingGETRaw(requestParameters: StorageCliControllerApiVersionListUsingGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseClassListStorageVersionListResponse>>; /** * Obtain all version information corresponding to a certain data name * get storage version list */ versionListUsingGET(requestParameters: StorageCliControllerApiVersionListUsingGETRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseClassListStorageVersionListResponse>; }