@pulumi/harness 0.15.5 → 0.15.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.
- package/config/vars.d.ts +4 -0
- package/config/vars.d.ts.map +1 -1
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +7 -2
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/platform/dashboardFolder.d.ts +60 -0
- package/platform/dashboardFolder.d.ts.map +1 -0
- package/platform/dashboardFolder.js +77 -0
- package/platform/dashboardFolder.js.map +1 -0
- package/platform/dashboardFolders.d.ts +1 -1
- package/platform/dashboardFolders.js +1 -1
- package/platform/getDashboardFolder.d.ts +105 -0
- package/platform/getDashboardFolder.d.ts.map +1 -0
- package/platform/getDashboardFolder.js +89 -0
- package/platform/getDashboardFolder.js.map +1 -0
- package/platform/getDashboardFolders.d.ts +18 -44
- package/platform/getDashboardFolders.d.ts.map +1 -1
- package/platform/getDashboardFolders.js +12 -10
- package/platform/getDashboardFolders.js.map +1 -1
- package/platform/getHarRegistry.d.ts +3 -3
- package/platform/harRegistry.d.ts +40 -3
- package/platform/harRegistry.d.ts.map +1 -1
- package/platform/harRegistry.js +37 -0
- package/platform/harRegistry.js.map +1 -1
- package/platform/index.d.ts +6 -0
- package/platform/index.d.ts.map +1 -1
- package/platform/index.js +17 -9
- package/platform/index.js.map +1 -1
- package/provider.d.ts +8 -0
- package/provider.d.ts.map +1 -1
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/timeSleep.d.ts +130 -0
- package/timeSleep.d.ts.map +1 -0
- package/timeSleep.js +127 -0
- package/timeSleep.js.map +1 -0
- package/types/output.d.ts +14 -0
- package/types/output.d.ts.map +1 -1
package/timeSleep.js
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
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.TimeSleep = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Resource that introduces a time delay during create and/or destroy lifecycle phases.
|
|
33
|
+
*
|
|
34
|
+
* Useful as a synchronization barrier — resources that `dependsOn` this resource will wait until the sleep completes before proceeding. This avoids race conditions with eventually-consistent resources without resorting to `local-exec` provisioners.
|
|
35
|
+
*
|
|
36
|
+
* Duration values use Go duration format: `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours). Examples: `"30s"`, `"5m"`, `"1h"`, `"500ms"`.
|
|
37
|
+
*
|
|
38
|
+
* ## Example Usage
|
|
39
|
+
*
|
|
40
|
+
* ### Create delay - pause 30s after delegate is created before pipeline runs
|
|
41
|
+
*
|
|
42
|
+
* ```typescript
|
|
43
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
+
* import * as harness from "@pulumi/harness";
|
|
45
|
+
*
|
|
46
|
+
* const mydelegate = new harness.index.PlatformDelegateToken("mydelegate", {
|
|
47
|
+
* name: "my-delegate",
|
|
48
|
+
* accountId: "YOUR_ACCOUNT_ID",
|
|
49
|
+
* });
|
|
50
|
+
* const waitForDelegate = new harness.TimeSleep("wait_for_delegate", {createDuration: "30s"}, {
|
|
51
|
+
* dependsOn: [mydelegate],
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ### Wait after destroying a delegate before tearing down dependents
|
|
56
|
+
*
|
|
57
|
+
* ```typescript
|
|
58
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
59
|
+
* import * as harness from "@pulumi/harness";
|
|
60
|
+
*
|
|
61
|
+
* const mydelegate = new harness.index.PlatformDelegateToken("mydelegate", {
|
|
62
|
+
* name: "my-delegate",
|
|
63
|
+
* accountId: "YOUR_ACCOUNT_ID",
|
|
64
|
+
* });
|
|
65
|
+
* const drainDelegate = new harness.TimeSleep("drain_delegate", {destroyDuration: "10s"}, {
|
|
66
|
+
* dependsOn: [mydelegate],
|
|
67
|
+
* });
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* ### Both create and destroy delays
|
|
71
|
+
*
|
|
72
|
+
* ```typescript
|
|
73
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
74
|
+
* import * as harness from "@pulumi/harness";
|
|
75
|
+
*
|
|
76
|
+
* const wait = new harness.TimeSleep("wait", {
|
|
77
|
+
* createDuration: "30s",
|
|
78
|
+
* destroyDuration: "10s",
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
class TimeSleep extends pulumi.CustomResource {
|
|
83
|
+
/**
|
|
84
|
+
* Get an existing TimeSleep resource's state with the given name, ID, and optional extra
|
|
85
|
+
* properties used to qualify the lookup.
|
|
86
|
+
*
|
|
87
|
+
* @param name The _unique_ name of the resulting resource.
|
|
88
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
89
|
+
* @param state Any extra arguments used during the lookup.
|
|
90
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
91
|
+
*/
|
|
92
|
+
static get(name, id, state, opts) {
|
|
93
|
+
return new TimeSleep(name, state, { ...opts, id: id });
|
|
94
|
+
}
|
|
95
|
+
/** @internal */
|
|
96
|
+
static __pulumiType = 'harness:index/timeSleep:TimeSleep';
|
|
97
|
+
/**
|
|
98
|
+
* Returns true if the given object is an instance of TimeSleep. This is designed to work even
|
|
99
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
100
|
+
*/
|
|
101
|
+
static isInstance(obj) {
|
|
102
|
+
if (obj === undefined || obj === null) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
return obj['__pulumiType'] === TimeSleep.__pulumiType;
|
|
106
|
+
}
|
|
107
|
+
constructor(name, argsOrState, opts) {
|
|
108
|
+
let resourceInputs = {};
|
|
109
|
+
opts = opts || {};
|
|
110
|
+
if (opts.id) {
|
|
111
|
+
const state = argsOrState;
|
|
112
|
+
resourceInputs["createDuration"] = state?.createDuration;
|
|
113
|
+
resourceInputs["destroyDuration"] = state?.destroyDuration;
|
|
114
|
+
resourceInputs["triggers"] = state?.triggers;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
const args = argsOrState;
|
|
118
|
+
resourceInputs["createDuration"] = args?.createDuration;
|
|
119
|
+
resourceInputs["destroyDuration"] = args?.destroyDuration;
|
|
120
|
+
resourceInputs["triggers"] = args?.triggers;
|
|
121
|
+
}
|
|
122
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
123
|
+
super(TimeSleep.__pulumiType, name, resourceInputs, opts);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
exports.TimeSleep = TimeSleep;
|
|
127
|
+
//# sourceMappingURL=timeSleep.js.map
|
package/timeSleep.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeSleep.js","sourceRoot":"","sources":["../timeSleep.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,mCAAmC,CAAC;IAE1E;;;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,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,EAAE,cAAc,CAAC;YACzD,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,EAAE,eAAe,CAAC;YAC3D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;SAChD;aAAM;YACH,MAAM,IAAI,GAAG,WAAwC,CAAC;YACtD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAjEL,8BAkEC"}
|
package/types/output.d.ts
CHANGED
|
@@ -7663,6 +7663,20 @@ export declare namespace platform {
|
|
|
7663
7663
|
*/
|
|
7664
7664
|
rancherUrl: string;
|
|
7665
7665
|
}
|
|
7666
|
+
interface GetDashboardFoldersFolder {
|
|
7667
|
+
/**
|
|
7668
|
+
* Created DateTime of the folder.
|
|
7669
|
+
*/
|
|
7670
|
+
createdAt: string;
|
|
7671
|
+
/**
|
|
7672
|
+
* Identifier of the folder.
|
|
7673
|
+
*/
|
|
7674
|
+
id: string;
|
|
7675
|
+
/**
|
|
7676
|
+
* Name of the folder.
|
|
7677
|
+
*/
|
|
7678
|
+
name: string;
|
|
7679
|
+
}
|
|
7666
7680
|
interface GetDbSchemaChangelogScript {
|
|
7667
7681
|
/**
|
|
7668
7682
|
* Script to clone changeSets
|