@pulumiverse/grafana 2.22.0 → 2.23.0-alpha.1775034987
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/apps/index.d.ts +2 -1
- package/apps/index.js +3 -1
- package/apps/index.js.map +1 -1
- package/apps/v2/dashboard.d.ts +116 -0
- package/apps/v2/dashboard.js +95 -0
- package/apps/v2/dashboard.js.map +1 -0
- package/apps/v2/index.d.ts +3 -0
- package/apps/v2/index.js +22 -0
- package/apps/v2/index.js.map +1 -0
- package/enterprise/getRole.d.ts +1 -1
- package/enterprise/role.d.ts +6 -6
- package/enterprise/scimConfig.d.ts +4 -4
- package/oss/playlist.d.ts +5 -3
- package/oss/playlist.js +2 -3
- package/oss/playlist.js.map +1 -1
- package/package.json +2 -2
- package/types/input.d.ts +54 -0
- package/types/output.d.ts +54 -0
package/apps/index.d.ts
CHANGED
package/apps/index.js
CHANGED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.v2beta1 = exports.v1beta1 = exports.v0alpha1 = void 0;
|
|
5
|
+
exports.v2beta1 = exports.v2 = exports.v1beta1 = exports.v0alpha1 = void 0;
|
|
6
6
|
// Export sub-modules:
|
|
7
7
|
const v0alpha1 = require("./v0alpha1");
|
|
8
8
|
exports.v0alpha1 = v0alpha1;
|
|
9
9
|
const v1beta1 = require("./v1beta1");
|
|
10
10
|
exports.v1beta1 = v1beta1;
|
|
11
|
+
const v2 = require("./v2");
|
|
12
|
+
exports.v2 = v2;
|
|
11
13
|
const v2beta1 = require("./v2beta1");
|
|
12
14
|
exports.v2beta1 = v2beta1;
|
|
13
15
|
//# sourceMappingURL=index.js.map
|
package/apps/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../apps/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,uCAAuC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../apps/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,uCAAuC;AAMnC,4BAAQ;AALZ,qCAAqC;AAMjC,0BAAO;AALX,2BAA2B;AAMvB,gBAAE;AALN,qCAAqC;AAMjC,0BAAO"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../../types/input";
|
|
3
|
+
import * as outputs from "../../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages Grafana dashboards using the v2 (Dynamic Dashboards) schema.
|
|
6
|
+
*
|
|
7
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
|
|
8
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/#new-dashboard-apis)
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
15
|
+
*
|
|
16
|
+
* const example = new grafana.apps.v2.Dashboard("example", {
|
|
17
|
+
* metadata: {
|
|
18
|
+
* uid: "example-dashboard-v2",
|
|
19
|
+
* },
|
|
20
|
+
* spec: {
|
|
21
|
+
* title: "Example Dashboard V2",
|
|
22
|
+
* json: JSON.stringify({
|
|
23
|
+
* title: "Example Dashboard V2",
|
|
24
|
+
* cursorSync: "Off",
|
|
25
|
+
* elements: {},
|
|
26
|
+
* layout: {
|
|
27
|
+
* kind: "GridLayout",
|
|
28
|
+
* spec: {
|
|
29
|
+
* items: [],
|
|
30
|
+
* },
|
|
31
|
+
* },
|
|
32
|
+
* links: [],
|
|
33
|
+
* preload: false,
|
|
34
|
+
* annotations: [],
|
|
35
|
+
* variables: [],
|
|
36
|
+
* timeSettings: {
|
|
37
|
+
* timezone: "browser",
|
|
38
|
+
* from: "now-6h",
|
|
39
|
+
* to: "now",
|
|
40
|
+
* },
|
|
41
|
+
* }),
|
|
42
|
+
* },
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare class Dashboard extends pulumi.CustomResource {
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing Dashboard resource's state with the given name, ID, and optional extra
|
|
49
|
+
* properties used to qualify the lookup.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resulting resource.
|
|
52
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
53
|
+
* @param state Any extra arguments used during the lookup.
|
|
54
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
55
|
+
*/
|
|
56
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DashboardState, opts?: pulumi.CustomResourceOptions): Dashboard;
|
|
57
|
+
/**
|
|
58
|
+
* Returns true if the given object is an instance of Dashboard. This is designed to work even
|
|
59
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
60
|
+
*/
|
|
61
|
+
static isInstance(obj: any): obj is Dashboard;
|
|
62
|
+
/**
|
|
63
|
+
* The metadata of the resource.
|
|
64
|
+
*/
|
|
65
|
+
readonly metadata: pulumi.Output<outputs.apps.v2.DashboardMetadata | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* Options for applying the resource.
|
|
68
|
+
*/
|
|
69
|
+
readonly options: pulumi.Output<outputs.apps.v2.DashboardOptions | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* The spec of the resource.
|
|
72
|
+
*/
|
|
73
|
+
readonly spec: pulumi.Output<outputs.apps.v2.DashboardSpec | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Create a Dashboard resource with the given unique name, arguments, and options.
|
|
76
|
+
*
|
|
77
|
+
* @param name The _unique_ name of the resource.
|
|
78
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
79
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
80
|
+
*/
|
|
81
|
+
constructor(name: string, args?: DashboardArgs, opts?: pulumi.CustomResourceOptions);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Input properties used for looking up and filtering Dashboard resources.
|
|
85
|
+
*/
|
|
86
|
+
export interface DashboardState {
|
|
87
|
+
/**
|
|
88
|
+
* The metadata of the resource.
|
|
89
|
+
*/
|
|
90
|
+
metadata?: pulumi.Input<inputs.apps.v2.DashboardMetadata>;
|
|
91
|
+
/**
|
|
92
|
+
* Options for applying the resource.
|
|
93
|
+
*/
|
|
94
|
+
options?: pulumi.Input<inputs.apps.v2.DashboardOptions>;
|
|
95
|
+
/**
|
|
96
|
+
* The spec of the resource.
|
|
97
|
+
*/
|
|
98
|
+
spec?: pulumi.Input<inputs.apps.v2.DashboardSpec>;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The set of arguments for constructing a Dashboard resource.
|
|
102
|
+
*/
|
|
103
|
+
export interface DashboardArgs {
|
|
104
|
+
/**
|
|
105
|
+
* The metadata of the resource.
|
|
106
|
+
*/
|
|
107
|
+
metadata?: pulumi.Input<inputs.apps.v2.DashboardMetadata>;
|
|
108
|
+
/**
|
|
109
|
+
* Options for applying the resource.
|
|
110
|
+
*/
|
|
111
|
+
options?: pulumi.Input<inputs.apps.v2.DashboardOptions>;
|
|
112
|
+
/**
|
|
113
|
+
* The spec of the resource.
|
|
114
|
+
*/
|
|
115
|
+
spec?: pulumi.Input<inputs.apps.v2.DashboardSpec>;
|
|
116
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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.Dashboard = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages Grafana dashboards using the v2 (Dynamic Dashboards) schema.
|
|
10
|
+
*
|
|
11
|
+
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/)
|
|
12
|
+
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/#new-dashboard-apis)
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as grafana from "@pulumiverse/grafana";
|
|
19
|
+
*
|
|
20
|
+
* const example = new grafana.apps.v2.Dashboard("example", {
|
|
21
|
+
* metadata: {
|
|
22
|
+
* uid: "example-dashboard-v2",
|
|
23
|
+
* },
|
|
24
|
+
* spec: {
|
|
25
|
+
* title: "Example Dashboard V2",
|
|
26
|
+
* json: JSON.stringify({
|
|
27
|
+
* title: "Example Dashboard V2",
|
|
28
|
+
* cursorSync: "Off",
|
|
29
|
+
* elements: {},
|
|
30
|
+
* layout: {
|
|
31
|
+
* kind: "GridLayout",
|
|
32
|
+
* spec: {
|
|
33
|
+
* items: [],
|
|
34
|
+
* },
|
|
35
|
+
* },
|
|
36
|
+
* links: [],
|
|
37
|
+
* preload: false,
|
|
38
|
+
* annotations: [],
|
|
39
|
+
* variables: [],
|
|
40
|
+
* timeSettings: {
|
|
41
|
+
* timezone: "browser",
|
|
42
|
+
* from: "now-6h",
|
|
43
|
+
* to: "now",
|
|
44
|
+
* },
|
|
45
|
+
* }),
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
class Dashboard extends pulumi.CustomResource {
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing Dashboard resource's state with the given name, ID, and optional extra
|
|
53
|
+
* properties used to qualify the lookup.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resulting resource.
|
|
56
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
+
* @param state Any extra arguments used during the lookup.
|
|
58
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
|
+
*/
|
|
60
|
+
static get(name, id, state, opts) {
|
|
61
|
+
return new Dashboard(name, state, { ...opts, id: id });
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Returns true if the given object is an instance of Dashboard. This is designed to work even
|
|
65
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
66
|
+
*/
|
|
67
|
+
static isInstance(obj) {
|
|
68
|
+
if (obj === undefined || obj === null) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
return obj['__pulumiType'] === Dashboard.__pulumiType;
|
|
72
|
+
}
|
|
73
|
+
constructor(name, argsOrState, opts) {
|
|
74
|
+
let resourceInputs = {};
|
|
75
|
+
opts = opts || {};
|
|
76
|
+
if (opts.id) {
|
|
77
|
+
const state = argsOrState;
|
|
78
|
+
resourceInputs["metadata"] = state?.metadata;
|
|
79
|
+
resourceInputs["options"] = state?.options;
|
|
80
|
+
resourceInputs["spec"] = state?.spec;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
const args = argsOrState;
|
|
84
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
85
|
+
resourceInputs["options"] = args?.options;
|
|
86
|
+
resourceInputs["spec"] = args?.spec;
|
|
87
|
+
}
|
|
88
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
89
|
+
super(Dashboard.__pulumiType, name, resourceInputs, opts);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.Dashboard = Dashboard;
|
|
93
|
+
/** @internal */
|
|
94
|
+
Dashboard.__pulumiType = 'grafana:apps/v2/dashboard:Dashboard';
|
|
95
|
+
//# sourceMappingURL=dashboard.js.map
|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AAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;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;AApDG,gBAAgB;AACO,sBAAY,GAAG,qCAAqC,CAAC"}
|
package/apps/v2/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
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.Dashboard = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../../utilities");
|
|
8
|
+
exports.Dashboard = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["Dashboard"], () => require("./dashboard"));
|
|
10
|
+
const _module = {
|
|
11
|
+
version: utilities.getVersion(),
|
|
12
|
+
construct: (name, type, urn) => {
|
|
13
|
+
switch (type) {
|
|
14
|
+
case "grafana:apps/v2/dashboard:Dashboard":
|
|
15
|
+
return new exports.Dashboard(name, undefined, { urn });
|
|
16
|
+
default:
|
|
17
|
+
throw new Error(`unknown resource type ${type}`);
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
pulumi.runtime.registerResourceModule("grafana", "apps/v2/dashboard", _module);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../apps/v2/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,6CAA6C;AAKhC,QAAA,SAAS,GAA2C,IAAW,CAAC;AAC7E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAGzE,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,qCAAqC;gBACtC,OAAO,IAAI,iBAAS,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACvD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA"}
|
package/enterprise/getRole.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export interface GetRoleResult {
|
|
|
94
94
|
*/
|
|
95
95
|
readonly uid: string;
|
|
96
96
|
/**
|
|
97
|
-
* Version of the role.
|
|
97
|
+
* Version of the role. On create, must be `1`. On update, must be exactly one greater than the previous state. This field or `autoIncrementVersion` should be set; `autoIncrementVersion` is recommended.
|
|
98
98
|
*/
|
|
99
99
|
readonly version: number;
|
|
100
100
|
}
|
package/enterprise/role.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export declare class Role extends pulumi.CustomResource {
|
|
|
60
60
|
*/
|
|
61
61
|
static isInstance(obj: any): obj is Role;
|
|
62
62
|
/**
|
|
63
|
-
* Whether the role version should be incremented automatically on updates (and set to 1 on creation). This field or `version` should be set.
|
|
63
|
+
* Whether the role version should be incremented automatically on updates (and set to 1 on creation). Recommended for most configurations. This field or `version` should be set.
|
|
64
64
|
*/
|
|
65
65
|
readonly autoIncrementVersion: pulumi.Output<boolean | undefined>;
|
|
66
66
|
/**
|
|
@@ -100,7 +100,7 @@ export declare class Role extends pulumi.CustomResource {
|
|
|
100
100
|
*/
|
|
101
101
|
readonly uid: pulumi.Output<string>;
|
|
102
102
|
/**
|
|
103
|
-
* Version of the role.
|
|
103
|
+
* Version of the role. On create, must be `1`. On update, must be exactly one greater than the previous state. This field or `autoIncrementVersion` should be set; `autoIncrementVersion` is recommended.
|
|
104
104
|
*/
|
|
105
105
|
readonly version: pulumi.Output<number | undefined>;
|
|
106
106
|
/**
|
|
@@ -117,7 +117,7 @@ export declare class Role extends pulumi.CustomResource {
|
|
|
117
117
|
*/
|
|
118
118
|
export interface RoleState {
|
|
119
119
|
/**
|
|
120
|
-
* Whether the role version should be incremented automatically on updates (and set to 1 on creation). This field or `version` should be set.
|
|
120
|
+
* Whether the role version should be incremented automatically on updates (and set to 1 on creation). Recommended for most configurations. This field or `version` should be set.
|
|
121
121
|
*/
|
|
122
122
|
autoIncrementVersion?: pulumi.Input<boolean>;
|
|
123
123
|
/**
|
|
@@ -157,7 +157,7 @@ export interface RoleState {
|
|
|
157
157
|
*/
|
|
158
158
|
uid?: pulumi.Input<string>;
|
|
159
159
|
/**
|
|
160
|
-
* Version of the role.
|
|
160
|
+
* Version of the role. On create, must be `1`. On update, must be exactly one greater than the previous state. This field or `autoIncrementVersion` should be set; `autoIncrementVersion` is recommended.
|
|
161
161
|
*/
|
|
162
162
|
version?: pulumi.Input<number>;
|
|
163
163
|
}
|
|
@@ -166,7 +166,7 @@ export interface RoleState {
|
|
|
166
166
|
*/
|
|
167
167
|
export interface RoleArgs {
|
|
168
168
|
/**
|
|
169
|
-
* Whether the role version should be incremented automatically on updates (and set to 1 on creation). This field or `version` should be set.
|
|
169
|
+
* Whether the role version should be incremented automatically on updates (and set to 1 on creation). Recommended for most configurations. This field or `version` should be set.
|
|
170
170
|
*/
|
|
171
171
|
autoIncrementVersion?: pulumi.Input<boolean>;
|
|
172
172
|
/**
|
|
@@ -206,7 +206,7 @@ export interface RoleArgs {
|
|
|
206
206
|
*/
|
|
207
207
|
uid?: pulumi.Input<string>;
|
|
208
208
|
/**
|
|
209
|
-
* Version of the role.
|
|
209
|
+
* Version of the role. On create, must be `1`. On update, must be exactly one greater than the previous state. This field or `autoIncrementVersion` should be set; `autoIncrementVersion` is recommended.
|
|
210
210
|
*/
|
|
211
211
|
version?: pulumi.Input<number>;
|
|
212
212
|
}
|
|
@@ -49,9 +49,9 @@ export declare class ScimConfig extends pulumi.CustomResource {
|
|
|
49
49
|
*/
|
|
50
50
|
readonly enableUserSync: pulumi.Output<boolean>;
|
|
51
51
|
/**
|
|
52
|
-
* The Organization ID. If not set, the
|
|
52
|
+
* The Organization ID. If not set, the default organization is used for basic authentication, or the one that owns your service account for token authentication.
|
|
53
53
|
*/
|
|
54
|
-
readonly orgId: pulumi.Output<string
|
|
54
|
+
readonly orgId: pulumi.Output<string>;
|
|
55
55
|
/**
|
|
56
56
|
* Whether to block non-provisioned user access to Grafana. Cloud Portal users will always be able to access Grafana, regardless of this setting.
|
|
57
57
|
*/
|
|
@@ -78,7 +78,7 @@ export interface ScimConfigState {
|
|
|
78
78
|
*/
|
|
79
79
|
enableUserSync?: pulumi.Input<boolean>;
|
|
80
80
|
/**
|
|
81
|
-
* The Organization ID. If not set, the
|
|
81
|
+
* The Organization ID. If not set, the default organization is used for basic authentication, or the one that owns your service account for token authentication.
|
|
82
82
|
*/
|
|
83
83
|
orgId?: pulumi.Input<string>;
|
|
84
84
|
/**
|
|
@@ -99,7 +99,7 @@ export interface ScimConfigArgs {
|
|
|
99
99
|
*/
|
|
100
100
|
enableUserSync: pulumi.Input<boolean>;
|
|
101
101
|
/**
|
|
102
|
-
* The Organization ID. If not set, the
|
|
102
|
+
* The Organization ID. If not set, the default organization is used for basic authentication, or the one that owns your service account for token authentication.
|
|
103
103
|
*/
|
|
104
104
|
orgId?: pulumi.Input<string>;
|
|
105
105
|
/**
|
package/oss/playlist.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "../types/input";
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
|
+
* Manages Grafana playlists.
|
|
6
|
+
*
|
|
5
7
|
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/create-manage-playlists/)
|
|
6
8
|
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/playlist/)
|
|
7
9
|
*
|
|
@@ -53,7 +55,7 @@ export declare class Playlist extends pulumi.CustomResource {
|
|
|
53
55
|
*/
|
|
54
56
|
static isInstance(obj: any): obj is Playlist;
|
|
55
57
|
readonly interval: pulumi.Output<string>;
|
|
56
|
-
readonly items: pulumi.Output<outputs.oss.PlaylistItem[]>;
|
|
58
|
+
readonly items: pulumi.Output<outputs.oss.PlaylistItem[] | undefined>;
|
|
57
59
|
/**
|
|
58
60
|
* The name of the playlist.
|
|
59
61
|
*/
|
|
@@ -61,7 +63,7 @@ export declare class Playlist extends pulumi.CustomResource {
|
|
|
61
63
|
/**
|
|
62
64
|
* The Organization ID. If not set, the Org ID defined in the provider block will be used.
|
|
63
65
|
*/
|
|
64
|
-
readonly orgId: pulumi.Output<string
|
|
66
|
+
readonly orgId: pulumi.Output<string>;
|
|
65
67
|
/**
|
|
66
68
|
* Create a Playlist resource with the given unique name, arguments, and options.
|
|
67
69
|
*
|
|
@@ -91,7 +93,7 @@ export interface PlaylistState {
|
|
|
91
93
|
*/
|
|
92
94
|
export interface PlaylistArgs {
|
|
93
95
|
interval: pulumi.Input<string>;
|
|
94
|
-
items
|
|
96
|
+
items?: pulumi.Input<pulumi.Input<inputs.oss.PlaylistItem>[]>;
|
|
95
97
|
/**
|
|
96
98
|
* The name of the playlist.
|
|
97
99
|
*/
|
package/oss/playlist.js
CHANGED
|
@@ -6,6 +6,8 @@ exports.Playlist = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
+
* Manages Grafana playlists.
|
|
10
|
+
*
|
|
9
11
|
* * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/create-manage-playlists/)
|
|
10
12
|
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/playlist/)
|
|
11
13
|
*
|
|
@@ -78,9 +80,6 @@ class Playlist extends pulumi.CustomResource {
|
|
|
78
80
|
if (args?.interval === undefined && !opts.urn) {
|
|
79
81
|
throw new Error("Missing required property 'interval'");
|
|
80
82
|
}
|
|
81
|
-
if (args?.items === undefined && !opts.urn) {
|
|
82
|
-
throw new Error("Missing required property 'items'");
|
|
83
|
-
}
|
|
84
83
|
resourceInputs["interval"] = args?.interval;
|
|
85
84
|
resourceInputs["items"] = args?.items;
|
|
86
85
|
resourceInputs["name"] = args?.name;
|
package/oss/playlist.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playlist.js","sourceRoot":"","sources":["../../oss/playlist.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"playlist.js","sourceRoot":"","sources":["../../oss/playlist.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QA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C;QAC7E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAtEL,4BAuEC;AAzDG,gBAAgB;AACO,qBAAY,GAAG,+BAA+B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumiverse/grafana",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.0-alpha.1775034987",
|
|
4
4
|
"description": "A Pulumi package for creating and managing grafana.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"pulumi": {
|
|
25
25
|
"resource": true,
|
|
26
26
|
"name": "grafana",
|
|
27
|
-
"version": "2.
|
|
27
|
+
"version": "2.23.0-alpha.1775034987",
|
|
28
28
|
"server": "github://api.github.com/pulumiverse"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/types/input.d.ts
CHANGED
|
@@ -3433,6 +3433,60 @@ export declare namespace apps {
|
|
|
3433
3433
|
title?: pulumi.Input<string>;
|
|
3434
3434
|
}
|
|
3435
3435
|
}
|
|
3436
|
+
namespace v2 {
|
|
3437
|
+
interface DashboardMetadata {
|
|
3438
|
+
/**
|
|
3439
|
+
* Annotations of the resource.
|
|
3440
|
+
*/
|
|
3441
|
+
annotations?: pulumi.Input<{
|
|
3442
|
+
[key: string]: pulumi.Input<string>;
|
|
3443
|
+
}>;
|
|
3444
|
+
/**
|
|
3445
|
+
* The UID of the folder to save the resource in.
|
|
3446
|
+
*/
|
|
3447
|
+
folderUid?: pulumi.Input<string>;
|
|
3448
|
+
/**
|
|
3449
|
+
* The unique identifier of the resource.
|
|
3450
|
+
*/
|
|
3451
|
+
uid: pulumi.Input<string>;
|
|
3452
|
+
/**
|
|
3453
|
+
* The full URL of the resource.
|
|
3454
|
+
*/
|
|
3455
|
+
url?: pulumi.Input<string>;
|
|
3456
|
+
/**
|
|
3457
|
+
* The globally unique identifier of a resource, used by the API for tracking.
|
|
3458
|
+
*/
|
|
3459
|
+
uuid?: pulumi.Input<string>;
|
|
3460
|
+
/**
|
|
3461
|
+
* The version of the resource.
|
|
3462
|
+
*/
|
|
3463
|
+
version?: pulumi.Input<string>;
|
|
3464
|
+
}
|
|
3465
|
+
interface DashboardOptions {
|
|
3466
|
+
/**
|
|
3467
|
+
* Set to true to allow editing the resource from the Grafana UI. By default, resources managed by Terraform cannot be edited in the UI. Enabling this option will cause divergence between the Terraform configuration and the resource in Grafana.
|
|
3468
|
+
*/
|
|
3469
|
+
allowUiUpdates?: pulumi.Input<boolean>;
|
|
3470
|
+
/**
|
|
3471
|
+
* Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
|
|
3472
|
+
*/
|
|
3473
|
+
overwrite?: pulumi.Input<boolean>;
|
|
3474
|
+
}
|
|
3475
|
+
interface DashboardSpec {
|
|
3476
|
+
/**
|
|
3477
|
+
* The JSON representation of the dashboard v2 spec.
|
|
3478
|
+
*/
|
|
3479
|
+
json: pulumi.Input<string>;
|
|
3480
|
+
/**
|
|
3481
|
+
* The tags of the dashboard. If not set, the tags will be derived from the JSON spec.
|
|
3482
|
+
*/
|
|
3483
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
3484
|
+
/**
|
|
3485
|
+
* The title of the dashboard. If not set, the title will be derived from the JSON spec.
|
|
3486
|
+
*/
|
|
3487
|
+
title?: pulumi.Input<string>;
|
|
3488
|
+
}
|
|
3489
|
+
}
|
|
3436
3490
|
namespace v2beta1 {
|
|
3437
3491
|
interface DashboardMetadata {
|
|
3438
3492
|
/**
|
package/types/output.d.ts
CHANGED
|
@@ -3432,6 +3432,60 @@ export declare namespace apps {
|
|
|
3432
3432
|
title?: string;
|
|
3433
3433
|
}
|
|
3434
3434
|
}
|
|
3435
|
+
namespace v2 {
|
|
3436
|
+
interface DashboardMetadata {
|
|
3437
|
+
/**
|
|
3438
|
+
* Annotations of the resource.
|
|
3439
|
+
*/
|
|
3440
|
+
annotations: {
|
|
3441
|
+
[key: string]: string;
|
|
3442
|
+
};
|
|
3443
|
+
/**
|
|
3444
|
+
* The UID of the folder to save the resource in.
|
|
3445
|
+
*/
|
|
3446
|
+
folderUid?: string;
|
|
3447
|
+
/**
|
|
3448
|
+
* The unique identifier of the resource.
|
|
3449
|
+
*/
|
|
3450
|
+
uid: string;
|
|
3451
|
+
/**
|
|
3452
|
+
* The full URL of the resource.
|
|
3453
|
+
*/
|
|
3454
|
+
url: string;
|
|
3455
|
+
/**
|
|
3456
|
+
* The globally unique identifier of a resource, used by the API for tracking.
|
|
3457
|
+
*/
|
|
3458
|
+
uuid: string;
|
|
3459
|
+
/**
|
|
3460
|
+
* The version of the resource.
|
|
3461
|
+
*/
|
|
3462
|
+
version: string;
|
|
3463
|
+
}
|
|
3464
|
+
interface DashboardOptions {
|
|
3465
|
+
/**
|
|
3466
|
+
* Set to true to allow editing the resource from the Grafana UI. By default, resources managed by Terraform cannot be edited in the UI. Enabling this option will cause divergence between the Terraform configuration and the resource in Grafana.
|
|
3467
|
+
*/
|
|
3468
|
+
allowUiUpdates?: boolean;
|
|
3469
|
+
/**
|
|
3470
|
+
* Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
|
|
3471
|
+
*/
|
|
3472
|
+
overwrite?: boolean;
|
|
3473
|
+
}
|
|
3474
|
+
interface DashboardSpec {
|
|
3475
|
+
/**
|
|
3476
|
+
* The JSON representation of the dashboard v2 spec.
|
|
3477
|
+
*/
|
|
3478
|
+
json: string;
|
|
3479
|
+
/**
|
|
3480
|
+
* The tags of the dashboard. If not set, the tags will be derived from the JSON spec.
|
|
3481
|
+
*/
|
|
3482
|
+
tags?: string[];
|
|
3483
|
+
/**
|
|
3484
|
+
* The title of the dashboard. If not set, the title will be derived from the JSON spec.
|
|
3485
|
+
*/
|
|
3486
|
+
title?: string;
|
|
3487
|
+
}
|
|
3488
|
+
}
|
|
3435
3489
|
namespace v2beta1 {
|
|
3436
3490
|
interface DashboardMetadata {
|
|
3437
3491
|
/**
|