/
AuditLog.ts
81 lines (72 loc) · 2.31 KB
/
AuditLog.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
* Windmill server API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 1.28.1
* Contact: contact@windmill.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http.ts';
export class AuditLog {
'id': number;
'timestamp': Date;
'username': string;
'operation': AuditLogOperationEnum;
'actionKind': AuditLogActionKindEnum;
'resource'?: string;
'parameters'?: any;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "id",
"baseName": "id",
"type": "number",
"format": "int32"
},
{
"name": "timestamp",
"baseName": "timestamp",
"type": "Date",
"format": "date-time"
},
{
"name": "username",
"baseName": "username",
"type": "string",
"format": ""
},
{
"name": "operation",
"baseName": "operation",
"type": "AuditLogOperationEnum",
"format": ""
},
{
"name": "actionKind",
"baseName": "action_kind",
"type": "AuditLogActionKindEnum",
"format": ""
},
{
"name": "resource",
"baseName": "resource",
"type": "string",
"format": ""
},
{
"name": "parameters",
"baseName": "parameters",
"type": "any",
"format": ""
} ];
static getAttributeTypeMap() {
return AuditLog.attributeTypeMap;
}
public constructor() {
}
}
export type AuditLogOperationEnum = "jobs.run" | "scripts.create" | "scripts.update" | "users.create" | "users.delete" | "users.setpassword" | "users.update" | "users.login" | "users.token.create" | "users.token.delete" | "variables.create" | "variables.delete" | "variables.update" ;
export type AuditLogActionKindEnum = "Created" | "Updated" | "Delete" | "Execute" ;