@pulumiverse/gandi 0.0.8

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 (86) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +407 -0
  3. package/config/index.d.ts +1 -0
  4. package/config/index.js +21 -0
  5. package/config/index.js.map +1 -0
  6. package/config/vars.d.ts +16 -0
  7. package/config/vars.js +31 -0
  8. package/config/vars.js.map +1 -0
  9. package/domains/dnssecKey.d.ts +84 -0
  10. package/domains/dnssecKey.js +67 -0
  11. package/domains/dnssecKey.js.map +1 -0
  12. package/domains/domain.d.ts +94 -0
  13. package/domains/domain.js +64 -0
  14. package/domains/domain.js.map +1 -0
  15. package/domains/getDomain.d.ts +38 -0
  16. package/domains/getDomain.js +22 -0
  17. package/domains/getDomain.js.map +1 -0
  18. package/domains/getGlueRecord.d.ts +50 -0
  19. package/domains/getGlueRecord.js +23 -0
  20. package/domains/getGlueRecord.js.map +1 -0
  21. package/domains/glueRecord.d.ts +96 -0
  22. package/domains/glueRecord.js +65 -0
  23. package/domains/glueRecord.js.map +1 -0
  24. package/domains/index.d.ts +6 -0
  25. package/domains/index.js +54 -0
  26. package/domains/index.js.map +1 -0
  27. package/domains/nameservers.d.ts +60 -0
  28. package/domains/nameservers.js +54 -0
  29. package/domains/nameservers.js.map +1 -0
  30. package/email/forwarding.d.ts +60 -0
  31. package/email/forwarding.js +57 -0
  32. package/email/forwarding.js.map +1 -0
  33. package/email/getMailbox.d.ts +46 -0
  34. package/email/getMailbox.js +23 -0
  35. package/email/getMailbox.js.map +1 -0
  36. package/email/index.d.ts +3 -0
  37. package/email/index.js +43 -0
  38. package/email/index.js.map +1 -0
  39. package/email/mailbox.d.ts +96 -0
  40. package/email/mailbox.js +66 -0
  41. package/email/mailbox.js.map +1 -0
  42. package/index.d.ts +8 -0
  43. package/index.js +47 -0
  44. package/index.js.map +1 -0
  45. package/livedns/domain.d.ts +81 -0
  46. package/livedns/domain.js +53 -0
  47. package/livedns/domain.js.map +1 -0
  48. package/livedns/getDomain.d.ts +34 -0
  49. package/livedns/getDomain.js +22 -0
  50. package/livedns/getDomain.js.map +1 -0
  51. package/livedns/getDomainNameserver.d.ts +38 -0
  52. package/livedns/getDomainNameserver.js +22 -0
  53. package/livedns/getDomainNameserver.js.map +1 -0
  54. package/livedns/index.d.ts +4 -0
  55. package/livedns/index.js +44 -0
  56. package/livedns/index.js.map +1 -0
  57. package/livedns/record.d.ts +116 -0
  58. package/livedns/record.js +73 -0
  59. package/livedns/record.js.map +1 -0
  60. package/package.json +30 -0
  61. package/package.json.bak +30 -0
  62. package/provider.d.ts +55 -0
  63. package/provider.js +51 -0
  64. package/provider.js.map +1 -0
  65. package/scripts/install-pulumi-plugin.js +26 -0
  66. package/simplehosting/index.d.ts +2 -0
  67. package/simplehosting/index.js +42 -0
  68. package/simplehosting/index.js.map +1 -0
  69. package/simplehosting/instance.d.ts +96 -0
  70. package/simplehosting/instance.js +69 -0
  71. package/simplehosting/instance.js.map +1 -0
  72. package/simplehosting/vhost.d.ts +92 -0
  73. package/simplehosting/vhost.js +63 -0
  74. package/simplehosting/vhost.js.map +1 -0
  75. package/types/index.d.ts +3 -0
  76. package/types/index.js +11 -0
  77. package/types/index.js.map +1 -0
  78. package/types/input.d.ts +243 -0
  79. package/types/input.js +5 -0
  80. package/types/input.js.map +1 -0
  81. package/types/output.d.ts +242 -0
  82. package/types/output.js +5 -0
  83. package/types/output.js.map +1 -0
  84. package/utilities.d.ts +4 -0
  85. package/utilities.js +57 -0
  86. package/utilities.js.map +1 -0
