@sonatype/nexus-repo-api-client 3.84.1 → 3.84.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -233,6 +233,7 @@ src/models/TaskTemplateXO.ts
233
233
  src/models/TaskXO.ts
234
234
  src/models/Throwable.ts
235
235
  src/models/UpdateLdapServerXo.ts
236
+ src/models/UpdateTaskRequest.ts
236
237
  src/models/UploadComponentRequest.ts
237
238
  src/models/UploadDefinitionXO.ts
238
239
  src/models/UploadFieldDefinitionXO.ts
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { PageTaskXO, TaskTemplateXO, TaskXO } from '../models/index';
13
+ import type { PageTaskXO, TaskTemplateXO, TaskXO, UpdateTaskRequest } from '../models/index';
14
14
  export interface TasksApiCreateTaskRequest {
15
15
  body?: TaskTemplateXO;
16
16
  }
@@ -32,9 +32,9 @@ export interface TasksApiRunRequest {
32
32
  export interface TasksApiStopRequest {
33
33
  id: string;
34
34
  }
35
- export interface TasksApiUpdateTaskRequest {
35
+ export interface TasksApiUpdateTaskOperationRequest {
36
36
  taskId: string;
37
- body?: TaskTemplateXO;
37
+ body?: UpdateTaskRequest;
38
38
  }
39
39
  /**
40
40
  *
@@ -107,9 +107,9 @@ export declare class TasksApi extends runtime.BaseAPI {
107
107
  /**
108
108
  * Update an existing task
109
109
  */
110
- updateTaskRaw(requestParameters: TasksApiUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
110
+ updateTaskRaw(requestParameters: TasksApiUpdateTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
111
111
  /**
112
112
  * Update an existing task
113
113
  */
114
- updateTask(requestParameters: TasksApiUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
114
+ updateTask(requestParameters: TasksApiUpdateTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
115
115
  }
@@ -303,7 +303,7 @@ class TasksApi extends runtime.BaseAPI {
303
303
  method: 'PUT',
304
304
  headers: headerParameters,
305
305
  query: queryParameters,
306
- body: (0, index_1.TaskTemplateXOToJSON)(requestParameters['body']),
306
+ body: (0, index_1.UpdateTaskRequestToJSON)(requestParameters['body']),
307
307
  }, initOverrides);
308
308
  return new runtime.VoidApiResponse(response);
309
309
  });
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { PageTaskXO, TaskTemplateXO, TaskXO } from '../models/index';
13
+ import type { PageTaskXO, TaskTemplateXO, TaskXO, UpdateTaskRequest } from '../models/index';
14
14
  export interface TasksApiCreateTaskRequest {
15
15
  body?: TaskTemplateXO;
16
16
  }
@@ -32,9 +32,9 @@ export interface TasksApiRunRequest {
32
32
  export interface TasksApiStopRequest {
33
33
  id: string;
34
34
  }
35
- export interface TasksApiUpdateTaskRequest {
35
+ export interface TasksApiUpdateTaskOperationRequest {
36
36
  taskId: string;
37
- body?: TaskTemplateXO;
37
+ body?: UpdateTaskRequest;
38
38
  }
39
39
  /**
40
40
  *
@@ -107,9 +107,9 @@ export declare class TasksApi extends runtime.BaseAPI {
107
107
  /**
108
108
  * Update an existing task
109
109
  */
110
- updateTaskRaw(requestParameters: TasksApiUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
110
+ updateTaskRaw(requestParameters: TasksApiUpdateTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
111
111
  /**
112
112
  * Update an existing task
113
113
  */
114
- updateTask(requestParameters: TasksApiUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
114
+ updateTask(requestParameters: TasksApiUpdateTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
115
115
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { PageTaskXOFromJSON, TaskTemplateXOFromJSON, TaskTemplateXOToJSON, TaskXOFromJSON, } from '../models/index';
24
+ import { PageTaskXOFromJSON, TaskTemplateXOFromJSON, TaskTemplateXOToJSON, TaskXOFromJSON, UpdateTaskRequestToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -300,7 +300,7 @@ export class TasksApi extends runtime.BaseAPI {
300
300
  method: 'PUT',
301
301
  headers: headerParameters,
302
302
  query: queryParameters,
303
- body: TaskTemplateXOToJSON(requestParameters['body']),
303
+ body: UpdateTaskRequestToJSON(requestParameters['body']),
304
304
  }, initOverrides);
305
305
  return new runtime.VoidApiResponse(response);
306
306
  });
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Sonatype Nexus Repository Manager
3
+ * This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.84.0-03.
4
+ *
5
+ * The version of the OpenAPI document: 3.84.0-03
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FrequencyXO } from './FrequencyXO';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateTaskRequest
17
+ */
18
+ export interface UpdateTaskRequest {
19
+ /**
20
+ * e-mail for task notifications.
21
+ * @type {string}
22
+ * @memberof UpdateTaskRequest
23
+ */
24
+ alertEmail?: string;
25
+ /**
26
+ * Indicates if the task would be enabled.
27
+ * @type {boolean}
28
+ * @memberof UpdateTaskRequest
29
+ */
30
+ enabled: boolean;
31
+ /**
32
+ *
33
+ * @type {FrequencyXO}
34
+ * @memberof UpdateTaskRequest
35
+ */
36
+ frequency: FrequencyXO;
37
+ /**
38
+ * The name of the task template.
39
+ * @type {string}
40
+ * @memberof UpdateTaskRequest
41
+ */
42
+ name: string;
43
+ /**
44
+ * Condition required to notify a task execution.
45
+ * @type {string}
46
+ * @memberof UpdateTaskRequest
47
+ */
48
+ notificationCondition: UpdateTaskRequestNotificationConditionEnum;
49
+ /**
50
+ * Additional properties for the task
51
+ * @type {{ [key: string]: string; }}
52
+ * @memberof UpdateTaskRequest
53
+ */
54
+ properties?: {
55
+ [key: string]: string;
56
+ };
57
+ /**
58
+ * The type of task to be created.
59
+ * @type {string}
60
+ * @memberof UpdateTaskRequest
61
+ */
62
+ type?: string;
63
+ }
64
+ /**
65
+ * @export
66
+ */
67
+ export declare const UpdateTaskRequestNotificationConditionEnum: {
68
+ readonly Failure: "FAILURE";
69
+ readonly SuccessFailure: "SUCCESS_FAILURE";
70
+ };
71
+ export type UpdateTaskRequestNotificationConditionEnum = typeof UpdateTaskRequestNotificationConditionEnum[keyof typeof UpdateTaskRequestNotificationConditionEnum];
72
+ /**
73
+ * Check if a given object implements the UpdateTaskRequest interface.
74
+ */
75
+ export declare function instanceOfUpdateTaskRequest(value: object): value is UpdateTaskRequest;
76
+ export declare function UpdateTaskRequestFromJSON(json: any): UpdateTaskRequest;
77
+ export declare function UpdateTaskRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTaskRequest;
78
+ export declare function UpdateTaskRequestToJSON(json: any): UpdateTaskRequest;
79
+ export declare function UpdateTaskRequestToJSONTyped(value?: UpdateTaskRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,69 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sonatype Nexus Repository Manager
5
+ * This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.84.0-03.
6
+ *
7
+ * The version of the OpenAPI document: 3.84.0-03
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 { FrequencyXOFromJSON, FrequencyXOToJSON, } from './FrequencyXO';
15
+ /**
16
+ * @export
17
+ */
18
+ export const UpdateTaskRequestNotificationConditionEnum = {
19
+ Failure: 'FAILURE',
20
+ SuccessFailure: 'SUCCESS_FAILURE'
21
+ };
22
+ /**
23
+ * Check if a given object implements the UpdateTaskRequest interface.
24
+ */
25
+ export function instanceOfUpdateTaskRequest(value) {
26
+ if (!('enabled' in value) || value['enabled'] === undefined)
27
+ return false;
28
+ if (!('frequency' in value) || value['frequency'] === undefined)
29
+ return false;
30
+ if (!('name' in value) || value['name'] === undefined)
31
+ return false;
32
+ if (!('notificationCondition' in value) || value['notificationCondition'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function UpdateTaskRequestFromJSON(json) {
37
+ return UpdateTaskRequestFromJSONTyped(json, false);
38
+ }
39
+ export function UpdateTaskRequestFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'alertEmail': json['alertEmail'] == null ? undefined : json['alertEmail'],
45
+ 'enabled': json['enabled'],
46
+ 'frequency': FrequencyXOFromJSON(json['frequency']),
47
+ 'name': json['name'],
48
+ 'notificationCondition': json['notificationCondition'],
49
+ 'properties': json['properties'] == null ? undefined : json['properties'],
50
+ 'type': json['type'] == null ? undefined : json['type'],
51
+ };
52
+ }
53
+ export function UpdateTaskRequestToJSON(json) {
54
+ return UpdateTaskRequestToJSONTyped(json, false);
55
+ }
56
+ export function UpdateTaskRequestToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'alertEmail': value['alertEmail'],
62
+ 'enabled': value['enabled'],
63
+ 'frequency': FrequencyXOToJSON(value['frequency']),
64
+ 'name': value['name'],
65
+ 'notificationCondition': value['notificationCondition'],
66
+ 'properties': value['properties'],
67
+ 'type': value['type'],
68
+ };
69
+ }
@@ -184,6 +184,7 @@ export * from './TaskTemplateXO';
184
184
  export * from './TaskXO';
185
185
  export * from './Throwable';
186
186
  export * from './UpdateLdapServerXo';
187
+ export * from './UpdateTaskRequest';
187
188
  export * from './UploadComponentRequest';
188
189
  export * from './UploadDefinitionXO';
189
190
  export * from './UploadFieldDefinitionXO';
@@ -186,6 +186,7 @@ export * from './TaskTemplateXO';
186
186
  export * from './TaskXO';
187
187
  export * from './Throwable';
188
188
  export * from './UpdateLdapServerXo';
189
+ export * from './UpdateTaskRequest';
189
190
  export * from './UploadComponentRequest';
190
191
  export * from './UploadDefinitionXO';
191
192
  export * from './UploadFieldDefinitionXO';
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Sonatype Nexus Repository Manager
3
+ * This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.84.0-03.
4
+ *
5
+ * The version of the OpenAPI document: 3.84.0-03
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FrequencyXO } from './FrequencyXO';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateTaskRequest
17
+ */
18
+ export interface UpdateTaskRequest {
19
+ /**
20
+ * e-mail for task notifications.
21
+ * @type {string}
22
+ * @memberof UpdateTaskRequest
23
+ */
24
+ alertEmail?: string;
25
+ /**
26
+ * Indicates if the task would be enabled.
27
+ * @type {boolean}
28
+ * @memberof UpdateTaskRequest
29
+ */
30
+ enabled: boolean;
31
+ /**
32
+ *
33
+ * @type {FrequencyXO}
34
+ * @memberof UpdateTaskRequest
35
+ */
36
+ frequency: FrequencyXO;
37
+ /**
38
+ * The name of the task template.
39
+ * @type {string}
40
+ * @memberof UpdateTaskRequest
41
+ */
42
+ name: string;
43
+ /**
44
+ * Condition required to notify a task execution.
45
+ * @type {string}
46
+ * @memberof UpdateTaskRequest
47
+ */
48
+ notificationCondition: UpdateTaskRequestNotificationConditionEnum;
49
+ /**
50
+ * Additional properties for the task
51
+ * @type {{ [key: string]: string; }}
52
+ * @memberof UpdateTaskRequest
53
+ */
54
+ properties?: {
55
+ [key: string]: string;
56
+ };
57
+ /**
58
+ * The type of task to be created.
59
+ * @type {string}
60
+ * @memberof UpdateTaskRequest
61
+ */
62
+ type?: string;
63
+ }
64
+ /**
65
+ * @export
66
+ */
67
+ export declare const UpdateTaskRequestNotificationConditionEnum: {
68
+ readonly Failure: "FAILURE";
69
+ readonly SuccessFailure: "SUCCESS_FAILURE";
70
+ };
71
+ export type UpdateTaskRequestNotificationConditionEnum = typeof UpdateTaskRequestNotificationConditionEnum[keyof typeof UpdateTaskRequestNotificationConditionEnum];
72
+ /**
73
+ * Check if a given object implements the UpdateTaskRequest interface.
74
+ */
75
+ export declare function instanceOfUpdateTaskRequest(value: object): value is UpdateTaskRequest;
76
+ export declare function UpdateTaskRequestFromJSON(json: any): UpdateTaskRequest;
77
+ export declare function UpdateTaskRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTaskRequest;
78
+ export declare function UpdateTaskRequestToJSON(json: any): UpdateTaskRequest;
79
+ export declare function UpdateTaskRequestToJSONTyped(value?: UpdateTaskRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Sonatype Nexus Repository Manager
6
+ * This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.84.0-03.
7
+ *
8
+ * The version of the OpenAPI document: 3.84.0-03
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.UpdateTaskRequestNotificationConditionEnum = void 0;
17
+ exports.instanceOfUpdateTaskRequest = instanceOfUpdateTaskRequest;
18
+ exports.UpdateTaskRequestFromJSON = UpdateTaskRequestFromJSON;
19
+ exports.UpdateTaskRequestFromJSONTyped = UpdateTaskRequestFromJSONTyped;
20
+ exports.UpdateTaskRequestToJSON = UpdateTaskRequestToJSON;
21
+ exports.UpdateTaskRequestToJSONTyped = UpdateTaskRequestToJSONTyped;
22
+ const FrequencyXO_1 = require("./FrequencyXO");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.UpdateTaskRequestNotificationConditionEnum = {
27
+ Failure: 'FAILURE',
28
+ SuccessFailure: 'SUCCESS_FAILURE'
29
+ };
30
+ /**
31
+ * Check if a given object implements the UpdateTaskRequest interface.
32
+ */
33
+ function instanceOfUpdateTaskRequest(value) {
34
+ if (!('enabled' in value) || value['enabled'] === undefined)
35
+ return false;
36
+ if (!('frequency' in value) || value['frequency'] === undefined)
37
+ return false;
38
+ if (!('name' in value) || value['name'] === undefined)
39
+ return false;
40
+ if (!('notificationCondition' in value) || value['notificationCondition'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ function UpdateTaskRequestFromJSON(json) {
45
+ return UpdateTaskRequestFromJSONTyped(json, false);
46
+ }
47
+ function UpdateTaskRequestFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'alertEmail': json['alertEmail'] == null ? undefined : json['alertEmail'],
53
+ 'enabled': json['enabled'],
54
+ 'frequency': (0, FrequencyXO_1.FrequencyXOFromJSON)(json['frequency']),
55
+ 'name': json['name'],
56
+ 'notificationCondition': json['notificationCondition'],
57
+ 'properties': json['properties'] == null ? undefined : json['properties'],
58
+ 'type': json['type'] == null ? undefined : json['type'],
59
+ };
60
+ }
61
+ function UpdateTaskRequestToJSON(json) {
62
+ return UpdateTaskRequestToJSONTyped(json, false);
63
+ }
64
+ function UpdateTaskRequestToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'alertEmail': value['alertEmail'],
70
+ 'enabled': value['enabled'],
71
+ 'frequency': (0, FrequencyXO_1.FrequencyXOToJSON)(value['frequency']),
72
+ 'name': value['name'],
73
+ 'notificationCondition': value['notificationCondition'],
74
+ 'properties': value['properties'],
75
+ 'type': value['type'],
76
+ };
77
+ }
@@ -184,6 +184,7 @@ export * from './TaskTemplateXO';
184
184
  export * from './TaskXO';
185
185
  export * from './Throwable';
186
186
  export * from './UpdateLdapServerXo';
187
+ export * from './UpdateTaskRequest';
187
188
  export * from './UploadComponentRequest';
188
189
  export * from './UploadDefinitionXO';
189
190
  export * from './UploadFieldDefinitionXO';
@@ -202,6 +202,7 @@ __exportStar(require("./TaskTemplateXO"), exports);
202
202
  __exportStar(require("./TaskXO"), exports);
203
203
  __exportStar(require("./Throwable"), exports);
204
204
  __exportStar(require("./UpdateLdapServerXo"), exports);
205
+ __exportStar(require("./UpdateTaskRequest"), exports);
205
206
  __exportStar(require("./UploadComponentRequest"), exports);
206
207
  __exportStar(require("./UploadDefinitionXO"), exports);
207
208
  __exportStar(require("./UploadFieldDefinitionXO"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonatype/nexus-repo-api-client",
3
- "version": "3.84.1",
3
+ "version": "3.84.2",
4
4
  "description": "OpenAPI client for @sonatype/nexus-repo-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -18,6 +18,7 @@ import type {
18
18
  PageTaskXO,
19
19
  TaskTemplateXO,
20
20
  TaskXO,
21
+ UpdateTaskRequest,
21
22
  } from '../models/index';
22
23
  import {
23
24
  PageTaskXOFromJSON,
@@ -26,6 +27,8 @@ import {
26
27
  TaskTemplateXOToJSON,
27
28
  TaskXOFromJSON,
28
29
  TaskXOToJSON,
30
+ UpdateTaskRequestFromJSON,
31
+ UpdateTaskRequestToJSON,
29
32
  } from '../models/index';
30
33
 
31
34
  export interface TasksApiCreateTaskRequest {
@@ -56,9 +59,9 @@ export interface TasksApiStopRequest {
56
59
  id: string;
57
60
  }
58
61
 
59
- export interface TasksApiUpdateTaskRequest {
62
+ export interface TasksApiUpdateTaskOperationRequest {
60
63
  taskId: string;
61
- body?: TaskTemplateXO;
64
+ body?: UpdateTaskRequest;
62
65
  }
63
66
 
64
67
  /**
@@ -368,7 +371,7 @@ export class TasksApi extends runtime.BaseAPI {
368
371
  /**
369
372
  * Update an existing task
370
373
  */
371
- async updateTaskRaw(requestParameters: TasksApiUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
374
+ async updateTaskRaw(requestParameters: TasksApiUpdateTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
372
375
  if (requestParameters['taskId'] == null) {
373
376
  throw new runtime.RequiredError(
374
377
  'taskId',
@@ -394,7 +397,7 @@ export class TasksApi extends runtime.BaseAPI {
394
397
  method: 'PUT',
395
398
  headers: headerParameters,
396
399
  query: queryParameters,
397
- body: TaskTemplateXOToJSON(requestParameters['body']),
400
+ body: UpdateTaskRequestToJSON(requestParameters['body']),
398
401
  }, initOverrides);
399
402
 
400
403
  return new runtime.VoidApiResponse(response);
@@ -403,7 +406,7 @@ export class TasksApi extends runtime.BaseAPI {
403
406
  /**
404
407
  * Update an existing task
405
408
  */
406
- async updateTask(requestParameters: TasksApiUpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
409
+ async updateTask(requestParameters: TasksApiUpdateTaskOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
407
410
  await this.updateTaskRaw(requestParameters, initOverrides);
408
411
  }
409
412
 
@@ -0,0 +1,136 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sonatype Nexus Repository Manager
5
+ * This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.84.0-03.
6
+ *
7
+ * The version of the OpenAPI document: 3.84.0-03
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
+ import { mapValues } from '../runtime';
16
+ import type { FrequencyXO } from './FrequencyXO';
17
+ import {
18
+ FrequencyXOFromJSON,
19
+ FrequencyXOFromJSONTyped,
20
+ FrequencyXOToJSON,
21
+ FrequencyXOToJSONTyped,
22
+ } from './FrequencyXO';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UpdateTaskRequest
28
+ */
29
+ export interface UpdateTaskRequest {
30
+ /**
31
+ * e-mail for task notifications.
32
+ * @type {string}
33
+ * @memberof UpdateTaskRequest
34
+ */
35
+ alertEmail?: string;
36
+ /**
37
+ * Indicates if the task would be enabled.
38
+ * @type {boolean}
39
+ * @memberof UpdateTaskRequest
40
+ */
41
+ enabled: boolean;
42
+ /**
43
+ *
44
+ * @type {FrequencyXO}
45
+ * @memberof UpdateTaskRequest
46
+ */
47
+ frequency: FrequencyXO;
48
+ /**
49
+ * The name of the task template.
50
+ * @type {string}
51
+ * @memberof UpdateTaskRequest
52
+ */
53
+ name: string;
54
+ /**
55
+ * Condition required to notify a task execution.
56
+ * @type {string}
57
+ * @memberof UpdateTaskRequest
58
+ */
59
+ notificationCondition: UpdateTaskRequestNotificationConditionEnum;
60
+ /**
61
+ * Additional properties for the task
62
+ * @type {{ [key: string]: string; }}
63
+ * @memberof UpdateTaskRequest
64
+ */
65
+ properties?: { [key: string]: string; };
66
+ /**
67
+ * The type of task to be created.
68
+ * @type {string}
69
+ * @memberof UpdateTaskRequest
70
+ */
71
+ type?: string;
72
+ }
73
+
74
+
75
+ /**
76
+ * @export
77
+ */
78
+ export const UpdateTaskRequestNotificationConditionEnum = {
79
+ Failure: 'FAILURE',
80
+ SuccessFailure: 'SUCCESS_FAILURE'
81
+ } as const;
82
+ export type UpdateTaskRequestNotificationConditionEnum = typeof UpdateTaskRequestNotificationConditionEnum[keyof typeof UpdateTaskRequestNotificationConditionEnum];
83
+
84
+
85
+ /**
86
+ * Check if a given object implements the UpdateTaskRequest interface.
87
+ */
88
+ export function instanceOfUpdateTaskRequest(value: object): value is UpdateTaskRequest {
89
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
90
+ if (!('frequency' in value) || value['frequency'] === undefined) return false;
91
+ if (!('name' in value) || value['name'] === undefined) return false;
92
+ if (!('notificationCondition' in value) || value['notificationCondition'] === undefined) return false;
93
+ return true;
94
+ }
95
+
96
+ export function UpdateTaskRequestFromJSON(json: any): UpdateTaskRequest {
97
+ return UpdateTaskRequestFromJSONTyped(json, false);
98
+ }
99
+
100
+ export function UpdateTaskRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTaskRequest {
101
+ if (json == null) {
102
+ return json;
103
+ }
104
+ return {
105
+
106
+ 'alertEmail': json['alertEmail'] == null ? undefined : json['alertEmail'],
107
+ 'enabled': json['enabled'],
108
+ 'frequency': FrequencyXOFromJSON(json['frequency']),
109
+ 'name': json['name'],
110
+ 'notificationCondition': json['notificationCondition'],
111
+ 'properties': json['properties'] == null ? undefined : json['properties'],
112
+ 'type': json['type'] == null ? undefined : json['type'],
113
+ };
114
+ }
115
+
116
+ export function UpdateTaskRequestToJSON(json: any): UpdateTaskRequest {
117
+ return UpdateTaskRequestToJSONTyped(json, false);
118
+ }
119
+
120
+ export function UpdateTaskRequestToJSONTyped(value?: UpdateTaskRequest | null, ignoreDiscriminator: boolean = false): any {
121
+ if (value == null) {
122
+ return value;
123
+ }
124
+
125
+ return {
126
+
127
+ 'alertEmail': value['alertEmail'],
128
+ 'enabled': value['enabled'],
129
+ 'frequency': FrequencyXOToJSON(value['frequency']),
130
+ 'name': value['name'],
131
+ 'notificationCondition': value['notificationCondition'],
132
+ 'properties': value['properties'],
133
+ 'type': value['type'],
134
+ };
135
+ }
136
+
@@ -186,6 +186,7 @@ export * from './TaskTemplateXO';
186
186
  export * from './TaskXO';
187
187
  export * from './Throwable';
188
188
  export * from './UpdateLdapServerXo';
189
+ export * from './UpdateTaskRequest';
189
190
  export * from './UploadComponentRequest';
190
191
  export * from './UploadDefinitionXO';
191
192
  export * from './UploadFieldDefinitionXO';