@pulumi/harness 0.17.0 → 0.17.1

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 (58) hide show
  1. package/autostopping/getRuleEcs.d.ts +82 -56
  2. package/autostopping/getRuleEcs.d.ts.map +1 -1
  3. package/autostopping/getRuleEcs.js +70 -12
  4. package/autostopping/getRuleEcs.js.map +1 -1
  5. package/autostopping/getRuleK8s.d.ts +82 -77
  6. package/autostopping/getRuleK8s.d.ts.map +1 -1
  7. package/autostopping/getRuleK8s.js +70 -14
  8. package/autostopping/getRuleK8s.js.map +1 -1
  9. package/autostopping/getRuleRds.d.ts +84 -46
  10. package/autostopping/getRuleRds.d.ts.map +1 -1
  11. package/autostopping/getRuleRds.js +70 -10
  12. package/autostopping/getRuleRds.js.map +1 -1
  13. package/autostopping/getRuleScaleGroup.d.ts +82 -77
  14. package/autostopping/getRuleScaleGroup.d.ts.map +1 -1
  15. package/autostopping/getRuleScaleGroup.js +70 -14
  16. package/autostopping/getRuleScaleGroup.js.map +1 -1
  17. package/autostopping/getRuleVm.d.ts +82 -86
  18. package/autostopping/getRuleVm.d.ts.map +1 -1
  19. package/autostopping/getRuleVm.js +70 -16
  20. package/autostopping/getRuleVm.js.map +1 -1
  21. package/autostopping/getRules.d.ts +14 -0
  22. package/autostopping/getRules.d.ts.map +1 -1
  23. package/autostopping/getRules.js +14 -0
  24. package/autostopping/getRules.js.map +1 -1
  25. package/package.json +2 -2
  26. package/platform/connectorAnthropicModel.d.ts +314 -0
  27. package/platform/connectorAnthropicModel.d.ts.map +1 -0
  28. package/platform/connectorAnthropicModel.js +237 -0
  29. package/platform/connectorAnthropicModel.js.map +1 -0
  30. package/platform/connectorOpenaiModel.d.ts +257 -0
  31. package/platform/connectorOpenaiModel.d.ts.map +1 -0
  32. package/platform/connectorOpenaiModel.js +180 -0
  33. package/platform/connectorOpenaiModel.js.map +1 -0
  34. package/platform/getConnectorAnthropicModel.d.ts +132 -0
  35. package/platform/getConnectorAnthropicModel.d.ts.map +1 -0
  36. package/platform/getConnectorAnthropicModel.js +79 -0
  37. package/platform/getConnectorAnthropicModel.js.map +1 -0
  38. package/platform/getConnectorOpenaiModel.d.ts +132 -0
  39. package/platform/getConnectorOpenaiModel.d.ts.map +1 -0
  40. package/platform/getConnectorOpenaiModel.js +79 -0
  41. package/platform/getConnectorOpenaiModel.js.map +1 -0
  42. package/platform/getHarRegistry.d.ts +3 -3
  43. package/platform/harRegistry.d.ts +60 -3
  44. package/platform/harRegistry.d.ts.map +1 -1
  45. package/platform/harRegistry.js +57 -0
  46. package/platform/harRegistry.js.map +1 -1
  47. package/platform/index.d.ts +15 -0
  48. package/platform/index.d.ts.map +1 -1
  49. package/platform/index.js +30 -9
  50. package/platform/index.js.map +1 -1
  51. package/platform/setting.d.ts +210 -0
  52. package/platform/setting.d.ts.map +1 -0
  53. package/platform/setting.js +163 -0
  54. package/platform/setting.js.map +1 -0
  55. package/types/input.d.ts +96 -696
  56. package/types/input.d.ts.map +1 -1
  57. package/types/output.d.ts +197 -303
  58. package/types/output.d.ts.map +1 -1
