@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
@@ -1,49 +1,56 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import * as inputs from "../types/input";
3
2
  import * as outputs from "../types/output";
4
3
  /**
5
4
  * Data source for retrieving a Harness AutoStopping rule for VMs.
6
5
  *
7
6
  * ## Example Usage
7
+ *
8
+ * ### Lookup by ID
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as harness from "@pulumi/harness";
13
+ *
14
+ * const byId = harness.autostopping.getRuleVm({
15
+ * identifier: "12345",
16
+ * });
17
+ * ```
18
+ *
19
+ * ### Lookup by name (regex)
20
+ *
21
+ * ```typescript
22
+ * import * as pulumi from "@pulumi/pulumi";
23
+ * import * as harness from "@pulumi/harness";
24
+ *
25
+ * const byName = harness.autostopping.getRuleVm({
26
+ * name: "^my-vm-rule$",
27
+ * });
28
+ * ```
29
+ *
30
+ * ### Lookup by name pattern
31
+ *
32
+ * ```typescript
33
+ * import * as pulumi from "@pulumi/pulumi";
34
+ * import * as harness from "@pulumi/harness";
35
+ *
36
+ * const byPattern = harness.autostopping.getRuleVm({
37
+ * name: "my-vm-.*-prod",
38
+ * });
39
+ * ```
8
40
  */
9
- export declare function getRuleVm(args: GetRuleVmArgs, opts?: pulumi.InvokeOptions): Promise<GetRuleVmResult>;
41
+ export declare function getRuleVm(args?: GetRuleVmArgs, opts?: pulumi.InvokeOptions): Promise<GetRuleVmResult>;
10
42
  /**
11
43
  * A collection of arguments for invoking getRuleVm.
12
44
  */
13
45
  export interface GetRuleVmArgs {
14
46
  /**
15
- * Id of the cloud connector
16
- */
17
- cloudConnectorId: string;
18
- /**
19
- * Custom URLs used to access the instances
20
- */
21
- customDomains?: string[];
22
- /**
23
- * Dependent rules
24
- */
25
- depends?: inputs.autostopping.GetRuleVmDepend[];
26
- filter: inputs.autostopping.GetRuleVmFilter;
27
- /**
28
- * Http routing configuration
29
- */
30
- https?: inputs.autostopping.GetRuleVmHttp[];
31
- /**
32
- * Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
33
- */
34
- idleTimeMins?: number;
35
- /**
36
- * Name of the rule
37
- */
38
- name: string;
39
- /**
40
- * TCP routing configuration
47
+ * Unique identifier of the resource. Either `identifier` or `name` must be specified.
41
48
  */
42
- tcps?: inputs.autostopping.GetRuleVmTcp[];
49
+ identifier?: string;
43
50
  /**
44
- * Boolean that indicates whether the selected instances should be converted to spot vm
51
+ * Name or regex pattern to match the rule name. Either `identifier` or `name` must be specified.
45
52
  */
46
- useSpot?: boolean;
53
+ name?: string;
47
54
  }
48
55
  /**
49
56
  * A collection of values returned by getRuleVm.
@@ -53,92 +60,81 @@ export interface GetRuleVmResult {
53
60
  * Id of the cloud connector
54
61
  */
55
62
  readonly cloudConnectorId: string;
56
- /**
57
- * Connection information (source ports on the proxy). Keys: "ssh" and "rdp" for SSH/RDP; other keys are target port as string (e.g. "80") for forward_rule, value is the proxy source port.
58
- */
59
- readonly connect: {
60
- [key: string]: number;
61
- };
62
- /**
63
- * Custom URLs used to access the instances
64
- */
65
- readonly customDomains?: string[];
66
63
  /**
67
64
  * Dependent rules
68
65
  */
69
- readonly depends?: outputs.autostopping.GetRuleVmDepend[];
70
- readonly filter: outputs.autostopping.GetRuleVmFilter;
66
+ readonly depends: outputs.autostopping.GetRuleVmDepend[];
71
67
  /**
72
- * Http routing configuration
68
+ * Boolean that indicates whether the AutoStopping rule is in DryRun mode
73
69
  */
