@pulumi/azuredevops 2.9.0 → 2.10.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.
- package/checkBusinessHours.d.ts +1 -1
- package/checkBusinessHours.js +1 -1
- package/checkExclusiveLock.d.ts +132 -0
- package/checkExclusiveLock.js +112 -0
- package/checkExclusiveLock.js.map +1 -0
- package/checkRequiredTemplate.d.ts +148 -0
- package/checkRequiredTemplate.js +129 -0
- package/checkRequiredTemplate.js.map +1 -0
- package/elasticPool.d.ts +216 -0
- package/elasticPool.js +132 -0
- package/elasticPool.js.map +1 -0
- package/getServiceEndpointAzureRM.d.ts +4 -0
- package/getServiceEndpointAzureRM.js.map +1 -1
- package/index.d.ts +9 -0
- package/index.js +18 -3
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/pipelineAuthorization.d.ts +6 -5
- package/pipelineAuthorization.js +3 -2
- package/pipelineAuthorization.js.map +1 -1
- package/provider.js +1 -1
- package/provider.js.map +1 -1
- package/serviceEndpointAzureRM.d.ts +108 -3
- package/serviceEndpointAzureRM.js +92 -3
- package/serviceEndpointAzureRM.js.map +1 -1
- package/serviceendpoint/azureRM.d.ts +108 -3
- package/serviceendpoint/azureRM.js +92 -3
- package/serviceendpoint/azureRM.js.map +1 -1
- package/types/input.d.ts +22 -4
- package/types/output.d.ts +22 -4
package/checkBusinessHours.d.ts
CHANGED
package/checkBusinessHours.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.CheckBusinessHours = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Manages a
|
|
9
|
+
* Manages a business hours check on a resource within Azure DevOps.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
* ### Protect a service connection
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages a Exclusive Lock Check.
|
|
4
|
+
*
|
|
5
|
+
* Adding an exclusive lock will only allow a single stage to utilize this resource at a time. If multiple stages are waiting on the lock, only the latest will run. All others will be canceled.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
* ### Add Exclusive Lock to an environment
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
13
|
+
*
|
|
14
|
+
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
15
|
+
* const exampleServiceEndpointGeneric = new azuredevops.ServiceEndpointGeneric("exampleServiceEndpointGeneric", {
|
|
16
|
+
* projectId: exampleProject.id,
|
|
17
|
+
* serverUrl: "https://some-server.example.com",
|
|
18
|
+
* username: "username",
|
|
19
|
+
* password: "password",
|
|
20
|
+
* serviceEndpointName: "Example Generic",
|
|
21
|
+
* description: "Managed by Terraform",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleCheckExclusiveLock = new azuredevops.CheckExclusiveLock("exampleCheckExclusiveLock", {
|
|
24
|
+
* projectId: exampleProject.id,
|
|
25
|
+
* targetResourceId: exampleServiceEndpointGeneric.id,
|
|
26
|
+
* targetResourceType: "endpoint",
|
|
27
|
+
* timeout: 43200,
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
* ### Protect an environment
|
|
31
|
+
*
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
35
|
+
*
|
|
36
|
+
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
37
|
+
* const exampleEnvironment = new azuredevops.Environment("exampleEnvironment", {projectId: exampleProject.id});
|
|
38
|
+
* const exampleCheckExclusiveLock = new azuredevops.CheckExclusiveLock("exampleCheckExclusiveLock", {
|
|
39
|
+
* projectId: exampleProject.id,
|
|
40
|
+
* targetResourceId: exampleEnvironment.id,
|
|
41
|
+
* targetResourceType: "environment",
|
|
42
|
+
* timeout: 43200,
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* ## Import
|
|
47
|
+
*
|
|
48
|
+
* Importing this resource is not supported.
|
|
49
|
+
*/
|
|
50
|
+
export declare class CheckExclusiveLock extends pulumi.CustomResource {
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing CheckExclusiveLock resource's state with the given name, ID, and optional extra
|
|
53
|
+
* properties used to qualify the lookup.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resulting resource.
|
|
56
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
+
* @param state Any extra arguments used during the lookup.
|
|
58
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
|
+
*/
|
|
60
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CheckExclusiveLockState, opts?: pulumi.CustomResourceOptions): CheckExclusiveLock;
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of CheckExclusiveLock. This is designed to work even
|
|
63
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
+
*/
|
|
65
|
+
static isInstance(obj: any): obj is CheckExclusiveLock;
|
|
66
|
+
/**
|
|
67
|
+
* The project ID. Changing this forces a new Exclusive Lock Check to be created.
|
|
68
|
+
*/
|
|
69
|
+
readonly projectId: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
|
|
72
|
+
*/
|
|
73
|
+
readonly targetResourceId: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The type of resource being protected by the check. Valid values: `endpoint`, `environment`, `queue`, `repository`, `securefile`, `variablegroup`. Changing this forces a new Exclusive Lock to be created.
|
|
76
|
+
*/
|
|
77
|
+
readonly targetResourceType: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The timeout in minutes for the exclusive lock. Defaults to `43200`.
|
|
80
|
+
*/
|
|
81
|
+
readonly timeout: pulumi.Output<number | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* Create a CheckExclusiveLock resource with the given unique name, arguments, and options.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resource.
|
|
86
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
87
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
88
|
+
*/
|
|
89
|
+
constructor(name: string, args: CheckExclusiveLockArgs, opts?: pulumi.CustomResourceOptions);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Input properties used for looking up and filtering CheckExclusiveLock resources.
|
|
93
|
+
*/
|
|
94
|
+
export interface CheckExclusiveLockState {
|
|
95
|
+
/**
|
|
96
|
+
* The project ID. Changing this forces a new Exclusive Lock Check to be created.
|
|
97
|
+
*/
|
|
98
|
+
projectId?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
|
|
101
|
+
*/
|
|
102
|
+
targetResourceId?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The type of resource being protected by the check. Valid values: `endpoint`, `environment`, `queue`, `repository`, `securefile`, `variablegroup`. Changing this forces a new Exclusive Lock to be created.
|
|
105
|
+
*/
|
|
106
|
+
targetResourceType?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The timeout in minutes for the exclusive lock. Defaults to `43200`.
|
|
109
|
+
*/
|
|
110
|
+
timeout?: pulumi.Input<number>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The set of arguments for constructing a CheckExclusiveLock resource.
|
|
114
|
+
*/
|
|
115
|
+
export interface CheckExclusiveLockArgs {
|
|
116
|
+
/**
|
|
117
|
+
* The project ID. Changing this forces a new Exclusive Lock Check to be created.
|
|
118
|
+
*/
|
|
119
|
+
projectId: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
|
|
122
|
+
*/
|
|
123
|
+
targetResourceId: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The type of resource being protected by the check. Valid values: `endpoint`, `environment`, `queue`, `repository`, `securefile`, `variablegroup`. Changing this forces a new Exclusive Lock to be created.
|
|
126
|
+
*/
|
|
127
|
+
targetResourceType: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The timeout in minutes for the exclusive lock. Defaults to `43200`.
|
|
130
|
+
*/
|
|
131
|
+
timeout?: pulumi.Input<number>;
|
|
132
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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.CheckExclusiveLock = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a Exclusive Lock Check.
|
|
10
|
+
*
|
|
11
|
+
* Adding an exclusive lock will only allow a single stage to utilize this resource at a time. If multiple stages are waiting on the lock, only the latest will run. All others will be canceled.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
* ### Add Exclusive Lock to an environment
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
19
|
+
*
|
|
20
|
+
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
21
|
+
* const exampleServiceEndpointGeneric = new azuredevops.ServiceEndpointGeneric("exampleServiceEndpointGeneric", {
|
|
22
|
+
* projectId: exampleProject.id,
|
|
23
|
+
* serverUrl: "https://some-server.example.com",
|
|
24
|
+
* username: "username",
|
|
25
|
+
* password: "password",
|
|
26
|
+
* serviceEndpointName: "Example Generic",
|
|
27
|
+
* description: "Managed by Terraform",
|
|
28
|
+
* });
|
|
29
|
+
* const exampleCheckExclusiveLock = new azuredevops.CheckExclusiveLock("exampleCheckExclusiveLock", {
|
|
30
|
+
* projectId: exampleProject.id,
|
|
31
|
+
* targetResourceId: exampleServiceEndpointGeneric.id,
|
|
32
|
+
* targetResourceType: "endpoint",
|
|
33
|
+
* timeout: 43200,
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
* ### Protect an environment
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
41
|
+
*
|
|
42
|
+
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
43
|
+
* const exampleEnvironment = new azuredevops.Environment("exampleEnvironment", {projectId: exampleProject.id});
|
|
44
|
+
* const exampleCheckExclusiveLock = new azuredevops.CheckExclusiveLock("exampleCheckExclusiveLock", {
|
|
45
|
+
* projectId: exampleProject.id,
|
|
46
|
+
* targetResourceId: exampleEnvironment.id,
|
|
47
|
+
* targetResourceType: "environment",
|
|
48
|
+
* timeout: 43200,
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* ## Import
|
|
53
|
+
*
|
|
54
|
+
* Importing this resource is not supported.
|
|
55
|
+
*/
|
|
56
|
+
class CheckExclusiveLock extends pulumi.CustomResource {
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing CheckExclusiveLock resource's state with the given name, ID, and optional extra
|
|
59
|
+
* properties used to qualify the lookup.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resulting resource.
|
|
62
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
63
|
+
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
65
|
+
*/
|
|
66
|
+
static get(name, id, state, opts) {
|
|
67
|
+
return new CheckExclusiveLock(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Returns true if the given object is an instance of CheckExclusiveLock. This is designed to work even
|
|
71
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
72
|
+
*/
|
|
73
|
+
static isInstance(obj) {
|
|
74
|
+
if (obj === undefined || obj === null) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
return obj['__pulumiType'] === CheckExclusiveLock.__pulumiType;
|
|
78
|
+
}
|
|
79
|
+
constructor(name, argsOrState, opts) {
|
|
80
|
+
let resourceInputs = {};
|
|
81
|
+
opts = opts || {};
|
|
82
|
+
if (opts.id) {
|
|
83
|
+
const state = argsOrState;
|
|
84
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
85
|
+
resourceInputs["targetResourceId"] = state ? state.targetResourceId : undefined;
|
|
86
|
+
resourceInputs["targetResourceType"] = state ? state.targetResourceType : undefined;
|
|
87
|
+
resourceInputs["timeout"] = state ? state.timeout : undefined;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
const args = argsOrState;
|
|
91
|
+
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
92
|
+
throw new Error("Missing required property 'projectId'");
|
|
93
|
+
}
|
|
94
|
+
if ((!args || args.targetResourceId === undefined) && !opts.urn) {
|
|
95
|
+
throw new Error("Missing required property 'targetResourceId'");
|
|
96
|
+
}
|
|
97
|
+
if ((!args || args.targetResourceType === undefined) && !opts.urn) {
|
|
98
|
+
throw new Error("Missing required property 'targetResourceType'");
|
|
99
|
+
}
|
|
100
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
101
|
+
resourceInputs["targetResourceId"] = args ? args.targetResourceId : undefined;
|
|
102
|
+
resourceInputs["targetResourceType"] = args ? args.targetResourceType : undefined;
|
|
103
|
+
resourceInputs["timeout"] = args ? args.timeout : undefined;
|
|
104
|
+
}
|
|
105
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
106
|
+
super(CheckExclusiveLock.__pulumiType, name, resourceInputs, opts);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.CheckExclusiveLock = CheckExclusiveLock;
|
|
110
|
+
/** @internal */
|
|
111
|
+
CheckExclusiveLock.__pulumiType = 'azuredevops:index/checkExclusiveLock:CheckExclusiveLock';
|
|
112
|
+
//# sourceMappingURL=checkExclusiveLock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkExclusiveLock.js","sourceRoot":"","sources":["../checkExclusiveLock.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IA2BD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IA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AI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAhFL,gDAiFC;AAnEG,gBAAgB;AACO,+BAAY,GAAG,yDAAyD,CAAC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
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 Required Template Check.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
* ### Protect a service connection
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
13
|
+
*
|
|
14
|
+
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
15
|
+
* const exampleServiceEndpointGeneric = new azuredevops.ServiceEndpointGeneric("exampleServiceEndpointGeneric", {
|
|
16
|
+
* projectId: exampleProject.id,
|
|
17
|
+
* serverUrl: "https://some-server.example.com",
|
|
18
|
+
* username: "username",
|
|
19
|
+
* password: "password",
|
|
20
|
+
* serviceEndpointName: "Example Generic",
|
|
21
|
+
* description: "Managed by Terraform",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleCheckRequiredTemplate = new azuredevops.CheckRequiredTemplate("exampleCheckRequiredTemplate", {
|
|
24
|
+
* projectId: exampleProject.id,
|
|
25
|
+
* targetResourceId: exampleServiceEndpointGeneric.id,
|
|
26
|
+
* targetResourceType: "endpoint",
|
|
27
|
+
* requiredTemplates: [{
|
|
28
|
+
* repositoryType: "azuregit",
|
|
29
|
+
* repositoryName: "project/repository",
|
|
30
|
+
* repositoryRef: "refs/heads/main",
|
|
31
|
+
* templatePath: "template/path.yml",
|
|
32
|
+
* }],
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
* ### Protect an environment
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
40
|
+
*
|
|
41
|
+
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
42
|
+
* const exampleEnvironment = new azuredevops.Environment("exampleEnvironment", {projectId: exampleProject.id});
|
|
43
|
+
* const exampleCheckRequiredTemplate = new azuredevops.CheckRequiredTemplate("exampleCheckRequiredTemplate", {
|
|
44
|
+
* projectId: exampleProject.id,
|
|
45
|
+
* targetResourceId: exampleEnvironment.id,
|
|
46
|
+
* targetResourceType: "environment",
|
|
47
|
+
* requiredTemplates: [
|
|
48
|
+
* {
|
|
49
|
+
* repositoryName: "project/repository",
|
|
50
|
+
* repositoryRef: "refs/heads/main",
|
|
51
|
+
* templatePath: "template/path.yml",
|
|
52
|
+
* },
|
|
53
|
+
* {
|
|
54
|
+
* repositoryName: "project/repository",
|
|
55
|
+
* repositoryRef: "refs/heads/main",
|
|
56
|
+
* templatePath: "template/alternate-path.yml",
|
|
57
|
+
* },
|
|
58
|
+
* ],
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* ## Import
|
|
63
|
+
*
|
|
64
|
+
* Importing this resource is not supported.
|
|
65
|
+
*/
|
|
66
|
+
export declare class CheckRequiredTemplate extends pulumi.CustomResource {
|
|
67
|
+
/**
|
|
68
|
+
* Get an existing CheckRequiredTemplate resource's state with the given name, ID, and optional extra
|
|
69
|
+
* properties used to qualify the lookup.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resulting resource.
|
|
72
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
73
|
+
* @param state Any extra arguments used during the lookup.
|
|
74
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
75
|
+
*/
|
|
76
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CheckRequiredTemplateState, opts?: pulumi.CustomResourceOptions): CheckRequiredTemplate;
|
|
77
|
+
/**
|
|
78
|
+
* Returns true if the given object is an instance of CheckRequiredTemplate. This is designed to work even
|
|
79
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
80
|
+
*/
|
|
81
|
+
static isInstance(obj: any): obj is CheckRequiredTemplate;
|
|
82
|
+
/**
|
|
83
|
+
* The project ID. Changing this forces a new Required Template Check to be created.
|
|
84
|
+
*/
|
|
85
|
+
readonly projectId: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* One or more `requiredTemplate` blocks documented below.
|
|
88
|
+
*/
|
|
89
|
+
readonly requiredTemplates: pulumi.Output<outputs.CheckRequiredTemplateRequiredTemplate[]>;
|
|
90
|
+
/**
|
|
91
|
+
* The ID of the resource being protected by the check. Changing this forces a new Required Template Check to be created.
|
|
92
|
+
*/
|
|
93
|
+
readonly targetResourceId: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* The type of resource being protected by the check. Valid values: `endpoint`, `environment`, `queue`, `repository`, `securefile`, `variablegroup`. Changing this forces a new Required Template Check to be created.
|
|
96
|
+
*/
|
|
97
|
+
readonly targetResourceType: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Create a CheckRequiredTemplate resource with the given unique name, arguments, and options.
|
|
100
|
+
*
|
|
101
|
+
* @param name The _unique_ name of the resource.
|
|
102
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
103
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
104
|
+
*/
|
|
105
|
+
constructor(name: string, args: CheckRequiredTemplateArgs, opts?: pulumi.CustomResourceOptions);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Input properties used for looking up and filtering CheckRequiredTemplate resources.
|
|
109
|
+
*/
|
|
110
|
+
export interface CheckRequiredTemplateState {
|
|
111
|
+
/**
|
|
112
|
+
* The project ID. Changing this forces a new Required Template Check to be created.
|
|
113
|
+
*/
|
|
114
|
+
projectId?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* One or more `requiredTemplate` blocks documented below.
|
|
117
|
+
*/
|
|
118
|
+
requiredTemplates?: pulumi.Input<pulumi.Input<inputs.CheckRequiredTemplateRequiredTemplate>[]>;
|
|
119
|
+
/**
|
|
120
|
+
* The ID of the resource being protected by the check. Changing this forces a new Required Template Check to be created.
|
|
121
|
+
*/
|
|
122
|
+
targetResourceId?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The type of resource being protected by the check. Valid values: `endpoint`, `environment`, `queue`, `repository`, `securefile`, `variablegroup`. Changing this forces a new Required Template Check to be created.
|
|
125
|
+
*/
|
|
126
|
+
targetResourceType?: pulumi.Input<string>;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* The set of arguments for constructing a CheckRequiredTemplate resource.
|
|
130
|
+
*/
|
|
131
|
+
export interface CheckRequiredTemplateArgs {
|
|
132
|
+
/**
|
|
133
|
+
* The project ID. Changing this forces a new Required Template Check to be created.
|
|
134
|
+
*/
|
|
135
|
+
projectId: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* One or more `requiredTemplate` blocks documented below.
|
|
138
|
+
*/
|
|
139
|
+
requiredTemplates: pulumi.Input<pulumi.Input<inputs.CheckRequiredTemplateRequiredTemplate>[]>;
|
|
140
|
+
/**
|
|
141
|
+
* The ID of the resource being protected by the check. Changing this forces a new Required Template Check to be created.
|
|
142
|
+
*/
|
|
143
|
+
targetResourceId: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* The type of resource being protected by the check. Valid values: `endpoint`, `environment`, `queue`, `repository`, `securefile`, `variablegroup`. Changing this forces a new Required Template Check to be created.
|
|
146
|
+
*/
|
|
147
|
+
targetResourceType: pulumi.Input<string>;
|
|
148
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
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.CheckRequiredTemplate = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a Required Template Check.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
* ### Protect a service connection
|
|
13
|
+
*
|
|
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 exampleServiceEndpointGeneric = new azuredevops.ServiceEndpointGeneric("exampleServiceEndpointGeneric", {
|
|
20
|
+
* projectId: exampleProject.id,
|
|
21
|
+
* serverUrl: "https://some-server.example.com",
|
|
22
|
+
* username: "username",
|
|
23
|
+
* password: "password",
|
|
24
|
+
* serviceEndpointName: "Example Generic",
|
|
25
|
+
* description: "Managed by Terraform",
|
|
26
|
+
* });
|
|
27
|
+
* const exampleCheckRequiredTemplate = new azuredevops.CheckRequiredTemplate("exampleCheckRequiredTemplate", {
|
|
28
|
+
* projectId: exampleProject.id,
|
|
29
|
+
* targetResourceId: exampleServiceEndpointGeneric.id,
|
|
30
|
+
* targetResourceType: "endpoint",
|
|
31
|
+
* requiredTemplates: [{
|
|
32
|
+
* repositoryType: "azuregit",
|
|
33
|
+
* repositoryName: "project/repository",
|
|
34
|
+
* repositoryRef: "refs/heads/main",
|
|
35
|
+
* templatePath: "template/path.yml",
|
|
36
|
+
* }],
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
* ### Protect an environment
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
44
|
+
*
|
|
45
|
+
* const exampleProject = new azuredevops.Project("exampleProject", {});
|
|
46
|
+
* const exampleEnvironment = new azuredevops.Environment("exampleEnvironment", {projectId: exampleProject.id});
|
|
47
|
+
* const exampleCheckRequiredTemplate = new azuredevops.CheckRequiredTemplate("exampleCheckRequiredTemplate", {
|
|
48
|
+
* projectId: exampleProject.id,
|
|
49
|
+
* targetResourceId: exampleEnvironment.id,
|
|
50
|
+
* targetResourceType: "environment",
|
|
51
|
+
* requiredTemplates: [
|
|
52
|
+
* {
|
|
53
|
+
* repositoryName: "project/repository",
|
|
54
|
+
* repositoryRef: "refs/heads/main",
|
|
55
|
+
* templatePath: "template/path.yml",
|
|
56
|
+
* },
|
|
57
|
+
* {
|
|
58
|
+
* repositoryName: "project/repository",
|
|
59
|
+
* repositoryRef: "refs/heads/main",
|
|
60
|
+
* templatePath: "template/alternate-path.yml",
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ## Import
|
|
67
|
+
*
|
|
68
|
+
* Importing this resource is not supported.
|
|
69
|
+
*/
|
|
70
|
+
class CheckRequiredTemplate extends pulumi.CustomResource {
|
|
71
|
+
/**
|
|
72
|
+
* Get an existing CheckRequiredTemplate 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
|
+
return new CheckRequiredTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Returns true if the given object is an instance of CheckRequiredTemplate. This is designed to work even
|
|
85
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
86
|
+
*/
|
|
87
|
+
static isInstance(obj) {
|
|
88
|
+
if (obj === undefined || obj === null) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
return obj['__pulumiType'] === CheckRequiredTemplate.__pulumiType;
|
|
92
|
+
}
|
|
93
|
+
constructor(name, argsOrState, opts) {
|
|
94
|
+
let resourceInputs = {};
|
|
95
|
+
opts = opts || {};
|
|
96
|
+
if (opts.id) {
|
|
97
|
+
const state = argsOrState;
|
|
98
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
99
|
+
resourceInputs["requiredTemplates"] = state ? state.requiredTemplates : undefined;
|
|
100
|
+
resourceInputs["targetResourceId"] = state ? state.targetResourceId : undefined;
|
|
101
|
+
resourceInputs["targetResourceType"] = state ? state.targetResourceType : undefined;
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
const args = argsOrState;
|
|
105
|
+
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
106
|
+
throw new Error("Missing required property 'projectId'");
|
|
107
|
+
}
|
|
108
|
+
if ((!args || args.requiredTemplates === undefined) && !opts.urn) {
|
|
109
|
+
throw new Error("Missing required property 'requiredTemplates'");
|
|
110
|
+
}
|
|
111
|
+
if ((!args || args.targetResourceId === undefined) && !opts.urn) {
|
|
112
|
+
throw new Error("Missing required property 'targetResourceId'");
|
|
113
|
+
}
|
|
114
|
+
if ((!args || args.targetResourceType === undefined) && !opts.urn) {
|
|
115
|
+
throw new Error("Missing required property 'targetResourceType'");
|
|
116
|
+
}
|
|
117
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
118
|
+
resourceInputs["requiredTemplates"] = args ? args.requiredTemplates : undefined;
|
|
119
|
+
resourceInputs["targetResourceId"] = args ? args.targetResourceId : undefined;
|
|
120
|
+
resourceInputs["targetResourceType"] = args ? args.targetResourceType : undefined;
|
|
121
|
+
}
|
|
122
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
123
|
+
super(CheckRequiredTemplate.__pulumiType, name, resourceInputs, opts);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
exports.CheckRequiredTemplate = CheckRequiredTemplate;
|
|
127
|
+
/** @internal */
|
|
128
|
+
CheckRequiredTemplate.__pulumiType = 'azuredevops:index/checkRequiredTemplate:CheckRequiredTemplate';
|
|
129
|
+
//# sourceMappingURL=checkRequiredTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkRequiredTemplate.js","sourceRoot":"","sources":["../checkRequiredTemplate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SA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