@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 +0,0 @@
1
- {"version":3,"file":"getPools.js","sourceRoot":"","sources":["../../agent/getPools.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;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;AAeD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,kGAAkG;AAClG,SAAgB,cAAc,CAAC,IAA2B;IACtD,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA;AACxC,CAAC;AAFD,wCAEC"}
package/agent/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- export { GetPoolArgs, GetPoolResult, GetPoolOutputArgs } from "./getPool";
2
- export declare const getPool: typeof import("./getPool").getPool;
3
- export declare const getPoolOutput: typeof import("./getPool").getPoolOutput;
4
- export { GetPoolsResult } from "./getPools";
5
- export declare const getPools: typeof import("./getPools").getPools;
6
- export declare const getPoolsOutput: typeof import("./getPools").getPoolsOutput;
7
- export { PoolArgs, PoolState } from "./pool";
8
- export type Pool = import("./pool").Pool;
9
- export declare const Pool: typeof import("./pool").Pool;
10
- export { QueueArgs, QueueState } from "./queue";
11
- export type Queue = import("./queue").Queue;
12
- export declare const Queue: typeof import("./queue").Queue;
package/agent/index.js DELETED
@@ -1,33 +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.Queue = exports.Pool = exports.getPoolsOutput = exports.getPools = exports.getPoolOutput = exports.getPool = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("../utilities");
8
- exports.getPool = null;
9
- exports.getPoolOutput = null;
10
- utilities.lazyLoad(exports, ["getPool", "getPoolOutput"], () => require("./getPool"));
11
- exports.getPools = null;
12
- exports.getPoolsOutput = null;
13
- utilities.lazyLoad(exports, ["getPools", "getPoolsOutput"], () => require("./getPools"));
14
- exports.Pool = null;
15
- utilities.lazyLoad(exports, ["Pool"], () => require("./pool"));
16
- exports.Queue = null;
17
- utilities.lazyLoad(exports, ["Queue"], () => require("./queue"));
18
- const _module = {
19
- version: utilities.getVersion(),
20
- construct: (name, type, urn) => {
21
- switch (type) {
22
- case "azuredevops:Agent/pool:Pool":
23
- return new exports.Pool(name, undefined, { urn });
24
- case "azuredevops:Agent/queue:Queue":
25
- return new exports.Queue(name, undefined, { urn });
26
- default:
27
- throw new Error(`unknown resource type ${type}`);
28
- }
29
- },
30
- };
31
- pulumi.runtime.registerResourceModule("azuredevops", "Agent/pool", _module);
32
- pulumi.runtime.registerResourceModule("azuredevops", "Agent/queue", _module);
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../agent/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,OAAO,GAAuC,IAAW,CAAC;AAC1D,QAAA,aAAa,GAA6C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,EAAC,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAGxE,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC7D,QAAA,cAAc,GAA+C,IAAW,CAAC;AAC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
- * <!--Start PulumiCodeChooser -->
8
- * ```typescript
9
- * import * as pulumi from "@pulumi/pulumi";
10
- * import * as azuredevops from "@pulumi/azuredevops";
11
- *
12
- * const example = new azuredevops.Pool("example", {
13
- * autoProvision: false,
14
- * autoUpdate: false,
15
- * });
16
- * ```
17
- * <!--End PulumiCodeChooser -->
18
- *
19
- * ## Relevant Links
20
- *
21
- * - [Azure DevOps Service REST API 7.0 - Agent Pools](https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/pools?view=azure-devops-rest-7.0)
22
- *
23
- * ## Import
24
- *
25
- * Azure DevOps Agent Pools can be imported using the agent pool ID, e.g.
26
- *
27
- * ```sh
28
- * $ pulumi import azuredevops:Agent/pool:Pool example 0
29
- * ```
30
- *
31
- * @deprecated azuredevops.agent.Pool has been deprecated in favor of azuredevops.Pool
32
- */
33
- export declare class Pool extends pulumi.CustomResource {
34
- /**
35
- * Get an existing Pool resource's state with the given name, ID, and optional extra
36
- * properties used to qualify the lookup.
37
- *
38
- * @param name The _unique_ name of the resulting resource.
39
- * @param id The _unique_ provider ID of the resource to lookup.
40
- * @param state Any extra arguments used during the lookup.
41
- * @param opts Optional settings to control the behavior of the CustomResource.
42
- */
43
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PoolState, opts?: pulumi.CustomResourceOptions): Pool;
44
- /**
45
- * Returns true if the given object is an instance of Pool. This is designed to work even
46
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
47
- */
48
- static isInstance(obj: any): obj is Pool;
49
- /**
50
- * Specifies whether a queue should be automatically provisioned for each project collection. Defaults to `false`.
51
- */
52
- readonly autoProvision: pulumi.Output<boolean | undefined>;
53
- /**
54
- * Specifies whether or not agents within the pool should be automatically updated. Defaults to `true`.
55
- */
56
- readonly autoUpdate: pulumi.Output<boolean | undefined>;
57
- /**
58
- * The name of the agent pool.
59
- */
60
- readonly name: pulumi.Output<string>;
61
- /**
62
- * Specifies whether the agent pool type is Automation or Deployment. Defaults to `automation`.
63
- */
64
- readonly poolType: pulumi.Output<string | undefined>;
65
- /**
66
- * Create a Pool resource with the given unique name, arguments, and options.
67
- *
68
- * @param name The _unique_ name of the resource.
69
- * @param args The arguments to use to populate this resource's properties.
70
- * @param opts A bag of options that control this resource's behavior.
71
- */
72
- /** @deprecated azuredevops.agent.Pool has been deprecated in favor of azuredevops.Pool */
73
- constructor(name: string, args?: PoolArgs, opts?: pulumi.CustomResourceOptions);
74
- }
75
- /**
76
- * Input properties used for looking up and filtering Pool resources.
77
- */
78
- export interface PoolState {
79
- /**
80
- * Specifies whether a queue should be automatically provisioned for each project collection. Defaults to `false`.
81
- */
82
- autoProvision?: pulumi.Input<boolean>;
83
- /**
84
- * Specifies whether or not agents within the pool should be automatically updated. Defaults to `true`.
85
- */
86
- autoUpdate?: pulumi.Input<boolean>;
87
- /**
88
- * The name of the agent pool.
89
- */
90
- name?: pulumi.Input<string>;
91
- /**
92
- * Specifies whether the agent pool type is Automation or Deployment. Defaults to `automation`.
93
- */
94
- poolType?: pulumi.Input<string>;
95
- }
96
- /**
97
- * The set of arguments for constructing a Pool resource.
98
- */
99
- export interface PoolArgs {
100
- /**
101
- * Specifies whether a queue should be automatically provisioned for each project collection. Defaults to `false`.
102
- */
103
- autoProvision?: pulumi.Input<boolean>;
104
- /**
105
- * Specifies whether or not agents within the pool should be automatically updated. Defaults to `true`.
106
- */
107
- autoUpdate?: pulumi.Input<boolean>;
108
- /**
109
- * The name of the agent pool.
110
- */
111
- name?: pulumi.Input<string>;
112
- /**
113
- * Specifies whether the agent pool type is Automation or Deployment. Defaults to `automation`.
114
- */
115
- poolType?: pulumi.Input<string>;
116
- }
package/agent/pool.js DELETED
@@ -1,89 +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.Pool = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("../utilities");
8
- /**
9
- * Manages an agent pool within Azure DevOps.
10
- *
11
- * ## Example Usage
12
- *
13
- * <!--Start PulumiCodeChooser -->
14
- * ```typescript
15
- * import * as pulumi from "@pulumi/pulumi";
16
- * import * as azuredevops from "@pulumi/azuredevops";
17
- *
18
- * const example = new azuredevops.Pool("example", {
19
- * autoProvision: false,
20
- * autoUpdate: false,
21
- * });
22
- * ```
23
- * <!--End PulumiCodeChooser -->
24
- *
25
- * ## Relevant Links
26
- *
27
- * - [Azure DevOps Service REST API 7.0 - Agent Pools](https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/pools?view=azure-devops-rest-7.0)
28
- *
29
- * ## Import
30
- *
31
- * Azure DevOps Agent Pools can be imported using the agent pool ID, e.g.
32
- *
33
- * ```sh
34
- * $ pulumi import azuredevops:Agent/pool:Pool example 0
35
- * ```
36
- *
37
- * @deprecated azuredevops.agent.Pool has been deprecated in favor of azuredevops.Pool
38
- */
39
- class Pool extends pulumi.CustomResource {
40
- /**
41
- * Get an existing Pool resource's state with the given name, ID, and optional extra
42
- * properties used to qualify the lookup.
43
- *
44
- * @param name The _unique_ name of the resulting resource.
45
- * @param id The _unique_ provider ID of the resource to lookup.
46
- * @param state Any extra arguments used during the lookup.
47
- * @param opts Optional settings to control the behavior of the CustomResource.
48
- */
49
- static get(name, id, state, opts) {
50
- pulumi.log.warn("Pool is deprecated: azuredevops.agent.Pool has been deprecated in favor of azuredevops.Pool");
51
- return new Pool(name, state, Object.assign(Object.assign({}, opts), { id: id }));
52
- }
53
- /**
54
- * Returns true if the given object is an instance of Pool. This is designed to work even
55
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
56
- */
57
- static isInstance(obj) {
58
- if (obj === undefined || obj === null) {
59
- return false;
60
- }
61
- return obj['__pulumiType'] === Pool.__pulumiType;
62
- }
63
- /** @deprecated azuredevops.agent.Pool has been deprecated in favor of azuredevops.Pool */
64
- constructor(name, argsOrState, opts) {
65
- pulumi.log.warn("Pool is deprecated: azuredevops.agent.Pool has been deprecated in favor of azuredevops.Pool");
66
- let resourceInputs = {};
67
- opts = opts || {};
68
- if (opts.id) {
69
- const state = argsOrState;
70
- resourceInputs["autoProvision"] = state ? state.autoProvision : undefined;
71
- resourceInputs["autoUpdate"] = state ? state.autoUpdate : undefined;
72
- resourceInputs["name"] = state ? state.name : undefined;
73
- resourceInputs["poolType"] = state ? state.poolType : undefined;
74
- }
75
- else {
76
- const args = argsOrState;
77
- resourceInputs["autoProvision"] = args ? args.autoProvision : undefined;
78
- resourceInputs["autoUpdate"] = args ? args.autoUpdate : undefined;
79
- resourceInputs["name"] = args ? args.name : undefined;
80
- resourceInputs["poolType"] = args ? args.poolType : undefined;
81
- }
82
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
83
- super(Pool.__pulumiType, name, resourceInputs, opts);
84
- }
85
- }
86
- exports.Pool = Pool;
87
- /** @internal */
88
- Pool.__pulumiType = 'azuredevops:Agent/pool:Pool';
89
- //# sourceMappingURL=pool.js.map
package/agent/pool.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"pool.js","sourceRoot":"","sources":["../../agent/pool.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;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,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AC;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"}
package/agent/queue.d.ts DELETED
@@ -1,147 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * Manages an agent queue within Azure DevOps. In the UI, this is equivalent to adding an
4
- * Organization defined pool to a project.
5
- *
6
- * The created queue is not authorized for use by all pipelines in the project. However,
7
- * the `azuredevops.ResourceAuthorization` resource can be used to grant authorization.
8
- *
9
- * ## Example Usage
10
- *
11
- * ### Creating a Queue from an organization-level pool
12
- *
13
- * <!--Start PulumiCodeChooser -->
14
- * ```typescript
15
- * import * as pulumi from "@pulumi/pulumi";
16
- * import * as azuredevops from "@pulumi/azuredevops";
17
- *
18
- * const exampleProject = new azuredevops.Project("exampleProject", {});
19
- * const examplePool = azuredevops.getPool({
20
- * name: "example-pool",
21
- * });
22
- * const exampleQueue = new azuredevops.Queue("exampleQueue", {
23
- * projectId: exampleProject.id,
24
- * agentPoolId: examplePool.then(examplePool => examplePool.id),
25
- * });
26
- * // Grant access to queue to all pipelines in the project
27
- * const exampleResourceAuthorization = new azuredevops.ResourceAuthorization("exampleResourceAuthorization", {
28
- * projectId: exampleProject.id,
29
- * resourceId: exampleQueue.id,
30
- * type: "queue",
31
- * authorized: true,
32
- * });
33
- * ```
34
- * <!--End PulumiCodeChooser -->
35
- *
36
- * ### Creating a Queue at the project level (Organization-level permissions not required)
37
- *
38
- * <!--Start PulumiCodeChooser -->
39
- * ```typescript
40
- * import * as pulumi from "@pulumi/pulumi";
41
- * import * as azuredevops from "@pulumi/azuredevops";
42
- *
43
- * const exampleProject = azuredevops.getProject({
44
- * name: "Example Project",
45
- * });
46
- * const exampleQueue = new azuredevops.Queue("exampleQueue", {projectId: exampleProject.then(exampleProject => exampleProject.id)});
47
- * ```
48
- * <!--End PulumiCodeChooser -->
49
- *
50
- * ## Relevant Links
51
- *
52
- * - [Azure DevOps Service REST API 7.0 - Agent Queues](https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/queues?view=azure-devops-rest-7.0)
53
- *
54
- * ## Import
55
- *
56
- * Azure DevOps Agent Pools can be imported using the project ID and agent queue ID, e.g.
57
- *
58
- * ```sh
59
- * $ pulumi import azuredevops:Agent/queue:Queue example 00000000-0000-0000-0000-000000000000/0
60
- * ```
61
- *
62
- * @deprecated azuredevops.agent.Queue has been deprecated in favor of azuredevops.Queue
63
- */
64
- export declare class Queue extends pulumi.CustomResource {
65
- /**
66
- * Get an existing Queue resource's state with the given name, ID, and optional extra
67
- * properties used to qualify the lookup.
68
- *
69
- * @param name The _unique_ name of the resulting resource.
70
- * @param id The _unique_ provider ID of the resource to lookup.
71
- * @param state Any extra arguments used during the lookup.
72
- * @param opts Optional settings to control the behavior of the CustomResource.
73
- */
74
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: QueueState, opts?: pulumi.CustomResourceOptions): Queue;
75
- /**
76
- * Returns true if the given object is an instance of Queue. This is designed to work even
77
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
78
- */
79
- static isInstance(obj: any): obj is Queue;
80
- /**
81
- * The ID of the organization agent pool. Conflicts with `name`.
82
- *
83
- * > **NOTE:**
84
- * One of `name` or `agentPoolId` must be specified, but not both.
85
- * When `agentPoolId` is specified, the agent queue name will be derived from the agent pool name.
86
- */
87
- readonly agentPoolId: pulumi.Output<number>;
88
- /**
89
- * The name of the agent queue. Defaults to the ID of the agent pool. Conflicts with `agentPoolId`.
90
- */
91
- readonly name: pulumi.Output<string>;
92
- /**
93
- * The ID of the project in which to create the resource.
94
- */
95
- readonly projectId: pulumi.Output<string>;
96
- /**
97
- * Create a Queue resource with the given unique name, arguments, and options.
98
- *
99
- * @param name The _unique_ name of the resource.
100
- * @param args The arguments to use to populate this resource's properties.
101
- * @param opts A bag of options that control this resource's behavior.
102
- */
103
- /** @deprecated azuredevops.agent.Queue has been deprecated in favor of azuredevops.Queue */
104
- constructor(name: string, args: QueueArgs, opts?: pulumi.CustomResourceOptions);
105
- }
106
- /**
107
- * Input properties used for looking up and filtering Queue resources.
108
- */
109
- export interface QueueState {
110
- /**
111
- * The ID of the organization agent pool. Conflicts with `name`.
112
- *
113
- * > **NOTE:**
114
- * One of `name` or `agentPoolId` must be specified, but not both.
115
- * When `agentPoolId` is specified, the agent queue name will be derived from the agent pool name.
116
- */
117
- agentPoolId?: pulumi.Input<number>;
118
- /**
119
- * The name of the agent queue. Defaults to the ID of the agent pool. Conflicts with `agentPoolId`.
120
- */
121
- name?: pulumi.Input<string>;
122
- /**
123
- * The ID of the project in which to create the resource.
124
- */
125
- projectId?: pulumi.Input<string>;
126
- }
127
- /**
128
- * The set of arguments for constructing a Queue resource.
129
- */
130
- export interface QueueArgs {
131
- /**
132
- * The ID of the organization agent pool. Conflicts with `name`.
133
- *
134
- * > **NOTE:**
135
- * One of `name` or `agentPoolId` must be specified, but not both.
136
- * When `agentPoolId` is specified, the agent queue name will be derived from the agent pool name.
137
- */
138
- agentPoolId?: pulumi.Input<number>;
139
- /**
140
- * The name of the agent queue. Defaults to the ID of the agent pool. Conflicts with `agentPoolId`.
141
- */
142
- name?: pulumi.Input<string>;
143
- /**
144
- * The ID of the project in which to create the resource.
145
- */
146
- projectId: pulumi.Input<string>;
147
- }
package/agent/queue.js DELETED
@@ -1,121 +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.Queue = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("../utilities");
8
- /**
9
- * Manages an agent queue within Azure DevOps. In the UI, this is equivalent to adding an
10
- * Organization defined pool to a project.
11
- *
12
- * The created queue is not authorized for use by all pipelines in the project. However,
13
- * the `azuredevops.ResourceAuthorization` resource can be used to grant authorization.
14
- *
15
- * ## Example Usage
16
- *
17
- * ### Creating a Queue from an organization-level pool
18
- *
19
- * <!--Start PulumiCodeChooser -->
20
- * ```typescript
21
- * import * as pulumi from "@pulumi/pulumi";
22
- * import * as azuredevops from "@pulumi/azuredevops";
23
- *
24
- * const exampleProject = new azuredevops.Project("exampleProject", {});
25
- * const examplePool = azuredevops.getPool({
26
- * name: "example-pool",
27
- * });
28
- * const exampleQueue = new azuredevops.Queue("exampleQueue", {
29
- * projectId: exampleProject.id,
30
- * agentPoolId: examplePool.then(examplePool => examplePool.id),
31
- * });
32
- * // Grant access to queue to all pipelines in the project
33
- * const exampleResourceAuthorization = new azuredevops.ResourceAuthorization("exampleResourceAuthorization", {
34
- * projectId: exampleProject.id,
35
- * resourceId: exampleQueue.id,
36
- * type: "queue",
37
- * authorized: true,
38
- * });
39
- * ```
40
- * <!--End PulumiCodeChooser -->
41
- *
42
- * ### Creating a Queue at the project level (Organization-level permissions not required)
43
- *
44
- * <!--Start PulumiCodeChooser -->
45
- * ```typescript
46
- * import * as pulumi from "@pulumi/pulumi";
47
- * import * as azuredevops from "@pulumi/azuredevops";
48
- *
49
- * const exampleProject = azuredevops.getProject({
50
- * name: "Example Project",
51
- * });
52
- * const exampleQueue = new azuredevops.Queue("exampleQueue", {projectId: exampleProject.then(exampleProject => exampleProject.id)});
53
- * ```
54
- * <!--End PulumiCodeChooser -->
55
- *
56
- * ## Relevant Links
57
- *
58
- * - [Azure DevOps Service REST API 7.0 - Agent Queues](https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/queues?view=azure-devops-rest-7.0)
59
- *
60
- * ## Import
61
- *
62
- * Azure DevOps Agent Pools can be imported using the project ID and agent queue ID, e.g.
63
- *
64
- * ```sh
65
- * $ pulumi import azuredevops:Agent/queue:Queue example 00000000-0000-0000-0000-000000000000/0
66
- * ```
67
- *
68
- * @deprecated azuredevops.agent.Queue has been deprecated in favor of azuredevops.Queue
69
- */
70
- class Queue extends pulumi.CustomResource {
71
- /**
72
- * Get an existing Queue resource's state with the given name, ID, and optional extra
73
- * properties used to qualify the lookup.
74
- *
75
- * @param name The _unique_ name of the resulting resource.
76
- * @param id The _unique_ provider ID of the resource to lookup.
77
- * @param state Any extra arguments used during the lookup.
78
- * @param opts Optional settings to control the behavior of the CustomResource.
79
- */
80
- static get(name, id, state, opts) {
81
- pulumi.log.warn("Queue is deprecated: azuredevops.agent.Queue has been deprecated in favor of azuredevops.Queue");
82
- return new Queue(name, state, Object.assign(Object.assign({}, opts), { id: id }));
83
- }
84
- /**
85
- * Returns true if the given object is an instance of Queue. This is designed to work even
86
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
87
- */
88
- static isInstance(obj) {
89
- if (obj === undefined || obj === null) {
90
- return false;
91
- }
92
- return obj['__pulumiType'] === Queue.__pulumiType;
93
- }
94
- /** @deprecated azuredevops.agent.Queue has been deprecated in favor of azuredevops.Queue */
95
- constructor(name, argsOrState, opts) {
96
- pulumi.log.warn("Queue is deprecated: azuredevops.agent.Queue has been deprecated in favor of azuredevops.Queue");
97
- let resourceInputs = {};
98
- opts = opts || {};
99
- if (opts.id) {
100
- const state = argsOrState;
101
- resourceInputs["agentPoolId"] = state ? state.agentPoolId : undefined;
102
- resourceInputs["name"] = state ? state.name : undefined;
103
- resourceInputs["projectId"] = state ? state.projectId : undefined;
104
- }
105
- else {
106
- const args = argsOrState;
107
- if ((!args || args.projectId === undefined) && !opts.urn) {
108
- throw new Error("Missing required property 'projectId'");
109
- }
110
- resourceInputs["agentPoolId"] = args ? args.agentPoolId : undefined;
111
- resourceInputs["name"] = args ? args.name : undefined;
112
- resourceInputs["projectId"] = args ? args.projectId : undefined;
113
- }
114
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
115
- super(Queue.__pulumiType, name, resourceInputs, opts);
116
- }
117
- }
118
- exports.Queue = Queue;
119
- /** @internal */
120
- Queue.__pulumiType = 'azuredevops:Agent/queue:Queue';
121
- //# sourceMappingURL=queue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"queue.js","sourceRoot":"","sources":["../../agent/queue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,gGAAgG,CAAC,CAAA;QACjH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IA4BD,4FAA4F;IAC5F,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,gGAAgG,CAAC,CAAA;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,K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