@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
68 lines • 2.51 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import { checksCreateCheck } from "../funcs/checksCreateCheck.js";
import { checksGetAllChecks } from "../funcs/checksGetAllChecks.js";
import { checksGetCheck } from "../funcs/checksGetCheck.js";
import { checksRerequestCheck } from "../funcs/checksRerequestCheck.js";
import { checksUpdateCheck } from "../funcs/checksUpdateCheck.js";
import { ClientSDK } from "../lib/sdks.js";
import { unwrapAsync } from "../types/fp.js";
export class Checks extends ClientSDK {
/**
* Creates a new Check
*
* @remarks
* Creates a new check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
*
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
*/
async createCheck(request, options) {
return unwrapAsync(checksCreateCheck(this, request, options));
}
/**
* Retrieve a list of all checks
*
* @remarks
* List all of the checks created for a deployment.
*
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
*/
async getAllChecks(request, options) {
return unwrapAsync(checksGetAllChecks(this, request, options));
}
/**
* Get a single check
*
* @remarks
* Return a detailed response for a single check.
*
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
*/
async getCheck(request, options) {
return unwrapAsync(checksGetCheck(this, request, options));
}
/**
* Update a check
*
* @remarks
* Update an existing check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
*
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
*/
async updateCheck(request, options) {
return unwrapAsync(checksUpdateCheck(this, request, options));
}
/**
* Rerequest a check
*
* @remarks
* Rerequest a selected check that has failed.
*
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
*/
async rerequestCheck(request, options) {
return unwrapAsync(checksRerequestCheck(this, request, options));
}
}
//# sourceMappingURL=checks.js.map