-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathCIAppGitInfo.ts
144 lines (137 loc) · 2.96 KB
/
CIAppGitInfo.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
/**
* If pipelines are triggered due to actions to a Git repository, then all payloads must contain this.
* Note that either `tag` or `branch` has to be provided, but not both.
*/
export class CIAppGitInfo {
/**
* The commit author email.
*/
"authorEmail": string;
/**
* The commit author name.
*/
"authorName"?: string;
/**
* The commit author timestamp in RFC3339 format.
*/
"authorTime"?: string;
/**
* The branch name (if a tag use the tag parameter).
*/
"branch"?: string;
/**
* The commit timestamp in RFC3339 format.
*/
"commitTime"?: string;
/**
* The committer email.
*/
"committerEmail"?: string;
/**
* The committer name.
*/
"committerName"?: string;
/**
* The Git repository's default branch.
*/
"defaultBranch"?: string;
/**
* The commit message.
*/
"message"?: string;
/**
* The URL of the repository.
*/
"repositoryUrl": string;
/**
* The git commit SHA.
*/
"sha": string;
/**
* The tag name (if a branch use the branch parameter).
*/
"tag"?: string;
/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
* the 'additionalProperties' keyword in the OAS document.
*/
"additionalProperties"?: { [key: string]: any };
/**
* @ignore
*/
"_unparsed"?: boolean;
/**
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
authorEmail: {
baseName: "author_email",
type: "string",
required: true,
},
authorName: {
baseName: "author_name",
type: "string",
},
authorTime: {
baseName: "author_time",
type: "string",
},
branch: {
baseName: "branch",
type: "string",
},
commitTime: {
baseName: "commit_time",
type: "string",
},
committerEmail: {
baseName: "committer_email",
type: "string",
},
committerName: {
baseName: "committer_name",
type: "string",
},
defaultBranch: {
baseName: "default_branch",
type: "string",
},
message: {
baseName: "message",
type: "string",
},
repositoryUrl: {
baseName: "repository_url",
type: "string",
required: true,
},
sha: {
baseName: "sha",
type: "string",
required: true,
},
tag: {
baseName: "tag",
type: "string",
},
additionalProperties: {
baseName: "additionalProperties",
type: "any",
},
};
/**
* @ignore
*/
static getAttributeTypeMap(): AttributeTypeMap {
return CIAppGitInfo.attributeTypeMap;
}
public constructor() {}
}