@pulumiverse/grafana 2.23.0 → 2.24.0-alpha.1775812311

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/apps/genericResource.d.ts +163 -0
  2. package/apps/genericResource.js +133 -0
  3. package/apps/genericResource.js.map +1 -0
  4. package/apps/index.d.ts +5 -1
  5. package/apps/index.js +19 -1
  6. package/apps/index.js.map +1 -1
  7. package/apps/v0alpha1/playlist.d.ts +1 -1
  8. package/apps/v0alpha1/playlist.js +1 -1
  9. package/apps/v1/index.d.ts +3 -0
  10. package/apps/v1/index.js +22 -0
  11. package/apps/v1/index.js.map +1 -0
  12. package/apps/v1/playlist.d.ts +101 -0
  13. package/apps/v1/playlist.js +80 -0
  14. package/apps/v1/playlist.js.map +1 -0
  15. package/cloud/getStack.d.ts +36 -0
  16. package/cloud/getStack.js.map +1 -1
  17. package/cloud/pluginInstallation.d.ts +1 -1
  18. package/cloud/pluginInstallation.js +1 -1
  19. package/cloud/stack.d.ts +72 -0
  20. package/cloud/stack.js +18 -0
  21. package/cloud/stack.js.map +1 -1
  22. package/enterprise/dataSourcePermission.d.ts +12 -0
  23. package/enterprise/dataSourcePermission.js +2 -0
  24. package/enterprise/dataSourcePermission.js.map +1 -1
  25. package/enterprise/dataSourcePermissionItem.d.ts +12 -0
  26. package/enterprise/dataSourcePermissionItem.js +2 -0
  27. package/enterprise/dataSourcePermissionItem.js.map +1 -1
  28. package/enterprise/report.d.ts +25 -25
  29. package/enterprise/report.js +0 -3
  30. package/enterprise/report.js.map +1 -1
  31. package/experimental/appsPlaylistV0Alpha1.d.ts +1 -1
  32. package/experimental/appsPlaylistV0Alpha1.js +1 -1
  33. package/oncall/escalation.d.ts +9 -9
  34. package/oss/dashboard.d.ts +2 -1
  35. package/oss/dashboard.js +2 -1
  36. package/oss/dashboard.js.map +1 -1
  37. package/oss/dashboardPermission.d.ts +6 -6
  38. package/oss/dashboardPermission.js +3 -0
  39. package/oss/dashboardPermission.js.map +1 -1
  40. package/oss/dashboardPublic.d.ts +8 -8
  41. package/oss/folderPermission.d.ts +4 -4
  42. package/oss/getServiceAccount.d.ts +1 -1
  43. package/oss/getTeam.d.ts +66 -4
  44. package/oss/getTeam.js +4 -0
  45. package/oss/getTeam.js.map +1 -1
  46. package/oss/serviceAccount.d.ts +2 -2
  47. package/oss/team.d.ts +19 -25
  48. package/oss/team.js.map +1 -1
  49. package/package.json +2 -2
  50. package/slo/slo.d.ts +6 -0
  51. package/slo/slo.js +6 -0
  52. package/slo/slo.js.map +1 -1
  53. package/syntheticmonitoring/getProbes.d.ts +1 -1
  54. package/syntheticmonitoring/probe.d.ts +3 -3
  55. package/types/input.d.ts +125 -9
  56. package/types/output.d.ts +120 -26
