kb-cloud-client-typescript 2.3.0-alpha.178 → 2.3.0-alpha.180
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/adminapi/apis/event-api.d.ts +55 -0
- package/dist/adminapi/apis/event-api.d.ts.map +1 -1
- package/dist/adminapi/apis/event-api.js +69 -0
- package/dist/adminapi/apis/event-api.js.map +1 -1
- package/dist/adminapi/apis/task-api.d.ts +56 -0
- package/dist/adminapi/apis/task-api.d.ts.map +1 -1
- package/dist/adminapi/apis/task-api.js +69 -0
- package/dist/adminapi/apis/task-api.js.map +1 -1
- package/dist/openapi/apis/event-api.d.ts +63 -0
- package/dist/openapi/apis/event-api.d.ts.map +1 -1
- package/dist/openapi/apis/event-api.js +74 -0
- package/dist/openapi/apis/event-api.js.map +1 -1
- package/dist/openapi/apis/task-api.d.ts +64 -0
- package/dist/openapi/apis/task-api.d.ts.map +1 -1
- package/dist/openapi/apis/task-api.js +74 -0
- package/dist/openapi/apis/task-api.js.map +1 -1
- package/dist/openapi/models/blue-green-deployment-item.d.ts +12 -0
- package/dist/openapi/models/blue-green-deployment-item.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/apis/event-api.ts +100 -0
- package/src/adminapi/apis/task-api.ts +102 -0
- package/src/adminapi.yaml +30 -0
- package/src/openapi/apis/event-api.ts +112 -0
- package/src/openapi/apis/task-api.ts +114 -0
- package/src/openapi/models/blue-green-deployment-item.ts +12 -0
- package/src/openapi.yaml +40 -0
|
@@ -304,6 +304,47 @@ export const EventApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
304
304
|
|
|
305
305
|
|
|
306
306
|
|
|
307
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
308
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
309
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
310
|
+
|
|
311
|
+
return {
|
|
312
|
+
url: toPathString(localVarUrlObj),
|
|
313
|
+
options: localVarRequestOptions,
|
|
314
|
+
};
|
|
315
|
+
},
|
|
316
|
+
/**
|
|
317
|
+
* List operation events whose recorded response contains the task ID.
|
|
318
|
+
* @summary List operation events related to a task
|
|
319
|
+
* @param {string} taskId ID of the task
|
|
320
|
+
* @param {*} [options] Override http request option.
|
|
321
|
+
* @throws {RequiredError}
|
|
322
|
+
*/
|
|
323
|
+
listTaskEvents: async (taskId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
324
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
325
|
+
assertParamExists('listTaskEvents', 'taskId', taskId)
|
|
326
|
+
const localVarPath = `/admin/v1/tasks/{taskId}/events`
|
|
327
|
+
.replace(`{${"taskId"}}`, encodeURIComponent(String(taskId)));
|
|
328
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
329
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
330
|
+
let baseOptions;
|
|
331
|
+
if (configuration) {
|
|
332
|
+
baseOptions = configuration.baseOptions;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
336
|
+
const localVarHeaderParameter = {} as any;
|
|
337
|
+
const localVarQueryParameter = {} as any;
|
|
338
|
+
|
|
339
|
+
// authentication BearerToken required
|
|
340
|
+
// http bearer authentication required
|
|
341
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
342
|
+
|
|
343
|
+
// authentication DigestAuth required
|
|
344
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
307
348
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
308
349
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
309
350
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -394,6 +435,19 @@ export const EventApiFp = function(configuration?: Configuration) {
|
|
|
394
435
|
const localVarOperationServerBasePath = operationServerMap['EventApi.listOrgEvents']?.[localVarOperationServerIndex]?.url;
|
|
395
436
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
396
437
|
},
|
|
438
|
+
/**
|
|
439
|
+
* List operation events whose recorded response contains the task ID.
|
|
440
|
+
* @summary List operation events related to a task
|
|
441
|
+
* @param {string} taskId ID of the task
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
async listTaskEvents(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventList>> {
|
|
446
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskEvents(taskId, options);
|
|
447
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
448
|
+
const localVarOperationServerBasePath = operationServerMap['EventApi.listTaskEvents']?.[localVarOperationServerIndex]?.url;
|
|
449
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
450
|
+
},
|
|
397
451
|
}
|
|
398
452
|
};
|
|
399
453
|
|
|
@@ -444,6 +498,16 @@ export const EventApiFactory = function (configuration?: Configuration, basePath
|
|
|
444
498
|
listOrgEvents(requestParameters: EventApiListOrgEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventList> {
|
|
445
499
|
return localVarFp.listOrgEvents(requestParameters.orgName, requestParameters.start, requestParameters.end, requestParameters.customQuery, requestParameters.status, requestParameters.pageNumber, requestParameters.pageSize, requestParameters.orderBy, requestParameters.sortDesc, options).then((request) => request(axios, basePath));
|
|
446
500
|
},
|
|
501
|
+
/**
|
|
502
|
+
* List operation events whose recorded response contains the task ID.
|
|
503
|
+
* @summary List operation events related to a task
|
|
504
|
+
* @param {EventApiListTaskEventsRequest} requestParameters Request parameters.
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
*/
|
|
508
|
+
listTaskEvents(requestParameters: EventApiListTaskEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventList> {
|
|
509
|
+
return localVarFp.listTaskEvents(requestParameters.taskId, options).then((request) => request(axios, basePath));
|
|
510
|
+
},
|
|
447
511
|
};
|
|
448
512
|
};
|
|
449
513
|
|
|
@@ -493,6 +557,16 @@ export interface EventApiInterface {
|
|
|
493
557
|
*/
|
|
494
558
|
listOrgEvents(requestParameters: EventApiListOrgEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventList>;
|
|
495
559
|
|
|
560
|
+
/**
|
|
561
|
+
* List operation events whose recorded response contains the task ID.
|
|
562
|
+
* @summary List operation events related to a task
|
|
563
|
+
* @param {EventApiListTaskEventsRequest} requestParameters Request parameters.
|
|
564
|
+
* @param {*} [options] Override http request option.
|
|
565
|
+
* @throws {RequiredError}
|
|
566
|
+
* @memberof EventApiInterface
|
|
567
|
+
*/
|
|
568
|
+
listTaskEvents(requestParameters: EventApiListTaskEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventList>;
|
|
569
|
+
|
|
496
570
|
}
|
|
497
571
|
|
|
498
572
|
/**
|
|
@@ -684,6 +758,20 @@ export interface EventApiListOrgEventsRequest {
|
|
|
684
758
|
readonly sortDesc?: boolean
|
|
685
759
|
}
|
|
686
760
|
|
|
761
|
+
/**
|
|
762
|
+
* Request parameters for listTaskEvents operation in EventApi.
|
|
763
|
+
* @export
|
|
764
|
+
* @interface EventApiListTaskEventsRequest
|
|
765
|
+
*/
|
|
766
|
+
export interface EventApiListTaskEventsRequest {
|
|
767
|
+
/**
|
|
768
|
+
* ID of the task
|
|
769
|
+
* @type {string}
|
|
770
|
+
* @memberof EventApiListTaskEvents
|
|
771
|
+
*/
|
|
772
|
+
readonly taskId: string
|
|
773
|
+
}
|
|
774
|
+
|
|
687
775
|
/**
|
|
688
776
|
* EventApi - object-oriented interface
|
|
689
777
|
* @export
|
|
@@ -738,5 +826,17 @@ export class EventApi extends BaseAPI implements EventApiInterface {
|
|
|
738
826
|
public listOrgEvents(requestParameters: EventApiListOrgEventsRequest, options?: RawAxiosRequestConfig) {
|
|
739
827
|
return EventApiFp(this.configuration).listOrgEvents(requestParameters.orgName, requestParameters.start, requestParameters.end, requestParameters.customQuery, requestParameters.status, requestParameters.pageNumber, requestParameters.pageSize, requestParameters.orderBy, requestParameters.sortDesc, options).then((request) => request(this.axios, this.basePath));
|
|
740
828
|
}
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* List operation events whose recorded response contains the task ID.
|
|
832
|
+
* @summary List operation events related to a task
|
|
833
|
+
* @param {EventApiListTaskEventsRequest} requestParameters Request parameters.
|
|
834
|
+
* @param {*} [options] Override http request option.
|
|
835
|
+
* @throws {RequiredError}
|
|
836
|
+
* @memberof EventApi
|
|
837
|
+
*/
|
|
838
|
+
public listTaskEvents(requestParameters: EventApiListTaskEventsRequest, options?: RawAxiosRequestConfig) {
|
|
839
|
+
return EventApiFp(this.configuration).listTaskEvents(requestParameters.taskId, options).then((request) => request(this.axios, this.basePath));
|
|
840
|
+
}
|
|
741
841
|
}
|
|
742
842
|
|
|
@@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import type { APIErrorResponse } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
+
import type { EventList } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
27
29
|
import type { Task } from '../models';
|
|
28
30
|
// @ts-ignore
|
|
29
31
|
import type { TaskList } from '../models';
|
|
@@ -199,6 +201,47 @@ export const TaskApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
199
201
|
|
|
200
202
|
|
|
201
203
|
|
|
204
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
205
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
206
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
207
|
+
|
|
208
|
+
return {
|
|
209
|
+
url: toPathString(localVarUrlObj),
|
|
210
|
+
options: localVarRequestOptions,
|
|
211
|
+
};
|
|
212
|
+
},
|
|
213
|
+
/**
|
|
214
|
+
* List operation events whose recorded response contains the task ID.
|
|
215
|
+
* @summary List operation events related to a task
|
|
216
|
+
* @param {string} taskId ID of the task
|
|
217
|
+
* @param {*} [options] Override http request option.
|
|
218
|
+
* @throws {RequiredError}
|
|
219
|
+
*/
|
|
220
|
+
listTaskEvents: async (taskId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
221
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
222
|
+
assertParamExists('listTaskEvents', 'taskId', taskId)
|
|
223
|
+
const localVarPath = `/admin/v1/tasks/{taskId}/events`
|
|
224
|
+
.replace(`{${"taskId"}}`, encodeURIComponent(String(taskId)));
|
|
225
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
226
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
227
|
+
let baseOptions;
|
|
228
|
+
if (configuration) {
|
|
229
|
+
baseOptions = configuration.baseOptions;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
233
|
+
const localVarHeaderParameter = {} as any;
|
|
234
|
+
const localVarQueryParameter = {} as any;
|
|
235
|
+
|
|
236
|
+
// authentication BearerToken required
|
|
237
|
+
// http bearer authentication required
|
|
238
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
239
|
+
|
|
240
|
+
// authentication DigestAuth required
|
|
241
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
202
245
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
203
246
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
204
247
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -477,6 +520,19 @@ export const TaskApiFp = function(configuration?: Configuration) {
|
|
|
477
520
|
const localVarOperationServerBasePath = operationServerMap['TaskApi.getTaskStepLog']?.[localVarOperationServerIndex]?.url;
|
|
478
521
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
479
522
|
},
|
|
523
|
+
/**
|
|
524
|
+
* List operation events whose recorded response contains the task ID.
|
|
525
|
+
* @summary List operation events related to a task
|
|
526
|
+
* @param {string} taskId ID of the task
|
|
527
|
+
* @param {*} [options] Override http request option.
|
|
528
|
+
* @throws {RequiredError}
|
|
529
|
+
*/
|
|
530
|
+
async listTaskEvents(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventList>> {
|
|
531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskEvents(taskId, options);
|
|
532
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
533
|
+
const localVarOperationServerBasePath = operationServerMap['TaskApi.listTaskEvents']?.[localVarOperationServerIndex]?.url;
|
|
534
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
535
|
+
},
|
|
480
536
|
/**
|
|
481
537
|
* List task types
|
|
482
538
|
* @summary List task types
|
|
@@ -586,6 +642,16 @@ export const TaskApiFactory = function (configuration?: Configuration, basePath?
|
|
|
586
642
|
getTaskStepLog(requestParameters: TaskApiGetTaskStepLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
587
643
|
return localVarFp.getTaskStepLog(requestParameters.taskId, requestParameters.stepId, requestParameters.follow, options).then((request) => request(axios, basePath));
|
|
588
644
|
},
|
|
645
|
+
/**
|
|
646
|
+
* List operation events whose recorded response contains the task ID.
|
|
647
|
+
* @summary List operation events related to a task
|
|
648
|
+
* @param {TaskApiListTaskEventsRequest} requestParameters Request parameters.
|
|
649
|
+
* @param {*} [options] Override http request option.
|
|
650
|
+
* @throws {RequiredError}
|
|
651
|
+
*/
|
|
652
|
+
listTaskEvents(requestParameters: TaskApiListTaskEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventList> {
|
|
653
|
+
return localVarFp.listTaskEvents(requestParameters.taskId, options).then((request) => request(axios, basePath));
|
|
654
|
+
},
|
|
589
655
|
/**
|
|
590
656
|
* List task types
|
|
591
657
|
* @summary List task types
|
|
@@ -674,6 +740,16 @@ export interface TaskApiInterface {
|
|
|
674
740
|
*/
|
|
675
741
|
getTaskStepLog(requestParameters: TaskApiGetTaskStepLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
676
742
|
|
|
743
|
+
/**
|
|
744
|
+
* List operation events whose recorded response contains the task ID.
|
|
745
|
+
* @summary List operation events related to a task
|
|
746
|
+
* @param {TaskApiListTaskEventsRequest} requestParameters Request parameters.
|
|
747
|
+
* @param {*} [options] Override http request option.
|
|
748
|
+
* @throws {RequiredError}
|
|
749
|
+
* @memberof TaskApiInterface
|
|
750
|
+
*/
|
|
751
|
+
listTaskEvents(requestParameters: TaskApiListTaskEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventList>;
|
|
752
|
+
|
|
677
753
|
/**
|
|
678
754
|
* List task types
|
|
679
755
|
* @summary List task types
|
|
@@ -785,6 +861,20 @@ export interface TaskApiGetTaskStepLogRequest {
|
|
|
785
861
|
readonly follow?: boolean
|
|
786
862
|
}
|
|
787
863
|
|
|
864
|
+
/**
|
|
865
|
+
* Request parameters for listTaskEvents operation in TaskApi.
|
|
866
|
+
* @export
|
|
867
|
+
* @interface TaskApiListTaskEventsRequest
|
|
868
|
+
*/
|
|
869
|
+
export interface TaskApiListTaskEventsRequest {
|
|
870
|
+
/**
|
|
871
|
+
* ID of the task
|
|
872
|
+
* @type {string}
|
|
873
|
+
* @memberof TaskApiListTaskEvents
|
|
874
|
+
*/
|
|
875
|
+
readonly taskId: string
|
|
876
|
+
}
|
|
877
|
+
|
|
788
878
|
/**
|
|
789
879
|
* Request parameters for listTasks operation in TaskApi.
|
|
790
880
|
* @export
|
|
@@ -938,6 +1028,18 @@ export class TaskApi extends BaseAPI implements TaskApiInterface {
|
|
|
938
1028
|
return TaskApiFp(this.configuration).getTaskStepLog(requestParameters.taskId, requestParameters.stepId, requestParameters.follow, options).then((request) => request(this.axios, this.basePath));
|
|
939
1029
|
}
|
|
940
1030
|
|
|
1031
|
+
/**
|
|
1032
|
+
* List operation events whose recorded response contains the task ID.
|
|
1033
|
+
* @summary List operation events related to a task
|
|
1034
|
+
* @param {TaskApiListTaskEventsRequest} requestParameters Request parameters.
|
|
1035
|
+
* @param {*} [options] Override http request option.
|
|
1036
|
+
* @throws {RequiredError}
|
|
1037
|
+
* @memberof TaskApi
|
|
1038
|
+
*/
|
|
1039
|
+
public listTaskEvents(requestParameters: TaskApiListTaskEventsRequest, options?: RawAxiosRequestConfig) {
|
|
1040
|
+
return TaskApiFp(this.configuration).listTaskEvents(requestParameters.taskId, options).then((request) => request(this.axios, this.basePath));
|
|
1041
|
+
}
|
|
1042
|
+
|
|
941
1043
|
/**
|
|
942
1044
|
* List task types
|
|
943
1045
|
* @summary List task types
|
package/src/adminapi.yaml
CHANGED
|
@@ -16717,6 +16717,36 @@ paths:
|
|
|
16717
16717
|
$ref: '#/components/responses/500'
|
|
16718
16718
|
tags:
|
|
16719
16719
|
- task
|
|
16720
|
+
/admin/v1/tasks/{taskId}/events:
|
|
16721
|
+
get:
|
|
16722
|
+
summary: List operation events related to a task
|
|
16723
|
+
description: List operation events whose recorded response contains the task ID.
|
|
16724
|
+
operationId: listTaskEvents
|
|
16725
|
+
parameters:
|
|
16726
|
+
- description: ID of the task
|
|
16727
|
+
in: path
|
|
16728
|
+
name: taskId
|
|
16729
|
+
required: true
|
|
16730
|
+
schema:
|
|
16731
|
+
type: string
|
|
16732
|
+
responses:
|
|
16733
|
+
'200':
|
|
16734
|
+
description: Operation events related to the task
|
|
16735
|
+
content:
|
|
16736
|
+
application/json:
|
|
16737
|
+
schema:
|
|
16738
|
+
$ref: '#/components/schemas/eventList'
|
|
16739
|
+
'400':
|
|
16740
|
+
$ref: '#/components/responses/400'
|
|
16741
|
+
'401':
|
|
16742
|
+
$ref: '#/components/responses/401'
|
|
16743
|
+
'403':
|
|
16744
|
+
$ref: '#/components/responses/403'
|
|
16745
|
+
'500':
|
|
16746
|
+
$ref: '#/components/responses/500'
|
|
16747
|
+
tags:
|
|
16748
|
+
- task
|
|
16749
|
+
- event
|
|
16720
16750
|
/admin/v1/tasks/{taskId}/stop:
|
|
16721
16751
|
patch:
|
|
16722
16752
|
summary: Stop a task
|
|
@@ -224,6 +224,51 @@ export const EventApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
224
224
|
|
|
225
225
|
|
|
226
226
|
|
|
227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
230
|
+
|
|
231
|
+
return {
|
|
232
|
+
url: toPathString(localVarUrlObj),
|
|
233
|
+
options: localVarRequestOptions,
|
|
234
|
+
};
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
* List operation events whose recorded response contains the task ID.
|
|
238
|
+
* @summary List operation events related to a task
|
|
239
|
+
* @param {string} orgName Organization name
|
|
240
|
+
* @param {string} taskId ID of the task
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
*/
|
|
244
|
+
listTaskEvents: async (orgName: string, taskId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
245
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
246
|
+
assertParamExists('listTaskEvents', 'orgName', orgName)
|
|
247
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
248
|
+
assertParamExists('listTaskEvents', 'taskId', taskId)
|
|
249
|
+
const localVarPath = `/api/v1/organizations/{orgName}/tasks/{taskId}/events`
|
|
250
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
251
|
+
.replace(`{${"taskId"}}`, encodeURIComponent(String(taskId)));
|
|
252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
253
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
254
|
+
let baseOptions;
|
|
255
|
+
if (configuration) {
|
|
256
|
+
baseOptions = configuration.baseOptions;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
260
|
+
const localVarHeaderParameter = {} as any;
|
|
261
|
+
const localVarQueryParameter = {} as any;
|
|
262
|
+
|
|
263
|
+
// authentication BearerToken required
|
|
264
|
+
// http bearer authentication required
|
|
265
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
266
|
+
|
|
267
|
+
// authentication DigestAuth required
|
|
268
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
227
272
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
228
273
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
274
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -295,6 +340,20 @@ export const EventApiFp = function(configuration?: Configuration) {
|
|
|
295
340
|
const localVarOperationServerBasePath = operationServerMap['EventApi.listOrgEvents']?.[localVarOperationServerIndex]?.url;
|
|
296
341
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
297
342
|
},
|
|
343
|
+
/**
|
|
344
|
+
* List operation events whose recorded response contains the task ID.
|
|
345
|
+
* @summary List operation events related to a task
|
|
346
|
+
* @param {string} orgName Organization name
|
|
347
|
+
* @param {string} taskId ID of the task
|
|
348
|
+
* @param {*} [options] Override http request option.
|
|
349
|
+
* @throws {RequiredError}
|
|
350
|
+
*/
|
|
351
|
+
async listTaskEvents(orgName: string, taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventList>> {
|
|
352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskEvents(orgName, taskId, options);
|
|
353
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
354
|
+
const localVarOperationServerBasePath = operationServerMap['EventApi.listTaskEvents']?.[localVarOperationServerIndex]?.url;
|
|
355
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
356
|
+
},
|
|
298
357
|
}
|
|
299
358
|
};
|
|
300
359
|
|
|
@@ -335,6 +394,16 @@ export const EventApiFactory = function (configuration?: Configuration, basePath
|
|
|
335
394
|
listOrgEvents(requestParameters: EventApiListOrgEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventList> {
|
|
336
395
|
return localVarFp.listOrgEvents(requestParameters.orgName, requestParameters.start, requestParameters.end, requestParameters.customQuery, requestParameters.status, requestParameters.pageNumber, requestParameters.pageSize, requestParameters.orderBy, requestParameters.sortDesc, options).then((request) => request(axios, basePath));
|
|
337
396
|
},
|
|
397
|
+
/**
|
|
398
|
+
* List operation events whose recorded response contains the task ID.
|
|
399
|
+
* @summary List operation events related to a task
|
|
400
|
+
* @param {EventApiListTaskEventsRequest} requestParameters Request parameters.
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
listTaskEvents(requestParameters: EventApiListTaskEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventList> {
|
|
405
|
+
return localVarFp.listTaskEvents(requestParameters.orgName, requestParameters.taskId, options).then((request) => request(axios, basePath));
|
|
406
|
+
},
|
|
338
407
|
};
|
|
339
408
|
};
|
|
340
409
|
|
|
@@ -374,6 +443,16 @@ export interface EventApiInterface {
|
|
|
374
443
|
*/
|
|
375
444
|
listOrgEvents(requestParameters: EventApiListOrgEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventList>;
|
|
376
445
|
|
|
446
|
+
/**
|
|
447
|
+
* List operation events whose recorded response contains the task ID.
|
|
448
|
+
* @summary List operation events related to a task
|
|
449
|
+
* @param {EventApiListTaskEventsRequest} requestParameters Request parameters.
|
|
450
|
+
* @param {*} [options] Override http request option.
|
|
451
|
+
* @throws {RequiredError}
|
|
452
|
+
* @memberof EventApiInterface
|
|
453
|
+
*/
|
|
454
|
+
listTaskEvents(requestParameters: EventApiListTaskEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventList>;
|
|
455
|
+
|
|
377
456
|
}
|
|
378
457
|
|
|
379
458
|
/**
|
|
@@ -509,6 +588,27 @@ export interface EventApiListOrgEventsRequest {
|
|
|
509
588
|
readonly sortDesc?: boolean
|
|
510
589
|
}
|
|
511
590
|
|
|
591
|
+
/**
|
|
592
|
+
* Request parameters for listTaskEvents operation in EventApi.
|
|
593
|
+
* @export
|
|
594
|
+
* @interface EventApiListTaskEventsRequest
|
|
595
|
+
*/
|
|
596
|
+
export interface EventApiListTaskEventsRequest {
|
|
597
|
+
/**
|
|
598
|
+
* Organization name
|
|
599
|
+
* @type {string}
|
|
600
|
+
* @memberof EventApiListTaskEvents
|
|
601
|
+
*/
|
|
602
|
+
readonly orgName: string
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* ID of the task
|
|
606
|
+
* @type {string}
|
|
607
|
+
* @memberof EventApiListTaskEvents
|
|
608
|
+
*/
|
|
609
|
+
readonly taskId: string
|
|
610
|
+
}
|
|
611
|
+
|
|
512
612
|
/**
|
|
513
613
|
* EventApi - object-oriented interface
|
|
514
614
|
* @export
|
|
@@ -551,5 +651,17 @@ export class EventApi extends BaseAPI implements EventApiInterface {
|
|
|
551
651
|
public listOrgEvents(requestParameters: EventApiListOrgEventsRequest, options?: RawAxiosRequestConfig) {
|
|
552
652
|
return EventApiFp(this.configuration).listOrgEvents(requestParameters.orgName, requestParameters.start, requestParameters.end, requestParameters.customQuery, requestParameters.status, requestParameters.pageNumber, requestParameters.pageSize, requestParameters.orderBy, requestParameters.sortDesc, options).then((request) => request(this.axios, this.basePath));
|
|
553
653
|
}
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* List operation events whose recorded response contains the task ID.
|
|
657
|
+
* @summary List operation events related to a task
|
|
658
|
+
* @param {EventApiListTaskEventsRequest} requestParameters Request parameters.
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
* @memberof EventApi
|
|
662
|
+
*/
|
|
663
|
+
public listTaskEvents(requestParameters: EventApiListTaskEventsRequest, options?: RawAxiosRequestConfig) {
|
|
664
|
+
return EventApiFp(this.configuration).listTaskEvents(requestParameters.orgName, requestParameters.taskId, options).then((request) => request(this.axios, this.basePath));
|
|
665
|
+
}
|
|
554
666
|
}
|
|
555
667
|
|
|
@@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import type { APIErrorResponse } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
+
import type { EventList } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
27
29
|
import type { Task } from '../models';
|
|
28
30
|
// @ts-ignore
|
|
29
31
|
import type { TaskList } from '../models';
|
|
@@ -116,6 +118,51 @@ export const TaskApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
116
118
|
|
|
117
119
|
|
|
118
120
|
|
|
121
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
122
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
123
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
url: toPathString(localVarUrlObj),
|
|
127
|
+
options: localVarRequestOptions,
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
/**
|
|
131
|
+
* List operation events whose recorded response contains the task ID.
|
|
132
|
+
* @summary List operation events related to a task
|
|
133
|
+
* @param {string} orgName Organization name
|
|
134
|
+
* @param {string} taskId ID of the task
|
|
135
|
+
* @param {*} [options] Override http request option.
|
|
136
|
+
* @throws {RequiredError}
|
|
137
|
+
*/
|
|
138
|
+
listTaskEvents: async (orgName: string, taskId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
139
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
140
|
+
assertParamExists('listTaskEvents', 'orgName', orgName)
|
|
141
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
142
|
+
assertParamExists('listTaskEvents', 'taskId', taskId)
|
|
143
|
+
const localVarPath = `/api/v1/organizations/{orgName}/tasks/{taskId}/events`
|
|
144
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
145
|
+
.replace(`{${"taskId"}}`, encodeURIComponent(String(taskId)));
|
|
146
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
148
|
+
let baseOptions;
|
|
149
|
+
if (configuration) {
|
|
150
|
+
baseOptions = configuration.baseOptions;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
154
|
+
const localVarHeaderParameter = {} as any;
|
|
155
|
+
const localVarQueryParameter = {} as any;
|
|
156
|
+
|
|
157
|
+
// authentication BearerToken required
|
|
158
|
+
// http bearer authentication required
|
|
159
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
160
|
+
|
|
161
|
+
// authentication DigestAuth required
|
|
162
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
119
166
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
120
167
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
168
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -285,6 +332,20 @@ export const TaskApiFp = function(configuration?: Configuration) {
|
|
|
285
332
|
const localVarOperationServerBasePath = operationServerMap['TaskApi.getTask']?.[localVarOperationServerIndex]?.url;
|
|
286
333
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
287
334
|
},
|
|
335
|
+
/**
|
|
336
|
+
* List operation events whose recorded response contains the task ID.
|
|
337
|
+
* @summary List operation events related to a task
|
|
338
|
+
* @param {string} orgName Organization name
|
|
339
|
+
* @param {string} taskId ID of the task
|
|
340
|
+
* @param {*} [options] Override http request option.
|
|
341
|
+
* @throws {RequiredError}
|
|
342
|
+
*/
|
|
343
|
+
async listTaskEvents(orgName: string, taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventList>> {
|
|
344
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskEvents(orgName, taskId, options);
|
|
345
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
346
|
+
const localVarOperationServerBasePath = operationServerMap['TaskApi.listTaskEvents']?.[localVarOperationServerIndex]?.url;
|
|
347
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
348
|
+
},
|
|
288
349
|
/**
|
|
289
350
|
* List task types
|
|
290
351
|
* @summary List task types
|
|
@@ -348,6 +409,16 @@ export const TaskApiFactory = function (configuration?: Configuration, basePath?
|
|
|
348
409
|
getTask(requestParameters: TaskApiGetTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<Task> {
|
|
349
410
|
return localVarFp.getTask(requestParameters.orgName, requestParameters.taskId, options).then((request) => request(axios, basePath));
|
|
350
411
|
},
|
|
412
|
+
/**
|
|
413
|
+
* List operation events whose recorded response contains the task ID.
|
|
414
|
+
* @summary List operation events related to a task
|
|
415
|
+
* @param {TaskApiListTaskEventsRequest} requestParameters Request parameters.
|
|
416
|
+
* @param {*} [options] Override http request option.
|
|
417
|
+
* @throws {RequiredError}
|
|
418
|
+
*/
|
|
419
|
+
listTaskEvents(requestParameters: TaskApiListTaskEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventList> {
|
|
420
|
+
return localVarFp.listTaskEvents(requestParameters.orgName, requestParameters.taskId, options).then((request) => request(axios, basePath));
|
|
421
|
+
},
|
|
351
422
|
/**
|
|
352
423
|
* List task types
|
|
353
424
|
* @summary List task types
|
|
@@ -396,6 +467,16 @@ export interface TaskApiInterface {
|
|
|
396
467
|
*/
|
|
397
468
|
getTask(requestParameters: TaskApiGetTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<Task>;
|
|
398
469
|
|
|
470
|
+
/**
|
|
471
|
+
* List operation events whose recorded response contains the task ID.
|
|
472
|
+
* @summary List operation events related to a task
|
|
473
|
+
* @param {TaskApiListTaskEventsRequest} requestParameters Request parameters.
|
|
474
|
+
* @param {*} [options] Override http request option.
|
|
475
|
+
* @throws {RequiredError}
|
|
476
|
+
* @memberof TaskApiInterface
|
|
477
|
+
*/
|
|
478
|
+
listTaskEvents(requestParameters: TaskApiListTaskEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventList>;
|
|
479
|
+
|
|
399
480
|
/**
|
|
400
481
|
* List task types
|
|
401
482
|
* @summary List task types
|
|
@@ -459,6 +540,27 @@ export interface TaskApiGetTaskRequest {
|
|
|
459
540
|
readonly taskId: string
|
|
460
541
|
}
|
|
461
542
|
|
|
543
|
+
/**
|
|
544
|
+
* Request parameters for listTaskEvents operation in TaskApi.
|
|
545
|
+
* @export
|
|
546
|
+
* @interface TaskApiListTaskEventsRequest
|
|
547
|
+
*/
|
|
548
|
+
export interface TaskApiListTaskEventsRequest {
|
|
549
|
+
/**
|
|
550
|
+
* Organization name
|
|
551
|
+
* @type {string}
|
|
552
|
+
* @memberof TaskApiListTaskEvents
|
|
553
|
+
*/
|
|
554
|
+
readonly orgName: string
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* ID of the task
|
|
558
|
+
* @type {string}
|
|
559
|
+
* @memberof TaskApiListTaskEvents
|
|
560
|
+
*/
|
|
561
|
+
readonly taskId: string
|
|
562
|
+
}
|
|
563
|
+
|
|
462
564
|
/**
|
|
463
565
|
* Request parameters for listTasks operation in TaskApi.
|
|
464
566
|
* @export
|
|
@@ -560,6 +662,18 @@ export class TaskApi extends BaseAPI implements TaskApiInterface {
|
|
|
560
662
|
return TaskApiFp(this.configuration).getTask(requestParameters.orgName, requestParameters.taskId, options).then((request) => request(this.axios, this.basePath));
|
|
561
663
|
}
|
|
562
664
|
|
|
665
|
+
/**
|
|
666
|
+
* List operation events whose recorded response contains the task ID.
|
|
667
|
+
* @summary List operation events related to a task
|
|
668
|
+
* @param {TaskApiListTaskEventsRequest} requestParameters Request parameters.
|
|
669
|
+
* @param {*} [options] Override http request option.
|
|
670
|
+
* @throws {RequiredError}
|
|
671
|
+
* @memberof TaskApi
|
|
672
|
+
*/
|
|
673
|
+
public listTaskEvents(requestParameters: TaskApiListTaskEventsRequest, options?: RawAxiosRequestConfig) {
|
|
674
|
+
return TaskApiFp(this.configuration).listTaskEvents(requestParameters.orgName, requestParameters.taskId, options).then((request) => request(this.axios, this.basePath));
|
|
675
|
+
}
|
|
676
|
+
|
|
563
677
|
/**
|
|
564
678
|
* List task types
|
|
565
679
|
* @summary List task types
|
|
@@ -38,6 +38,18 @@ export interface BlueGreenDeploymentItem {
|
|
|
38
38
|
* @memberof BlueGreenDeploymentItem
|
|
39
39
|
*/
|
|
40
40
|
'deploymentName'?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof BlueGreenDeploymentItem
|
|
45
|
+
*/
|
|
46
|
+
'blueClusterVersion'?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof BlueGreenDeploymentItem
|
|
51
|
+
*/
|
|
52
|
+
'greenClusterVersion'?: string;
|
|
41
53
|
/**
|
|
42
54
|
*
|
|
43
55
|
* @type {ClusterListItem}
|