package/provider.d.ts ADDED
@@ -0,0 +1,55 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The provider type for the gandi package. By default, resources use package-wide configuration
4
+ * settings, however an explicit `Provider` instance may be created and passed during resource
5
+ * construction to achieve fine-grained programmatic control over provider settings. See the
6
+ * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
7
+ */
8
+ export declare class Provider extends pulumi.ProviderResource {
9
+ /**
10
+ * Returns true if the given object is an instance of Provider. This is designed to work even
11
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
12
+ */
13
+ static isInstance(obj: any): obj is Provider;
14
+ /**
15
+ * A Gandi API key
16
+ */
17
+ readonly key: pulumi.Output<string>;
18
+ /**
19
+ * A Gandi Sharing ID
20
+ */
21
+ readonly sharingId: pulumi.Output<string | undefined>;
22
+ /**
23
+ * The Gandi API URL
24
+ */
25
+ readonly url: pulumi.Output<string | undefined>;
26
+ /**
27
+ * Create a Provider resource with the given unique name, arguments, and options.
28
+ *
29
+ * @param name The _unique_ name of the resource.
30
+ * @param args The arguments to use to populate this resource's properties.
31
+ * @param opts A bag of options that control this resource's behavior.
32
+ */
33
+ constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
34
+ }
35
+ /**
36
+ * The set of arguments for constructing a Provider resource.
37
+ */
38
+ export interface ProviderArgs {
39
+ /**
40
+ * Prevent the Domain provider from taking certain actions
41
+ */
42
+ dryRun?: pulumi.Input<boolean>;
43
+ /**
44
+ * A Gandi API key
45
+ */
46
+ key: pulumi.Input<string>;
47
+ /**
48
+ * A Gandi Sharing ID
49
+ */
50
+ sharingId?: pulumi.Input<string>;
51
+ /**
52
+ * The Gandi API URL
53
+ */
54
+ url?: pulumi.Input<string>;
55
+ }
package/provider.js ADDED
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.Provider = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The provider type for the gandi package. By default, resources use package-wide configuration
10
+ * settings, however an explicit `Provider` instance may be created and passed during resource
11
+ * construction to achieve fine-grained programmatic control over provider settings. See the
12
+ * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
13
+ */
14
+ class Provider extends pulumi.ProviderResource {
15
+ /**
16
+ * Create a Provider resource with the given unique name, arguments, and options.
17
+ *
18
+ * @param name The _unique_ name of the resource.
19
+ * @param args The arguments to use to populate this resource's properties.
20
+ * @param opts A bag of options that control this resource's behavior.
21
+ */
22
+ constructor(name, args, opts) {
23
+ let resourceInputs = {};
24
+ opts = opts || {};
25
+ {
26
+ if ((!args || args.key === undefined) && !opts.urn) {
27
+ throw new Error("Missing required property 'key'");
28
+ }
29
+ resourceInputs["dryRun"] = pulumi.output(args ? args.dryRun : undefined).apply(JSON.stringify);
30
+ resourceInputs["key"] = args ? args.key : undefined;
31
+ resourceInputs["sharingId"] = args ? args.sharingId : undefined;
32
+ resourceInputs["url"] = args ? args.url : undefined;
33
+ }
34
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
35
+ super(Provider.__pulumiType, name, resourceInputs, opts);
36
+ }
37
+ /**
38
+ * Returns true if the given object is an instance of Provider. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj) {
42
+ if (obj === undefined || obj === null) {
43
+ return false;
44
+ }
45
+ return obj['__pulumiType'] === Provider.__pulumiType;
46
+ }
47
+ }
48
+ exports.Provider = Provider;
49
+ /** @internal */
50
+ Provider.__pulumiType = 'gandi';
51
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IA4BjD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;QACvE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,IAAI,CAAC,CAAC,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SION}") !== -1) {
7
+ process.exit(0);
8
+ }
9
+
10
+ var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "github://api.github.com/pulumiverse"].concat(args), {
11
+ stdio: ["ignore", "inherit", "inherit"]
12
+ });
13
+
14
+ if (res.error && res.error.code === "ENOENT") {
15
+ console.error("\nThere was an error installing the resource provider plugin. " +
16
+ "It looks like `pulumi` is not installed on your system. " +
17
+ "Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
18
+ "You may try manually installing the plugin by running " +
19
+ "`pulumi plugin install " + args.join(" ") + "`");
20
+ } else if (res.error || res.status !== 0) {
21
+ console.error("\nThere was an error installing the resource provider plugin. " +
22
+ "You may try to manually installing the plugin by running " +
23
+ "`pulumi plugin install " + args.join(" ") + "`");
24
+ }
25
+
26
+ process.exit(0);
@@ -0,0 +1,2 @@
1
+ export * from "./instance";
2
+ export * from "./vhost";
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ const pulumi = require("@pulumi/pulumi");
20
+ const utilities = require("../utilities");
21
+ // Export members:
22
+ __exportStar(require("./instance"), exports);
23
+ __exportStar(require("./vhost"), exports);
24
+ // Import resources to register:
25
+ const instance_1 = require("./instance");
26
+ const vhost_1 = require("./vhost");
27
+ const _module = {
28
+ version: utilities.getVersion(),
29
+ construct: (name, type, urn) => {
30
+ switch (type) {
31
+ case "gandi:simplehosting/instance:Instance":
32
+ return new instance_1.Instance(name, undefined, { urn });
33
+ case "gandi:simplehosting/vHost:VHost":
34
+ return new vhost_1.VHost(name, undefined, { urn });
35
+ default:
36
+ throw new Error(`unknown resource type ${type}`);
37
+ }
38
+ },
39
+ };
40
+ pulumi.runtime.registerResourceModule("gandi", "simplehosting/instance", _module);
41
+ pulumi.runtime.registerResourceModule("gandi", "simplehosting/vHost", _module);
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../simplehosting/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,6CAA2B;AAC3B,0CAAwB;AAExB,gCAAgC;AAChC,yCAAsC;AACtC,mCAAgC;AAEhC,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,uCAAuC;gBACxC,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD,KAAK,iCAAiC;gBAClC,OAAO,IAAI,aAAK,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACnD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAA;AACjF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1,96 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class Instance extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing Instance 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 state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InstanceState, opts?: pulumi.CustomResourceOptions): Instance;
13
+ /**
14
+ * Returns true if the given object is an instance of Instance. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is Instance;
18
+ /**
19
+ * The name of the database type ('mysql' or 'pgsql')
20
+ */
21
+ readonly databaseName: pulumi.Output<string>;
22
+ /**
23
+ * The name of the language ('php', 'python', 'nodejs' or 'ruby')
24
+ */
25
+ readonly languageName: pulumi.Output<string>;
26
+ /**
27
+ * The datacenter location of the instance ('FR' or 'LU')
28
+ */
29
+ readonly location: pulumi.Output<string>;
30
+ /**
31
+ * The name of the SimpleHosting instance
32
+ */
33
+ readonly name: pulumi.Output<string>;
34
+ /**
35
+ * The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
36
+ */
37
+ readonly size: pulumi.Output<string>;
38
+ /**
39
+ * Create a Instance resource with the given unique name, arguments, and options.
40
+ *
41
+ * @param name The _unique_ name of the resource.
42
+ * @param args The arguments to use to populate this resource's properties.
43
+ * @param opts A bag of options that control this resource's behavior.
44
+ */
45
+ constructor(name: string, args: InstanceArgs, opts?: pulumi.CustomResourceOptions);
46
+ }
47
+ /**
48
+ * Input properties used for looking up and filtering Instance resources.
49
+ */
50
+ export interface InstanceState {
51
+ /**
52
+ * The name of the database type ('mysql' or 'pgsql')
53
+ */
54
+ databaseName?: pulumi.Input<string>;
55
+ /**
56
+ * The name of the language ('php', 'python', 'nodejs' or 'ruby')
57
+ */
58
+ languageName?: pulumi.Input<string>;
59
+ /**
60
+ * The datacenter location of the instance ('FR' or 'LU')
61
+ */
62
+ location?: pulumi.Input<string>;
63
+ /**
64
+ * The name of the SimpleHosting instance
65
+ */
66
+ name?: pulumi.Input<string>;
67
+ /**
68
+ * The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
69
+ */
70
+ size?: pulumi.Input<string>;
71
+ }
72
+ /**
73
+ * The set of arguments for constructing a Instance resource.
74
+ */
75
+ export interface InstanceArgs {
76
+ /**
77
+ * The name of the database type ('mysql' or 'pgsql')
78
+ */
79
+ databaseName: pulumi.Input<string>;
80
+ /**
81
+ * The name of the language ('php', 'python', 'nodejs' or 'ruby')
82
+ */
83
+ languageName: pulumi.Input<string>;
84
+ /**
85
+ * The datacenter location of the instance ('FR' or 'LU')
86
+ */
87
+ location: pulumi.Input<string>;
88
+ /**
89
+ * The name of the SimpleHosting instance
90
+ */
91
+ name?: pulumi.Input<string>;
92
+ /**
93
+ * The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
94
+ */
95
+ size: pulumi.Input<string>;
96
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.Instance = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ class Instance extends pulumi.CustomResource {
9
+ constructor(name, argsOrState, opts) {
10
+ let resourceInputs = {};
11
+ opts = opts || {};
12
+ if (opts.id) {
13
+ const state = argsOrState;
14
+ resourceInputs["databaseName"] = state ? state.databaseName : undefined;
15
+ resourceInputs["languageName"] = state ? state.languageName : undefined;
16
+ resourceInputs["location"] = state ? state.location : undefined;
17
+ resourceInputs["name"] = state ? state.name : undefined;
18
+ resourceInputs["size"] = state ? state.size : undefined;
19
+ }
20
+ else {
21
+ const args = argsOrState;
22
+ if ((!args || args.databaseName === undefined) && !opts.urn) {
23
+ throw new Error("Missing required property 'databaseName'");
24
+ }
25
+ if ((!args || args.languageName === undefined) && !opts.urn) {
26
+ throw new Error("Missing required property 'languageName'");
27
+ }
28
+ if ((!args || args.location === undefined) && !opts.urn) {
29
+ throw new Error("Missing required property 'location'");
30
+ }
31
+ if ((!args || args.size === undefined) && !opts.urn) {
32
+ throw new Error("Missing required property 'size'");
33
+ }
34
+ resourceInputs["databaseName"] = args ? args.databaseName : undefined;
35
+ resourceInputs["languageName"] = args ? args.languageName : undefined;
36
+ resourceInputs["location"] = args ? args.location : undefined;
37
+ resourceInputs["name"] = args ? args.name : undefined;
38
+ resourceInputs["size"] = args ? args.size : undefined;
39
+ }
40
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
41
+ super(Instance.__pulumiType, name, resourceInputs, opts);
42
+ }
43
+ /**
44
+ * Get an existing Instance resource's state with the given name, ID, and optional extra
45
+ * properties used to qualify the lookup.
46
+ *
47
+ * @param name The _unique_ name of the resulting resource.
48
+ * @param id The _unique_ provider ID of the resource to lookup.
49
+ * @param state Any extra arguments used during the lookup.
50
+ * @param opts Optional settings to control the behavior of the CustomResource.
51
+ */
52
+ static get(name, id, state, opts) {
53
+ return new Instance(name, state, Object.assign(Object.assign({}, opts), { id: id }));
54
+ }
55
+ /**
56
+ * Returns true if the given object is an instance of Instance. This is designed to work even
57
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
58
+ */
59
+ static isInstance(obj) {
60
+ if (obj === undefined || obj === null) {
61
+ return false;
62
+ }
63
+ return obj['__pulumiType'] === Instance.__pulumiType;
64
+ }
65
+ }
66
+ exports.Instance = Instance;
67
+ /** @internal */
68
+ Instance.__pulumiType = 'gandi:simplehosting/instance:Instance';
69
+ //# sourceMappingURL=instance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance.js","sourceRoot":"","sources":["../../simplehosting/instance.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAyD/C,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,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAuC,CAAC;YACrD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,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M,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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;;AA1BL,4BA0FC;AA5EG,gBAAgB;AACO,qBAAY,GAAG,uCAAuC,CAAC"}
@@ -0,0 +1,92 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class VHost extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing VHost 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 state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VHostState, opts?: pulumi.CustomResourceOptions): VHost;
13
+ /**
14
+ * Returns true if the given object is an instance of VHost. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is VHost;
18
+ /**
19
+ * The name of an application to install ('grav', 'matomo', 'nextcloud', 'prestashop', 'wordpress')
20
+ */
21
+ readonly application: pulumi.Output<string | undefined>;
22
+ /**
23
+ * The ID of the created free certificate
24
+ */
25
+ readonly certificateId: pulumi.Output<string>;
26
+ /**
27
+ * The FQDN of the Vhost
28
+ */
29
+ readonly fqdn: pulumi.Output<string>;
30
+ /**
31
+ * The ID of the SimpleHosting instance
32
+ */
33
+ readonly instanceId: pulumi.Output<string>;
34
+ /**
35
+ * Whether to alter the linked DNS Zone
36
+ */
37
+ readonly linkedDnsZoneAlteration: pulumi.Output<boolean | undefined>;
38
+ /**
39
+ * Create a VHost resource with the given unique name, arguments, and options.
40
+ *
41
+ * @param name The _unique_ name of the resource.
42
+ * @param args The arguments to use to populate this resource's properties.
43
+ * @param opts A bag of options that control this resource's behavior.
44
+ */
45
+ constructor(name: string, args: VHostArgs, opts?: pulumi.CustomResourceOptions);
46
+ }
47
+ /**
48
+ * Input properties used for looking up and filtering VHost resources.
49
+ */
50
+ export interface VHostState {
51
+ /**
52
+ * The name of an application to install ('grav', 'matomo', 'nextcloud', 'prestashop', 'wordpress')
53
+ */
54
+ application?: pulumi.Input<string>;
55
+ /**
56
+ * The ID of the created free certificate
57
+ */
58
+ certificateId?: pulumi.Input<string>;
59
+ /**
60
+ * The FQDN of the Vhost
61
+ */
62
+ fqdn?: pulumi.Input<string>;
63
+ /**
64
+ * The ID of the SimpleHosting instance
65
+ */
66
+ instanceId?: pulumi.Input<string>;
67
+ /**
68
+ * Whether to alter the linked DNS Zone
69
+ */
70
+ linkedDnsZoneAlteration?: pulumi.Input<boolean>;
71
+ }
72
+ /**
73
+ * The set of arguments for constructing a VHost resource.
74
+ */
75
+ export interface VHostArgs {
76
+ /**
77
+ * The name of an application to install ('grav', 'matomo', 'nextcloud', 'prestashop', 'wordpress')
78
+ */
79
+ application?: pulumi.Input<string>;
80
+ /**
81
+ * The FQDN of the Vhost
82
+ */
83
+ fqdn: pulumi.Input<string>;
84
+ /**
85
+ * The ID of the SimpleHosting instance
86
+ */
87
+ instanceId: pulumi.Input<string>;
88
+ /**
89
+ * Whether to alter the linked DNS Zone
90
+ */
91
+ linkedDnsZoneAlteration?: pulumi.Input<boolean>;
92
+ }
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.VHost = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ class VHost extends pulumi.CustomResource {
9
+ constructor(name, argsOrState, opts) {
10
+ let resourceInputs = {};
11
+ opts = opts || {};
12
+ if (opts.id) {
13
+ const state = argsOrState;
14
+ resourceInputs["application"] = state ? state.application : undefined;
15
+ resourceInputs["certificateId"] = state ? state.certificateId : undefined;
16
+ resourceInputs["fqdn"] = state ? state.fqdn : undefined;
17
+ resourceInputs["instanceId"] = state ? state.instanceId : undefined;
18
+ resourceInputs["linkedDnsZoneAlteration"] = state ? state.linkedDnsZoneAlteration : undefined;
19
+ }
20
+ else {
21
+ const args = argsOrState;
22
+ if ((!args || args.fqdn === undefined) && !opts.urn) {
23
+ throw new Error("Missing required property 'fqdn'");
24
+ }
25
+ if ((!args || args.instanceId === undefined) && !opts.urn) {
26
+ throw new Error("Missing required property 'instanceId'");
27
+ }
28
+ resourceInputs["application"] = args ? args.application : undefined;
29
+ resourceInputs["fqdn"] = args ? args.fqdn : undefined;
30
+ resourceInputs["instanceId"] = args ? args.instanceId : undefined;
31
+ resourceInputs["linkedDnsZoneAlteration"] = args ? args.linkedDnsZoneAlteration : undefined;
32
+ resourceInputs["certificateId"] = undefined /*out*/;
33
+ }
34
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
35
+ super(VHost.__pulumiType, name, resourceInputs, opts);
36
+ }
37
+ /**
38
+ * Get an existing VHost resource's state with the given name, ID, and optional extra
39
+ * properties used to qualify the lookup.
40
+ *
41
+ * @param name The _unique_ name of the resulting resource.
42
+ * @param id The _unique_ provider ID of the resource to lookup.
43
+ * @param state Any extra arguments used during the lookup.
44
+ * @param opts Optional settings to control the behavior of the CustomResource.
45
+ */
46
+ static get(name, id, state, opts) {
47
+ return new VHost(name, state, Object.assign(Object.assign({}, opts), { id: id }));
48
+ }
49
+ /**
50
+ * Returns true if the given object is an instance of VHost. This is designed to work even
51
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
+ */
53
+ static isInstance(obj) {
54
+ if (obj === undefined || obj === null) {
55
+ return false;
56
+ }
57
+ return obj['__pulumiType'] === VHost.__pulumiType;
58
+ }
59
+ }
60
+ exports.VHost = VHost;
61
+ /** @internal */
62
+ VHost.__pulumiType = 'gandi:simplehosting/vHost:VHost';
63
+ //# sourceMappingURL=vhost.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vhost.js","sourceRoot":"","sources":["../../simplehosting/vhost.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAyD5C,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqC,CAAC;YACpD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,yBAAyB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC,SAAS,CAAC;SACjG;aAAM;YACH,MAAM,IAAI,G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AAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;;AA1BL,sBAoFC;AAtEG,gBAAgB;AACO,kBAAY,GAAG,iCAAiC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import * as input from "./input";
2
+ import * as output from "./output";
3
+ export { input, output, };
package/types/index.js ADDED
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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,wFAAwF;AACxF,iFAAiF;;;AAEjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}