@pulumi/tailscale 0.10.1 → 0.10.3-alpha.1661887526
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/get4Via6.d.ts +65 -0
- package/get4Via6.js +38 -0
- package/get4Via6.js.map +1 -0
- package/getDevice.d.ts +27 -0
- package/getDevice.js.map +1 -1
- package/getDevices.d.ts +12 -0
- package/getDevices.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +2 -1
- package/package.json.dev +4 -3
- package/provider.d.ts +5 -5
- package/provider.js +0 -6
- package/provider.js.map +1 -1
- package/types/output.d.ts +3 -0
package/get4Via6.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The 4via6 data source is calculates an IPv6 prefix for a given site ID and IPv4 CIDR. See Tailscale documentation for [4via6 subnets](https://tailscale.com/kb/1201/4via6-subnets/) for more details.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as tailscale from "@pulumi/tailscale";
|
|
10
|
+
*
|
|
11
|
+
* const example = pulumi.output(tailscale.get4Via6({
|
|
12
|
+
* cidr: "10.1.1.0/24",
|
|
13
|
+
* site: 7,
|
|
14
|
+
* }));
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function get4Via6(args: Get4Via6Args, opts?: pulumi.InvokeOptions): Promise<Get4Via6Result>;
|
|
18
|
+
/**
|
|
19
|
+
* A collection of arguments for invoking get4Via6.
|
|
20
|
+
*/
|
|
21
|
+
export interface Get4Via6Args {
|
|
22
|
+
/**
|
|
23
|
+
* The IPv4 CIDR to map
|
|
24
|
+
*/
|
|
25
|
+
cidr: string;
|
|
26
|
+
/**
|
|
27
|
+
* Site ID (between 0 and 255)
|
|
28
|
+
*/
|
|
29
|
+
site: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A collection of values returned by get4Via6.
|
|
33
|
+
*/
|
|
34
|
+
export interface Get4Via6Result {
|
|
35
|
+
/**
|
|
36
|
+
* The IPv4 CIDR to map
|
|
37
|
+
*/
|
|
38
|
+
readonly cidr: string;
|
|
39
|
+
/**
|
|
40
|
+
* The provider-assigned unique ID for this managed resource.
|
|
41
|
+
*/
|
|
42
|
+
readonly id: string;
|
|
43
|
+
/**
|
|
44
|
+
* The 4via6 mapped address
|
|
45
|
+
*/
|
|
46
|
+
readonly ipv6: string;
|
|
47
|
+
/**
|
|
48
|
+
* Site ID (between 0 and 255)
|
|
49
|
+
*/
|
|
50
|
+
readonly site: number;
|
|
51
|
+
}
|
|
52
|
+
export declare function get4Via6Output(args: Get4Via6OutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<Get4Via6Result>;
|
|
53
|
+
/**
|
|
54
|
+
* A collection of arguments for invoking get4Via6.
|
|
55
|
+
*/
|
|
56
|
+
export interface Get4Via6OutputArgs {
|
|
57
|
+
/**
|
|
58
|
+
* The IPv4 CIDR to map
|
|
59
|
+
*/
|
|
60
|
+
cidr: pulumi.Input<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Site ID (between 0 and 255)
|
|
63
|
+
*/
|
|
64
|
+
site: pulumi.Input<number>;
|
|
65
|
+
}
|
package/get4Via6.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
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.get4Via6Output = exports.get4Via6 = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The 4via6 data source is calculates an IPv6 prefix for a given site ID and IPv4 CIDR. See Tailscale documentation for [4via6 subnets](https://tailscale.com/kb/1201/4via6-subnets/) for more details.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as tailscale from "@pulumi/tailscale";
|
|
16
|
+
*
|
|
17
|
+
* const example = pulumi.output(tailscale.get4Via6({
|
|
18
|
+
* cidr: "10.1.1.0/24",
|
|
19
|
+
* site: 7,
|
|
20
|
+
* }));
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function get4Via6(args, opts) {
|
|
24
|
+
if (!opts) {
|
|
25
|
+
opts = {};
|
|
26
|
+
}
|
|
27
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
28
|
+
return pulumi.runtime.invoke("tailscale:index/get4Via6:get4Via6", {
|
|
29
|
+
"cidr": args.cidr,
|
|
30
|
+
"site": args.site,
|
|
31
|
+
}, opts);
|
|
32
|
+
}
|
|
33
|
+
exports.get4Via6 = get4Via6;
|
|
34
|
+
function get4Via6Output(args, opts) {
|
|
35
|
+
return pulumi.output(args).apply(a => get4Via6(a, opts));
|
|
36
|
+
}
|
|
37
|
+
exports.get4Via6Output = get4Via6Output;
|
|
38
|
+
//# sourceMappingURL=get4Via6.js.map
|
package/get4Via6.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get4Via6.js","sourceRoot":"","sources":["../get4Via6.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,QAAQ,CAAC,IAAkB,EAAE,IAA2B;IACpE,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;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,4BAUC;AAsCD,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5D,CAAC;AAFD,wCAEC"}
|
package/getDevice.d.ts
CHANGED
|
@@ -19,21 +19,42 @@ export declare function getDevice(args: GetDeviceArgs, opts?: pulumi.InvokeOptio
|
|
|
19
19
|
* A collection of arguments for invoking getDevice.
|
|
20
20
|
*/
|
|
21
21
|
export interface GetDeviceArgs {
|
|
22
|
+
/**
|
|
23
|
+
* The name of the device
|
|
24
|
+
*/
|
|
22
25
|
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* If specified, the provider will make multiple attempts to obtain the data source until the waitFor duration is reached. Retries are made every second so this value should be greater than 1s
|
|
28
|
+
*/
|
|
23
29
|
waitFor?: string;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* A collection of values returned by getDevice.
|
|
27
33
|
*/
|
|
28
34
|
export interface GetDeviceResult {
|
|
35
|
+
/**
|
|
36
|
+
* The list of device's IPs
|
|
37
|
+
*/
|
|
29
38
|
readonly addresses: string[];
|
|
30
39
|
/**
|
|
31
40
|
* The provider-assigned unique ID for this managed resource.
|
|
32
41
|
*/
|
|
33
42
|
readonly id: string;
|
|
43
|
+
/**
|
|
44
|
+
* The name of the device
|
|
45
|
+
*/
|
|
34
46
|
readonly name: string;
|
|
47
|
+
/**
|
|
48
|
+
* The tags applied to the device
|
|
49
|
+
*/
|
|
35
50
|
readonly tags: string[];
|
|
51
|
+
/**
|
|
52
|
+
* The user associated with the device
|
|
53
|
+
*/
|
|
36
54
|
readonly user: string;
|
|
55
|
+
/**
|
|
56
|
+
* If specified, the provider will make multiple attempts to obtain the data source until the waitFor duration is reached. Retries are made every second so this value should be greater than 1s
|
|
57
|
+
*/
|
|
37
58
|
readonly waitFor?: string;
|
|
38
59
|
}
|
|
39
60
|
export declare function getDeviceOutput(args: GetDeviceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDeviceResult>;
|
|
@@ -41,6 +62,12 @@ export declare function getDeviceOutput(args: GetDeviceOutputArgs, opts?: pulumi
|
|
|
41
62
|
* A collection of arguments for invoking getDevice.
|
|
42
63
|
*/
|
|
43
64
|
export interface GetDeviceOutputArgs {
|
|
65
|
+
/**
|
|
66
|
+
* The name of the device
|
|
67
|
+
*/
|
|
44
68
|
name: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* If specified, the provider will make multiple attempts to obtain the data source until the waitFor duration is reached. Retries are made every second so this value should be greater than 1s
|
|
71
|
+
*/
|
|
45
72
|
waitFor?: pulumi.Input<string>;
|
|
46
73
|
}
|
package/getDevice.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDevice.js","sourceRoot":"","sources":["../getDevice.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,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,qCAAqC,EAAE;QAChE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,8BAUC;
|
|
1
|
+
{"version":3,"file":"getDevice.js","sourceRoot":"","sources":["../getDevice.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,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,qCAAqC,EAAE;QAChE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,8BAUC;AA8CD,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"}
|
package/getDevices.d.ts
CHANGED
|
@@ -19,17 +19,26 @@ export declare function getDevices(args?: GetDevicesArgs, opts?: pulumi.InvokeOp
|
|
|
19
19
|
* A collection of arguments for invoking getDevices.
|
|
20
20
|
*/
|
|
21
21
|
export interface GetDevicesArgs {
|
|
22
|
+
/**
|
|
23
|
+
* Filters the device list to elements whose name has the provided prefix
|
|
24
|
+
*/
|
|
22
25
|
namePrefix?: string;
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
25
28
|
* A collection of values returned by getDevices.
|
|
26
29
|
*/
|
|
27
30
|
export interface GetDevicesResult {
|
|
31
|
+
/**
|
|
32
|
+
* The list of devices in the tailnet
|
|
33
|
+
*/
|
|
28
34
|
readonly devices: outputs.GetDevicesDevice[];
|
|
29
35
|
/**
|
|
30
36
|
* The provider-assigned unique ID for this managed resource.
|
|
31
37
|
*/
|
|
32
38
|
readonly id: string;
|
|
39
|
+
/**
|
|
40
|
+
* Filters the device list to elements whose name has the provided prefix
|
|
41
|
+
*/
|
|
33
42
|
readonly namePrefix?: string;
|
|
34
43
|
}
|
|
35
44
|
export declare function getDevicesOutput(args?: GetDevicesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDevicesResult>;
|
|
@@ -37,5 +46,8 @@ export declare function getDevicesOutput(args?: GetDevicesOutputArgs, opts?: pul
|
|
|
37
46
|
* A collection of arguments for invoking getDevices.
|
|
38
47
|
*/
|
|
39
48
|
export interface GetDevicesOutputArgs {
|
|
49
|
+
/**
|
|
50
|
+
* Filters the device list to elements whose name has the provided prefix
|
|
51
|
+
*/
|
|
40
52
|
namePrefix?: pulumi.Input<string>;
|
|
41
53
|
}
|
package/getDevices.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDevices.js","sourceRoot":"","sources":["../getDevices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,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,uCAAuC,EAAE;QAClE,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,gCAUC;
|
|
1
|
+
{"version":3,"file":"getDevices.js","sourceRoot":"","sources":["../getDevices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,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,uCAAuC,EAAE;QAClE,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,gCAUC;AA8BD,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,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/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __exportStar(require("./deviceTags"), exports);
|
|
|
28
28
|
__exportStar(require("./dnsNameservers"), exports);
|
|
29
29
|
__exportStar(require("./dnsPreferences"), exports);
|
|
30
30
|
__exportStar(require("./dnsSearchPaths"), exports);
|
|
31
|
+
__exportStar(require("./get4Via6"), exports);
|
|
31
32
|
__exportStar(require("./getDevice"), exports);
|
|
32
33
|
__exportStar(require("./getDevices"), exports);
|
|
33
34
|
__exportStar(require("./provider"), exports);
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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
|
"description": "A Pulumi package for creating and managing xyz cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource tailscale v0.10.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource tailscale v0.10.3-alpha.1661887526+04ff0096"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"typescript": "^4.3.5"
|
|
23
23
|
},
|
|
24
24
|
"pulumi": {
|
|
25
|
-
"resource": true
|
|
25
|
+
"resource": true,
|
|
26
|
+
"name": "tailscale"
|
|
26
27
|
}
|
|
27
28
|
}
|
package/package.json.bak
CHANGED
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/tailscale",
|
|
3
|
-
"version": "v0.10.
|
|
3
|
+
"version": "v0.10.3-alpha.1661887526+04ff0096",
|
|
4
4
|
"description": "A Pulumi package for creating and managing xyz cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource tailscale v0.10.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource tailscale v0.10.3-alpha.1661887526+04ff0096"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"typescript": "^4.3.5"
|
|
23
23
|
},
|
|
24
24
|
"pulumi": {
|
|
25
|
-
"resource": true
|
|
25
|
+
"resource": true,
|
|
26
|
+
"name": "tailscale"
|
|
26
27
|
}
|
|
27
28
|
}
|
package/provider.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
14
14
|
/**
|
|
15
15
|
* The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable.
|
|
16
16
|
*/
|
|
17
|
-
readonly apiKey: pulumi.Output<string>;
|
|
17
|
+
readonly apiKey: pulumi.Output<string | undefined>;
|
|
18
18
|
/**
|
|
19
19
|
* The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL
|
|
20
20
|
* environment variable.
|
|
@@ -23,7 +23,7 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
23
23
|
/**
|
|
24
24
|
* The Tailnet to perform actions in. Can be set via the TAILSCALE_TAILNET environment variable.
|
|
25
25
|
*/
|
|
26
|
-
readonly tailnet: pulumi.Output<string>;
|
|
26
|
+
readonly tailnet: pulumi.Output<string | undefined>;
|
|
27
27
|
/**
|
|
28
28
|
* Create a Provider resource with the given unique name, arguments, and options.
|
|
29
29
|
*
|
|
@@ -31,7 +31,7 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
31
31
|
* @param args The arguments to use to populate this resource's properties.
|
|
32
32
|
* @param opts A bag of options that control this resource's behavior.
|
|
33
33
|
*/
|
|
34
|
-
constructor(name: string, args
|
|
34
|
+
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* The set of arguments for constructing a Provider resource.
|
|
@@ -40,7 +40,7 @@ export interface ProviderArgs {
|
|
|
40
40
|
/**
|
|
41
41
|
* The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable.
|
|
42
42
|
*/
|
|
43
|
-
apiKey
|
|
43
|
+
apiKey?: pulumi.Input<string>;
|
|
44
44
|
/**
|
|
45
45
|
* The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL
|
|
46
46
|
* environment variable.
|
|
@@ -49,5 +49,5 @@ export interface ProviderArgs {
|
|
|
49
49
|
/**
|
|
50
50
|
* The Tailnet to perform actions in. Can be set via the TAILSCALE_TAILNET environment variable.
|
|
51
51
|
*/
|
|
52
|
-
tailnet
|
|
52
|
+
tailnet?: pulumi.Input<string>;
|
|
53
53
|
}
|
package/provider.js
CHANGED
|
@@ -23,12 +23,6 @@ class Provider extends pulumi.ProviderResource {
|
|
|
23
23
|
let resourceInputs = {};
|
|
24
24
|
opts = opts || {};
|
|
25
25
|
{
|
|
26
|
-
if ((!args || args.apiKey === undefined) && !opts.urn) {
|
|
27
|
-
throw new Error("Missing required property 'apiKey'");
|
|
28
|
-
}
|
|
29
|
-
if ((!args || args.tailnet === undefined) && !opts.urn) {
|
|
30
|
-
throw new Error("Missing required property 'tailnet'");
|
|
31
|
-
}
|
|
32
26
|
resourceInputs["apiKey"] = args ? args.apiKey : undefined;
|
|
33
27
|
resourceInputs["baseUrl"] = args ? args.baseUrl : undefined;
|
|
34
28
|
resourceInputs["tailnet"] = args ? args.tailnet : undefined;
|
package/provider.js.map
CHANGED
|
@@ -1 +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;IA6BjD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,
|
|
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;IA6BjD;;;;;;OAMG;IACH,YAAY,IAAY,EAA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