sandbox0 0.3.3 → 0.3.4
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/ObservabilityApi.d.ts +53 -0
- package/dist/apispec/src/apis/ObservabilityApi.d.ts.map +1 -0
- package/dist/apispec/src/apis/ObservabilityApi.js +112 -0
- package/dist/apispec/src/apis/SandboxesApi.d.ts +1 -49
- package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxesApi.js +1 -144
- package/dist/apispec/src/apis/index.d.ts +1 -0
- package/dist/apispec/src/apis/index.d.ts.map +1 -1
- package/dist/apispec/src/apis/index.js +1 -0
- package/dist/apispec/src/models/ObservabilityLogRecord.d.ts +79 -0
- package/dist/apispec/src/models/ObservabilityLogRecord.d.ts.map +1 -0
- package/dist/apispec/src/models/ObservabilityLogRecord.js +55 -0
- package/dist/apispec/src/models/ObservabilityTraceSpan.d.ts +103 -0
- package/dist/apispec/src/models/ObservabilityTraceSpan.d.ts.map +1 -0
- package/dist/apispec/src/models/ObservabilityTraceSpan.js +63 -0
- package/dist/apispec/src/models/Sandbox.d.ts +0 -7
- package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
- package/dist/apispec/src/models/Sandbox.js +0 -3
- package/dist/apispec/src/models/SandboxConfig.d.ts +0 -7
- package/dist/apispec/src/models/SandboxConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxConfig.js +0 -3
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +0 -7
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxUpdateConfig.js +0 -3
- package/dist/apispec/src/models/SuccessObservabilityLogRecordListResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessObservabilityLogRecordListResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessObservabilityLogRecordListResponse.js +46 -0
- package/dist/apispec/src/models/SuccessObservabilityLogRecordListResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessObservabilityLogRecordListResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessObservabilityLogRecordListResponseAllOfData.js +42 -0
- package/dist/apispec/src/models/SuccessObservabilityTraceSpanListResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessObservabilityTraceSpanListResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessObservabilityTraceSpanListResponse.js +46 -0
- package/dist/apispec/src/models/SuccessObservabilityTraceSpanListResponseAllOfData.d.ts +34 -0
- package/dist/apispec/src/models/SuccessObservabilityTraceSpanListResponseAllOfData.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessObservabilityTraceSpanListResponseAllOfData.js +42 -0
- package/dist/apispec/src/models/index.d.ts +6 -4
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +6 -4
- package/dist/client.d.ts +3 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/models.d.ts +0 -9
- package/dist/models.d.ts.map +1 -1
- package/dist/resources/observability.d.ts +16 -0
- package/dist/resources/observability.d.ts.map +1 -0
- package/dist/resources/observability.js +30 -0
- package/dist/response_normalize.d.ts.map +1 -1
- package/dist/response_normalize.js +0 -1
- package/package.json +1 -1
- package/dist/apispec/src/models/ExposedPortConfig.d.ts +0 -50
- package/dist/apispec/src/models/ExposedPortConfig.d.ts.map +0 -1
- package/dist/apispec/src/models/ExposedPortConfig.js +0 -48
- package/dist/apispec/src/models/SuccessExposedPortsResponse.d.ts +0 -40
- package/dist/apispec/src/models/SuccessExposedPortsResponse.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessExposedPortsResponse.js +0 -46
- package/dist/apispec/src/models/SuccessExposedPortsResponseAllOfData.d.ts +0 -48
- package/dist/apispec/src/models/SuccessExposedPortsResponseAllOfData.d.ts.map +0 -1
- package/dist/apispec/src/models/SuccessExposedPortsResponseAllOfData.js +0 -49
- package/dist/apispec/src/models/UpdateExposedPortsRequest.d.ts +0 -34
- package/dist/apispec/src/models/UpdateExposedPortsRequest.d.ts.map +0 -1
- package/dist/apispec/src/models/UpdateExposedPortsRequest.js +0 -44
- package/dist/sandbox_exposed_ports.d.ts +0 -11
- package/dist/sandbox_exposed_ports.d.ts.map +0 -1
- package/dist/sandbox_exposed_ports.js +0 -66
|
@@ -0,0 +1,53 @@
|
|
|
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 * as runtime from '../runtime.js';
|
|
13
|
+
import type { SuccessObservabilityLogRecordListResponse, SuccessObservabilityTraceSpanListResponse } from '../models/index.js';
|
|
14
|
+
export interface ApiV1ObservabilityLogsGetRequest {
|
|
15
|
+
sandboxId?: string;
|
|
16
|
+
traceId?: string;
|
|
17
|
+
startTime?: Date;
|
|
18
|
+
endTime?: Date;
|
|
19
|
+
limit?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ApiV1ObservabilityTracesGetRequest {
|
|
22
|
+
sandboxId?: string;
|
|
23
|
+
traceId?: string;
|
|
24
|
+
startTime?: Date;
|
|
25
|
+
endTime?: Date;
|
|
26
|
+
limit?: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare class ObservabilityApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Returns OpenTelemetry log records stored for the selected team and region.
|
|
34
|
+
* Query observability logs
|
|
35
|
+
*/
|
|
36
|
+
apiV1ObservabilityLogsGetRaw(requestParameters: ApiV1ObservabilityLogsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessObservabilityLogRecordListResponse>>;
|
|
37
|
+
/**
|
|
38
|
+
* Returns OpenTelemetry log records stored for the selected team and region.
|
|
39
|
+
* Query observability logs
|
|
40
|
+
*/
|
|
41
|
+
apiV1ObservabilityLogsGet(requestParameters?: ApiV1ObservabilityLogsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessObservabilityLogRecordListResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Returns OpenTelemetry trace spans stored for the selected team and region.
|
|
44
|
+
* Query observability trace spans
|
|
45
|
+
*/
|
|
46
|
+
apiV1ObservabilityTracesGetRaw(requestParameters: ApiV1ObservabilityTracesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessObservabilityTraceSpanListResponse>>;
|
|
47
|
+
/**
|
|
48
|
+
* Returns OpenTelemetry trace spans stored for the selected team and region.
|
|
49
|
+
* Query observability trace spans
|
|
50
|
+
*/
|
|
51
|
+
apiV1ObservabilityTracesGet(requestParameters?: ApiV1ObservabilityTracesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessObservabilityTraceSpanListResponse>;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=ObservabilityApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservabilityApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/ObservabilityApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,yCAAyC,EACzC,yCAAyC,EAC1C,MAAM,iBAAiB,CAAC;AAUzB,MAAM,WAAW,gCAAgC;IAC7C,SAAS,CAAC,E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s 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 { SuccessObservabilityLogRecordListResponseFromJSON, SuccessObservabilityTraceSpanListResponseFromJSON, } from '../models/index.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class ObservabilityApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Returns OpenTelemetry log records stored for the selected team and region.
|
|
22
|
+
* Query observability logs
|
|
23
|
+
*/
|
|
24
|
+
async apiV1ObservabilityLogsGetRaw(requestParameters, initOverrides) {
|
|
25
|
+
const queryParameters = {};
|
|
26
|
+
if (requestParameters['sandboxId'] != null) {
|
|
27
|
+
queryParameters['sandbox_id'] = requestParameters['sandboxId'];
|
|
28
|
+
}
|
|
29
|
+
if (requestParameters['traceId'] != null) {
|
|
30
|
+
queryParameters['trace_id'] = requestParameters['traceId'];
|
|
31
|
+
}
|
|
32
|
+
if (requestParameters['startTime'] != null) {
|
|
33
|
+
queryParameters['start_time'] = requestParameters['startTime'].toISOString();
|
|
34
|
+
}
|
|
35
|
+
if (requestParameters['endTime'] != null) {
|
|
36
|
+
queryParameters['end_time'] = requestParameters['endTime'].toISOString();
|
|
37
|
+
}
|
|
38
|
+
if (requestParameters['limit'] != null) {
|
|
39
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
40
|
+
}
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
43
|
+
const token = this.configuration.accessToken;
|
|
44
|
+
const tokenString = await token("bearerAuth", []);
|
|
45
|
+
if (tokenString) {
|
|
46
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
let urlPath = `/api/v1/observability/logs`;
|
|
50
|
+
const response = await this.request({
|
|
51
|
+
path: urlPath,
|
|
52
|
+
method: 'GET',
|
|
53
|
+
headers: headerParameters,
|
|
54
|
+
query: queryParameters,
|
|
55
|
+
}, initOverrides);
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessObservabilityLogRecordListResponseFromJSON(jsonValue));
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Returns OpenTelemetry log records stored for the selected team and region.
|
|
60
|
+
* Query observability logs
|
|
61
|
+
*/
|
|
62
|
+
async apiV1ObservabilityLogsGet(requestParameters = {}, initOverrides) {
|
|
63
|
+
const response = await this.apiV1ObservabilityLogsGetRaw(requestParameters, initOverrides);
|
|
64
|
+
return await response.value();
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns OpenTelemetry trace spans stored for the selected team and region.
|
|
68
|
+
* Query observability trace spans
|
|
69
|
+
*/
|
|
70
|
+
async apiV1ObservabilityTracesGetRaw(requestParameters, initOverrides) {
|
|
71
|
+
const queryParameters = {};
|
|
72
|
+
if (requestParameters['sandboxId'] != null) {
|
|
73
|
+
queryParameters['sandbox_id'] = requestParameters['sandboxId'];
|
|
74
|
+
}
|
|
75
|
+
if (requestParameters['traceId'] != null) {
|
|
76
|
+
queryParameters['trace_id'] = requestParameters['traceId'];
|
|
77
|
+
}
|
|
78
|
+
if (requestParameters['startTime'] != null) {
|
|
79
|
+
queryParameters['start_time'] = requestParameters['startTime'].toISOString();
|
|
80
|
+
}
|
|
81
|
+
if (requestParameters['endTime'] != null) {
|
|
82
|
+
queryParameters['end_time'] = requestParameters['endTime'].toISOString();
|
|
83
|
+
}
|
|
84
|
+
if (requestParameters['limit'] != null) {
|
|
85
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
86
|
+
}
|
|
87
|
+
const headerParameters = {};
|
|
88
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
89
|
+
const token = this.configuration.accessToken;
|
|
90
|
+
const tokenString = await token("bearerAuth", []);
|
|
91
|
+
if (tokenString) {
|
|
92
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
let urlPath = `/api/v1/observability/traces`;
|
|
96
|
+
const response = await this.request({
|
|
97
|
+
path: urlPath,
|
|
98
|
+
method: 'GET',
|
|
99
|
+
headers: headerParameters,
|
|
100
|
+
query: queryParameters,
|
|
101
|
+
}, initOverrides);
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessObservabilityTraceSpanListResponseFromJSON(jsonValue));
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Returns OpenTelemetry trace spans stored for the selected team and region.
|
|
106
|
+
* Query observability trace spans
|
|
107
|
+
*/
|
|
108
|
+
async apiV1ObservabilityTracesGet(requestParameters = {}, initOverrides) {
|
|
109
|
+
const response = await this.apiV1ObservabilityTracesGetRaw(requestParameters, initOverrides);
|
|
110
|
+
return await response.value();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { ClaimRequest, PublicGatewayConfig, SandboxNetworkPolicy, SandboxRefreshRequest, SandboxUpdateRequest, SuccessClaimResponse,
|
|
13
|
+
import type { ClaimRequest, PublicGatewayConfig, SandboxNetworkPolicy, SandboxRefreshRequest, SandboxUpdateRequest, SuccessClaimResponse, SuccessMessageResponse, SuccessPauseSandboxResponse, SuccessPublicGatewayResponse, SuccessRefreshResponse, SuccessResumeSandboxResponse, SuccessSandboxListResponse, SuccessSandboxNetworkPolicyResponse, SuccessSandboxResponse, SuccessSandboxStatusResponse } from '../models/index.js';
|
|
14
14
|
export interface ApiV1SandboxesGetRequest {
|
|
15
15
|
status?: ApiV1SandboxesGetStatusEnum;
|
|
16
16
|
templateId?: string;
|
|
@@ -21,20 +21,6 @@ export interface ApiV1SandboxesGetRequest {
|
|
|
21
21
|
export interface ApiV1SandboxesIdDeleteRequest {
|
|
22
22
|
id: string;
|
|
23
23
|
}
|
|
24
|
-
export interface ApiV1SandboxesIdExposedPortsDeleteRequest {
|
|
25
|
-
id: string;
|
|
26
|
-
}
|
|
27
|
-
export interface ApiV1SandboxesIdExposedPortsGetRequest {
|
|
28
|
-
id: string;
|
|
29
|
-
}
|
|
30
|
-
export interface ApiV1SandboxesIdExposedPortsPortDeleteRequest {
|
|
31
|
-
id: string;
|
|
32
|
-
port: number;
|
|
33
|
-
}
|
|
34
|
-
export interface ApiV1SandboxesIdExposedPortsPutRequest {
|
|
35
|
-
id: string;
|
|
36
|
-
updateExposedPortsRequest: UpdateExposedPortsRequest;
|
|
37
|
-
}
|
|
38
24
|
export interface ApiV1SandboxesIdGetRequest {
|
|
39
25
|
id: string;
|
|
40
26
|
}
|
|
@@ -104,40 +90,6 @@ export declare class SandboxesApi extends runtime.BaseAPI {
|
|
|
104
90
|
* Delete (terminate) a sandbox
|
|
105
91
|
*/
|
|
106
92
|
apiV1SandboxesIdDelete(requestParameters: ApiV1SandboxesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessMessageResponse>;
|
|
107
|
-
/**
|
|
108
|
-
* Clear all exposed ports
|
|
109
|
-
*/
|
|
110
|
-
apiV1SandboxesIdExposedPortsDeleteRaw(requestParameters: ApiV1SandboxesIdExposedPortsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessExposedPortsResponse>>;
|
|
111
|
-
/**
|
|
112
|
-
* Clear all exposed ports
|
|
113
|
-
*/
|
|
114
|
-
apiV1SandboxesIdExposedPortsDelete(requestParameters: ApiV1SandboxesIdExposedPortsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessExposedPortsResponse>;
|
|
115
|
-
/**
|
|
116
|
-
* Get sandbox exposed ports
|
|
117
|
-
*/
|
|
118
|
-
apiV1SandboxesIdExposedPortsGetRaw(requestParameters: ApiV1SandboxesIdExposedPortsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessExposedPortsResponse>>;
|
|
119
|
-
/**
|
|
120
|
-
* Get sandbox exposed ports
|
|
121
|
-
*/
|
|
122
|
-
apiV1SandboxesIdExposedPortsGet(requestParameters: ApiV1SandboxesIdExposedPortsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessExposedPortsResponse>;
|
|
123
|
-
/**
|
|
124
|
-
* Remove a specific exposed port
|
|
125
|
-
*/
|
|
126
|
-
apiV1SandboxesIdExposedPortsPortDeleteRaw(requestParameters: ApiV1SandboxesIdExposedPortsPortDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessExposedPortsResponse>>;
|
|
127
|
-
/**
|
|
128
|
-
* Remove a specific exposed port
|
|
129
|
-
*/
|
|
130
|
-
apiV1SandboxesIdExposedPortsPortDelete(requestParameters: ApiV1SandboxesIdExposedPortsPortDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessExposedPortsResponse>;
|
|
131
|
-
/**
|
|
132
|
-
* Replaces all exposed ports for the sandbox. Used to control which ports are publicly accessible via the exposure domain.
|
|
133
|
-
* Update sandbox exposed ports
|
|
134
|
-
*/
|
|
135
|
-
apiV1SandboxesIdExposedPortsPutRaw(requestParameters: ApiV1SandboxesIdExposedPortsPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessExposedPortsResponse>>;
|
|
136
|
-
/**
|
|
137
|
-
* Replaces all exposed ports for the sandbox. Used to control which ports are publicly accessible via the exposure domain.
|
|
138
|
-
* Update sandbox exposed ports
|
|
139
|
-
*/
|
|
140
|
-
apiV1SandboxesIdExposedPortsPut(requestParameters: ApiV1SandboxesIdExposedPortsPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessExposedPortsResponse>;
|
|
141
93
|
/**
|
|
142
94
|
* Get sandbox by ID
|
|
143
95
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SandboxesApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/SandboxesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EAEZ,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"SandboxesApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/SandboxesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EAEZ,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,EAC5B,0BAA0B,EAC1B,mCAAmC,EACnC,sBAAsB,EACtB,4BAA4B,EAC7B,MAAM,iBAAiB,CAAC;AAoCzB,MAAM,WAAW,wBAAwB;IACrC,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC1C,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;CACd;AAED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AAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAKzL;;OAEG;IACG,4BAA4B,CAAC,iBAAiB,EAAE,gCAAgC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC;IAkC/M;;OAEG;IACG,yBAAyB,CAAC,iBAAiB,EAAE,gCAAgC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAKvL;;OAEG;IACG,qBAAqB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAoCzL;;OAEG;IACG,kBAAkB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAKpK;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;CAK9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { ClaimRequestToJSON, PublicGatewayConfigToJSON, SandboxNetworkPolicyToJSON, SandboxRefreshRequestToJSON, SandboxUpdateRequestToJSON, SuccessClaimResponseFromJSON,
|
|
15
|
+
import { ClaimRequestToJSON, PublicGatewayConfigToJSON, SandboxNetworkPolicyToJSON, SandboxRefreshRequestToJSON, SandboxUpdateRequestToJSON, SuccessClaimResponseFromJSON, SuccessMessageResponseFromJSON, SuccessPauseSandboxResponseFromJSON, SuccessPublicGatewayResponseFromJSON, SuccessRefreshResponseFromJSON, SuccessResumeSandboxResponseFromJSON, SuccessSandboxListResponseFromJSON, SuccessSandboxNetworkPolicyResponseFromJSON, SuccessSandboxResponseFromJSON, SuccessSandboxStatusResponseFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -96,149 +96,6 @@ export class SandboxesApi extends runtime.BaseAPI {
|
|
|
96
96
|
const response = await this.apiV1SandboxesIdDeleteRaw(requestParameters, initOverrides);
|
|
97
97
|
return await response.value();
|
|
98
98
|
}
|
|
99
|
-
/**
|
|
100
|
-
* Clear all exposed ports
|
|
101
|
-
*/
|
|
102
|
-
async apiV1SandboxesIdExposedPortsDeleteRaw(requestParameters, initOverrides) {
|
|
103
|
-
if (requestParameters['id'] == null) {
|
|
104
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdExposedPortsDelete().');
|
|
105
|
-
}
|
|
106
|
-
const queryParameters = {};
|
|
107
|
-
const headerParameters = {};
|
|
108
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
109
|
-
const token = this.configuration.accessToken;
|
|
110
|
-
const tokenString = await token("bearerAuth", []);
|
|
111
|
-
if (tokenString) {
|
|
112
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
let urlPath = `/api/v1/sandboxes/{id}/exposed-ports`;
|
|
116
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
117
|
-
const response = await this.request({
|
|
118
|
-
path: urlPath,
|
|
119
|
-
method: 'DELETE',
|
|
120
|
-
headers: headerParameters,
|
|
121
|
-
query: queryParameters,
|
|
122
|
-
}, initOverrides);
|
|
123
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessExposedPortsResponseFromJSON(jsonValue));
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Clear all exposed ports
|
|
127
|
-
*/
|
|
128
|
-
async apiV1SandboxesIdExposedPortsDelete(requestParameters, initOverrides) {
|
|
129
|
-
const response = await this.apiV1SandboxesIdExposedPortsDeleteRaw(requestParameters, initOverrides);
|
|
130
|
-
return await response.value();
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Get sandbox exposed ports
|
|
134
|
-
*/
|
|
135
|
-
async apiV1SandboxesIdExposedPortsGetRaw(requestParameters, initOverrides) {
|
|
136
|
-
if (requestParameters['id'] == null) {
|
|
137
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdExposedPortsGet().');
|
|
138
|
-
}
|
|
139
|
-
const queryParameters = {};
|
|
140
|
-
const headerParameters = {};
|
|
141
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
142
|
-
const token = this.configuration.accessToken;
|
|
143
|
-
const tokenString = await token("bearerAuth", []);
|
|
144
|
-
if (tokenString) {
|
|
145
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
let urlPath = `/api/v1/sandboxes/{id}/exposed-ports`;
|
|
149
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
150
|
-
const response = await this.request({
|
|
151
|
-
path: urlPath,
|
|
152
|
-
method: 'GET',
|
|
153
|
-
headers: headerParameters,
|
|
154
|
-
query: queryParameters,
|
|
155
|
-
}, initOverrides);
|
|
156
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessExposedPortsResponseFromJSON(jsonValue));
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Get sandbox exposed ports
|
|
160
|
-
*/
|
|
161
|
-
async apiV1SandboxesIdExposedPortsGet(requestParameters, initOverrides) {
|
|
162
|
-
const response = await this.apiV1SandboxesIdExposedPortsGetRaw(requestParameters, initOverrides);
|
|
163
|
-
return await response.value();
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Remove a specific exposed port
|
|
167
|
-
*/
|
|
168
|
-
async apiV1SandboxesIdExposedPortsPortDeleteRaw(requestParameters, initOverrides) {
|
|
169
|
-
if (requestParameters['id'] == null) {
|
|
170
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdExposedPortsPortDelete().');
|
|
171
|
-
}
|
|
172
|
-
if (requestParameters['port'] == null) {
|
|
173
|
-
throw new runtime.RequiredError('port', 'Required parameter "port" was null or undefined when calling apiV1SandboxesIdExposedPortsPortDelete().');
|
|
174
|
-
}
|
|
175
|
-
const queryParameters = {};
|
|
176
|
-
const headerParameters = {};
|
|
177
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
178
|
-
const token = this.configuration.accessToken;
|
|
179
|
-
const tokenString = await token("bearerAuth", []);
|
|
180
|
-
if (tokenString) {
|
|
181
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
let urlPath = `/api/v1/sandboxes/{id}/exposed-ports/{port}`;
|
|
185
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
186
|
-
urlPath = urlPath.replace(`{${"port"}}`, encodeURIComponent(String(requestParameters['port'])));
|
|
187
|
-
const response = await this.request({
|
|
188
|
-
path: urlPath,
|
|
189
|
-
method: 'DELETE',
|
|
190
|
-
headers: headerParameters,
|
|
191
|
-
query: queryParameters,
|
|
192
|
-
}, initOverrides);
|
|
193
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessExposedPortsResponseFromJSON(jsonValue));
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Remove a specific exposed port
|
|
197
|
-
*/
|
|
198
|
-
async apiV1SandboxesIdExposedPortsPortDelete(requestParameters, initOverrides) {
|
|
199
|
-
const response = await this.apiV1SandboxesIdExposedPortsPortDeleteRaw(requestParameters, initOverrides);
|
|
200
|
-
return await response.value();
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Replaces all exposed ports for the sandbox. Used to control which ports are publicly accessible via the exposure domain.
|
|
204
|
-
* Update sandbox exposed ports
|
|
205
|
-
*/
|
|
206
|
-
async apiV1SandboxesIdExposedPortsPutRaw(requestParameters, initOverrides) {
|
|
207
|
-
if (requestParameters['id'] == null) {
|
|
208
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdExposedPortsPut().');
|
|
209
|
-
}
|
|
210
|
-
if (requestParameters['updateExposedPortsRequest'] == null) {
|
|
211
|
-
throw new runtime.RequiredError('updateExposedPortsRequest', 'Required parameter "updateExposedPortsRequest" was null or undefined when calling apiV1SandboxesIdExposedPortsPut().');
|
|
212
|
-
}
|
|
213
|
-
const queryParameters = {};
|
|
214
|
-
const headerParameters = {};
|
|
215
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
216
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
217
|
-
const token = this.configuration.accessToken;
|
|
218
|
-
const tokenString = await token("bearerAuth", []);
|
|
219
|
-
if (tokenString) {
|
|
220
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
let urlPath = `/api/v1/sandboxes/{id}/exposed-ports`;
|
|
224
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
225
|
-
const response = await this.request({
|
|
226
|
-
path: urlPath,
|
|
227
|
-
method: 'PUT',
|
|
228
|
-
headers: headerParameters,
|
|
229
|
-
query: queryParameters,
|
|
230
|
-
body: UpdateExposedPortsRequestToJSON(requestParameters['updateExposedPortsRequest']),
|
|
231
|
-
}, initOverrides);
|
|
232
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessExposedPortsResponseFromJSON(jsonValue));
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Replaces all exposed ports for the sandbox. Used to control which ports are publicly accessible via the exposure domain.
|
|
236
|
-
* Update sandbox exposed ports
|
|
237
|
-
*/
|
|
238
|
-
async apiV1SandboxesIdExposedPortsPut(requestParameters, initOverrides) {
|
|
239
|
-
const response = await this.apiV1SandboxesIdExposedPortsPutRaw(requestParameters, initOverrides);
|
|
240
|
-
return await response.value();
|
|
241
|
-
}
|
|
242
99
|
/**
|
|
243
100
|
* Get sandbox by ID
|
|
244
101
|
*/
|
|
@@ -4,6 +4,7 @@ export * from './ContextsApi.js';
|
|
|
4
4
|
export * from './CredentialSourcesApi.js';
|
|
5
5
|
export * from './FilesApi.js';
|
|
6
6
|
export * from './HealthApi.js';
|
|
7
|
+
export * from './ObservabilityApi.js';
|
|
7
8
|
export * from './RegionsApi.js';
|
|
8
9
|
export * from './RegistryApi.js';
|
|
9
10
|
export * from './SandboxVolumesApi.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
|
@@ -6,6 +6,7 @@ export * from './ContextsApi.js';
|
|
|
6
6
|
export * from './CredentialSourcesApi.js';
|
|
7
7
|
export * from './FilesApi.js';
|
|
8
8
|
export * from './HealthApi.js';
|
|
9
|
+
export * from './ObservabilityApi.js';
|
|
9
10
|
export * from './RegionsApi.js';
|
|
10
11
|
export * from './RegistryApi.js';
|
|
11
12
|
export * from './SandboxVolumesApi.js';
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ObservabilityLogRecord
|
|
16
|
+
*/
|
|
17
|
+
export interface ObservabilityLogRecord {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ObservabilityLogRecord
|
|
22
|
+
*/
|
|
23
|
+
timestamp?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ObservabilityLogRecord
|
|
28
|
+
*/
|
|
29
|
+
traceId?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ObservabilityLogRecord
|
|
34
|
+
*/
|
|
35
|
+
spanId?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ObservabilityLogRecord
|
|
40
|
+
*/
|
|
41
|
+
severityText?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ObservabilityLogRecord
|
|
46
|
+
*/
|
|
47
|
+
severityNumber?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ObservabilityLogRecord
|
|
52
|
+
*/
|
|
53
|
+
body?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {{ [key: string]: string; }}
|
|
57
|
+
* @memberof ObservabilityLogRecord
|
|
58
|
+
*/
|
|
59
|
+
resourceAttributes?: {
|
|
60
|
+
[key: string]: string;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {{ [key: string]: string; }}
|
|
65
|
+
* @memberof ObservabilityLogRecord
|
|
66
|
+
*/
|
|
67
|
+
attributes?: {
|
|
68
|
+
[key: string]: string;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the ObservabilityLogRecord interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfObservabilityLogRecord(value: object): value is ObservabilityLogRecord;
|
|
75
|
+
export declare function ObservabilityLogRecordFromJSON(json: any): ObservabilityLogRecord;
|
|
76
|
+
export declare function ObservabilityLogRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): ObservabilityLogRecord;
|
|
77
|
+
export declare function ObservabilityLogRecordToJSON(json: any): ObservabilityLogRecord;
|
|
78
|
+
export declare function ObservabilityLogRecordToJSONTyped(value?: ObservabilityLogRecord | null, ignoreDiscriminator?: boolean): any;
|
|
79
|
+
//# sourceMappingURL=ObservabilityLogRecord.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservabilityLogRecord.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ObservabilityLogRecord.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,kBAAkB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IAChD;;;;OAIG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;CAC3C;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAE/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAenH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgBlI"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the ObservabilityLogRecord interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfObservabilityLogRecord(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ObservabilityLogRecordFromJSON(json) {
|
|
21
|
+
return ObservabilityLogRecordFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ObservabilityLogRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
|
29
|
+
'traceId': json['trace_id'] == null ? undefined : json['trace_id'],
|
|
30
|
+
'spanId': json['span_id'] == null ? undefined : json['span_id'],
|
|
31
|
+
'severityText': json['severity_text'] == null ? undefined : json['severity_text'],
|
|
32
|
+
'severityNumber': json['severity_number'] == null ? undefined : json['severity_number'],
|
|
33
|
+
'body': json['body'] == null ? undefined : json['body'],
|
|
34
|
+
'resourceAttributes': json['resource_attributes'] == null ? undefined : json['resource_attributes'],
|
|
35
|
+
'attributes': json['attributes'] == null ? undefined : json['attributes'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function ObservabilityLogRecordToJSON(json) {
|
|
39
|
+
return ObservabilityLogRecordToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ObservabilityLogRecordToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'timestamp': value['timestamp'],
|
|
47
|
+
'trace_id': value['traceId'],
|
|
48
|
+
'span_id': value['spanId'],
|
|
49
|
+
'severity_text': value['severityText'],
|
|
50
|
+
'severity_number': value['severityNumber'],
|
|
51
|
+
'body': value['body'],
|
|
52
|
+
'resource_attributes': value['resourceAttributes'],
|
|
53
|
+
'attributes': value['attributes'],
|
|
54
|
+
};
|
|
55
|
+
}
|