@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/index.js ADDED
@@ -0,0 +1,47 @@
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
+ exports.types = exports.simplehosting = exports.livedns = exports.email = exports.domains = exports.config = void 0;
20
+ const pulumi = require("@pulumi/pulumi");
21
+ const utilities = require("./utilities");
22
+ // Export members:
23
+ __exportStar(require("./provider"), exports);
24
+ // Export sub-modules:
25
+ const config = require("./config");
26
+ exports.config = config;
27
+ const domains = require("./domains");
28
+ exports.domains = domains;
29
+ const email = require("./email");
30
+ exports.email = email;
31
+ const livedns = require("./livedns");
32
+ exports.livedns = livedns;
33
+ const simplehosting = require("./simplehosting");
34
+ exports.simplehosting = simplehosting;
35
+ const types = require("./types");
36
+ exports.types = types;
37
+ const provider_1 = require("./provider");
38
+ pulumi.runtime.registerResourcePackage("gandi", {
39
+ version: utilities.getVersion(),
40
+ constructProvider: (name, type, urn) => {
41
+ if (type !== "pulumi:providers:gandi") {
42
+ throw new Error(`unknown provider type ${type}`);
43
+ }
44
+ return new provider_1.Provider(name, undefined, { urn });
45
+ },
46
+ });
47
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,6CAA2B;AAE3B,sBAAsB;AACtB,mCAAmC;AAQ/B,wBAAM;AAPV,qCAAqC;AAQjC,0BAAO;AAPX,iCAAiC;AAQ7B,sBAAK;AAPT,qCAAqC;AAQjC,0BAAO;AAPX,iDAAiD;AAQ7C,sCAAa;AAPjB,iCAAiC;AAQ7B,sBAAK;AAGT,yCAAsC;AAEtC,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,OAAO,EAAE;IAC5C,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,wBAAwB,EAAE;YACnC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
@@ -0,0 +1,81 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class Domain extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing Domain 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?: DomainState, opts?: pulumi.CustomResourceOptions): Domain;
13
+ /**
14
+ * Returns true if the given object is an instance of Domain. 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 Domain;
18
+ /**
19
+ * Enable or disable the automatic creation of snapshots when records are changed
20
+ */
21
+ readonly automaticSnapshots: pulumi.Output<boolean | undefined>;
22
+ /**
23
+ * The FQDN of the domain
24
+ */
25
+ readonly name: pulumi.Output<string>;
26
+ /**
27
+ * The SOA TTL for the domain
28
+ *
29
+ * @deprecated This ttl attribute will be removed on next major release: this attribute should not be exposed to the user.
30
+ See https://github.com/go-gandi/terraform-provider-gandi/pull/90 for details.
31
+ */
32
+ readonly ttl: pulumi.Output<number | undefined>;
33
+ /**
34
+ * Create a Domain resource with the given unique name, arguments, and options.
35
+ *
36
+ * @param name The _unique_ name of the resource.
37
+ * @param args The arguments to use to populate this resource's properties.
38
+ * @param opts A bag of options that control this resource's behavior.
39
+ */
40
+ constructor(name: string, args?: DomainArgs, opts?: pulumi.CustomResourceOptions);
41
+ }
42
+ /**
43
+ * Input properties used for looking up and filtering Domain resources.
44
+ */
45
+ export interface DomainState {
46
+ /**
47
+ * Enable or disable the automatic creation of snapshots when records are changed
48
+ */
49
+ automaticSnapshots?: pulumi.Input<boolean>;
50
+ /**
51
+ * The FQDN of the domain
52
+ */
53
+ name?: pulumi.Input<string>;
54
+ /**
55
+ * The SOA TTL for the domain
56
+ *
57
+ * @deprecated This ttl attribute will be removed on next major release: this attribute should not be exposed to the user.
58
+ See https://github.com/go-gandi/terraform-provider-gandi/pull/90 for details.
59
+ */
60
+ ttl?: pulumi.Input<number>;
61
+ }
62
+ /**
63
+ * The set of arguments for constructing a Domain resource.
64
+ */
65
+ export interface DomainArgs {
66
+ /**
67
+ * Enable or disable the automatic creation of snapshots when records are changed
68
+ */
69
+ automaticSnapshots?: pulumi.Input<boolean>;
70
+ /**
71
+ * The FQDN of the domain
72
+ */
73
+ name?: pulumi.Input<string>;
74
+ /**
75
+ * The SOA TTL for the domain
76
+ *
77
+ * @deprecated This ttl attribute will be removed on next major release: this attribute should not be exposed to the user.
78
+ See https://github.com/go-gandi/terraform-provider-gandi/pull/90 for details.
79
+ */
80
+ ttl?: pulumi.Input<number>;
81
+ }
@@ -0,0 +1,53 @@
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.Domain = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ class Domain extends pulumi.CustomResource {
9
+ constructor(name, argsOrState, opts) {
10
+ let resourceInputs = {};
11
+ opts = opts || {};
12
+ if (opts.id) {
13
+ const state = argsOrState;
14
+ resourceInputs["automaticSnapshots"] = state ? state.automaticSnapshots : undefined;
15
+ resourceInputs["name"] = state ? state.name : undefined;
16
+ resourceInputs["ttl"] = state ? state.ttl : undefined;
17
+ }
18
+ else {
19
+ const args = argsOrState;
20
+ resourceInputs["automaticSnapshots"] = args ? args.automaticSnapshots : undefined;
21
+ resourceInputs["name"] = args ? args.name : undefined;
22
+ resourceInputs["ttl"] = args ? args.ttl : undefined;
23
+ }
24
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
25
+ super(Domain.__pulumiType, name, resourceInputs, opts);
26
+ }
27
+ /**
28
+ * Get an existing Domain resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name, id, state, opts) {
37
+ return new Domain(name, state, Object.assign(Object.assign({}, opts), { id: id }));
38
+ }
39
+ /**
40
+ * Returns true if the given object is an instance of Domain. This is designed to work even
41
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
42
+ */
43
+ static isInstance(obj) {
44
+ if (obj === undefined || obj === null) {
45
+ return false;
46
+ }
47
+ return obj['__pulumiType'] === Domain.__pulumiType;
48
+ }
49
+ }
50
+ exports.Domain = Domain;
51
+ /** @internal */
52
+ Domain.__pulumiType = 'gandi:livedns/domain:Domain';
53
+ //# sourceMappingURL=domain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domain.js","sourceRoot":"","sources":["../../livedns/domain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CA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EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBAqEC;AAvDG,gBAAgB;AACO,mBAAY,GAAG,6BAA6B,CAAC"}
@@ -0,0 +1,34 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare function getDomain(args: GetDomainArgs, opts?: pulumi.InvokeOptions): Promise<GetDomainResult>;
3
+ /**
4
+ * A collection of arguments for invoking getDomain.
5
+ */
6
+ export interface GetDomainArgs {
7
+ /**
8
+ * The FQDN of the domain
9
+ */
10
+ name: string;
11
+ }
12
+ /**
13
+ * A collection of values returned by getDomain.
14
+ */
15
+ export interface GetDomainResult {
16
+ /**
17
+ * The provider-assigned unique ID for this managed resource.
18
+ */
19
+ readonly id: string;
20
+ /**
21
+ * The FQDN of the domain
22
+ */
23
+ readonly name: string;
24
+ }
25
+ export declare function getDomainOutput(args: GetDomainOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDomainResult>;
26
+ /**
27
+ * A collection of arguments for invoking getDomain.
28
+ */
29
+ export interface GetDomainOutputArgs {
30
+ /**
31
+ * The FQDN of the domain
32
+ */
33
+ name: pulumi.Input<string>;
34
+ }
@@ -0,0 +1,22 @@
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.getDomainOutput = exports.getDomain = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ function getDomain(args, opts) {
9
+ if (!opts) {
10
+ opts = {};
11
+ }
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
13
+ return pulumi.runtime.invoke("gandi:livedns/getDomain:getDomain", {
14
+ "name": args.name,
15
+ }, opts);
16
+ }
17
+ exports.getDomain = getDomain;
18
+ function getDomainOutput(args, opts) {
19
+ return pulumi.output(args).apply(a => getDomain(a, opts));
20
+ }
21
+ exports.getDomainOutput = getDomainOutput;
22
+ //# sourceMappingURL=getDomain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDomain.js","sourceRoot":"","sources":["../../livedns/getDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mCAAmC,EAAE;QAC9D,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,8BASC;AA0BD,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7D,CAAC;AAFD,0CAEC"}
@@ -0,0 +1,38 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare function getDomainNameserver(args: GetDomainNameserverArgs, opts?: pulumi.InvokeOptions): Promise<GetDomainNameserverResult>;
3
+ /**
4
+ * A collection of arguments for invoking getDomainNameserver.
5
+ */
6
+ export interface GetDomainNameserverArgs {
7
+ /**
8
+ * The FQDN of the domain
9
+ */
10
+ name: string;
11
+ }
12
+ /**
13
+ * A collection of values returned by getDomainNameserver.
14
+ */
15
+ export interface GetDomainNameserverResult {
16
+ /**
17
+ * The provider-assigned unique ID for this managed resource.
18
+ */
19
+ readonly id: string;
20
+ /**
21
+ * The FQDN of the domain
22
+ */
23
+ readonly name: string;
24
+ /**
25
+ * A list of nameservers for the domain
26
+ */
27
+ readonly nameservers: string[];
28
+ }
29
+ export declare function getDomainNameserverOutput(args: GetDomainNameserverOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDomainNameserverResult>;
30
+ /**
31
+ * A collection of arguments for invoking getDomainNameserver.
32
+ */
33
+ export interface GetDomainNameserverOutputArgs {
34
+ /**
35
+ * The FQDN of the domain
36
+ */
37
+ name: pulumi.Input<string>;
38
+ }
@@ -0,0 +1,22 @@
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.getDomainNameserverOutput = exports.getDomainNameserver = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ function getDomainNameserver(args, opts) {
9
+ if (!opts) {
10
+ opts = {};
11
+ }
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
13
+ return pulumi.runtime.invoke("gandi:livedns/getDomainNameserver:getDomainNameserver", {
14
+ "name": args.name,
15
+ }, opts);
16
+ }
17
+ exports.getDomainNameserver = getDomainNameserver;
18
+ function getDomainNameserverOutput(args, opts) {
19
+ return pulumi.output(args).apply(a => getDomainNameserver(a, opts));
20
+ }
21
+ exports.getDomainNameserverOutput = getDomainNameserverOutput;
22
+ //# sourceMappingURL=getDomainNameserver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDomainNameserver.js","sourceRoot":"","sources":["../../livedns/getDomainNameserver.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uDAAuD,EAAE;QAClF,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,kDASC;AA8BD,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,8DAEC"}
@@ -0,0 +1,4 @@
1
+ export * from "./domain";
2
+ export * from "./getDomain";
3
+ export * from "./getDomainNameserver";
4
+ export * from "./record";
@@ -0,0 +1,44 @@
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("./domain"), exports);
23
+ __exportStar(require("./getDomain"), exports);
24
+ __exportStar(require("./getDomainNameserver"), exports);
25
+ __exportStar(require("./record"), exports);
26
+ // Import resources to register:
27
+ const domain_1 = require("./domain");
28
+ const record_1 = require("./record");
29
+ const _module = {
30
+ version: utilities.getVersion(),
31
+ construct: (name, type, urn) => {
32
+ switch (type) {
33
+ case "gandi:livedns/domain:Domain":
34
+ return new domain_1.Domain(name, undefined, { urn });
35
+ case "gandi:livedns/record:Record":
36
+ return new record_1.Record(name, undefined, { urn });
37
+ default:
38
+ throw new Error(`unknown resource type ${type}`);
39
+ }
40
+ },
41
+ };
42
+ pulumi.runtime.registerResourceModule("gandi", "livedns/domain", _module);
43
+ pulumi.runtime.registerResourceModule("gandi", "livedns/record", _module);
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../livedns/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,2CAAyB;AACzB,8CAA4B;AAC5B,wDAAsC;AACtC,2CAAyB;AAEzB,gCAAgC;AAChC,qCAAkC;AAClC,qCAAkC;AAElC,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,6BAA6B;gBAC9B,OAAO,IAAI,eAAM,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACpD,KAAK,6BAA6B;gBAC9B,OAAO,IAAI,eAAM,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACpD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA;AACzE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1,116 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class Record extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing Record 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?: RecordState, opts?: pulumi.CustomResourceOptions): Record;
13
+ /**
14
+ * Returns true if the given object is an instance of Record. 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 Record;
18
+ /**
19
+ * The href of the record
20
+ */
21
+ readonly href: pulumi.Output<string>;
22
+ /**
23
+ * Define if the record can be modified outside Terraform (this currently only works for TXT records)
24
+ */
25
+ readonly mutable: pulumi.Output<boolean | undefined>;
26
+ /**
27
+ * The name of the record
28
+ */
29
+ readonly name: pulumi.Output<string>;
30
+ /**
31
+ * The TTL of the record
32
+ */
33
+ readonly ttl: pulumi.Output<number>;
34
+ /**
35
+ * The type of the record
36
+ */
37
+ readonly type: pulumi.Output<string>;
38
+ /**
39
+ * A list of values of the record
40
+ */
41
+ readonly values: pulumi.Output<string[]>;
42
+ /**
43
+ * The FQDN of the domain
44
+ */
45
+ readonly zone: pulumi.Output<string>;
46
+ /**
47
+ * Create a Record resource with the given unique name, arguments, and options.
48
+ *
49
+ * @param name The _unique_ name of the resource.
50
+ * @param args The arguments to use to populate this resource's properties.
51
+ * @param opts A bag of options that control this resource's behavior.
52
+ */
53
+ constructor(name: string, args: RecordArgs, opts?: pulumi.CustomResourceOptions);
54
+ }
55
+ /**
56
+ * Input properties used for looking up and filtering Record resources.
57
+ */
58
+ export interface RecordState {
59
+ /**
60
+ * The href of the record
61
+ */
62
+ href?: pulumi.Input<string>;
63
+ /**
64
+ * Define if the record can be modified outside Terraform (this currently only works for TXT records)
65
+ */
66
+ mutable?: pulumi.Input<boolean>;
67
+ /**
68
+ * The name of the record
69
+ */
70
+ name?: pulumi.Input<string>;
71
+ /**
72
+ * The TTL of the record
73
+ */
74
+ ttl?: pulumi.Input<number>;
75
+ /**
76
+ * The type of the record
77
+ */
78
+ type?: pulumi.Input<string>;
79
+ /**
80
+ * A list of values of the record
81
+ */
82
+ values?: pulumi.Input<pulumi.Input<string>[]>;
83
+ /**
84
+ * The FQDN of the domain
85
+ */
86
+ zone?: pulumi.Input<string>;
87
+ }
88
+ /**
89
+ * The set of arguments for constructing a Record resource.
90
+ */
91
+ export interface RecordArgs {
92
+ /**
93
+ * Define if the record can be modified outside Terraform (this currently only works for TXT records)
94
+ */
95
+ mutable?: pulumi.Input<boolean>;
96
+ /**
97
+ * The name of the record
98
+ */
99
+ name?: pulumi.Input<string>;
100
+ /**
101
+ * The TTL of the record
102
+ */
103
+ ttl: pulumi.Input<number>;
104
+ /**
105
+ * The type of the record
106
+ */
107
+ type: pulumi.Input<string>;
108
+ /**
109
+ * A list of values of the record
110
+ */
111
+ values: pulumi.Input<pulumi.Input<string>[]>;
112
+ /**
113
+ * The FQDN of the domain
114
+ */
115
+ zone: pulumi.Input<string>;
116
+ }
@@ -0,0 +1,73 @@
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.Record = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ class Record extends pulumi.CustomResource {
9
+ constructor(name, argsOrState, opts) {
10
+ let resourceInputs = {};
11
+ opts = opts || {};
12
+ if (opts.id) {
13
+ const state = argsOrState;
14
+ resourceInputs["href"] = state ? state.href : undefined;
15
+ resourceInputs["mutable"] = state ? state.mutable : undefined;
16
+ resourceInputs["name"] = state ? state.name : undefined;
17
+ resourceInputs["ttl"] = state ? state.ttl : undefined;
18
+ resourceInputs["type"] = state ? state.type : undefined;
19
+ resourceInputs["values"] = state ? state.values : undefined;
20
+ resourceInputs["zone"] = state ? state.zone : undefined;
21
+ }
22
+ else {
23
+ const args = argsOrState;
24
+ if ((!args || args.ttl === undefined) && !opts.urn) {
25
+ throw new Error("Missing required property 'ttl'");
26
+ }
27
+ if ((!args || args.type === undefined) && !opts.urn) {
28
+ throw new Error("Missing required property 'type'");
29
+ }
30
+ if ((!args || args.values === undefined) && !opts.urn) {
31
+ throw new Error("Missing required property 'values'");
32
+ }
33
+ if ((!args || args.zone === undefined) && !opts.urn) {
34
+ throw new Error("Missing required property 'zone'");
35
+ }
36
+ resourceInputs["mutable"] = args ? args.mutable : undefined;
37
+ resourceInputs["name"] = args ? args.name : undefined;
38
+ resourceInputs["ttl"] = args ? args.ttl : undefined;
39
+ resourceInputs["type"] = args ? args.type : undefined;
40
+ resourceInputs["values"] = args ? args.values : undefined;
41
+ resourceInputs["zone"] = args ? args.zone : undefined;
42
+ resourceInputs["href"] = undefined /*out*/;
43
+ }
44
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
45
+ super(Record.__pulumiType, name, resourceInputs, opts);
46
+ }
47
+ /**
48
+ * Get an existing Record 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, id, state, opts) {
57
+ return new Record(name, state, Object.assign(Object.assign({}, opts), { id: id }));
58
+ }
59
+ /**
60
+ * Returns true if the given object is an instance of Record. This is designed to work even
61
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
62
+ */
63
+ static isInstance(obj) {
64
+ if (obj === undefined || obj === null) {
65
+ return false;
66
+ }
67
+ return obj['__pulumiType'] === Record.__pulumiType;
68
+ }
69
+ }
70
+ exports.Record = Record;
71
+ /** @internal */
72
+ Record.__pulumiType = 'gandi:livedns/record:Record';
73
+ //# sourceMappingURL=record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record.js","sourceRoot":"","sources":["../../livedns/record.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAiE7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;Y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;IACvD,CAAC;;AA1BL,wBAsGC;AAxFG,gBAAgB;AACO,mBAAY,GAAG,6BAA6B,CAAC"}
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@pulumiverse/gandi",
3
+ "version": "v0.0.8",
4
+ "description": "A Pulumi package for creating and managing gandi cloud resources.",
5
+ "keywords": [
6
+ "pulumi",
7
+ "gandi",
8
+ "category/cloud"
9
+ ],
10
+ "homepage": "https://www.pulumi.com",
11
+ "repository": "https://github.com/pulumiverse/pulumi-gandi",
12
+ "license": "Apache-2.0",
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "install": "node scripts/install-pulumi-plugin.js resource gandi v0.0.8"
16
+ },
17
+ "dependencies": {
18
+ "@pulumi/pulumi": "^3.0.0"
19
+ },
20
+ "devDependencies": {
21
+ "@types/mime": "^2.0.0",
22
+ "@types/node": "^10.0.0",
23
+ "typescript": "^4.3.5"
24
+ },
25
+ "pulumi": {
26
+ "resource": true,
27
+ "name": "gandi",
28
+ "server": "github://api.github.com/pulumiverse"
29
+ }
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@pulumiverse/gandi",
3
+ "version": "${VERSION}",
4
+ "description": "A Pulumi package for creating and managing gandi cloud resources.",
5
+ "keywords": [
6
+ "pulumi",
7
+ "gandi",
8
+ "category/cloud"
9
+ ],
10
+ "homepage": "https://www.pulumi.com",
11
+ "repository": "https://github.com/pulumiverse/pulumi-gandi",
12
+ "license": "Apache-2.0",
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "install": "node scripts/install-pulumi-plugin.js resource gandi ${VERSION}"
16
+ },
17
+ "dependencies": {
18
+ "@pulumi/pulumi": "^3.0.0"
19
+ },
20
+ "devDependencies": {
21
+ "@types/mime": "^2.0.0",
22
+ "@types/node": "^10.0.0",
23
+ "typescript": "^4.3.5"
24
+ },
25
+ "pulumi": {
26
+ "resource": true,
27
+ "name": "gandi",
28
+ "server": "github://api.github.com/pulumiverse"
29
+ }
30
+ }