@pulumi/harness 0.14.5 → 0.14.6

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,231 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.HarLifecycleRule = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../utilities"));
31
+ /**
32
+ * Resource for creating and managing Harness Artifact Registry Lifecycle Rules.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as harness from "@pulumi/harness";
39
+ *
40
+ * // Account-scoped DELETE rule — keep last 10 versions, runs nightly
41
+ * const nightlyCleanup = new harness.platform.HarLifecycleRule("nightly_cleanup", {
42
+ * accountId: "your-account-id",
43
+ * name: "nightly-cleanup",
44
+ * action: "DELETE",
45
+ * description: "Keep last 10 versions of all artifacts",
46
+ * applyTo: {
47
+ * mode: "ALL_IN_SCOPE",
48
+ * },
49
+ * criteria: {
50
+ * match: "ALL",
51
+ * rules: [{
52
+ * type: "KEEP_LAST_N",
53
+ * value: 10,
54
+ * }],
55
+ * },
56
+ * schedule: {
57
+ * expression: "0 2 * * *",
58
+ * timezone: "UTC",
59
+ * },
60
+ * });
61
+ * // Project-scoped DELETE rule — delete artifacts older than 30 days
62
+ * const ageBasedCleanup = new harness.platform.HarLifecycleRule("age_based_cleanup", {
63
+ * accountId: "your-account-id",
64
+ * orgId: "your-org-id",
65
+ * projectId: "your-project-id",
66
+ * name: "age-based-cleanup",
67
+ * action: "DELETE",
68
+ * applyTo: {
69
+ * mode: "ALL_IN_SCOPE",
70
+ * },
71
+ * criteria: {
72
+ * match: "ALL",
73
+ * rules: [{
74
+ * type: "AGE_BASED",
75
+ * value: 30,
76
+ * unit: "DAYS",
77
+ * }],
78
+ * },
79
+ * });
80
+ * // Org-scoped PROTECT rule — protect images in specific registries matching a tag pattern
81
+ * const protectProd = new harness.platform.HarLifecycleRule("protect_prod", {
82
+ * accountId: "your-account-id",
83
+ * orgId: "your-org-id",
84
+ * name: "protect-prod-images",
85
+ * action: "PROTECT",
86
+ * packageType: "DOCKER",
87
+ * applyTo: {
88
+ * mode: "EXPLICIT",
89
+ * registries: [
90
+ * "prod-registry",
91
+ * "release-registry",
92
+ * ],
93
+ * },
94
+ * filterConfig: {
95
+ * packageType: "DOCKER",
96
+ * tagNameAllowedPatterns: [
97
+ * "v*",
98
+ * "release-*",
99
+ * ],
100
+ * },
101
+ * });
102
+ * // Account-scoped DELETE rule with multiple criteria (ANY match)
103
+ * const multiCriteriaCleanup = new harness.platform.HarLifecycleRule("multi_criteria_cleanup", {
104
+ * accountId: "your-account-id",
105
+ * name: "multi-criteria-cleanup",
106
+ * action: "DELETE",
107
+ * applyTo: {
108
+ * mode: "ALL_IN_SCOPE",
109
+ * },
110
+ * criteria: {
111
+ * match: "ANY",
112
+ * rules: [
113
+ * {
114
+ * type: "KEEP_LAST_N",
115
+ * value: 5,
116
+ * },
117
+ * {
118
+ * type: "AGE_BASED",
119
+ * value: 90,
120
+ * unit: "DAYS",
121
+ * },
122
+ * ],
123
+ * },
124
+ * });
125
+ * ```
126
+ *
127
+ * ## Import
128
+ *
129
+ * The `pulumi import` command can be used, for example:
130
+ *
131
+ * Account level: <account_id>/<rule_id>
132
+ *
133
+ * ```sh
134
+ * $ pulumi import harness:platform/harLifecycleRule:HarLifecycleRule example <account_id>/<rule_id>
135
+ * ```
136
+ *
137
+ * Org level: <account_id>/<org_id>/<rule_id>
138
+ *
139
+ * ```sh
140
+ * $ pulumi import harness:platform/harLifecycleRule:HarLifecycleRule example <account_id>/<org_id>/<rule_id>
141
+ * ```
142
+ *
143
+ * Project level: <account_id>/<org_id>/<project_id>/<rule_id>
144
+ *
145
+ * ```sh
146
+ * $ pulumi import harness:platform/harLifecycleRule:HarLifecycleRule example <account_id>/<org_id>/<project_id>/<rule_id>
147
+ * ```
148
+ */
149
+ class HarLifecycleRule extends pulumi.CustomResource {
150
+ /**
151
+ * Get an existing HarLifecycleRule resource's state with the given name, ID, and optional extra
152
+ * properties used to qualify the lookup.
153
+ *
154
+ * @param name The _unique_ name of the resulting resource.
155
+ * @param id The _unique_ provider ID of the resource to lookup.
156
+ * @param state Any extra arguments used during the lookup.
157
+ * @param opts Optional settings to control the behavior of the CustomResource.
158
+ */
159
+ static get(name, id, state, opts) {
160
+ return new HarLifecycleRule(name, state, { ...opts, id: id });
161
+ }
162
+ /** @internal */
163
+ static __pulumiType = 'harness:platform/harLifecycleRule:HarLifecycleRule';
164
+ /**
165
+ * Returns true if the given object is an instance of HarLifecycleRule. This is designed to work even
166
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
167
+ */
168
+ static isInstance(obj) {
169
+ if (obj === undefined || obj === null) {
170
+ return false;
171
+ }
172
+ return obj['__pulumiType'] === HarLifecycleRule.__pulumiType;
173
+ }
174
+ constructor(name, argsOrState, opts) {
175
+ let resourceInputs = {};
176
+ opts = opts || {};
177
+ if (opts.id) {
178
+ const state = argsOrState;
179
+ resourceInputs["accountId"] = state?.accountId;
180
+ resourceInputs["action"] = state?.action;
181
+ resourceInputs["applyTo"] = state?.applyTo;
182
+ resourceInputs["createdAt"] = state?.createdAt;
183
+ resourceInputs["criteria"] = state?.criteria;
184
+ resourceInputs["description"] = state?.description;
185
+ resourceInputs["enabled"] = state?.enabled;
186
+ resourceInputs["filterConfig"] = state?.filterConfig;
187
+ resourceInputs["lastRunAt"] = state?.lastRunAt;
188
+ resourceInputs["name"] = state?.name;
189
+ resourceInputs["nextRunAt"] = state?.nextRunAt;
190
+ resourceInputs["orgId"] = state?.orgId;
191
+ resourceInputs["packageType"] = state?.packageType;
192
+ resourceInputs["projectId"] = state?.projectId;
193
+ resourceInputs["ruleId"] = state?.ruleId;
194
+ resourceInputs["schedule"] = state?.schedule;
195
+ resourceInputs["updatedAt"] = state?.updatedAt;
196
+ }
197
+ else {
198
+ const args = argsOrState;
199
+ if (args?.accountId === undefined && !opts.urn) {
200
+ throw new Error("Missing required property 'accountId'");
201
+ }
202
+ if (args?.action === undefined && !opts.urn) {
203
+ throw new Error("Missing required property 'action'");
204
+ }
205
+ if (args?.applyTo === undefined && !opts.urn) {
206
+ throw new Error("Missing required property 'applyTo'");
207
+ }
208
+ resourceInputs["accountId"] = args?.accountId;
209
+ resourceInputs["action"] = args?.action;
210
+ resourceInputs["applyTo"] = args?.applyTo;
211
+ resourceInputs["criteria"] = args?.criteria;
212
+ resourceInputs["description"] = args?.description;
213
+ resourceInputs["enabled"] = args?.enabled;
214
+ resourceInputs["filterConfig"] = args?.filterConfig;
215
+ resourceInputs["name"] = args?.name;
216
+ resourceInputs["orgId"] = args?.orgId;
217
+ resourceInputs["packageType"] = args?.packageType;
218
+ resourceInputs["projectId"] = args?.projectId;
219
+ resourceInputs["schedule"] = args?.schedule;
220
+ resourceInputs["createdAt"] = undefined /*out*/;
221
+ resourceInputs["lastRunAt"] = undefined /*out*/;
222
+ resourceInputs["nextRunAt"] = undefined /*out*/;
223
+ resourceInputs["ruleId"] = undefined /*out*/;
224
+ resourceInputs["updatedAt"] = undefined /*out*/;
225
+ }
226
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
227
+ super(HarLifecycleRule.__pulumiType, name, resourceInputs, opts);
228
+ }
229
+ }
230
+ exports.HarLifecycleRule = HarLifecycleRule;
231
+ //# sourceMappingURL=harLifecycleRule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harLifecycleRule.js","sourceRoot":"","sources":["../../platform/harLifecycleRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqHG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,oDAAoD,CAAC;IAE3F;;;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,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,CAAC;YAC5C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA3JL,4CA4JC"}
@@ -0,0 +1,139 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Resource for managing workspace template associations in IaCM.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as harness from "@pulumi/harness";
10
+ *
11
+ * const example = new harness.platform.IacmWorkspaceTemplate("example", {
12
+ * orgId: test.id,
13
+ * projectId: testHarnessPlatformProject.id,
14
+ * workspaceId: exampleHarnessPlatformWorkspace.identifier,
15
+ * templateId: "my_template",
16
+ * version: "v1.0.0",
17
+ * });
18
+ * ```
19
+ *
20
+ * ## Import
21
+ *
22
+ * The `pulumi import` command can be used, for example:
23
+ *
24
+ * ```sh
25
+ * $ pulumi import harness:platform/iacmWorkspaceTemplate:IacmWorkspaceTemplate example <org_id>/<project_id>/<template_id>/<workspace_id>
26
+ * ```
27
+ */
28
+ export declare class IacmWorkspaceTemplate extends pulumi.CustomResource {
29
+ /**
30
+ * Get an existing IacmWorkspaceTemplate resource's state with the given name, ID, and optional extra
31
+ * properties used to qualify the lookup.
32
+ *
33
+ * @param name The _unique_ name of the resulting resource.
34
+ * @param id The _unique_ provider ID of the resource to lookup.
35
+ * @param state Any extra arguments used during the lookup.
36
+ * @param opts Optional settings to control the behavior of the CustomResource.
37
+ */
38
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: IacmWorkspaceTemplateState, opts?: pulumi.CustomResourceOptions): IacmWorkspaceTemplate;
39
+ /**
40
+ * Returns true if the given object is an instance of IacmWorkspaceTemplate. This is designed to work even
41
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
42
+ */
43
+ static isInstance(obj: any): obj is IacmWorkspaceTemplate;
44
+ /**
45
+ * Timestamp when the association was created.
46
+ */
47
+ readonly createdAt: pulumi.Output<number>;
48
+ /**
49
+ * Organization identifier.
50
+ */
51
+ readonly orgId: pulumi.Output<string>;
52
+ /**
53
+ * Project identifier.
54
+ */
55
+ readonly projectId: pulumi.Output<string>;
56
+ /**
57
+ * Template identifier to associate with the workspace.
58
+ */
59
+ readonly templateId: pulumi.Output<string>;
60
+ /**
61
+ * Timestamp when the association was last updated.
62
+ */
63
+ readonly updatedAt: pulumi.Output<number>;
64
+ /**
65
+ * Template version.
66
+ */
67
+ readonly version: pulumi.Output<string>;
68
+ /**
69
+ * Workspace identifier to associate the template with.
70
+ */
71
+ readonly workspaceId: pulumi.Output<string>;
72
+ /**
73
+ * Create a IacmWorkspaceTemplate resource with the given unique name, arguments, and options.
74
+ *
75
+ * @param name The _unique_ name of the resource.
76
+ * @param args The arguments to use to populate this resource's properties.
77
+ * @param opts A bag of options that control this resource's behavior.
78
+ */
79
+ constructor(name: string, args: IacmWorkspaceTemplateArgs, opts?: pulumi.CustomResourceOptions);
80
+ }
81
+ /**
82
+ * Input properties used for looking up and filtering IacmWorkspaceTemplate resources.
83
+ */
84
+ export interface IacmWorkspaceTemplateState {
85
+ /**
86
+ * Timestamp when the association was created.
87
+ */
88
+ createdAt?: pulumi.Input<number | undefined>;
89
+ /**
90
+ * Organization identifier.
91
+ */
92
+ orgId?: pulumi.Input<string | undefined>;
93
+ /**
94
+ * Project identifier.
95
+ */
96
+ projectId?: pulumi.Input<string | undefined>;
97
+ /**
98
+ * Template identifier to associate with the workspace.
99
+ */
100
+ templateId?: pulumi.Input<string | undefined>;
101
+ /**
102
+ * Timestamp when the association was last updated.
103
+ */
104
+ updatedAt?: pulumi.Input<number | undefined>;
105
+ /**
106
+ * Template version.
107
+ */
108
+ version?: pulumi.Input<string | undefined>;
109
+ /**
110
+ * Workspace identifier to associate the template with.
111
+ */
112
+ workspaceId?: pulumi.Input<string | undefined>;
113
+ }
114
+ /**
115
+ * The set of arguments for constructing a IacmWorkspaceTemplate resource.
116
+ */
117
+ export interface IacmWorkspaceTemplateArgs {
118
+ /**
119
+ * Organization identifier.
120
+ */
121
+ orgId: pulumi.Input<string>;
122
+ /**
123
+ * Project identifier.
124
+ */
125
+ projectId: pulumi.Input<string>;
126
+ /**
127
+ * Template identifier to associate with the workspace.
128
+ */
129
+ templateId: pulumi.Input<string>;
130
+ /**
131
+ * Template version.
132
+ */
133
+ version: pulumi.Input<string>;
134
+ /**
135
+ * Workspace identifier to associate the template with.
136
+ */
137
+ workspaceId: pulumi.Input<string>;
138
+ }
139
+ //# sourceMappingURL=iacmWorkspaceTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iacmWorkspaceTemplate.d.ts","sourceRoot":"","sources":["../../platform/iacmWorkspaceTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,0BAA0B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,qBAAqB;IAO5J;;;OAGG;WAC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IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAClD;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACrC"}
@@ -0,0 +1,125 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.IacmWorkspaceTemplate = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../utilities"));
31
+ /**
32
+ * Resource for managing workspace template associations in IaCM.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as harness from "@pulumi/harness";
39
+ *
40
+ * const example = new harness.platform.IacmWorkspaceTemplate("example", {
41
+ * orgId: test.id,
42
+ * projectId: testHarnessPlatformProject.id,
43
+ * workspaceId: exampleHarnessPlatformWorkspace.identifier,
44
+ * templateId: "my_template",
45
+ * version: "v1.0.0",
46
+ * });
47
+ * ```
48
+ *
49
+ * ## Import
50
+ *
51
+ * The `pulumi import` command can be used, for example:
52
+ *
53
+ * ```sh
54
+ * $ pulumi import harness:platform/iacmWorkspaceTemplate:IacmWorkspaceTemplate example <org_id>/<project_id>/<template_id>/<workspace_id>
55
+ * ```
56
+ */
57
+ class IacmWorkspaceTemplate extends pulumi.CustomResource {
58
+ /**
59
+ * Get an existing IacmWorkspaceTemplate resource's state with the given name, ID, and optional extra
60
+ * properties used to qualify the lookup.
61
+ *
62
+ * @param name The _unique_ name of the resulting resource.
63
+ * @param id The _unique_ provider ID of the resource to lookup.
64
+ * @param state Any extra arguments used during the lookup.
65
+ * @param opts Optional settings to control the behavior of the CustomResource.
66
+ */
67
+ static get(name, id, state, opts) {
68
+ return new IacmWorkspaceTemplate(name, state, { ...opts, id: id });
69
+ }
70
+ /** @internal */
71
+ static __pulumiType = 'harness:platform/iacmWorkspaceTemplate:IacmWorkspaceTemplate';
72
+ /**
73
+ * Returns true if the given object is an instance of IacmWorkspaceTemplate. This is designed to work even
74
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
75
+ */
76
+ static isInstance(obj) {
77
+ if (obj === undefined || obj === null) {
78
+ return false;
79
+ }
80
+ return obj['__pulumiType'] === IacmWorkspaceTemplate.__pulumiType;
81
+ }
82
+ constructor(name, argsOrState, opts) {
83
+ let resourceInputs = {};
84
+ opts = opts || {};
85
+ if (opts.id) {
86
+ const state = argsOrState;
87
+ resourceInputs["createdAt"] = state?.createdAt;
88
+ resourceInputs["orgId"] = state?.orgId;
89
+ resourceInputs["projectId"] = state?.projectId;
90
+ resourceInputs["templateId"] = state?.templateId;
91
+ resourceInputs["updatedAt"] = state?.updatedAt;
92
+ resourceInputs["version"] = state?.version;
93
+ resourceInputs["workspaceId"] = state?.workspaceId;
94
+ }
95
+ else {
96
+ const args = argsOrState;
97
+ if (args?.orgId === undefined && !opts.urn) {
98
+ throw new Error("Missing required property 'orgId'");
99
+ }
100
+ if (args?.projectId === undefined && !opts.urn) {
101
+ throw new Error("Missing required property 'projectId'");
102
+ }
103
+ if (args?.templateId === undefined && !opts.urn) {
104
+ throw new Error("Missing required property 'templateId'");
105
+ }
106
+ if (args?.version === undefined && !opts.urn) {
107
+ throw new Error("Missing required property 'version'");
108
+ }
109
+ if (args?.workspaceId === undefined && !opts.urn) {
110
+ throw new Error("Missing required property 'workspaceId'");
111
+ }
112
+ resourceInputs["orgId"] = args?.orgId;
113
+ resourceInputs["projectId"] = args?.projectId;
114
+ resourceInputs["templateId"] = args?.templateId;
115
+ resourceInputs["version"] = args?.version;
116
+ resourceInputs["workspaceId"] = args?.workspaceId;
117
+ resourceInputs["createdAt"] = undefined /*out*/;
118
+ resourceInputs["updatedAt"] = undefined /*out*/;
119
+ }
120
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
121
+ super(IacmWorkspaceTemplate.__pulumiType, name, resourceInputs, opts);
122
+ }
123
+ }
124
+ exports.IacmWorkspaceTemplate = IacmWorkspaceTemplate;
125
+ //# sourceMappingURL=iacmWorkspaceTemplate.js.map
@@ -0,0 +1 @@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GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AAxGL,sDAyGC"}
@@ -595,6 +595,9 @@ export declare const GitopsFilters: typeof import("./gitopsFilters").GitopsFilte
595
595
  export { GitxWebhookArgs, GitxWebhookState } from "./gitxWebhook";
