@sl-testing/ac-pulumi 0.1.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.
- package/README.md +6 -0
- package/dist/agent.d.ts +53 -0
- package/dist/agent.js +87 -0
- package/dist/agent.js.map +1 -0
- package/dist/app.d.ts +39 -0
- package/dist/app.js +66 -0
- package/dist/app.js.map +1 -0
- package/dist/appDeployments.d.ts +18 -0
- package/dist/appDeployments.js +26 -0
- package/dist/appDeployments.js.map +1 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +21 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/vars.d.ts +2 -0
- package/dist/config/vars.js +19 -0
- package/dist/config/vars.js.map +1 -0
- package/dist/database.d.ts +38 -0
- package/dist/database.js +66 -0
- package/dist/database.js.map +1 -0
- package/dist/eventDeliveries.d.ts +22 -0
- package/dist/eventDeliveries.js +32 -0
- package/dist/eventDeliveries.js.map +1 -0
- package/dist/eventRoute.d.ts +50 -0
- package/dist/eventRoute.js +81 -0
- package/dist/eventRoute.js.map +1 -0
- package/dist/eventSource.d.ts +42 -0
- package/dist/eventSource.js +67 -0
- package/dist/eventSource.js.map +1 -0
- package/dist/events.d.ts +20 -0
- package/dist/events.js +30 -0
- package/dist/events.js.map +1 -0
- package/dist/function.d.ts +49 -0
- package/dist/function.js +76 -0
- package/dist/function.js.map +1 -0
- package/dist/functionRuns.d.ts +18 -0
- package/dist/functionRuns.js +28 -0
- package/dist/functionRuns.js.map +1 -0
- package/dist/image.d.ts +41 -0
- package/dist/image.js +69 -0
- package/dist/image.js.map +1 -0
- package/dist/imageVersions.d.ts +13 -0
- package/dist/imageVersions.js +22 -0
- package/dist/imageVersions.js.map +1 -0
- package/dist/index.d.ts +87 -0
- package/dist/index.js +128 -0
- package/dist/index.js.map +1 -0
- package/dist/logs.d.ts +21 -0
- package/dist/logs.js +30 -0
- package/dist/logs.js.map +1 -0
- package/dist/machine.d.ts +45 -0
- package/dist/machine.js +75 -0
- package/dist/machine.js.map +1 -0
- package/dist/messages.d.ts +18 -0
- package/dist/messages.js +26 -0
- package/dist/messages.js.map +1 -0
- package/dist/metricsQuery.d.ts +17 -0
- package/dist/metricsQuery.js +24 -0
- package/dist/metricsQuery.js.map +1 -0
- package/dist/metricsQueryRange.d.ts +23 -0
- package/dist/metricsQueryRange.js +28 -0
- package/dist/metricsQueryRange.js.map +1 -0
- package/dist/observabilityHealthcheck.d.ts +13 -0
- package/dist/observabilityHealthcheck.js +19 -0
- package/dist/observabilityHealthcheck.js.map +1 -0
- package/dist/package.json +21 -0
- package/dist/permissionRole.d.ts +35 -0
- package/dist/permissionRole.js +60 -0
- package/dist/permissionRole.js.map +1 -0
- package/dist/permissionRoleBinding.d.ts +38 -0
- package/dist/permissionRoleBinding.js +70 -0
- package/dist/permissionRoleBinding.js.map +1 -0
- package/dist/permissionRoleRule.d.ts +43 -0
- package/dist/permissionRoleRule.js +73 -0
- package/dist/permissionRoleRule.js.map +1 -0
- package/dist/provider/darwin-arm64/pulumi-resource-agentcloud +0 -0
- package/dist/provider/linux-x64/pulumi-resource-agentcloud +0 -0
- package/dist/provider.d.ts +25 -0
- package/dist/provider.js +43 -0
- package/dist/provider.js.map +1 -0
- package/dist/scripts/postinstall.js +68 -0
- package/dist/secret.d.ts +34 -0
- package/dist/secret.js +63 -0
- package/dist/secret.js.map +1 -0
- package/dist/threads.d.ts +18 -0
- package/dist/threads.js +28 -0
- package/dist/threads.js.map +1 -0
- package/dist/traceDetail.d.ts +19 -0
- package/dist/traceDetail.js +26 -0
- package/dist/traceDetail.js.map +1 -0
- package/dist/tracesSearch.d.ts +15 -0
- package/dist/tracesSearch.js +24 -0
- package/dist/tracesSearch.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +11 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/input.d.ts +1 -0
- package/dist/types/input.js +5 -0
- package/dist/types/input.js.map +1 -0
- package/dist/types/output.d.ts +60 -0
- package/dist/types/output.js +5 -0
- package/dist/types/output.js.map +1 -0
- package/dist/users.d.ts +16 -0
- package/dist/users.js +26 -0
- package/dist/users.js.map +1 -0
- package/dist/utilities.d.ts +8 -0
- package/dist/utilities.js +101 -0
- package/dist/utilities.js.map +1 -0
- package/dist/workspaceMembership.d.ts +36 -0
- package/dist/workspaceMembership.js +65 -0
- package/dist/workspaceMembership.js.map +1 -0
- package/package.json +26 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function traceDetail(args: TraceDetailArgs, opts?: pulumi.InvokeOptions): Promise<TraceDetailResult>;
|
|
3
|
+
export interface TraceDetailArgs {
|
|
4
|
+
spansCursor?: string;
|
|
5
|
+
spansLimit?: number;
|
|
6
|
+
traceId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TraceDetailResult {
|
|
9
|
+
readonly error: string;
|
|
10
|
+
readonly spansCursor?: string;
|
|
11
|
+
readonly spansLimit: number;
|
|
12
|
+
readonly traceId: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function traceDetailOutput(args: TraceDetailOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<TraceDetailResult>;
|
|
15
|
+
export interface TraceDetailOutputArgs {
|
|
16
|
+
spansCursor?: pulumi.Input<string>;
|
|
17
|
+
spansLimit?: pulumi.Input<number>;
|
|
18
|
+
traceId: pulumi.Input<string>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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.traceDetailOutput = exports.traceDetail = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
function traceDetail(args, opts) {
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("agentcloud:index:traceDetail", {
|
|
11
|
+
"spansCursor": args.spansCursor,
|
|
12
|
+
"spansLimit": args.spansLimit,
|
|
13
|
+
"traceId": args.traceId,
|
|
14
|
+
}, opts);
|
|
15
|
+
}
|
|
16
|
+
exports.traceDetail = traceDetail;
|
|
17
|
+
function traceDetailOutput(args, opts) {
|
|
18
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
19
|
+
return pulumi.runtime.invokeOutput("agentcloud:index:traceDetail", {
|
|
20
|
+
"spansCursor": args.spansCursor,
|
|
21
|
+
"spansLimit": args.spansLimit,
|
|
22
|
+
"traceId": args.traceId,
|
|
23
|
+
}, opts);
|
|
24
|
+
}
|
|
25
|
+
exports.traceDetailOutput = traceDetailOutput;
|
|
26
|
+
//# sourceMappingURL=traceDetail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traceDetail.js","sourceRoot":"","sources":["../traceDetail.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8BAA8B,EAAE;QACzD,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kCAOC;AAcD,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAAiC;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8BAA8B,EAAE;QAC/D,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8CAOC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function tracesSearch(args: TracesSearchArgs, opts?: pulumi.InvokeOptions): Promise<TracesSearchResult>;
|
|
3
|
+
export interface TracesSearchArgs {
|
|
4
|
+
end: string;
|
|
5
|
+
start: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TracesSearchResult {
|
|
8
|
+
readonly items: any[];
|
|
9
|
+
readonly nextCursor?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function tracesSearchOutput(args: TracesSearchOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<TracesSearchResult>;
|
|
12
|
+
export interface TracesSearchOutputArgs {
|
|
13
|
+
end: pulumi.Input<string>;
|
|
14
|
+
start: pulumi.Input<string>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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.tracesSearchOutput = exports.tracesSearch = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
function tracesSearch(args, opts) {
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("agentcloud:index:tracesSearch", {
|
|
11
|
+
"end": args.end,
|
|
12
|
+
"start": args.start,
|
|
13
|
+
}, opts);
|
|
14
|
+
}
|
|
15
|
+
exports.tracesSearch = tracesSearch;
|
|
16
|
+
function tracesSearchOutput(args, opts) {
|
|
17
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
18
|
+
return pulumi.runtime.invokeOutput("agentcloud:index:tracesSearch", {
|
|
19
|
+
"end": args.end,
|
|
20
|
+
"start": args.start,
|
|
21
|
+
}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.tracesSearchOutput = tracesSearchOutput;
|
|
24
|
+
//# sourceMappingURL=tracesSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracesSearch.js","sourceRoot":"","sources":["../tracesSearch.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,+BAA+B,EAAE;QAC1D,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,oCAMC;AAWD,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,+BAA+B,EAAE;QAChE,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gDAMC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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.output = exports.input = void 0;
|
|
6
|
+
// Export sub-modules:
|
|
7
|
+
const input = require("./input");
|
|
8
|
+
exports.input = input;
|
|
9
|
+
const output = require("./output");
|
|
10
|
+
exports.output = output;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export interface AppDeployment {
|
|
2
|
+
appId: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
id: string;
|
|
5
|
+
imageVersionId: string;
|
|
6
|
+
status: string;
|
|
7
|
+
}
|
|
8
|
+
export interface EventDelivery {
|
|
9
|
+
createdAt: string;
|
|
10
|
+
eventId: string;
|
|
11
|
+
id: string;
|
|
12
|
+
routeId: string;
|
|
13
|
+
status: string;
|
|
14
|
+
}
|
|
15
|
+
export interface EventEnvelope {
|
|
16
|
+
createdAt: string;
|
|
17
|
+
id: string;
|
|
18
|
+
occurredAt: string;
|
|
19
|
+
type: string;
|
|
20
|
+
}
|
|
21
|
+
export interface FunctionRun {
|
|
22
|
+
attempt: number;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
functionId: string;
|
|
25
|
+
id: string;
|
|
26
|
+
status: string;
|
|
27
|
+
updatedAt?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ImageVersion {
|
|
30
|
+
buildStatus: string;
|
|
31
|
+
digest: string;
|
|
32
|
+
id: string;
|
|
33
|
+
imageId: string;
|
|
34
|
+
}
|
|
35
|
+
export interface LogEvent {
|
|
36
|
+
message: string;
|
|
37
|
+
timestamp?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface Message {
|
|
40
|
+
createdAt: string;
|
|
41
|
+
direction: string;
|
|
42
|
+
envelope: any;
|
|
43
|
+
id: string;
|
|
44
|
+
seq: number;
|
|
45
|
+
}
|
|
46
|
+
export interface Thread {
|
|
47
|
+
agentId: string;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
id: string;
|
|
50
|
+
machineId: string;
|
|
51
|
+
status: string;
|
|
52
|
+
title?: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
}
|
|
55
|
+
export interface UserSummary {
|
|
56
|
+
createdAt: string;
|
|
57
|
+
email: string;
|
|
58
|
+
id: string;
|
|
59
|
+
updatedAt: string;
|
|
60
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF"}
|
package/dist/users.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
export declare function users(args?: UsersArgs, opts?: pulumi.InvokeOptions): Promise<UsersResult>;
|
|
4
|
+
export interface UsersArgs {
|
|
5
|
+
cursor?: string;
|
|
6
|
+
limit?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface UsersResult {
|
|
9
|
+
readonly items: outputs.UserSummary[];
|
|
10
|
+
readonly nextCursor?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function usersOutput(args?: UsersOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<UsersResult>;
|
|
13
|
+
export interface UsersOutputArgs {
|
|
14
|
+
cursor?: pulumi.Input<string>;
|
|
15
|
+
limit?: pulumi.Input<number>;
|
|
16
|
+
}
|
package/dist/users.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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.usersOutput = exports.users = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
function users(args, opts) {
|
|
9
|
+
args = args || {};
|
|
10
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
11
|
+
return pulumi.runtime.invoke("agentcloud:index:users", {
|
|
12
|
+
"cursor": args.cursor,
|
|
13
|
+
"limit": args.limit,
|
|
14
|
+
}, opts);
|
|
15
|
+
}
|
|
16
|
+
exports.users = users;
|
|
17
|
+
function usersOutput(args, opts) {
|
|
18
|
+
args = args || {};
|
|
19
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
20
|
+
return pulumi.runtime.invokeOutput("agentcloud:index:users", {
|
|
21
|
+
"cursor": args.cursor,
|
|
22
|
+
"limit": args.limit,
|
|
23
|
+
}, opts);
|
|
24
|
+
}
|
|
25
|
+
exports.usersOutput = usersOutput;
|
|
26
|
+
//# sourceMappingURL=users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../users.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,KAAK,CAAC,IAAgB,EAAE,IAA2B;IAC/D,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,wBAAwB,EAAE;QACnD,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sBAOC;AAWD,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAAiC;IACjF,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,wBAAwB,EAAE;QACzD,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kCAOC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
3
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
4
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
5
|
+
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|
|
@@ -0,0 +1,101 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
16
|
+
function getEnv(...vars) {
|
|
17
|
+
for (const v of vars) {
|
|
18
|
+
const value = process.env[v];
|
|
19
|
+
if (value) {
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
exports.getEnv = getEnv;
|
|
26
|
+
function getEnvBoolean(...vars) {
|
|
27
|
+
const s = getEnv(...vars);
|
|
28
|
+
if (s !== undefined) {
|
|
29
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
30
|
+
// Terraform uses internally when parsing boolean values.
|
|
31
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
41
|
+
function getEnvNumber(...vars) {
|
|
42
|
+
const s = getEnv(...vars);
|
|
43
|
+
if (s !== undefined) {
|
|
44
|
+
const f = parseFloat(s);
|
|
45
|
+
if (!isNaN(f)) {
|
|
46
|
+
return f;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
exports.getEnvNumber = getEnvNumber;
|
|
52
|
+
function getVersion() {
|
|
53
|
+
let version = require('./package.json').version;
|
|
54
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
55
|
+
// If there is a v, strip it off.
|
|
56
|
+
if (version.indexOf('v') === 0) {
|
|
57
|
+
version = version.slice(1);
|
|
58
|
+
}
|
|
59
|
+
return version;
|
|
60
|
+
}
|
|
61
|
+
exports.getVersion = getVersion;
|
|
62
|
+
/** @internal */
|
|
63
|
+
function resourceOptsDefaults() {
|
|
64
|
+
return { version: getVersion() };
|
|
65
|
+
}
|
|
66
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
67
|
+
/** @internal */
|
|
68
|
+
function lazyLoad(exports, props, loadModule) {
|
|
69
|
+
for (let property of props) {
|
|
70
|
+
Object.defineProperty(exports, property, {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return loadModule()[property];
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.lazyLoad = lazyLoad;
|
|
79
|
+
function callAsync(tok, props, res, opts) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const o = runtime.call(tok, props, res);
|
|
82
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
83
|
+
const isKnown = yield o.isKnown;
|
|
84
|
+
const isSecret = yield o.isSecret;
|
|
85
|
+
const problem = !isKnown ? "an unknown value"
|
|
86
|
+
: isSecret ? "a secret value"
|
|
87
|
+
: undefined;
|
|
88
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
89
|
+
if (problem) {
|
|
90
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
91
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
92
|
+
}
|
|
93
|
+
// Extract a single property if requested.
|
|
94
|
+
if (opts && opts.property) {
|
|
95
|
+
return value[opts.property];
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.callAsync = callAsync;
|
|
101
|
+
//# sourceMappingURL=utilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CA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,IAAI;YAChB,GAAG,EAAE;gBACD,OAAO,UAAU,EAAE,CAAC,QAAQ,CAAC,CAAC;YAClC,CAAC;SACJ,CAAC,CAAC;KACN;AACL,CAAC;AATD,4BASC;AAED,SAAsB,SAAS,CAC3B,GAAW,EACX,KAAoB,EACpB,GAAqB,EACrB,IAA0B;;QAE1B,MAAM,CAAC,GAAQ,OAAO,CAAC,IAAI,CAAI,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;QAChD,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACrD,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,OAAO,CAAC;QAChC,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,QAAQ,CAAC;QAClC,MAAM,OAAO,GACT,CAAC,OAAO,CAAC,CAAC,CAAC,kBAAkB;YAC7B,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB;gBAC7B,CAAC,CAAC,SAAS,CAAC;QAChB,sGAAsG;QACtG,IAAI,OAAO,EAAE;YACT,MAAM,IAAI,KAAK,CAAC,0BAA0B,GAAG,0BAA0B,OAAO,IAAI;gBAC9E,iFAAiF,CAAC,CAAC;SAC1F;QACD,0CAA0C;QAC1C,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;YACvB,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC/B;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CAAA;AAxBD,8BAwBC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class WorkspaceMembership extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing WorkspaceMembership resource's state with the given name, ID, and optional extra
|
|
5
|
+
* properties used to qualify the lookup.
|
|
6
|
+
*
|
|
7
|
+
* @param name The _unique_ name of the resulting resource.
|
|
8
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
10
|
+
*/
|
|
11
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): WorkspaceMembership;
|
|
12
|
+
/**
|
|
13
|
+
* Returns true if the given object is an instance of WorkspaceMembership. This is designed to work even
|
|
14
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
15
|
+
*/
|
|
16
|
+
static isInstance(obj: any): obj is WorkspaceMembership;
|
|
17
|
+
readonly email: pulumi.Output<string>;
|
|
18
|
+
readonly membershipId: pulumi.Output<string>;
|
|
19
|
+
readonly role: pulumi.Output<string>;
|
|
20
|
+
readonly userId: pulumi.Output<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Create a WorkspaceMembership resource with the given unique name, arguments, and options.
|
|
23
|
+
*
|
|
24
|
+
* @param name The _unique_ name of the resource.
|
|
25
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
26
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
27
|
+
*/
|
|
28
|
+
constructor(name: string, args: WorkspaceMembershipArgs, opts?: pulumi.CustomResourceOptions);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The set of arguments for constructing a WorkspaceMembership resource.
|
|
32
|
+
*/
|
|
33
|
+
export interface WorkspaceMembershipArgs {
|
|
34
|
+
email: pulumi.Input<string>;
|
|
35
|
+
role: pulumi.Input<string>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.WorkspaceMembership = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class WorkspaceMembership extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing WorkspaceMembership resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name, id, opts) {
|
|
18
|
+
return new WorkspaceMembership(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns true if the given object is an instance of WorkspaceMembership. This is designed to work even
|
|
22
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
23
|
+
*/
|
|
24
|
+
static isInstance(obj) {
|
|
25
|
+
if (obj === undefined || obj === null) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
return obj['__pulumiType'] === WorkspaceMembership.__pulumiType;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Create a WorkspaceMembership resource with the given unique name, arguments, and options.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resource.
|
|
34
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
35
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
36
|
+
*/
|
|
37
|
+
constructor(name, args, opts) {
|
|
38
|
+
let resourceInputs = {};
|
|
39
|
+
opts = opts || {};
|
|
40
|
+
if (!opts.id) {
|
|
41
|
+
if ((!args || args.email === undefined) && !opts.urn) {
|
|
42
|
+
throw new Error("Missing required property 'email'");
|
|
43
|
+
}
|
|
44
|
+
if ((!args || args.role === undefined) && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'role'");
|
|
46
|
+
}
|
|
47
|
+
resourceInputs["email"] = args ? args.email : undefined;
|
|
48
|
+
resourceInputs["role"] = args ? args.role : undefined;
|
|
49
|
+
resourceInputs["membershipId"] = undefined /*out*/;
|
|
50
|
+
resourceInputs["userId"] = undefined /*out*/;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
resourceInputs["email"] = undefined /*out*/;
|
|
54
|
+
resourceInputs["membershipId"] = undefined /*out*/;
|
|
55
|
+
resourceInputs["role"] = undefined /*out*/;
|
|
56
|
+
resourceInputs["userId"] = undefined /*out*/;
|
|
57
|
+
}
|
|
58
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
59
|
+
super(WorkspaceMembership.__pulumiType, name, resourceInputs, opts);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.WorkspaceMembership = WorkspaceMembership;
|
|
63
|
+
/** @internal */
|
|
64
|
+
WorkspaceMembership.__pulumiType = 'agentcloud:index:WorkspaceMembership';
|
|
65
|
+
//# sourceMappingURL=workspaceMembership.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceMembership.js","sourceRoot":"","sources":["../workspaceMembership.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChF,CAAC;IAKD;;;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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IAOD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAA6B,EAAE,IAAmC;QACxF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C;;AA7DL,kDA8DC;AAjDG,gBAAgB;AACO,gCAAY,GAAG,sCAAsC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sl-testing/ac-pulumi",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "AgentCloud TypeScript SDK generated from the Pulumi provider schema",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"main": "dist/index.js",
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"postinstall": "node -e \"const fs=require('node:fs'); const p='dist/scripts/postinstall.js'; if(fs.existsSync(p)) require('./'+p);\"",
|
|
16
|
+
"test": "echo 'no tests yet'"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@pulumi/pulumi": "^3.158.0"
|
|
20
|
+
},
|
|
21
|
+
"pulumi": {
|
|
22
|
+
"resource": true,
|
|
23
|
+
"name": "agentcloud",
|
|
24
|
+
"version": "0.1.0"
|
|
25
|
+
}
|
|
26
|
+
}
|