74
- readonly https?: outputs.autostopping.GetRuleVmHttp[];
70
+ readonly dryRun: boolean;
75
71
  /**
76
72
  * The provider-assigned unique ID for this managed resource.
77
73
  */
78
74
  readonly id: string;
79
75
  /**
80
- * Unique identifier of the resource
76
+ * Unique identifier of the resource. Either `identifier` or `name` must be specified.
81
77
  */
82
78
  readonly identifier: string;
83
79
  /**
84
80
  * Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
85
81
  */
86
- readonly idleTimeMins?: number;
82
+ readonly idleTimeMins: number;
87
83
  /**
88
- * Name of the rule
84
+ * Name or regex pattern to match the rule name. Either `identifier` or `name` must be specified.
89
85
  */
90
86
  readonly name: string;
91
- /**
92
- * TCP routing configuration
93
- */
94
- readonly tcps?: outputs.autostopping.GetRuleVmTcp[];
95
- /**
96
- * Boolean that indicates whether the selected instances should be converted to spot vm
97
- */
98
- readonly useSpot?: boolean;
99
87
  }
100
88
  /**
101
89
  * Data source for retrieving a Harness AutoStopping rule for VMs.
102
90
  *
103
91
  * ## Example Usage
92
+ *
93
+ * ### Lookup by ID
94
+ *
95
+ * ```typescript
96
+ * import * as pulumi from "@pulumi/pulumi";
97
+ * import * as harness from "@pulumi/harness";
98
+ *
99
+ * const byId = harness.autostopping.getRuleVm({
100
+ * identifier: "12345",
101
+ * });
102
+ * ```
103
+ *
104
+ * ### Lookup by name (regex)
105
+ *
106
+ * ```typescript
107
+ * import * as pulumi from "@pulumi/pulumi";
108
+ * import * as harness from "@pulumi/harness";
109
+ *
110
+ * const byName = harness.autostopping.getRuleVm({
111
+ * name: "^my-vm-rule$",
112
+ * });
113
+ * ```
114
+ *
115
+ * ### Lookup by name pattern
116
+ *
117
+ * ```typescript
118
+ * import * as pulumi from "@pulumi/pulumi";
119
+ * import * as harness from "@pulumi/harness";
120
+ *
121
+ * const byPattern = harness.autostopping.getRuleVm({
122
+ * name: "my-vm-.*-prod",
123
+ * });
124
+ * ```
104
125
  */
