Path: blob/main/src/publish/netlify/api/services/FunctionService.ts
6467 views
/* istanbul ignore file */1/* tslint:disable */2/* eslint-disable */3import type { CancelablePromise } from "../core/CancelablePromise.ts";4import type { BaseHttpRequest } from "../core/BaseHttpRequest.ts";56export class FunctionService {7constructor(public readonly httpRequest: BaseHttpRequest) {}89/**10* @returns any OK11* @throws ApiError12*/13public uploadDeployFunction({14deployId,15name,16fileBody,17runtime,18size,19}: {20deployId: string;21name: string;22fileBody: Blob;23runtime?: string;24size?: number;25}): CancelablePromise<{26id?: string;27name?: string;28sha?: string;29}> {30return this.httpRequest.request({31method: "PUT",32url: "/deploys/{deploy_id}/functions/{name}",33path: {34"deploy_id": deployId,35"name": name,36},37query: {38"runtime": runtime,39"size": size,40},41body: fileBody,42});43}44}454647