Skip to content

Commit

Permalink
Merge pull request #186 from Twingate/upgrade-terraform-provider-twin…
Browse files Browse the repository at this point in the history
…gate-to-v3.0.14

Upgrade terraform-provider-twingate to v3.0.14
  • Loading branch information
twingate-blee authored Dec 12, 2024
2 parents cc92ea4 + 89ba005 commit 75bc837
Show file tree
Hide file tree
Showing 16 changed files with 196 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .pulumi-java-gen.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.18.0
0.19.0
29 changes: 26 additions & 3 deletions provider/cmd/pulumi-resource-twingate/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -669,12 +669,17 @@
"name": {
"type": "string",
"description": "The name of the Remote Network.\n"
},
"type": {
"type": "string",
"description": "The type of the Remote Network. Must be one of the following: REGULAR, EXIT.\n"
}
},
"type": "object",
"required": [
"id",
"location"
"location",
"type"
],
"language": {
"nodejs": {
Expand Down Expand Up @@ -1423,11 +1428,16 @@
"name": {
"type": "string",
"description": "The name of the Remote Network\n"
},
"type": {
"type": "string",
"description": "The type of the Remote Network. Must be one of the following: REGULAR, EXIT. Defaults to REGULAR.\n"
}
},
"required": [
"location",
"name"
"name",
"type"
],
"inputProperties": {
"location": {
Expand All @@ -1437,6 +1447,10 @@
"name": {
"type": "string",
"description": "The name of the Remote Network\n"
},
"type": {
"type": "string",
"description": "The type of the Remote Network. Must be one of the following: REGULAR, EXIT. Defaults to REGULAR.\n"
}
},
"stateInputs": {
Expand All @@ -1449,6 +1463,10 @@
"name": {
"type": "string",
"description": "The name of the Remote Network\n"
},
"type": {
"type": "string",
"description": "The type of the Remote Network. Must be one of the following: REGULAR, EXIT. Defaults to REGULAR.\n"
}
},
"type": "object"
Expand Down Expand Up @@ -2272,11 +2290,16 @@
"name": {
"type": "string",
"description": "The name of the Remote Network\n"
},
"type": {
"type": "string",
"description": "The type of the Remote Network. Must be one of the following: REGULAR, EXIT.\n"
}
},
"type": "object",
"required": [
"location"
"location",
"type"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.23
toolchain go1.23.4

require (
github.com/Twingate/terraform-provider-twingate/v3 v3.0.13
github.com/Twingate/terraform-provider-twingate/v3 v3.0.14
github.com/pulumi/pulumi-terraform-bridge/pf v0.48.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0
github.com/pulumi/pulumi/sdk/v3 v3.142.0
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/ProtonMail/go-crypto v1.1.0-alpha.5-proton h1:KVBEgU3CJpmzLChnLiSuEyCuhGhcMt3eOST+7A+ckto=
github.com/ProtonMail/go-crypto v1.1.0-alpha.5-proton/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE=
github.com/Twingate/terraform-provider-twingate/v3 v3.0.13 h1:2ZIiGhZZi7/77oGB+nlS7ou8Weh6hxanXrqYWwBPE68=
github.com/Twingate/terraform-provider-twingate/v3 v3.0.13/go.mod h1:NWJlwIPeYs+i5Jif+tjAhAERn7ckoWrLl8fEPsXfDbM=
github.com/Twingate/terraform-provider-twingate/v3 v3.0.14 h1:WfQFxaHJJZj818sVhhlJr2NOp2Gvh8w0Aa/8anXdGHo=
github.com/Twingate/terraform-provider-twingate/v3 v3.0.14/go.mod h1:F9v87u1MyxMMp0J1Uinfq/iR1/JxIuIbHUEcNefjCdU=
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da h1:KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY=
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da/go.mod h1:eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA=
github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo=
Expand Down
9 changes: 8 additions & 1 deletion sdk/dotnet/GetTwingateRemoteNetwork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,25 @@ public sealed class GetTwingateRemoteNetworkResult
/// The name of the Remote Network
/// </summary>
public readonly string? Name;
/// <summary>
/// The type of the Remote Network. Must be one of the following: REGULAR, EXIT.
/// </summary>
public readonly string Type;

[OutputConstructor]
private GetTwingateRemoteNetworkResult(
string? id,

string location,

string? name)
string? name,

string type)
{
Id = id;
Location = location;
Name = name;
Type = type;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,25 @@ public sealed class GetTwingateRemoteNetworksRemoteNetworkResult
/// The name of the Remote Network.
/// </summary>
public readonly string? Name;
/// <summary>
/// The type of the Remote Network. Must be one of the following: REGULAR, EXIT.
/// </summary>
public readonly string Type;

[OutputConstructor]
private GetTwingateRemoteNetworksRemoteNetworkResult(
string id,

string location,

string? name)
string? name,

string type)
{
Id = id;
Location = location;
Name = name;
Type = type;
}
}
}
18 changes: 18 additions & 0 deletions sdk/dotnet/TwingateRemoteNetwork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ public partial class TwingateRemoteNetwork : global::Pulumi.CustomResource
[Output("name")]
public Output<string> Name { get; private set; } = null!;

