@pulumi/azuredevops 2.7.0-alpha.1675869890 → 2.7.0-alpha.1679928807

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 (130) hide show
  1. package/agent/getPool.d.ts +24 -0
  2. package/agent/getPool.js +25 -5
  3. package/agent/getPool.js.map +1 -1
  4. package/agent/getPools.d.ts +12 -0
  5. package/agent/getPools.js +13 -4
  6. package/agent/getPools.js.map +1 -1
  7. package/agent/pool.d.ts +13 -0
  8. package/agent/pool.js +3 -0
  9. package/agent/pool.js.map +1 -1
  10. package/build/buildDefinition.d.ts +2 -2
  11. package/build/buildDefinition.js +2 -2
  12. package/buildDefinition.d.ts +2 -2
  13. package/buildDefinition.js +2 -2
  14. package/checkBranchControl.d.ts +243 -0
  15. package/checkBranchControl.js +193 -0
  16. package/checkBranchControl.js.map +1 -0
  17. package/checkBusinessHours.d.ts +491 -0
  18. package/checkBusinessHours.js +380 -0
  19. package/checkBusinessHours.js.map +1 -0
  20. package/core/getClientConfig.d.ts +10 -0
  21. package/core/getClientConfig.js +11 -4
  22. package/core/getClientConfig.js.map +1 -1
  23. package/core/getProject.d.ts +19 -0
  24. package/core/getProject.js +21 -5
  25. package/core/getProject.js.map +1 -1
  26. package/core/getProjects.d.ts +23 -0
  27. package/core/getProjects.js +25 -5
  28. package/core/getProjects.js.map +1 -1
  29. package/entitlement/user.d.ts +1 -3
  30. package/entitlement/user.js +1 -3
  31. package/entitlement/user.js.map +1 -1
  32. package/getAgentQueue.d.ts +26 -0
  33. package/getAgentQueue.js +28 -5
  34. package/getAgentQueue.js.map +1 -1
  35. package/getArea.d.ts +29 -0
  36. package/getArea.js +31 -5
  37. package/getArea.js.map +1 -1
  38. package/getBuildDefinition.d.ts +19 -0
  39. package/getBuildDefinition.js +21 -5
  40. package/getBuildDefinition.js.map +1 -1
  41. package/getClientConfig.d.ts +10 -0
  42. package/getClientConfig.js +11 -4
  43. package/getClientConfig.js.map +1 -1
  44. package/getGitRepository.d.ts +22 -0
  45. package/getGitRepository.js +24 -5
  46. package/getGitRepository.js.map +1 -1
  47. package/getGroup.d.ts +28 -0
  48. package/getGroup.js +30 -5
  49. package/getGroup.js.map +1 -1
  50. package/getGroups.d.ts +21 -0
  51. package/getGroups.js +23 -5
  52. package/getGroups.js.map +1 -1
  53. package/getIteration.d.ts +34 -0
  54. package/getIteration.js +36 -5
  55. package/getIteration.js.map +1 -1
  56. package/getPool.d.ts +23 -0
  57. package/getPool.js +24 -5
  58. package/getPool.js.map +1 -1
  59. package/getPools.d.ts +12 -0
  60. package/getPools.js +13 -4
  61. package/getPools.js.map +1 -1
  62. package/getProject.d.ts +18 -0
  63. package/getProject.js +20 -5
  64. package/getProject.js.map +1 -1
  65. package/getProjects.d.ts +22 -0
  66. package/getProjects.js +24 -5
  67. package/getProjects.js.map +1 -1
  68. package/getRepositories.d.ts +26 -0
  69. package/getRepositories.js +28 -5
  70. package/getRepositories.js.map +1 -1
  71. package/getServiceEndpointAzureRM.d.ts +35 -0
  72. package/getServiceEndpointAzureRM.js +37 -5
  73. package/getServiceEndpointAzureRM.js.map +1 -1
  74. package/getServiceEndpointGithub.d.ts +35 -0
  75. package/getServiceEndpointGithub.js +37 -5
  76. package/getServiceEndpointGithub.js.map +1 -1
  77. package/getTeam.d.ts +28 -0
  78. package/getTeam.js +30 -5
  79. package/getTeam.js.map +1 -1
  80. package/getTeams.d.ts +23 -0
  81. package/getTeams.js +25 -5
  82. package/getTeams.js.map +1 -1
  83. package/getUsers.d.ts +40 -14
  84. package/getUsers.js +42 -19
  85. package/getUsers.js.map +1 -1
  86. package/getVariableGroup.d.ts +24 -0
  87. package/getVariableGroup.js +26 -5
  88. package/getVariableGroup.js.map +1 -1
  89. package/gitRepositoryBranch.d.ts +134 -0
  90. package/gitRepositoryBranch.js +92 -0
  91. package/gitRepositoryBranch.js.map +1 -0
  92. package/identities/getGroup.d.ts +29 -0
  93. package/identities/getGroup.js +31 -5
  94. package/identities/getGroup.js.map +1 -1
  95. package/identities/getUsers.d.ts +41 -14
  96. package/identities/getUsers.js +43 -19
  97. package/identities/getUsers.js.map +1 -1
  98. package/index.d.ts +15 -0
  99. package/index.js +28 -3
  100. package/index.js.map +1 -1
  101. package/package.json +2 -2
  102. package/package.json.dev +2 -2
  103. package/pipeline/variableGroup.d.ts +3 -3
  104. package/pool.d.ts +13 -0
  105. package/pool.js +3 -0
  106. package/pool.js.map +1 -1
  107. package/repository/getRepositories.d.ts +27 -0
  108. package/repository/getRepositories.js +29 -5
  109. package/repository/getRepositories.js.map +1 -1
  110. package/serviceEndpointAzureRM.d.ts +30 -18
  111. package/serviceEndpointAzureRM.js +2 -0
  112. package/serviceEndpointAzureRM.js.map +1 -1
  113. package/serviceEndpointNpm.d.ts +0 -8
  114. package/serviceEndpointNpm.js +1 -3
  115. package/serviceEndpointNpm.js.map +1 -1
  116. package/serviceendpoint/azureRM.d.ts +30 -18
  117. package/serviceendpoint/azureRM.js +2 -0
  118. package/serviceendpoint/azureRM.js.map +1 -1
  119. package/serviceendpointExternaltfs.d.ts +113 -0
  120. package/serviceendpointExternaltfs.js +86 -0
  121. package/serviceendpointExternaltfs.js.map +1 -0
  122. package/types/input.d.ts +324 -3
  123. package/types/output.d.ts +337 -5
  124. package/user.d.ts +1 -3
  125. package/user.js +1 -3
  126. package/user.js.map +1 -1
  127. package/variableGroup.d.ts +3 -3
  128. package/workitem.d.ts +166 -0
  129. package/workitem.js +120 -0
  130. package/workitem.js.map +1 -0
