@pulumi/tailscale 0.11.1-alpha.1674503548 → 0.12.0
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/acl.d.ts +1 -1
- package/acl.js +1 -1
- package/dnsNameservers.d.ts +4 -6
- package/dnsNameservers.js +4 -6
- package/dnsNameservers.js.map +1 -1
- package/dnsPreferences.d.ts +1 -3
- package/dnsPreferences.js +1 -3
- package/dnsPreferences.js.map +1 -1
- package/dnsSearchPaths.d.ts +1 -3
- package/dnsSearchPaths.js +1 -3
- package/dnsSearchPaths.js.map +1 -1
- package/get4Via6.d.ts +17 -2
- package/get4Via6.js +19 -7
- package/get4Via6.js.map +1 -1
- package/getDevice.d.ts +17 -2
- package/getDevice.js +19 -7
- package/getDevice.js.map +1 -1
- package/getDevices.d.ts +17 -3
- package/getDevices.js +18 -7
- package/getDevices.js.map +1 -1
- package/index.d.ts +39 -13
- package/index.js +40 -50
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/package.json.bak +1 -1
- package/package.json.dev +3 -3
- package/provider.js +3 -1
- package/provider.js.map +1 -1
- package/tailnetKey.d.ts +14 -1
- package/tailnetKey.js +6 -1
- package/tailnetKey.js.map +1 -1
- package/types/index.js.map +1 -1
- package/utilities.js +13 -1
- package/utilities.js.map +1 -1
package/acl.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* The acl resource allows you to configure a Tailscale ACL. See https://tailscale.com/kb/1018/acls for more information.
|
|
3
|
+
* The acl resource allows you to configure a Tailscale ACL. See https://tailscale.com/kb/1018/acls for more information. Note that this resource will completely overwrite existing ACL contents for a given tailnet.
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
6
|
*
|
package/acl.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.Acl = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* The acl resource allows you to configure a Tailscale ACL. See https://tailscale.com/kb/1018/acls for more information.
|
|
9
|
+
* The acl resource allows you to configure a Tailscale ACL. See https://tailscale.com/kb/1018/acls for more information. Note that this resource will completely overwrite existing ACL contents for a given tailnet.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
package/dnsNameservers.d.ts
CHANGED
|
@@ -8,12 +8,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as tailscale from "@pulumi/tailscale";
|
|
10
10
|
*
|
|
11
|
-
* const sampleNameservers = new tailscale.DnsNameservers("
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* ],
|
|
16
|
-
* });
|
|
11
|
+
* const sampleNameservers = new tailscale.DnsNameservers("sampleNameservers", {nameservers: [
|
|
12
|
+
* "8.8.8.8",
|
|
13
|
+
* "8.8.4.4",
|
|
14
|
+
* ]});
|
|
17
15
|
* ```
|
|
18
16
|
*/
|
|
19
17
|
export declare class DnsNameservers extends pulumi.CustomResource {
|
package/dnsNameservers.js
CHANGED
|
@@ -14,12 +14,10 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as tailscale from "@pulumi/tailscale";
|
|
16
16
|
*
|
|
17
|
-
* const sampleNameservers = new tailscale.DnsNameservers("
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* ],
|
|
22
|
-
* });
|
|
17
|
+
* const sampleNameservers = new tailscale.DnsNameservers("sampleNameservers", {nameservers: [
|
|
18
|
+
* "8.8.8.8",
|
|
19
|
+
* "8.8.4.4",
|
|
20
|
+
* ]});
|
|
23
21
|
* ```
|
|
24
22
|
*/
|
|
25
23
|
class DnsNameservers extends pulumi.CustomResource {
|
package/dnsNameservers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dnsNameservers.js","sourceRoot":"","sources":["../dnsNameservers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"dnsNameservers.js","sourceRoot":"","sources":["../dnsNameservers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAeD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAxDL,wCAyDC;AA3CG,gBAAgB;AACO,2BAAY,GAAG,+CAA+C,CAAC"}
|
package/dnsPreferences.d.ts
CHANGED
|
@@ -8,9 +8,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as tailscale from "@pulumi/tailscale";
|
|
10
10
|
*
|
|
11
|
-
* const samplePreferences = new tailscale.DnsPreferences("
|
|
12
|
-
* magicDns: true,
|
|
13
|
-
* });
|
|
11
|
+
* const samplePreferences = new tailscale.DnsPreferences("samplePreferences", {magicDns: true});
|
|
14
12
|
* ```
|
|
15
13
|
*/
|
|
16
14
|
export declare class DnsPreferences extends pulumi.CustomResource {
|
package/dnsPreferences.js
CHANGED
|
@@ -14,9 +14,7 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as tailscale from "@pulumi/tailscale";
|
|
16
16
|
*
|
|
17
|
-
* const samplePreferences = new tailscale.DnsPreferences("
|
|
18
|
-
* magicDns: true,
|
|
19
|
-
* });
|
|
17
|
+
* const samplePreferences = new tailscale.DnsPreferences("samplePreferences", {magicDns: true});
|
|
20
18
|
* ```
|
|
21
19
|
*/
|
|
22
20
|
class DnsPreferences extends pulumi.CustomResource {
|
package/dnsPreferences.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dnsPreferences.js","sourceRoot":"","sources":["../dnsPreferences.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"dnsPreferences.js","sourceRoot":"","sources":["../dnsPreferences.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAeD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAxDL,wCAyDC;AA3CG,gBAAgB;AACO,2BAAY,GAAG,+CAA+C,CAAC"}
|
package/dnsSearchPaths.d.ts
CHANGED
|
@@ -8,9 +8,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as tailscale from "@pulumi/tailscale";
|
|
10
10
|
*
|
|
11
|
-
* const sampleSearchPaths = new tailscale.DnsSearchPaths("
|
|
12
|
-
* searchPaths: ["example.com"],
|
|
13
|
-
* });
|
|
11
|
+
* const sampleSearchPaths = new tailscale.DnsSearchPaths("sampleSearchPaths", {searchPaths: ["example.com"]});
|
|
14
12
|
* ```
|
|
15
13
|
*/
|
|
16
14
|
export declare class DnsSearchPaths extends pulumi.CustomResource {
|
package/dnsSearchPaths.js
CHANGED
|
@@ -14,9 +14,7 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as tailscale from "@pulumi/tailscale";
|
|
16
16
|
*
|
|
17
|
-
* const sampleSearchPaths = new tailscale.DnsSearchPaths("
|
|
18
|
-
* searchPaths: ["example.com"],
|
|
19
|
-
* });
|
|
17
|
+
* const sampleSearchPaths = new tailscale.DnsSearchPaths("sampleSearchPaths", {searchPaths: ["example.com"]});
|
|
20
18
|
* ```
|
|
21
19
|
*/
|
|
22
20
|
class DnsSearchPaths extends pulumi.CustomResource {
|
package/dnsSearchPaths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dnsSearchPaths.js","sourceRoot":"","sources":["../dnsSearchPaths.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"dnsSearchPaths.js","sourceRoot":"","sources":["../dnsSearchPaths.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAeD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAxDL,wCAyDC;AA3CG,gBAAgB;AACO,2BAAY,GAAG,+CAA+C,CAAC"}
|
package/get4Via6.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as tailscale from "@pulumi/tailscale";
|
|
10
10
|
*
|
|
11
|
-
* const example =
|
|
11
|
+
* const example = tailscale.get4Via6({
|
|
12
12
|
* cidr: "10.1.1.0/24",
|
|
13
13
|
* site: 7,
|
|
14
|
-
* })
|
|
14
|
+
* });
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
export declare function get4Via6(args: Get4Via6Args, opts?: pulumi.InvokeOptions): Promise<Get4Via6Result>;
|
|
@@ -49,6 +49,21 @@ export interface Get4Via6Result {
|
|
|
49
49
|
*/
|
|
50
50
|
readonly site: number;
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* 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.
|
|
54
|
+
*
|
|
55
|
+
* ## Example Usage
|
|
56
|
+
*
|
|
57
|
+
* ```typescript
|
|
58
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
59
|
+
* import * as tailscale from "@pulumi/tailscale";
|
|
60
|
+
*
|
|
61
|
+
* const example = tailscale.get4Via6({
|
|
62
|
+
* cidr: "10.1.1.0/24",
|
|
63
|
+
* site: 7,
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
52
67
|
export declare function get4Via6Output(args: Get4Via6OutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<Get4Via6Result>;
|
|
53
68
|
/**
|
|
54
69
|
* A collection of arguments for invoking get4Via6.
|
package/get4Via6.js
CHANGED
|
@@ -14,25 +14,37 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as tailscale from "@pulumi/tailscale";
|
|
16
16
|
*
|
|
17
|
-
* const example =
|
|
17
|
+
* const example = tailscale.get4Via6({
|
|
18
18
|
* cidr: "10.1.1.0/24",
|
|
19
19
|
* site: 7,
|
|
20
|
-
* })
|
|
20
|
+
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
function get4Via6(args, opts) {
|
|
24
|
-
|
|
25
|
-
opts = {};
|
|
26
|
-
}
|
|
27
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
28
25
|
return pulumi.runtime.invoke("tailscale:index/get4Via6:get4Via6", {
|
|
29
26
|
"cidr": args.cidr,
|
|
30
27
|
"site": args.site,
|
|
31
28
|
}, opts);
|
|
32
29
|
}
|
|
33
30
|
exports.get4Via6 = get4Via6;
|
|
31
|
+
/**
|
|
32
|
+
* 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.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as tailscale from "@pulumi/tailscale";
|
|
39
|
+
*
|
|
40
|
+
* const example = tailscale.get4Via6({
|
|
41
|
+
* cidr: "10.1.1.0/24",
|
|
42
|
+
* site: 7,
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
34
46
|
function get4Via6Output(args, opts) {
|
|
35
|
-
return pulumi.output(args).apply(a => get4Via6(a, opts));
|
|
47
|
+
return pulumi.output(args).apply((a) => get4Via6(a, opts));
|
|
36
48
|
}
|
|
37
49
|
exports.get4Via6Output = get4Via6Output;
|
|
38
50
|
//# sourceMappingURL=get4Via6.js.map
|
package/get4Via6.js.map
CHANGED
|
@@ -1 +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;
|
|
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;IAEpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,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;AAPD,4BAOC;AAqCD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
|
package/getDevice.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as tailscale from "@pulumi/tailscale";
|
|
10
10
|
*
|
|
11
|
-
* const sampleDevice =
|
|
11
|
+
* const sampleDevice = tailscale.getDevice({
|
|
12
12
|
* name: "user1-device.example.com",
|
|
13
13
|
* waitFor: "60s",
|
|
14
|
-
* })
|
|
14
|
+
* });
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
export declare function getDevice(args: GetDeviceArgs, opts?: pulumi.InvokeOptions): Promise<GetDeviceResult>;
|
|
@@ -57,6 +57,21 @@ export interface GetDeviceResult {
|
|
|
57
57
|
*/
|
|
58
58
|
readonly waitFor?: string;
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* The device data source describes a single device in a tailnet
|
|
62
|
+
*
|
|
63
|
+
* ## Example Usage
|
|
64
|
+
*
|
|
65
|
+
* ```typescript
|
|
66
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
67
|
+
* import * as tailscale from "@pulumi/tailscale";
|
|
68
|
+
*
|
|
69
|
+
* const sampleDevice = tailscale.getDevice({
|
|
70
|
+
* name: "user1-device.example.com",
|
|
71
|
+
* waitFor: "60s",
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
60
75
|
export declare function getDeviceOutput(args: GetDeviceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDeviceResult>;
|
|
61
76
|
/**
|
|
62
77
|
* A collection of arguments for invoking getDevice.
|
package/getDevice.js
CHANGED
|
@@ -14,25 +14,37 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as tailscale from "@pulumi/tailscale";
|
|
16
16
|
*
|
|
17
|
-
* const sampleDevice =
|
|
17
|
+
* const sampleDevice = tailscale.getDevice({
|
|
18
18
|
* name: "user1-device.example.com",
|
|
19
19
|
* waitFor: "60s",
|
|
20
|
-
* })
|
|
20
|
+
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
function getDevice(args, opts) {
|
|
24
|
-
|
|
25
|
-
opts = {};
|
|
26
|
-
}
|
|
27
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
28
25
|
return pulumi.runtime.invoke("tailscale:index/getDevice:getDevice", {
|
|
29
26
|
"name": args.name,
|
|
30
27
|
"waitFor": args.waitFor,
|
|
31
28
|
}, opts);
|
|
32
29
|
}
|
|
33
30
|
exports.getDevice = getDevice;
|
|
31
|
+
/**
|
|
32
|
+
* The device data source describes a single device in a tailnet
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as tailscale from "@pulumi/tailscale";
|
|
39
|
+
*
|
|
40
|
+
* const sampleDevice = tailscale.getDevice({
|
|
41
|
+
* name: "user1-device.example.com",
|
|
42
|
+
* waitFor: "60s",
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
34
46
|
function getDeviceOutput(args, opts) {
|
|
35
|
-
return pulumi.output(args).apply(a => getDevice(a, opts));
|
|
47
|
+
return pulumi.output(args).apply((a) => getDevice(a, opts));
|
|
36
48
|
}
|
|
37
49
|
exports.getDeviceOutput = getDeviceOutput;
|
|
38
50
|
//# sourceMappingURL=getDevice.js.map
|
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;
|
|
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;IAEtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,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;AAPD,8BAOC;AA6CD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
|
package/getDevices.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
4
|
* The devices data source describes a list of devices in a tailnet
|
|
5
5
|
*
|
|
@@ -9,9 +9,9 @@ import { output as outputs } from "./types";
|
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
10
|
* import * as tailscale from "@pulumi/tailscale";
|
|
11
11
|
*
|
|
12
|
-
* const sampleDevices =
|
|
12
|
+
* const sampleDevices = tailscale.getDevices({
|
|
13
13
|
* namePrefix: "example-",
|
|
14
|
-
* })
|
|
14
|
+
* });
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
export declare function getDevices(args?: GetDevicesArgs, opts?: pulumi.InvokeOptions): Promise<GetDevicesResult>;
|
|
@@ -41,6 +41,20 @@ export interface GetDevicesResult {
|
|
|
41
41
|
*/
|
|
42
42
|
readonly namePrefix?: string;
|
|
43
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* The devices data source describes a list of devices in a tailnet
|
|
46
|
+
*
|
|
47
|
+
* ## Example Usage
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as tailscale from "@pulumi/tailscale";
|
|
52
|
+
*
|
|
53
|
+
* const sampleDevices = tailscale.getDevices({
|
|
54
|
+
* namePrefix: "example-",
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
44
58
|
export declare function getDevicesOutput(args?: GetDevicesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDevicesResult>;
|
|
45
59
|
/**
|
|
46
60
|
* A collection of arguments for invoking getDevices.
|
package/getDevices.js
CHANGED
|
@@ -14,24 +14,35 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as tailscale from "@pulumi/tailscale";
|
|
16
16
|
*
|
|
17
|
-
* const sampleDevices =
|
|
17
|
+
* const sampleDevices = tailscale.getDevices({
|
|
18
18
|
* namePrefix: "example-",
|
|
19
|
-
* })
|
|
19
|
+
* });
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
22
|
function getDevices(args, opts) {
|
|
23
23
|
args = args || {};
|
|
24
|
-
|
|
25
|
-
opts = {};
|
|
26
|
-
}
|
|
27
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
28
25
|
return pulumi.runtime.invoke("tailscale:index/getDevices:getDevices", {
|
|
29
26
|
"namePrefix": args.namePrefix,
|
|
30
27
|
}, opts);
|
|
31
28
|
}
|
|
32
29
|
exports.getDevices = getDevices;
|
|
30
|
+
/**
|
|
31
|
+
* The devices data source describes a list of devices in a tailnet
|
|
32
|
+
*
|
|
33
|
+
* ## Example Usage
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as tailscale from "@pulumi/tailscale";
|
|
38
|
+
*
|
|
39
|
+
* const sampleDevices = tailscale.getDevices({
|
|
40
|
+
* namePrefix: "example-",
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
33
44
|
function getDevicesOutput(args, opts) {
|
|
34
|
-
return pulumi.output(args).apply(a => getDevices(a, opts));
|
|
45
|
+
return pulumi.output(args).apply((a) => getDevices(a, opts));
|
|
35
46
|
}
|
|
36
47
|
exports.getDevicesOutput = getDevicesOutput;
|
|
37
48
|
//# sourceMappingURL=getDevices.js.map
|
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;
|
|
1
|
+
{"version":3,"file":"getDevices.js","sourceRoot":"","sources":["../getDevices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uCAAuC,EAAE;QAClE,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gCAOC;AA6BD;;;;;;;;;;;;;GAaG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
|
package/index.d.ts
CHANGED
|
@@ -1,16 +1,42 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
1
|
+
export { AclArgs, AclState } from "./acl";
|
|
2
|
+
export type Acl = import("./acl").Acl;
|
|
3
|
+
export declare const Acl: typeof import("./acl").Acl;
|
|
4
|
+
export { DeviceAuthorizationArgs, DeviceAuthorizationState } from "./deviceAuthorization";
|
|
5
|
+
export type DeviceAuthorization = import("./deviceAuthorization").DeviceAuthorization;
|
|
6
|
+
export declare const DeviceAuthorization: typeof import("./deviceAuthorization").DeviceAuthorization;
|
|
7
|
+
export { DeviceKeyArgs, DeviceKeyState } from "./deviceKey";
|
|
8
|
+
export type DeviceKey = import("./deviceKey").DeviceKey;
|
|
9
|
+
export declare const DeviceKey: typeof import("./deviceKey").DeviceKey;
|
|
10
|
+
export { DeviceSubnetRoutesArgs, DeviceSubnetRoutesState } from "./deviceSubnetRoutes";
|
|
11
|
+
export type DeviceSubnetRoutes = import("./deviceSubnetRoutes").DeviceSubnetRoutes;
|
|
12
|
+
export declare const DeviceSubnetRoutes: typeof import("./deviceSubnetRoutes").DeviceSubnetRoutes;
|
|
13
|
+
export { DeviceTagsArgs, DeviceTagsState } from "./deviceTags";
|
|
14
|
+
export type DeviceTags = import("./deviceTags").DeviceTags;
|
|
15
|
+
export declare const DeviceTags: typeof import("./deviceTags").DeviceTags;
|
|
16
|
+
export { DnsNameserversArgs, DnsNameserversState } from "./dnsNameservers";
|
|
17
|
+
export type DnsNameservers = import("./dnsNameservers").DnsNameservers;
|
|
18
|
+
export declare const DnsNameservers: typeof import("./dnsNameservers").DnsNameservers;
|
|
19
|
+
export { DnsPreferencesArgs, DnsPreferencesState } from "./dnsPreferences";
|
|
20
|
+
export type DnsPreferences = import("./dnsPreferences").DnsPreferences;
|
|
21
|
+
export declare const DnsPreferences: typeof import("./dnsPreferences").DnsPreferences;
|
|
22
|
+
export { DnsSearchPathsArgs, DnsSearchPathsState } from "./dnsSearchPaths";
|
|
23
|
+
export type DnsSearchPaths = import("./dnsSearchPaths").DnsSearchPaths;
|
|
24
|
+
export declare const DnsSearchPaths: typeof import("./dnsSearchPaths").DnsSearchPaths;
|
|
25
|
+
export { Get4Via6Args, Get4Via6Result, Get4Via6OutputArgs } from "./get4Via6";
|
|
26
|
+
export declare const get4Via6: typeof import("./get4Via6").get4Via6;
|
|
27
|
+
export declare const get4Via6Output: typeof import("./get4Via6").get4Via6Output;
|
|
28
|
+
export { GetDeviceArgs, GetDeviceResult, GetDeviceOutputArgs } from "./getDevice";
|
|
29
|
+
export declare const getDevice: typeof import("./getDevice").getDevice;
|
|
30
|
+
export declare const getDeviceOutput: typeof import("./getDevice").getDeviceOutput;
|
|
31
|
+
export { GetDevicesArgs, GetDevicesResult, GetDevicesOutputArgs } from "./getDevices";
|
|
32
|
+
export declare const getDevices: typeof import("./getDevices").getDevices;
|
|
33
|
+
export declare const getDevicesOutput: typeof import("./getDevices").getDevicesOutput;
|
|
34
|
+
export { ProviderArgs } from "./provider";
|
|
35
|
+
export type Provider = import("./provider").Provider;
|
|
36
|
+
export declare const Provider: typeof import("./provider").Provider;
|
|
37
|
+
export { TailnetKeyArgs, TailnetKeyState } from "./tailnetKey";
|
|
38
|
+
export type TailnetKey = import("./tailnetKey").TailnetKey;
|
|
39
|
+
export declare const TailnetKey: typeof import("./tailnetKey").TailnetKey;
|
|
14
40
|
import * as config from "./config";
|
|
15
41
|
import * as types from "./types";
|
|
16
42
|
export { config, types, };
|
package/index.js
CHANGED
|
@@ -1,75 +1,66 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
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
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.types = exports.config = void 0;
|
|
5
|
+
exports.types = exports.config = exports.TailnetKey = exports.Provider = exports.getDevicesOutput = exports.getDevices = exports.getDeviceOutput = exports.getDevice = exports.get4Via6Output = exports.get4Via6 = exports.DnsSearchPaths = exports.DnsPreferences = exports.DnsNameservers = exports.DeviceTags = exports.DeviceSubnetRoutes = exports.DeviceKey = exports.DeviceAuthorization = exports.Acl = void 0;
|
|
20
6
|
const pulumi = require("@pulumi/pulumi");
|
|
21
7
|
const utilities = require("./utilities");
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
8
|
+
exports.Acl = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["Acl"], () => require("./acl"));
|
|
10
|
+
exports.DeviceAuthorization = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["DeviceAuthorization"], () => require("./deviceAuthorization"));
|
|
12
|
+
exports.DeviceKey = null;
|
|
13
|
+
utilities.lazyLoad(exports, ["DeviceKey"], () => require("./deviceKey"));
|
|
14
|
+
exports.DeviceSubnetRoutes = null;
|
|
15
|
+
utilities.lazyLoad(exports, ["DeviceSubnetRoutes"], () => require("./deviceSubnetRoutes"));
|
|
16
|
+
exports.DeviceTags = null;
|
|
17
|
+
utilities.lazyLoad(exports, ["DeviceTags"], () => require("./deviceTags"));
|
|
18
|
+
exports.DnsNameservers = null;
|
|
19
|
+
utilities.lazyLoad(exports, ["DnsNameservers"], () => require("./dnsNameservers"));
|
|
20
|
+
exports.DnsPreferences = null;
|
|
21
|
+
utilities.lazyLoad(exports, ["DnsPreferences"], () => require("./dnsPreferences"));
|
|
22
|
+
exports.DnsSearchPaths = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["DnsSearchPaths"], () => require("./dnsSearchPaths"));
|
|
24
|
+
exports.get4Via6 = null;
|
|
25
|
+
exports.get4Via6Output = null;
|
|
26
|
+
utilities.lazyLoad(exports, ["get4Via6", "get4Via6Output"], () => require("./get4Via6"));
|
|
27
|
+
exports.getDevice = null;
|
|
28
|
+
exports.getDeviceOutput = null;
|
|
29
|
+
utilities.lazyLoad(exports, ["getDevice", "getDeviceOutput"], () => require("./getDevice"));
|
|
30
|
+
exports.getDevices = null;
|
|
31
|
+
exports.getDevicesOutput = null;
|
|
32
|
+
utilities.lazyLoad(exports, ["getDevices", "getDevicesOutput"], () => require("./getDevices"));
|
|
33
|
+
exports.Provider = null;
|
|
34
|
+
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
35
|
+
exports.TailnetKey = null;
|
|
36
|
+
utilities.lazyLoad(exports, ["TailnetKey"], () => require("./tailnetKey"));
|
|
36
37
|
// Export sub-modules:
|
|
37
38
|
const config = require("./config");
|
|
38
39
|
exports.config = config;
|
|
39
40
|
const types = require("./types");
|
|
40
41
|
exports.types = types;
|
|
41
|
-
// Import resources to register:
|
|
42
|
-
const acl_1 = require("./acl");
|
|
43
|
-
const deviceAuthorization_1 = require("./deviceAuthorization");
|
|
44
|
-
const deviceKey_1 = require("./deviceKey");
|
|
45
|
-
const deviceSubnetRoutes_1 = require("./deviceSubnetRoutes");
|
|
46
|
-
const deviceTags_1 = require("./deviceTags");
|
|
47
|
-
const dnsNameservers_1 = require("./dnsNameservers");
|
|
48
|
-
const dnsPreferences_1 = require("./dnsPreferences");
|
|
49
|
-
const dnsSearchPaths_1 = require("./dnsSearchPaths");
|
|
50
|
-
const tailnetKey_1 = require("./tailnetKey");
|
|
51
42
|
const _module = {
|
|
52
43
|
version: utilities.getVersion(),
|
|
53
44
|
construct: (name, type, urn) => {
|
|
54
45
|
switch (type) {
|
|
55
46
|
case "tailscale:index/acl:Acl":
|
|
56
|
-
return new
|
|
47
|
+
return new exports.Acl(name, undefined, { urn });
|
|
57
48
|
case "tailscale:index/deviceAuthorization:DeviceAuthorization":
|
|
58
|
-
return new
|
|
49
|
+
return new exports.DeviceAuthorization(name, undefined, { urn });
|
|
59
50
|
case "tailscale:index/deviceKey:DeviceKey":
|
|
60
|
-
return new
|
|
51
|
+
return new exports.DeviceKey(name, undefined, { urn });
|
|
61
52
|
case "tailscale:index/deviceSubnetRoutes:DeviceSubnetRoutes":
|
|
62
|
-
return new
|
|
53
|
+
return new exports.DeviceSubnetRoutes(name, undefined, { urn });
|
|
63
54
|
case "tailscale:index/deviceTags:DeviceTags":
|
|
64
|
-
return new
|
|
55
|
+
return new exports.DeviceTags(name, undefined, { urn });
|
|
65
56
|
case "tailscale:index/dnsNameservers:DnsNameservers":
|
|
66
|
-
return new
|
|
57
|
+
return new exports.DnsNameservers(name, undefined, { urn });
|
|
67
58
|
case "tailscale:index/dnsPreferences:DnsPreferences":
|
|
68
|
-
return new
|
|
59
|
+
return new exports.DnsPreferences(name, undefined, { urn });
|
|
69
60
|
case "tailscale:index/dnsSearchPaths:DnsSearchPaths":
|
|
70
|
-
return new
|
|
61
|
+
return new exports.DnsSearchPaths(name, undefined, { urn });
|
|
71
62
|
case "tailscale:index/tailnetKey:TailnetKey":
|
|
72
|
-
return new
|
|
63
|
+
return new exports.TailnetKey(name, undefined, { urn });
|
|
73
64
|
default:
|
|
74
65
|
throw new Error(`unknown resource type ${type}`);
|
|
75
66
|
}
|
|
@@ -84,14 +75,13 @@ pulumi.runtime.registerResourceModule("tailscale", "index/dnsNameservers", _modu
|
|
|
84
75
|
pulumi.runtime.registerResourceModule("tailscale", "index/dnsPreferences", _module);
|
|
85
76
|
pulumi.runtime.registerResourceModule("tailscale", "index/dnsSearchPaths", _module);
|
|
86
77
|
pulumi.runtime.registerResourceModule("tailscale", "index/tailnetKey", _module);
|
|
87
|
-
const provider_1 = require("./provider");
|
|
88
78
|
pulumi.runtime.registerResourcePackage("tailscale", {
|
|
89
79
|
version: utilities.getVersion(),
|
|
90
80
|
constructProvider: (name, type, urn) => {
|
|
91
81
|
if (type !== "pulumi:providers:tailscale") {
|
|
92
82
|
throw new Error(`unknown provider type ${type}`);
|
|
93
83
|
}
|
|
94
|
-
return new
|
|
84
|
+
return new exports.Provider(name, undefined, { urn });
|
|
95
85
|
},
|
|
96
86
|
});
|
|
97
87
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,GAAG,GAA+B,IAAW,CAAC;AAC3D,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;AAIhD,QAAA,mBAAmB,GAA+D,IAAW,CAAC;AAC3G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,qBAAqB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC;AAIhF,QAAA,SAAS,GAA2C,IAAW,CAAC;AAC7E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAI5D,QAAA,kBAAkB,GAA6D,IAAW,CAAC;AACxG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC;AAI9E,QAAA,UAAU,GAA6C,IAAW,CAAC;AAChF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAI9D,QAAA,cAAc,GAAqD,IAAW,CAAC;AAC5F,SAAS,CAAC,QAAQ,CAA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AAE;YACvC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/tailscale",
|
|
3
|
-
"version": "v0.
|
|
4
|
-
"description": "A Pulumi package for creating and managing
|
|
3
|
+
"version": "v0.12.0",
|
|
4
|
+
"description": "A Pulumi package for creating and managing Tailscale cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
7
7
|
"tailscale"
|
|
@@ -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.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource tailscale v0.12.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.bak
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/tailscale",
|
|
3
3
|
"version": "${VERSION}",
|
|
4
|
-
"description": "A Pulumi package for creating and managing
|
|
4
|
+
"description": "A Pulumi package for creating and managing Tailscale cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
7
7
|
"tailscale"
|
package/package.json.dev
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/tailscale",
|
|
3
|
-
"version": "v0.
|
|
4
|
-
"description": "A Pulumi package for creating and managing
|
|
3
|
+
"version": "v0.12.0",
|
|
4
|
+
"description": "A Pulumi package for creating and managing Tailscale cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
7
7
|
"tailscale"
|
|
@@ -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.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource tailscale v0.12.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/provider.js
CHANGED
|
@@ -33,11 +33,13 @@ class Provider extends pulumi.ProviderResource {
|
|
|
33
33
|
let resourceInputs = {};
|
|
34
34
|
opts = opts || {};
|
|
35
35
|
{
|
|
36
|
-
resourceInputs["apiKey"] = args ? args.apiKey : undefined;
|
|
36
|
+
resourceInputs["apiKey"] = (args === null || args === void 0 ? void 0 : args.apiKey) ? pulumi.secret(args.apiKey) : undefined;
|
|
37
37
|
resourceInputs["baseUrl"] = args ? args.baseUrl : undefined;
|
|
38
38
|
resourceInputs["tailnet"] = args ? args.tailnet : undefined;
|
|
39
39
|
}
|
|
40
40
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
41
|
+
const secretOpts = { additionalSecretOutputs: ["apiKey"] };
|
|
42
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
41
43
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
42
44
|
}
|
|
43
45
|
}
|
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;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IA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AC,SAAS,CAAC;YAC5D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAhDL,4BAiDC;AAhDG,gBAAgB;AACO,qBAAY,GAAG,WAAW,CAAC"}
|
package/tailnetKey.d.ts
CHANGED
|
@@ -8,8 +8,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as tailscale from "@pulumi/tailscale";
|
|
10
10
|
*
|
|
11
|
-
* const sampleKey = new tailscale.TailnetKey("
|
|
11
|
+
* const sampleKey = new tailscale.TailnetKey("sampleKey", {
|
|
12
12
|
* ephemeral: false,
|
|
13
|
+
* expiry: 3600,
|
|
13
14
|
* preauthorized: true,
|
|
14
15
|
* reusable: true,
|
|
15
16
|
* });
|
|
@@ -35,6 +36,10 @@ export declare class TailnetKey extends pulumi.CustomResource {
|
|
|
35
36
|
* Indicates if the key is ephemeral.
|
|
36
37
|
*/
|
|
37
38
|
readonly ephemeral: pulumi.Output<boolean | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* The expiry of the key in seconds
|
|
41
|
+
*/
|
|
42
|
+
readonly expiry: pulumi.Output<number | undefined>;
|
|
38
43
|
/**
|
|
39
44
|
* The authentication key
|
|
40
45
|
*/
|
|
@@ -68,6 +73,10 @@ export interface TailnetKeyState {
|
|
|
68
73
|
* Indicates if the key is ephemeral.
|
|
69
74
|
*/
|
|
70
75
|
ephemeral?: pulumi.Input<boolean>;
|
|
76
|
+
/**
|
|
77
|
+
* The expiry of the key in seconds
|
|
78
|
+
*/
|
|
79
|
+
expiry?: pulumi.Input<number>;
|
|
71
80
|
/**
|
|
72
81
|
* The authentication key
|
|
73
82
|
*/
|
|
@@ -93,6 +102,10 @@ export interface TailnetKeyArgs {
|
|
|
93
102
|
* Indicates if the key is ephemeral.
|
|
94
103
|
*/
|
|
95
104
|
ephemeral?: pulumi.Input<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* The expiry of the key in seconds
|
|
107
|
+
*/
|
|
108
|
+
expiry?: pulumi.Input<number>;
|
|
96
109
|
/**
|
|
97
110
|
* Determines whether or not the machines authenticated by the key will be authorized for the tailnet by default.
|
|
98
111
|
*/
|
package/tailnetKey.js
CHANGED
|
@@ -14,8 +14,9 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as tailscale from "@pulumi/tailscale";
|
|
16
16
|
*
|
|
17
|
-
* const sampleKey = new tailscale.TailnetKey("
|
|
17
|
+
* const sampleKey = new tailscale.TailnetKey("sampleKey", {
|
|
18
18
|
* ephemeral: false,
|
|
19
|
+
* expiry: 3600,
|
|
19
20
|
* preauthorized: true,
|
|
20
21
|
* reusable: true,
|
|
21
22
|
* });
|
|
@@ -50,6 +51,7 @@ class TailnetKey extends pulumi.CustomResource {
|
|
|
50
51
|
if (opts.id) {
|
|
51
52
|
const state = argsOrState;
|
|
52
53
|
resourceInputs["ephemeral"] = state ? state.ephemeral : undefined;
|
|
54
|
+
resourceInputs["expiry"] = state ? state.expiry : undefined;
|
|
53
55
|
resourceInputs["key"] = state ? state.key : undefined;
|
|
54
56
|
resourceInputs["preauthorized"] = state ? state.preauthorized : undefined;
|
|
55
57
|
resourceInputs["reusable"] = state ? state.reusable : undefined;
|
|
@@ -58,12 +60,15 @@ class TailnetKey extends pulumi.CustomResource {
|
|
|
58
60
|
else {
|
|
59
61
|
const args = argsOrState;
|
|
60
62
|
resourceInputs["ephemeral"] = args ? args.ephemeral : undefined;
|
|
63
|
+
resourceInputs["expiry"] = args ? args.expiry : undefined;
|
|
61
64
|
resourceInputs["preauthorized"] = args ? args.preauthorized : undefined;
|
|
62
65
|
resourceInputs["reusable"] = args ? args.reusable : undefined;
|
|
63
66
|
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
64
67
|
resourceInputs["key"] = undefined /*out*/;
|
|
65
68
|
}
|
|
66
69
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
70
|
+
const secretOpts = { additionalSecretOutputs: ["key"] };
|
|
71
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
67
72
|
super(TailnetKey.__pulumiType, name, resourceInputs, opts);
|
|
68
73
|
}
|
|
69
74
|
}
|
package/tailnetKey.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailnetKey.js","sourceRoot":"","sources":["../tailnetKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"tailnetKey.js","sourceRoot":"","sources":["../tailnetKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;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;QA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CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;QACxD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AArFL,gCAsFC;AAxEG,gBAAgB;AACO,uBAAY,GAAG,uCAAuC,CAAC"}
|
package/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|
package/utilities.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
5
|
+
exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
6
6
|
function getEnv(...vars) {
|
|
7
7
|
for (const v of vars) {
|
|
8
8
|
const value = process.env[v];
|
|
@@ -54,4 +54,16 @@ function resourceOptsDefaults() {
|
|
|
54
54
|
return { version: getVersion() };
|
|
55
55
|
}
|
|
56
56
|
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
57
|
+
/** @internal */
|
|
58
|
+
function lazyLoad(exports, props, loadModule) {
|
|
59
|
+
for (let property of props) {
|
|
60
|
+
Object.defineProperty(exports, property, {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return loadModule()[property];
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.lazyLoad = lazyLoad;
|
|
57
69
|
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAGjF,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,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