596
596
  export type GitxWebhook = import("./gitxWebhook").GitxWebhook;
597
597
  export declare const GitxWebhook: typeof import("./gitxWebhook").GitxWebhook;
598
+ export { HarLifecycleRuleArgs, HarLifecycleRuleState } from "./harLifecycleRule";
599
+ export type HarLifecycleRule = import("./harLifecycleRule").HarLifecycleRule;
600
+ export declare const HarLifecycleRule: typeof import("./harLifecycleRule").HarLifecycleRule;
598
601
  export { HarRegistryArgs, HarRegistryState } from "./harRegistry";
599
602
  export type HarRegistry = import("./harRegistry").HarRegistry;
600
603
  export declare const HarRegistry: typeof import("./harRegistry").HarRegistry;
@@ -610,6 +613,9 @@ export declare const IacmAnsiblePlaybook: typeof import("./iacmAnsiblePlaybook")
610
613
  export { IacmDefaultPipelineArgs, IacmDefaultPipelineState } from "./iacmDefaultPipeline";
611
614
  export type IacmDefaultPipeline = import("./iacmDefaultPipeline").IacmDefaultPipeline;
612
615
  export declare const IacmDefaultPipeline: typeof import("./iacmDefaultPipeline").IacmDefaultPipeline;
616
+ export { IacmWorkspaceTemplateArgs, IacmWorkspaceTemplateState } from "./iacmWorkspaceTemplate";
617
+ export type IacmWorkspaceTemplate = import("./iacmWorkspaceTemplate").IacmWorkspaceTemplate;
618
+ export declare const IacmWorkspaceTemplate: typeof import("./iacmWorkspaceTemplate").IacmWorkspaceTemplate;
613
619
  export { IdpCatalogEntityArgs, IdpCatalogEntityState } from "./idpCatalogEntity";
614
620
  export type IdpCatalogEntity = import("./idpCatalogEntity").IdpCatalogEntity;
615
621
  export declare const IdpCatalogEntity: typeof import("./idpCatalogEntity").IdpCatalogEntity;