@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.
- package/LICENSE +202 -0
- package/README.md +407 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +16 -0
- package/config/vars.js +31 -0
- package/config/vars.js.map +1 -0
- package/domains/dnssecKey.d.ts +84 -0
- package/domains/dnssecKey.js +67 -0
- package/domains/dnssecKey.js.map +1 -0
- package/domains/domain.d.ts +94 -0
- package/domains/domain.js +64 -0
- package/domains/domain.js.map +1 -0
- package/domains/getDomain.d.ts +38 -0
- package/domains/getDomain.js +22 -0
- package/domains/getDomain.js.map +1 -0
- package/domains/getGlueRecord.d.ts +50 -0
- package/domains/getGlueRecord.js +23 -0
- package/domains/getGlueRecord.js.map +1 -0
- package/domains/glueRecord.d.ts +96 -0
- package/domains/glueRecord.js +65 -0
- package/domains/glueRecord.js.map +1 -0
- package/domains/index.d.ts +6 -0
- package/domains/index.js +54 -0
- package/domains/index.js.map +1 -0
- package/domains/nameservers.d.ts +60 -0
- package/domains/nameservers.js +54 -0
- package/domains/nameservers.js.map +1 -0
- package/email/forwarding.d.ts +60 -0
- package/email/forwarding.js +57 -0
- package/email/forwarding.js.map +1 -0
- package/email/getMailbox.d.ts +46 -0
- package/email/getMailbox.js +23 -0
- package/email/getMailbox.js.map +1 -0
- package/email/index.d.ts +3 -0
- package/email/index.js +43 -0
- package/email/index.js.map +1 -0
- package/email/mailbox.d.ts +96 -0
- package/email/mailbox.js +66 -0
- package/email/mailbox.js.map +1 -0
- package/index.d.ts +8 -0
- package/index.js +47 -0
- package/index.js.map +1 -0
- package/livedns/domain.d.ts +81 -0
- package/livedns/domain.js +53 -0
- package/livedns/domain.js.map +1 -0
- package/livedns/getDomain.d.ts +34 -0
- package/livedns/getDomain.js +22 -0
- package/livedns/getDomain.js.map +1 -0
- package/livedns/getDomainNameserver.d.ts +38 -0
- package/livedns/getDomainNameserver.js +22 -0
- package/livedns/getDomainNameserver.js.map +1 -0
- package/livedns/index.d.ts +4 -0
- package/livedns/index.js +44 -0
- package/livedns/index.js.map +1 -0
- package/livedns/record.d.ts +116 -0
- package/livedns/record.js +73 -0
- package/livedns/record.js.map +1 -0
- package/package.json +30 -0
- package/package.json.bak +30 -0
- package/provider.d.ts +55 -0
- package/provider.js +51 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +26 -0
- package/simplehosting/index.d.ts +2 -0
- package/simplehosting/index.js +42 -0
- package/simplehosting/index.js.map +1 -0
- package/simplehosting/instance.d.ts +96 -0
- package/simplehosting/instance.js +69 -0
- package/simplehosting/instance.js.map +1 -0
- package/simplehosting/vhost.d.ts +92 -0
- package/simplehosting/vhost.js +63 -0
- package/simplehosting/vhost.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +243 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +242 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +57 -0
- package/utilities.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glueRecord.js","sourceRoot":"","sources":["../../domains/glueRecord.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IA6DjD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CA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AAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;IAxFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;;AA1BL,gCA0FC;AA5EG,gBAAgB;AACO,uBAAY,GAAG,qCAAqC,CAAC"}
|
package/domains/index.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
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("./dnssecKey"), exports);
|
|
23
|
+
__exportStar(require("./domain"), exports);
|
|
24
|
+
__exportStar(require("./getDomain"), exports);
|
|
25
|
+
__exportStar(require("./getGlueRecord"), exports);
|
|
26
|
+
__exportStar(require("./glueRecord"), exports);
|
|
27
|
+
__exportStar(require("./nameservers"), exports);
|
|
28
|
+
// Import resources to register:
|
|
29
|
+
const dnssecKey_1 = require("./dnssecKey");
|
|
30
|
+
const domain_1 = require("./domain");
|
|
31
|
+
const glueRecord_1 = require("./glueRecord");
|
|
32
|
+
const nameservers_1 = require("./nameservers");
|
|
33
|
+
const _module = {
|
|
34
|
+
version: utilities.getVersion(),
|
|
35
|
+
construct: (name, type, urn) => {
|
|
36
|
+
switch (type) {
|
|
37
|
+
case "gandi:domains/dNSSecKey:DNSSecKey":
|
|
38
|
+
return new dnssecKey_1.DNSSecKey(name, undefined, { urn });
|
|
39
|
+
case "gandi:domains/domain:Domain":
|
|
40
|
+
return new domain_1.Domain(name, undefined, { urn });
|
|
41
|
+
case "gandi:domains/glueRecord:GlueRecord":
|
|
42
|
+
return new glueRecord_1.GlueRecord(name, undefined, { urn });
|
|
43
|
+
case "gandi:domains/nameservers:Nameservers":
|
|
44
|
+
return new nameservers_1.Nameservers(name, undefined, { urn });
|
|
45
|
+
default:
|
|
46
|
+
throw new Error(`unknown resource type ${type}`);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
pulumi.runtime.registerResourceModule("gandi", "domains/dNSSecKey", _module);
|
|
51
|
+
pulumi.runtime.registerResourceModule("gandi", "domains/domain", _module);
|
|
52
|
+
pulumi.runtime.registerResourceModule("gandi", "domains/glueRecord", _module);
|
|
53
|
+
pulumi.runtime.registerResourceModule("gandi", "domains/nameservers", _module);
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../domains/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,kDAAgC;AAChC,+CAA6B;AAC7B,gDAA8B;AAE9B,gCAAgC;AAChC,2CAAwC;AACxC,qCAAkC;AAClC,6CAA0C;AAC1C,+CAA4C;AAE5C,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,qBAAS,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACvD,KAAK,6BAA6B;gBAC9B,OAAO,IAAI,eAAM,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACpD,KAAK,qCAAqC;gBACtC,OAAO,IAAI,uBAAU,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACxD,KAAK,uCAAuC;gBACxC,OAAO,IAAI,yBAAW,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACzD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA;AAC5E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA;AACzE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAC7E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class Nameservers extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing Nameservers 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?: NameserversState, opts?: pulumi.CustomResourceOptions): Nameservers;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the given object is an instance of Nameservers. 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 Nameservers;
|
|
18
|
+
/**
|
|
19
|
+
* A list of nameservers for the domain
|
|
20
|
+
*/
|
|
21
|
+
readonly Hosts: pulumi.Output<string[] | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* The FQDN of the domain
|
|
24
|
+
*/
|
|
25
|
+
readonly domain: pulumi.Output<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a Nameservers 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: NameserversArgs, opts?: pulumi.CustomResourceOptions);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Input properties used for looking up and filtering Nameservers resources.
|
|
37
|
+
*/
|
|
38
|
+
export interface NameserversState {
|
|
39
|
+
/**
|
|
40
|
+
* A list of nameservers for the domain
|
|
41
|
+
*/
|
|
42
|
+
Hosts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
43
|
+
/**
|
|
44
|
+
* The FQDN of the domain
|
|
45
|
+
*/
|
|
46
|
+
domain?: pulumi.Input<string>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The set of arguments for constructing a Nameservers resource.
|
|
50
|
+
*/
|
|
51
|
+
export interface NameserversArgs {
|
|
52
|
+
/**
|
|
53
|
+
* A list of nameservers for the domain
|
|
54
|
+
*/
|
|
55
|
+
Hosts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
56
|
+
/**
|
|
57
|
+
* The FQDN of the domain
|
|
58
|
+
*/
|
|
59
|
+
domain: pulumi.Input<string>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.Nameservers = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
class Nameservers extends pulumi.CustomResource {
|
|
9
|
+
constructor(name, argsOrState, opts) {
|
|
10
|
+
let resourceInputs = {};
|
|
11
|
+
opts = opts || {};
|
|
12
|
+
if (opts.id) {
|
|
13
|
+
const state = argsOrState;
|
|
14
|
+
resourceInputs["Hosts"] = state ? state.Hosts : undefined;
|
|
15
|
+
resourceInputs["domain"] = state ? state.domain : undefined;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
const args = argsOrState;
|
|
19
|
+
if ((!args || args.domain === undefined) && !opts.urn) {
|
|
20
|
+
throw new Error("Missing required property 'domain'");
|
|
21
|
+
}
|
|
22
|
+
resourceInputs["Hosts"] = args ? args.Hosts : undefined;
|
|
23
|
+
resourceInputs["domain"] = args ? args.domain : undefined;
|
|
24
|
+
}
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
26
|
+
super(Nameservers.__pulumiType, name, resourceInputs, opts);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Get an existing Nameservers resource's state with the given name, ID, and optional extra
|
|
30
|
+
* properties used to qualify the lookup.
|
|
31
|
+
*
|
|
32
|
+
* @param name The _unique_ name of the resulting resource.
|
|
33
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
34
|
+
* @param state Any extra arguments used during the lookup.
|
|
35
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
36
|
+
*/
|
|
37
|
+
static get(name, id, state, opts) {
|
|
38
|
+
return new Nameservers(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the given object is an instance of Nameservers. This is designed to work even
|
|
42
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
43
|
+
*/
|
|
44
|
+
static isInstance(obj) {
|
|
45
|
+
if (obj === undefined || obj === null) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
return obj['__pulumiType'] === Nameservers.__pulumiType;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.Nameservers = Nameservers;
|
|
52
|
+
/** @internal */
|
|
53
|
+
Nameservers.__pulumiType = 'gandi:domains/nameservers:Nameservers';
|
|
54
|
+
//# sourceMappingURL=nameservers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nameservers.js","sourceRoot":"","sources":["../../domains/nameservers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IA6ClD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IA7DD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCA+DC;AAjDG,gBAAgB;AACO,wBAAY,GAAG,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class Forwarding extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing Forwarding 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?: ForwardingState, opts?: pulumi.CustomResourceOptions): Forwarding;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the given object is an instance of Forwarding. 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 Forwarding;
|
|
18
|
+
/**
|
|
19
|
+
* Forwards to email addresses
|
|
20
|
+
*/
|
|
21
|
+
readonly destinations: pulumi.Output<string[]>;
|
|
22
|
+
/**
|
|
23
|
+
* Account alias name
|
|
24
|
+
*/
|
|
25
|
+
readonly source: pulumi.Output<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a Forwarding 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: ForwardingArgs, opts?: pulumi.CustomResourceOptions);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Input properties used for looking up and filtering Forwarding resources.
|
|
37
|
+
*/
|
|
38
|
+
export interface ForwardingState {
|
|
39
|
+
/**
|
|
40
|
+
* Forwards to email addresses
|
|
41
|
+
*/
|
|
42
|
+
destinations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Account alias name
|
|
45
|
+
*/
|
|
46
|
+
source?: pulumi.Input<string>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The set of arguments for constructing a Forwarding resource.
|
|
50
|
+
*/
|
|
51
|
+
export interface ForwardingArgs {
|
|
52
|
+
/**
|
|
53
|
+
* Forwards to email addresses
|
|
54
|
+
*/
|
|
55
|
+
destinations: pulumi.Input<pulumi.Input<string>[]>;
|
|
56
|
+
/**
|
|
57
|
+
* Account alias name
|
|
58
|
+
*/
|
|
59
|
+
source: pulumi.Input<string>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.Forwarding = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
class Forwarding extends pulumi.CustomResource {
|
|
9
|
+
constructor(name, argsOrState, opts) {
|
|
10
|
+
let resourceInputs = {};
|
|
11
|
+
opts = opts || {};
|
|
12
|
+
if (opts.id) {
|
|
13
|
+
const state = argsOrState;
|
|
14
|
+
resourceInputs["destinations"] = state ? state.destinations : undefined;
|
|
15
|
+
resourceInputs["source"] = state ? state.source : undefined;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
const args = argsOrState;
|
|
19
|
+
if ((!args || args.destinations === undefined) && !opts.urn) {
|
|
20
|
+
throw new Error("Missing required property 'destinations'");
|
|
21
|
+
}
|
|
22
|
+
if ((!args || args.source === undefined) && !opts.urn) {
|
|
23
|
+
throw new Error("Missing required property 'source'");
|
|
24
|
+
}
|
|
25
|
+
resourceInputs["destinations"] = args ? args.destinations : undefined;
|
|
26
|
+
resourceInputs["source"] = args ? args.source : undefined;
|
|
27
|
+
}
|
|
28
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
29
|
+
super(Forwarding.__pulumiType, name, resourceInputs, opts);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing Forwarding resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name, id, state, opts) {
|
|
41
|
+
return new Forwarding(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of Forwarding. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
static isInstance(obj) {
|
|
48
|
+
if (obj === undefined || obj === null) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return obj['__pulumiType'] === Forwarding.__pulumiType;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.Forwarding = Forwarding;
|
|
55
|
+
/** @internal */
|
|
56
|
+
Forwarding.__pulumiType = 'gandi:email/forwarding:Forwarding';
|
|
57
|
+
//# sourceMappingURL=forwarding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forwarding.js","sourceRoot":"","sources":["../../email/forwarding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IA6CjD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAAyC,CAAC;YACvD,IAAI,CAA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0 +1,46 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function getMailbox(args: GetMailboxArgs, opts?: pulumi.InvokeOptions): Promise<GetMailboxResult>;
|
|
3
|
+
/**
|
|
4
|
+
* A collection of arguments for invoking getMailbox.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetMailboxArgs {
|
|
7
|
+
/**
|
|
8
|
+
* Domain name
|
|
9
|
+
*/
|
|
10
|
+
domain: string;
|
|
11
|
+
/**
|
|
12
|
+
* Mailbox ID
|
|
13
|
+
*/
|
|
14
|
+
mailboxId: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A collection of values returned by getMailbox.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetMailboxResult {
|
|
20
|
+
/**
|
|
21
|
+
* Domain name
|
|
22
|
+
*/
|
|
23
|
+
readonly domain: string;
|
|
24
|
+
/**
|
|
25
|
+
* The provider-assigned unique ID for this managed resource.
|
|
26
|
+
*/
|
|
27
|
+
readonly id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Mailbox ID
|
|
30
|
+
*/
|
|
31
|
+
readonly mailboxId: string;
|
|
32
|
+
}
|
|
33
|
+
export declare function getMailboxOutput(args: GetMailboxOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMailboxResult>;
|
|
34
|
+
/**
|
|
35
|
+
* A collection of arguments for invoking getMailbox.
|
|
36
|
+
*/
|
|
37
|
+
export interface GetMailboxOutputArgs {
|
|
38
|
+
/**
|
|
39
|
+
* Domain name
|
|
40
|
+
*/
|
|
41
|
+
domain: pulumi.Input<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Mailbox ID
|
|
44
|
+
*/
|
|
45
|
+
mailboxId: pulumi.Input<string>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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.getMailboxOutput = exports.getMailbox = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
function getMailbox(args, opts) {
|
|
9
|
+
if (!opts) {
|
|
10
|
+
opts = {};
|
|
11
|
+
}
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
13
|
+
return pulumi.runtime.invoke("gandi:email/getMailbox:getMailbox", {
|
|
14
|
+
"domain": args.domain,
|
|
15
|
+
"mailboxId": args.mailboxId,
|
|
16
|
+
}, opts);
|
|
17
|
+
}
|
|
18
|
+
exports.getMailbox = getMailbox;
|
|
19
|
+
function getMailboxOutput(args, opts) {
|
|
20
|
+
return pulumi.output(args).apply(a => getMailbox(a, opts));
|
|
21
|
+
}
|
|
22
|
+
exports.getMailboxOutput = getMailboxOutput;
|
|
23
|
+
//# sourceMappingURL=getMailbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMailbox.js","sourceRoot":"","sources":["../../email/getMailbox.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,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,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,gCAUC;AAkCD,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9D,CAAC;AAFD,4CAEC"}
|
package/email/index.d.ts
ADDED
package/email/index.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
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("./forwarding"), exports);
|
|
23
|
+
__exportStar(require("./getMailbox"), exports);
|
|
24
|
+
__exportStar(require("./mailbox"), exports);
|
|
25
|
+
// Import resources to register:
|
|
26
|
+
const forwarding_1 = require("./forwarding");
|
|
27
|
+
const mailbox_1 = require("./mailbox");
|
|
28
|
+
const _module = {
|
|
29
|
+
version: utilities.getVersion(),
|
|
30
|
+
construct: (name, type, urn) => {
|
|
31
|
+
switch (type) {
|
|
32
|
+
case "gandi:email/forwarding:Forwarding":
|
|
33
|
+
return new forwarding_1.Forwarding(name, undefined, { urn });
|
|
34
|
+
case "gandi:email/mailbox:Mailbox":
|
|
35
|
+
return new mailbox_1.Mailbox(name, undefined, { urn });
|
|
36
|
+
default:
|
|
37
|
+
throw new Error(`unknown resource type ${type}`);
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
pulumi.runtime.registerResourceModule("gandi", "email/forwarding", _module);
|
|
42
|
+
pulumi.runtime.registerResourceModule("gandi", "email/mailbox", _module);
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../email/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAE1B,gCAAgC;AAChC,6CAA0C;AAC1C,uCAAoC;AAEpC,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,uBAAU,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACxD,KAAK,6BAA6B;gBAC9B,OAAO,IAAI,iBAAO,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACrD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA;AAC3E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class Mailbox extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing Mailbox 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?: MailboxState, opts?: pulumi.CustomResourceOptions): Mailbox;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the given object is an instance of Mailbox. 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 Mailbox;
|
|
18
|
+
/**
|
|
19
|
+
* Aliases for email
|
|
20
|
+
*/
|
|
21
|
+
readonly aliases: pulumi.Output<string[] | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* Domain name
|
|
24
|
+
*/
|
|
25
|
+
readonly domain: pulumi.Output<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Login
|
|
28
|
+
*/
|
|
29
|
+
readonly login: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Mailbox type
|
|
32
|
+
*/
|
|
33
|
+
readonly mailboxType: pulumi.Output<string | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* Password
|
|
36
|
+
*/
|
|
37
|
+
readonly password: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Create a Mailbox 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: MailboxArgs, opts?: pulumi.CustomResourceOptions);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Input properties used for looking up and filtering Mailbox resources.
|
|
49
|
+
*/
|
|
50
|
+
export interface MailboxState {
|
|
51
|
+
/**
|
|
52
|
+
* Aliases for email
|
|
53
|
+
*/
|
|
54
|
+
aliases?: pulumi.Input<pulumi.Input<string>[]>;
|
|
55
|
+
/**
|
|
56
|
+
* Domain name
|
|
57
|
+
*/
|
|
58
|
+
domain?: pulumi.Input<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Login
|
|
61
|
+
*/
|
|
62
|
+
login?: pulumi.Input<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Mailbox type
|
|
65
|
+
*/
|
|
66
|
+
mailboxType?: pulumi.Input<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Password
|
|
69
|
+
*/
|
|
70
|
+
password?: pulumi.Input<string>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The set of arguments for constructing a Mailbox resource.
|
|
74
|
+
*/
|
|
75
|
+
export interface MailboxArgs {
|
|
76
|
+
/**
|
|
77
|
+
* Aliases for email
|
|
78
|
+
*/
|
|
79
|
+
aliases?: pulumi.Input<pulumi.Input<string>[]>;
|
|
80
|
+
/**
|
|
81
|
+
* Domain name
|
|
82
|
+
*/
|
|
83
|
+
domain: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Login
|
|
86
|
+
*/
|
|
87
|
+
login: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Mailbox type
|
|
90
|
+
*/
|
|
91
|
+
mailboxType?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Password
|
|
94
|
+
*/
|
|
95
|
+
password: pulumi.Input<string>;
|
|
96
|
+
}
|
package/email/mailbox.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
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.Mailbox = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
class Mailbox extends pulumi.CustomResource {
|
|
9
|
+
constructor(name, argsOrState, opts) {
|
|
10
|
+
let resourceInputs = {};
|
|
11
|
+
opts = opts || {};
|
|
12
|
+
if (opts.id) {
|
|
13
|
+
const state = argsOrState;
|
|
14
|
+
resourceInputs["aliases"] = state ? state.aliases : undefined;
|
|
15
|
+
resourceInputs["domain"] = state ? state.domain : undefined;
|
|
16
|
+
resourceInputs["login"] = state ? state.login : undefined;
|
|
17
|
+
resourceInputs["mailboxType"] = state ? state.mailboxType : undefined;
|
|
18
|
+
resourceInputs["password"] = state ? state.password : undefined;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
const args = argsOrState;
|
|
22
|
+
if ((!args || args.domain === undefined) && !opts.urn) {
|
|
23
|
+
throw new Error("Missing required property 'domain'");
|
|
24
|
+
}
|
|
25
|
+
if ((!args || args.login === undefined) && !opts.urn) {
|
|
26
|
+
throw new Error("Missing required property 'login'");
|
|
27
|
+
}
|
|
28
|
+
if ((!args || args.password === undefined) && !opts.urn) {
|
|
29
|
+
throw new Error("Missing required property 'password'");
|
|
30
|
+
}
|
|
31
|
+
resourceInputs["aliases"] = args ? args.aliases : undefined;
|
|
32
|
+
resourceInputs["domain"] = args ? args.domain : undefined;
|
|
33
|
+
resourceInputs["login"] = args ? args.login : undefined;
|
|
34
|
+
resourceInputs["mailboxType"] = args ? args.mailboxType : undefined;
|
|
35
|
+
resourceInputs["password"] = args ? args.password : undefined;
|
|
36
|
+
}
|
|
37
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
38
|
+
super(Mailbox.__pulumiType, name, resourceInputs, opts);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing Mailbox resource's state with the given name, ID, and optional extra
|
|
42
|
+
* properties used to qualify the lookup.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resulting resource.
|
|
45
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
+
* @param state Any extra arguments used during the lookup.
|
|
47
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
|
+
*/
|
|
49
|
+
static get(name, id, state, opts) {
|
|
50
|
+
return new Mailbox(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of Mailbox. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj) {
|
|
57
|
+
if (obj === undefined || obj === null) {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
return obj['__pulumiType'] === Mailbox.__pulumiType;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.Mailbox = Mailbox;
|
|
64
|
+
/** @internal */
|
|
65
|
+
Mailbox.__pulumiType = 'gandi:email/mailbox:Mailbox';
|
|
66
|
+
//# sourceMappingURL=mailbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailbox.js","sourceRoot":"","sources":["../../email/mailbox.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,OAAQ,SAAQ,MAAM,CAAC,cA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1BL,0BAuFC;AAzEG,gBAAgB;AACO,oBAAY,GAAG,6BAA6B,CAAC"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./provider";
|
|
2
|
+
import * as config from "./config";
|
|
3
|
+
import * as domains from "./domains";
|
|
4
|
+
import * as email from "./email";
|
|
5
|
+
import * as livedns from "./livedns";
|
|
6
|
+
import * as simplehosting from "./simplehosting";
|
|
7
|
+
import * as types from "./types";
|
|
8
|
+
export { config, domains, email, livedns, simplehosting, types, };
|