@pulumi/azuredevops 3.12.0-alpha.1767139460 → 3.12.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.
@@ -0,0 +1,192 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages permissions for an Azure DevOps Process
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ### Permissions on an inherited process
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as azuredevops from "@pulumi/azuredevops";
12
+ *
13
+ * const example = new azuredevops.WorkitemtrackingprocessProcess("example", {
14
+ * name: "Example Process",
15
+ * parentProcessTypeId: "adcc42ab-9882-485e-a3ed-7678f01f66bc",
16
+ * });
17
+ * const example_group = azuredevops.getGroup({
18
+ * name: "Example Group",
19
+ * });
20
+ * const exampleWorkitemtrackingprocessProcessPermissions = new azuredevops.WorkitemtrackingprocessProcessPermissions("example", {
21
+ * processId: example.id,
22
+ * principal: example_group.then(example_group => example_group.id),
23
+ * permissions: {
24
+ * Edit: "Allow",
25
+ * Delete: "Deny",
26
+ * AdministerProcessPermissions: "Allow",
27
+ * },
28
+ * });
29
+ * ```
30
+ *
31
+ * ### Permissions on a system process
32
+ *
33
+ * ```typescript
34
+ * import * as pulumi from "@pulumi/pulumi";
35
+ * import * as azuredevops from "@pulumi/azuredevops";
36
+ *
37
+ * const example_group = azuredevops.getGroup({
38
+ * name: "Example Group",
39
+ * });
40
+ * const example = new azuredevops.WorkitemtrackingprocessProcessPermissions("example", {
41
+ * processId: "adcc42ab-9882-485e-a3ed-7678f01f66bc",
42
+ * principal: example_group.then(example_group => example_group.id),
43
+ * permissions: {
44
+ * Create: "Deny",
45
+ * },
46
+ * });
47
+ * ```
48
+ *
49
+ * ## Relevant Links
50
+ *
51
+ * * [Azure DevOps Service REST API 7.1 - Security](https://docs.microsoft.com/en-us/rest/api/azure/devops/security/?view=azure-devops-rest-7.1)
52
+ *
53
+ * ## PAT Permissions Required
54
+ *
55
+ * - **Security**: Manage
56
+ * - **Identity**: Read
57
+ *
58
+ * ## Import
59
+ *
60
+ * The resource does not support import.
61
+ */
62
+ export declare class WorkitemtrackingprocessProcessPermissions extends pulumi.CustomResource {
63
+ /**
64
+ * Get an existing WorkitemtrackingprocessProcessPermissions resource's state with the given name, ID, and optional extra
65
+ * properties used to qualify the lookup.
66
+ *
67
+ * @param name The _unique_ name of the resulting resource.
68
+ * @param id The _unique_ provider ID of the resource to lookup.
69
+ * @param state Any extra arguments used during the lookup.
70
+ * @param opts Optional settings to control the behavior of the CustomResource.
71
+ */
72
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkitemtrackingprocessProcessPermissionsState, opts?: pulumi.CustomResourceOptions): WorkitemtrackingprocessProcessPermissions;
73
+ /**
74
+ * Returns true if the given object is an instance of WorkitemtrackingprocessProcessPermissions. This is designed to work even
75
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
76
+ */
77
+ static isInstance(obj: any): obj is WorkitemtrackingprocessProcessPermissions;
78
+ /**
79
+ * the permissions to assign. The following permissions are available
80
+ *
81
+ * **Inherited process permissions:**
82
+ *
83
+ * | Permission | Description |
84
+ * |--------------------------------|--------------------------------|
85
+ * | Edit | Edit process |
86
+ * | Delete | Delete process |
87
+ * | AdministerProcessPermissions | Administer process permissions |
88
+ *
89
+ * **System process permissions:**
90
+ *
91
+ * | Permission | Description |
92
+ * |--------------------------------|--------------------------------|
93
+ * | Create | Create inherited process |
94
+ */
95
+ readonly permissions: pulumi.Output<{
96
+ [key: string]: string;
97
+ }>;
98
+ /**
99
+ * The principal to assign the permissions.
100
+ */
101
+ readonly principal: pulumi.Output<string>;
102
+ /**
103
+ * The ID of the process to assign the permissions.
104
+ */
105
+ readonly processId: pulumi.Output<string>;
106
+ /**
107
+ * Replace (`true`) or merge (`false`) the permissions. Default: `true`
108
+ */
109
+ readonly replace: pulumi.Output<boolean | undefined>;
110
+ /**
111
+ * Create a WorkitemtrackingprocessProcessPermissions resource with the given unique name, arguments, and options.
112
+ *
113
+ * @param name The _unique_ name of the resource.
114
+ * @param args The arguments to use to populate this resource's properties.
115
+ * @param opts A bag of options that control this resource's behavior.
116
+ */
117
+ constructor(name: string, args: WorkitemtrackingprocessProcessPermissionsArgs, opts?: pulumi.CustomResourceOptions);
118
+ }
119
+ /**
120
+ * Input properties used for looking up and filtering WorkitemtrackingprocessProcessPermissions resources.
121
+ */
122
+ export interface WorkitemtrackingprocessProcessPermissionsState {
123
+ /**
124
+ * the permissions to assign. The following permissions are available
125
+ *
126
+ * **Inherited process permissions:**
127
+ *
128
+ * | Permission | Description |
129
+ * |--------------------------------|--------------------------------|
130
+ * | Edit | Edit process |
131
+ * | Delete | Delete process |
132
+ * | AdministerProcessPermissions | Administer process permissions |
133
+ *
134
+ * **System process permissions:**
135
+ *
136
+ * | Permission | Description |
137
+ * |--------------------------------|--------------------------------|
138
+ * | Create | Create inherited process |
139
+ */
140
+ permissions?: pulumi.Input<{
141
+ [key: string]: pulumi.Input<string>;
142
+ }>;
143
+ /**
144
+ * The principal to assign the permissions.
145
+ */
146
+ principal?: pulumi.Input<string>;
147
+ /**
148
+ * The ID of the process to assign the permissions.
149
+ */
150
+ processId?: pulumi.Input<string>;
151
+ /**
152
+ * Replace (`true`) or merge (`false`) the permissions. Default: `true`
153
+ */
154
+ replace?: pulumi.Input<boolean>;
155
+ }
156
+ /**
157
+ * The set of arguments for constructing a WorkitemtrackingprocessProcessPermissions resource.
158
+ */
159
+ export interface WorkitemtrackingprocessProcessPermissionsArgs {
160
+ /**
161
+ * the permissions to assign. The following permissions are available
162
+ *
163
+ * **Inherited process permissions:**
164
+ *
165
+ * | Permission | Description |
166
+ * |--------------------------------|--------------------------------|
167
+ * | Edit | Edit process |
168
+ * | Delete | Delete process |
169
+ * | AdministerProcessPermissions | Administer process permissions |
170
+ *
171
+ * **System process permissions:**
172
+ *
173
+ * | Permission | Description |
174
+ * |--------------------------------|--------------------------------|
175
+ * | Create | Create inherited process |
176
+ */
177
+ permissions: pulumi.Input<{
178
+ [key: string]: pulumi.Input<string>;
179
+ }>;
180
+ /**
181
+ * The principal to assign the permissions.
182
+ */
183
+ principal: pulumi.Input<string>;
184
+ /**
185
+ * The ID of the process to assign the permissions.
186
+ */
187
+ processId: pulumi.Input<string>;
188
+ /**
189
+ * Replace (`true`) or merge (`false`) the permissions. Default: `true`
190
+ */
191
+ replace?: pulumi.Input<boolean>;
192
+ }
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.WorkitemtrackingprocessProcessPermissions = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Manages permissions for an Azure DevOps Process
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ### Permissions on an inherited process
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as azuredevops from "@pulumi/azuredevops";
18
+ *
19
+ * const example = new azuredevops.WorkitemtrackingprocessProcess("example", {
20
+ * name: "Example Process",
21
+ * parentProcessTypeId: "adcc42ab-9882-485e-a3ed-7678f01f66bc",
22
+ * });
23
+ * const example_group = azuredevops.getGroup({
24
+ * name: "Example Group",
25
+ * });
26
+ * const exampleWorkitemtrackingprocessProcessPermissions = new azuredevops.WorkitemtrackingprocessProcessPermissions("example", {
27
+ * processId: example.id,
28
+ * principal: example_group.then(example_group => example_group.id),
29
+ * permissions: {
30
+ * Edit: "Allow",
31
+ * Delete: "Deny",
32
+ * AdministerProcessPermissions: "Allow",
33
+ * },
34
+ * });
35
+ * ```
36
+ *
37
+ * ### Permissions on a system process
38
+ *
39
+ * ```typescript
40
+ * import * as pulumi from "@pulumi/pulumi";
41
+ * import * as azuredevops from "@pulumi/azuredevops";
42
+ *
43
+ * const example_group = azuredevops.getGroup({
44
+ * name: "Example Group",
45
+ * });
46
+ * const example = new azuredevops.WorkitemtrackingprocessProcessPermissions("example", {
47
+ * processId: "adcc42ab-9882-485e-a3ed-7678f01f66bc",
48
+ * principal: example_group.then(example_group => example_group.id),
49
+ * permissions: {
50
+ * Create: "Deny",
51
+ * },
52
+ * });
53
+ * ```
54
+ *
55
+ * ## Relevant Links
56
+ *
57
+ * * [Azure DevOps Service REST API 7.1 - Security](https://docs.microsoft.com/en-us/rest/api/azure/devops/security/?view=azure-devops-rest-7.1)
58
+ *
59
+ * ## PAT Permissions Required
60
+ *
61
+ * - **Security**: Manage
62
+ * - **Identity**: Read
63
+ *
64
+ * ## Import
65
+ *
66
+ * The resource does not support import.
67
+ */
68
+ class WorkitemtrackingprocessProcessPermissions extends pulumi.CustomResource {
69
+ /**
70
+ * Get an existing WorkitemtrackingprocessProcessPermissions resource's state with the given name, ID, and optional extra
71
+ * properties used to qualify the lookup.
72
+ *
73
+ * @param name The _unique_ name of the resulting resource.
74
+ * @param id The _unique_ provider ID of the resource to lookup.
75
+ * @param state Any extra arguments used during the lookup.
76
+ * @param opts Optional settings to control the behavior of the CustomResource.
77
+ */
78
+ static get(name, id, state, opts) {
79
+ return new WorkitemtrackingprocessProcessPermissions(name, state, { ...opts, id: id });
80
+ }
81
+ /**
82
+ * Returns true if the given object is an instance of WorkitemtrackingprocessProcessPermissions. This is designed to work even
83
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
84
+ */
85
+ static isInstance(obj) {
86
+ if (obj === undefined || obj === null) {
87
+ return false;
88
+ }
89
+ return obj['__pulumiType'] === WorkitemtrackingprocessProcessPermissions.__pulumiType;
90
+ }
91
+ constructor(name, argsOrState, opts) {
92
+ let resourceInputs = {};
93
+ opts = opts || {};
94
+ if (opts.id) {
95
+ const state = argsOrState;
96
+ resourceInputs["permissions"] = state?.permissions;
97
+ resourceInputs["principal"] = state?.principal;
98
+ resourceInputs["processId"] = state?.processId;
99
+ resourceInputs["replace"] = state?.replace;
100
+ }
101
+ else {
102
+ const args = argsOrState;
103
+ if (args?.permissions === undefined && !opts.urn) {
104
+ throw new Error("Missing required property 'permissions'");
105
+ }
106
+ if (args?.principal === undefined && !opts.urn) {
107
+ throw new Error("Missing required property 'principal'");
108
+ }
109
+ if (args?.processId === undefined && !opts.urn) {
110
+ throw new Error("Missing required property 'processId'");
111
+ }
112
+ resourceInputs["permissions"] = args?.permissions;
113
+ resourceInputs["principal"] = args?.principal;
114
+ resourceInputs["processId"] = args?.processId;
115
+ resourceInputs["replace"] = args?.replace;
116
+ }
117
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
118
+ super(WorkitemtrackingprocessProcessPermissions.__pulumiType, name, resourceInputs, opts);
119
+ }
120
+ }
121
+ exports.WorkitemtrackingprocessProcessPermissions = WorkitemtrackingprocessProcessPermissions;
122
+ /** @internal */
123
+ WorkitemtrackingprocessProcessPermissions.__pulumiType = 'azuredevops:index/workitemtrackingprocessProcessPermissions:WorkitemtrackingprocessProcessPermissions';
124
+ //# sourceMappingURL=workitemtrackingprocessProcessPermissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workitemtrackingprocessProcessPermissions.js","sourceRoot":"","sources":["../workitemtrackingprocessProcessPermissions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,MAAa,yCAA0C,SAAQ,MAAM,CAAC,cAAc;IAChF;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsD,EAAE,IAAmC;QACpJ,OAAO,IAAI,yCAAyC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChG,CAAC;IAKD;;;OAGG;IACI,MAAM,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CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,yCAAyC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9F,CAAC;;AA9FL,8FA+FC;AAjFG,gBAAgB;AACO,sDAAY,GAAG,uGAAuG,CAAC"}
@@ -0,0 +1,180 @@
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 work item type for a process.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as azuredevops from "@pulumi/azuredevops";
12
+ *
13
+ * const example = new azuredevops.WorkitemtrackingprocessProcess("example", {
14
+ * name: "example-process",
15
+ * parentProcessTypeId: "adcc42ab-9882-485e-a3ed-7678f01f66bc",
16
+ * });
17
+ * const exampleWorkitemtrackingprocessWorkitemtype = new azuredevops.WorkitemtrackingprocessWorkitemtype("example", {
18
+ * processId: example.id,
19
+ * name: "example",
20
+ * description: "Example work item type",
21
+ * color: "#FF5733",
22
+ * icon: "icon_clipboard",
23
+ * });
24
+ * ```
25
+ *
26
+ * ## Relevant Links
27
+ *
28
+ * - [Azure DevOps Service REST API 7.1 - Work Item Types](https://learn.microsoft.com/en-us/rest/api/azure/devops/processes/work-item-types?view=azure-devops-rest-7.1)
29
+ *
30
+ * ## Import
31
+ *
32
+ * work item types can be imported using the complete resource id `process_id/reference_name`, e.g.
33
+ *
34
+ * ```sh
35
+ * $ pulumi import azuredevops:index/workitemtrackingprocessWorkitemtype:WorkitemtrackingprocessWorkitemtype example 00000000-0000-0000-0000-000000000000/MyProcess.CustomWorkItemType
36
+ * ```
37
+ */
38
+ export declare class WorkitemtrackingprocessWorkitemtype extends pulumi.CustomResource {
39
+ /**
40
+ * Get an existing WorkitemtrackingprocessWorkitemtype resource's state with the given name, ID, and optional extra
41
+ * properties used to qualify the lookup.
42
+ *
43
+ * @param name The _unique_ name of the resulting resource.
44
+ * @param id The _unique_ provider ID of the resource to lookup.
45
+ * @param state Any extra arguments used during the lookup.
46
+ * @param opts Optional settings to control the behavior of the CustomResource.
47
+ */
48
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkitemtrackingprocessWorkitemtypeState, opts?: pulumi.CustomResourceOptions): WorkitemtrackingprocessWorkitemtype;
49
+ /**
50
+ * Returns true if the given object is an instance of WorkitemtrackingprocessWorkitemtype. This is designed to work even
51
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
+ */
53
+ static isInstance(obj: any): obj is WorkitemtrackingprocessWorkitemtype;
54
+ /**
55
+ * Color hexadecimal code to represent the work item type. Default: "#009ccc"
56
+ */
57
+ readonly color: pulumi.Output<string | undefined>;
58
+ /**
59
+ * Description of the work item type.
60
+ */
61
+ readonly description: pulumi.Output<string | undefined>;
62
+ /**
63
+ * Icon to represent the work item type. Default: "iconClipboard"
64
+ */
65
+ readonly icon: pulumi.Output<string | undefined>;
66
+ /**
67
+ * True if the work item type is enabled. Default: true
68
+ */
69
+ readonly isEnabled: pulumi.Output<boolean | undefined>;
70
+ /**
71
+ * Name of work item type. Changing this forces a new work item type to be created.
72
+ */
73
+ readonly name: pulumi.Output<string>;
74
+ /**
75
+ * A `pages` block as defined below.
76
+ */
77
+ readonly pages: pulumi.Output<outputs.WorkitemtrackingprocessWorkitemtypePage[]>;
78
+ /**
79
+ * Reference name of the parent work item type. Changing this forces a new work item type to be created.
80
+ */
81
+ readonly parentWorkItemReferenceName: pulumi.Output<string | undefined>;
82
+ /**
83
+ * The ID of the process the work item type belongs to. Changing this forces a new work item type to be created.
84
+ */
85
+ readonly processId: pulumi.Output<string>;
86
+ /**
87
+ * Reference name of the work item type.
88
+ */
89
+ readonly referenceName: pulumi.Output<string>;
90
+ /**
91
+ * Url of the work item type.
92
+ */
93
+ readonly url: pulumi.Output<string>;
94
+ /**
95
+ * Create a WorkitemtrackingprocessWorkitemtype resource with the given unique name, arguments, and options.
96
+ *
97
+ * @param name The _unique_ name of the resource.
98
+ * @param args The arguments to use to populate this resource's properties.
99
+ * @param opts A bag of options that control this resource's behavior.
100
+ */
101
+ constructor(name: string, args: WorkitemtrackingprocessWorkitemtypeArgs, opts?: pulumi.CustomResourceOptions);
102
+ }
103
+ /**
104
+ * Input properties used for looking up and filtering WorkitemtrackingprocessWorkitemtype resources.
105
+ */
106
+ export interface WorkitemtrackingprocessWorkitemtypeState {
107
+ /**
108
+ * Color hexadecimal code to represent the work item type. Default: "#009ccc"
109
+ */
110
+ color?: pulumi.Input<string>;
111
+ /**
112
+ * Description of the work item type.
113
+ */
114
+ description?: pulumi.Input<string>;
115
+ /**
116
+ * Icon to represent the work item type. Default: "iconClipboard"
117
+ */
118
+ icon?: pulumi.Input<string>;
119
+ /**
120
+ * True if the work item type is enabled. Default: true
121
+ */
122
+ isEnabled?: pulumi.Input<boolean>;
123
+ /**
124
+ * Name of work item type. Changing this forces a new work item type to be created.
125
+ */
126
+ name?: pulumi.Input<string>;
127
+ /**
128
+ * A `pages` block as defined below.
129
+ */
130
+ pages?: pulumi.Input<pulumi.Input<inputs.WorkitemtrackingprocessWorkitemtypePage>[]>;
131
+ /**
132
+ * Reference name of the parent work item type. Changing this forces a new work item type to be created.
133
+ */
134
+ parentWorkItemReferenceName?: pulumi.Input<string>;
135
+ /**
136
+ * The ID of the process the work item type belongs to. Changing this forces a new work item type to be created.
137
+ */
138
+ processId?: pulumi.Input<string>;
139
+ /**
140
+ * Reference name of the work item type.
141
+ */
142
+ referenceName?: pulumi.Input<string>;
143
+ /**
144
+ * Url of the work item type.
145
+ */
146
+ url?: pulumi.Input<string>;
147
+ }
148
+ /**
149
+ * The set of arguments for constructing a WorkitemtrackingprocessWorkitemtype resource.
150
+ */
151
+ export interface WorkitemtrackingprocessWorkitemtypeArgs {
152
+ /**
153
+ * Color hexadecimal code to represent the work item type. Default: "#009ccc"
154
+ */
155
+ color?: pulumi.Input<string>;
156
+ /**
157
+ * Description of the work item type.
158
+ */
159
+ description?: pulumi.Input<string>;
160
+ /**
161
+ * Icon to represent the work item type. Default: "iconClipboard"
162
+ */
163
+ icon?: pulumi.Input<string>;
164
+ /**
165
+ * True if the work item type is enabled. Default: true
166
+ */
167
+ isEnabled?: pulumi.Input<boolean>;
168
+ /**
169
+ * Name of work item type. Changing this forces a new work item type to be created.
170
+ */
171
+ name?: pulumi.Input<string>;
172
+ /**
173
+ * Reference name of the parent work item type. Changing this forces a new work item type to be created.
174
+ */
175
+ parentWorkItemReferenceName?: pulumi.Input<string>;
176
+ /**
177
+ * The ID of the process the work item type belongs to. Changing this forces a new work item type to be created.
178
+ */
179
+ processId: pulumi.Input<string>;
180
+ }
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.WorkitemtrackingprocessWorkitemtype = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Manages a work item type for a process.
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 = new azuredevops.WorkitemtrackingprocessProcess("example", {
18
+ * name: "example-process",
19
+ * parentProcessTypeId: "adcc42ab-9882-485e-a3ed-7678f01f66bc",
20
+ * });
21
+ * const exampleWorkitemtrackingprocessWorkitemtype = new azuredevops.WorkitemtrackingprocessWorkitemtype("example", {
22
+ * processId: example.id,
23
+ * name: "example",
24
+ * description: "Example work item type",
25
+ * color: "#FF5733",
26
+ * icon: "icon_clipboard",
27
+ * });
28
+ * ```
29
+ *
30
+ * ## Relevant Links
31
+ *
32
+ * - [Azure DevOps Service REST API 7.1 - Work Item Types](https://learn.microsoft.com/en-us/rest/api/azure/devops/processes/work-item-types?view=azure-devops-rest-7.1)
33
+ *
34
+ * ## Import
35
+ *
36
+ * work item types can be imported using the complete resource id `process_id/reference_name`, e.g.
37
+ *
38
+ * ```sh
39
+ * $ pulumi import azuredevops:index/workitemtrackingprocessWorkitemtype:WorkitemtrackingprocessWorkitemtype example 00000000-0000-0000-0000-000000000000/MyProcess.CustomWorkItemType
40
+ * ```
41
+ */
42
+ class WorkitemtrackingprocessWorkitemtype extends pulumi.CustomResource {
43
+ /**
44
+ * Get an existing WorkitemtrackingprocessWorkitemtype resource's state with the given name, ID, and optional extra
45
+ * properties used to qualify the lookup.
46
+ *
47
+ * @param name The _unique_ name of the resulting resource.
48
+ * @param id The _unique_ provider ID of the resource to lookup.
49
+ * @param state Any extra arguments used during the lookup.
50
+ * @param opts Optional settings to control the behavior of the CustomResource.
51
+ */
52
+ static get(name, id, state, opts) {
53
+ return new WorkitemtrackingprocessWorkitemtype(name, state, { ...opts, id: id });
54
+ }
55
+ /**
56
+ * Returns true if the given object is an instance of WorkitemtrackingprocessWorkitemtype. This is designed to work even
57
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
58
+ */
59
+ static isInstance(obj) {
60
+ if (obj === undefined || obj === null) {
61
+ return false;
62
+ }
63
+ return obj['__pulumiType'] === WorkitemtrackingprocessWorkitemtype.__pulumiType;
64
+ }
65
+ constructor(name, argsOrState, opts) {
66
+ let resourceInputs = {};
67
+ opts = opts || {};
68
+ if (opts.id) {
69
+ const state = argsOrState;
70
+ resourceInputs["color"] = state?.color;
71
+ resourceInputs["description"] = state?.description;
72
+ resourceInputs["icon"] = state?.icon;
73
+ resourceInputs["isEnabled"] = state?.isEnabled;
74
+ resourceInputs["name"] = state?.name;
75
+ resourceInputs["pages"] = state?.pages;
76
+ resourceInputs["parentWorkItemReferenceName"] = state?.parentWorkItemReferenceName;
77
+ resourceInputs["processId"] = state?.processId;
78
+ resourceInputs["referenceName"] = state?.referenceName;
79
+ resourceInputs["url"] = state?.url;
80
+ }
81
+ else {
82
+ const args = argsOrState;
83
+ if (args?.processId === undefined && !opts.urn) {
84
+ throw new Error("Missing required property 'processId'");
85
+ }
86
+ resourceInputs["color"] = args?.color;
87
+ resourceInputs["description"] = args?.description;
88
+ resourceInputs["icon"] = args?.icon;
89
+ resourceInputs["isEnabled"] = args?.isEnabled;
90
+ resourceInputs["name"] = args?.name;
91
+ resourceInputs["parentWorkItemReferenceName"] = args?.parentWorkItemReferenceName;
92
+ resourceInputs["processId"] = args?.processId;
93
+ resourceInputs["pages"] = undefined /*out*/;
94
+ resourceInputs["referenceName"] = undefined /*out*/;
95
+ resourceInputs["url"] = undefined /*out*/;
96
+ }
97
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
98
+ super(WorkitemtrackingprocessWorkitemtype.__pulumiType, name, resourceInputs, opts);
99
+ }
100
+ }
101
+ exports.WorkitemtrackingprocessWorkitemtype = WorkitemtrackingprocessWorkitemtype;
102
+ /** @internal */
103
+ WorkitemtrackingprocessWorkitemtype.__pulumiType = 'azuredevops:index/workitemtrackingprocessWorkitemtype:WorkitemtrackingprocessWorkitemtype';
104
+ //# sourceMappingURL=workitemtrackingprocessWorkitemtype.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workitemtrackingprocessWorkitemtype.js","sourceRoot":"","sources":["../workitemtrackingprocessWorkitemtype.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,mCAAoC,SAAQ,MAAM,CAAC,cAAc;IAC1E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EA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