105
- export declare function getRuleVmOutput(args: GetRuleVmOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRuleVmResult>;
126
+ export declare function getRuleVmOutput(args?: GetRuleVmOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRuleVmResult>;
106
127
  /**
107
128
  * A collection of arguments for invoking getRuleVm.
108
129
  */
109
130
  export interface GetRuleVmOutputArgs {
110
131
  /**
111
- * Id of the cloud connector
112
- */
113
- cloudConnectorId: pulumi.Input<string>;
114
- /**
115
- * Custom URLs used to access the instances
116
- */
117
- customDomains?: pulumi.Input<pulumi.Input<string>[] | undefined>;
118
- /**
119
- * Dependent rules
120
- */
121
- depends?: pulumi.Input<pulumi.Input<inputs.autostopping.GetRuleVmDependArgs>[] | undefined>;
122
- filter: pulumi.Input<inputs.autostopping.GetRuleVmFilterArgs>;
123
- /**
124
- * Http routing configuration
125
- */
126
- https?: pulumi.Input<pulumi.Input<inputs.autostopping.GetRuleVmHttpArgs>[] | undefined>;
127
- /**
128
- * Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
129
- */
130
- idleTimeMins?: pulumi.Input<number | undefined>;
131
- /**
132
- * Name of the rule
133
- */
134
- name: pulumi.Input<string>;
135
- /**
136
- * TCP routing configuration
132
+ * Unique identifier of the resource. Either `identifier` or `name` must be specified.
137
133
  */
138
- tcps?: pulumi.Input<pulumi.Input<inputs.autostopping.GetRuleVmTcpArgs>[] | undefined>;
134
+ identifier?: pulumi.Input<string | undefined>;
139
135
  /**
140
- * Boolean that indicates whether the selected instances should be converted to spot vm
136
+ * Name or regex pattern to match the rule name. Either `identifier` or `name` must be specified.
141
137
  */
142
- useSpot?: pulumi.Input<boolean | undefined>;
138
+ name?: pulumi.Input<string | undefined>;
143
139
  }
144
140
  //# sourceMappingURL=getRuleVm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRuleVm.d.ts","sourceRoot":"","sources":["../../autostopping/getRuleVm.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAapG;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC;IAChD,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC,eAAe,CAAC;IAC5C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC;IAC5C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC;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G;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC;IACzD;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,eAAe,CAAC,IAAI,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAO7H;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
@@ -32,19 +32,46 @@ const utilities = __importStar(require("../utilities"));
32
32
  * Data source for retrieving a Harness AutoStopping rule for VMs.
33
33
  *
34
34
  * ## Example Usage
35
+ *
36
+ * ### Lookup by ID
37
+ *
38
+ * ```typescript
39
+ * import * as pulumi from "@pulumi/pulumi";
40
+ * import * as harness from "@pulumi/harness";
41
+ *
42
+ * const byId = harness.autostopping.getRuleVm({
43
+ * identifier: "12345",
44
+ * });
45
+ * ```
46
+ *
47
+ * ### Lookup by name (regex)
48
+ *
49
+ * ```typescript
50
+ * import * as pulumi from "@pulumi/pulumi";
51
+ * import * as harness from "@pulumi/harness";
52
+ *
53
+ * const byName = harness.autostopping.getRuleVm({
54
+ * name: "^my-vm-rule$",
55
+ * });
56
+ * ```
57
+ *
58
+ * ### Lookup by name pattern
59
+ *
60
+ * ```typescript
61
+ * import * as pulumi from "@pulumi/pulumi";
62
+ * import * as harness from "@pulumi/harness";
63
+ *
64
+ * const byPattern = harness.autostopping.getRuleVm({
65
+ * name: "my-vm-.*-prod",
66
+ * });
67
+ * ```
35
68
  */
36
69
  function getRuleVm(args, opts) {
70
+ args = args || {};
37
71
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
38
72
  return pulumi.runtime.invoke("harness:autostopping/getRuleVm:getRuleVm", {
39
- "cloudConnectorId": args.cloudConnectorId,
40
- "customDomains": args.customDomains,
41
- "depends": args.depends,
42
- "filter": args.filter,
43
- "https": args.https,
44
- "idleTimeMins": args.idleTimeMins,
73
+ "identifier": args.identifier,
45
74
  "name": args.name,
46
- "tcps": args.tcps,
47
- "useSpot": args.useSpot,
48
75
  }, opts);
49
76
  }
50
77
  exports.getRuleVm = getRuleVm;
@@ -52,19 +79,46 @@ exports.getRuleVm = getRuleVm;
52
79
  * Data source for retrieving a Harness AutoStopping rule for VMs.
53
80
  *
54
81
  * ## Example Usage
82
+ *
83
+ * ### Lookup by ID
84
+ *
85
+ * ```typescript
86
+ * import * as pulumi from "@pulumi/pulumi";
87
+ * import * as harness from "@pulumi/harness";
88
+ *
89
+ * const byId = harness.autostopping.getRuleVm({
90
+ * identifier: "12345",
91
+ * });
92
+ * ```
93
+ *
94
+ * ### Lookup by name (regex)
95
+ *
96
+ * ```typescript
97
+ * import * as pulumi from "@pulumi/pulumi";
98
+ * import * as harness from "@pulumi/harness";
99
+ *
100
+ * const byName = harness.autostopping.getRuleVm({
101
+ * name: "^my-vm-rule$",
102
+ * });
103
+ * ```
104
+ *
105
+ * ### Lookup by name pattern
106
+ *
107
+ * ```typescript
108
+ * import * as pulumi from "@pulumi/pulumi";
109
+ * import * as harness from "@pulumi/harness";
110
+ *
111
+ * const byPattern = harness.autostopping.getRuleVm({
112
+ * name: "my-vm-.*-prod",
113
+ * });
114
+ * ```
55
115
  */
56
116
  function getRuleVmOutput(args, opts) {
117
+ args = args || {};
57
118
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
58
119
  return pulumi.runtime.invokeOutput("harness:autostopping/getRuleVm:getRuleVm", {
59
- "cloudConnectorId": args.cloudConnectorId,
60
- "customDomains": args.customDomains,
61
- "depends": args.depends,
62
- "filter": args.filter,
63
- "https": args.https,
64
- "idleTimeMins": args.idleTimeMins,
120
+ "identifier": args.identifier,
65
121
  "name": args.name,
66
- "tcps": args.tcps,
67
- "useSpot": args.useSpot,
68
122
  }, opts);
69
123
  }
70
124
  exports.getRuleVmOutput = getRuleVmOutput;
@@ -1 +1 @@
1
- {"version":3,"file":"getRuleVm.js","sourceRoot":"","sources":["../../autostopping/getRuleVm.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C;;;;GAIG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE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CAA0C,EAAE;QACrE,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8BAOC;AAiDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAAiC;IACzF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0CAA0C,EAAE;QAC3E,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC"}
@@ -10,16 +10,23 @@ import * as outputs from "../types/output";
10
10
  * import * as harness from "@pulumi/harness";
11
11
  *
12
12
  * export = async () => {
13
+ * // Returns all autostopping rules without any filtering.
13
14
  * const all = await harness.autostopping.getRules({});
15
+ * // Returns only rules of kind "instance"
14
16
  * const byInstanceKind = await harness.autostopping.getRules({
15
17
  * kind: "instance",
16
18
  * });
19
+ * // Returns only rules of kind "k8s"
17
20
  * const byK8sKind = await harness.autostopping.getRules({
18
21
  * kind: "k8s",
19
22
  * });
23
+ * // Returns rules whose name starts with "myname-" followed by any characters.
24
+ * // Regex: "myname-.*" matches e.g. "myname-prod", "myname-01", "myname-anything".
20
25
  * const byNamePrefix = await harness.autostopping.getRules({
21
26
  * name: "myname-.*",
22
27
  * });
28
+ * // Returns rules whose name starts with "app" or "svc" followed by any characters.
29
+ * // Regex: "^(app|svc).*" matches e.g. "app-prod", "svc-backend", "appserver" but NOT "myapp".
23
30
  * const byNameRegex = await harness.autostopping.getRules({
24
31
  * name: "^(app|svc).*",
25
32
  * });
@@ -83,16 +90,23 @@ export interface GetRulesResult {
83
90
  * import * as harness from "@pulumi/harness";
84
91
  *
85
92
  * export = async () => {
93
+ * // Returns all autostopping rules without any filtering.
86
94
  * const all = await harness.autostopping.getRules({});
95
+ * // Returns only rules of kind "instance"
87
96
  * const byInstanceKind = await harness.autostopping.getRules({
88
97
  * kind: "instance",
89
98
  * });
99
+ * // Returns only rules of kind "k8s"
90
100
  * const byK8sKind = await harness.autostopping.getRules({
91
101
  * kind: "k8s",
92
102
  * });
103
+ * // Returns rules whose name starts with "myname-" followed by any characters.
104
+ * // Regex: "myname-.*" matches e.g. "myname-prod", "myname-01", "myname-anything".
93
105
  * const byNamePrefix = await harness.autostopping.getRules({
94
106
  * name: "myname-.*",
95
107
  * });
108
+ * // Returns rules whose name starts with "app" or "svc" followed by any characters.
109
+ * // Regex: "^(app|svc).*" matches e.g. "app-prod", "svc-backend", "appserver" but NOT "myapp".
96
110
  * const byNameRegex = await harness.autostopping.getRules({
97
111
  * name: "^(app|svc).*",
98
112
  * });
@@ -1 +1 @@
1
- {"version":3,"file":"getRules.d.ts","sourceRoot":"","sources":["../../autostopping/getRules.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAG3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,QAAQ,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAOlG;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;OA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EG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;CACvD;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAO1H;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
@@ -38,16 +38,23 @@ const utilities = __importStar(require("../utilities"));
38
38
  * import * as harness from "@pulumi/harness";
39
39
  *
40
40
  * export = async () => {
41
+ * // Returns all autostopping rules without any filtering.
41
42
  * const all = await harness.autostopping.getRules({});
43
+ * // Returns only rules of kind "instance"
42
44
  * const byInstanceKind = await harness.autostopping.getRules({
43
45
  * kind: "instance",
44
46
  * });
47
+ * // Returns only rules of kind "k8s"
45
48
  * const byK8sKind = await harness.autostopping.getRules({
46
49
  * kind: "k8s",
47
50
  * });
51
+ * // Returns rules whose name starts with "myname-" followed by any characters.
52
+ * // Regex: "myname-.*" matches e.g. "myname-prod", "myname-01", "myname-anything".
48
53
  * const byNamePrefix = await harness.autostopping.getRules({
49
54
  * name: "myname-.*",
50
55
  * });
56
+ * // Returns rules whose name starts with "app" or "svc" followed by any characters.
57
+ * // Regex: "^(app|svc).*" matches e.g. "app-prod", "svc-backend", "appserver" but NOT "myapp".
51
58
  * const byNameRegex = await harness.autostopping.getRules({
52
59
  * name: "^(app|svc).*",
53
60
  * });
@@ -85,16 +92,23 @@ exports.getRules = getRules;
85
92
  * import * as harness from "@pulumi/harness";
86
93
  *
87
94
  * export = async () => {
95
+ * // Returns all autostopping rules without any filtering.
88
96
  * const all = await harness.autostopping.getRules({});
97
+ * // Returns only rules of kind "instance"
89
98
  * const byInstanceKind = await harness.autostopping.getRules({
90
99
  * kind: "instance",
91
100
  * });
101
+ * // Returns only rules of kind "k8s"
92
102
  * const byK8sKind = await harness.autostopping.getRules({
93
103
  * kind: "k8s",
94
104
  * });
105
+ * // Returns rules whose name starts with "myname-" followed by any characters.
106
+ * // Regex: "myname-.*" matches e.g. "myname-prod", "myname-01", "myname-anything".
95
107
  * const byNamePrefix = await harness.autostopping.getRules({
96
108
  * name: "myname-.*",
97
109
  * });
110
+ * // Returns rules whose name starts with "app" or "svc" followed by any characters.
111
+ * // Regex: "^(app|svc).*" matches e.g. "app-prod", "svc-backend", "appserver" but NOT "myapp".
98
112
  * const byNameRegex = await harness.autostopping.getRules({
99
113
  * name: "^(app|svc).*",
100
114
  * });
@@ -1 +1 @@
1
- {"version":3,"file":"getRules.js","sourceRoot":"","sources":["../../autostopping/getRules.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EA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iC;IACvF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wCAAwC,EAAE;QACzE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wCAOC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/harness",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "description": "A Pulumi package for creating and managing Harness resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -23,7 +23,7 @@
23
23
  "pulumi": {
24
24
  "resource": true,
25
25
  "name": "harness",
26
- "version": "0.17.0",
26
+ "version": "0.17.1",
27
27
  "server": "github://api.github.com/pulumi"
28
28
  }
29
29
  }