cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
68 lines (67 loc) • 2.41 kB
TypeScript
/**
* CWMS Data API
* CWMS REST API for Data Retrieval
*
* The version of the OpenAPI document: 2.4.0-2026.3.16
*
*
* 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 { ApiKey } from '../models';
export interface DeleteAuthKeysWithKeyNameRequest {
keyName: string;
}
export interface GetAuthKeysWithKeyNameRequest {
keyName: string;
}
export interface PostAuthKeysRequest {
apiKey?: ApiKey;
}
/**
*
*/
export declare class AuthorizationApi extends runtime.BaseAPI {
/**
* Delete API key for a user
* Delete auth keys with keyName
*/
deleteAuthKeysWithKeyNameRaw(requestParameters: DeleteAuthKeysWithKeyNameRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ApiKey>>;
/**
* Delete API key for a user
* Delete auth keys with keyName
*/
deleteAuthKeysWithKeyName(requestParameters: DeleteAuthKeysWithKeyNameRequest, initOverrides?: RequestInit): Promise<ApiKey>;
/**
* View all keys for the current user
* Get auth keys
*/
getAuthKeysRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<ApiKey>>>;
/**
* View all keys for the current user
* Get auth keys
*/
getAuthKeys(initOverrides?: RequestInit): Promise<Array<ApiKey>>;
/**
* View specific key
* Get auth keys with keyName
*/
getAuthKeysWithKeyNameRaw(requestParameters: GetAuthKeysWithKeyNameRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ApiKey>>;
/**
* View specific key
* Get auth keys with keyName
*/
getAuthKeysWithKeyName(requestParameters: GetAuthKeysWithKeyNameRequest, initOverrides?: RequestInit): Promise<ApiKey>;
/**
* Create a new API Key for user. The randomly generated key is returned to the caller. A provided key will be ignored.
* Post auth keys
*/
postAuthKeysRaw(requestParameters: PostAuthKeysRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ApiKey>>;
/**
* Create a new API Key for user. The randomly generated key is returned to the caller. A provided key will be ignored.
* Post auth keys
*/
postAuthKeys(requestParameters?: PostAuthKeysRequest, initOverrides?: RequestInit): Promise<ApiKey>;
}