@pulumi/tailscale 0.12.1-alpha.1679337352 → 0.12.1

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/config/vars.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable.
3
+ * Conflicts with 'oauth_client_id' and 'oauth_client_secret'.
3
4
  */
4
5
  export declare const apiKey: string | undefined;
5
6
  /**
@@ -7,6 +8,22 @@ export declare const apiKey: string | undefined;
7
8
  * environment variable.
8
9
  */
9
10
  export declare const baseUrl: string | undefined;
11
+ /**
12
+ * The OAuth application's ID when using OAuth client credentials. Can be set via the OAUTH_CLIENT_ID environment variable.
13
+ * Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
14
+ */
15
+ export declare const oauthClientId: string | undefined;
16
+ /**
17
+ * The OAuth application's secret when using OAuth client credentials. Can be set via the OAUTH_CLIENT_SECRET environment
18
+ * variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
19
+ */
20
+ export declare const oauthClientSecret: string | undefined;
21
+ /**
22
+ * The OAuth 2.0 scopes to request when for the access token generated using the supplied OAuth client credentials. See
23
+ * https://tailscale.com/kb/1215/oauth-clients/#scopes for avialable scopes. Only valid when both 'oauth_client_id' and
24
+ * 'oauth_client_secret' are set.
25
+ */
26
+ export declare const scopes: string[] | undefined;
10
27
  /**
11
28
  * The Tailnet to perform actions in. Can be set via the TAILSCALE_TAILNET environment variable.
12
29
  */
package/config/vars.js CHANGED
@@ -16,6 +16,24 @@ Object.defineProperty(exports, "baseUrl", {
16
16
  },
17
17
  enumerable: true,
18
18
  });
19
+ Object.defineProperty(exports, "oauthClientId", {
20
+ get() {
21
+ return __config.get("oauthClientId");
22
+ },
23
+ enumerable: true,
24
+ });
25
+ Object.defineProperty(exports, "oauthClientSecret", {
26
+ get() {
27
+ return __config.get("oauthClientSecret");
28
+ },
29
+ enumerable: true,
30
+ });
31
+ Object.defineProperty(exports, "scopes", {
32
+ get() {
33
+ return __config.getObject("scopes");
34
+ },
35
+ enumerable: true,
36
+ });
19
37
  Object.defineProperty(exports, "tailnet", {
20
38
  get() {
21
39
  return __config.get("tailnet");
@@ -1 +1 @@
1
- {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAMhD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
1
+ {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAOhD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE;IAC5C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACzC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,mBAAmB,EAAE;IAChD,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IAC7C,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAQH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAW,QAAQ,CAAC,CAAC;IAClD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/tailscale",
3
- "version": "v0.12.1-alpha.1679337352+ab10f0f4",
3
+ "version": "v0.12.1",
4
4
  "description": "A Pulumi package for creating and managing Tailscale 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.12.1-alpha.1679337352+ab10f0f4"
14
+ "install": "node scripts/install-pulumi-plugin.js resource tailscale v0.12.1"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/tailscale",
3
- "version": "v0.12.1-alpha.1679337352+ab10f0f4",
3
+ "version": "v0.12.1",
4
4
  "description": "A Pulumi package for creating and managing Tailscale 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.12.1-alpha.1679337352+ab10f0f4"
14
+ "install": "node scripts/install-pulumi-plugin.js resource tailscale v0.12.1"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/provider.d.ts CHANGED
@@ -13,6 +13,7 @@ export declare class Provider extends pulumi.ProviderResource {
13
13
  static isInstance(obj: any): obj is Provider;
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
+ * Conflicts with 'oauth_client_id' and 'oauth_client_secret'.
16
17
  */
17
18
  readonly apiKey: pulumi.Output<string | undefined>;
18
19
  /**
@@ -20,6 +21,16 @@ export declare class Provider extends pulumi.ProviderResource {
20
21
  * environment variable.
21
22
  */
22
23
  readonly baseUrl: pulumi.Output<string | undefined>;
24
+ /**
25
+ * The OAuth application's ID when using OAuth client credentials. Can be set via the OAUTH_CLIENT_ID environment variable.
26
+ * Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
27
+ */
28
+ readonly oauthClientId: pulumi.Output<string | undefined>;
29
+ /**
30
+ * The OAuth application's secret when using OAuth client credentials. Can be set via the OAUTH_CLIENT_SECRET environment
31
+ * variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
32
+ */
33
+ readonly oauthClientSecret: pulumi.Output<string | undefined>;
23
34
  /**
24
35
  * The Tailnet to perform actions in. Can be set via the TAILSCALE_TAILNET environment variable.
25
36
  */
@@ -39,6 +50,7 @@ export declare class Provider extends pulumi.ProviderResource {
39
50
  export interface ProviderArgs {
40
51
  /**
41
52
  * The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable.
53
+ * Conflicts with 'oauth_client_id' and 'oauth_client_secret'.
42
54
  */
43
55
  apiKey?: pulumi.Input<string>;
44
56
  /**
@@ -46,6 +58,22 @@ export interface ProviderArgs {
46
58
  * environment variable.
47
59
  */
48
60
  baseUrl?: pulumi.Input<string>;
61
+ /**
62
+ * The OAuth application's ID when using OAuth client credentials. Can be set via the OAUTH_CLIENT_ID environment variable.
63
+ * Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
64
+ */
65
+ oauthClientId?: pulumi.Input<string>;
66
+ /**
67
+ * The OAuth application's secret when using OAuth client credentials. Can be set via the OAUTH_CLIENT_SECRET environment
68
+ * variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
69
+ */
70
+ oauthClientSecret?: pulumi.Input<string>;
71
+ /**
72
+ * The OAuth 2.0 scopes to request when for the access token generated using the supplied OAuth client credentials. See
73
+ * https://tailscale.com/kb/1215/oauth-clients/#scopes for avialable scopes. Only valid when both 'oauth_client_id' and
74
+ * 'oauth_client_secret' are set.
75
+ */
76
+ scopes?: pulumi.Input<pulumi.Input<string>[]>;
49
77
  /**
50
78
  * The Tailnet to perform actions in. Can be set via the TAILSCALE_TAILNET environment variable.
51
79
  */
package/provider.js CHANGED
@@ -35,10 +35,13 @@ class Provider extends pulumi.ProviderResource {
35
35
  {
36
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
+ resourceInputs["oauthClientId"] = args ? args.oauthClientId : undefined;
39
+ resourceInputs["oauthClientSecret"] = (args === null || args === void 0 ? void 0 : args.oauthClientSecret) ? pulumi.secret(args.oauthClientSecret) : undefined;
40
+ resourceInputs["scopes"] = pulumi.output(args ? args.scopes : undefined).apply(JSON.stringify);
38
41
  resourceInputs["tailnet"] = args ? args.tailnet : undefined;
39
42
  }
40
43
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
41
- const secretOpts = { additionalSecretOutputs: ["apiKey"] };
44
+ const secretOpts = { additionalSecretOutputs: ["apiKey", "oauthClientSecret"] };
42
45
  opts = pulumi.mergeOptions(opts, secretOpts);
43
46
  super(Provider.__pulumiType, name, resourceInputs, opts);
44
47
  }
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,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAgBD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACjF,cAAc,CAAC,SAAS,CAAC,GAAG,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