@pulumi/azuredevops 2.16.0-alpha.1710156155 → 3.0.0

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.
Files changed (185) hide show
  1. package/README.md +2 -2
  2. package/branchPolicyMinReviewers.js +0 -2
  3. package/branchPolicyMinReviewers.js.map +1 -1
  4. package/buildDefinition.js +0 -2
  5. package/buildDefinition.js.map +1 -1
  6. package/checkApproval.d.ts +8 -0
  7. package/checkApproval.js +2 -0
  8. package/checkApproval.js.map +1 -1
  9. package/checkBranchControl.d.ts +8 -0
  10. package/checkBranchControl.js +2 -0
  11. package/checkBranchControl.js.map +1 -1
  12. package/checkBusinessHours.d.ts +8 -0
  13. package/checkBusinessHours.js +2 -0
  14. package/checkBusinessHours.js.map +1 -1
  15. package/checkExclusiveLock.d.ts +8 -0
  16. package/checkExclusiveLock.js +2 -0
  17. package/checkExclusiveLock.js.map +1 -1
  18. package/checkRequiredTemplate.d.ts +8 -0
  19. package/checkRequiredTemplate.js +2 -0
  20. package/checkRequiredTemplate.js.map +1 -1
  21. package/config/vars.d.ts +63 -0
  22. package/config/vars.js +114 -0
  23. package/config/vars.js.map +1 -1
  24. package/elasticPool.d.ts +12 -0
  25. package/elasticPool.js +2 -0
  26. package/elasticPool.js.map +1 -1
  27. package/environmentResourceKubernetes.d.ts +57 -0
  28. package/environmentResourceKubernetes.js +73 -0
  29. package/environmentResourceKubernetes.js.map +1 -0
  30. package/getGroup.d.ts +10 -0
  31. package/getGroup.js +10 -0
  32. package/getGroup.js.map +1 -1
  33. package/git.js +0 -2
  34. package/git.js.map +1 -1
  35. package/group.js +0 -2
  36. package/group.js.map +1 -1
  37. package/groupMembership.js +0 -2
  38. package/groupMembership.js.map +1 -1
  39. package/index.d.ts +10 -11
  40. package/index.js +18 -23
  41. package/index.js.map +1 -1
  42. package/libraryPermissions.d.ts +172 -0
  43. package/libraryPermissions.js +119 -0
  44. package/libraryPermissions.js.map +1 -0
  45. package/package.json +1 -1
  46. package/pipelineAuthorization.d.ts +15 -0
  47. package/pipelineAuthorization.js.map +1 -1
  48. package/pool.js +0 -2
  49. package/pool.js.map +1 -1
  50. package/project.js +0 -2
  51. package/project.js.map +1 -1
  52. package/projectFeatures.js +0 -2
  53. package/projectFeatures.js.map +1 -1
  54. package/provider.d.ts +148 -0
  55. package/provider.js +20 -1
  56. package/provider.js.map +1 -1
  57. package/queue.js +0 -2
  58. package/queue.js.map +1 -1
  59. package/serviceEndpointAzureRM.js +0 -2
  60. package/serviceEndpointAzureRM.js.map +1 -1
  61. package/serviceEndpointBitBucket.js +0 -2
  62. package/serviceEndpointBitBucket.js.map +1 -1
  63. package/serviceEndpointDockerRegistry.js +0 -2
  64. package/serviceEndpointDockerRegistry.js.map +1 -1
  65. package/serviceEndpointGitHub.js +0 -2
  66. package/serviceEndpointGitHub.js.map +1 -1
  67. package/serviceEndpointKubernetes.js +0 -2
  68. package/serviceEndpointKubernetes.js.map +1 -1
  69. package/types/input.d.ts +1 -620
  70. package/types/output.d.ts +5 -719
  71. package/user.js +0 -2
  72. package/user.js.map +1 -1
  73. package/variableGroup.js +0 -2
  74. package/variableGroup.js.map +1 -1
  75. package/variableGroupPermissions.d.ts +193 -0
  76. package/variableGroupPermissions.js +133 -0
  77. package/variableGroupPermissions.js.map +1 -0
  78. package/agent/getPool.d.ts +0 -84
  79. package/agent/getPool.js +0 -70
  80. package/agent/getPool.js.map +0 -1
  81. package/agent/getPools.d.ts +0 -63
  82. package/agent/getPools.js +0 -64
  83. package/agent/getPools.js.map +0 -1
  84. package/agent/index.d.ts +0 -12
  85. package/agent/index.js +0 -33
  86. package/agent/index.js.map +0 -1
  87. package/agent/pool.d.ts +0 -116
  88. package/agent/pool.js +0 -89
  89. package/agent/pool.js.map +0 -1
  90. package/agent/queue.d.ts +0 -147
  91. package/agent/queue.js +0 -121
  92. package/agent/queue.js.map +0 -1
  93. package/build/buildDefinition.d.ts +0 -344
  94. package/build/buildDefinition.js +0 -244
  95. package/build/buildDefinition.js.map +0 -1
  96. package/build/index.d.ts +0 -3
  97. package/build/index.js +0 -22
  98. package/build/index.js.map +0 -1
  99. package/core/getClientConfig.d.ts +0 -45
  100. package/core/getClientConfig.js +0 -50
  101. package/core/getClientConfig.js.map +0 -1
  102. package/core/getProject.d.ts +0 -92
  103. package/core/getProject.js +0 -66
  104. package/core/getProject.js.map +0 -1
  105. package/core/getProjects.d.ts +0 -107
  106. package/core/getProjects.js +0 -74
  107. package/core/getProjects.js.map +0 -1
  108. package/core/index.d.ts +0 -15
  109. package/core/index.js +0 -36
  110. package/core/index.js.map +0 -1
  111. package/core/project.d.ts +0 -188
  112. package/core/project.js +0 -111
  113. package/core/project.js.map +0 -1
  114. package/core/projectFeatures.d.ts +0 -120
  115. package/core/projectFeatures.js +0 -104
  116. package/core/projectFeatures.js.map +0 -1
  117. package/entitlement/index.d.ts +0 -3
  118. package/entitlement/index.js +0 -22
  119. package/entitlement/index.js.map +0 -1
  120. package/entitlement/user.d.ts +0 -140
  121. package/entitlement/user.js +0 -91
  122. package/entitlement/user.js.map +0 -1
  123. package/identities/getGroup.d.ts +0 -116
  124. package/identities/getGroup.js +0 -85
  125. package/identities/getGroup.js.map +0 -1
  126. package/identities/getUsers.d.ts +0 -196
  127. package/identities/getUsers.js +0 -103
  128. package/identities/getUsers.js.map +0 -1
  129. package/identities/group.d.ts +0 -206
  130. package/identities/group.js +0 -123
  131. package/identities/group.js.map +0 -1
  132. package/identities/groupMembership.d.ts +0 -122
  133. package/identities/groupMembership.js +0 -99
  134. package/identities/groupMembership.js.map +0 -1
  135. package/identities/index.d.ts +0 -12
  136. package/identities/index.js +0 -33
  137. package/identities/index.js.map +0 -1
  138. package/pipeline/index.d.ts +0 -3
  139. package/pipeline/index.js +0 -22
  140. package/pipeline/index.js.map +0 -1
  141. package/pipeline/variableGroup.d.ts +0 -223
  142. package/pipeline/variableGroup.js +0 -180
  143. package/pipeline/variableGroup.js.map +0 -1
  144. package/policy/branchPolicyBuildValidation.d.ts +0 -159
  145. package/policy/branchPolicyBuildValidation.js +0 -136
  146. package/policy/branchPolicyBuildValidation.js.map +0 -1
  147. package/policy/branchPolicyMinReviewers.d.ts +0 -149
  148. package/policy/branchPolicyMinReviewers.js +0 -126
  149. package/policy/branchPolicyMinReviewers.js.map +0 -1
  150. package/policy/index.d.ts +0 -6
  151. package/policy/index.js +0 -27
  152. package/policy/index.js.map +0 -1
  153. package/repository/getRepositories.d.ts +0 -120
  154. package/repository/getRepositories.js +0 -83
  155. package/repository/getRepositories.js.map +0 -1
  156. package/repository/git.d.ts +0 -210
  157. package/repository/git.js +0 -141
  158. package/repository/git.js.map +0 -1
  159. package/repository/index.d.ts +0 -6
  160. package/repository/index.js +0 -25
  161. package/repository/index.js.map +0 -1
  162. package/security/index.d.ts +0 -3
  163. package/security/index.js +0 -22
  164. package/security/index.js.map +0 -1
  165. package/security/resourceAuthorization.d.ts +0 -136
  166. package/security/resourceAuthorization.js +0 -108
  167. package/security/resourceAuthorization.js.map +0 -1
  168. package/serviceendpoint/azureRM.d.ts +0 -392
  169. package/serviceendpoint/azureRM.js +0 -245
  170. package/serviceendpoint/azureRM.js.map +0 -1
  171. package/serviceendpoint/bitBucket.d.ts +0 -137
  172. package/serviceendpoint/bitBucket.js +0 -116
  173. package/serviceendpoint/bitBucket.js.map +0 -1
  174. package/serviceendpoint/dockerRegistry.d.ts +0 -185
  175. package/serviceendpoint/dockerRegistry.js +0 -134
  176. package/serviceendpoint/dockerRegistry.js.map +0 -1
  177. package/serviceendpoint/gitHub.d.ts +0 -170
  178. package/serviceendpoint/gitHub.js +0 -148
  179. package/serviceendpoint/gitHub.js.map +0 -1
  180. package/serviceendpoint/index.d.ts +0 -15
  181. package/serviceendpoint/index.js +0 -42
  182. package/serviceendpoint/index.js.map +0 -1
  183. package/serviceendpoint/kubernetes.d.ts +0 -148
  184. package/serviceendpoint/kubernetes.js +0 -93
  185. package/serviceendpoint/kubernetes.js.map +0 -1
