@atensec/pulumi-thoth 0.1.3 → 0.1.4
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/access/{apiKey.ts → agentApiKey.ts} +29 -33
- package/access/endpointApiKey.ts +235 -0
- package/access/fleetApiKey.ts +235 -0
- package/access/getApiKeyAuthorization.ts +72 -0
- package/access/getApiKeys.ts +57 -0
- package/access/index.ts +33 -7
- package/billing/getInvoices.ts +49 -0
- package/billing/getMonthlyCost.ts +27 -0
- package/billing/getPricing.ts +27 -0
- package/billing/getReport.ts +49 -0
- package/billing/getReports.ts +29 -0
- package/billing/index.ts +31 -0
- package/browser/getEnrollments.ts +52 -0
- package/browser/getPolicies.ts +47 -0
- package/browser/getProviders.ts +28 -0
- package/browser/index.ts +15 -0
- package/config/vars.ts +3 -3
- package/fleet/fleet.ts +292 -0
- package/fleet/getEndpointStats.ts +36 -0
- package/fleet/getEndpoints.ts +52 -0
- package/fleet/getFleet.ts +48 -0
- package/fleet/getFleets.ts +57 -0
- package/fleet/index.ts +45 -0
- package/governance/getApprovals.ts +57 -0
- package/governance/getCostReport.ts +51 -0
- package/governance/getDay7Report.ts +46 -0
- package/governance/getEvidenceBundle.ts +47 -0
- package/governance/getEvidenceChain.ts +53 -0
- package/governance/getEvidenceVerify.ts +50 -0
- package/governance/getPacks.ts +28 -0
- package/governance/getReportsOverview.ts +46 -0
- package/governance/getRuntimeStatus.ts +46 -0
- package/governance/{tenantSettings.ts → governanceSettings.ts} +18 -244
- package/governance/index.ts +76 -7
- package/governance/pamSettings.ts +187 -0
- package/governance/siemSettings.ts +159 -0
- package/governance/webhookSettings.ts +145 -0
- package/index.ts +4 -0
- package/mdm/getProviders.ts +28 -0
- package/mdm/index.ts +5 -0
- package/package.json +1 -1
- package/provider.ts +9 -12
- package/tsconfig.json +34 -2
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
export function getApiKeyAuthorization(args: GetApiKeyAuthorizationArgs, opts?: pulumi.InvokeOptions): Promise<GetApiKeyAuthorizationResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:access/getApiKeyAuthorization:getApiKeyAuthorization", {
|
|
10
|
+
"apiKey": args.apiKey,
|
|
11
|
+
"keyId": args.keyId,
|
|
12
|
+
"permission": args.permission,
|
|
13
|
+
"resourceId": args.resourceId,
|
|
14
|
+
"resourceType": args.resourceType,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A collection of arguments for invoking getApiKeyAuthorization.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetApiKeyAuthorizationArgs {
|
|
22
|
+
apiKey: string;
|
|
23
|
+
keyId: string;
|
|
24
|
+
permission: string;
|
|
25
|
+
resourceId?: string;
|
|
26
|
+
resourceType: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* A collection of values returned by getApiKeyAuthorization.
|
|
31
|
+
*/
|
|
32
|
+
export interface GetApiKeyAuthorizationResult {
|
|
33
|
+
readonly apiKey: string;
|
|
34
|
+
readonly authorized: boolean;
|
|
35
|
+
readonly expired: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The provider-assigned unique ID for this managed resource.
|
|
38
|
+
*/
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly keyId: string;
|
|
41
|
+
readonly permission: string;
|
|
42
|
+
readonly permissionAllowed: boolean;
|
|
43
|
+
readonly resourceId?: string;
|
|
44
|
+
readonly resourceType: string;
|
|
45
|
+
readonly responseJson: string;
|
|
46
|
+
readonly scopeAllowed: boolean;
|
|
47
|
+
readonly scopeLevel: string;
|
|
48
|
+
readonly scopeTargetId: string;
|
|
49
|
+
readonly valid: boolean;
|
|
50
|
+
readonly validatedAt: string;
|
|
51
|
+
}
|
|
52
|
+
export function getApiKeyAuthorizationOutput(args: GetApiKeyAuthorizationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApiKeyAuthorizationResult> {
|
|
53
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
54
|
+
return pulumi.runtime.invokeOutput("thoth:access/getApiKeyAuthorization:getApiKeyAuthorization", {
|
|
55
|
+
"apiKey": args.apiKey,
|
|
56
|
+
"keyId": args.keyId,
|
|
57
|
+
"permission": args.permission,
|
|
58
|
+
"resourceId": args.resourceId,
|
|
59
|
+
"resourceType": args.resourceType,
|
|
60
|
+
}, opts);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* A collection of arguments for invoking getApiKeyAuthorization.
|
|
65
|
+
*/
|
|
66
|
+
export interface GetApiKeyAuthorizationOutputArgs {
|
|
67
|
+
apiKey: pulumi.Input<string>;
|
|
68
|
+
keyId: pulumi.Input<string>;
|
|
69
|
+
permission: pulumi.Input<string>;
|
|
70
|
+
resourceId?: pulumi.Input<string | undefined>;
|
|
71
|
+
resourceType: pulumi.Input<string>;
|
|
72
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
export function getApiKeys(args?: GetApiKeysArgs, opts?: pulumi.InvokeOptions): Promise<GetApiKeysResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:access/getApiKeys:getApiKeys", {
|
|
11
|
+
"activeOnly": args.activeOnly,
|
|
12
|
+
"scopeLevel": args.scopeLevel,
|
|
13
|
+
"scopeTargetId": args.scopeTargetId,
|
|
14
|
+
}, opts);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A collection of arguments for invoking getApiKeys.
|
|
19
|
+
*/
|
|
20
|
+
export interface GetApiKeysArgs {
|
|
21
|
+
activeOnly?: boolean;
|
|
22
|
+
scopeLevel?: string;
|
|
23
|
+
scopeTargetId?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* A collection of values returned by getApiKeys.
|
|
28
|
+
*/
|
|
29
|
+
export interface GetApiKeysResult {
|
|
30
|
+
readonly activeOnly?: boolean;
|
|
31
|
+
readonly dataJson: string;
|
|
32
|
+
/**
|
|
33
|
+
* The provider-assigned unique ID for this managed resource.
|
|
34
|
+
*/
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly scopeLevel?: string;
|
|
37
|
+
readonly scopeTargetId?: string;
|
|
38
|
+
readonly total: number;
|
|
39
|
+
}
|
|
40
|
+
export function getApiKeysOutput(args?: GetApiKeysOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApiKeysResult> {
|
|
41
|
+
args = args || {};
|
|
42
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
43
|
+
return pulumi.runtime.invokeOutput("thoth:access/getApiKeys:getApiKeys", {
|
|
44
|
+
"activeOnly": args.activeOnly,
|
|
45
|
+
"scopeLevel": args.scopeLevel,
|
|
46
|
+
"scopeTargetId": args.scopeTargetId,
|
|
47
|
+
}, opts);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* A collection of arguments for invoking getApiKeys.
|
|
52
|
+
*/
|
|
53
|
+
export interface GetApiKeysOutputArgs {
|
|
54
|
+
activeOnly?: pulumi.Input<boolean | undefined>;
|
|
55
|
+
scopeLevel?: pulumi.Input<string | undefined>;
|
|
56
|
+
scopeTargetId?: pulumi.Input<string | undefined>;
|
|
57
|
+
}
|
package/access/index.ts
CHANGED
|
@@ -5,26 +5,52 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
5
5
|
import * as utilities from "../utilities";
|
|
6
6
|
|
|
7
7
|
// Export members:
|
|
8
|
-
export {
|
|
9
|
-
export type
|
|
10
|
-
export const
|
|
11
|
-
utilities.lazyLoad(exports, ["
|
|
8
|
+
export { AgentApiKeyArgs, AgentApiKeyState } from "./agentApiKey";
|
|
9
|
+
export type AgentApiKey = import("./agentApiKey").AgentApiKey;
|
|
10
|
+
export const AgentApiKey: typeof import("./agentApiKey").AgentApiKey = null as any;
|
|
11
|
+
utilities.lazyLoad(exports, ["AgentApiKey"], () => require("./agentApiKey"));
|
|
12
|
+
|
|
13
|
+
export { EndpointApiKeyArgs, EndpointApiKeyState } from "./endpointApiKey";
|
|
14
|
+
export type EndpointApiKey = import("./endpointApiKey").EndpointApiKey;
|
|
15
|
+
export const EndpointApiKey: typeof import("./endpointApiKey").EndpointApiKey = null as any;
|
|
16
|
+
utilities.lazyLoad(exports, ["EndpointApiKey"], () => require("./endpointApiKey"));
|
|
17
|
+
|
|
18
|
+
export { FleetApiKeyArgs, FleetApiKeyState } from "./fleetApiKey";
|
|
19
|
+
export type FleetApiKey = import("./fleetApiKey").FleetApiKey;
|
|
20
|
+
export const FleetApiKey: typeof import("./fleetApiKey").FleetApiKey = null as any;
|
|
21
|
+
utilities.lazyLoad(exports, ["FleetApiKey"], () => require("./fleetApiKey"));
|
|
22
|
+
|
|
23
|
+
export { GetApiKeyAuthorizationArgs, GetApiKeyAuthorizationResult, GetApiKeyAuthorizationOutputArgs } from "./getApiKeyAuthorization";
|
|
24
|
+
export const getApiKeyAuthorization: typeof import("./getApiKeyAuthorization").getApiKeyAuthorization = null as any;
|
|
25
|
+
export const getApiKeyAuthorizationOutput: typeof import("./getApiKeyAuthorization").getApiKeyAuthorizationOutput = null as any;
|
|
26
|
+
utilities.lazyLoad(exports, ["getApiKeyAuthorization","getApiKeyAuthorizationOutput"], () => require("./getApiKeyAuthorization"));
|
|
12
27
|
|
|
13
28
|
export { GetApiKeyMetricsResult } from "./getApiKeyMetrics";
|
|
14
29
|
export const getApiKeyMetrics: typeof import("./getApiKeyMetrics").getApiKeyMetrics = null as any;
|
|
15
30
|
export const getApiKeyMetricsOutput: typeof import("./getApiKeyMetrics").getApiKeyMetricsOutput = null as any;
|
|
16
31
|
utilities.lazyLoad(exports, ["getApiKeyMetrics","getApiKeyMetricsOutput"], () => require("./getApiKeyMetrics"));
|
|
17
32
|
|
|
33
|
+
export { GetApiKeysArgs, GetApiKeysResult, GetApiKeysOutputArgs } from "./getApiKeys";
|
|
34
|
+
export const getApiKeys: typeof import("./getApiKeys").getApiKeys = null as any;
|
|
35
|
+
export const getApiKeysOutput: typeof import("./getApiKeys").getApiKeysOutput = null as any;
|
|
36
|
+
utilities.lazyLoad(exports, ["getApiKeys","getApiKeysOutput"], () => require("./getApiKeys"));
|
|
37
|
+
|
|
18
38
|
|
|
19
39
|
const _module = {
|
|
20
40
|
version: utilities.getVersion(),
|
|
21
41
|
construct: (name: string, type: string, urn: string): pulumi.Resource => {
|
|
22
42
|
switch (type) {
|
|
23
|
-
case "thoth:access/
|
|
24
|
-
return new
|
|
43
|
+
case "thoth:access/agentApiKey:AgentApiKey":
|
|
44
|
+
return new AgentApiKey(name, <any>undefined, { urn })
|
|
45
|
+
case "thoth:access/endpointApiKey:EndpointApiKey":
|
|
46
|
+
return new EndpointApiKey(name, <any>undefined, { urn })
|
|
47
|
+
case "thoth:access/fleetApiKey:FleetApiKey":
|
|
48
|
+
return new FleetApiKey(name, <any>undefined, { urn })
|
|
25
49
|
default:
|
|
26
50
|
throw new Error(`unknown resource type ${type}`);
|
|
27
51
|
}
|
|
28
52
|
},
|
|
29
53
|
};
|
|
30
|
-
pulumi.runtime.registerResourceModule("thoth", "access/
|
|
54
|
+
pulumi.runtime.registerResourceModule("thoth", "access/agentApiKey", _module)
|
|
55
|
+
pulumi.runtime.registerResourceModule("thoth", "access/endpointApiKey", _module)
|
|
56
|
+
pulumi.runtime.registerResourceModule("thoth", "access/fleetApiKey", _module)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
export function getInvoices(args?: GetInvoicesArgs, opts?: pulumi.InvokeOptions): Promise<GetInvoicesResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:billing/getInvoices:getInvoices", {
|
|
11
|
+
"limit": args.limit,
|
|
12
|
+
}, opts);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A collection of arguments for invoking getInvoices.
|
|
17
|
+
*/
|
|
18
|
+
export interface GetInvoicesArgs {
|
|
19
|
+
limit?: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* A collection of values returned by getInvoices.
|
|
24
|
+
*/
|
|
25
|
+
export interface GetInvoicesResult {
|
|
26
|
+
/**
|
|
27
|
+
* The provider-assigned unique ID for this managed resource.
|
|
28
|
+
*/
|
|
29
|
+
readonly id: string;
|
|
30
|
+
readonly invoicesJson: string;
|
|
31
|
+
readonly limit?: number;
|
|
32
|
+
readonly responseJson: string;
|
|
33
|
+
readonly total: number;
|
|
34
|
+
readonly totalsJson: string;
|
|
35
|
+
}
|
|
36
|
+
export function getInvoicesOutput(args?: GetInvoicesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInvoicesResult> {
|
|
37
|
+
args = args || {};
|
|
38
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
39
|
+
return pulumi.runtime.invokeOutput("thoth:billing/getInvoices:getInvoices", {
|
|
40
|
+
"limit": args.limit,
|
|
41
|
+
}, opts);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* A collection of arguments for invoking getInvoices.
|
|
46
|
+
*/
|
|
47
|
+
export interface GetInvoicesOutputArgs {
|
|
48
|
+
limit?: pulumi.Input<number | undefined>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
export function getMonthlyCost(opts?: pulumi.InvokeOptions): Promise<GetMonthlyCostResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:billing/getMonthlyCost:getMonthlyCost", {
|
|
10
|
+
}, opts);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A collection of values returned by getMonthlyCost.
|
|
15
|
+
*/
|
|
16
|
+
export interface GetMonthlyCostResult {
|
|
17
|
+
/**
|
|
18
|
+
* The provider-assigned unique ID for this managed resource.
|
|
19
|
+
*/
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly responseJson: string;
|
|
22
|
+
}
|
|
23
|
+
export function getMonthlyCostOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetMonthlyCostResult> {
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
25
|
+
return pulumi.runtime.invokeOutput("thoth:billing/getMonthlyCost:getMonthlyCost", {
|
|
26
|
+
}, opts);
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
export function getPricing(opts?: pulumi.InvokeOptions): Promise<GetPricingResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:billing/getPricing:getPricing", {
|
|
10
|
+
}, opts);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A collection of values returned by getPricing.
|
|
15
|
+
*/
|
|
16
|
+
export interface GetPricingResult {
|
|
17
|
+
/**
|
|
18
|
+
* The provider-assigned unique ID for this managed resource.
|
|
19
|
+
*/
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly responseJson: string;
|
|
22
|
+
}
|
|
23
|
+
export function getPricingOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPricingResult> {
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
25
|
+
return pulumi.runtime.invokeOutput("thoth:billing/getPricing:getPricing", {
|
|
26
|
+
}, opts);
|
|
27
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
export function getReport(args: GetReportArgs, opts?: pulumi.InvokeOptions): Promise<GetReportResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:billing/getReport:getReport", {
|
|
10
|
+
"month": args.month,
|
|
11
|
+
"year": args.year,
|
|
12
|
+
}, opts);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A collection of arguments for invoking getReport.
|
|
17
|
+
*/
|
|
18
|
+
export interface GetReportArgs {
|
|
19
|
+
month: number;
|
|
20
|
+
year: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A collection of values returned by getReport.
|
|
25
|
+
*/
|
|
26
|
+
export interface GetReportResult {
|
|
27
|
+
/**
|
|
28
|
+
* The provider-assigned unique ID for this managed resource.
|
|
29
|
+
*/
|
|
30
|
+
readonly id: string;
|
|
31
|
+
readonly month: number;
|
|
32
|
+
readonly responseJson: string;
|
|
33
|
+
readonly year: number;
|
|
34
|
+
}
|
|
35
|
+
export function getReportOutput(args: GetReportOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetReportResult> {
|
|
36
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
37
|
+
return pulumi.runtime.invokeOutput("thoth:billing/getReport:getReport", {
|
|
38
|
+
"month": args.month,
|
|
39
|
+
"year": args.year,
|
|
40
|
+
}, opts);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A collection of arguments for invoking getReport.
|
|
45
|
+
*/
|
|
46
|
+
export interface GetReportOutputArgs {
|
|
47
|
+
month: pulumi.Input<number>;
|
|
48
|
+
year: pulumi.Input<number>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
export function getReports(opts?: pulumi.InvokeOptions): Promise<GetReportsResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:billing/getReports:getReports", {
|
|
10
|
+
}, opts);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A collection of values returned by getReports.
|
|
15
|
+
*/
|
|
16
|
+
export interface GetReportsResult {
|
|
17
|
+
/**
|
|
18
|
+
* The provider-assigned unique ID for this managed resource.
|
|
19
|
+
*/
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly reportsJson: string;
|
|
22
|
+
readonly responseJson: string;
|
|
23
|
+
readonly total: number;
|
|
24
|
+
}
|
|
25
|
+
export function getReportsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetReportsResult> {
|
|
26
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
27
|
+
return pulumi.runtime.invokeOutput("thoth:billing/getReports:getReports", {
|
|
28
|
+
}, opts);
|
|
29
|
+
}
|
package/billing/index.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as utilities from "../utilities";
|
|
5
|
+
|
|
6
|
+
// Export members:
|
|
7
|
+
export { GetInvoicesArgs, GetInvoicesResult, GetInvoicesOutputArgs } from "./getInvoices";
|
|
8
|
+
export const getInvoices: typeof import("./getInvoices").getInvoices = null as any;
|
|
9
|
+
export const getInvoicesOutput: typeof import("./getInvoices").getInvoicesOutput = null as any;
|
|
10
|
+
utilities.lazyLoad(exports, ["getInvoices","getInvoicesOutput"], () => require("./getInvoices"));
|
|
11
|
+
|
|
12
|
+
export { GetMonthlyCostResult } from "./getMonthlyCost";
|
|
13
|
+
export const getMonthlyCost: typeof import("./getMonthlyCost").getMonthlyCost = null as any;
|
|
14
|
+
export const getMonthlyCostOutput: typeof import("./getMonthlyCost").getMonthlyCostOutput = null as any;
|
|
15
|
+
utilities.lazyLoad(exports, ["getMonthlyCost","getMonthlyCostOutput"], () => require("./getMonthlyCost"));
|
|
16
|
+
|
|
17
|
+
export { GetPricingResult } from "./getPricing";
|
|
18
|
+
export const getPricing: typeof import("./getPricing").getPricing = null as any;
|
|
19
|
+
export const getPricingOutput: typeof import("./getPricing").getPricingOutput = null as any;
|
|
20
|
+
utilities.lazyLoad(exports, ["getPricing","getPricingOutput"], () => require("./getPricing"));
|
|
21
|
+
|
|
22
|
+
export { GetReportArgs, GetReportResult, GetReportOutputArgs } from "./getReport";
|
|
23
|
+
export const getReport: typeof import("./getReport").getReport = null as any;
|
|
24
|
+
export const getReportOutput: typeof import("./getReport").getReportOutput = null as any;
|
|
25
|
+
utilities.lazyLoad(exports, ["getReport","getReportOutput"], () => require("./getReport"));
|
|
26
|
+
|
|
27
|
+
export { GetReportsResult } from "./getReports";
|
|
28
|
+
export const getReports: typeof import("./getReports").getReports = null as any;
|
|
29
|
+
export const getReportsOutput: typeof import("./getReports").getReportsOutput = null as any;
|
|
30
|
+
utilities.lazyLoad(exports, ["getReports","getReportsOutput"], () => require("./getReports"));
|
|
31
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
export function getEnrollments(args?: GetEnrollmentsArgs, opts?: pulumi.InvokeOptions): Promise<GetEnrollmentsResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:browser/getEnrollments:getEnrollments", {
|
|
11
|
+
"provider": args.provider,
|
|
12
|
+
"status": args.status,
|
|
13
|
+
}, opts);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A collection of arguments for invoking getEnrollments.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetEnrollmentsArgs {
|
|
20
|
+
provider?: string;
|
|
21
|
+
status?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A collection of values returned by getEnrollments.
|
|
26
|
+
*/
|
|
27
|
+
export interface GetEnrollmentsResult {
|
|
28
|
+
readonly dataJson: string;
|
|
29
|
+
/**
|
|
30
|
+
* The provider-assigned unique ID for this managed resource.
|
|
31
|
+
*/
|
|
32
|
+
readonly id: string;
|
|
33
|
+
readonly provider?: string;
|
|
34
|
+
readonly status?: string;
|
|
35
|
+
readonly total: number;
|
|
36
|
+
}
|
|
37
|
+
export function getEnrollmentsOutput(args?: GetEnrollmentsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEnrollmentsResult> {
|
|
38
|
+
args = args || {};
|
|
39
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
40
|
+
return pulumi.runtime.invokeOutput("thoth:browser/getEnrollments:getEnrollments", {
|
|
41
|
+
"provider": args.provider,
|
|
42
|
+
"status": args.status,
|
|
43
|
+
}, opts);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* A collection of arguments for invoking getEnrollments.
|
|
48
|
+
*/
|
|
49
|
+
export interface GetEnrollmentsOutputArgs {
|
|
50
|
+
provider?: pulumi.Input<string | undefined>;
|
|
51
|
+
status?: pulumi.Input<string | undefined>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
export function getPolicies(args?: GetPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetPoliciesResult> {
|
|
8
|
+
args = args || {};
|
|
9
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
10
|
+
return pulumi.runtime.invoke("thoth:browser/getPolicies:getPolicies", {
|
|
11
|
+
"provider": args.provider,
|
|
12
|
+
}, opts);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A collection of arguments for invoking getPolicies.
|
|
17
|
+
*/
|
|
18
|
+
export interface GetPoliciesArgs {
|
|
19
|
+
provider?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* A collection of values returned by getPolicies.
|
|
24
|
+
*/
|
|
25
|
+
export interface GetPoliciesResult {
|
|
26
|
+
readonly dataJson: string;
|
|
27
|
+
/**
|
|
28
|
+
* The provider-assigned unique ID for this managed resource.
|
|
29
|
+
*/
|
|
30
|
+
readonly id: string;
|
|
31
|
+
readonly provider?: string;
|
|
32
|
+
readonly total: number;
|
|
33
|
+
}
|
|
34
|
+
export function getPoliciesOutput(args?: GetPoliciesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPoliciesResult> {
|
|
35
|
+
args = args || {};
|
|
36
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
37
|
+
return pulumi.runtime.invokeOutput("thoth:browser/getPolicies:getPolicies", {
|
|
38
|
+
"provider": args.provider,
|
|
39
|
+
}, opts);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* A collection of arguments for invoking getPolicies.
|
|
44
|
+
*/
|
|
45
|
+
export interface GetPoliciesOutputArgs {
|
|
46
|
+
provider?: pulumi.Input<string | undefined>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "../utilities";
|
|
6
|
+
|
|
7
|
+
export function getProviders(opts?: pulumi.InvokeOptions): Promise<GetProvidersResult> {
|
|
8
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
9
|
+
return pulumi.runtime.invoke("thoth:browser/getProviders:getProviders", {
|
|
10
|
+
}, opts);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A collection of values returned by getProviders.
|
|
15
|
+
*/
|
|
16
|
+
export interface GetProvidersResult {
|
|
17
|
+
readonly dataJson: string;
|
|
18
|
+
/**
|
|
19
|
+
* The provider-assigned unique ID for this managed resource.
|
|
20
|
+
*/
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly total: number;
|
|
23
|
+
}
|
|
24
|
+
export function getProvidersOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProvidersResult> {
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
26
|
+
return pulumi.runtime.invokeOutput("thoth:browser/getProviders:getProviders", {
|
|
27
|
+
}, opts);
|
|
28
|
+
}
|
package/browser/index.ts
CHANGED
|
@@ -10,6 +10,21 @@ export type Enrollment = import("./enrollment").Enrollment;
|
|
|
10
10
|
export const Enrollment: typeof import("./enrollment").Enrollment = null as any;
|
|
11
11
|
utilities.lazyLoad(exports, ["Enrollment"], () => require("./enrollment"));
|
|
12
12
|
|
|
13
|
+
export { GetEnrollmentsArgs, GetEnrollmentsResult, GetEnrollmentsOutputArgs } from "./getEnrollments";
|
|
14
|
+
export const getEnrollments: typeof import("./getEnrollments").getEnrollments = null as any;
|
|
15
|
+
export const getEnrollmentsOutput: typeof import("./getEnrollments").getEnrollmentsOutput = null as any;
|
|
16
|
+
utilities.lazyLoad(exports, ["getEnrollments","getEnrollmentsOutput"], () => require("./getEnrollments"));
|
|
17
|
+
|
|
18
|
+
export { GetPoliciesArgs, GetPoliciesResult, GetPoliciesOutputArgs } from "./getPolicies";
|
|
19
|
+
export const getPolicies: typeof import("./getPolicies").getPolicies = null as any;
|
|
20
|
+
export const getPoliciesOutput: typeof import("./getPolicies").getPoliciesOutput = null as any;
|
|
21
|
+
utilities.lazyLoad(exports, ["getPolicies","getPoliciesOutput"], () => require("./getPolicies"));
|
|
22
|
+
|
|
23
|
+
export { GetProvidersResult } from "./getProviders";
|
|
24
|
+
export const getProviders: typeof import("./getProviders").getProviders = null as any;
|
|
25
|
+
export const getProvidersOutput: typeof import("./getProviders").getProvidersOutput = null as any;
|
|
26
|
+
utilities.lazyLoad(exports, ["getProviders","getProvidersOutput"], () => require("./getProviders"));
|
|
27
|
+
|
|
13
28
|
export { PolicyArgs, PolicyState } from "./policy";
|
|
14
29
|
export type Policy = import("./policy").Policy;
|
|
15
30
|
export const Policy: typeof import("./policy").Policy = null as any;
|
package/config/vars.ts
CHANGED
|
@@ -63,7 +63,7 @@ Object.defineProperty(exports, "insecureSkipTlsVerify", {
|
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
* Organization API key used for non-interactive CI/CD control-plane operations.
|
|
66
|
+
* Organization-scoped API key used for non-interactive CI/CD control-plane operations.
|
|
67
67
|
*/
|
|
68
68
|
export declare const orgApiKey: string | undefined;
|
|
69
69
|
Object.defineProperty(exports, "orgApiKey", {
|
|
@@ -74,7 +74,7 @@ Object.defineProperty(exports, "orgApiKey", {
|
|
|
74
74
|
});
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* Path to a file containing the organization API key.
|
|
77
|
+
* Path to a file containing the organization-scoped API key.
|
|
78
78
|
*/
|
|
79
79
|
export declare const orgApiKeyFile: string | undefined;
|
|
80
80
|
Object.defineProperty(exports, "orgApiKeyFile", {
|
|
@@ -129,7 +129,7 @@ Object.defineProperty(exports, "retryMaxDelayMs", {
|
|
|
129
129
|
});
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
-
* Tenant slug used in GovAPI route scoping.
|
|
132
|
+
* Tenant slug used in GovAPI route scoping. If omitted, provider reads THOTH_TENANT_ID.
|
|
133
133
|
*/
|
|
134
134
|
export declare const tenantId: string | undefined;
|
|
135
135
|
Object.defineProperty(exports, "tenantId", {
|