@@ -0,0 +1,163 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages arbitrary Grafana App Platform resources when a typed Terraform resource is not yet available. The resource is still experimental; diffing semantics are subject to change - feedback welcome in https://github.com/grafana/terraform-provider-grafana/issues.
4
+ *
5
+ * This resource accepts a Kubernetes-style `manifest` as the single source of truth for the resource definition. Use HCL `merge()` if you need to inject Terraform variables into a static manifest file.
6
+ *
7
+ * Only namespaced App Platform kinds are supported. The provider autodiscovers the namespace from `/bootdata` on every operation. If autodiscovery does not find a cloud stack namespace, the provider falls back to the explicit `stackId` and then `orgId` provider settings.
8
+ *
9
+ * Top-level manifest fields are limited to `apiVersion`, `kind`, `metadata`, `spec`, and the ignored `status` field. If `metadata.namespace` is configured, it must match the provider-selected namespace.
10
+ *
11
+ * Inside `manifest.metadata`, both Kubernetes `name` and `uid` are accepted as input aliases for the object identifier.
12
+ *
13
+ * The top-level `secure` argument is write-only and requires Terraform 1.11 or later. Each configured key must set exactly one of `create` or `name`, and Terraform only re-sends those secure values when `secureVersion` changes.
14
+ *
15
+ * Reads refresh managed drift from the API. Metadata drift is limited to the metadata keys you configured; `spec` is authoritative, so extra remote spec fields are refreshed into state and will drift until Terraform restores the configured object.
16
+ *
17
+ * Import format:
18
+ *
19
+ * Import stores a normalized manifest without noisy server-managed metadata such as `resourceVersion` or `managedFields`. Because `secure` is write-only, imported configurations still need you to add `secure` and `secureVersion` manually afterward.
20
+ *
21
+ * ## Example Usage
22
+ *
23
+ * ### Repository with Secure Fields
24
+ *
25
+ * ```typescript
26
+ * import * as pulumi from "@pulumi/pulumi";
27
+ * import * as grafana from "@pulumiverse/grafana";
28
+ *
29
+ * // Repository with secure fields.
30
+ * // Secure values are top-level because `secure` is write-only and cannot live in the manifest.
31
+ * const repository = new grafana.apps.GenericResource("repository", {
32
+ * manifest: {
33
+ * apiVersion: "provisioning.grafana.app/v1beta1",
34
+ * kind: "Repository",
35
+ * metadata: {
36
+ * name: "platform-repo",
37
+ * },
38
+ * spec: {
39
+ * title: "Platform Repository",
40
+ * description: "Repository managed through the generic resource",
41
+ * type: "github",
42
+ * workflows: ["write"],
43
+ * sync: {
44
+ * enabled: false,
45
+ * target: "folder",
46
+ * intervalSeconds: 300,
47
+ * },
48
+ * github: {
49
+ * url: "https://github.com/example/grafana-dashboards",
50
+ * branch: "main",
51
+ * path: "grafana",
52
+ * generateDashboardPreviews: false,
53
+ * },
54
+ * },
55
+ * },
56
+ * secure: {
57
+ * token: {
58
+ * create: githubToken,
59
+ * },
60
+ * webhookSecret: {
61
+ * create: webhookSecret,
62
+ * },
63
+ * },
64
+ * secureVersion: 1,
65
+ * });
66
+ * ```
67
+ *
68
+ * ## Import
69
+ *
70
+ * Import uses the format `<api_group>/<version>/<kind>/<object_name>`:
71
+ *
72
+ * ```sh
73
+ * $ pulumi import grafana:apps/genericResource:GenericResource example provisioning.grafana.app/v1beta1/Repository/platform-repo
74
+ * ```
75
+ *
76
+ * After import, add `secure` and `secureVersion` back manually because write-only arguments are not stored in state.
77
+ */
78
+ export declare class GenericResource extends pulumi.CustomResource {
79
+ /**
80
+ * Get an existing GenericResource resource's state with the given name, ID, and optional extra
81
+ * properties used to qualify the lookup.
82
+ *
83
+ * @param name The _unique_ name of the resulting resource.
84
+ * @param id The _unique_ provider ID of the resource to lookup.
85
+ * @param state Any extra arguments used during the lookup.
86
+ * @param opts Optional settings to control the behavior of the CustomResource.
87
+ */
88
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GenericResourceState, opts?: pulumi.CustomResourceOptions): GenericResource;
89
+ /**
90
+ * Returns true if the given object is an instance of GenericResource. This is designed to work even
91
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
92
+ */
93
+ static isInstance(obj: any): obj is GenericResource;
94
+ /**
95
+ * Whether the resource can be edited from the Grafana UI. Defaults to `false` — Terraform-managed resources are locked from UI edits unless you opt in. Set to `true` to allow UI modifications; not supported by all resources.
96
+ */
97
+ readonly allowUiUpdates: pulumi.Output<boolean>;
98
+ /**
99
+ * Kubernetes-style manifest, typically from `yamldecode(file(...))` or `jsondecode(file(...))`. Must contain `apiVersion`, `kind`, `metadata` (with `name` or `uid`), and `spec`. Use HCL `merge()` to inject Terraform variables. If you start from an exported manifest, remove noisy server-managed metadata such as `resourceVersion`, `generation`, and `managedFields`, or import the resource first and use the normalized state shape. If `metadata.namespace` is set, it must match the namespace selected from provider `orgId` or `stackId` / autodiscovery. Top-level manifest fields are limited to `apiVersion`, `kind`, `metadata`, `spec`, and the ignored `status` field. The `secure` field must not be set here; use the top-level `secure` argument instead.
100
+ */
101
+ readonly manifest: pulumi.Output<any>;
102
+ /**
103
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
104
+ * Write-only secure values map. Each key must contain exactly one of `create` or `name`; empty objects are invalid.
105
+ */
106
+ readonly secure: pulumi.Output<any | undefined>;
107
+ /**
108
+ * Set this to 1 when using `secure`, then increment it whenever you want Terraform to re-apply secure values.
109
+ */
110
+ readonly secureVersion: pulumi.Output<number | undefined>;
111
+ /**
112
+ * Create a GenericResource resource with the given unique name, arguments, and options.
113
+ *
114
+ * @param name The _unique_ name of the resource.
115
+ * @param args The arguments to use to populate this resource's properties.
116
+ * @param opts A bag of options that control this resource's behavior.
117
+ */
118
+ constructor(name: string, args?: GenericResourceArgs, opts?: pulumi.CustomResourceOptions);
119
+ }
120
+ /**
121
+ * Input properties used for looking up and filtering GenericResource resources.
122
+ */
123
+ export interface GenericResourceState {
124
+ /**
125
+ * Whether the resource can be edited from the Grafana UI. Defaults to `false` — Terraform-managed resources are locked from UI edits unless you opt in. Set to `true` to allow UI modifications; not supported by all resources.
126
+ */
127
+ allowUiUpdates?: pulumi.Input<boolean>;
128
+ /**
129
+ * Kubernetes-style manifest, typically from `yamldecode(file(...))` or `jsondecode(file(...))`. Must contain `apiVersion`, `kind`, `metadata` (with `name` or `uid`), and `spec`. Use HCL `merge()` to inject Terraform variables. If you start from an exported manifest, remove noisy server-managed metadata such as `resourceVersion`, `generation`, and `managedFields`, or import the resource first and use the normalized state shape. If `metadata.namespace` is set, it must match the namespace selected from provider `orgId` or `stackId` / autodiscovery. Top-level manifest fields are limited to `apiVersion`, `kind`, `metadata`, `spec`, and the ignored `status` field. The `secure` field must not be set here; use the top-level `secure` argument instead.
130
+ */
131
+ manifest?: any;
132
+ /**
133
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
134
+ * Write-only secure values map. Each key must contain exactly one of `create` or `name`; empty objects are invalid.
135
+ */
136
+ secure?: any;
137
+ /**
138
+ * Set this to 1 when using `secure`, then increment it whenever you want Terraform to re-apply secure values.
139
+ */
140
+ secureVersion?: pulumi.Input<number>;
141
+ }
142
+ /**
143
+ * The set of arguments for constructing a GenericResource resource.
144
+ */
145
+ export interface GenericResourceArgs {
146
+ /**
147
+ * Whether the resource can be edited from the Grafana UI. Defaults to `false` — Terraform-managed resources are locked from UI edits unless you opt in. Set to `true` to allow UI modifications; not supported by all resources.
148
+ */
149
+ allowUiUpdates?: pulumi.Input<boolean>;
150
+ /**
151
+ * Kubernetes-style manifest, typically from `yamldecode(file(...))` or `jsondecode(file(...))`. Must contain `apiVersion`, `kind`, `metadata` (with `name` or `uid`), and `spec`. Use HCL `merge()` to inject Terraform variables. If you start from an exported manifest, remove noisy server-managed metadata such as `resourceVersion`, `generation`, and `managedFields`, or import the resource first and use the normalized state shape. If `metadata.namespace` is set, it must match the namespace selected from provider `orgId` or `stackId` / autodiscovery. Top-level manifest fields are limited to `apiVersion`, `kind`, `metadata`, `spec`, and the ignored `status` field. The `secure` field must not be set here; use the top-level `secure` argument instead.
152
+ */
153
+ manifest?: any;
154
+ /**
155
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
156
+ * Write-only secure values map. Each key must contain exactly one of `create` or `name`; empty objects are invalid.
157
+ */
158
+ secure?: any;
159
+ /**
160
+ * Set this to 1 when using `secure`, then increment it whenever you want Terraform to re-apply secure values.
161
+ */
162
+ secureVersion?: pulumi.Input<number>;
163
+ }
@@ -0,0 +1,133 @@
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.GenericResource = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Manages arbitrary Grafana App Platform resources when a typed Terraform resource is not yet available. The resource is still experimental; diffing semantics are subject to change - feedback welcome in https://github.com/grafana/terraform-provider-grafana/issues.
10
+ *
11
+ * This resource accepts a Kubernetes-style `manifest` as the single source of truth for the resource definition. Use HCL `merge()` if you need to inject Terraform variables into a static manifest file.
12
+ *
13
+ * Only namespaced App Platform kinds are supported. The provider autodiscovers the namespace from `/bootdata` on every operation. If autodiscovery does not find a cloud stack namespace, the provider falls back to the explicit `stackId` and then `orgId` provider settings.
14
+ *
15
+ * Top-level manifest fields are limited to `apiVersion`, `kind`, `metadata`, `spec`, and the ignored `status` field. If `metadata.namespace` is configured, it must match the provider-selected namespace.
16
+ *
17
+ * Inside `manifest.metadata`, both Kubernetes `name` and `uid` are accepted as input aliases for the object identifier.
18
+ *
19
+ * The top-level `secure` argument is write-only and requires Terraform 1.11 or later. Each configured key must set exactly one of `create` or `name`, and Terraform only re-sends those secure values when `secureVersion` changes.
20
+ *
21
+ * Reads refresh managed drift from the API. Metadata drift is limited to the metadata keys you configured; `spec` is authoritative, so extra remote spec fields are refreshed into state and will drift until Terraform restores the configured object.
22
+ *
23
+ * Import format:
24
+ *
25
+ * Import stores a normalized manifest without noisy server-managed metadata such as `resourceVersion` or `managedFields`. Because `secure` is write-only, imported configurations still need you to add `secure` and `secureVersion` manually afterward.
26
+ *
27
+ * ## Example Usage
28
+ *
29
+ * ### Repository with Secure Fields
30
+ *
31
+ * ```typescript
32
+ * import * as pulumi from "@pulumi/pulumi";
33
+ * import * as grafana from "@pulumiverse/grafana";
34
+ *
35
+ * // Repository with secure fields.
36
+ * // Secure values are top-level because `secure` is write-only and cannot live in the manifest.
37
+ * const repository = new grafana.apps.GenericResource("repository", {
38
+ * manifest: {
39
+ * apiVersion: "provisioning.grafana.app/v1beta1",
40
+ * kind: "Repository",
41
+ * metadata: {
42
+ * name: "platform-repo",
43
+ * },
44
+ * spec: {
45
+ * title: "Platform Repository",
46
+ * description: "Repository managed through the generic resource",
47
+ * type: "github",
48
+ * workflows: ["write"],
49
+ * sync: {
50
+ * enabled: false,
51
+ * target: "folder",
52
+ * intervalSeconds: 300,
53
+ * },
54
+ * github: {
55
+ * url: "https://github.com/example/grafana-dashboards",
56
+ * branch: "main",
57
+ * path: "grafana",
58
+ * generateDashboardPreviews: false,
59
+ * },
60
+ * },
61
+ * },
62
+ * secure: {
63
+ * token: {
64
+ * create: githubToken,
65
+ * },
66
+ * webhookSecret: {
67
+ * create: webhookSecret,
68
+ * },
69
+ * },
70
+ * secureVersion: 1,
71
+ * });
72
+ * ```
73
+ *
74
+ * ## Import
75
+ *
76
+ * Import uses the format `<api_group>/<version>/<kind>/<object_name>`:
77
+ *
78
+ * ```sh
79
+ * $ pulumi import grafana:apps/genericResource:GenericResource example provisioning.grafana.app/v1beta1/Repository/platform-repo
80
+ * ```
81
+ *
82
+ * After import, add `secure` and `secureVersion` back manually because write-only arguments are not stored in state.
83
+ */
84
+ class GenericResource extends pulumi.CustomResource {
85
+ /**
86
+ * Get an existing GenericResource resource's state with the given name, ID, and optional extra
87
+ * properties used to qualify the lookup.
88
+ *
89
+ * @param name The _unique_ name of the resulting resource.
90
+ * @param id The _unique_ provider ID of the resource to lookup.
91
+ * @param state Any extra arguments used during the lookup.
92
+ * @param opts Optional settings to control the behavior of the CustomResource.
93
+ */
94
+ static get(name, id, state, opts) {
95
+ return new GenericResource(name, state, { ...opts, id: id });
96
+ }
97
+ /**
98
+ * Returns true if the given object is an instance of GenericResource. 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'] === GenericResource.__pulumiType;
106
+ }
107
+ constructor(name, argsOrState, opts) {
108
+ let resourceInputs = {};
109
+ opts = opts || {};
110
+ if (opts.id) {
111
+ const state = argsOrState;
112
+ resourceInputs["allowUiUpdates"] = state?.allowUiUpdates;
113
+ resourceInputs["manifest"] = state?.manifest;
114
+ resourceInputs["secure"] = state?.secure;
115
+ resourceInputs["secureVersion"] = state?.secureVersion;
116
+ }
117
+ else {
118
+ const args = argsOrState;
119
+ resourceInputs["allowUiUpdates"] = args?.allowUiUpdates;
120
+ resourceInputs["manifest"] = args?.manifest;
121
+ resourceInputs["secure"] = args?.secure ? pulumi.secret(args.secure) : undefined;
122
+ resourceInputs["secureVersion"] = args?.secureVersion;
123
+ }
124
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
125
+ const secretOpts = { additionalSecretOutputs: ["secure"] };
126
+ opts = pulumi.mergeOptions(opts, secretOpts);
127
+ super(GenericResource.__pulumiType, name, resourceInputs, opts);
128
+ }
129
+ }
130
+ exports.GenericResource = GenericResource;
131
+ /** @internal */
132
+ GenericResource.__pulumiType = 'grafana:apps/genericResource:GenericResource';
133
+ //# sourceMappingURL=genericResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"genericResource.js","sourceRoot":"","sources":["../../apps/genericResource.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IA4BD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,EAAE,cAAc,CAAC;YACzD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,EAAE,aAAa,CAAC;SAC1D;aAAM;YACH,MAAM,IAAI,GAAG,WAA8C,CAAC;YAC5D,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACjF,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA1EL,0CA2EC;AA7DG,gBAAgB;AACO,4BAAY,GAAG,8CAA8C,CAAC"}
package/apps/index.d.ts CHANGED
@@ -1,5 +1,9 @@
1
+ export { GenericResourceArgs, GenericResourceState } from "./genericResource";
2
+ export type GenericResource = import("./genericResource").GenericResource;
3
+ export declare const GenericResource: typeof import("./genericResource").GenericResource;
1
4
  import * as v0alpha1 from "./v0alpha1";
5
+ import * as v1 from "./v1";
2
6
  import * as v1beta1 from "./v1beta1";
3
7
  import * as v2 from "./v2";
4
8
  import * as v2beta1 from "./v2beta1";
5
- export { v0alpha1, v1beta1, v2, v2beta1, };
9
+ export { v0alpha1, v1, v1beta1, v2, v2beta1, };
package/apps/index.js CHANGED
@@ -2,14 +2,32 @@
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.v2 = exports.v1beta1 = exports.v0alpha1 = void 0;
5
+ exports.v2beta1 = exports.v2 = exports.v1beta1 = exports.v1 = exports.v0alpha1 = exports.GenericResource = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ exports.GenericResource = null;
9
+ utilities.lazyLoad(exports, ["GenericResource"], () => require("./genericResource"));
6
10
  // Export sub-modules:
7
11
  const v0alpha1 = require("./v0alpha1");
8
12
  exports.v0alpha1 = v0alpha1;
13
+ const v1 = require("./v1");
14
+ exports.v1 = v1;
9
15
  const v1beta1 = require("./v1beta1");
10
16
  exports.v1beta1 = v1beta1;
11
17
  const v2 = require("./v2");
12
18
  exports.v2 = v2;
13
19
  const v2beta1 = require("./v2beta1");
14
20
  exports.v2beta1 = v2beta1;
21
+ const _module = {
22
+ version: utilities.getVersion(),
23
+ construct: (name, type, urn) => {
24
+ switch (type) {
25
+ case "grafana:apps/genericResource:GenericResource":
26
+ return new exports.GenericResource(name, undefined, { urn });
27
+ default:
28
+ throw new Error(`unknown resource type ${type}`);
29
+ }
30
+ },
31
+ };
32
+ pulumi.runtime.registerResourceModule("grafana", "apps/genericResource", _module);
15
33
  //# 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;AAMnC,4BAAQ;AALZ,qCAAqC;AAMjC,0BAAO;AALX,2BAA2B;AAMvB,gBAAE;AALN,qCAAqC;AAMjC,0BAAO"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../apps/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,eAAe,GAAuD,IAAW,CAAC;AAC/F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAGrF,sBAAsB;AACtB,uCAAuC;AAOnC,4BAAQ;AANZ,2BAA2B;AAOvB,gBAAE;AANN,qCAAqC;AAOjC,0BAAO;AANX,2BAA2B;AAOvB,gBAAE;AANN,qCAAqC;AAOjC,0BAAO;AAGX,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,8CAA8C;gBAC/C,OAAO,IAAI,uBAAe,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC7D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAA"}
@@ -22,7 +22,7 @@ import * as outputs from "../../types/output";
22
22
  * interval: "5m",
23
23
  * items: [{
24
24
  * type: "dashboard_by_uid",
25
- * value: "example-dashboard-uid",
25
+ * value: "example-dashboard",
26
26
  * }],
27
27
  * },