@@ -14,6 +14,7 @@ import * as pulumi from "@pulumi/pulumi";
14
14
  * export const name = example.then(example => example.name);
15
15
  * export const poolType = example.then(example => example.poolType);
16
16
  * export const autoProvision = example.then(example => example.autoProvision);
17
+ * export const autoUpdate = example.then(example => example.autoUpdate);
17
18
  * ```
18
19
  * ## Relevant Links
19
20
  *
@@ -35,6 +36,7 @@ export interface GetPoolArgs {
35
36
  */
36
37
  export interface GetPoolResult {
37
38
  readonly autoProvision: boolean;
39
+ readonly autoUpdate: boolean;
38
40
  /**
39
41
  * The provider-assigned unique ID for this managed resource.
40
42
  */
@@ -42,6 +44,28 @@ export interface GetPoolResult {
42
44
  readonly name: string;
43
45
  readonly poolType: string;
44
46
  }
47
+ /**
48
+ * Use this data source to access information about an existing Agent Pool within Azure DevOps.
49
+ *
50
+ * ## Example Usage
51
+ *
52
+ * ```typescript
53
+ * import * as pulumi from "@pulumi/pulumi";
54
+ * import * as azuredevops from "@pulumi/azuredevops";
55
+ *
56
+ * const example = azuredevops.getPool({
57
+ * name: "Example Agent Pool",
58
+ * });
59
+ * export const name = example.then(example => example.name);
60
+ * export const poolType = example.then(example => example.poolType);
61
+ * export const autoProvision = example.then(example => example.autoProvision);
62
+ * export const autoUpdate = example.then(example => example.autoUpdate);
63
+ * ```
64
+ * ## Relevant Links
65
+ *
66
+ * - [Azure DevOps Service REST API 6.0 - Agent Pools - Get](https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/pools/get?view=azure-devops-rest-6.0)
67
+ */
68
+ /** @deprecated azuredevops.agent.getPool has been deprecated in favor of azuredevops.getPool */
45
69
  export declare function getPoolOutput(args: GetPoolOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPoolResult>;
46
70
  /**
47
71
  * A collection of arguments for invoking getPool.
package/agent/getPool.js CHANGED
@@ -20,6 +20,7 @@ const utilities = require("../utilities");
20
20
  * export const name = example.then(example => example.name);
21
21
  * export const poolType = example.then(example => example.poolType);
22
22
  * export const autoProvision = example.then(example => example.autoProvision);
23
+ * export const autoUpdate = example.then(example => example.autoUpdate);
23
24
  * ```
