pulumi-namecheap 2.2.5 → 2.2.7
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/bin/config/index.d.ts +1 -0
- package/bin/config/index.js +21 -0
- package/bin/config/index.js.map +1 -0
- package/bin/config/vars.d.ts +20 -0
- package/bin/config/vars.js +37 -0
- package/bin/config/vars.js.map +1 -0
- package/bin/domainRecords.d.ts +83 -0
- package/bin/domainRecords.js +62 -0
- package/bin/domainRecords.js.map +1 -0
- package/bin/index.d.ts +9 -0
- package/bin/index.js +38 -0
- package/bin/index.js.map +1 -0
- package/bin/package.json +6 -8
- package/bin/provider.d.ts +63 -0
- package/bin/provider.js +58 -0
- package/bin/provider.js.map +1 -0
- package/bin/types/index.d.ts +3 -0
- package/bin/types/index.js +11 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +23 -0
- package/bin/types/input.js +5 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +22 -0
- package/bin/types/output.js +5 -0
- package/bin/types/output.js.map +1 -0
- package/bin/utilities.d.ts +5 -0
- package/bin/utilities.js +141 -0
- package/bin/utilities.js.map +1 -0
- package/package.json +6 -8
- package/bin/_virtual/rolldown_runtime.mjs +0 -37
- package/bin/config/index.d.mts +0 -8
- package/bin/config/index.mjs +0 -9
- package/bin/config/vars.d.mts +0 -23
- package/bin/config/vars.mjs +0 -42
- package/bin/domainRecords.d.mts +0 -89
- package/bin/domainRecords.mjs +0 -81
- package/bin/index.d.mts +0 -14
- package/bin/index.mjs +0 -33
- package/bin/package.mjs +0 -63
- package/bin/provider.d.mts +0 -70
- package/bin/provider.mjs +0 -64
- package/bin/types/index.d.mts +0 -9
- package/bin/types/index.mjs +0 -13
- package/bin/types/input.d.mts +0 -30
- package/bin/types/input.mjs +0 -5
- package/bin/types/output.d.mts +0 -27
- package/bin/types/output.mjs +0 -5
- package/bin/utilities.mjs +0 -61
package/bin/provider.mjs
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { __esm, __export } from "./_virtual/rolldown_runtime.mjs";
|
|
2
|
-
import { getPackage, init_utilities, resourceOptsDefaults } from "./utilities.mjs";
|
|
3
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
4
|
-
|
|
5
|
-
//#region provider.ts
|
|
6
|
-
var provider_exports = {};
|
|
7
|
-
__export(provider_exports, { Provider: () => Provider });
|
|
8
|
-
var Provider;
|
|
9
|
-
var init_provider = __esm({ "provider.ts": (() => {
|
|
10
|
-
init_utilities();
|
|
11
|
-
Provider = class Provider extends pulumi.ProviderResource {
|
|
12
|
-
/** @internal */
|
|
13
|
-
static __pulumiType = "namecheap";
|
|
14
|
-
/**
|
|
15
|
-
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
16
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
17
|
-
*/
|
|
18
|
-
static isInstance(obj) {
|
|
19
|
-
if (obj === void 0 || obj === null) return false;
|
|
20
|
-
return obj["__pulumiType"] === "pulumi:providers:" + Provider.__pulumiType;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* The namecheap API key
|
|
24
|
-
*/
|
|
25
|
-
apiKey;
|
|
26
|
-
/**
|
|
27
|
-
* A registered api user for namecheap
|
|
28
|
-
*/
|
|
29
|
-
apiUser;
|
|
30
|
-
/**
|
|
31
|
-
* Client IP address
|
|
32
|
-
*/
|
|
33
|
-
clientIp;
|
|
34
|
-
/**
|
|
35
|
-
* A registered user name for namecheap
|
|
36
|
-
*/
|
|
37
|
-
userName;
|
|
38
|
-
/**
|
|
39
|
-
* Create a Provider 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, args, opts) {
|
|
46
|
-
let resourceInputs = {};
|
|
47
|
-
opts = opts || {};
|
|
48
|
-
if ((!args || args.apiKey === void 0) && !opts.urn) throw new Error("Missing required property 'apiKey'");
|
|
49
|
-
if ((!args || args.apiUser === void 0) && !opts.urn) throw new Error("Missing required property 'apiUser'");
|
|
50
|
-
if ((!args || args.userName === void 0) && !opts.urn) throw new Error("Missing required property 'userName'");
|
|
51
|
-
resourceInputs["apiKey"] = args ? args.apiKey : void 0;
|
|
52
|
-
resourceInputs["apiUser"] = args ? args.apiUser : void 0;
|
|
53
|
-
resourceInputs["clientIp"] = args ? args.clientIp : void 0;
|
|
54
|
-
resourceInputs["useSandbox"] = pulumi.output(args ? args.useSandbox : void 0).apply(JSON.stringify);
|
|
55
|
-
resourceInputs["userName"] = args ? args.userName : void 0;
|
|
56
|
-
opts = pulumi.mergeOptions(resourceOptsDefaults(), opts);
|
|
57
|
-
super(Provider.__pulumiType, name, resourceInputs, opts, false, getPackage());
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
}) });
|
|
61
|
-
|
|
62
|
-
//#endregion
|
|
63
|
-
init_provider();
|
|
64
|
-
export { init_provider, provider_exports };
|
package/bin/types/index.d.mts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { input_d_exports } from "./input.mjs";
|
|
2
|
-
import { output_d_exports } from "./output.mjs";
|
|
3
|
-
|
|
4
|
-
//#region types/index.d.ts
|
|
5
|
-
declare namespace index_d_exports {
|
|
6
|
-
export { input_d_exports as input, output_d_exports as output };
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { index_d_exports };
|
package/bin/types/index.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __export } from "../_virtual/rolldown_runtime.mjs";
|
|
2
|
-
import { input_exports } from "./input.mjs";
|
|
3
|
-
import { output_exports } from "./output.mjs";
|
|
4
|
-
|
|
5
|
-
//#region types/index.ts
|
|
6
|
-
var types_exports = {};
|
|
7
|
-
__export(types_exports, {
|
|
8
|
-
input: () => input_exports,
|
|
9
|
-
output: () => output_exports
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { types_exports };
|
package/bin/types/input.d.mts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
|
|
3
|
-
//#region types/input.d.ts
|
|
4
|
-
declare namespace input_d_exports {
|
|
5
|
-
export { DomainRecordsRecord };
|
|
6
|
-
}
|
|
7
|
-
interface DomainRecordsRecord {
|
|
8
|
-
/**
|
|
9
|
-
* Possible values are URL or IP address. The value for this parameter is based on record type
|
|
10
|
-
*/
|
|
11
|
-
address: pulumi.Input<string>;
|
|
12
|
-
/**
|
|
13
|
-
* Sub-domain/hostname to create the record for
|
|
14
|
-
*/
|
|
15
|
-
hostname: pulumi.Input<string>;
|
|
16
|
-
/**
|
|
17
|
-
* MX preference for host. Applicable for MX records only
|
|
18
|
-
*/
|
|
19
|
-
mxPref?: pulumi.Input<number>;
|
|
20
|
-
/**
|
|
21
|
-
* Time to live for all record types. Possible values: any value between 60 to 60000
|
|
22
|
-
*/
|
|
23
|
-
ttl?: pulumi.Input<number>;
|
|
24
|
-
/**
|
|
25
|
-
* Possible values: A, AAAA, ALIAS, CAA, CNAME, MX, MXE, NS, TXT, URL, URL301, FRAME
|
|
26
|
-
*/
|
|
27
|
-
type: pulumi.Input<string>;
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
export { DomainRecordsRecord, input_d_exports };
|
package/bin/types/input.mjs
DELETED
package/bin/types/output.d.mts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare namespace output_d_exports {
|
|
2
|
-
export { DomainRecordsRecord };
|
|
3
|
-
}
|
|
4
|
-
interface DomainRecordsRecord {
|
|
5
|
-
/**
|
|
6
|
-
* Possible values are URL or IP address. The value for this parameter is based on record type
|
|
7
|
-
*/
|
|
8
|
-
address: string;
|
|
9
|
-
/**
|
|
10
|
-
* Sub-domain/hostname to create the record for
|
|
11
|
-
*/
|
|
12
|
-
hostname: string;
|
|
13
|
-
/**
|
|
14
|
-
* MX preference for host. Applicable for MX records only
|
|
15
|
-
*/
|
|
16
|
-
mxPref?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Time to live for all record types. Possible values: any value between 60 to 60000
|
|
19
|
-
*/
|
|
20
|
-
ttl?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Possible values: A, AAAA, ALIAS, CAA, CNAME, MX, MXE, NS, TXT, URL, URL301, FRAME
|
|
23
|
-
*/
|
|
24
|
-
type: string;
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { DomainRecordsRecord, output_d_exports };
|
package/bin/types/output.mjs
DELETED
package/bin/utilities.mjs
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { __esm } from "./_virtual/rolldown_runtime.mjs";
|
|
2
|
-
import { require_package } from "./package.mjs";
|
|
3
|
-
import * as resproto from "@pulumi/pulumi/proto/resource_pb";
|
|
4
|
-
import * as mutex from "async-mutex";
|
|
5
|
-
import * as runtime from "@pulumi/pulumi/runtime";
|
|
6
|
-
|
|
7
|
-
//#region utilities.ts
|
|
8
|
-
function getVersion() {
|
|
9
|
-
let version = require_package().version;
|
|
10
|
-
if (version.indexOf("v") === 0) version = version.slice(1);
|
|
11
|
-
return version;
|
|
12
|
-
}
|
|
13
|
-
/** @internal */
|
|
14
|
-
function resourceOptsDefaults() {
|
|
15
|
-
return { version: getVersion() };
|
|
16
|
-
}
|
|
17
|
-
/** @internal */
|
|
18
|
-
function lazyLoad(exports, props, loadModule) {
|
|
19
|
-
for (let property of props) Object.defineProperty(exports, property, {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function() {
|
|
22
|
-
return loadModule()[property];
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
async function getPackage() {
|
|
27
|
-
if (_packageRef === void 0) {
|
|
28
|
-
if (!runtime.supportsParameterization()) throw new Error("The Pulumi CLI does not support parameterization. Please update the Pulumi CLI");
|
|
29
|
-
await _packageLock.acquire();
|
|
30
|
-
if (_packageRef === void 0) {
|
|
31
|
-
const monitor = runtime.getMonitor();
|
|
32
|
-
const params = new resproto.Parameterization();
|
|
33
|
-
params.setName("namecheap");
|
|
34
|
-
params.setVersion("2.2.0");
|
|
35
|
-
params.setValue(Uint8Array.from(atob("eyJyZW1vdGUiOnsidXJsIjoicmVnaXN0cnkub3BlbnRvZnUub3JnL25hbWVjaGVhcC9uYW1lY2hlYXAiLCJ2ZXJzaW9uIjoiMi4yLjAifX0="), (c) => c.charCodeAt(0)));
|
|
36
|
-
const req = new resproto.RegisterPackageRequest();
|
|
37
|
-
req.setName("terraform-provider");
|
|
38
|
-
req.setVersion("0.8.0");
|
|
39
|
-
req.setDownloadUrl("");
|
|
40
|
-
req.setParameterization(params);
|
|
41
|
-
const resp = await new Promise((resolve, reject) => {
|
|
42
|
-
monitor.registerPackage(req, (err, resp$1) => {
|
|
43
|
-
if (err) reject(err);
|
|
44
|
-
else resolve(resp$1);
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
_packageRef = resp.getRef();
|
|
48
|
-
}
|
|
49
|
-
_packageLock.release();
|
|
50
|
-
}
|
|
51
|
-
return _packageRef;
|
|
52
|
-
}
|
|
53
|
-
var _packageLock, _packageRef;
|
|
54
|
-
var init_utilities = __esm({ "utilities.ts": (() => {
|
|
55
|
-
_packageLock = new mutex.Mutex();
|
|
56
|
-
_packageRef = void 0;
|
|
57
|
-
}) });
|
|
58
|
-
|
|
59
|
-
//#endregion
|
|
60
|
-
init_utilities();
|
|
61
|
-
export { getPackage, getVersion, init_utilities, lazyLoad, resourceOptsDefaults };
|