sandbox0 0.4.0 → 0.4.1
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/FunctionsApi.d.ts +98 -1
- package/dist/apispec/src/apis/FunctionsApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/FunctionsApi.js +284 -1
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts +6 -0
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/CreateSandboxVolumeRequest.js +2 -0
- package/dist/apispec/src/models/EgressAuthProtocol.d.ts +8 -8
- package/dist/apispec/src/models/EgressAuthProtocol.js +8 -8
- package/dist/apispec/src/models/EgressProxyPolicy.d.ts +46 -0
- package/dist/apispec/src/models/EgressProxyPolicy.d.ts.map +1 -0
- package/dist/apispec/src/models/EgressProxyPolicy.js +50 -0
- package/dist/apispec/src/models/EgressProxyType.d.ts +25 -0
- package/dist/apispec/src/models/EgressProxyType.d.ts.map +1 -0
- package/dist/apispec/src/models/EgressProxyType.js +42 -0
- package/dist/apispec/src/models/Function.d.ts +12 -0
- package/dist/apispec/src/models/Function.d.ts.map +1 -1
- package/dist/apispec/src/models/Function.js +6 -0
- package/dist/apispec/src/models/FunctionRecord.d.ts +12 -0
- package/dist/apispec/src/models/FunctionRecord.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionRecord.js +6 -0
- package/dist/apispec/src/models/FunctionRestoreMount.d.ts +13 -1
- package/dist/apispec/src/models/FunctionRestoreMount.d.ts.map +1 -1
- package/dist/apispec/src/models/FunctionRestoreMount.js +4 -0
- package/dist/apispec/src/models/FunctionRuntimeState.d.ts +27 -0
- package/dist/apispec/src/models/FunctionRuntimeState.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimeState.js +44 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts +70 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionRuntimeStatus.js +62 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.d.ts +39 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/FunctionUpdateRequest.js +43 -0
- package/dist/apispec/src/models/NetworkEgressPolicy.d.ts +7 -0
- package/dist/apispec/src/models/NetworkEgressPolicy.d.ts.map +1 -1
- package/dist/apispec/src/models/NetworkEgressPolicy.js +3 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponse.js +46 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.js +44 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponse.js +46 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.js +44 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.js +46 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.js +44 -0
- package/dist/apispec/src/models/TrafficRuleAppProtocol.d.ts +10 -10
- package/dist/apispec/src/models/TrafficRuleAppProtocol.js +10 -10
- package/dist/apispec/src/models/index.d.ts +11 -0
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +11 -0
- package/dist/apispec_compat.d.ts +81 -18
- package/dist/apispec_compat.d.ts.map +1 -1
- package/dist/resources/functions.d.ts +9 -1
- package/dist/resources/functions.d.ts.map +1 -1
- package/dist/resources/functions.js +49 -0
- package/package.json +1 -1
|
@@ -10,15 +10,29 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { FunctionAliasUpdateRequest, FunctionCreateRequest, FunctionRevisionCreateRequest, SuccessFunctionAliasResponse, SuccessFunctionCreateResponse, SuccessFunctionListResponse, SuccessFunctionResponse, SuccessFunctionRevisionCreateResponse, SuccessFunctionRevisionListResponse } from '../models/index.js';
|
|
13
|
+
import type { FunctionAliasUpdateRequest, FunctionCreateRequest, FunctionRevisionCreateRequest, FunctionUpdateRequest, SuccessFunctionAliasListResponse, SuccessFunctionAliasResponse, SuccessFunctionCreateResponse, SuccessFunctionListResponse, SuccessFunctionResponse, SuccessFunctionRevisionCreateResponse, SuccessFunctionRevisionListResponse, SuccessFunctionRevisionResponse, SuccessFunctionRuntimeResponse } from '../models/index.js';
|
|
14
|
+
export interface ApiV1FunctionsIdAliasesAliasGetRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
alias: string;
|
|
17
|
+
}
|
|
14
18
|
export interface ApiV1FunctionsIdAliasesAliasPutRequest {
|
|
15
19
|
id: string;
|
|
16
20
|
alias: string;
|
|
17
21
|
functionAliasUpdateRequest: FunctionAliasUpdateRequest;
|
|
18
22
|
}
|
|
23
|
+
export interface ApiV1FunctionsIdAliasesGetRequest {
|
|
24
|
+
id: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ApiV1FunctionsIdDeleteRequest {
|
|
27
|
+
id: string;
|
|
28
|
+
}
|
|
19
29
|
export interface ApiV1FunctionsIdGetRequest {
|
|
20
30
|
id: string;
|
|
21
31
|
}
|
|
32
|
+
export interface ApiV1FunctionsIdPutRequest {
|
|
33
|
+
id: string;
|
|
34
|
+
functionUpdateRequest: FunctionUpdateRequest;
|
|
35
|
+
}
|
|
22
36
|
export interface ApiV1FunctionsIdRevisionsGetRequest {
|
|
23
37
|
id: string;
|
|
24
38
|
}
|
|
@@ -26,6 +40,19 @@ export interface ApiV1FunctionsIdRevisionsPostRequest {
|
|
|
26
40
|
id: string;
|
|
27
41
|
functionRevisionCreateRequest: FunctionRevisionCreateRequest;
|
|
28
42
|
}
|
|
43
|
+
export interface ApiV1FunctionsIdRevisionsRevisionNumberGetRequest {
|
|
44
|
+
id: string;
|
|
45
|
+
revisionNumber: number;
|
|
46
|
+
}
|
|
47
|
+
export interface ApiV1FunctionsIdRuntimeGetRequest {
|
|
48
|
+
id: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ApiV1FunctionsIdRuntimeRecyclePostRequest {
|
|
51
|
+
id: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ApiV1FunctionsIdRuntimeRestartPostRequest {
|
|
54
|
+
id: string;
|
|
55
|
+
}
|
|
29
56
|
export interface ApiV1FunctionsPostRequest {
|
|
30
57
|
functionCreateRequest: FunctionCreateRequest;
|
|
31
58
|
}
|
|
@@ -41,6 +68,14 @@ export declare class FunctionsApi extends runtime.BaseAPI {
|
|
|
41
68
|
* List functions
|
|
42
69
|
*/
|
|
43
70
|
apiV1FunctionsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFunctionListResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Get function alias
|
|
73
|
+
*/
|
|
74
|
+
apiV1FunctionsIdAliasesAliasGetRaw(requestParameters: ApiV1FunctionsIdAliasesAliasGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessFunctionAliasResponse>>;
|
|
75
|
+
/**
|
|
76
|
+
* Get function alias
|
|
77
|
+
*/
|
|
78
|
+
apiV1FunctionsIdAliasesAliasGet(requestParameters: ApiV1FunctionsIdAliasesAliasGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFunctionAliasResponse>;
|
|
44
79
|
/**
|
|
45
80
|
* Point a function alias at a revision
|
|
46
81
|
*/
|
|
@@ -49,6 +84,24 @@ export declare class FunctionsApi extends runtime.BaseAPI {
|
|
|
49
84
|
* Point a function alias at a revision
|
|
50
85
|
*/
|
|
51
86
|
apiV1FunctionsIdAliasesAliasPut(requestParameters: ApiV1FunctionsIdAliasesAliasPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFunctionAliasResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* List function aliases
|
|
89
|
+
*/
|
|
90
|
+
apiV1FunctionsIdAliasesGetRaw(requestParameters: ApiV1FunctionsIdAliasesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessFunctionAliasListResponse>>;
|
|
91
|
+
/**
|
|
92
|
+
* List function aliases
|
|
93
|
+
*/
|
|
94
|
+
apiV1FunctionsIdAliasesGet(requestParameters: ApiV1FunctionsIdAliasesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFunctionAliasListResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* Soft-deletes the function, disables its host, and schedules best-effort runtime and revision volume cleanup. The function slug and domain label remain reserved.
|
|
97
|
+
* Delete function
|
|
98
|
+
*/
|
|
99
|
+
apiV1FunctionsIdDeleteRaw(requestParameters: ApiV1FunctionsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessFunctionResponse>>;
|
|
100
|
+
/**
|
|
101
|
+
* Soft-deletes the function, disables its host, and schedules best-effort runtime and revision volume cleanup. The function slug and domain label remain reserved.
|
|
102
|
+
* Delete function
|
|
103
|
+
*/
|
|
104
|
+
apiV1FunctionsIdDelete(requestParameters: ApiV1FunctionsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFunctionResponse>;
|
|
52
105
|
/**
|
|
53
106
|
* Get function
|
|
54
107
|
*/
|
|
@@ -57,6 +110,14 @@ export declare class FunctionsApi extends runtime.BaseAPI {
|
|
|
57
110
|
* Get function
|
|
58
111
|
*/
|
|
59
112
|
apiV1FunctionsIdGet(requestParameters: ApiV1FunctionsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFunctionResponse>;
|
|
113
|
+
/**
|
|
114
|
+
* Update function lifecycle state
|
|
115
|
+
*/
|
|
116
|
+
apiV1FunctionsIdPutRaw(requestParameters: ApiV1FunctionsIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessFunctionResponse>>;
|
|
117
|
+
/**
|
|
118
|
+
* Update function lifecycle state
|
|
119
|
+
*/
|
|
120
|
+
apiV1FunctionsIdPut(requestParameters: ApiV1FunctionsIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFunctionResponse>;
|
|
60
121
|
/**
|
|
61
122
|
* List function revisions
|
|
62
123
|
*/
|
|
@@ -73,6 +134,42 @@ export declare class FunctionsApi extends runtime.BaseAPI {
|
|
|
73
134
|
* Create function revision from a sandbox service
|
|
74
135
|
*/
|
|
75
136
|
apiV1FunctionsIdRevisionsPost(requestParameters: ApiV1FunctionsIdRevisionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFunctionRevisionCreateResponse>;
|
|
137
|
+
/**
|
|
138
|
+
* Get function revision
|
|
139
|
+
*/
|
|
140
|
+
apiV1FunctionsIdRevisionsRevisionNumberGetRaw(requestParameters: ApiV1FunctionsIdRevisionsRevisionNumberGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessFunctionRevisionResponse>>;
|
|
141
|
+
/**
|
|
142
|
+
* Get function revision
|
|
143
|
+
*/
|
|
144
|
+
apiV1FunctionsIdRevisionsRevisionNumberGet(requestParameters: ApiV1FunctionsIdRevisionsRevisionNumberGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFunctionRevisionResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* Get active function runtime
|
|
147
|
+
*/
|
|
148
|
+
apiV1FunctionsIdRuntimeGetRaw(requestParameters: ApiV1FunctionsIdRuntimeGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessFunctionRuntimeResponse>>;
|
|
149
|
+
/**
|
|
150
|
+
* Get active function runtime
|
|
151
|
+
*/
|
|
152
|
+
apiV1FunctionsIdRuntimeGet(requestParameters: ApiV1FunctionsIdRuntimeGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFunctionRuntimeResponse>;
|
|
153
|
+
/**
|
|
154
|
+
* Deletes the current restored runtime sandbox when one exists and clears the runtime mapping; the next function request starts a fresh runtime.
|
|
155
|
+
* Recycle active function runtime
|
|
156
|
+
*/
|
|
157
|
+
apiV1FunctionsIdRuntimeRecyclePostRaw(requestParameters: ApiV1FunctionsIdRuntimeRecyclePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessFunctionRuntimeResponse>>;
|
|
158
|
+
/**
|
|
159
|
+
* Deletes the current restored runtime sandbox when one exists and clears the runtime mapping; the next function request starts a fresh runtime.
|
|
160
|
+
* Recycle active function runtime
|
|
161
|
+
*/
|
|
162
|
+
apiV1FunctionsIdRuntimeRecyclePost(requestParameters: ApiV1FunctionsIdRuntimeRecyclePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFunctionRuntimeResponse>;
|
|
163
|
+
/**
|
|
164
|
+
* Deletes the current restored runtime sandbox when one exists and clears the runtime mapping; the next function request starts a fresh runtime.
|
|
165
|
+
* Restart active function runtime
|
|
166
|
+
*/
|
|
167
|
+
apiV1FunctionsIdRuntimeRestartPostRaw(requestParameters: ApiV1FunctionsIdRuntimeRestartPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessFunctionRuntimeResponse>>;
|
|
168
|
+
/**
|
|
169
|
+
* Deletes the current restored runtime sandbox when one exists and clears the runtime mapping; the next function request starts a fresh runtime.
|
|
170
|
+
* Restart active function runtime
|
|
171
|
+
*/
|
|
172
|
+
apiV1FunctionsIdRuntimeRestartPost(requestParameters: ApiV1FunctionsIdRuntimeRestartPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessFunctionRuntimeResponse>;
|
|
76
173
|
/**
|
|
77
174
|
* Creates a function, revision 1, and the production alias from an existing sandbox service.
|
|
78
175
|
* Create a function from a sandbox service
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionsApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/FunctionsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,0BAA0B,EAC1B,qBAAqB,EACrB,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,EAC3B,uBAAuB,EACvB,qCAAqC,EACrC,mCAAmC,
|
|
1
|
+
{"version":3,"file":"FunctionsApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/FunctionsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,0BAA0B,EAC1B,qBAAqB,EACrB,6BAA6B,EAC7B,qBAAqB,EACrB,gCAAgC,EAChC,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,EAC3B,uBAAuB,EACvB,qCAAqC,EACrC,mCAAmC,EACnC,+BAA+B,EAC/B,8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,CAAC,iBAAiB,EAAE,yCAAyC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,8BAA8B,CAAC,CAAC;IAkCnO;;;OAGG;IACG,kCAAkC,CAAC,iBAAiB,EAAE,yCAAyC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,8BAA8B,CAAC;IAK3M;;;OAGG;IACG,qBAAqB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAAC;IAoClM;;;OAGG;IACG,kBAAkB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,6BAA6B,CAAC;CAK7K"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { FunctionAliasUpdateRequestToJSON, FunctionCreateRequestToJSON, FunctionRevisionCreateRequestToJSON, SuccessFunctionAliasResponseFromJSON, SuccessFunctionCreateResponseFromJSON, SuccessFunctionListResponseFromJSON, SuccessFunctionResponseFromJSON, SuccessFunctionRevisionCreateResponseFromJSON, SuccessFunctionRevisionListResponseFromJSON, } from '../models/index.js';
|
|
15
|
+
import { FunctionAliasUpdateRequestToJSON, FunctionCreateRequestToJSON, FunctionRevisionCreateRequestToJSON, FunctionUpdateRequestToJSON, SuccessFunctionAliasListResponseFromJSON, SuccessFunctionAliasResponseFromJSON, SuccessFunctionCreateResponseFromJSON, SuccessFunctionListResponseFromJSON, SuccessFunctionResponseFromJSON, SuccessFunctionRevisionCreateResponseFromJSON, SuccessFunctionRevisionListResponseFromJSON, SuccessFunctionRevisionResponseFromJSON, SuccessFunctionRuntimeResponseFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -46,6 +46,43 @@ export class FunctionsApi extends runtime.BaseAPI {
|
|
|
46
46
|
const response = await this.apiV1FunctionsGetRaw(initOverrides);
|
|
47
47
|
return await response.value();
|
|
48
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
|
+
}
|
|
49
86
|
/**
|
|
50
87
|
* Point a function alias at a revision
|
|
51
88
|
*/
|
|
@@ -88,6 +125,74 @@ export class FunctionsApi extends runtime.BaseAPI {
|
|
|
88
125
|
const response = await this.apiV1FunctionsIdAliasesAliasPutRaw(requestParameters, initOverrides);
|
|
89
126
|
return await response.value();
|
|
90
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
|
+
}
|
|
91
196
|
/**
|
|
92
197
|
* Get function
|
|
93
198
|
*/
|
|
@@ -121,6 +226,44 @@ export class FunctionsApi extends runtime.BaseAPI {
|
|
|
121
226
|
const response = await this.apiV1FunctionsIdGetRaw(requestParameters, initOverrides);
|
|
122
227
|
return await response.value();
|
|
123
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
|
+
}
|
|
124
267
|
/**
|
|
125
268
|
* List function revisions
|
|
126
269
|
*/
|
|
@@ -192,6 +335,146 @@ export class FunctionsApi extends runtime.BaseAPI {
|
|
|
192
335
|
const response = await this.apiV1FunctionsIdRevisionsPostRaw(requestParameters, initOverrides);
|
|
193
336
|
return await response.value();
|
|
194
337
|
}
|
|
338
|
+
/**
|
|
339
|
+
* Get function revision
|
|
340
|
+
*/
|
|
341
|
+
async apiV1FunctionsIdRevisionsRevisionNumberGetRaw(requestParameters, initOverrides) {
|
|
342
|
+
if (requestParameters['id'] == null) {
|
|
343
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRevisionsRevisionNumberGet().');
|
|
344
|
+
}
|
|
345
|
+
if (requestParameters['revisionNumber'] == null) {
|
|
346
|
+
throw new runtime.RequiredError('revisionNumber', 'Required parameter "revisionNumber" was null or undefined when calling apiV1FunctionsIdRevisionsRevisionNumberGet().');
|
|
347
|
+
}
|
|
348
|
+
const queryParameters = {};
|
|
349
|
+
const headerParameters = {};
|
|
350
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
351
|
+
const token = this.configuration.accessToken;
|
|
352
|
+
const tokenString = await token("bearerAuth", []);
|
|
353
|
+
if (tokenString) {
|
|
354
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
let urlPath = `/api/v1/functions/{id}/revisions/{revision_number}`;
|
|
358
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
359
|
+
urlPath = urlPath.replace(`{${"revision_number"}}`, encodeURIComponent(String(requestParameters['revisionNumber'])));
|
|
360
|
+
const response = await this.request({
|
|
361
|
+
path: urlPath,
|
|
362
|
+
method: 'GET',
|
|
363
|
+
headers: headerParameters,
|
|
364
|
+
query: queryParameters,
|
|
365
|
+
}, initOverrides);
|
|
366
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRevisionResponseFromJSON(jsonValue));
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Get function revision
|
|
370
|
+
*/
|
|
371
|
+
async apiV1FunctionsIdRevisionsRevisionNumberGet(requestParameters, initOverrides) {
|
|
372
|
+
const response = await this.apiV1FunctionsIdRevisionsRevisionNumberGetRaw(requestParameters, initOverrides);
|
|
373
|
+
return await response.value();
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Get active function runtime
|
|
377
|
+
*/
|
|
378
|
+
async apiV1FunctionsIdRuntimeGetRaw(requestParameters, initOverrides) {
|
|
379
|
+
if (requestParameters['id'] == null) {
|
|
380
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRuntimeGet().');
|
|
381
|
+
}
|
|
382
|
+
const queryParameters = {};
|
|
383
|
+
const headerParameters = {};
|
|
384
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
385
|
+
const token = this.configuration.accessToken;
|
|
386
|
+
const tokenString = await token("bearerAuth", []);
|
|
387
|
+
if (tokenString) {
|
|
388
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
let urlPath = `/api/v1/functions/{id}/runtime`;
|
|
392
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
393
|
+
const response = await this.request({
|
|
394
|
+
path: urlPath,
|
|
395
|
+
method: 'GET',
|
|
396
|
+
headers: headerParameters,
|
|
397
|
+
query: queryParameters,
|
|
398
|
+
}, initOverrides);
|
|
399
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRuntimeResponseFromJSON(jsonValue));
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Get active function runtime
|
|
403
|
+
*/
|
|
404
|
+
async apiV1FunctionsIdRuntimeGet(requestParameters, initOverrides) {
|
|
405
|
+
const response = await this.apiV1FunctionsIdRuntimeGetRaw(requestParameters, initOverrides);
|
|
406
|
+
return await response.value();
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Deletes the current restored runtime sandbox when one exists and clears the runtime mapping; the next function request starts a fresh runtime.
|
|
410
|
+
* Recycle active function runtime
|
|
411
|
+
*/
|
|
412
|
+
async apiV1FunctionsIdRuntimeRecyclePostRaw(requestParameters, initOverrides) {
|
|
413
|
+
if (requestParameters['id'] == null) {
|
|
414
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRuntimeRecyclePost().');
|
|
415
|
+
}
|
|
416
|
+
const queryParameters = {};
|
|
417
|
+
const headerParameters = {};
|
|
418
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
419
|
+
const token = this.configuration.accessToken;
|
|
420
|
+
const tokenString = await token("bearerAuth", []);
|
|
421
|
+
if (tokenString) {
|
|
422
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
let urlPath = `/api/v1/functions/{id}/runtime/recycle`;
|
|
426
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
427
|
+
const response = await this.request({
|
|
428
|
+
path: urlPath,
|
|
429
|
+
method: 'POST',
|
|
430
|
+
headers: headerParameters,
|
|
431
|
+
query: queryParameters,
|
|
432
|
+
}, initOverrides);
|
|
433
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRuntimeResponseFromJSON(jsonValue));
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Deletes the current restored runtime sandbox when one exists and clears the runtime mapping; the next function request starts a fresh runtime.
|
|
437
|
+
* Recycle active function runtime
|
|
438
|
+
*/
|
|
439
|
+
async apiV1FunctionsIdRuntimeRecyclePost(requestParameters, initOverrides) {
|
|
440
|
+
const response = await this.apiV1FunctionsIdRuntimeRecyclePostRaw(requestParameters, initOverrides);
|
|
441
|
+
return await response.value();
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Deletes the current restored runtime sandbox when one exists and clears the runtime mapping; the next function request starts a fresh runtime.
|
|
445
|
+
* Restart active function runtime
|
|
446
|
+
*/
|
|
447
|
+
async apiV1FunctionsIdRuntimeRestartPostRaw(requestParameters, initOverrides) {
|
|
448
|
+
if (requestParameters['id'] == null) {
|
|
449
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRuntimeRestartPost().');
|
|
450
|
+
}
|
|
451
|
+
const queryParameters = {};
|
|
452
|
+
const headerParameters = {};
|
|
453
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
454
|
+
const token = this.configuration.accessToken;
|
|
455
|
+
const tokenString = await token("bearerAuth", []);
|
|
456
|
+
if (tokenString) {
|
|
457
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
let urlPath = `/api/v1/functions/{id}/runtime/restart`;
|
|
461
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
462
|
+
const response = await this.request({
|
|
463
|
+
path: urlPath,
|
|
464
|
+
method: 'POST',
|
|
465
|
+
headers: headerParameters,
|
|
466
|
+
query: queryParameters,
|
|
467
|
+
}, initOverrides);
|
|
468
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRuntimeResponseFromJSON(jsonValue));
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Deletes the current restored runtime sandbox when one exists and clears the runtime mapping; the next function request starts a fresh runtime.
|
|
472
|
+
* Restart active function runtime
|
|
473
|
+
*/
|
|
474
|
+
async apiV1FunctionsIdRuntimeRestartPost(requestParameters, initOverrides) {
|
|
475
|
+
const response = await this.apiV1FunctionsIdRuntimeRestartPostRaw(requestParameters, initOverrides);
|
|
476
|
+
return await response.value();
|
|
477
|
+
}
|
|
195
478
|
/**
|
|
196
479
|
* Creates a function, revision 1, and the production alias from an existing sandbox service.
|
|
197
480
|
* Create a function from a sandbox service
|
|
@@ -16,6 +16,12 @@ import type { VolumeAccessMode } from './VolumeAccessMode.js';
|
|
|
16
16
|
* @interface CreateSandboxVolumeRequest
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateSandboxVolumeRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Optional snapshot ID used to initialize the new volume from immutable snapshot state.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateSandboxVolumeRequest
|
|
23
|
+
*/
|
|
24
|
+
snapshotId?: string;
|
|
19
25
|
/**
|
|
20
26
|
* Default POSIX UID used by external volume access paths that do not carry caller identity. Defaults to 0 when omitted on create.
|
|
21
27
|
* @type {number}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateSandboxVolumeRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxVolumeRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAID;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAEvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,
|
|
1
|
+
{"version":3,"file":"CreateSandboxVolumeRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CreateSandboxVolumeRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAID;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAEvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAW3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY1I"}
|
|
@@ -26,6 +26,7 @@ export function CreateSandboxVolumeRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
26
26
|
return json;
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
|
+
'snapshotId': json['snapshot_id'] == null ? undefined : json['snapshot_id'],
|
|
29
30
|
'defaultPosixUid': json['default_posix_uid'] == null ? undefined : json['default_posix_uid'],
|
|
30
31
|
'defaultPosixGid': json['default_posix_gid'] == null ? undefined : json['default_posix_gid'],
|
|
31
32
|
'accessMode': json['access_mode'] == null ? undefined : VolumeAccessModeFromJSON(json['access_mode']),
|
|
@@ -39,6 +40,7 @@ export function CreateSandboxVolumeRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
39
40
|
return value;
|
|
40
41
|
}
|
|
41
42
|
return {
|
|
43
|
+
'snapshot_id': value['snapshotId'],
|
|
42
44
|
'default_posix_uid': value['defaultPosixUid'],
|
|
43
45
|
'default_posix_gid': value['defaultPosixGid'],
|
|
44
46
|
'access_mode': VolumeAccessModeToJSON(value['accessMode']),
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
*/
|
|
16
16
|
export declare const EgressAuthProtocol: {
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
17
|
+
readonly EgressAuthProtocolHttp: "http";
|
|
18
|
+
readonly EgressAuthProtocolHttps: "https";
|
|
19
|
+
readonly EgressAuthProtocolGrpc: "grpc";
|
|
20
|
+
readonly EgressAuthProtocolTls: "tls";
|
|
21
|
+
readonly EgressAuthProtocolSsh: "ssh";
|
|
22
|
+
readonly EgressAuthProtocolSocks5: "socks5";
|
|
23
|
+
readonly EgressAuthProtocolMqtt: "mqtt";
|
|
24
|
+
readonly EgressAuthProtocolRedis: "redis";
|
|
25
25
|
};
|
|
26
26
|
export type EgressAuthProtocol = typeof EgressAuthProtocol[keyof typeof EgressAuthProtocol];
|
|
27
27
|
export declare function instanceOfEgressAuthProtocol(value: any): boolean;
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
18
|
export const EgressAuthProtocol = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
EgressAuthProtocolHttp: 'http',
|
|
20
|
+
EgressAuthProtocolHttps: 'https',
|
|
21
|
+
EgressAuthProtocolGrpc: 'grpc',
|
|
22
|
+
EgressAuthProtocolTls: 'tls',
|
|
23
|
+
EgressAuthProtocolSsh: 'ssh',
|
|
24
|
+
EgressAuthProtocolSocks5: 'socks5',
|
|
25
|
+
EgressAuthProtocolMqtt: 'mqtt',
|
|
26
|
+
EgressAuthProtocolRedis: 'redis'
|
|
27
27
|
};
|
|
28
28
|
export function instanceOfEgressAuthProtocol(value) {
|
|
29
29
|
for (const key in EgressAuthProtocol) {
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { EgressProxyType } from './EgressProxyType.js';
|
|
13
|
+
/**
|
|
14
|
+
* Customer-managed transparent egress proxy for allowed TCP traffic.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface EgressProxyPolicy
|
|
17
|
+
*/
|
|
18
|
+
export interface EgressProxyPolicy {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {EgressProxyType}
|
|
22
|
+
* @memberof EgressProxyPolicy
|
|
23
|
+
*/
|
|
24
|
+
type: EgressProxyType;
|
|
25
|
+
/**
|
|
26
|
+
* SOCKS5 proxy endpoint in host:port form.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof EgressProxyPolicy
|
|
29
|
+
*/
|
|
30
|
+
address: string;
|
|
31
|
+
/**
|
|
32
|
+
* Optional credential binding ref using a username_password projection.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof EgressProxyPolicy
|
|
35
|
+
*/
|
|
36
|
+
credentialRef?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the EgressProxyPolicy interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfEgressProxyPolicy(value: object): value is EgressProxyPolicy;
|
|
42
|
+
export declare function EgressProxyPolicyFromJSON(json: any): EgressProxyPolicy;
|
|
43
|
+
export declare function EgressProxyPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): EgressProxyPolicy;
|
|
44
|
+
export declare function EgressProxyPolicyToJSON(json: any): EgressProxyPolicy;
|
|
45
|
+
export declare function EgressProxyPolicyToJSONTyped(value?: EgressProxyPolicy | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
+
//# sourceMappingURL=EgressProxyPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EgressProxyPolicy.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/EgressProxyPolicy.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,eAAe,CAAC;IACtB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAID;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAIrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAUzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxH"}
|