24
25
  * ## Relevant Links
25
26
  *
@@ -28,17 +29,36 @@ const utilities = require("../utilities");
28
29
  /** @deprecated azuredevops.agent.getPool has been deprecated in favor of azuredevops.getPool */
29
30
  function getPool(args, opts) {
30
31
  pulumi.log.warn("getPool is deprecated: azuredevops.agent.getPool has been deprecated in favor of azuredevops.getPool");
31
- if (!opts) {
32
- opts = {};
33
- }
34
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
32
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
35
33
  return pulumi.runtime.invoke("azuredevops:Agent/getPool:getPool", {
36
34
  "name": args.name,
37
35
  }, opts);
38
36
  }
39
37
  exports.getPool = getPool;
38
+ /**
39
+ * Use this data source to access information about an existing Agent Pool within Azure DevOps.
40
+ *
41
+ * ## Example Usage
42
+ *
43
+ * ```typescript
44
+ * import * as pulumi from "@pulumi/pulumi";
45
+ * import * as azuredevops from "@pulumi/azuredevops";
46
+ *
47
+ * const example = azuredevops.getPool({
48
+ * name: "Example Agent Pool",
49
+ * });
50
+ * export const name = example.then(example => example.name);
51
+ * export const poolType = example.then(example => example.poolType);
52
+ * export const autoProvision = example.then(example => example.autoProvision);
53
+ * export const autoUpdate = example.then(example => example.autoUpdate);
54
+ * ```
55
+ * ## Relevant Links
56
+ *
57
+ * - [Azure DevOps Service REST API 6.0 - Agent Pools - Get](https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/pools/get?view=azure-devops-rest-6.0)
58
+ */
59
+ /** @deprecated azuredevops.agent.getPool has been deprecated in favor of azuredevops.getPool */
40
60
  function getPoolOutput(args, opts) {
41
- return pulumi.output(args).apply(a => getPool(a, opts));
61
+ return pulumi.output(args).apply((a) => getPool(a, opts));
42
62
  }
43
63
  exports.getPoolOutput = getPoolOutput;
44
64
  //# sourceMappingURL=getPool.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPool.js","sourceRoot":"","sources":["../../agent/getPool.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,gGAAgG;AAChG,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAClE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,sGAAsG,CAAC,CAAA;IACvH,IAAI,CAAC,IAAI,EAAE;QACP,IAAI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O,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
