Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/publish/netlify/api/services/DeployKeyService.ts
6468 views
1
/* istanbul ignore file */
2
/* tslint:disable */
3
/* eslint-disable */
4
import type { CancelablePromise } from "../core/CancelablePromise.ts";
5
import type { BaseHttpRequest } from "../core/BaseHttpRequest.ts";
6
7
export class DeployKeyService {
8
constructor(public readonly httpRequest: BaseHttpRequest) {}
9
10
/**
11
* @returns any OK
12
* @throws ApiError
13
*/
14
public listDeployKeys(): CancelablePromise<
15
Array<{
16
id?: string;
17
public_key?: string;
18
created_at?: string;
19
}>
20
> {
21
return this.httpRequest.request({
22
method: "GET",
23
url: "/deploy_keys",
24
});
25
}
26
27
/**
28
* @returns any error
29
* @throws ApiError
30
*/
31
public createDeployKey(): CancelablePromise<{
32
code?: number;
33
message: string;
34
}> {
35
return this.httpRequest.request({
36
method: "POST",
37
url: "/deploy_keys",
38
});
39
}
40
41
/**
42
* @returns any OK
43
* @throws ApiError
44
*/
45
public getDeployKey({
46
keyId,
47
}: {
48
keyId: string;
49
}): CancelablePromise<{
50
id?: string;
51
public_key?: string;
52
created_at?: string;
53
}> {
54
return this.httpRequest.request({
55
method: "GET",
56
url: "/deploy_keys/{key_id}",
57
path: {
58
"key_id": keyId,
59
},
60
});
61
}
62
63
/**
64
* @returns any error
65
* @throws ApiError
66
*/
67
public deleteDeployKey({
68
keyId,
69
}: {
70
keyId: string;
71
}): CancelablePromise<{
72
code?: number;
73
message: string;
74
}> {
75
return this.httpRequest.request({
76
method: "DELETE",
77
url: "/deploy_keys/{key_id}",
78
path: {
79
"key_id": keyId,
80
},
81
});
82
}
83
}
84
85