/// <summary>
/// The type of the Remote Network. Must be one of the following: REGULAR, EXIT. Defaults to REGULAR.
/// </summary>
[Output("type")]
public Output<string> Type { get; private set; } = null!;


/// <summary>
/// Create a TwingateRemoteNetwork resource with the given unique name, arguments, and options.
Expand Down Expand Up @@ -108,6 +114,12 @@ public sealed class TwingateRemoteNetworkArgs : global::Pulumi.ResourceArgs
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// The type of the Remote Network. Must be one of the following: REGULAR, EXIT. Defaults to REGULAR.
/// </summary>
[Input("type")]
public Input<string>? Type { get; set; }

public TwingateRemoteNetworkArgs()
{
}
Expand All @@ -128,6 +140,12 @@ public sealed class TwingateRemoteNetworkState : global::Pulumi.ResourceArgs
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// The type of the Remote Network. Must be one of the following: REGULAR, EXIT. Defaults to REGULAR.
/// </summary>
[Input("type")]
public Input<string>? Type { get; set; }

public TwingateRemoteNetworkState()
{
}
Expand Down
7 changes: 7 additions & 0 deletions sdk/go/twingate/getTwingateRemoteNetwork.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions sdk/go/twingate/pulumiTypes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions sdk/go/twingate/twingateRemoteNetwork.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions sdk/nodejs/getTwingateRemoteNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export interface GetTwingateRemoteNetworkResult {
* The name of the Remote Network
*/
readonly name?: string;
/**
* The type of the Remote Network. Must be one of the following: REGULAR, EXIT.
*/
readonly type: string;
}
/**
* A Remote Network represents a single private network in Twingate that can have one or more Connectors and Resources assigned to it. You must create a Remote Network before creating Resources and Connectors that belong to it. For more information, see Twingate's [documentation](https://docs.twingate.com/docs/remote-networks).
Expand Down
14 changes: 14 additions & 0 deletions sdk/nodejs/twingateRemoteNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ export class TwingateRemoteNetwork extends pulumi.CustomResource {
* The name of the Remote Network
*/
public readonly name!: pulumi.Output<string>;
/**
* The type of the Remote Network. Must be one of the following: REGULAR, EXIT. Defaults to REGULAR.
*/
public readonly type!: pulumi.Output<string>;

/**
* Create a TwingateRemoteNetwork resource with the given unique name, arguments, and options.
Expand All @@ -74,10 +78,12 @@ export class TwingateRemoteNetwork extends pulumi.CustomResource {
const state = argsOrState as TwingateRemoteNetworkState | undefined;
resourceInputs["location"] = state ? state.location : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["type"] = state ? state.type : undefined;
} else {
const args = argsOrState as TwingateRemoteNetworkArgs | undefined;
resourceInputs["location"] = args ? args.location : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["type"] = args ? args.type : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(TwingateRemoteNetwork.__pulumiType, name, resourceInputs, opts);
Expand All @@ -96,6 +102,10 @@ export interface TwingateRemoteNetworkState {
* The name of the Remote Network
*/
name?: pulumi.Input<string>;
/**
* The type of the Remote Network. Must be one of the following: REGULAR, EXIT. Defaults to REGULAR.
*/
type?: pulumi.Input<string>;
}

/**
Expand All @@ -110,4 +120,8 @@ export interface TwingateRemoteNetworkArgs {
* The name of the Remote Network
*/
name?: pulumi.Input<string>;
/**
* The type of the Remote Network. Must be one of the following: REGULAR, EXIT. Defaults to REGULAR.
*/
type?: pulumi.Input<string>;
}
4 changes: 4 additions & 0 deletions sdk/nodejs/types/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ export interface GetTwingateRemoteNetworksRemoteNetwork {
* The name of the Remote Network.
*/
name?: string;
/**
* The type of the Remote Network. Must be one of the following: REGULAR, EXIT.
*/
type: string;
}

export interface GetTwingateResourceProtocols {
Expand Down
Loading

0 comments on commit 75bc837

Please sign in to comment.