@@ -0,0 +1,163 @@
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.Setting = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../utilities"));
31
+ /**
32
+ * Resource for managing a Harness default setting (Account/Organization/Project Settings) at account, organization or project scope. Destroying this resource restores the setting to the value inherited from the parent scope (or the Harness default).
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as harness from "@pulumi/harness";
39
+ *
40
+ * // Account level setting
41
+ * const account = new harness.platform.Setting("account", {
42
+ * identifier: "enforce_git_experience",
43
+ * value: "true",
44
+ * allowOverrides: true,
45
+ * });
46
+ * // Organization level setting that projects cannot override
47
+ * const org = new harness.platform.Setting("org", {
48
+ * identifier: "git_experience_repo_allowlist",
49
+ * orgId: "org_id",
50
+ * value: "my-org/allowed-repo",
51
+ * allowOverrides: false,
52
+ * });
53
+ * // Project level settings, configured when the project is created
54
+ * const example = new harness.platform.Project("example", {
55
+ * identifier: "example",
56
+ * name: "example",
57
+ * orgId: "org_id",
58
+ * });
59
+ * const defaultSettings = {
60
+ * defaultConnectorForGitExperience: "account.gitlab_connector",
61
+ * defaultRepoForGitExperience: "my-org/my-repo",
62
+ * };
63
+ * const project: harness.platform.Setting[] = [];
64
+ * for (const range of Object.entries(defaultSettings).sort().map(([k, v]) => ({key: k, value: v}))) {
65
+ * project.push(new harness.platform.Setting(`project-${range.key}`, {
66
+ * identifier: range.key,
67
+ * orgId: example.orgId,
68
+ * projectId: example.id,
69
+ * value: range.value,
70
+ * }));
71
+ * }
72
+ * ```
73
+ *
74
+ * ## Import
75
+ *
76
+ * The `pulumi import` command can be used, for example:
77
+ *
78
+ * Import account level setting
79
+ *
80
+ * ```sh
81
+ * $ pulumi import harness:platform/setting:Setting example <setting_identifier>
82
+ * ```
83
+ *
84
+ * Import org level setting
85
+ *
86
+ * ```sh
87
+ * $ pulumi import harness:platform/setting:Setting example <org_id>/<setting_identifier>
88
+ * ```
89
+ *
90
+ * Import project level setting
91
+ *
92
+ * ```sh
93
+ * $ pulumi import harness:platform/setting:Setting example <org_id>/<project_id>/<setting_identifier>
94
+ * ```
95
+ */
96
+ class Setting extends pulumi.CustomResource {
97
+ /**
98
+ * Get an existing Setting resource's state with the given name, ID, and optional extra
99
+ * properties used to qualify the lookup.
100
+ *
101
+ * @param name The _unique_ name of the resulting resource.
102
+ * @param id The _unique_ provider ID of the resource to lookup.
103
+ * @param state Any extra arguments used during the lookup.
104
+ * @param opts Optional settings to control the behavior of the CustomResource.
105
+ */
106
+ static get(name, id, state, opts) {
107
+ return new Setting(name, state, { ...opts, id: id });
108
+ }
109
+ /** @internal */
110
+ static __pulumiType = 'harness:platform/setting:Setting';
111
+ /**
112
+ * Returns true if the given object is an instance of Setting. This is designed to work even
113
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
114
+ */
115
+ static isInstance(obj) {
116
+ if (obj === undefined || obj === null) {
117
+ return false;
118
+ }
119
+ return obj['__pulumiType'] === Setting.__pulumiType;
120
+ }
121
+ constructor(name, argsOrState, opts) {
122
+ let resourceInputs = {};
123
+ opts = opts || {};
124
+ if (opts.id) {
125
+ const state = argsOrState;
126
+ resourceInputs["allowOverrides"] = state?.allowOverrides;
127
+ resourceInputs["allowedValues"] = state?.allowedValues;
128
+ resourceInputs["category"] = state?.category;
129
+ resourceInputs["groupIdentifier"] = state?.groupIdentifier;
130
+ resourceInputs["identifier"] = state?.identifier;
131
+ resourceInputs["lastModifiedAt"] = state?.lastModifiedAt;
132
+ resourceInputs["name"] = state?.name;
133
+ resourceInputs["orgId"] = state?.orgId;
134
+ resourceInputs["projectId"] = state?.projectId;
135
+ resourceInputs["value"] = state?.value;
136
+ resourceInputs["valueType"] = state?.valueType;
137
+ }
138
+ else {
139
+ const args = argsOrState;
140
+ if (args?.identifier === undefined && !opts.urn) {
141
+ throw new Error("Missing required property 'identifier'");
142
+ }
143
+ if (args?.value === undefined && !opts.urn) {
144
+ throw new Error("Missing required property 'value'");
145
+ }
146
+ resourceInputs["allowOverrides"] = args?.allowOverrides;
147
+ resourceInputs["identifier"] = args?.identifier;
148
+ resourceInputs["orgId"] = args?.orgId;
149
+ resourceInputs["projectId"] = args?.projectId;
150
+ resourceInputs["value"] = args?.value;
151
+ resourceInputs["allowedValues"] = undefined /*out*/;
152
+ resourceInputs["category"] = undefined /*out*/;
153
+ resourceInputs["groupIdentifier"] = undefined /*out*/;
154
+ resourceInputs["lastModifiedAt"] = undefined /*out*/;
155
+ resourceInputs["name"] = undefined /*out*/;
156
+ resourceInputs["valueType"] = undefined /*out*/;
157
+ }
158
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
159
+ super(Setting.__pulumiType, name, resourceInputs, opts);
160
+ }
161
+ }
162
+ exports.Setting = Setting;
163
+ //# sourceMappingURL=setting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setting.js","sourceRoot":"","sources":["../../platform/setting.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAA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