@forteplatforms/sdk 1.0.24 → 1.0.28
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/generated/apis/ProjectsServerApi.d.ts +14 -1
- package/dist/generated/apis/ProjectsServerApi.js +59 -0
- package/dist/generated/models/BuildStepLog.d.ts +6 -0
- package/dist/generated/models/BuildStepLog.js +6 -0
- package/dist/generated/models/CreateForteServiceRequest.d.ts +12 -0
- package/dist/generated/models/CreateForteServiceRequest.js +4 -0
- package/dist/generated/models/LogLineObject.d.ts +6 -0
- package/dist/generated/models/LogLineObject.js +2 -0
- package/dist/generated/models/ServiceBuildRequestObject.d.ts +10 -0
- package/dist/generated/models/ServiceBuildRequestObject.js +7 -1
- package/dist/generated/models/TestInvocationRequest.d.ts +72 -0
- package/dist/generated/models/TestInvocationRequest.js +73 -0
- package/dist/generated/models/TestInvocationResponse.d.ts +52 -0
- package/dist/generated/models/TestInvocationResponse.js +55 -0
- package/dist/generated/models/UpdateForteServiceRequest.d.ts +12 -0
- package/dist/generated/models/UpdateForteServiceRequest.js +4 -0
- package/dist/generated/models/index.d.ts +2 -0
- package/dist/generated/models/index.js +2 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiKeySummary, CreateForteServiceRequest, CreateProjectApiKeyRequest, CreateProjectApiKeyResponse, CreateServiceRequestProxyRequest, CreateServiceRequestProxyResponse, PaginatedResponseLogLineObject, PaginatedResponseRequestLogObject, PaginatedResponseServiceBuildRequestObject, PaginatedResponseUserActionLogObject, PaginatedResponseUserObject, ProjectObject, RequestLogObject, ServiceBuildRequestObject, ServiceMetricsResponse, ServiceObject, UpdateForteServiceRequest, UpdateForteServiceResponse, UpdateProjectRequest, UserMetricsResponse, UserObject } from '../models/index';
|
|
13
|
+
import type { ApiKeySummary, CreateForteServiceRequest, CreateProjectApiKeyRequest, CreateProjectApiKeyResponse, CreateServiceRequestProxyRequest, CreateServiceRequestProxyResponse, PaginatedResponseLogLineObject, PaginatedResponseRequestLogObject, PaginatedResponseServiceBuildRequestObject, PaginatedResponseUserActionLogObject, PaginatedResponseUserObject, ProjectObject, RequestLogObject, ServiceBuildRequestObject, ServiceMetricsResponse, ServiceObject, TestInvocationRequest, TestInvocationResponse, UpdateForteServiceRequest, UpdateForteServiceResponse, UpdateProjectRequest, UserMetricsResponse, UserObject } from '../models/index';
|
|
14
14
|
export interface CreateProjectRequest {
|
|
15
15
|
projectName: string;
|
|
16
16
|
}
|
|
@@ -84,6 +84,7 @@ export interface ListLogLinesRequest {
|
|
|
84
84
|
maxTime?: Date;
|
|
85
85
|
requestId?: string;
|
|
86
86
|
buildId?: string;
|
|
87
|
+
level?: string;
|
|
87
88
|
nextToken?: string;
|
|
88
89
|
}
|
|
89
90
|
export interface ListProjectApiKeysRequest {
|
|
@@ -132,12 +133,18 @@ export interface SearchLogLinesRequest {
|
|
|
132
133
|
minTime?: Date;
|
|
133
134
|
maxTime?: Date;
|
|
134
135
|
requestId?: string;
|
|
136
|
+
level?: string;
|
|
135
137
|
nextToken?: string;
|
|
136
138
|
}
|
|
137
139
|
export interface SuspendUserRequest {
|
|
138
140
|
userId: string;
|
|
139
141
|
projectId: string;
|
|
140
142
|
}
|
|
143
|
+
export interface TestInvocationOperationRequest {
|
|
144
|
+
projectId: string;
|
|
145
|
+
serviceId: string;
|
|
146
|
+
testInvocationRequest: TestInvocationRequest;
|
|
147
|
+
}
|
|
141
148
|
export interface UpdateProjectOperationRequest {
|
|
142
149
|
projectId: string;
|
|
143
150
|
updateProjectRequest: UpdateProjectRequest;
|
|
@@ -301,6 +308,12 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
|
|
|
301
308
|
/**
|
|
302
309
|
*/
|
|
303
310
|
suspendUser(requestParameters: SuspendUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserObject>;
|
|
311
|
+
/**
|
|
312
|
+
*/
|
|
313
|
+
testInvocationRaw(requestParameters: TestInvocationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TestInvocationResponse>>;
|
|
314
|
+
/**
|
|
315
|
+
*/
|
|
316
|
+
testInvocation(requestParameters: TestInvocationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TestInvocationResponse>;
|
|
304
317
|
/**
|
|
305
318
|
*/
|
|
306
319
|
updateProjectRaw(requestParameters: UpdateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectObject>>;
|
|
@@ -838,6 +838,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
838
838
|
if (requestParameters['buildId'] != null) {
|
|
839
839
|
queryParameters['buildId'] = requestParameters['buildId'];
|
|
840
840
|
}
|
|
841
|
+
if (requestParameters['level'] != null) {
|
|
842
|
+
queryParameters['level'] = requestParameters['level'];
|
|
843
|
+
}
|
|
841
844
|
if (requestParameters['nextToken'] != null) {
|
|
842
845
|
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
843
846
|
}
|
|
@@ -1271,6 +1274,9 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1271
1274
|
if (requestParameters['requestId'] != null) {
|
|
1272
1275
|
queryParameters['requestId'] = requestParameters['requestId'];
|
|
1273
1276
|
}
|
|
1277
|
+
if (requestParameters['level'] != null) {
|
|
1278
|
+
queryParameters['level'] = requestParameters['level'];
|
|
1279
|
+
}
|
|
1274
1280
|
if (requestParameters['nextToken'] != null) {
|
|
1275
1281
|
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
1276
1282
|
}
|
|
@@ -1355,6 +1361,59 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
1355
1361
|
});
|
|
1356
1362
|
});
|
|
1357
1363
|
};
|
|
1364
|
+
/**
|
|
1365
|
+
*/
|
|
1366
|
+
ProjectsServerApi.prototype.testInvocationRaw = function (requestParameters, initOverrides) {
|
|
1367
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1368
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
1369
|
+
return __generator(this, function (_a) {
|
|
1370
|
+
switch (_a.label) {
|
|
1371
|
+
case 0:
|
|
1372
|
+
if (requestParameters['projectId'] == null) {
|
|
1373
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling testInvocation().');
|
|
1374
|
+
}
|
|
1375
|
+
if (requestParameters['serviceId'] == null) {
|
|
1376
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling testInvocation().');
|
|
1377
|
+
}
|
|
1378
|
+
if (requestParameters['testInvocationRequest'] == null) {
|
|
1379
|
+
throw new runtime.RequiredError('testInvocationRequest', 'Required parameter "testInvocationRequest" was null or undefined when calling testInvocation().');
|
|
1380
|
+
}
|
|
1381
|
+
queryParameters = {};
|
|
1382
|
+
headerParameters = {};
|
|
1383
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1384
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/test-invocation";
|
|
1385
|
+
urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
|
|
1386
|
+
urlPath = urlPath.replace("{".concat("serviceId", "}"), encodeURIComponent(String(requestParameters['serviceId'])));
|
|
1387
|
+
return [4 /*yield*/, this.request({
|
|
1388
|
+
path: urlPath,
|
|
1389
|
+
method: 'POST',
|
|
1390
|
+
headers: headerParameters,
|
|
1391
|
+
query: queryParameters,
|
|
1392
|
+
body: (0, index_1.TestInvocationRequestToJSON)(requestParameters['testInvocationRequest']),
|
|
1393
|
+
}, initOverrides)];
|
|
1394
|
+
case 1:
|
|
1395
|
+
response = _a.sent();
|
|
1396
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TestInvocationResponseFromJSON)(jsonValue); })];
|
|
1397
|
+
}
|
|
1398
|
+
});
|
|
1399
|
+
});
|
|
1400
|
+
};
|
|
1401
|
+
/**
|
|
1402
|
+
*/
|
|
1403
|
+
ProjectsServerApi.prototype.testInvocation = function (requestParameters, initOverrides) {
|
|
1404
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1405
|
+
var response;
|
|
1406
|
+
return __generator(this, function (_a) {
|
|
1407
|
+
switch (_a.label) {
|
|
1408
|
+
case 0: return [4 /*yield*/, this.testInvocationRaw(requestParameters, initOverrides)];
|
|
1409
|
+
case 1:
|
|
1410
|
+
response = _a.sent();
|
|
1411
|
+
return [4 /*yield*/, response.value()];
|
|
1412
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1413
|
+
}
|
|
1414
|
+
});
|
|
1415
|
+
});
|
|
1416
|
+
};
|
|
1358
1417
|
/**
|
|
1359
1418
|
*/
|
|
1360
1419
|
ProjectsServerApi.prototype.updateProjectRaw = function (requestParameters, initOverrides) {
|
|
@@ -45,8 +45,11 @@ export interface BuildStepLog {
|
|
|
45
45
|
*/
|
|
46
46
|
export declare const BuildStepLogPreviousStatusType: {
|
|
47
47
|
readonly PENDING: "PENDING";
|
|
48
|
+
readonly CLONING_REPOSITORY: "CLONING_REPOSITORY";
|
|
48
49
|
readonly GENERATING_DOCKERFILE: "GENERATING_DOCKERFILE";
|
|
49
50
|
readonly DOCKERFILE_GENERATION_FAILURE: "DOCKERFILE_GENERATION_FAILURE";
|
|
51
|
+
readonly VALIDATING_GENERATED_DOCKERFILE: "VALIDATING_GENERATED_DOCKERFILE";
|
|
52
|
+
readonly VALIDATED_GENERATED_DOCKERFILE: "VALIDATED_GENERATED_DOCKERFILE";
|
|
50
53
|
readonly BUILDING_DOCKER_IMAGE: "BUILDING_DOCKER_IMAGE";
|
|
51
54
|
readonly DOCKER_IMAGE_BUILD_FAILURE: "DOCKER_IMAGE_BUILD_FAILURE";
|
|
52
55
|
readonly DETECTING_HEALTH_CHECK_CONFIG: "DETECTING_HEALTH_CHECK_CONFIG";
|
|
@@ -67,8 +70,11 @@ export type BuildStepLogPreviousStatusType = typeof BuildStepLogPreviousStatusTy
|
|
|
67
70
|
*/
|
|
68
71
|
export declare const BuildStepLogNewStatusType: {
|
|
69
72
|
readonly PENDING: "PENDING";
|
|
73
|
+
readonly CLONING_REPOSITORY: "CLONING_REPOSITORY";
|
|
70
74
|
readonly GENERATING_DOCKERFILE: "GENERATING_DOCKERFILE";
|
|
71
75
|
readonly DOCKERFILE_GENERATION_FAILURE: "DOCKERFILE_GENERATION_FAILURE";
|
|
76
|
+
readonly VALIDATING_GENERATED_DOCKERFILE: "VALIDATING_GENERATED_DOCKERFILE";
|
|
77
|
+
readonly VALIDATED_GENERATED_DOCKERFILE: "VALIDATED_GENERATED_DOCKERFILE";
|
|
72
78
|
readonly BUILDING_DOCKER_IMAGE: "BUILDING_DOCKER_IMAGE";
|
|
73
79
|
readonly DOCKER_IMAGE_BUILD_FAILURE: "DOCKER_IMAGE_BUILD_FAILURE";
|
|
74
80
|
readonly DETECTING_HEALTH_CHECK_CONFIG: "DETECTING_HEALTH_CHECK_CONFIG";
|
|
@@ -24,8 +24,11 @@ exports.BuildStepLogToJSONTyped = BuildStepLogToJSONTyped;
|
|
|
24
24
|
*/
|
|
25
25
|
exports.BuildStepLogPreviousStatusType = {
|
|
26
26
|
PENDING: 'PENDING',
|
|
27
|
+
CLONING_REPOSITORY: 'CLONING_REPOSITORY',
|
|
27
28
|
GENERATING_DOCKERFILE: 'GENERATING_DOCKERFILE',
|
|
28
29
|
DOCKERFILE_GENERATION_FAILURE: 'DOCKERFILE_GENERATION_FAILURE',
|
|
30
|
+
VALIDATING_GENERATED_DOCKERFILE: 'VALIDATING_GENERATED_DOCKERFILE',
|
|
31
|
+
VALIDATED_GENERATED_DOCKERFILE: 'VALIDATED_GENERATED_DOCKERFILE',
|
|
29
32
|
BUILDING_DOCKER_IMAGE: 'BUILDING_DOCKER_IMAGE',
|
|
30
33
|
DOCKER_IMAGE_BUILD_FAILURE: 'DOCKER_IMAGE_BUILD_FAILURE',
|
|
31
34
|
DETECTING_HEALTH_CHECK_CONFIG: 'DETECTING_HEALTH_CHECK_CONFIG',
|
|
@@ -45,8 +48,11 @@ exports.BuildStepLogPreviousStatusType = {
|
|
|
45
48
|
*/
|
|
46
49
|
exports.BuildStepLogNewStatusType = {
|
|
47
50
|
PENDING: 'PENDING',
|
|
51
|
+
CLONING_REPOSITORY: 'CLONING_REPOSITORY',
|
|
48
52
|
GENERATING_DOCKERFILE: 'GENERATING_DOCKERFILE',
|
|
49
53
|
DOCKERFILE_GENERATION_FAILURE: 'DOCKERFILE_GENERATION_FAILURE',
|
|
54
|
+
VALIDATING_GENERATED_DOCKERFILE: 'VALIDATING_GENERATED_DOCKERFILE',
|
|
55
|
+
VALIDATED_GENERATED_DOCKERFILE: 'VALIDATED_GENERATED_DOCKERFILE',
|
|
50
56
|
BUILDING_DOCKER_IMAGE: 'BUILDING_DOCKER_IMAGE',
|
|
51
57
|
DOCKER_IMAGE_BUILD_FAILURE: 'DOCKER_IMAGE_BUILD_FAILURE',
|
|
52
58
|
DETECTING_HEALTH_CHECK_CONFIG: 'DETECTING_HEALTH_CHECK_CONFIG',
|
|
@@ -61,6 +61,18 @@ export interface CreateForteServiceRequest {
|
|
|
61
61
|
* @memberof CreateForteServiceRequest
|
|
62
62
|
*/
|
|
63
63
|
containerCpu?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof CreateForteServiceRequest
|
|
68
|
+
*/
|
|
69
|
+
healthCheckPort?: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof CreateForteServiceRequest
|
|
74
|
+
*/
|
|
75
|
+
healthCheckPath?: string;
|
|
64
76
|
}
|
|
65
77
|
/**
|
|
66
78
|
* Check if a given object implements the CreateForteServiceRequest interface.
|
|
@@ -45,6 +45,8 @@ function CreateForteServiceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'secrets': json['secrets'] == null ? undefined : json['secrets'],
|
|
46
46
|
'baseInstances': json['baseInstances'] == null ? undefined : json['baseInstances'],
|
|
47
47
|
'containerCpu': json['containerCpu'] == null ? undefined : json['containerCpu'],
|
|
48
|
+
'healthCheckPort': json['healthCheckPort'] == null ? undefined : json['healthCheckPort'],
|
|
49
|
+
'healthCheckPath': json['healthCheckPath'] == null ? undefined : json['healthCheckPath'],
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
function CreateForteServiceRequestToJSON(json) {
|
|
@@ -63,5 +65,7 @@ function CreateForteServiceRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
63
65
|
'secrets': value['secrets'],
|
|
64
66
|
'baseInstances': value['baseInstances'],
|
|
65
67
|
'containerCpu': value['containerCpu'],
|
|
68
|
+
'healthCheckPort': value['healthCheckPort'],
|
|
69
|
+
'healthCheckPath': value['healthCheckPath'],
|
|
66
70
|
};
|
|
67
71
|
}
|
|
@@ -39,6 +39,7 @@ function LogLineObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
41
|
'timestamp': (new Date(json['timestamp'])),
|
|
42
|
+
'ingestionDelayMillis': json['ingestionDelayMillis'] == null ? undefined : json['ingestionDelayMillis'],
|
|
42
43
|
'level': json['level'] == null ? undefined : json['level'],
|
|
43
44
|
'message': json['message'],
|
|
44
45
|
'serviceId': json['serviceId'],
|
|
@@ -57,6 +58,7 @@ function LogLineObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
|
57
58
|
}
|
|
58
59
|
return {
|
|
59
60
|
'timestamp': value['timestamp'].toISOString(),
|
|
61
|
+
'ingestionDelayMillis': value['ingestionDelayMillis'],
|
|
60
62
|
'level': value['level'],
|
|
61
63
|
'message': value['message'],
|
|
62
64
|
'serviceId': value['serviceId'],
|
|
@@ -78,6 +78,12 @@ export interface ServiceBuildRequestObject {
|
|
|
78
78
|
* @memberof ServiceBuildRequestObject
|
|
79
79
|
*/
|
|
80
80
|
origin?: ServiceBuildRequestObjectOriginType;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
* @memberof ServiceBuildRequestObject
|
|
85
|
+
*/
|
|
86
|
+
allBuildLogsReceived?: boolean;
|
|
81
87
|
/**
|
|
82
88
|
*
|
|
83
89
|
* @type {DockerfileGenerationError}
|
|
@@ -96,8 +102,11 @@ export interface ServiceBuildRequestObject {
|
|
|
96
102
|
*/
|
|
97
103
|
export declare const ServiceBuildRequestObjectStatusType: {
|
|
98
104
|
readonly PENDING: "PENDING";
|
|
105
|
+
readonly CLONING_REPOSITORY: "CLONING_REPOSITORY";
|
|
99
106
|
readonly GENERATING_DOCKERFILE: "GENERATING_DOCKERFILE";
|
|
100
107
|
readonly DOCKERFILE_GENERATION_FAILURE: "DOCKERFILE_GENERATION_FAILURE";
|
|
108
|
+
readonly VALIDATING_GENERATED_DOCKERFILE: "VALIDATING_GENERATED_DOCKERFILE";
|
|
109
|
+
readonly VALIDATED_GENERATED_DOCKERFILE: "VALIDATED_GENERATED_DOCKERFILE";
|
|
101
110
|
readonly BUILDING_DOCKER_IMAGE: "BUILDING_DOCKER_IMAGE";
|
|
102
111
|
readonly DOCKER_IMAGE_BUILD_FAILURE: "DOCKER_IMAGE_BUILD_FAILURE";
|
|
103
112
|
readonly DETECTING_HEALTH_CHECK_CONFIG: "DETECTING_HEALTH_CHECK_CONFIG";
|
|
@@ -121,6 +130,7 @@ export declare const ServiceBuildRequestObjectOriginType: {
|
|
|
121
130
|
readonly TRIGGERED_BY_PUSH: "TRIGGERED_BY_PUSH";
|
|
122
131
|
readonly MANUAL_TRIGGER_FROM_DASHBOARD: "MANUAL_TRIGGER_FROM_DASHBOARD";
|
|
123
132
|
readonly CONFIG_CHANGE: "CONFIG_CHANGE";
|
|
133
|
+
readonly SHADOW_VALIDATION_BUILD: "SHADOW_VALIDATION_BUILD";
|
|
124
134
|
};
|
|
125
135
|
export type ServiceBuildRequestObjectOriginType = typeof ServiceBuildRequestObjectOriginType[keyof typeof ServiceBuildRequestObjectOriginType];
|
|
126
136
|
/**
|
|
@@ -27,8 +27,11 @@ var DockerfileGenerationError_1 = require("./DockerfileGenerationError");
|
|
|
27
27
|
*/
|
|
28
28
|
exports.ServiceBuildRequestObjectStatusType = {
|
|
29
29
|
PENDING: 'PENDING',
|
|
30
|
+
CLONING_REPOSITORY: 'CLONING_REPOSITORY',
|
|
30
31
|
GENERATING_DOCKERFILE: 'GENERATING_DOCKERFILE',
|
|
31
32
|
DOCKERFILE_GENERATION_FAILURE: 'DOCKERFILE_GENERATION_FAILURE',
|
|
33
|
+
VALIDATING_GENERATED_DOCKERFILE: 'VALIDATING_GENERATED_DOCKERFILE',
|
|
34
|
+
VALIDATED_GENERATED_DOCKERFILE: 'VALIDATED_GENERATED_DOCKERFILE',
|
|
32
35
|
BUILDING_DOCKER_IMAGE: 'BUILDING_DOCKER_IMAGE',
|
|
33
36
|
DOCKER_IMAGE_BUILD_FAILURE: 'DOCKER_IMAGE_BUILD_FAILURE',
|
|
34
37
|
DETECTING_HEALTH_CHECK_CONFIG: 'DETECTING_HEALTH_CHECK_CONFIG',
|
|
@@ -50,7 +53,8 @@ exports.ServiceBuildRequestObjectOriginType = {
|
|
|
50
53
|
INITIAL_BUILD: 'INITIAL_BUILD',
|
|
51
54
|
TRIGGERED_BY_PUSH: 'TRIGGERED_BY_PUSH',
|
|
52
55
|
MANUAL_TRIGGER_FROM_DASHBOARD: 'MANUAL_TRIGGER_FROM_DASHBOARD',
|
|
53
|
-
CONFIG_CHANGE: 'CONFIG_CHANGE'
|
|
56
|
+
CONFIG_CHANGE: 'CONFIG_CHANGE',
|
|
57
|
+
SHADOW_VALIDATION_BUILD: 'SHADOW_VALIDATION_BUILD'
|
|
54
58
|
};
|
|
55
59
|
/**
|
|
56
60
|
* Check if a given object implements the ServiceBuildRequestObject interface.
|
|
@@ -82,6 +86,7 @@ function ServiceBuildRequestObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
86
|
'buildStepLogs': json['buildStepLogs'] == null ? undefined : (json['buildStepLogs'].map(BuildStepLog_1.BuildStepLogFromJSON)),
|
|
83
87
|
'status': json['status'],
|
|
84
88
|
'origin': json['origin'] == null ? undefined : json['origin'],
|
|
89
|
+
'allBuildLogsReceived': json['allBuildLogsReceived'] == null ? undefined : json['allBuildLogsReceived'],
|
|
85
90
|
'dockerfileGenerationError': json['dockerfileGenerationError'] == null ? undefined : (0, DockerfileGenerationError_1.DockerfileGenerationErrorFromJSON)(json['dockerfileGenerationError']),
|
|
86
91
|
'healthCheckDetectionError': json['healthCheckDetectionError'] == null ? undefined : (0, HealthCheckDetectionError_1.HealthCheckDetectionErrorFromJSON)(json['healthCheckDetectionError']),
|
|
87
92
|
};
|
|
@@ -105,6 +110,7 @@ function ServiceBuildRequestObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
|
105
110
|
'buildStepLogs': value['buildStepLogs'] == null ? undefined : (value['buildStepLogs'].map(BuildStepLog_1.BuildStepLogToJSON)),
|
|
106
111
|
'status': value['status'],
|
|
107
112
|
'origin': value['origin'],
|
|
113
|
+
'allBuildLogsReceived': value['allBuildLogsReceived'],
|
|
108
114
|
'dockerfileGenerationError': (0, DockerfileGenerationError_1.DockerfileGenerationErrorToJSON)(value['dockerfileGenerationError']),
|
|
109
115
|
'healthCheckDetectionError': (0, HealthCheckDetectionError_1.HealthCheckDetectionErrorToJSON)(value['healthCheckDetectionError']),
|
|
110
116
|
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 TestInvocationRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface TestInvocationRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TestInvocationRequest
|
|
22
|
+
*/
|
|
23
|
+
path: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TestInvocationRequest
|
|
28
|
+
*/
|
|
29
|
+
httpMethod: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {{ [key: string]: string; }}
|
|
33
|
+
* @memberof TestInvocationRequest
|
|
34
|
+
*/
|
|
35
|
+
headers?: {
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof TestInvocationRequest
|
|
42
|
+
*/
|
|
43
|
+
body?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof TestInvocationRequest
|
|
48
|
+
*/
|
|
49
|
+
authMode: TestInvocationRequestAuthModeType;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof TestInvocationRequest
|
|
54
|
+
*/
|
|
55
|
+
sessionToken?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const TestInvocationRequestAuthModeType: {
|
|
61
|
+
readonly ANONYMOUS: "ANONYMOUS";
|
|
62
|
+
readonly AS_USER: "AS_USER";
|
|
63
|
+
};
|
|
64
|
+
export type TestInvocationRequestAuthModeType = typeof TestInvocationRequestAuthModeType[keyof typeof TestInvocationRequestAuthModeType];
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the TestInvocationRequest interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfTestInvocationRequest(value: object): value is TestInvocationRequest;
|
|
69
|
+
export declare function TestInvocationRequestFromJSON(json: any): TestInvocationRequest;
|
|
70
|
+
export declare function TestInvocationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestInvocationRequest;
|
|
71
|
+
export declare function TestInvocationRequestToJSON(json: any): TestInvocationRequest;
|
|
72
|
+
export declare function TestInvocationRequestToJSONTyped(value?: TestInvocationRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TestInvocationRequestAuthModeType = void 0;
|
|
17
|
+
exports.instanceOfTestInvocationRequest = instanceOfTestInvocationRequest;
|
|
18
|
+
exports.TestInvocationRequestFromJSON = TestInvocationRequestFromJSON;
|
|
19
|
+
exports.TestInvocationRequestFromJSONTyped = TestInvocationRequestFromJSONTyped;
|
|
20
|
+
exports.TestInvocationRequestToJSON = TestInvocationRequestToJSON;
|
|
21
|
+
exports.TestInvocationRequestToJSONTyped = TestInvocationRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.TestInvocationRequestAuthModeType = {
|
|
26
|
+
ANONYMOUS: 'ANONYMOUS',
|
|
27
|
+
AS_USER: 'AS_USER'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the TestInvocationRequest interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfTestInvocationRequest(value) {
|
|
33
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('httpMethod' in value) || value['httpMethod'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('authMode' in value) || value['authMode'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function TestInvocationRequestFromJSON(json) {
|
|
42
|
+
return TestInvocationRequestFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function TestInvocationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'path': json['path'],
|
|
50
|
+
'httpMethod': json['httpMethod'],
|
|
51
|
+
'headers': json['headers'] == null ? undefined : json['headers'],
|
|
52
|
+
'body': json['body'] == null ? undefined : json['body'],
|
|
53
|
+
'authMode': json['authMode'],
|
|
54
|
+
'sessionToken': json['sessionToken'] == null ? undefined : json['sessionToken'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function TestInvocationRequestToJSON(json) {
|
|
58
|
+
return TestInvocationRequestToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function TestInvocationRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
61
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'path': value['path'],
|
|
67
|
+
'httpMethod': value['httpMethod'],
|
|
68
|
+
'headers': value['headers'],
|
|
69
|
+
'body': value['body'],
|
|
70
|
+
'authMode': value['authMode'],
|
|
71
|
+
'sessionToken': value['sessionToken'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 TestInvocationResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface TestInvocationResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof TestInvocationResponse
|
|
22
|
+
*/
|
|
23
|
+
statusCode?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: string; }}
|
|
27
|
+
* @memberof TestInvocationResponse
|
|
28
|
+
*/
|
|
29
|
+
responseHeaders?: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof TestInvocationResponse
|
|
36
|
+
*/
|
|
37
|
+
responseBody?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof TestInvocationResponse
|
|
42
|
+
*/
|
|
43
|
+
latencyMilliseconds?: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the TestInvocationResponse interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfTestInvocationResponse(value: object): value is TestInvocationResponse;
|
|
49
|
+
export declare function TestInvocationResponseFromJSON(json: any): TestInvocationResponse;
|
|
50
|
+
export declare function TestInvocationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestInvocationResponse;
|
|
51
|
+
export declare function TestInvocationResponseToJSON(json: any): TestInvocationResponse;
|
|
52
|
+
export declare function TestInvocationResponseToJSONTyped(value?: TestInvocationResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTestInvocationResponse = instanceOfTestInvocationResponse;
|
|
17
|
+
exports.TestInvocationResponseFromJSON = TestInvocationResponseFromJSON;
|
|
18
|
+
exports.TestInvocationResponseFromJSONTyped = TestInvocationResponseFromJSONTyped;
|
|
19
|
+
exports.TestInvocationResponseToJSON = TestInvocationResponseToJSON;
|
|
20
|
+
exports.TestInvocationResponseToJSONTyped = TestInvocationResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TestInvocationResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTestInvocationResponse(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function TestInvocationResponseFromJSON(json) {
|
|
28
|
+
return TestInvocationResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function TestInvocationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'statusCode': json['statusCode'] == null ? undefined : json['statusCode'],
|
|
36
|
+
'responseHeaders': json['responseHeaders'] == null ? undefined : json['responseHeaders'],
|
|
37
|
+
'responseBody': json['responseBody'] == null ? undefined : json['responseBody'],
|
|
38
|
+
'latencyMilliseconds': json['latencyMilliseconds'] == null ? undefined : json['latencyMilliseconds'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function TestInvocationResponseToJSON(json) {
|
|
42
|
+
return TestInvocationResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function TestInvocationResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'statusCode': value['statusCode'],
|
|
51
|
+
'responseHeaders': value['responseHeaders'],
|
|
52
|
+
'responseBody': value['responseBody'],
|
|
53
|
+
'latencyMilliseconds': value['latencyMilliseconds'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -73,6 +73,18 @@ export interface UpdateForteServiceRequest {
|
|
|
73
73
|
* @memberof UpdateForteServiceRequest
|
|
74
74
|
*/
|
|
75
75
|
containerCpu?: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof UpdateForteServiceRequest
|
|
80
|
+
*/
|
|
81
|
+
healthCheckPort?: number;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof UpdateForteServiceRequest
|
|
86
|
+
*/
|
|
87
|
+
healthCheckPath?: string;
|
|
76
88
|
}
|
|
77
89
|
/**
|
|
78
90
|
* Check if a given object implements the UpdateForteServiceRequest interface.
|
|
@@ -41,6 +41,8 @@ function UpdateForteServiceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'authPathExclusions': json['authPathExclusions'] == null ? undefined : json['authPathExclusions'],
|
|
42
42
|
'baseInstances': json['baseInstances'] == null ? undefined : json['baseInstances'],
|
|
43
43
|
'containerCpu': json['containerCpu'] == null ? undefined : json['containerCpu'],
|
|
44
|
+
'healthCheckPort': json['healthCheckPort'] == null ? undefined : json['healthCheckPort'],
|
|
45
|
+
'healthCheckPath': json['healthCheckPath'] == null ? undefined : json['healthCheckPath'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
function UpdateForteServiceRequestToJSON(json) {
|
|
@@ -61,5 +63,7 @@ function UpdateForteServiceRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
61
63
|
'authPathExclusions': value['authPathExclusions'],
|
|
62
64
|
'baseInstances': value['baseInstances'],
|
|
63
65
|
'containerCpu': value['containerCpu'],
|
|
66
|
+
'healthCheckPort': value['healthCheckPort'],
|
|
67
|
+
'healthCheckPath': value['healthCheckPath'],
|
|
64
68
|
};
|
|
65
69
|
}
|
|
@@ -33,6 +33,8 @@ export * from './RequestLogObjectMeta';
|
|
|
33
33
|
export * from './ServiceBuildRequestObject';
|
|
34
34
|
export * from './ServiceMetricsResponse';
|
|
35
35
|
export * from './ServiceObject';
|
|
36
|
+
export * from './TestInvocationRequest';
|
|
37
|
+
export * from './TestInvocationResponse';
|
|
36
38
|
export * from './TimeSeriesDataPoint';
|
|
37
39
|
export * from './UpdateForteServiceRequest';
|
|
38
40
|
export * from './UpdateForteServiceResponse';
|
|
@@ -51,6 +51,8 @@ __exportStar(require("./RequestLogObjectMeta"), exports);
|
|
|
51
51
|
__exportStar(require("./ServiceBuildRequestObject"), exports);
|
|
52
52
|
__exportStar(require("./ServiceMetricsResponse"), exports);
|
|
53
53
|
__exportStar(require("./ServiceObject"), exports);
|
|
54
|
+
__exportStar(require("./TestInvocationRequest"), exports);
|
|
55
|
+
__exportStar(require("./TestInvocationResponse"), exports);
|
|
54
56
|
__exportStar(require("./TimeSeriesDataPoint"), exports);
|
|
55
57
|
__exportStar(require("./UpdateForteServiceRequest"), exports);
|
|
56
58
|
__exportStar(require("./UpdateForteServiceResponse"), exports);
|