Skip to content

Commit

Permalink
Update terraform-provider-tailscale to v0.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot committed Jun 11, 2022
1 parent 194b40b commit 5d76bfe
Show file tree
Hide file tree
Showing 14 changed files with 188 additions and 162 deletions.
28 changes: 14 additions & 14 deletions provider/cmd/pulumi-resource-tailscale/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
}
},
"tailscale:index/deviceKey:DeviceKey": {
"description": "The device_key resource allows you to update the properties of a device's key\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst exampleDevice = tailscale.getDevice({\n name: \"device.example.com\",\n});\nconst exampleKey = new tailscale.DeviceKey(\"exampleKey\", {\n deviceId: exampleDevice.then(exampleDevice =\u003e exampleDevice.id),\n preauthorized: true,\n keyExpiryDisabled: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nexample_device = tailscale.get_device(name=\"device.example.com\")\nexample_key = tailscale.DeviceKey(\"exampleKey\",\n device_id=example_device.id,\n preauthorized=True,\n key_expiry_disabled=True)\n```\n```csharp\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleDevice = Output.Create(Tailscale.GetDevice.InvokeAsync(new Tailscale.GetDeviceArgs\n {\n Name = \"device.example.com\",\n }));\n var exampleKey = new Tailscale.DeviceKey(\"exampleKey\", new Tailscale.DeviceKeyArgs\n {\n DeviceId = exampleDevice.Apply(exampleDevice =\u003e exampleDevice.Id),\n Preauthorized = true,\n KeyExpiryDisabled = true,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDevice, err := tailscale.GetDevice(ctx, \u0026GetDeviceArgs{\n\t\t\tName: \"device.example.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = tailscale.NewDeviceKey(ctx, \"exampleKey\", \u0026tailscale.DeviceKeyArgs{\n\t\t\tDeviceId: pulumi.String(exampleDevice.Id),\n\t\t\tPreauthorized: pulumi.Bool(true),\n\t\t\tKeyExpiryDisabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
"description": "The device_key resource allows you to update the properties of a device's key\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst exampleDevice = tailscale.getDevice({\n name: \"device.example.com\",\n});\nconst exampleKey = new tailscale.DeviceKey(\"exampleKey\", {\n deviceId: exampleDevice.then(exampleDevice =\u003e exampleDevice.id),\n keyExpiryDisabled: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nexample_device = tailscale.get_device(name=\"device.example.com\")\nexample_key = tailscale.DeviceKey(\"exampleKey\",\n device_id=example_device.id,\n key_expiry_disabled=True)\n```\n```csharp\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleDevice = Output.Create(Tailscale.GetDevice.InvokeAsync(new Tailscale.GetDeviceArgs\n {\n Name = \"device.example.com\",\n }));\n var exampleKey = new Tailscale.DeviceKey(\"exampleKey\", new Tailscale.DeviceKeyArgs\n {\n DeviceId = exampleDevice.Apply(exampleDevice =\u003e exampleDevice.Id),\n KeyExpiryDisabled = true,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleDevice, err := tailscale.GetDevice(ctx, \u0026GetDeviceArgs{\n\t\t\tName: \"device.example.com\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = tailscale.NewDeviceKey(ctx, \"exampleKey\", \u0026tailscale.DeviceKeyArgs{\n\t\t\tDeviceId: pulumi.String(exampleDevice.Id),\n\t\t\tKeyExpiryDisabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
"properties": {
"deviceId": {
"type": "string",
Expand All @@ -238,10 +238,6 @@
"keyExpiryDisabled": {
"type": "boolean",
"description": "Determines whether or not the device's key will expire\n"
},
"preauthorized": {
"type": "boolean",
"description": "Determines whether or not the device will be authorized for the tailnet by default.\n"
}
},
"required": [
Expand All @@ -255,10 +251,6 @@
"keyExpiryDisabled": {
"type": "boolean",
"description": "Determines whether or not the device's key will expire\n"
},
"preauthorized": {
"type": "boolean",
"description": "Determines whether or not the device will be authorized for the tailnet by default.\n"
}
},
"requiredInputs": [
Expand All @@ -274,10 +266,6 @@
"keyExpiryDisabled": {
"type": "boolean",
"description": "Determines whether or not the device's key will expire\n"
},
"preauthorized": {
"type": "boolean",
"description": "Determines whether or not the device will be authorized for the tailnet by default.\n"
}
},
"type": "object"
Expand Down Expand Up @@ -503,7 +491,7 @@
}
},
"tailscale:index/tailnetKey:TailnetKey": {
"description": "The tailnet_key resource allows you to create pre-authentication keys that can register new nodes without needing to sign in via a web browser. See https://tailscale.com/kb/1085/auth-keys for more information\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst sampleKey = new tailscale.TailnetKey(\"sample_key\", {\n ephemeral: false,\n reusable: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_key = tailscale.TailnetKey(\"sampleKey\",\n ephemeral=False,\n reusable=True)\n```\n```csharp\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var sampleKey = new Tailscale.TailnetKey(\"sampleKey\", new Tailscale.TailnetKeyArgs\n {\n Ephemeral = false,\n Reusable = true,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tailscale.NewTailnetKey(ctx, \"sampleKey\", \u0026tailscale.TailnetKeyArgs{\n\t\t\tEphemeral: pulumi.Bool(false),\n\t\t\tReusable: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
"description": "The tailnet_key resource allows you to create pre-authentication keys that can register new nodes without needing to sign in via a web browser. See https://tailscale.com/kb/1085/auth-keys for more information\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as tailscale from \"@pulumi/tailscale\";\n\nconst sampleKey = new tailscale.TailnetKey(\"sample_key\", {\n ephemeral: false,\n preauthorized: true,\n reusable: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_tailscale as tailscale\n\nsample_key = tailscale.TailnetKey(\"sampleKey\",\n ephemeral=False,\n preauthorized=True,\n reusable=True)\n```\n```csharp\nusing Pulumi;\nusing Tailscale = Pulumi.Tailscale;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var sampleKey = new Tailscale.TailnetKey(\"sampleKey\", new Tailscale.TailnetKeyArgs\n {\n Ephemeral = false,\n Preauthorized = true,\n Reusable = true,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tailscale.NewTailnetKey(ctx, \"sampleKey\", \u0026tailscale.TailnetKeyArgs{\n\t\t\tEphemeral: pulumi.Bool(false),\n\t\t\tPreauthorized: pulumi.Bool(true),\n\t\t\tReusable: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}",
"properties": {
"ephemeral": {
"type": "boolean",
Expand All @@ -513,6 +501,10 @@
"type": "string",
"description": "The authentication key\n"
},
"preauthorized": {
"type": "boolean",
"description": "Determines whether or not the machines authenticated by the key will be authorized for the tailnet by default.\n"
},
"reusable": {
"type": "boolean",
"description": "Indicates if the key is reusable or single-use.\n"
Expand All @@ -533,6 +525,10 @@
"type": "boolean",
"description": "Indicates if the key is ephemeral.\n"
},
"preauthorized": {
"type": "boolean",
"description": "Determines whether or not the machines authenticated by the key will be authorized for the tailnet by default.\n"
},
"reusable": {
"type": "boolean",
"description": "Indicates if the key is reusable or single-use.\n"
Expand All @@ -556,6 +552,10 @@
"type": "string",
"description": "The authentication key\n"
},
"preauthorized": {
"type": "boolean",
"description": "Determines whether or not the machines authenticated by the key will be authorized for the tailnet by default.\n"
},
"reusable": {
"type": "boolean",
"description": "Indicates if the key is reusable or single-use.\n"
Expand Down
2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ replace (
)

require (
github.com/davidsbond/terraform-provider-tailscale v0.10.2
github.com/davidsbond/terraform-provider-tailscale v0.11.1
github.com/hashicorp/terraform-plugin-sdk v1.9.1 // indirect
github.com/pulumi/pulumi-terraform-bridge/v3 v3.21.0
github.com/pulumi/pulumi/sdk/v3 v3.30.0
Expand Down
Loading

0 comments on commit 5d76bfe

Please sign in to comment.