@pulumi/tailscale 0.21.1 → 0.22.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 +2 -0
- package/acl.js +10 -8
- package/acl.js.map +1 -1
- package/awsExternalId.js +3 -3
- package/awsExternalId.js.map +1 -1
- package/config/vars.d.ts +6 -13
- package/config/vars.js.map +1 -1
- package/contacts.d.ts +2 -0
- package/contacts.js +12 -10
- package/contacts.js.map +1 -1
- package/deviceAuthorization.d.ts +2 -0
- package/deviceAuthorization.js +9 -7
- package/deviceAuthorization.js.map +1 -1
- package/deviceKey.d.ts +2 -0
- package/deviceKey.js +8 -6
- package/deviceKey.js.map +1 -1
- package/deviceSubnetRoutes.d.ts +2 -0
- package/deviceSubnetRoutes.js +9 -7
- package/deviceSubnetRoutes.js.map +1 -1
- package/deviceTags.d.ts +2 -0
- package/deviceTags.js +9 -7
- package/deviceTags.js.map +1 -1
- package/dnsConfiguration.d.ts +153 -0
- package/dnsConfiguration.js +112 -0
- package/dnsConfiguration.js.map +1 -0
- package/dnsNameservers.d.ts +2 -0
- package/dnsNameservers.js +6 -4
- package/dnsNameservers.js.map +1 -1
- package/dnsPreferences.d.ts +2 -0
- package/dnsPreferences.js +6 -4
- package/dnsPreferences.js.map +1 -1
- package/dnsSearchPaths.d.ts +2 -0
- package/dnsSearchPaths.js +6 -4
- package/dnsSearchPaths.js.map +1 -1
- package/dnsSplitNameservers.d.ts +2 -0
- package/dnsSplitNameservers.js +9 -7
- package/dnsSplitNameservers.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +6 -1
- package/index.js.map +1 -1
- package/logstreamConfiguration.d.ts +2 -0
- package/logstreamConfiguration.js +35 -33
- package/logstreamConfiguration.js.map +1 -1
- package/oauthClient.d.ts +2 -0
- package/oauthClient.js +13 -11
- package/oauthClient.js.map +1 -1
- package/package.json +2 -2
- package/postureIntegration.d.ts +2 -0
- package/postureIntegration.js +15 -13
- package/postureIntegration.js.map +1 -1
- package/provider.d.ts +11 -23
- package/provider.js +7 -7
- package/provider.js.map +1 -1
- package/tailnetKey.js +21 -21
- package/tailnetKey.js.map +1 -1
- package/tailnetSettings.d.ts +2 -0
- package/tailnetSettings.js +23 -21
- package/tailnetSettings.js.map +1 -1
- package/types/input.d.ts +31 -0
- package/types/output.d.ts +31 -0
- package/utilities.js +18 -29
- package/utilities.js.map +1 -1
- package/webhook.d.ts +2 -0
- package/webhook.js +12 -10
- package/webhook.js.map +1 -1
package/oauthClient.js
CHANGED
|
@@ -23,6 +23,8 @@ const utilities = require("./utilities");
|
|
|
23
23
|
*
|
|
24
24
|
* ## Import
|
|
25
25
|
*
|
|
26
|
+
* The `pulumi import` command can be used, for example:
|
|
27
|
+
*
|
|
26
28
|
* Note: Sensitive fields such as the secret key are not returned by the API and will be unset in the Terraform state after import.
|
|
27
29
|
*
|
|
28
30
|
* ```sh
|
|
@@ -40,7 +42,7 @@ class OauthClient extends pulumi.CustomResource {
|
|
|
40
42
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
43
|
*/
|
|
42
44
|
static get(name, id, state, opts) {
|
|
43
|
-
return new OauthClient(name, state,
|
|
45
|
+
return new OauthClient(name, state, { ...opts, id: id });
|
|
44
46
|
}
|
|
45
47
|
/**
|
|
46
48
|
* Returns true if the given object is an instance of OauthClient. This is designed to work even
|
|
@@ -57,21 +59,21 @@ class OauthClient extends pulumi.CustomResource {
|
|
|
57
59
|
opts = opts || {};
|
|
58
60
|
if (opts.id) {
|
|
59
61
|
const state = argsOrState;
|
|
60
|
-
resourceInputs["createdAt"] = state
|
|
61
|
-
resourceInputs["description"] = state
|
|
62
|
-
resourceInputs["key"] = state
|
|
63
|
-
resourceInputs["scopes"] = state
|
|
64
|
-
resourceInputs["tags"] = state
|
|
65
|
-
resourceInputs["userId"] = state
|
|
62
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
63
|
+
resourceInputs["description"] = state?.description;
|
|
64
|
+
resourceInputs["key"] = state?.key;
|
|
65
|
+
resourceInputs["scopes"] = state?.scopes;
|
|
66
|
+
resourceInputs["tags"] = state?.tags;
|
|
67
|
+
resourceInputs["userId"] = state?.userId;
|
|
66
68
|
}
|
|
67
69
|
else {
|
|
68
70
|
const args = argsOrState;
|
|
69
|
-
if (
|
|
71
|
+
if (args?.scopes === undefined && !opts.urn) {
|
|
70
72
|
throw new Error("Missing required property 'scopes'");
|
|
71
73
|
}
|
|
72
|
-
resourceInputs["description"] = args
|
|
73
|
-
resourceInputs["scopes"] = args
|
|
74
|
-
resourceInputs["tags"] = args
|
|
74
|
+
resourceInputs["description"] = args?.description;
|
|
75
|
+
resourceInputs["scopes"] = args?.scopes;
|
|
76
|
+
resourceInputs["tags"] = args?.tags;
|
|
75
77
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
76
78
|
resourceInputs["key"] = undefined /*out*/;
|
|
77
79
|
resourceInputs["userId"] = undefined /*out*/;
|
package/oauthClient.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauthClient.js","sourceRoot":"","sources":["../oauthClient.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"oauthClient.js","sourceRoot":"","sources":["../oauthClient.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IAC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AS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;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,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAxFL,kCAyFC;AA3EG,gBAAgB;AACO,wBAAY,GAAG,yCAAyC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/tailscale",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Tailscale cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "tailscale",
|
|
26
|
-
"version": "0.
|
|
26
|
+
"version": "0.22.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/postureIntegration.d.ts
CHANGED
package/postureIntegration.js
CHANGED
|
@@ -24,6 +24,8 @@ const utilities = require("./utilities");
|
|
|
24
24
|
*
|
|
25
25
|
* ## Import
|
|
26
26
|
*
|
|
27
|
+
* The `pulumi import` command can be used, for example:
|
|
28
|
+
*
|
|
27
29
|
* Posture integration can be imported using the posture integration id, e.g.,
|
|
28
30
|
*
|
|
29
31
|
* ```sh
|
|
@@ -41,7 +43,7 @@ class PostureIntegration extends pulumi.CustomResource {
|
|
|
41
43
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
44
|
*/
|
|
43
45
|
static get(name, id, state, opts) {
|
|
44
|
-
return new PostureIntegration(name, state,
|
|
46
|
+
return new PostureIntegration(name, state, { ...opts, id: id });
|
|
45
47
|
}
|
|
46
48
|
/**
|
|
47
49
|
* Returns true if the given object is an instance of PostureIntegration. This is designed to work even
|
|
@@ -58,25 +60,25 @@ class PostureIntegration extends pulumi.CustomResource {
|
|
|
58
60
|
opts = opts || {};
|
|
59
61
|
if (opts.id) {
|
|
60
62
|
const state = argsOrState;
|
|
61
|
-
resourceInputs["clientId"] = state
|
|
62
|
-
resourceInputs["clientSecret"] = state
|
|
63
|
-
resourceInputs["cloudId"] = state
|
|
64
|
-
resourceInputs["postureProvider"] = state
|
|
65
|
-
resourceInputs["tenantId"] = state
|
|
63
|
+
resourceInputs["clientId"] = state?.clientId;
|
|
64
|
+
resourceInputs["clientSecret"] = state?.clientSecret;
|
|
65
|
+
resourceInputs["cloudId"] = state?.cloudId;
|
|
66
|
+
resourceInputs["postureProvider"] = state?.postureProvider;
|
|
67
|
+
resourceInputs["tenantId"] = state?.tenantId;
|
|
66
68
|
}
|
|
67
69
|
else {
|
|
68
70
|
const args = argsOrState;
|
|
69
|
-
if (
|
|
71
|
+
if (args?.clientSecret === undefined && !opts.urn) {
|
|
70
72
|
throw new Error("Missing required property 'clientSecret'");
|
|
71
73
|
}
|
|
72
|
-
if (
|
|
74
|
+
if (args?.postureProvider === undefined && !opts.urn) {
|
|
73
75
|
throw new Error("Missing required property 'postureProvider'");
|
|
74
76
|
}
|
|
75
|
-
resourceInputs["clientId"] = args
|
|
76
|
-
resourceInputs["clientSecret"] = args
|
|
77
|
-
resourceInputs["cloudId"] = args
|
|
78
|
-
resourceInputs["postureProvider"] = args
|
|
79
|
-
resourceInputs["tenantId"] = args
|
|
77
|
+
resourceInputs["clientId"] = args?.clientId;
|
|
78
|
+
resourceInputs["clientSecret"] = args?.clientSecret;
|
|
79
|
+
resourceInputs["cloudId"] = args?.cloudId;
|
|
80
|
+
resourceInputs["postureProvider"] = args?.postureProvider;
|
|
81
|
+
resourceInputs["tenantId"] = args?.tenantId;
|
|
80
82
|
}
|
|
81
83
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
82
84
|
super(PostureIntegration.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postureIntegration.js","sourceRoot":"","sources":["../postureIntegration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"postureIntegration.js","sourceRoot":"","sources":["../postureIntegration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IA+BD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC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 -12,28 +12,23 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
12
12
|
*/
|
|
13
13
|
static isInstance(obj: any): obj is Provider;
|
|
14
14
|
/**
|
|
15
|
-
* The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable.
|
|
16
|
-
* Conflicts with 'oauth_client_id' and 'oauth_client_secret'.
|
|
15
|
+
* The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable. Conflicts with 'oauth_client_id' and 'oauth_client_secret'.
|
|
17
16
|
*/
|
|
18
17
|
readonly apiKey: pulumi.Output<string | undefined>;
|
|
19
18
|
/**
|
|
20
|
-
* The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL
|
|
21
|
-
* environment variable.
|
|
19
|
+
* The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL environment variable.
|
|
22
20
|
*/
|
|
23
21
|
readonly baseUrl: pulumi.Output<string | undefined>;
|
|
24
22
|
/**
|
|
25
|
-
* The OAuth application's ID when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_ID environment
|
|
26
|
-
* variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
23
|
+
* The OAuth application's ID when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_ID environment variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
27
24
|
*/
|
|
28
25
|
readonly oauthClientId: pulumi.Output<string | undefined>;
|
|
29
26
|
/**
|
|
30
|
-
* The OAuth application's secret when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_SECRET
|
|
31
|
-
* environment variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
27
|
+
* The OAuth application's secret when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_SECRET environment variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
32
28
|
*/
|
|
33
29
|
readonly oauthClientSecret: pulumi.Output<string | undefined>;
|
|
34
30
|
/**
|
|
35
|
-
* The organization name of the Tailnet in which to perform actions. Can be set via the TAILSCALE_TAILNET environment
|
|
36
|
-
* variable. Default is the tailnet that owns API credentials passed to the provider.
|
|
31
|
+
* The organization name of the Tailnet in which to perform actions. Can be set via the TAILSCALE_TAILNET environment variable. Default is the tailnet that owns API credentials passed to the provider.
|
|
37
32
|
*/
|
|
38
33
|
readonly tailnet: pulumi.Output<string | undefined>;
|
|
39
34
|
/**
|
|
@@ -58,34 +53,27 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
58
53
|
*/
|
|
59
54
|
export interface ProviderArgs {
|
|
60
55
|
/**
|
|
61
|
-
* The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable.
|
|
62
|
-
* Conflicts with 'oauth_client_id' and 'oauth_client_secret'.
|
|
56
|
+
* The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable. Conflicts with 'oauth_client_id' and 'oauth_client_secret'.
|
|
63
57
|
*/
|
|
64
58
|
apiKey?: pulumi.Input<string>;
|
|
65
59
|
/**
|
|
66
|
-
* The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL
|
|
67
|
-
* environment variable.
|
|
60
|
+
* The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL environment variable.
|
|
68
61
|
*/
|
|
69
62
|
baseUrl?: pulumi.Input<string>;
|
|
70
63
|
/**
|
|
71
|
-
* The OAuth application's ID when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_ID environment
|
|
72
|
-
* variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
64
|
+
* The OAuth application's ID when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_ID environment variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
73
65
|
*/
|
|
74
66
|
oauthClientId?: pulumi.Input<string>;
|
|
75
67
|
/**
|
|
76
|
-
* The OAuth application's secret when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_SECRET
|
|
77
|
-
* environment variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
68
|
+
* The OAuth application's secret when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_SECRET environment variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
78
69
|
*/
|
|
79
70
|
oauthClientSecret?: pulumi.Input<string>;
|
|
80
71
|
/**
|
|
81
|
-
* The OAuth 2.0 scopes to request when for the access token generated using the supplied OAuth client credentials. See
|
|
82
|
-
* https://tailscale.com/kb/1215/oauth-clients/#scopes for available scopes. Only valid when both 'oauth_client_id' and
|
|
83
|
-
* 'oauth_client_secret' are set.
|
|
72
|
+
* The OAuth 2.0 scopes to request when for the access token generated using the supplied OAuth client credentials. See https://tailscale.com/kb/1215/oauth-clients/#scopes for available scopes. Only valid when both 'oauth_client_id' and 'oauth_client_secret' are set.
|
|
84
73
|
*/
|
|
85
74
|
scopes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
86
75
|
/**
|
|
87
|
-
* The organization name of the Tailnet in which to perform actions. Can be set via the TAILSCALE_TAILNET environment
|
|
88
|
-
* variable. Default is the tailnet that owns API credentials passed to the provider.
|
|
76
|
+
* The organization name of the Tailnet in which to perform actions. Can be set via the TAILSCALE_TAILNET environment variable. Default is the tailnet that owns API credentials passed to the provider.
|
|
89
77
|
*/
|
|
90
78
|
tailnet?: pulumi.Input<string>;
|
|
91
79
|
/**
|
package/provider.js
CHANGED
|
@@ -33,13 +33,13 @@ class Provider extends pulumi.ProviderResource {
|
|
|
33
33
|
let resourceInputs = {};
|
|
34
34
|
opts = opts || {};
|
|
35
35
|
{
|
|
36
|
-
resourceInputs["apiKey"] =
|
|
37
|
-
resourceInputs["baseUrl"] = args
|
|
38
|
-
resourceInputs["oauthClientId"] = args
|
|
39
|
-
resourceInputs["oauthClientSecret"] =
|
|
40
|
-
resourceInputs["scopes"] = pulumi.output(args
|
|
41
|
-
resourceInputs["tailnet"] = args
|
|
42
|
-
resourceInputs["userAgent"] = args
|
|
36
|
+
resourceInputs["apiKey"] = args?.apiKey ? pulumi.secret(args.apiKey) : undefined;
|
|
37
|
+
resourceInputs["baseUrl"] = args?.baseUrl;
|
|
38
|
+
resourceInputs["oauthClientId"] = args?.oauthClientId;
|
|
39
|
+
resourceInputs["oauthClientSecret"] = args?.oauthClientSecret ? pulumi.secret(args.oauthClientSecret) : undefined;
|
|
40
|
+
resourceInputs["scopes"] = pulumi.output(args?.scopes).apply(JSON.stringify);
|
|
41
|
+
resourceInputs["tailnet"] = args?.tailnet;
|
|
42
|
+
resourceInputs["userAgent"] = args?.userAgent;
|
|
43
43
|
}
|
|
44
44
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
45
45
|
const secretOpts = { additionalSecretOutputs: ["apiKey", "oauthClientSecret"] };
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,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,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../prov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GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,QAAQ,EAAE,mBAAmB,CAAC,EAAE,CAAC;QAChF,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;IAED;;OAEG;IACH,eAAe;QACX,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE;YACrE,UAAU,EAAE,IAAI;SACnB,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;;AAxEL,4BAyEC;AAxEG,gBAAgB;AACO,qBAAY,GAAG,WAAW,CAAC"}
|
package/tailnetKey.js
CHANGED
|
@@ -46,7 +46,7 @@ class TailnetKey extends pulumi.CustomResource {
|
|
|
46
46
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
47
|
*/
|
|
48
48
|
static get(name, id, state, opts) {
|
|
49
|
-
return new TailnetKey(name, state,
|
|
49
|
+
return new TailnetKey(name, state, { ...opts, id: id });
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Returns true if the given object is an instance of TailnetKey. This is designed to work even
|
|
@@ -63,29 +63,29 @@ class TailnetKey extends pulumi.CustomResource {
|
|
|
63
63
|
opts = opts || {};
|
|
64
64
|
if (opts.id) {
|
|
65
65
|
const state = argsOrState;
|
|
66
|
-
resourceInputs["createdAt"] = state
|
|
67
|
-
resourceInputs["description"] = state
|
|
68
|
-
resourceInputs["ephemeral"] = state
|
|
69
|
-
resourceInputs["expiresAt"] = state
|
|
70
|
-
resourceInputs["expiry"] = state
|
|
71
|
-
resourceInputs["invalid"] = state
|
|
72
|
-
resourceInputs["key"] = state
|
|
73
|
-
resourceInputs["preauthorized"] = state
|
|
74
|
-
resourceInputs["recreateIfInvalid"] = state
|
|
75
|
-
resourceInputs["reusable"] = state
|
|
76
|
-
resourceInputs["tags"] = state
|
|
77
|
-
resourceInputs["userId"] = state
|
|
66
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
67
|
+
resourceInputs["description"] = state?.description;
|
|
68
|
+
resourceInputs["ephemeral"] = state?.ephemeral;
|
|
69
|
+
resourceInputs["expiresAt"] = state?.expiresAt;
|
|
70
|
+
resourceInputs["expiry"] = state?.expiry;
|
|
71
|
+
resourceInputs["invalid"] = state?.invalid;
|
|
72
|
+
resourceInputs["key"] = state?.key;
|
|
73
|
+
resourceInputs["preauthorized"] = state?.preauthorized;
|
|
74
|
+
resourceInputs["recreateIfInvalid"] = state?.recreateIfInvalid;
|
|
75
|
+
resourceInputs["reusable"] = state?.reusable;
|
|
76
|
+
resourceInputs["tags"] = state?.tags;
|
|
77
|
+
resourceInputs["userId"] = state?.userId;
|
|
78
78
|
}
|
|
79
79
|
else {
|
|
80
80
|
const args = argsOrState;
|
|
81
|
-
resourceInputs["description"] = args
|
|
82
|
-
resourceInputs["ephemeral"] = args
|
|
83
|
-
resourceInputs["expiry"] = args
|
|
84
|
-
resourceInputs["preauthorized"] = args
|
|
85
|
-
resourceInputs["recreateIfInvalid"] = args
|
|
86
|
-
resourceInputs["reusable"] = args
|
|
87
|
-
resourceInputs["tags"] = args
|
|
88
|
-
resourceInputs["userId"] = args
|
|
81
|
+
resourceInputs["description"] = args?.description;
|
|
82
|
+
resourceInputs["ephemeral"] = args?.ephemeral;
|
|
83
|
+
resourceInputs["expiry"] = args?.expiry;
|
|
84
|
+
resourceInputs["preauthorized"] = args?.preauthorized;
|
|
85
|
+
resourceInputs["recreateIfInvalid"] = args?.recreateIfInvalid;
|
|
86
|
+
resourceInputs["reusable"] = args?.reusable;
|
|
87
|
+
resourceInputs["tags"] = args?.tags;
|
|
88
|
+
resourceInputs["userId"] = args?.userId;
|
|
89
89
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
90
90
|
resourceInputs["expiresAt"] = undefined /*out*/;
|
|
91
91
|
resourceInputs["invalid"] = undefined /*out*/;
|
package/tailnetKey.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailnetKey.js","sourceRoot":"","sources":["../tailnetKey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;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,
|
|
1
|
+
{"version":3,"file":"tailnetKey.js","sourceRoot":"","sources":["../tailnetKey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;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,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,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;IA2DD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG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iB,CAAC;YAC9D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,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;;AAzHL,gCA0HC;AA5GG,gBAAgB;AACO,uBAAY,GAAG,uCAAuC,CAAC"}
|
package/tailnetSettings.d.ts
CHANGED
package/tailnetSettings.js
CHANGED
|
@@ -28,6 +28,8 @@ const utilities = require("./utilities");
|
|
|
28
28
|
*
|
|
29
29
|
* ## Import
|
|
30
30
|
*
|
|
31
|
+
* The `pulumi import` command can be used, for example:
|
|
32
|
+
*
|
|
31
33
|
* ID doesn't matter.
|
|
32
34
|
*
|
|
33
35
|
* ```sh
|
|
@@ -45,7 +47,7 @@ class TailnetSettings extends pulumi.CustomResource {
|
|
|
45
47
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
48
|
*/
|
|
47
49
|
static get(name, id, state, opts) {
|
|
48
|
-
return new TailnetSettings(name, state,
|
|
50
|
+
return new TailnetSettings(name, state, { ...opts, id: id });
|
|
49
51
|
}
|
|
50
52
|
/**
|
|
51
53
|
* Returns true if the given object is an instance of TailnetSettings. This is designed to work even
|
|
@@ -62,29 +64,29 @@ class TailnetSettings extends pulumi.CustomResource {
|
|
|
62
64
|
opts = opts || {};
|
|
63
65
|
if (opts.id) {
|
|
64
66
|
const state = argsOrState;
|
|
65
|
-
resourceInputs["aclsExternalLink"] = state
|
|
66
|
-
resourceInputs["aclsExternallyManagedOn"] = state
|
|
67
|
-
resourceInputs["devicesApprovalOn"] = state
|
|
68
|
-
resourceInputs["devicesAutoUpdatesOn"] = state
|
|
69
|
-
resourceInputs["devicesKeyDurationDays"] = state
|
|
70
|
-
resourceInputs["networkFlowLoggingOn"] = state
|
|
71
|
-
resourceInputs["postureIdentityCollectionOn"] = state
|
|
72
|
-
resourceInputs["regionalRoutingOn"] = state
|
|
73
|
-
resourceInputs["usersApprovalOn"] = state
|
|
74
|
-
resourceInputs["usersRoleAllowedToJoinExternalTailnet"] = state
|
|
67
|
+
resourceInputs["aclsExternalLink"] = state?.aclsExternalLink;
|
|
68
|
+
resourceInputs["aclsExternallyManagedOn"] = state?.aclsExternallyManagedOn;
|
|
69
|
+
resourceInputs["devicesApprovalOn"] = state?.devicesApprovalOn;
|
|
70
|
+
resourceInputs["devicesAutoUpdatesOn"] = state?.devicesAutoUpdatesOn;
|
|
71
|
+
resourceInputs["devicesKeyDurationDays"] = state?.devicesKeyDurationDays;
|
|
72
|
+
resourceInputs["networkFlowLoggingOn"] = state?.networkFlowLoggingOn;
|
|
73
|
+
resourceInputs["postureIdentityCollectionOn"] = state?.postureIdentityCollectionOn;
|
|
74
|
+
resourceInputs["regionalRoutingOn"] = state?.regionalRoutingOn;
|
|
75
|
+
resourceInputs["usersApprovalOn"] = state?.usersApprovalOn;
|
|
76
|
+
resourceInputs["usersRoleAllowedToJoinExternalTailnet"] = state?.usersRoleAllowedToJoinExternalTailnet;
|
|
75
77
|
}
|
|
76
78
|
else {
|
|
77
79
|
const args = argsOrState;
|
|
78
|
-
resourceInputs["aclsExternalLink"] = args
|
|
79
|
-
resourceInputs["aclsExternallyManagedOn"] = args
|
|
80
|
-
resourceInputs["devicesApprovalOn"] = args
|
|
81
|
-
resourceInputs["devicesAutoUpdatesOn"] = args
|
|
82
|
-
resourceInputs["devicesKeyDurationDays"] = args
|
|
83
|
-
resourceInputs["networkFlowLoggingOn"] = args
|
|
84
|
-
resourceInputs["postureIdentityCollectionOn"] = args
|
|
85
|
-
resourceInputs["regionalRoutingOn"] = args
|
|
86
|
-
resourceInputs["usersApprovalOn"] = args
|
|
87
|
-
resourceInputs["usersRoleAllowedToJoinExternalTailnet"] = args
|
|
80
|
+
resourceInputs["aclsExternalLink"] = args?.aclsExternalLink;
|
|
81
|
+
resourceInputs["aclsExternallyManagedOn"] = args?.aclsExternallyManagedOn;
|
|
82
|
+
resourceInputs["devicesApprovalOn"] = args?.devicesApprovalOn;
|
|
83
|
+
resourceInputs["devicesAutoUpdatesOn"] = args?.devicesAutoUpdatesOn;
|
|
84
|
+
resourceInputs["devicesKeyDurationDays"] = args?.devicesKeyDurationDays;
|
|
85
|
+
resourceInputs["networkFlowLoggingOn"] = args?.networkFlowLoggingOn;
|
|
86
|
+
resourceInputs["postureIdentityCollectionOn"] = args?.postureIdentityCollectionOn;
|
|
87
|
+
resourceInputs["regionalRoutingOn"] = args?.regionalRoutingOn;
|
|
88
|
+
resourceInputs["usersApprovalOn"] = args?.usersApprovalOn;
|
|
89
|
+
resourceInputs["usersRoleAllowedToJoinExternalTailnet"] = args?.usersRoleAllowedToJoinExternalTailnet;
|
|
88
90
|
}
|
|
89
91
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
90
92
|
super(TailnetSettings.__pulumiType, name, resourceInputs, opts);
|
package/tailnetSettings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailnetSettings.js","sourceRoot":"","sources":["../tailnetSettings.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"tailnetSettings.js","sourceRoot":"","sources":["../tailnetSettings.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAgDD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,gBAAgB,CAAC;YAC7D,cAAc,CAAC,yBAAyB,CAAC,GAAG,KAAK,EAAE,uBAAuB,CAAC;YAC3E,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,EAAE,iBAAiB,CAAC;YAC/D,cAAc,CAAC,sBAAsB,CAAC,GAAG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AAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAxGL,0CAyGC;AA3FG,gBAAgB;AACO,4BAAY,GAAG,iDAAiD,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
2
3
|
export interface ContactsAccount {
|
|
3
4
|
/**
|
|
4
5
|
* Email address to send communications to
|
|
@@ -17,3 +18,33 @@ export interface ContactsSupport {
|
|
|
17
18
|
*/
|
|
18
19
|
email: pulumi.Input<string>;
|
|
19
20
|
}
|
|
21
|
+
export interface DnsConfigurationNameserver {
|
|
22
|
+
/**
|
|
23
|
+
* The nameserver's IPv4 or IPv6 address
|
|
24
|
+
*/
|
|
25
|
+
address: pulumi.Input<string>;
|
|
26
|
+
/**
|
|
27
|
+
* This nameserver will continue to be used when an exit node is selected (requires Tailscale v1.88.1 or later). Defaults to false.
|
|
28
|
+
*/
|
|
29
|
+
useWithExitNode?: pulumi.Input<boolean>;
|
|
30
|
+
}
|
|
31
|
+
export interface DnsConfigurationSplitDn {
|
|
32
|
+
/**
|
|
33
|
+
* The nameservers will be used only for this domain.
|
|
34
|
+
*/
|
|
35
|
+
domain: pulumi.Input<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Set the nameservers used by devices on your network to resolve DNS queries.
|
|
38
|
+
*/
|
|
39
|
+
nameservers: pulumi.Input<pulumi.Input<inputs.DnsConfigurationSplitDnNameserver>[]>;
|
|
40
|
+
}
|
|
41
|
+
export interface DnsConfigurationSplitDnNameserver {
|
|
42
|
+
/**
|
|
43
|
+
* The nameserver's IPv4 or IPv6 address.
|
|
44
|
+
*/
|
|
45
|
+
address: pulumi.Input<string>;
|
|
46
|
+
/**
|
|
47
|
+
* This nameserver will continue to be used when an exit node is selected (requires Tailscale v1.88.1 or later). Defaults to false.
|
|
48
|
+
*/
|
|
49
|
+
useWithExitNode?: pulumi.Input<boolean>;
|
|
50
|
+
}
|
package/types/output.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as outputs from "../types/output";
|
|
1
2
|
export interface ContactsAccount {
|
|
2
3
|
/**
|
|
3
4
|
* Email address to send communications to
|
|
@@ -16,6 +17,36 @@ export interface ContactsSupport {
|
|
|
16
17
|
*/
|
|
17
18
|
email: string;
|
|
18
19
|
}
|
|
20
|
+
export interface DnsConfigurationNameserver {
|
|
21
|
+
/**
|
|
22
|
+
* The nameserver's IPv4 or IPv6 address
|
|
23
|
+
*/
|
|
24
|
+
address: string;
|
|
25
|
+
/**
|
|
26
|
+
* This nameserver will continue to be used when an exit node is selected (requires Tailscale v1.88.1 or later). Defaults to false.
|
|
27
|
+
*/
|
|
28
|
+
useWithExitNode?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface DnsConfigurationSplitDn {
|
|
31
|
+
/**
|
|
32
|
+
* The nameservers will be used only for this domain.
|
|
33
|
+
*/
|
|
34
|
+
domain: string;
|
|
35
|
+
/**
|
|
36
|
+
* Set the nameservers used by devices on your network to resolve DNS queries.
|
|
37
|
+
*/
|
|
38
|
+
nameservers: outputs.DnsConfigurationSplitDnNameserver[];
|
|
39
|
+
}
|
|
40
|
+
export interface DnsConfigurationSplitDnNameserver {
|
|
41
|
+
/**
|
|
42
|
+
* The nameserver's IPv4 or IPv6 address.
|
|
43
|
+
*/
|
|
44
|
+
address: string;
|
|
45
|
+
/**
|
|
46
|
+
* This nameserver will continue to be used when an exit node is selected (requires Tailscale v1.88.1 or later). Defaults to false.
|
|
47
|
+
*/
|
|
48
|
+
useWithExitNode?: boolean;
|
|
49
|
+
}
|
|
19
50
|
export interface GetDevicesDevice {
|
|
20
51
|
/**
|
|
21
52
|
* The list of device's IPs
|
package/utilities.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
5
|
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
6
|
const runtime = require("@pulumi/pulumi/runtime");
|
|
@@ -77,26 +68,24 @@ function lazyLoad(exports, props, loadModule) {
|
|
|
77
68
|
}
|
|
78
69
|
exports.lazyLoad = lazyLoad;
|
|
79
70
|
/** @internal */
|
|
80
|
-
function callAsync(tok, props, res, opts) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
return value;
|
|
99
|
-
});
|
|
71
|
+
async function callAsync(tok, props, res, opts) {
|
|
72
|
+
const o = runtime.call(tok, props, res);
|
|
73
|
+
const value = await o.promise(true /*withUnknowns*/);
|
|
74
|
+
const isKnown = await o.isKnown;
|
|
75
|
+
const isSecret = await o.isSecret;
|
|
76
|
+
const problem = !isKnown ? "an unknown value"
|
|
77
|
+
: isSecret ? "a secret value"
|
|
78
|
+
: undefined;
|
|
79
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
80
|
+
if (problem) {
|
|
81
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
82
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
83
|
+
}
|
|
84
|
+
// Extract a single property if requested.
|
|
85
|
+
if (opts && opts.property) {
|
|
86
|
+
return value[opts.property];
|
|
87
|
+
}
|
|
88
|
+
return value;
|
|
100
89
|
}
|
|
101
90
|
exports.callAsync = callAsync;
|
|
102
91
|
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGjF,kDAAkD;AAGlD,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,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,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