@@ -3,6 +3,18 @@ import * as outputs from "../types/output";
3
3
  /**
4
4
  * Use this data source to access information about existing Agent Pools within Azure DevOps.
5
5
  *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as azuredevops from "@pulumi/azuredevops";
11
+ *
12
+ * const example = azuredevops.getPools({});
13
+ * export const agentPoolName = [example.then(example => example.agentPools)].map(__item => __item?.name);
14
+ * export const autoProvision = [example.then(example => example.agentPools)].map(__item => __item?.autoProvision);
15
+ * export const autoUpdate = [example.then(example => example.agentPools)].map(__item => __item?.autoUpdate);
16
+ * export const poolType = [example.then(example => example.agentPools)].map(__item => __item?.poolType);
17
+ * ```
6
18
  * ## Relevant Links
7
19
  *
8
20
  * - [Azure DevOps Service REST API 6.0 - Agent Pools - Get](https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/pools/get?view=azure-devops-rest-6.0)
package/agent/getPools.js CHANGED
@@ -8,6 +8,18 @@ const utilities = require("../utilities");
8
8
  /**
9
9
  * Use this data source to access information about existing Agent Pools within Azure DevOps.
10
10
  *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as azuredevops from "@pulumi/azuredevops";
16
+ *
17
+ * const example = azuredevops.getPools({});
18
+ * export const agentPoolName = [example.then(example => example.agentPools)].map(__item => __item?.name);
19
+ * export const autoProvision = [example.then(example => example.agentPools)].map(__item => __item?.autoProvision);
20
+ * export const autoUpdate = [example.then(example => example.agentPools)].map(__item => __item?.autoUpdate);
21
+ * export const poolType = [example.then(example => example.agentPools)].map(__item => __item?.poolType);
22
+ * ```
11
23
  * ## Relevant Links
12
24
  *
13
25
  * - [Azure DevOps Service REST API 6.0 - Agent Pools - Get](https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/pools/get?view=azure-devops-rest-6.0)
@@ -15,10 +27,7 @@ const utilities = require("../utilities");
15
27
  /** @deprecated azuredevops.agent.getPools has been deprecated in favor of azuredevops.getPools */
16
28
  function getPools(opts) {
17
29
  pulumi.log.warn("getPools is deprecated: azuredevops.agent.getPools has been deprecated in favor of azuredevops.getPools");
18
- if (!opts) {
19
- opts = {};
20
- }
21
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
30
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
22
31
  return pulumi.runtime.invoke("azuredevops:Agent/getPools:getPools", {}, opts);
23
32
  }
24
33
  exports.getPools = getPools;