@@ -1,344 +0,0 @@
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 Build Definition within Azure DevOps.
6
- *
7
- * ## Example Usage
8
- *
9
- * ### Tfs
10
- * <!--Start PulumiCodeChooser -->
11
- * ```typescript
12
- * import * as pulumi from "@pulumi/pulumi";
13
- * import * as azuredevops from "@pulumi/azuredevops";
14
- *
15
- * const exampleProject = new azuredevops.Project("exampleProject", {
16
- * visibility: "private",
17
- * versionControl: "Git",
18
- * workItemTemplate: "Agile",
19
- * });
20
- * const exampleGit = new azuredevops.Git("exampleGit", {
21
- * projectId: exampleProject.id,
22
- * initialization: {
23
- * initType: "Clean",
24
- * },
25
- * });
26
- * const exampleVariableGroup = new azuredevops.VariableGroup("exampleVariableGroup", {
27
- * projectId: exampleProject.id,
28
- * description: "Managed by Terraform",
29
- * allowAccess: true,
30
- * variables: [{
31
- * name: "FOO",
32
- * value: "BAR",
33
- * }],
34
- * });
35
- * const exampleBuildDefinition = new azuredevops.BuildDefinition("exampleBuildDefinition", {
36
- * projectId: exampleProject.id,
37
- * path: "\\ExampleFolder",
38
- * ciTrigger: {
39
- * useYaml: false,
40
- * },
41
- * schedules: [{
42
- * branchFilters: [{
43
- * includes: ["master"],
44
- * excludes: [
45
- * "test",
46
- * "regression",
47
- * ],
48
- * }],
49
- * daysToBuilds: [
50
- * "Wed",
51
- * "Sun",
52
- * ],
53
- * scheduleOnlyWithChanges: true,
54
- * startHours: 10,
55
- * startMinutes: 59,
56
- * timeZone: "(UTC) Coordinated Universal Time",
57
- * }],
58
- * repository: {
59
- * repoType: "TfsGit",
60
- * repoId: exampleGit.id,
61
- * branchName: exampleGit.defaultBranch,
62
- * ymlPath: "azure-pipelines.yml",
63
- * },
64
- * variableGroups: [exampleVariableGroup.id],
65
- * variables: [
66
- * {
67
- * name: "PipelineVariable",
68
- * value: "Go Microsoft!",
69
- * },
70
- * {
71
- * name: "PipelineSecret",
72
- * secretValue: "ZGV2cw",
73
- * isSecret: true,
74
- * },
75
- * ],
76
- * });
77
- * ```
78
- * <!--End PulumiCodeChooser -->
79
- *
80
- * ### GitHub Enterprise
81
- * <!--Start PulumiCodeChooser -->
82
- * ```typescript
83
- * import * as pulumi from "@pulumi/pulumi";
84
- * import * as azuredevops from "@pulumi/azuredevops";
85
- *
86
- * const exampleProject = new azuredevops.Project("exampleProject", {
87
- * visibility: "private",
88
- * versionControl: "Git",
89
- * workItemTemplate: "Agile",
90
- * });
91
- * const exampleServiceEndpointGitHubEnterprise = new azuredevops.ServiceEndpointGitHubEnterprise("exampleServiceEndpointGitHubEnterprise", {
92
- * projectId: exampleProject.id,
93
- * serviceEndpointName: "Example GitHub Enterprise",
94
- * url: "https://github.contoso.com",
95
- * description: "Managed by Terraform",
96
- * authPersonal: {
97
- * personalAccessToken: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
98
- * },
99
- * });
100
- * const exampleBuildDefinition = new azuredevops.BuildDefinition("exampleBuildDefinition", {
101
- * projectId: exampleProject.id,
102
- * path: "\\ExampleFolder",
103
- * ciTrigger: {
104
- * useYaml: false,
105
- * },
106
- * repository: {
107
- * repoType: "GitHubEnterprise",
108
- * repoId: "<GitHub Org>/<Repo Name>",
109
- * githubEnterpriseUrl: "https://github.company.com",
110
- * branchName: "master",
111
- * ymlPath: "azure-pipelines.yml",
112
- * serviceConnectionId: exampleServiceEndpointGitHubEnterprise.id,
113
- * },
114
- * schedules: [{
115
- * branchFilters: [{
116
- * includes: ["main"],
117
- * excludes: [
118
- * "test",
119
- * "regression",
120
- * ],
121
- * }],
122
- * daysToBuilds: [
123
- * "Wed",
124
- * "Sun",
125
- * ],
126
- * scheduleOnlyWithChanges: true,
127
- * startHours: 10,
128
- * startMinutes: 59,
129
- * timeZone: "(UTC) Coordinated Universal Time",
130
- * }],
131
- * });
132
- * ```
133
- * <!--End PulumiCodeChooser -->
134
- *
135
- * ## Remarks
136
- *
137
- * The path attribute can not end in `\` unless the path is the root value of `\`.
138
- *
139
- * Valid path values (yaml encoded) include:
140
- * - `\\`
141
- * - `\\ExampleFolder`
142
- * - `\\Nested\\Example Folder`
143
- *
144
- * The value of `\\ExampleFolder\\` would be invalid.
145
- *
146
- * ## Relevant Links
147
- *
148
- * - [Azure DevOps Service REST API 7.0 - Build Definitions](https://docs.microsoft.com/en-us/rest/api/azure/devops/build/definitions?view=azure-devops-rest-7.0)
149
- *
150
- * ## Import
151
- *
152
- * Azure DevOps Build Definitions can be imported using the project name/definitions Id or by the project Guid/definitions Id, e.g.
153
- *
154
- * ```sh
155
- * $ pulumi import azuredevops:Build/buildDefinition:BuildDefinition example "Example Project"/10
156
- * ```
157
- *
158
- * or
159
- *
160
- * ```sh
161
- * $ pulumi import azuredevops:Build/buildDefinition:BuildDefinition example 00000000-0000-0000-0000-000000000000/0
162
- * ```
163
- *
164
- * @deprecated azuredevops.build.BuildDefinition has been deprecated in favor of azuredevops.BuildDefinition
165
- */
166
- export declare class BuildDefinition extends pulumi.CustomResource {
167
- /**
168
- * Get an existing BuildDefinition resource's state with the given name, ID, and optional extra
169
- * properties used to qualify the lookup.
170
- *
171
- * @param name The _unique_ name of the resulting resource.
172
- * @param id The _unique_ provider ID of the resource to lookup.
173
- * @param state Any extra arguments used during the lookup.
174
- * @param opts Optional settings to control the behavior of the CustomResource.
175
- */
176
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BuildDefinitionState, opts?: pulumi.CustomResourceOptions): BuildDefinition;
177
- /**
178
- * Returns true if the given object is an instance of BuildDefinition. This is designed to work even
179
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
180
- */
181
- static isInstance(obj: any): obj is BuildDefinition;
182
- /**
183
- * The agent pool that should execute the build. Defaults to `Azure Pipelines`.
184
- */
185
- readonly agentPoolName: pulumi.Output<string | undefined>;
186
- /**
187
- * Continuous Integration trigger.
188
- */
189
- readonly ciTrigger: pulumi.Output<outputs.Build.BuildDefinitionCiTrigger | undefined>;
190
- /**
191
- * A `features` blocks as documented below.
192
- */
193
- readonly features: pulumi.Output<outputs.Build.BuildDefinitionFeature[] | undefined>;
194
- /**
195
- * The name of the build definition.
196
- */
197
- readonly name: pulumi.Output<string>;
198
- /**
199
- * The folder path of the build definition.
200
- */
201
- readonly path: pulumi.Output<string | undefined>;
202
- /**
203
- * The project ID or project name.
204
- */
205
- readonly projectId: pulumi.Output<string>;
206
- /**
207
- * Pull Request Integration trigger.
208
- */
209
- readonly pullRequestTrigger: pulumi.Output<outputs.Build.BuildDefinitionPullRequestTrigger | undefined>;
210
- /**
211
- * The queue status of the build definition. Valid values: `enabled` or `paused` or `disabled`. Defaults to `enabled`.
212
- */
213
- readonly queueStatus: pulumi.Output<string | undefined>;
214
- /**
215
- * A `repository` block as documented below.
216
- */
217
- readonly repository: pulumi.Output<outputs.Build.BuildDefinitionRepository>;
218
- /**
219
- * The revision of the build definition
220
- */
221
- readonly revision: pulumi.Output<number>;
222
- readonly schedules: pulumi.Output<outputs.Build.BuildDefinitionSchedule[] | undefined>;
223
- /**
224
- * A list of variable group IDs (integers) to link to the build definition.
225
- */
226
- readonly variableGroups: pulumi.Output<number[] | undefined>;
227
- /**
228
- * A list of `variable` blocks, as documented below.
229
- */
230
- readonly variables: pulumi.Output<outputs.Build.BuildDefinitionVariable[] | undefined>;
231
- /**
232
- * Create a BuildDefinition resource with the given unique name, arguments, and options.
233
- *
234
- * @param name The _unique_ name of the resource.
235
- * @param args The arguments to use to populate this resource's properties.
236
- * @param opts A bag of options that control this resource's behavior.
237
- */
238
- /** @deprecated azuredevops.build.BuildDefinition has been deprecated in favor of azuredevops.BuildDefinition */
239
- constructor(name: string, args: BuildDefinitionArgs, opts?: pulumi.CustomResourceOptions);
240
- }
241
- /**
242
- * Input properties used for looking up and filtering BuildDefinition resources.
243
- */
244
- export interface BuildDefinitionState {
245
- /**
246
- * The agent pool that should execute the build. Defaults to `Azure Pipelines`.
247
- */
248
- agentPoolName?: pulumi.Input<string>;
249
- /**
250
- * Continuous Integration trigger.
251
- */
252
- ciTrigger?: pulumi.Input<inputs.Build.BuildDefinitionCiTrigger>;
253
- /**
254
- * A `features` blocks as documented below.
255
- */
256
- features?: pulumi.Input<pulumi.Input<inputs.Build.BuildDefinitionFeature>[]>;
257
- /**
258
- * The name of the build definition.
259
- */
260
- name?: pulumi.Input<string>;
261
- /**
262
- * The folder path of the build definition.
263
- */
264
- path?: pulumi.Input<string>;
265
- /**
266
- * The project ID or project name.
267
- */
268
- projectId?: pulumi.Input<string>;
269
- /**
270
- * Pull Request Integration trigger.
271
- */
272
- pullRequestTrigger?: pulumi.Input<inputs.Build.BuildDefinitionPullRequestTrigger>;
273
- /**
274
- * The queue status of the build definition. Valid values: `enabled` or `paused` or `disabled`. Defaults to `enabled`.
275
- */
276
- queueStatus?: pulumi.Input<string>;
277
- /**
278
- * A `repository` block as documented below.
279
- */
280
- repository?: pulumi.Input<inputs.Build.BuildDefinitionRepository>;
281
- /**
282
- * The revision of the build definition
283
- */
284
- revision?: pulumi.Input<number>;
285
- schedules?: pulumi.Input<pulumi.Input<inputs.Build.BuildDefinitionSchedule>[]>;
286
- /**
287
- * A list of variable group IDs (integers) to link to the build definition.
288
- */
289
- variableGroups?: pulumi.Input<pulumi.Input<number>[]>;
290
- /**
291
- * A list of `variable` blocks, as documented below.
292
- */
293
- variables?: pulumi.Input<pulumi.Input<inputs.Build.BuildDefinitionVariable>[]>;
294
- }
295
- /**
296
- * The set of arguments for constructing a BuildDefinition resource.
297
- */
298
- export interface BuildDefinitionArgs {
299
- /**
300
- * The agent pool that should execute the build. Defaults to `Azure Pipelines`.
301
- */
302
- agentPoolName?: pulumi.Input<string>;
303
- /**
304
- * Continuous Integration trigger.
305
- */
306
- ciTrigger?: pulumi.Input<inputs.Build.BuildDefinitionCiTrigger>;
307
- /**
308
- * A `features` blocks as documented below.
309
- */
310
- features?: pulumi.Input<pulumi.Input<inputs.Build.BuildDefinitionFeature>[]>;
311
- /**
312
- * The name of the build definition.
313
- */
314
- name?: pulumi.Input<string>;
315
- /**
316
- * The folder path of the build definition.
317
- */
318
- path?: pulumi.Input<string>;
319
- /**
320
- * The project ID or project name.
321
- */
322
- projectId: pulumi.Input<string>;
323
- /**
324
- * Pull Request Integration trigger.
325
- */
326
- pullRequestTrigger?: pulumi.Input<inputs.Build.BuildDefinitionPullRequestTrigger>;
327
- /**
328
- * The queue status of the build definition. Valid values: `enabled` or `paused` or `disabled`. Defaults to `enabled`.
329
- */
330
- queueStatus?: pulumi.Input<string>;
331
- /**
332
- * A `repository` block as documented below.
333
- */
334
- repository: pulumi.Input<inputs.Build.BuildDefinitionRepository>;
335
- schedules?: pulumi.Input<pulumi.Input<inputs.Build.BuildDefinitionSchedule>[]>;
336
- /**
337
- * A list of variable group IDs (integers) to link to the build definition.
338
- */
339
- variableGroups?: pulumi.Input<pulumi.Input<number>[]>;
340
- /**
341
- * A list of `variable` blocks, as documented below.
342
- */
343
- variables?: pulumi.Input<pulumi.Input<inputs.Build.BuildDefinitionVariable>[]>;
344
- }
@@ -1,244 +0,0 @@
1
- "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.BuildDefinition = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("../utilities");
8
- /**
9
- * Manages a Build Definition within Azure DevOps.
10
- *
11
- * ## Example Usage
12
- *
13
- * ### Tfs
14
- * <!--Start PulumiCodeChooser -->
15
- * ```typescript
16
- * import * as pulumi from "@pulumi/pulumi";
17
- * import * as azuredevops from "@pulumi/azuredevops";
18
- *
19
- * const exampleProject = new azuredevops.Project("exampleProject", {
20
- * visibility: "private",
21
- * versionControl: "Git",
22
- * workItemTemplate: "Agile",
23
- * });
24
- * const exampleGit = new azuredevops.Git("exampleGit", {
25
- * projectId: exampleProject.id,
26
- * initialization: {
27
- * initType: "Clean",
28
- * },
29
- * });
30
- * const exampleVariableGroup = new azuredevops.VariableGroup("exampleVariableGroup", {
31
- * projectId: exampleProject.id,
32
- * description: "Managed by Terraform",
33
- * allowAccess: true,
34
- * variables: [{
35
- * name: "FOO",
36
- * value: "BAR",
37
- * }],
38
- * });
39
- * const exampleBuildDefinition = new azuredevops.BuildDefinition("exampleBuildDefinition", {
40
- * projectId: exampleProject.id,
41
- * path: "\\ExampleFolder",
42
- * ciTrigger: {
43
- * useYaml: false,
44
- * },
45
- * schedules: [{
46
- * branchFilters: [{
47
- * includes: ["master"],
48
- * excludes: [
49
- * "test",
50
- * "regression",
51
- * ],
52
- * }],
53
- * daysToBuilds: [
54
- * "Wed",
55
- * "Sun",
56
- * ],
57
- * scheduleOnlyWithChanges: true,
58
- * startHours: 10,
59
- * startMinutes: 59,
60
- * timeZone: "(UTC) Coordinated Universal Time",
61
- * }],
62
- * repository: {
63
- * repoType: "TfsGit",
64
- * repoId: exampleGit.id,
65
- * branchName: exampleGit.defaultBranch,
66
- * ymlPath: "azure-pipelines.yml",
67
- * },
68
- * variableGroups: [exampleVariableGroup.id],
69
- * variables: [
70
- * {
71
- * name: "PipelineVariable",
72
- * value: "Go Microsoft!",
73
- * },
74
- * {
75
- * name: "PipelineSecret",
76
- * secretValue: "ZGV2cw",
77
- * isSecret: true,
78
- * },
79
- * ],
80
- * });
81
- * ```
82
- * <!--End PulumiCodeChooser -->
83
- *
84
- * ### GitHub Enterprise
85
- * <!--Start PulumiCodeChooser -->
86
- * ```typescript
87
- * import * as pulumi from "@pulumi/pulumi";
88
- * import * as azuredevops from "@pulumi/azuredevops";
89
- *
90
- * const exampleProject = new azuredevops.Project("exampleProject", {
91
- * visibility: "private",
92
- * versionControl: "Git",
93
- * workItemTemplate: "Agile",
94
- * });
95
- * const exampleServiceEndpointGitHubEnterprise = new azuredevops.ServiceEndpointGitHubEnterprise("exampleServiceEndpointGitHubEnterprise", {
96
- * projectId: exampleProject.id,
97
- * serviceEndpointName: "Example GitHub Enterprise",
98
- * url: "https://github.contoso.com",
99
- * description: "Managed by Terraform",
100
- * authPersonal: {
101
- * personalAccessToken: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
102
- * },
103
- * });
104
- * const exampleBuildDefinition = new azuredevops.BuildDefinition("exampleBuildDefinition", {
105
- * projectId: exampleProject.id,
106
- * path: "\\ExampleFolder",
107
- * ciTrigger: {
108
- * useYaml: false,
109
- * },
110
- * repository: {
111
- * repoType: "GitHubEnterprise",
112
- * repoId: "<GitHub Org>/<Repo Name>",
113
- * githubEnterpriseUrl: "https://github.company.com",
114
- * branchName: "master",
115
- * ymlPath: "azure-pipelines.yml",
116
- * serviceConnectionId: exampleServiceEndpointGitHubEnterprise.id,
117
- * },
118
- * schedules: [{
119
- * branchFilters: [{
120
- * includes: ["main"],
121
- * excludes: [
122
- * "test",
123
- * "regression",
124
- * ],
125
- * }],
126
- * daysToBuilds: [
127
- * "Wed",
128
- * "Sun",
129
- * ],
130
- * scheduleOnlyWithChanges: true,
131
- * startHours: 10,
132
- * startMinutes: 59,
133
- * timeZone: "(UTC) Coordinated Universal Time",
134
- * }],
135
- * });
136
- * ```
137
- * <!--End PulumiCodeChooser -->
138
- *
139
- * ## Remarks
140
- *
141
- * The path attribute can not end in `\` unless the path is the root value of `\`.
142
- *
143
- * Valid path values (yaml encoded) include:
144
- * - `\\`
145
- * - `\\ExampleFolder`
146
- * - `\\Nested\\Example Folder`
147
- *
148
- * The value of `\\ExampleFolder\\` would be invalid.
149
- *
150
- * ## Relevant Links
151
- *
152
- * - [Azure DevOps Service REST API 7.0 - Build Definitions](https://docs.microsoft.com/en-us/rest/api/azure/devops/build/definitions?view=azure-devops-rest-7.0)
153
- *
154
- * ## Import
155
- *
156
- * Azure DevOps Build Definitions can be imported using the project name/definitions Id or by the project Guid/definitions Id, e.g.
157
- *
158
- * ```sh
159
- * $ pulumi import azuredevops:Build/buildDefinition:BuildDefinition example "Example Project"/10
160
- * ```
161
- *
162
- * or
163
- *
164
- * ```sh
165
- * $ pulumi import azuredevops:Build/buildDefinition:BuildDefinition example 00000000-0000-0000-0000-000000000000/0
166
- * ```
167
- *
168
- * @deprecated azuredevops.build.BuildDefinition has been deprecated in favor of azuredevops.BuildDefinition
169
- */
170
- class BuildDefinition extends pulumi.CustomResource {
171
- /**
172
- * Get an existing BuildDefinition resource's state with the given name, ID, and optional extra
173
- * properties used to qualify the lookup.
174
- *
175
- * @param name The _unique_ name of the resulting resource.
176
- * @param id The _unique_ provider ID of the resource to lookup.
177
- * @param state Any extra arguments used during the lookup.
178
- * @param opts Optional settings to control the behavior of the CustomResource.
179
- */
180
- static get(name, id, state, opts) {
181
- pulumi.log.warn("BuildDefinition is deprecated: azuredevops.build.BuildDefinition has been deprecated in favor of azuredevops.BuildDefinition");
182
- return new BuildDefinition(name, state, Object.assign(Object.assign({}, opts), { id: id }));
183
- }
184
- /**
185
- * Returns true if the given object is an instance of BuildDefinition. This is designed to work even
186
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
187
- */
188
- static isInstance(obj) {
189
- if (obj === undefined || obj === null) {
190
- return false;
191
- }
192
- return obj['__pulumiType'] === BuildDefinition.__pulumiType;
193
- }
194
- /** @deprecated azuredevops.build.BuildDefinition has been deprecated in favor of azuredevops.BuildDefinition */
195
- constructor(name, argsOrState, opts) {
196
- pulumi.log.warn("BuildDefinition is deprecated: azuredevops.build.BuildDefinition has been deprecated in favor of azuredevops.BuildDefinition");
197
- let resourceInputs = {};
198
- opts = opts || {};
199
- if (opts.id) {
200
- const state = argsOrState;
201
- resourceInputs["agentPoolName"] = state ? state.agentPoolName : undefined;
202
- resourceInputs["ciTrigger"] = state ? state.ciTrigger : undefined;
203
- resourceInputs["features"] = state ? state.features : undefined;
204
- resourceInputs["name"] = state ? state.name : undefined;
205
- resourceInputs["path"] = state ? state.path : undefined;
206
- resourceInputs["projectId"] = state ? state.projectId : undefined;
207
- resourceInputs["pullRequestTrigger"] = state ? state.pullRequestTrigger : undefined;
208
- resourceInputs["queueStatus"] = state ? state.queueStatus : undefined;
209
- resourceInputs["repository"] = state ? state.repository : undefined;
210
- resourceInputs["revision"] = state ? state.revision : undefined;
211
- resourceInputs["schedules"] = state ? state.schedules : undefined;
212
- resourceInputs["variableGroups"] = state ? state.variableGroups : undefined;
213
- resourceInputs["variables"] = state ? state.variables : undefined;
214
- }
215
- else {
216
- const args = argsOrState;
217
- if ((!args || args.projectId === undefined) && !opts.urn) {
218
- throw new Error("Missing required property 'projectId'");
219
- }
220
- if ((!args || args.repository === undefined) && !opts.urn) {
221
- throw new Error("Missing required property 'repository'");
222
- }
223
- resourceInputs["agentPoolName"] = args ? args.agentPoolName : undefined;
224
- resourceInputs["ciTrigger"] = args ? args.ciTrigger : undefined;
225
- resourceInputs["features"] = args ? args.features : undefined;
226
- resourceInputs["name"] = args ? args.name : undefined;
227
- resourceInputs["path"] = args ? args.path : undefined;
228
- resourceInputs["projectId"] = args ? args.projectId : undefined;
229
- resourceInputs["pullRequestTrigger"] = args ? args.pullRequestTrigger : undefined;
230
- resourceInputs["queueStatus"] = args ? args.queueStatus : undefined;
231
- resourceInputs["repository"] = args ? args.repository : undefined;
232
- resourceInputs["schedules"] = args ? args.schedules : undefined;
233
- resourceInputs["variableGroups"] = args ? args.variableGroups : undefined;
234
- resourceInputs["variables"] = args ? args.variables : undefined;
235
- resourceInputs["revision"] = undefined /*out*/;
236
- }
237
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
238
- super(BuildDefinition.__pulumiType, name, resourceInputs, opts);
239
- }
240
- }
241
- exports.BuildDefinition = BuildDefinition;
242
- /** @internal */
243
- BuildDefinition.__pulumiType = 'azuredevops:Build/buildDefinition:BuildDefinition';
244
- //# sourceMappingURL=buildDefinition.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildDefinition.js","sourceRoot":"","sources":["../../build/buildDefinition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;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AAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AApIL,0CAqIC;AAtHG,gBAAgB;AACO,4BAAY,GAAG,mDAAmD,CAAC"}
package/build/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export { BuildDefinitionArgs, BuildDefinitionState } from "./buildDefinition";
2
- export type BuildDefinition = import("./buildDefinition").BuildDefinition;
3
- export declare const BuildDefinition: typeof import("./buildDefinition").BuildDefinition;
package/build/index.js DELETED
@@ -1,22 +0,0 @@
1
- "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.BuildDefinition = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("../utilities");
8
- exports.BuildDefinition = null;
9
- utilities.lazyLoad(exports, ["BuildDefinition"], () => require("./buildDefinition"));
10
- const _module = {
11
- version: utilities.getVersion(),
12
- construct: (name, type, urn) => {
13
- switch (type) {
14
- case "azuredevops:Build/buildDefinition:BuildDefinition":
15
- return new exports.BuildDefinition(name, undefined, { urn });
16
- default:
17
- throw new Error(`unknown resource type ${type}`);
18
- }
19
- },
20
- };
21
- pulumi.runtime.registerResourceModule("azuredevops", "Build/buildDefinition", _module);
22
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../build/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,eAAe,GAAuD,IAAW,CAAC;AAC/F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAGrF,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,mDAAmD;gBACpD,OAAO,IAAI,uBAAe,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC7D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,aAAa,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAA"}
@@ -1,45 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * Use this data source to access information about the Azure DevOps organization configured for the provider.
4
- *
5
- * ## Example Usage
6
- *
7
- * <!--Start PulumiCodeChooser -->
8
- * ```typescript
9
- * import * as pulumi from "@pulumi/pulumi";
10
- * import * as azuredevops from "@pulumi/azuredevops";
11
- *
12
- * const example = azuredevops.getClientConfig({});
13
- * export const orgUrl = example.then(example => example.organizationUrl);
14
- * ```
15
- * <!--End PulumiCodeChooser -->
16
- */
17
- /** @deprecated azuredevops.core.getClientConfig has been deprecated in favor of azuredevops.getClientConfig */
18
- export declare function getClientConfig(opts?: pulumi.InvokeOptions): Promise<GetClientConfigResult>;
19
- /**
20
- * A collection of values returned by getClientConfig.
21
- */
22
- export interface GetClientConfigResult {
23
- /**
24
- * The provider-assigned unique ID for this managed resource.
25
- */
26
- readonly id: string;
27
- readonly organizationUrl: string;
28
- }
29
- /**
30
- * Use this data source to access information about the Azure DevOps organization configured for the provider.
31
- *
32
- * ## Example Usage
33
- *
34
- * <!--Start PulumiCodeChooser -->
35
- * ```typescript
36
- * import * as pulumi from "@pulumi/pulumi";
37
- * import * as azuredevops from "@pulumi/azuredevops";
38
- *
39
- * const example = azuredevops.getClientConfig({});
40
- * export const orgUrl = example.then(example => example.organizationUrl);
41
- * ```
42
- * <!--End PulumiCodeChooser -->
43
- */
44
- /** @deprecated azuredevops.core.getClientConfig has been deprecated in favor of azuredevops.getClientConfig */
45
- export declare function getClientConfigOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetClientConfigResult>;