sandbox0 0.4.4 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apispec/src/apis/QuotasApi.d.ts +53 -0
- package/dist/apispec/src/apis/QuotasApi.d.ts.map +1 -0
- package/dist/apispec/src/apis/QuotasApi.js +124 -0
- package/dist/apispec/src/apis/SandboxesApi.d.ts +4 -15
- package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxesApi.js +2 -12
- package/dist/apispec/src/apis/index.d.ts +1 -1
- package/dist/apispec/src/apis/index.d.ts.map +1 -1
- package/dist/apispec/src/apis/index.js +1 -1
- package/dist/apispec/src/models/ClaimResponse.d.ts +3 -2
- package/dist/apispec/src/models/ClaimResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/ClaimResponse.js +3 -2
- package/dist/apispec/src/models/EgressAuthRolloutMode.d.ts +2 -2
- package/dist/apispec/src/models/EgressAuthRolloutMode.js +2 -2
- package/dist/apispec/src/models/PutTeamQuotaRequest.d.ts +33 -0
- package/dist/apispec/src/models/PutTeamQuotaRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/PutTeamQuotaRequest.js +43 -0
- package/dist/apispec/src/models/QuotaDimension.d.ts +31 -0
- package/dist/apispec/src/models/QuotaDimension.d.ts.map +1 -0
- package/dist/apispec/src/models/QuotaDimension.js +48 -0
- package/dist/apispec/src/models/Sandbox.d.ts +3 -2
- package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
- package/dist/apispec/src/models/Sandbox.js +3 -2
- package/dist/apispec/src/models/SandboxAppService.d.ts +1 -1
- package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts +2 -2
- package/dist/apispec/src/models/SandboxAppServiceView.d.ts +6 -0
- package/dist/apispec/src/models/SandboxAppServiceView.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxAppServiceView.js +2 -0
- package/dist/apispec/src/models/SandboxConfig.d.ts +1 -1
- package/dist/apispec/src/models/SandboxLifecycleStatus.d.ts +30 -0
- package/dist/apispec/src/models/SandboxLifecycleStatus.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxLifecycleStatus.js +47 -0
- package/dist/apispec/src/models/SandboxStatus.d.ts +3 -2
- package/dist/apispec/src/models/SandboxStatus.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxStatus.js +3 -2
- package/dist/apispec/src/models/SandboxSummary.d.ts +3 -13
- package/dist/apispec/src/models/SandboxSummary.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxSummary.js +3 -12
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +1 -1
- package/dist/apispec/src/models/SuccessTeamQuotaResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessTeamQuotaResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessTeamQuotaResponse.js +46 -0
- package/dist/apispec/src/models/TeamQuota.d.ts +46 -0
- package/dist/apispec/src/models/TeamQuota.d.ts.map +1 -0
- package/dist/apispec/src/models/TeamQuota.js +50 -0
- package/dist/apispec/src/models/index.d.ts +5 -44
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +5 -44
- package/dist/apispec_compat.d.ts +44 -273
- package/dist/apispec_compat.d.ts.map +1 -1
- package/dist/client.d.ts +0 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +0 -4
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
- package/dist/apispec/src/apis/FunctionsApi.d.ts +0 -186
- package/dist/apispec/src/apis/FunctionsApi.d.ts.map +0 -1
- package/dist/apispec/src/apis/FunctionsApi.js +0 -516
- package/dist/apispec/src/models/Function.d.ts +0 -100
- package/dist/apispec/src/models/Function.d.ts.map +0 -1
- package/dist/apispec/src/models/Function.js +0 -82
- package/dist/apispec/src/models/FunctionAlias.d.ts +0 -63
- package/dist/apispec/src/models/FunctionAlias.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionAlias.js +0 -61
- package/dist/apispec/src/models/FunctionAliasUpdateRequest.d.ts +0 -33
- package/dist/apispec/src/models/FunctionAliasUpdateRequest.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionAliasUpdateRequest.js +0 -43
- package/dist/apispec/src/models/FunctionAutoscaling.d.ts +0 -51
- package/dist/apispec/src/models/FunctionAutoscaling.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionAutoscaling.js +0 -55
- package/dist/apispec/src/models/FunctionCreateRequest.d.ts +0 -47
- package/dist/apispec/src/models/FunctionCreateRequest.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionCreateRequest.js +0 -49
- package/dist/apispec/src/models/FunctionEnvRef.d.ts +0 -39
- package/dist/apispec/src/models/FunctionEnvRef.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionEnvRef.js +0 -47
- package/dist/apispec/src/models/FunctionRecord.d.ts +0 -112
- package/dist/apispec/src/models/FunctionRecord.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRecord.js +0 -90
- package/dist/apispec/src/models/FunctionRestoreMount.d.ts +0 -51
- package/dist/apispec/src/models/FunctionRestoreMount.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRestoreMount.js +0 -51
- package/dist/apispec/src/models/FunctionRevision.d.ts +0 -135
- package/dist/apispec/src/models/FunctionRevision.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRevision.js +0 -91
- package/dist/apispec/src/models/FunctionRevisionCreateRequest.d.ts +0 -40
- package/dist/apispec/src/models/FunctionRevisionCreateRequest.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRevisionCreateRequest.js +0 -46
- package/dist/apispec/src/models/FunctionRevisionInputSourceType.d.ts +0 -26
- package/dist/apispec/src/models/FunctionRevisionInputSourceType.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRevisionInputSourceType.js +0 -43
- package/dist/apispec/src/models/FunctionRevisionMount.d.ts +0 -66
- package/dist/apispec/src/models/FunctionRevisionMount.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRevisionMount.js +0 -61
- package/dist/apispec/src/models/FunctionRevisionMountSource.d.ts +0 -72
- package/dist/apispec/src/models/FunctionRevisionMountSource.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRevisionMountSource.js +0 -61
- package/dist/apispec/src/models/FunctionRevisionSourceType.d.ts +0 -27
- package/dist/apispec/src/models/FunctionRevisionSourceType.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRevisionSourceType.js +0 -44
- package/dist/apispec/src/models/FunctionRevisionSpec.d.ts +0 -61
- package/dist/apispec/src/models/FunctionRevisionSpec.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRevisionSpec.js +0 -57
- package/dist/apispec/src/models/FunctionRuntimeEvent.d.ts +0 -107
- package/dist/apispec/src/models/FunctionRuntimeEvent.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRuntimeEvent.js +0 -81
- package/dist/apispec/src/models/FunctionRuntimeInstance.d.ts +0 -131
- package/dist/apispec/src/models/FunctionRuntimeInstance.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRuntimeInstance.js +0 -93
- package/dist/apispec/src/models/FunctionRuntimeInstanceState.d.ts +0 -28
- package/dist/apispec/src/models/FunctionRuntimeInstanceState.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRuntimeInstanceState.js +0 -45
- package/dist/apispec/src/models/FunctionRuntimePhase.d.ts +0 -31
- package/dist/apispec/src/models/FunctionRuntimePhase.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRuntimePhase.js +0 -48
- package/dist/apispec/src/models/FunctionRuntimeReadinessState.d.ts +0 -28
- package/dist/apispec/src/models/FunctionRuntimeReadinessState.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRuntimeReadinessState.js +0 -45
- package/dist/apispec/src/models/FunctionRuntimeState.d.ts +0 -27
- package/dist/apispec/src/models/FunctionRuntimeState.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRuntimeState.js +0 -44
- package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts +0 -123
- package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionRuntimeStatus.js +0 -89
- package/dist/apispec/src/models/FunctionSandboxServiceSource.d.ts +0 -39
- package/dist/apispec/src/models/FunctionSandboxServiceSource.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionSandboxServiceSource.js +0 -47
- package/dist/apispec/src/models/FunctionSourceRequest.d.ts +0 -69
- package/dist/apispec/src/models/FunctionSourceRequest.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionSourceRequest.js +0 -54
- package/dist/apispec/src/models/FunctionStaticAsset.d.ts +0 -45
- package/dist/apispec/src/models/FunctionStaticAsset.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionStaticAsset.js +0 -49
- package/dist/apispec/src/models/FunctionUpdateRequest.d.ts +0 -46
- package/dist/apispec/src/models/FunctionUpdateRequest.d.ts.map +0 -1
- package/dist/apispec/src/models/FunctionUpdateRequest.js +0 -46
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.js +0 -46
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts +0 -34
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.js +0 -44
- package/dist/apispec/src/models/SuccessFunctionAliasResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessFunctionAliasResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionAliasResponse.js +0 -46
- package/dist/apispec/src/models/SuccessFunctionAliasResponseAllOfData.d.ts +0 -34
- package/dist/apispec/src/models/SuccessFunctionAliasResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionAliasResponseAllOfData.js +0 -44
- package/dist/apispec/src/models/SuccessFunctionCreateResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessFunctionCreateResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionCreateResponse.js +0 -46
- package/dist/apispec/src/models/SuccessFunctionCreateResponseAllOfData.d.ts +0 -48
- package/dist/apispec/src/models/SuccessFunctionCreateResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionCreateResponseAllOfData.js +0 -54
- package/dist/apispec/src/models/SuccessFunctionListResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessFunctionListResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionListResponse.js +0 -46
- package/dist/apispec/src/models/SuccessFunctionListResponseAllOfData.d.ts +0 -34
- package/dist/apispec/src/models/SuccessFunctionListResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionListResponseAllOfData.js +0 -44
- package/dist/apispec/src/models/SuccessFunctionResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessFunctionResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionResponse.js +0 -46
- package/dist/apispec/src/models/SuccessFunctionResponseAllOfData.d.ts +0 -34
- package/dist/apispec/src/models/SuccessFunctionResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionResponseAllOfData.js +0 -44
- package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponse.js +0 -46
- package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponseAllOfData.d.ts +0 -40
- package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponseAllOfData.js +0 -48
- package/dist/apispec/src/models/SuccessFunctionRevisionListResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessFunctionRevisionListResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionRevisionListResponse.js +0 -46
- package/dist/apispec/src/models/SuccessFunctionRevisionListResponseAllOfData.d.ts +0 -34
- package/dist/apispec/src/models/SuccessFunctionRevisionListResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionRevisionListResponseAllOfData.js +0 -44
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.js +0 -46
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts +0 -34
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.js +0 -44
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.js +0 -46
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts +0 -34
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.js +0 -44
- package/dist/resources/functions.d.ts +0 -44
- package/dist/resources/functions.d.ts.map +0 -1
- package/dist/resources/functions.js +0 -158
|
@@ -1,516 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Sandbox0 API
|
|
5
|
-
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import * as runtime from '../runtime.js';
|
|
15
|
-
import { FunctionAliasUpdateRequestToJSON, FunctionCreateRequestToJSON, FunctionRevisionCreateRequestToJSON, FunctionUpdateRequestToJSON, SuccessFunctionAliasListResponseFromJSON, SuccessFunctionAliasResponseFromJSON, SuccessFunctionCreateResponseFromJSON, SuccessFunctionListResponseFromJSON, SuccessFunctionResponseFromJSON, SuccessFunctionRevisionCreateResponseFromJSON, SuccessFunctionRevisionListResponseFromJSON, SuccessFunctionRevisionResponseFromJSON, SuccessFunctionRuntimeResponseFromJSON, } from '../models/index.js';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export class FunctionsApi extends runtime.BaseAPI {
|
|
20
|
-
/**
|
|
21
|
-
* List functions
|
|
22
|
-
*/
|
|
23
|
-
async apiV1FunctionsGetRaw(initOverrides) {
|
|
24
|
-
const queryParameters = {};
|
|
25
|
-
const headerParameters = {};
|
|
26
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
27
|
-
const token = this.configuration.accessToken;
|
|
28
|
-
const tokenString = await token("bearerAuth", []);
|
|
29
|
-
if (tokenString) {
|
|
30
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
let urlPath = `/api/v1/functions`;
|
|
34
|
-
const response = await this.request({
|
|
35
|
-
path: urlPath,
|
|
36
|
-
method: 'GET',
|
|
37
|
-
headers: headerParameters,
|
|
38
|
-
query: queryParameters,
|
|
39
|
-
}, initOverrides);
|
|
40
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionListResponseFromJSON(jsonValue));
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* List functions
|
|
44
|
-
*/
|
|
45
|
-
async apiV1FunctionsGet(initOverrides) {
|
|
46
|
-
const response = await this.apiV1FunctionsGetRaw(initOverrides);
|
|
47
|
-
return await response.value();
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Get function alias
|
|
51
|
-
*/
|
|
52
|
-
async apiV1FunctionsIdAliasesAliasGetRaw(requestParameters, initOverrides) {
|
|
53
|
-
if (requestParameters['id'] == null) {
|
|
54
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdAliasesAliasGet().');
|
|
55
|
-
}
|
|
56
|
-
if (requestParameters['alias'] == null) {
|
|
57
|
-
throw new runtime.RequiredError('alias', 'Required parameter "alias" was null or undefined when calling apiV1FunctionsIdAliasesAliasGet().');
|
|
58
|
-
}
|
|
59
|
-
const queryParameters = {};
|
|
60
|
-
const headerParameters = {};
|
|
61
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
62
|
-
const token = this.configuration.accessToken;
|
|
63
|
-
const tokenString = await token("bearerAuth", []);
|
|
64
|
-
if (tokenString) {
|
|
65
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
let urlPath = `/api/v1/functions/{id}/aliases/{alias}`;
|
|
69
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
70
|
-
urlPath = urlPath.replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters['alias'])));
|
|
71
|
-
const response = await this.request({
|
|
72
|
-
path: urlPath,
|
|
73
|
-
method: 'GET',
|
|
74
|
-
headers: headerParameters,
|
|
75
|
-
query: queryParameters,
|
|
76
|
-
}, initOverrides);
|
|
77
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionAliasResponseFromJSON(jsonValue));
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Get function alias
|
|
81
|
-
*/
|
|
82
|
-
async apiV1FunctionsIdAliasesAliasGet(requestParameters, initOverrides) {
|
|
83
|
-
const response = await this.apiV1FunctionsIdAliasesAliasGetRaw(requestParameters, initOverrides);
|
|
84
|
-
return await response.value();
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Point a function alias at a revision
|
|
88
|
-
*/
|
|
89
|
-
async apiV1FunctionsIdAliasesAliasPutRaw(requestParameters, initOverrides) {
|
|
90
|
-
if (requestParameters['id'] == null) {
|
|
91
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdAliasesAliasPut().');
|
|
92
|
-
}
|
|
93
|
-
if (requestParameters['alias'] == null) {
|
|
94
|
-
throw new runtime.RequiredError('alias', 'Required parameter "alias" was null or undefined when calling apiV1FunctionsIdAliasesAliasPut().');
|
|
95
|
-
}
|
|
96
|
-
if (requestParameters['functionAliasUpdateRequest'] == null) {
|
|
97
|
-
throw new runtime.RequiredError('functionAliasUpdateRequest', 'Required parameter "functionAliasUpdateRequest" was null or undefined when calling apiV1FunctionsIdAliasesAliasPut().');
|
|
98
|
-
}
|
|
99
|
-
const queryParameters = {};
|
|
100
|
-
const headerParameters = {};
|
|
101
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
102
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
103
|
-
const token = this.configuration.accessToken;
|
|
104
|
-
const tokenString = await token("bearerAuth", []);
|
|
105
|
-
if (tokenString) {
|
|
106
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
let urlPath = `/api/v1/functions/{id}/aliases/{alias}`;
|
|
110
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
111
|
-
urlPath = urlPath.replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters['alias'])));
|
|
112
|
-
const response = await this.request({
|
|
113
|
-
path: urlPath,
|
|
114
|
-
method: 'PUT',
|
|
115
|
-
headers: headerParameters,
|
|
116
|
-
query: queryParameters,
|
|
117
|
-
body: FunctionAliasUpdateRequestToJSON(requestParameters['functionAliasUpdateRequest']),
|
|
118
|
-
}, initOverrides);
|
|
119
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionAliasResponseFromJSON(jsonValue));
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Point a function alias at a revision
|
|
123
|
-
*/
|
|
124
|
-
async apiV1FunctionsIdAliasesAliasPut(requestParameters, initOverrides) {
|
|
125
|
-
const response = await this.apiV1FunctionsIdAliasesAliasPutRaw(requestParameters, initOverrides);
|
|
126
|
-
return await response.value();
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* List function aliases
|
|
130
|
-
*/
|
|
131
|
-
async apiV1FunctionsIdAliasesGetRaw(requestParameters, initOverrides) {
|
|
132
|
-
if (requestParameters['id'] == null) {
|
|
133
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdAliasesGet().');
|
|
134
|
-
}
|
|
135
|
-
const queryParameters = {};
|
|
136
|
-
const headerParameters = {};
|
|
137
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
138
|
-
const token = this.configuration.accessToken;
|
|
139
|
-
const tokenString = await token("bearerAuth", []);
|
|
140
|
-
if (tokenString) {
|
|
141
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
let urlPath = `/api/v1/functions/{id}/aliases`;
|
|
145
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
146
|
-
const response = await this.request({
|
|
147
|
-
path: urlPath,
|
|
148
|
-
method: 'GET',
|
|
149
|
-
headers: headerParameters,
|
|
150
|
-
query: queryParameters,
|
|
151
|
-
}, initOverrides);
|
|
152
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionAliasListResponseFromJSON(jsonValue));
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* List function aliases
|
|
156
|
-
*/
|
|
157
|
-
async apiV1FunctionsIdAliasesGet(requestParameters, initOverrides) {
|
|
158
|
-
const response = await this.apiV1FunctionsIdAliasesGetRaw(requestParameters, initOverrides);
|
|
159
|
-
return await response.value();
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Soft-deletes the function, disables its host, and schedules best-effort runtime and revision volume cleanup. The function slug and domain label remain reserved.
|
|
163
|
-
* Delete function
|
|
164
|
-
*/
|
|
165
|
-
async apiV1FunctionsIdDeleteRaw(requestParameters, initOverrides) {
|
|
166
|
-
if (requestParameters['id'] == null) {
|
|
167
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdDelete().');
|
|
168
|
-
}
|
|
169
|
-
const queryParameters = {};
|
|
170
|
-
const headerParameters = {};
|
|
171
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
172
|
-
const token = this.configuration.accessToken;
|
|
173
|
-
const tokenString = await token("bearerAuth", []);
|
|
174
|
-
if (tokenString) {
|
|
175
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
let urlPath = `/api/v1/functions/{id}`;
|
|
179
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
180
|
-
const response = await this.request({
|
|
181
|
-
path: urlPath,
|
|
182
|
-
method: 'DELETE',
|
|
183
|
-
headers: headerParameters,
|
|
184
|
-
query: queryParameters,
|
|
185
|
-
}, initOverrides);
|
|
186
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionResponseFromJSON(jsonValue));
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* Soft-deletes the function, disables its host, and schedules best-effort runtime and revision volume cleanup. The function slug and domain label remain reserved.
|
|
190
|
-
* Delete function
|
|
191
|
-
*/
|
|
192
|
-
async apiV1FunctionsIdDelete(requestParameters, initOverrides) {
|
|
193
|
-
const response = await this.apiV1FunctionsIdDeleteRaw(requestParameters, initOverrides);
|
|
194
|
-
return await response.value();
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Get function
|
|
198
|
-
*/
|
|
199
|
-
async apiV1FunctionsIdGetRaw(requestParameters, initOverrides) {
|
|
200
|
-
if (requestParameters['id'] == null) {
|
|
201
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdGet().');
|
|
202
|
-
}
|
|
203
|
-
const queryParameters = {};
|
|
204
|
-
const headerParameters = {};
|
|
205
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
206
|
-
const token = this.configuration.accessToken;
|
|
207
|
-
const tokenString = await token("bearerAuth", []);
|
|
208
|
-
if (tokenString) {
|
|
209
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
let urlPath = `/api/v1/functions/{id}`;
|
|
213
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
214
|
-
const response = await this.request({
|
|
215
|
-
path: urlPath,
|
|
216
|
-
method: 'GET',
|
|
217
|
-
headers: headerParameters,
|
|
218
|
-
query: queryParameters,
|
|
219
|
-
}, initOverrides);
|
|
220
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionResponseFromJSON(jsonValue));
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* Get function
|
|
224
|
-
*/
|
|
225
|
-
async apiV1FunctionsIdGet(requestParameters, initOverrides) {
|
|
226
|
-
const response = await this.apiV1FunctionsIdGetRaw(requestParameters, initOverrides);
|
|
227
|
-
return await response.value();
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Update function lifecycle state
|
|
231
|
-
*/
|
|
232
|
-
async apiV1FunctionsIdPutRaw(requestParameters, initOverrides) {
|
|
233
|
-
if (requestParameters['id'] == null) {
|
|
234
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdPut().');
|
|
235
|
-
}
|
|
236
|
-
if (requestParameters['functionUpdateRequest'] == null) {
|
|
237
|
-
throw new runtime.RequiredError('functionUpdateRequest', 'Required parameter "functionUpdateRequest" was null or undefined when calling apiV1FunctionsIdPut().');
|
|
238
|
-
}
|
|
239
|
-
const queryParameters = {};
|
|
240
|
-
const headerParameters = {};
|
|
241
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
242
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
243
|
-
const token = this.configuration.accessToken;
|
|
244
|
-
const tokenString = await token("bearerAuth", []);
|
|
245
|
-
if (tokenString) {
|
|
246
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
let urlPath = `/api/v1/functions/{id}`;
|
|
250
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
251
|
-
const response = await this.request({
|
|
252
|
-
path: urlPath,
|
|
253
|
-
method: 'PUT',
|
|
254
|
-
headers: headerParameters,
|
|
255
|
-
query: queryParameters,
|
|
256
|
-
body: FunctionUpdateRequestToJSON(requestParameters['functionUpdateRequest']),
|
|
257
|
-
}, initOverrides);
|
|
258
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionResponseFromJSON(jsonValue));
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Update function lifecycle state
|
|
262
|
-
*/
|
|
263
|
-
async apiV1FunctionsIdPut(requestParameters, initOverrides) {
|
|
264
|
-
const response = await this.apiV1FunctionsIdPutRaw(requestParameters, initOverrides);
|
|
265
|
-
return await response.value();
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* List function revisions
|
|
269
|
-
*/
|
|
270
|
-
async apiV1FunctionsIdRevisionsGetRaw(requestParameters, initOverrides) {
|
|
271
|
-
if (requestParameters['id'] == null) {
|
|
272
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRevisionsGet().');
|
|
273
|
-
}
|
|
274
|
-
const queryParameters = {};
|
|
275
|
-
const headerParameters = {};
|
|
276
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
277
|
-
const token = this.configuration.accessToken;
|
|
278
|
-
const tokenString = await token("bearerAuth", []);
|
|
279
|
-
if (tokenString) {
|
|
280
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
let urlPath = `/api/v1/functions/{id}/revisions`;
|
|
284
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
285
|
-
const response = await this.request({
|
|
286
|
-
path: urlPath,
|
|
287
|
-
method: 'GET',
|
|
288
|
-
headers: headerParameters,
|
|
289
|
-
query: queryParameters,
|
|
290
|
-
}, initOverrides);
|
|
291
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRevisionListResponseFromJSON(jsonValue));
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* List function revisions
|
|
295
|
-
*/
|
|
296
|
-
async apiV1FunctionsIdRevisionsGet(requestParameters, initOverrides) {
|
|
297
|
-
const response = await this.apiV1FunctionsIdRevisionsGetRaw(requestParameters, initOverrides);
|
|
298
|
-
return await response.value();
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* Creates a function revision from a sandbox-service shortcut or an explicit FunctionRevisionSpec.
|
|
302
|
-
* Create function revision
|
|
303
|
-
*/
|
|
304
|
-
async apiV1FunctionsIdRevisionsPostRaw(requestParameters, initOverrides) {
|
|
305
|
-
if (requestParameters['id'] == null) {
|
|
306
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRevisionsPost().');
|
|
307
|
-
}
|
|
308
|
-
if (requestParameters['functionRevisionCreateRequest'] == null) {
|
|
309
|
-
throw new runtime.RequiredError('functionRevisionCreateRequest', 'Required parameter "functionRevisionCreateRequest" was null or undefined when calling apiV1FunctionsIdRevisionsPost().');
|
|
310
|
-
}
|
|
311
|
-
const queryParameters = {};
|
|
312
|
-
const headerParameters = {};
|
|
313
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
314
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
315
|
-
const token = this.configuration.accessToken;
|
|
316
|
-
const tokenString = await token("bearerAuth", []);
|
|
317
|
-
if (tokenString) {
|
|
318
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
let urlPath = `/api/v1/functions/{id}/revisions`;
|
|
322
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
323
|
-
const response = await this.request({
|
|
324
|
-
path: urlPath,
|
|
325
|
-
method: 'POST',
|
|
326
|
-
headers: headerParameters,
|
|
327
|
-
query: queryParameters,
|
|
328
|
-
body: FunctionRevisionCreateRequestToJSON(requestParameters['functionRevisionCreateRequest']),
|
|
329
|
-
}, initOverrides);
|
|
330
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRevisionCreateResponseFromJSON(jsonValue));
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* Creates a function revision from a sandbox-service shortcut or an explicit FunctionRevisionSpec.
|
|
334
|
-
* Create function revision
|
|
335
|
-
*/
|
|
336
|
-
async apiV1FunctionsIdRevisionsPost(requestParameters, initOverrides) {
|
|
337
|
-
const response = await this.apiV1FunctionsIdRevisionsPostRaw(requestParameters, initOverrides);
|
|
338
|
-
return await response.value();
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
* Get function revision
|
|
342
|
-
*/
|
|
343
|
-
async apiV1FunctionsIdRevisionsRevisionNumberGetRaw(requestParameters, initOverrides) {
|
|
344
|
-
if (requestParameters['id'] == null) {
|
|
345
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRevisionsRevisionNumberGet().');
|
|
346
|
-
}
|
|
347
|
-
if (requestParameters['revisionNumber'] == null) {
|
|
348
|
-
throw new runtime.RequiredError('revisionNumber', 'Required parameter "revisionNumber" was null or undefined when calling apiV1FunctionsIdRevisionsRevisionNumberGet().');
|
|
349
|
-
}
|
|
350
|
-
const queryParameters = {};
|
|
351
|
-
const headerParameters = {};
|
|
352
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
353
|
-
const token = this.configuration.accessToken;
|
|
354
|
-
const tokenString = await token("bearerAuth", []);
|
|
355
|
-
if (tokenString) {
|
|
356
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
let urlPath = `/api/v1/functions/{id}/revisions/{revision_number}`;
|
|
360
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
361
|
-
urlPath = urlPath.replace(`{${"revision_number"}}`, encodeURIComponent(String(requestParameters['revisionNumber'])));
|
|
362
|
-
const response = await this.request({
|
|
363
|
-
path: urlPath,
|
|
364
|
-
method: 'GET',
|
|
365
|
-
headers: headerParameters,
|
|
366
|
-
query: queryParameters,
|
|
367
|
-
}, initOverrides);
|
|
368
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRevisionResponseFromJSON(jsonValue));
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* Get function revision
|
|
372
|
-
*/
|
|
373
|
-
async apiV1FunctionsIdRevisionsRevisionNumberGet(requestParameters, initOverrides) {
|
|
374
|
-
const response = await this.apiV1FunctionsIdRevisionsRevisionNumberGetRaw(requestParameters, initOverrides);
|
|
375
|
-
return await response.value();
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* Get active function runtime
|
|
379
|
-
*/
|
|
380
|
-
async apiV1FunctionsIdRuntimeGetRaw(requestParameters, initOverrides) {
|
|
381
|
-
if (requestParameters['id'] == null) {
|
|
382
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRuntimeGet().');
|
|
383
|
-
}
|
|
384
|
-
const queryParameters = {};
|
|
385
|
-
const headerParameters = {};
|
|
386
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
387
|
-
const token = this.configuration.accessToken;
|
|
388
|
-
const tokenString = await token("bearerAuth", []);
|
|
389
|
-
if (tokenString) {
|
|
390
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
let urlPath = `/api/v1/functions/{id}/runtime`;
|
|
394
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
395
|
-
const response = await this.request({
|
|
396
|
-
path: urlPath,
|
|
397
|
-
method: 'GET',
|
|
398
|
-
headers: headerParameters,
|
|
399
|
-
query: queryParameters,
|
|
400
|
-
}, initOverrides);
|
|
401
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRuntimeResponseFromJSON(jsonValue));
|
|
402
|
-
}
|
|
403
|
-
/**
|
|
404
|
-
* Get active function runtime
|
|
405
|
-
*/
|
|
406
|
-
async apiV1FunctionsIdRuntimeGet(requestParameters, initOverrides) {
|
|
407
|
-
const response = await this.apiV1FunctionsIdRuntimeGetRaw(requestParameters, initOverrides);
|
|
408
|
-
return await response.value();
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* Deletes the current restored runtime pool when one exists and clears the runtime mapping; the next function request starts fresh runtime instances.
|
|
412
|
-
* Recycle active function runtime
|
|
413
|
-
*/
|
|
414
|
-
async apiV1FunctionsIdRuntimeRecyclePostRaw(requestParameters, initOverrides) {
|
|
415
|
-
if (requestParameters['id'] == null) {
|
|
416
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRuntimeRecyclePost().');
|
|
417
|
-
}
|
|
418
|
-
const queryParameters = {};
|
|
419
|
-
const headerParameters = {};
|
|
420
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
421
|
-
const token = this.configuration.accessToken;
|
|
422
|
-
const tokenString = await token("bearerAuth", []);
|
|
423
|
-
if (tokenString) {
|
|
424
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
let urlPath = `/api/v1/functions/{id}/runtime/recycle`;
|
|
428
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
429
|
-
const response = await this.request({
|
|
430
|
-
path: urlPath,
|
|
431
|
-
method: 'POST',
|
|
432
|
-
headers: headerParameters,
|
|
433
|
-
query: queryParameters,
|
|
434
|
-
}, initOverrides);
|
|
435
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRuntimeResponseFromJSON(jsonValue));
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* Deletes the current restored runtime pool when one exists and clears the runtime mapping; the next function request starts fresh runtime instances.
|
|
439
|
-
* Recycle active function runtime
|
|
440
|
-
*/
|
|
441
|
-
async apiV1FunctionsIdRuntimeRecyclePost(requestParameters, initOverrides) {
|
|
442
|
-
const response = await this.apiV1FunctionsIdRuntimeRecyclePostRaw(requestParameters, initOverrides);
|
|
443
|
-
return await response.value();
|
|
444
|
-
}
|
|
445
|
-
/**
|
|
446
|
-
* Deletes the current restored runtime pool when one exists and clears the runtime mapping; the next function request starts fresh runtime instances.
|
|
447
|
-
* Restart active function runtime
|
|
448
|
-
*/
|
|
449
|
-
async apiV1FunctionsIdRuntimeRestartPostRaw(requestParameters, initOverrides) {
|
|
450
|
-
if (requestParameters['id'] == null) {
|
|
451
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRuntimeRestartPost().');
|
|
452
|
-
}
|
|
453
|
-
const queryParameters = {};
|
|
454
|
-
const headerParameters = {};
|
|
455
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
456
|
-
const token = this.configuration.accessToken;
|
|
457
|
-
const tokenString = await token("bearerAuth", []);
|
|
458
|
-
if (tokenString) {
|
|
459
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
let urlPath = `/api/v1/functions/{id}/runtime/restart`;
|
|
463
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
464
|
-
const response = await this.request({
|
|
465
|
-
path: urlPath,
|
|
466
|
-
method: 'POST',
|
|
467
|
-
headers: headerParameters,
|
|
468
|
-
query: queryParameters,
|
|
469
|
-
}, initOverrides);
|
|
470
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRuntimeResponseFromJSON(jsonValue));
|
|
471
|
-
}
|
|
472
|
-
/**
|
|
473
|
-
* Deletes the current restored runtime pool when one exists and clears the runtime mapping; the next function request starts fresh runtime instances.
|
|
474
|
-
* Restart active function runtime
|
|
475
|
-
*/
|
|
476
|
-
async apiV1FunctionsIdRuntimeRestartPost(requestParameters, initOverrides) {
|
|
477
|
-
const response = await this.apiV1FunctionsIdRuntimeRestartPostRaw(requestParameters, initOverrides);
|
|
478
|
-
return await response.value();
|
|
479
|
-
}
|
|
480
|
-
/**
|
|
481
|
-
* Creates a function, revision 1, and the production alias from a sandbox-service shortcut or an explicit FunctionRevisionSpec.
|
|
482
|
-
* Create a function
|
|
483
|
-
*/
|
|
484
|
-
async apiV1FunctionsPostRaw(requestParameters, initOverrides) {
|
|
485
|
-
if (requestParameters['functionCreateRequest'] == null) {
|
|
486
|
-
throw new runtime.RequiredError('functionCreateRequest', 'Required parameter "functionCreateRequest" was null or undefined when calling apiV1FunctionsPost().');
|
|
487
|
-
}
|
|
488
|
-
const queryParameters = {};
|
|
489
|
-
const headerParameters = {};
|
|
490
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
491
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
492
|
-
const token = this.configuration.accessToken;
|
|
493
|
-
const tokenString = await token("bearerAuth", []);
|
|
494
|
-
if (tokenString) {
|
|
495
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
let urlPath = `/api/v1/functions`;
|
|
499
|
-
const response = await this.request({
|
|
500
|
-
path: urlPath,
|
|
501
|
-
method: 'POST',
|
|
502
|
-
headers: headerParameters,
|
|
503
|
-
query: queryParameters,
|
|
504
|
-
body: FunctionCreateRequestToJSON(requestParameters['functionCreateRequest']),
|
|
505
|
-
}, initOverrides);
|
|
506
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionCreateResponseFromJSON(jsonValue));
|
|
507
|
-
}
|
|
508
|
-
/**
|
|
509
|
-
* Creates a function, revision 1, and the production alias from a sandbox-service shortcut or an explicit FunctionRevisionSpec.
|
|
510
|
-
* Create a function
|
|
511
|
-
*/
|
|
512
|
-
async apiV1FunctionsPost(requestParameters, initOverrides) {
|
|
513
|
-
const response = await this.apiV1FunctionsPostRaw(requestParameters, initOverrides);
|
|
514
|
-
return await response.value();
|
|
515
|
-
}
|
|
516
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sandbox0 API
|
|
3
|
-
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { FunctionAutoscaling } from './FunctionAutoscaling.js';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface Function
|
|
17
|
-
*/
|
|
18
|
-
export interface Function {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof Function
|
|
23
|
-
*/
|
|
24
|
-
id: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof Function
|
|
29
|
-
*/
|
|
30
|
-
teamId: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof Function
|
|
35
|
-
*/
|
|
36
|
-
name: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Function
|
|
41
|
-
*/
|
|
42
|
-
slug: string;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof Function
|
|
47
|
-
*/
|
|
48
|
-
domainLabel: string;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof Function
|
|
53
|
-
*/
|
|
54
|
-
activeRevisionId?: string;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {boolean}
|
|
58
|
-
* @memberof Function
|
|
59
|
-
*/
|
|
60
|
-
enabled: boolean;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {FunctionAutoscaling}
|
|
64
|
-
* @memberof Function
|
|
65
|
-
*/
|
|
66
|
-
autoscaling: FunctionAutoscaling;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof Function
|
|
71
|
-
*/
|
|
72
|
-
createdBy?: string;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {Date}
|
|
76
|
-
* @memberof Function
|
|
77
|
-
*/
|
|
78
|
-
createdAt: Date;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {Date}
|
|
82
|
-
* @memberof Function
|
|
83
|
-
*/
|
|
84
|
-
updatedAt: Date;
|
|
85
|
-
/**
|
|
86
|
-
* Set when the function has been soft-deleted. Deleted functions are hidden from normal list/get APIs and do not serve traffic.
|
|
87
|
-
* @type {Date}
|
|
88
|
-
* @memberof Function
|
|
89
|
-
*/
|
|
90
|
-
deletedAt?: Date;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Check if a given object implements the Function interface.
|
|
94
|
-
*/
|
|
95
|
-
export declare function instanceOfFunction(value: object): value is Function;
|
|
96
|
-
export declare function FunctionFromJSON(json: any): Function;
|
|
97
|
-
export declare function FunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Function;
|
|
98
|
-
export declare function FunctionToJSON(json: any): Function;
|
|
99
|
-
export declare function FunctionToJSONTyped(value?: Function | null, ignoreDiscriminator?: boolean): any;
|
|
100
|
-
//# sourceMappingURL=Function.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Function.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/Function.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAQjE;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,mBAAmB,CAAC;IACjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAWnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAmBvF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAoBtG"}
|