@@ -1 +1 @@
1
- {"version":3,"file":"getPools.js","sourceRoot":"","sources":["../../agent/getPools.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;GAMG;AACH,kGAAkG;AAClG,SAAgB,QAAQ,CAAC,IAA2B;IAChD,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,yGAAyG,CAAC,CAAA;IAC1H,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE,EACnE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,4BASC"}
1
+ {"version":3,"file":"getPools.js","sourceRoot":"","sources":["../../agent/getPools.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,kGAAkG;AAClG,SAAgB,QAAQ,CAAC,IAA2B;IAChD,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,yGAAyG,CAAC,CAAA;IAE1H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE,EACnE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4BAMC"}
package/agent/pool.d.ts CHANGED
@@ -10,6 +10,7 @@ import * as pulumi from "@pulumi/pulumi";
10
10
  *
11
11
  * const example = new azuredevops.Pool("example", {
12
12
  * autoProvision: false,
13
+ * autoUpdate: false,
13
14
  * });
14
15
  * ```
15
16
  * ## Relevant Links
@@ -46,6 +47,10 @@ export declare class Pool extends pulumi.CustomResource {
46
47
  * Specifies whether a queue should be automatically provisioned for each project collection. Defaults to `false`.
47
48
  */
48
49
  readonly autoProvision: pulumi.Output<boolean | undefined>;
50
+ /**
51
+ * Specifies whether or not agents within the pool should be automatically updated. Defaults to `true`.
52
+ */
53
+ readonly autoUpdate: pulumi.Output<boolean | undefined>;
49
54
  /**
50
55
  * The name of the agent pool.
51
56
  */
@@ -72,6 +77,10 @@ export interface PoolState {
72
77
  * Specifies whether a queue should be automatically provisioned for each project collection. Defaults to `false`.
73
78
  */
74
79
  autoProvision?: pulumi.Input<boolean>;
80
+ /**
81
+ * Specifies whether or not agents within the pool should be automatically updated. Defaults to `true`.
82
+ */
83
+ autoUpdate?: pulumi.Input<boolean>;
75
84
  /**
76
85
  * The name of the agent pool.
77
86
  */
@@ -89,6 +98,10 @@ export interface PoolArgs {
89
98
  * Specifies whether a queue should be automatically provisioned for each project collection. Defaults to `false`.
90
99
  */
91
100
  autoProvision?: pulumi.Input<boolean>;
101
+ /**
102
+ * Specifies whether or not agents within the pool should be automatically updated. Defaults to `true`.
103
+ */
104
+ autoUpdate?: pulumi.Input<boolean>;
92
105
  /**
93
106
  * The name of the agent pool.
94
107
  */
package/agent/pool.js CHANGED
@@ -16,6 +16,7 @@ const utilities = require("../utilities");
16
16
  *
17
17
  * const example = new azuredevops.Pool("example", {
18
18
  * autoProvision: false,
19
+ * autoUpdate: false,
19
20
  * });
20
21
  * ```
21
22
  * ## Relevant Links
@@ -64,12 +65,14 @@ class Pool extends pulumi.CustomResource {
64
65
  if (opts.id) {
65
66
  const state = argsOrState;
66
67
  resourceInputs["autoProvision"] = state ? state.autoProvision : undefined;
68
+ resourceInputs["autoUpdate"] = state ? state.autoUpdate : undefined;
67
69
  resourceInputs["name"] = state ? state.name : undefined;
68
70
  resourceInputs["poolType"] = state ? state.poolType : undefined;
69
71
  }
70
72
  else {
71
73
  const args = argsOrState;
72
74
  resourceInputs["autoProvision"] = args ? args.autoProvision : undefined;
75
+ resourceInputs["autoUpdate"] = args ? args.autoUpdate : undefined;
73
76
  resourceInputs["name"] = args ? args.name : undefined;
74
77
  resourceInputs["poolType"] = args ? args.poolType : undefined;
75
78
  }
package/agent/pool.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"pool.js","sourceRoot":"","sources":["../../agent/pool.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,6FAA6F,CAAC,CAAA;QAC9G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,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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C,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;aAAM;YACH,MAAM,IAAI,GAAG,WAAmC,CAAC;YACjD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AA3EL,oBA4EC;AA7DG,gBAAgB;AACO,iBAAY,GAAG,6BAA6B,CAAC"}
@@ -34,7 +34,7 @@ import * as outputs from "../types/output";
34
34
  * projectId: exampleProject.id,
35
35
  * path: "\\ExampleFolder",
36
36
  * ciTrigger: {
37
- * useYaml: true,
37
+ * useYaml: false,
38
38
  * },
39
39
  * schedules: [{
40
40
  * branchFilters: [{
@@ -96,7 +96,7 @@ import * as outputs from "../types/output";
96
96
  * projectId: exampleProject.id,
97
97
  * path: "\\ExampleFolder",
98
98
  * ciTrigger: {
99
- * useYaml: true,
99
+ * useYaml: false,
100
100
  * },
101
101
  * repository: {
102
102
  * repoType: "GitHubEnterprise",
@@ -38,7 +38,7 @@ const utilities = require("../utilities");
38
38
  * projectId: exampleProject.id,
39
39
  * path: "\\ExampleFolder",
40
40
  * ciTrigger: {
41
- * useYaml: true,
41
+ * useYaml: false,
42
42
  * },
43
43
  * schedules: [{
44
44
  * branchFilters: [{
@@ -100,7 +100,7 @@ const utilities = require("../utilities");
100
100
  * projectId: exampleProject.id,
101
101
  * path: "\\ExampleFolder",
102
102
  * ciTrigger: {
103
- * useYaml: true,
103
+ * useYaml: false,
104
104
  * },
105
105
  * repository: {
106
106
  * repoType: "GitHubEnterprise",
@@ -34,7 +34,7 @@ import * as outputs from "./types/output";
34
34
  * projectId: exampleProject.id,
35
35
  * path: "\\ExampleFolder",
36
36
  * ciTrigger: {
37
- * useYaml: true,
37
+ * useYaml: false,
38
38
  * },
39
39
  * schedules: [{
40
40
  * branchFilters: [{
@@ -96,7 +96,7 @@ import * as outputs from "./types/output";
96
96
  * projectId: exampleProject.id,
97
97
  * path: "\\ExampleFolder",
98
98
  * ciTrigger: {
99
- * useYaml: true,
99
+ * useYaml: false,
100
100
  * },
101
101
  * repository: {
102
102
  * repoType: "GitHubEnterprise",
@@ -38,7 +38,7 @@ const utilities = require("./utilities");
38
38
  * projectId: exampleProject.id,
39
39
  * path: "\\ExampleFolder",
40
40
  * ciTrigger: {
41
- * useYaml: true,
41
+ * useYaml: false,
42
42
  * },
43
43
  * schedules: [{
44
44
  * branchFilters: [{
@@ -100,7 +100,7 @@ const utilities = require("./utilities");
100
100
  * projectId: exampleProject.id,
101
101
  * path: "\\ExampleFolder",
102
102
  * ciTrigger: {
103
- * useYaml: true,
103
+ * useYaml: false,
104
104
  * },
105
105
  * repository: {
106
106
  * repoType: "GitHubEnterprise",
@@ -0,0 +1,243 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages a branch control check on a resource within Azure DevOps.
4
+ *
5
+ * ## Example Usage
6
+ * ### Protect a service connection
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as azuredevops from "@pulumi/azuredevops";
11
+ *
12
+ * const exampleProject = new azuredevops.Project("exampleProject", {});
13
+ * const exampleServiceEndpointGeneric = new azuredevops.ServiceEndpointGeneric("exampleServiceEndpointGeneric", {
14
+ * projectId: exampleProject.id,
15
+ * serverUrl: "https://some-server.example.com",
16
+ * username: "username",
17
+ * password: "password",
18
+ * serviceEndpointName: "Example Generic",
19
+ * description: "Managed by Terraform",
20
+ * });
21
+ * const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
22
+ * projectId: exampleProject.id,
23
+ * displayName: "Managed by Terraform",
24
+ * targetResourceId: exampleServiceEndpointGeneric.id,
25
+ * targetResourceType: "endpoint",
26
+ * allowedBranches: "refs/heads/main, refs/heads/features/*",
27
+ * });
28
+ * ```
29
+ * ### Protect an environment
30
+ *
31
+ * ```typescript
32
+ * import * as pulumi from "@pulumi/pulumi";
33
+ * import * as azuredevops from "@pulumi/azuredevops";
34
+ *
35
+ * const exampleProject = new azuredevops.Project("exampleProject", {});
36
+ * const exampleEnvironment = new azuredevops.Environment("exampleEnvironment", {projectId: exampleProject.id});
37
+ * const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
38
+ * projectId: exampleProject.id,
39
+ * displayName: "Managed by Terraform",
40
+ * targetResourceId: exampleEnvironment.id,
41
+ * targetResourceType: "environment",
42
+ * allowedBranches: "refs/heads/main, refs/heads/features/*",
43
+ * });
44
+ * ```
45
+ * ### Protect an agent queue
46
+ *
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as azuredevops from "@pulumi/azuredevops";
50
+ *
51
+ * const exampleProject = new azuredevops.Project("exampleProject", {});
52
+ * const examplePool = new azuredevops.Pool("examplePool", {});
53
+ * const exampleQueue = new azuredevops.Queue("exampleQueue", {
54
+ * projectId: exampleProject.id,
55
+ * agentPoolId: examplePool.id,
56
+ * });
57
+ * const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
58
+ * projectId: exampleProject.id,
59
+ * displayName: "Managed by Terraform",
60
+ * targetResourceId: exampleQueue.id,
61
+ * targetResourceType: "queue",
62
+ * allowedBranches: "refs/heads/main, refs/heads/features/*",
63
+ * });
64
+ * ```
65
+ * ### Protect a repository
66
+ *
67
+ * ```typescript
68
+ * import * as pulumi from "@pulumi/pulumi";
69
+ * import * as azuredevops from "@pulumi/azuredevops";
70
+ *
71
+ * const exampleProject = new azuredevops.Project("exampleProject", {});
72
+ * const exampleGit = new azuredevops.Git("exampleGit", {
73
+ * projectId: exampleProject.id,
74
+ * initialization: {
75
+ * initType: "Clean",
76
+ * },
77
+ * });
78
+ * const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
79
+ * projectId: exampleProject.id,
80
+ * displayName: "Managed by Terraform",
81
+ * targetResourceId: pulumi.interpolate`${exampleProject.id}.${exampleGit.id}`,
82
+ * targetResourceType: "repository",
83
+ * allowedBranches: "refs/heads/main, refs/heads/features/*",
84
+ * });
85
+ * ```
86
+ * ### Protect a variable group
87
+ *
88
+ * ```typescript
89
+ * import * as pulumi from "@pulumi/pulumi";
90
+ * import * as azuredevops from "@pulumi/azuredevops";
91
+ *
92
+ * const exampleProject = new azuredevops.Project("exampleProject", {});
93
+ * const exampleVariableGroup = new azuredevops.VariableGroup("exampleVariableGroup", {
94
+ * projectId: exampleProject.id,
95
+ * description: "Example Variable Group Description",
96
+ * allowAccess: true,
97
+ * variables: [
98
+ * {
99
+ * name: "key1",
100
+ * value: "val1",
101
+ * },
102
+ * {
103
+ * name: "key2",
104
+ * secretValue: "val2",
105
+ * isSecret: true,
106
+ * },
107
+ * ],
108
+ * });
109
+ * const exampleCheckBranchControl = new azuredevops.CheckBranchControl("exampleCheckBranchControl", {
110
+ * projectId: exampleProject.id,
111
+ * displayName: "Managed by Terraform",
112
+ * targetResourceId: exampleVariableGroup.id,
113
+ * targetResourceType: "variablegroup",
114
+ * allowedBranches: "refs/heads/main, refs/heads/features/*",
115
+ * });
116
+ * ```
117
+ * ## Relevant Links
118
+ *
119
+ * - [Define approvals and checks](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass)
120
+ *
121
+ * ## Import
122
+ *
123
+ * Importing this resource is not supported.
124
+ */
125
+ export declare class CheckBranchControl extends pulumi.CustomResource {
126
+ /**
127
+ * Get an existing CheckBranchControl resource's state with the given name, ID, and optional extra
128
+ * properties used to qualify the lookup.
129
+ *
130
+ * @param name The _unique_ name of the resulting resource.
131
+ * @param id The _unique_ provider ID of the resource to lookup.
132
+ * @param state Any extra arguments used during the lookup.
133
+ * @param opts Optional settings to control the behavior of the CustomResource.
134
+ */
135
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CheckBranchControlState, opts?: pulumi.CustomResourceOptions): CheckBranchControl;
136
+ /**
137
+ * Returns true if the given object is an instance of CheckBranchControl. This is designed to work even
138
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
139
+ */
140
+ static isInstance(obj: any): obj is CheckBranchControl;
141
+ /**
142
+ * The branches allowed to use the resource. Specify a comma separated list of allowed branches in `refs/heads/branch_name` format. To allow deployments from all branches, specify ` * ` . `refs/heads/features/* , refs/heads/releases/*` restricts deployments to all branches under features/ or releases/ . Defaults to `*`.
143
+ */
144
+ readonly allowedBranches: pulumi.Output<string | undefined>;
145
+ /**
146
+ * The name of the branch control check displayed in the web UI.
147
+ */
148
+ readonly displayName: pulumi.Output<string | undefined>;
149
+ /**
150
+ * Allow deployment from branches for which protection status could not be obtained. Only relevant when verifyBranchProtection is `true`. Defaults to `false`.
151
+ */
152
+ readonly ignoreUnknownProtectionStatus: pulumi.Output<boolean | undefined>;
153
+ /**
154
+ * The project ID.
155
+ */
156
+ readonly projectId: pulumi.Output<string>;
157
+ /**
158
+ * The ID of the resource being protected by the check.
159
+ */
160
+ readonly targetResourceId: pulumi.Output<string>;
161
+ /**
162
+ * The type of resource being protected by the check. Valid values: `endpoint`, `environment`, `queue`, `repository`, `securefile`, `variablegroup`.
163
+ */
164
+ readonly targetResourceType: pulumi.Output<string>;
165
+ /**
166
+ * Validate the branches being deployed are protected. Defaults to `false`.
167
+ */
168
+ readonly verifyBranchProtection: pulumi.Output<boolean | undefined>;
169
+ /**
170
+ * Create a CheckBranchControl resource with the given unique name, arguments, and options.
171
+ *
172
+ * @param name The _unique_ name of the resource.
173
+ * @param args The arguments to use to populate this resource's properties.
174
+ * @param opts A bag of options that control this resource's behavior.
175
+ */
176
+ constructor(name: string, args: CheckBranchControlArgs, opts?: pulumi.CustomResourceOptions);
177
+ }
178
+ /**
179
+ * Input properties used for looking up and filtering CheckBranchControl resources.
180
+ */
181
+ export interface CheckBranchControlState {
182
+ /**
183
+ * The branches allowed to use the resource. Specify a comma separated list of allowed branches in `refs/heads/branch_name` format. To allow deployments from all branches, specify ` * ` . `refs/heads/features/* , refs/heads/releases/*` restricts deployments to all branches under features/ or releases/ . Defaults to `*`.
184
+ */
185
+ allowedBranches?: pulumi.Input<string>;
186
+ /**
187
+ * The name of the branch control check displayed in the web UI.
188
+ */
189
+ displayName?: pulumi.Input<string>;
190
+ /**
191
+ * Allow deployment from branches for which protection status could not be obtained. Only relevant when verifyBranchProtection is `true`. Defaults to `false`.
192
+ */
193
+ ignoreUnknownProtectionStatus?: pulumi.Input<boolean>;
194
+ /**
195
+ * The project ID.
196
+ */
197
+ projectId?: pulumi.Input<string>;
198
+ /**
199
+ * The ID of the resource being protected by the check.
200
+ */
201
+ targetResourceId?: pulumi.Input<string>;
202
+ /**
203
+ * The type of resource being protected by the check. Valid values: `endpoint`, `environment`, `queue`, `repository`, `securefile`, `variablegroup`.
204
+ */
205
+ targetResourceType?: pulumi.Input<string>;
206
+ /**
207
+ * Validate the branches being deployed are protected. Defaults to `false`.
208
+ */
209
+ verifyBranchProtection?: pulumi.Input<boolean>;
210
+ }
211
+ /**
212
+ * The set of arguments for constructing a CheckBranchControl resource.
213
+ */
214
+ export interface CheckBranchControlArgs {
215
+ /**
216
+ * The branches allowed to use the resource. Specify a comma separated list of allowed branches in `refs/heads/branch_name` format. To allow deployments from all branches, specify ` * ` . `refs/heads/features/* , refs/heads/releases/*` restricts deployments to all branches under features/ or releases/ . Defaults to `*`.
217
+ */
218
+ allowedBranches?: pulumi.Input<string>;
219
+ /**
220
+ * The name of the branch control check displayed in the web UI.
221
+ */
222
+ displayName?: pulumi.Input<string>;
223
+ /**
224
+ * Allow deployment from branches for which protection status could not be obtained. Only relevant when verifyBranchProtection is `true`. Defaults to `false`.
225
+ */
226
+ ignoreUnknownProtectionStatus?: pulumi.Input<boolean>;
227
+ /**
228
+ * The project ID.
229
+ */
230
+ projectId: pulumi.Input<string>;
231
+ /**
232
+ * The ID of the resource being protected by the check.
233
+ */
234
+ targetResourceId: pulumi.Input<string>;
235
+ /**
236
+ * The type of resource being protected by the check. Valid values: `endpoint`, `environment`, `queue`, `repository`, `securefile`, `variablegroup`.
237
+ */
238
+ targetResourceType: pulumi.Input<string>;
239
+ /**
240
+ * Validate the branches being deployed are protected. Defaults to `false`.
241
+ */
242
+ verifyBranchProtection?: pulumi.Input<boolean>;
243
+ }