@pulumi/azuredevops 3.11.0-alpha.1766173758 → 3.11.0-alpha.1766201994

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.
@@ -0,0 +1,311 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Manages a Webhook TFS Service Hook that sends HTTP POST requests to a specified URL when Azure DevOps events occur.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ### Git Push Event
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as azuredevops from "@pulumi/azuredevops";
14
+ *
15
+ * const example = new azuredevops.Project("example", {name: "example-project"});
16
+ * const exampleServicehookWebhookTfs = new azuredevops.ServicehookWebhookTfs("example", {
17
+ * projectId: example.id,
18
+ * url: "https://example.com/webhook",
19
+ * gitPush: {
20
+ * branch: "refs/heads/main",
21
+ * repositoryId: exampleAzuredevopsGitRepository.id,
22
+ * },
23
+ * });
24
+ * ```
25
+ *
26
+ * ### Build Completed Event with Authentication
27
+ *
28
+ * ```typescript
29
+ * import * as pulumi from "@pulumi/pulumi";
30
+ * import * as azuredevops from "@pulumi/azuredevops";
31
+ *
32
+ * const example = new azuredevops.ServicehookWebhookTfs("example", {
33
+ * projectId: exampleAzuredevopsProject.id,
34
+ * url: "https://example.com/webhook",
35
+ * basicAuthUsername: "webhook_user",
36
+ * basicAuthPassword: webhookPassword,
37
+ * acceptUntrustedCerts: false,
38
+ * buildCompleted: {
39
+ * definitionName: "CI Build",
40
+ * buildStatus: "Succeeded",
41
+ * },
42
+ * });
43
+ * ```
44
+ *
45
+ * ### Pull Request Created Event with HTTP Headers
46
+ *
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as azuredevops from "@pulumi/azuredevops";
50
+ *
51
+ * const example = new azuredevops.ServicehookWebhookTfs("example", {
52
+ * projectId: exampleAzuredevopsProject.id,
53
+ * url: "https://example.com/webhook",
54
+ * httpHeaders: {
55
+ * "X-Custom-Header": "my-value",
56
+ * Authorization: `Bearer ${apiToken}`,
57
+ * },
58
+ * gitPullRequestCreated: {
59
+ * repositoryId: exampleAzuredevopsGitRepository.id,
60
+ * branch: "refs/heads/develop",
61
+ * },
62
+ * });
63
+ * ```
64
+ *
65
+ * ### Work Item Updated Event
66
+ *
67
+ * ```typescript
68
+ * import * as pulumi from "@pulumi/pulumi";
69
+ * import * as azuredevops from "@pulumi/azuredevops";
70
+ *
71
+ * const example = new azuredevops.ServicehookWebhookTfs("example", {
72
+ * projectId: exampleAzuredevopsProject.id,
73
+ * url: "https://example.com/webhook",
74
+ * resourceDetailsToSend: "all",
75
+ * messagesToSend: "text",
76
+ * detailedMessagesToSend: "markdown",
77
+ * workItemUpdated: {
78
+ * workItemType: "Bug",
79
+ * areaPath: "MyProject\\Area",
80
+ * changedFields: "System.State",
81
+ * },
82
+ * });
83
+ * ```
84
+ *
85
+ * An empty configuration block will trigger on all events of that type:
86
+ *
87
+ * ```typescript
88
+ * import * as pulumi from "@pulumi/pulumi";
89
+ * import * as azuredevops from "@pulumi/azuredevops";
90
+ *
91
+ * const example = new azuredevops.ServicehookWebhookTfs("example", {
92
+ * projectId: exampleAzuredevopsProject.id,
93
+ * url: "https://example.com/webhook",
94
+ * gitPush: {},
95
+ * });
96
+ * ```
97
+ *
98
+ * ## Import
99
+ *
100
+ * Webhook TFS Service Hook can be imported using the `resource id`, e.g.
101
+ *
102
+ * ```sh
103
+ * $ pulumi import azuredevops:index/servicehookWebhookTfs:ServicehookWebhookTfs example 00000000-0000-0000-0000-000000000000
104
+ * ```
105
+ */
106
+ export declare class ServicehookWebhookTfs extends pulumi.CustomResource {
107
+ /**
108
+ * Get an existing ServicehookWebhookTfs resource's state with the given name, ID, and optional extra
109
+ * properties used to qualify the lookup.
110
+ *
111
+ * @param name The _unique_ name of the resulting resource.
112
+ * @param id The _unique_ provider ID of the resource to lookup.
113
+ * @param state Any extra arguments used during the lookup.
114
+ * @param opts Optional settings to control the behavior of the CustomResource.
115
+ */
116
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServicehookWebhookTfsState, opts?: pulumi.CustomResourceOptions): ServicehookWebhookTfs;
117
+ /**
118
+ * Returns true if the given object is an instance of ServicehookWebhookTfs. This is designed to work even
119
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
120
+ */
121
+ static isInstance(obj: any): obj is ServicehookWebhookTfs;
122
+ /**
123
+ * Accept untrusted SSL certificates. Defaults to `false`.
124
+ */
125
+ readonly acceptUntrustedCerts: pulumi.Output<boolean | undefined>;
126
+ /**
127
+ * Basic authentication password.
128
+ */
129
+ readonly basicAuthPassword: pulumi.Output<string | undefined>;
130
+ /**
131
+ * Basic authentication username.
132
+ */
133
+ readonly basicAuthUsername: pulumi.Output<string | undefined>;
134
+ readonly buildCompleted: pulumi.Output<outputs.ServicehookWebhookTfsBuildCompleted | undefined>;
135
+ /**
136
+ * Detailed messages to send - `all`, `text`, `html`, `markdown`, or `none`. Defaults to `all`.
137
+ */
138
+ readonly detailedMessagesToSend: pulumi.Output<string | undefined>;
139
+ readonly gitPullRequestCommented: pulumi.Output<outputs.ServicehookWebhookTfsGitPullRequestCommented | undefined>;
140
+ readonly gitPullRequestCreated: pulumi.Output<outputs.ServicehookWebhookTfsGitPullRequestCreated | undefined>;
141
+ readonly gitPullRequestMergeAttempted: pulumi.Output<outputs.ServicehookWebhookTfsGitPullRequestMergeAttempted | undefined>;
142
+ readonly gitPullRequestUpdated: pulumi.Output<outputs.ServicehookWebhookTfsGitPullRequestUpdated | undefined>;
143
+ readonly gitPush: pulumi.Output<outputs.ServicehookWebhookTfsGitPush | undefined>;
144
+ /**
145
+ * HTTP headers as key-value pairs to include in the webhook request.
146
+ */
147
+ readonly httpHeaders: pulumi.Output<{
148
+ [key: string]: string;
149
+ } | undefined>;
150
+ /**
151
+ * Messages to send - `all`, `text`, `html`, `markdown`, or `none`. Defaults to `all`.
152
+ */
153
+ readonly messagesToSend: pulumi.Output<string | undefined>;
154
+ /**
155
+ * The ID of the project. Changing this forces a new Service Hook Webhook TFS to be created.
156
+ */
157
+ readonly projectId: pulumi.Output<string>;
158
+ readonly repositoryCreated: pulumi.Output<outputs.ServicehookWebhookTfsRepositoryCreated | undefined>;
159
+ readonly repositoryDeleted: pulumi.Output<outputs.ServicehookWebhookTfsRepositoryDeleted | undefined>;
160
+ readonly repositoryForked: pulumi.Output<outputs.ServicehookWebhookTfsRepositoryForked | undefined>;
161
+ readonly repositoryRenamed: pulumi.Output<outputs.ServicehookWebhookTfsRepositoryRenamed | undefined>;
162
+ readonly repositoryStatusChanged: pulumi.Output<outputs.ServicehookWebhookTfsRepositoryStatusChanged | undefined>;
163
+ /**
164
+ * Resource details to send - `all`, `minimal`, or `none`. Defaults to `all`.
165
+ */
166
+ readonly resourceDetailsToSend: pulumi.Output<string | undefined>;
167
+ readonly serviceConnectionCreated: pulumi.Output<outputs.ServicehookWebhookTfsServiceConnectionCreated | undefined>;
168
+ readonly serviceConnectionUpdated: pulumi.Output<outputs.ServicehookWebhookTfsServiceConnectionUpdated | undefined>;
169
+ readonly tfvcCheckin: pulumi.Output<outputs.ServicehookWebhookTfsTfvcCheckin | undefined>;
170
+ /**
171
+ * The URL to send HTTP POST to.
172
+ */
173
+ readonly url: pulumi.Output<string>;
174
+ readonly workItemCommented: pulumi.Output<outputs.ServicehookWebhookTfsWorkItemCommented | undefined>;
175
+ readonly workItemCreated: pulumi.Output<outputs.ServicehookWebhookTfsWorkItemCreated | undefined>;
176
+ readonly workItemDeleted: pulumi.Output<outputs.ServicehookWebhookTfsWorkItemDeleted | undefined>;
177
+ readonly workItemRestored: pulumi.Output<outputs.ServicehookWebhookTfsWorkItemRestored | undefined>;
178
+ readonly workItemUpdated: pulumi.Output<outputs.ServicehookWebhookTfsWorkItemUpdated | undefined>;
179
+ /**
180
+ * Create a ServicehookWebhookTfs resource with the given unique name, arguments, and options.
181
+ *
182
+ * @param name The _unique_ name of the resource.
183
+ * @param args The arguments to use to populate this resource's properties.
184
+ * @param opts A bag of options that control this resource's behavior.
185
+ */
186
+ constructor(name: string, args: ServicehookWebhookTfsArgs, opts?: pulumi.CustomResourceOptions);
187
+ }
188
+ /**
189
+ * Input properties used for looking up and filtering ServicehookWebhookTfs resources.
190
+ */
191
+ export interface ServicehookWebhookTfsState {
192
+ /**
193
+ * Accept untrusted SSL certificates. Defaults to `false`.
194
+ */
195
+ acceptUntrustedCerts?: pulumi.Input<boolean>;
196
+ /**
197
+ * Basic authentication password.
198
+ */
199
+ basicAuthPassword?: pulumi.Input<string>;
200
+ /**
201
+ * Basic authentication username.
202
+ */
203
+ basicAuthUsername?: pulumi.Input<string>;
204
+ buildCompleted?: pulumi.Input<inputs.ServicehookWebhookTfsBuildCompleted>;
205
+ /**
206
+ * Detailed messages to send - `all`, `text`, `html`, `markdown`, or `none`. Defaults to `all`.
207
+ */
208
+ detailedMessagesToSend?: pulumi.Input<string>;
209
+ gitPullRequestCommented?: pulumi.Input<inputs.ServicehookWebhookTfsGitPullRequestCommented>;
210
+ gitPullRequestCreated?: pulumi.Input<inputs.ServicehookWebhookTfsGitPullRequestCreated>;
211
+ gitPullRequestMergeAttempted?: pulumi.Input<inputs.ServicehookWebhookTfsGitPullRequestMergeAttempted>;
212
+ gitPullRequestUpdated?: pulumi.Input<inputs.ServicehookWebhookTfsGitPullRequestUpdated>;
213
+ gitPush?: pulumi.Input<inputs.ServicehookWebhookTfsGitPush>;
214
+ /**
215
+ * HTTP headers as key-value pairs to include in the webhook request.
216
+ */
217
+ httpHeaders?: pulumi.Input<{
218
+ [key: string]: pulumi.Input<string>;
219
+ }>;
220
+ /**
221
+ * Messages to send - `all`, `text`, `html`, `markdown`, or `none`. Defaults to `all`.
222
+ */
223
+ messagesToSend?: pulumi.Input<string>;
224
+ /**
225
+ * The ID of the project. Changing this forces a new Service Hook Webhook TFS to be created.
226
+ */
227
+ projectId?: pulumi.Input<string>;
228
+ repositoryCreated?: pulumi.Input<inputs.ServicehookWebhookTfsRepositoryCreated>;
229
+ repositoryDeleted?: pulumi.Input<inputs.ServicehookWebhookTfsRepositoryDeleted>;
230
+ repositoryForked?: pulumi.Input<inputs.ServicehookWebhookTfsRepositoryForked>;
231
+ repositoryRenamed?: pulumi.Input<inputs.ServicehookWebhookTfsRepositoryRenamed>;
232
+ repositoryStatusChanged?: pulumi.Input<inputs.ServicehookWebhookTfsRepositoryStatusChanged>;
233
+ /**
234
+ * Resource details to send - `all`, `minimal`, or `none`. Defaults to `all`.
235
+ */
236
+ resourceDetailsToSend?: pulumi.Input<string>;
237
+ serviceConnectionCreated?: pulumi.Input<inputs.ServicehookWebhookTfsServiceConnectionCreated>;
238
+ serviceConnectionUpdated?: pulumi.Input<inputs.ServicehookWebhookTfsServiceConnectionUpdated>;
239
+ tfvcCheckin?: pulumi.Input<inputs.ServicehookWebhookTfsTfvcCheckin>;
240
+ /**
241
+ * The URL to send HTTP POST to.
242
+ */
243
+ url?: pulumi.Input<string>;
244
+ workItemCommented?: pulumi.Input<inputs.ServicehookWebhookTfsWorkItemCommented>;
245
+ workItemCreated?: pulumi.Input<inputs.ServicehookWebhookTfsWorkItemCreated>;
246
+ workItemDeleted?: pulumi.Input<inputs.ServicehookWebhookTfsWorkItemDeleted>;
247
+ workItemRestored?: pulumi.Input<inputs.ServicehookWebhookTfsWorkItemRestored>;
248
+ workItemUpdated?: pulumi.Input<inputs.ServicehookWebhookTfsWorkItemUpdated>;
249
+ }
250
+ /**
251
+ * The set of arguments for constructing a ServicehookWebhookTfs resource.
252
+ */
253
+ export interface ServicehookWebhookTfsArgs {
254
+ /**
255
+ * Accept untrusted SSL certificates. Defaults to `false`.
256
+ */
257
+ acceptUntrustedCerts?: pulumi.Input<boolean>;
258
+ /**
259
+ * Basic authentication password.
260
+ */
261
+ basicAuthPassword?: pulumi.Input<string>;
262
+ /**
263
+ * Basic authentication username.
264
+ */
265
+ basicAuthUsername?: pulumi.Input<string>;
266
+ buildCompleted?: pulumi.Input<inputs.ServicehookWebhookTfsBuildCompleted>;
267
+ /**
268
+ * Detailed messages to send - `all`, `text`, `html`, `markdown`, or `none`. Defaults to `all`.
269
+ */
270
+ detailedMessagesToSend?: pulumi.Input<string>;
271
+ gitPullRequestCommented?: pulumi.Input<inputs.ServicehookWebhookTfsGitPullRequestCommented>;
272
+ gitPullRequestCreated?: pulumi.Input<inputs.ServicehookWebhookTfsGitPullRequestCreated>;
273
+ gitPullRequestMergeAttempted?: pulumi.Input<inputs.ServicehookWebhookTfsGitPullRequestMergeAttempted>;
274
+ gitPullRequestUpdated?: pulumi.Input<inputs.ServicehookWebhookTfsGitPullRequestUpdated>;
275
+ gitPush?: pulumi.Input<inputs.ServicehookWebhookTfsGitPush>;
276
+ /**
277
+ * HTTP headers as key-value pairs to include in the webhook request.
278
+ */
279
+ httpHeaders?: pulumi.Input<{
280
+ [key: string]: pulumi.Input<string>;
281
+ }>;
282
+ /**
283
+ * Messages to send - `all`, `text`, `html`, `markdown`, or `none`. Defaults to `all`.
284
+ */
285
+ messagesToSend?: pulumi.Input<string>;
286
+ /**
287
+ * The ID of the project. Changing this forces a new Service Hook Webhook TFS to be created.
288
+ */
289
+ projectId: pulumi.Input<string>;
290
+ repositoryCreated?: pulumi.Input<inputs.ServicehookWebhookTfsRepositoryCreated>;
291
+ repositoryDeleted?: pulumi.Input<inputs.ServicehookWebhookTfsRepositoryDeleted>;
292
+ repositoryForked?: pulumi.Input<inputs.ServicehookWebhookTfsRepositoryForked>;
293
+ repositoryRenamed?: pulumi.Input<inputs.ServicehookWebhookTfsRepositoryRenamed>;
294
+ repositoryStatusChanged?: pulumi.Input<inputs.ServicehookWebhookTfsRepositoryStatusChanged>;
295
+ /**
296
+ * Resource details to send - `all`, `minimal`, or `none`. Defaults to `all`.
297
+ */
298
+ resourceDetailsToSend?: pulumi.Input<string>;
299
+ serviceConnectionCreated?: pulumi.Input<inputs.ServicehookWebhookTfsServiceConnectionCreated>;
300
+ serviceConnectionUpdated?: pulumi.Input<inputs.ServicehookWebhookTfsServiceConnectionUpdated>;
301
+ tfvcCheckin?: pulumi.Input<inputs.ServicehookWebhookTfsTfvcCheckin>;
302
+ /**
303
+ * The URL to send HTTP POST to.
304
+ */
305
+ url: pulumi.Input<string>;
306
+ workItemCommented?: pulumi.Input<inputs.ServicehookWebhookTfsWorkItemCommented>;
307
+ workItemCreated?: pulumi.Input<inputs.ServicehookWebhookTfsWorkItemCreated>;
308
+ workItemDeleted?: pulumi.Input<inputs.ServicehookWebhookTfsWorkItemDeleted>;
309
+ workItemRestored?: pulumi.Input<inputs.ServicehookWebhookTfsWorkItemRestored>;
310
+ workItemUpdated?: pulumi.Input<inputs.ServicehookWebhookTfsWorkItemUpdated>;
311
+ }
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.ServicehookWebhookTfs = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Manages a Webhook TFS Service Hook that sends HTTP POST requests to a specified URL when Azure DevOps events occur.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ### Git Push Event
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as azuredevops from "@pulumi/azuredevops";
18
+ *
19
+ * const example = new azuredevops.Project("example", {name: "example-project"});
20
+ * const exampleServicehookWebhookTfs = new azuredevops.ServicehookWebhookTfs("example", {
21
+ * projectId: example.id,
22
+ * url: "https://example.com/webhook",
23
+ * gitPush: {
24
+ * branch: "refs/heads/main",
25
+ * repositoryId: exampleAzuredevopsGitRepository.id,
26
+ * },
27
+ * });
28
+ * ```
29
+ *
30
+ * ### Build Completed Event with Authentication
31
+ *
32
+ * ```typescript
33
+ * import * as pulumi from "@pulumi/pulumi";
34
+ * import * as azuredevops from "@pulumi/azuredevops";
35
+ *
36
+ * const example = new azuredevops.ServicehookWebhookTfs("example", {
37
+ * projectId: exampleAzuredevopsProject.id,
38
+ * url: "https://example.com/webhook",
39
+ * basicAuthUsername: "webhook_user",
40
+ * basicAuthPassword: webhookPassword,
41
+ * acceptUntrustedCerts: false,
42
+ * buildCompleted: {
43
+ * definitionName: "CI Build",
44
+ * buildStatus: "Succeeded",
45
+ * },
46
+ * });
47
+ * ```
48
+ *
49
+ * ### Pull Request Created Event with HTTP Headers
50
+ *
51
+ * ```typescript
52
+ * import * as pulumi from "@pulumi/pulumi";
53
+ * import * as azuredevops from "@pulumi/azuredevops";
54
+ *
55
+ * const example = new azuredevops.ServicehookWebhookTfs("example", {
56
+ * projectId: exampleAzuredevopsProject.id,
57
+ * url: "https://example.com/webhook",
58
+ * httpHeaders: {
59
+ * "X-Custom-Header": "my-value",
60
+ * Authorization: `Bearer ${apiToken}`,
61
+ * },
62
+ * gitPullRequestCreated: {
63
+ * repositoryId: exampleAzuredevopsGitRepository.id,
64
+ * branch: "refs/heads/develop",
65
+ * },
66
+ * });
67
+ * ```
68
+ *
69
+ * ### Work Item Updated Event
70
+ *
71
+ * ```typescript
72
+ * import * as pulumi from "@pulumi/pulumi";
73
+ * import * as azuredevops from "@pulumi/azuredevops";
74
+ *
75
+ * const example = new azuredevops.ServicehookWebhookTfs("example", {
76
+ * projectId: exampleAzuredevopsProject.id,
77
+ * url: "https://example.com/webhook",
78
+ * resourceDetailsToSend: "all",
79
+ * messagesToSend: "text",
80
+ * detailedMessagesToSend: "markdown",
81
+ * workItemUpdated: {
82
+ * workItemType: "Bug",
83
+ * areaPath: "MyProject\\Area",
84
+ * changedFields: "System.State",
85
+ * },
86
+ * });
87
+ * ```
88
+ *
89
+ * An empty configuration block will trigger on all events of that type:
90
+ *
91
+ * ```typescript
92
+ * import * as pulumi from "@pulumi/pulumi";
93
+ * import * as azuredevops from "@pulumi/azuredevops";
94
+ *
95
+ * const example = new azuredevops.ServicehookWebhookTfs("example", {
96
+ * projectId: exampleAzuredevopsProject.id,
97
+ * url: "https://example.com/webhook",
98
+ * gitPush: {},
99
+ * });
100
+ * ```
101
+ *
102
+ * ## Import
103
+ *
104
+ * Webhook TFS Service Hook can be imported using the `resource id`, e.g.
105
+ *
106
+ * ```sh
107
+ * $ pulumi import azuredevops:index/servicehookWebhookTfs:ServicehookWebhookTfs example 00000000-0000-0000-0000-000000000000
108
+ * ```
109
+ */
110
+ class ServicehookWebhookTfs extends pulumi.CustomResource {
111
+ /**
112
+ * Get an existing ServicehookWebhookTfs resource's state with the given name, ID, and optional extra
113
+ * properties used to qualify the lookup.
114
+ *
115
+ * @param name The _unique_ name of the resulting resource.
116
+ * @param id The _unique_ provider ID of the resource to lookup.
117
+ * @param state Any extra arguments used during the lookup.
118
+ * @param opts Optional settings to control the behavior of the CustomResource.
119
+ */
120
+ static get(name, id, state, opts) {
121
+ return new ServicehookWebhookTfs(name, state, { ...opts, id: id });
122
+ }
123
+ /**
124
+ * Returns true if the given object is an instance of ServicehookWebhookTfs. This is designed to work even
125
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
126
+ */
127
+ static isInstance(obj) {
128
+ if (obj === undefined || obj === null) {
129
+ return false;
130
+ }
131
+ return obj['__pulumiType'] === ServicehookWebhookTfs.__pulumiType;
132
+ }
133
+ constructor(name, argsOrState, opts) {
134
+ let resourceInputs = {};
135
+ opts = opts || {};
136
+ if (opts.id) {
137
+ const state = argsOrState;
138
+ resourceInputs["acceptUntrustedCerts"] = state?.acceptUntrustedCerts;
139
+ resourceInputs["basicAuthPassword"] = state?.basicAuthPassword;
140
+ resourceInputs["basicAuthUsername"] = state?.basicAuthUsername;
141
+ resourceInputs["buildCompleted"] = state?.buildCompleted;
142
+ resourceInputs["detailedMessagesToSend"] = state?.detailedMessagesToSend;
143
+ resourceInputs["gitPullRequestCommented"] = state?.gitPullRequestCommented;
144
+ resourceInputs["gitPullRequestCreated"] = state?.gitPullRequestCreated;
145
+ resourceInputs["gitPullRequestMergeAttempted"] = state?.gitPullRequestMergeAttempted;
146
+ resourceInputs["gitPullRequestUpdated"] = state?.gitPullRequestUpdated;
147
+ resourceInputs["gitPush"] = state?.gitPush;
148
+ resourceInputs["httpHeaders"] = state?.httpHeaders;
149
+ resourceInputs["messagesToSend"] = state?.messagesToSend;
150
+ resourceInputs["projectId"] = state?.projectId;
151
+ resourceInputs["repositoryCreated"] = state?.repositoryCreated;
152
+ resourceInputs["repositoryDeleted"] = state?.repositoryDeleted;
153
+ resourceInputs["repositoryForked"] = state?.repositoryForked;
154
+ resourceInputs["repositoryRenamed"] = state?.repositoryRenamed;
155
+ resourceInputs["repositoryStatusChanged"] = state?.repositoryStatusChanged;
156
+ resourceInputs["resourceDetailsToSend"] = state?.resourceDetailsToSend;
157
+ resourceInputs["serviceConnectionCreated"] = state?.serviceConnectionCreated;
158
+ resourceInputs["serviceConnectionUpdated"] = state?.serviceConnectionUpdated;
159
+ resourceInputs["tfvcCheckin"] = state?.tfvcCheckin;
160
+ resourceInputs["url"] = state?.url;
161
+ resourceInputs["workItemCommented"] = state?.workItemCommented;
162
+ resourceInputs["workItemCreated"] = state?.workItemCreated;
163
+ resourceInputs["workItemDeleted"] = state?.workItemDeleted;
164
+ resourceInputs["workItemRestored"] = state?.workItemRestored;
165
+ resourceInputs["workItemUpdated"] = state?.workItemUpdated;
166
+ }
167
+ else {
168
+ const args = argsOrState;
169
+ if (args?.projectId === undefined && !opts.urn) {
170
+ throw new Error("Missing required property 'projectId'");
171
+ }
172
+ if (args?.url === undefined && !opts.urn) {
173
+ throw new Error("Missing required property 'url'");
174
+ }
175
+ resourceInputs["acceptUntrustedCerts"] = args?.acceptUntrustedCerts;
176
+ resourceInputs["basicAuthPassword"] = args?.basicAuthPassword ? pulumi.secret(args.basicAuthPassword) : undefined;
177
+ resourceInputs["basicAuthUsername"] = args?.basicAuthUsername;
178
+ resourceInputs["buildCompleted"] = args?.buildCompleted;
179
+ resourceInputs["detailedMessagesToSend"] = args?.detailedMessagesToSend;
180
+ resourceInputs["gitPullRequestCommented"] = args?.gitPullRequestCommented;
181
+ resourceInputs["gitPullRequestCreated"] = args?.gitPullRequestCreated;
182
+ resourceInputs["gitPullRequestMergeAttempted"] = args?.gitPullRequestMergeAttempted;
183
+ resourceInputs["gitPullRequestUpdated"] = args?.gitPullRequestUpdated;
184
+ resourceInputs["gitPush"] = args?.gitPush;
185
+ resourceInputs["httpHeaders"] = args?.httpHeaders;
186
+ resourceInputs["messagesToSend"] = args?.messagesToSend;
187
+ resourceInputs["projectId"] = args?.projectId;
188
+ resourceInputs["repositoryCreated"] = args?.repositoryCreated;
189
+ resourceInputs["repositoryDeleted"] = args?.repositoryDeleted;
190
+ resourceInputs["repositoryForked"] = args?.repositoryForked;
191
+ resourceInputs["repositoryRenamed"] = args?.repositoryRenamed;
192
+ resourceInputs["repositoryStatusChanged"] = args?.repositoryStatusChanged;
193
+ resourceInputs["resourceDetailsToSend"] = args?.resourceDetailsToSend;
194
+ resourceInputs["serviceConnectionCreated"] = args?.serviceConnectionCreated;
195
+ resourceInputs["serviceConnectionUpdated"] = args?.serviceConnectionUpdated;
196
+ resourceInputs["tfvcCheckin"] = args?.tfvcCheckin;
197
+ resourceInputs["url"] = args?.url;
198
+ resourceInputs["workItemCommented"] = args?.workItemCommented;
199
+ resourceInputs["workItemCreated"] = args?.workItemCreated;
200
+ resourceInputs["workItemDeleted"] = args?.workItemDeleted;
201
+ resourceInputs["workItemRestored"] = args?.workItemRestored;
202
+ resourceInputs["workItemUpdated"] = args?.workItemUpdated;
203
+ }
204
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
205
+ const secretOpts = { additionalSecretOutputs: ["basicAuthPassword"] };
206
+ opts = pulumi.mergeOptions(opts, secretOpts);
207
+ super(ServicehookWebhookTfs.__pulumiType, name, resourceInputs, opts);
208
+ }
209
+ }
210
+ exports.ServicehookWebhookTfs = ServicehookWebhookTfs;
211
+ /** @internal */
212
+ ServicehookWebhookTfs.__pulumiType = 'azuredevops:index/servicehookWebhookTfs:ServicehookWebhookTfs';
213
+ //# sourceMappingURL=servicehookWebhookTfs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"servicehookWebhookTfs.js","sourceRoot":"","sources":["../servicehookWebhookTfs.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;IAkED,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,EAAE,oBAAoB,CAAC;YACrE,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,EAAE,iBAAiB,CAAC;YAC/D,cAAc,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