28
28
  * });
@@ -26,7 +26,7 @@ const utilities = require("../../utilities");
26
26
  * interval: "5m",
27
27
  * items: [{
28
28
  * type: "dashboard_by_uid",
29
- * value: "example-dashboard-uid",
29
+ * value: "example-dashboard",
30
30
  * }],
31
31
  * },
32
32
  * });
@@ -0,0 +1,3 @@
1
+ export { PlaylistArgs, PlaylistState } from "./playlist";
2
+ export type Playlist = import("./playlist").Playlist;
3
+ export declare const Playlist: typeof import("./playlist").Playlist;
@@ -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.Playlist = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../../utilities");
8
+ exports.Playlist = null;
9
+ utilities.lazyLoad(exports, ["Playlist"], () => require("./playlist"));
10
+ const _module = {
11
+ version: utilities.getVersion(),
12
+ construct: (name, type, urn) => {
13
+ switch (type) {
14
+ case "grafana:apps/v1/playlist:Playlist":
15
+ return new exports.Playlist(name, undefined, { urn });
16
+ default:
17
+ throw new Error(`unknown resource type ${type}`);
18
+ }
19
+ },
20
+ };
21
+ pulumi.runtime.registerResourceModule("grafana", "apps/v1/playlist", _module);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../apps/v1/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,6CAA6C;AAKhC,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAGvE,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,mCAAmC;gBACpC,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1,101 @@
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 playlists using the new Grafana APIs.
6
+ *
7
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/create-manage-playlists/)
8
+ * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/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.v1.Playlist("example", {
17
+ * metadata: {
18
+ * uid: "example-playlist",
19
+ * },
20
+ * spec: {
21
+ * title: "Example Playlist",
22
+ * interval: "5m",
23
+ * items: [{
24
+ * type: "dashboard_by_uid",
25
+ * value: "example-dashboard",
26
+ * }],
27
+ * },
28
+ * });
29
+ * ```
30
+ */
31
+ export declare class Playlist extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing Playlist resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PlaylistState, opts?: pulumi.CustomResourceOptions): Playlist;
42
+ /**
43
+ * Returns true if the given object is an instance of Playlist. This is designed to work even
44
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
45
+ */
46
+ static isInstance(obj: any): obj is Playlist;
47
+ /**
48
+ * The metadata of the resource.
49
+ */
50
+ readonly metadata: pulumi.Output<outputs.apps.v1.PlaylistMetadata | undefined>;
51
+ /**
52
+ * Options for applying the resource.
53
+ */
54
+ readonly options: pulumi.Output<outputs.apps.v1.PlaylistOptions | undefined>;
55
+ /**
56
+ * The spec of the resource.
57
+ */
58
+ readonly spec: pulumi.Output<outputs.apps.v1.PlaylistSpec | undefined>;
59
+ /**
60
+ * Create a Playlist resource with the given unique name, arguments, and options.
61
+ *
62
+ * @param name The _unique_ name of the resource.
63
+ * @param args The arguments to use to populate this resource's properties.
64
+ * @param opts A bag of options that control this resource's behavior.
65
+ */
66
+ constructor(name: string, args?: PlaylistArgs, opts?: pulumi.CustomResourceOptions);
67
+ }
68
+ /**
69
+ * Input properties used for looking up and filtering Playlist resources.
70
+ */
71
+ export interface PlaylistState {
72
+ /**
73
+ * The metadata of the resource.
74
+ */
75
+ metadata?: pulumi.Input<inputs.apps.v1.PlaylistMetadata>;
76
+ /**
77
+ * Options for applying the resource.
78
+ */
79
+ options?: pulumi.Input<inputs.apps.v1.PlaylistOptions>;
80
+ /**
81
+ * The spec of the resource.
82
+ */
83
+ spec?: pulumi.Input<inputs.apps.v1.PlaylistSpec>;
84
+ }
85
+ /**
86
+ * The set of arguments for constructing a Playlist resource.
87
+ */
88
+ export interface PlaylistArgs {
89
+ /**
90
+ * The metadata of the resource.
91
+ */
92
+ metadata?: pulumi.Input<inputs.apps.v1.PlaylistMetadata>;
93
+ /**
94
+ * Options for applying the resource.
95
+ */
96
+ options?: pulumi.Input<inputs.apps.v1.PlaylistOptions>;
97
+ /**
98
+ * The spec of the resource.
99
+ */
100
+ spec?: pulumi.Input<inputs.apps.v1.PlaylistSpec>;
101
+ }
@@ -0,0 +1,80 @@
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.Playlist = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../../utilities");
8
+ /**
9
+ * Manages Grafana playlists using the new Grafana APIs.
10
+ *
11
+ * * [Official documentation](https://grafana.com/docs/grafana/latest/dashboards/create-manage-playlists/)
12
+ * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/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.v1.Playlist("example", {
21
+ * metadata: {
22
+ * uid: "example-playlist",
23
+ * },
24
+ * spec: {
25
+ * title: "Example Playlist",
26
+ * interval: "5m",
27
+ * items: [{
28
+ * type: "dashboard_by_uid",
29
+ * value: "example-dashboard",
30
+ * }],
31
+ * },
32
+ * });
33
+ * ```
34
+ */
35
+ class Playlist extends pulumi.CustomResource {
36
+ /**
37
+ * Get an existing Playlist resource's state with the given name, ID, and optional extra
38
+ * properties used to qualify the lookup.
39
+ *
40
+ * @param name The _unique_ name of the resulting resource.
41
+ * @param id The _unique_ provider ID of the resource to lookup.
42
+ * @param state Any extra arguments used during the lookup.
43
+ * @param opts Optional settings to control the behavior of the CustomResource.
44
+ */
45
+ static get(name, id, state, opts) {
46
+ return new Playlist(name, state, { ...opts, id: id });
47
+ }
48
+ /**
49
+ * Returns true if the given object is an instance of Playlist. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === Playlist.__pulumiType;
57
+ }
58
+ constructor(name, argsOrState, opts) {
59
+ let resourceInputs = {};
60
+ opts = opts || {};
61
+ if (opts.id) {
62
+ const state = argsOrState;
63
+ resourceInputs["metadata"] = state?.metadata;
64
+ resourceInputs["options"] = state?.options;
65
+ resourceInputs["spec"] = state?.spec;
66
+ }
67
+ else {
68
+ const args = argsOrState;
69
+ resourceInputs["metadata"] = args?.metadata;
70
+ resourceInputs["options"] = args?.options;
71
+ resourceInputs["spec"] = args?.spec;
72
+ }
73
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
74
+ super(Playlist.__pulumiType, name, resourceInputs, opts);
75
+ }
76
+ }
77
+ exports.Playlist = Playlist;
78
+ /** @internal */
79
+ Playlist.__pulumiType = 'grafana:apps/v1/playlist:Playlist';
80
+ //# sourceMappingURL=playlist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playlist.js","sourceRoot":"","sources":["../../../apps/v1/playlist.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,6CAA6C;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;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;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;SACxC;aAAM;YACH,MAAM,IAAI,GAAG,WAAuC,CAAC;YACrD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,SAAS,CAAC,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,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAjEL,4BAkEC;AApDG,gBAAgB;AACO,qBAAY,GAAG,mCAAmC,CAAC"}