Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Update to Twingate Terraform provider version v1.2.1 & update makefil…
Browse files Browse the repository at this point in the history
…e for NodeJs changes
  • Loading branch information
emrul committed Sep 20, 2023
1 parent 8e0d03a commit 6b4ed27
Show file tree
Hide file tree
Showing 63 changed files with 3,086 additions and 338 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ build_nodejs:: install_plugins tfgen # build the node sdk
cd sdk/nodejs/ && \
yarn install && \
yarn run tsc && \
cp -R scripts/ bin/ && \
cp ../../README.md ../../LICENSE package.json yarn.lock ./bin/ && \
sed -i.bak -e "s/\$${VERSION}/$(VERSION)/g" ./bin/package.json

Expand Down
6 changes: 5 additions & 1 deletion sdk/dotnet/GetTwingateUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public sealed class GetTwingateUserResult
public readonly bool IsAdmin;
public readonly string LastName;
public readonly string Role;
public readonly string Type;

[OutputConstructor]
private GetTwingateUserResult(
Expand All @@ -65,14 +66,17 @@ private GetTwingateUserResult(

string lastName,

string role)
string role,

string type)
{
Email = email;
FirstName = firstName;
Id = id;
IsAdmin = isAdmin;
LastName = lastName;
Role = role;
Type = type;
}
}
}
3 changes: 3 additions & 0 deletions sdk/dotnet/Inputs/GetTwingateUsersUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public sealed class GetTwingateUsersUserArgs : global::Pulumi.InvokeArgs
[Input("role", required: true)]
public string Role { get; set; } = null!;

[Input("type", required: true)]
public string Type { get; set; } = null!;

public GetTwingateUsersUserArgs()
{
}
Expand Down
3 changes: 3 additions & 0 deletions sdk/dotnet/Inputs/GetTwingateUsersUserArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public sealed class GetTwingateUsersUserInputArgs : global::Pulumi.ResourceArgs
[Input("role", required: true)]
public Input<string> Role { get; set; } = null!;

[Input("type", required: true)]
public Input<string> Type { get; set; } = null!;

public GetTwingateUsersUserInputArgs()
{
}
Expand Down
6 changes: 5 additions & 1 deletion sdk/dotnet/Outputs/GetTwingateUsersUserResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public sealed class GetTwingateUsersUserResult
public readonly bool IsAdmin;
public readonly string LastName;
public readonly string Role;
public readonly string Type;

[OutputConstructor]
private GetTwingateUsersUserResult(
Expand All @@ -33,14 +34,17 @@ private GetTwingateUsersUserResult(

string lastName,

string role)
string role,

string type)
{
Email = email;
FirstName = firstName;
Id = id;
IsAdmin = isAdmin;
LastName = lastName;
Role = role;
Type = type;
}
}
}
1 change: 0 additions & 1 deletion sdk/dotnet/TwingateLabs.Twingate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<UseSharedCompilation>false</UseSharedCompilation>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
196 changes: 196 additions & 0 deletions sdk/dotnet/TwingateUser.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace TwingateLabs.Twingate
{
[TwingateResourceType("twingate:index/twingateUser:TwingateUser")]
public partial class TwingateUser : global::Pulumi.CustomResource
{
/// <summary>
/// The User's email address
/// </summary>
[Output("email")]
public Output<string> Email { get; private set; } = null!;

/// <summary>
/// The User's first name
/// </summary>
[Output("firstName")]
public Output<string> FirstName { get; private set; } = null!;

/// <summary>
/// Determines whether the User is active or not. Inactive users will be not able to sign in.
/// </summary>
[Output("isActive")]
public Output<bool> IsActive { get; private set; } = null!;

/// <summary>
/// The User's last name
/// </summary>
[Output("lastName")]
public Output<string> LastName { get; private set; } = null!;

/// <summary>
/// Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
/// </summary>
[Output("role")]
public Output<string> Role { get; private set; } = null!;

/// <summary>
/// Determines whether to send an email invitation to the User. True by default.
/// </summary>
[Output("sendInvite")]
public Output<bool> SendInvite { get; private set; } = null!;

/// <summary>
/// Indicates the User's type. Either MANUAL or SYNCED.
/// </summary>
[Output("type")]
public Output<string> Type { get; private set; } = null!;


/// <summary>
/// Create a TwingateUser resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public TwingateUser(string name, TwingateUserArgs args, CustomResourceOptions? options = null)
: base("twingate:index/twingateUser:TwingateUser", name, args ?? new TwingateUserArgs(), MakeResourceOptions(options, ""))
{
}

private TwingateUser(string name, Input<string> id, TwingateUserState? state = null, CustomResourceOptions? options = null)
: base("twingate:index/twingateUser:TwingateUser", name, state, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "github://api.github.com/twingate-labs",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing TwingateUser resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="state">Any extra arguments used during the lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static TwingateUser Get(string name, Input<string> id, TwingateUserState? state = null, CustomResourceOptions? options = null)
{
return new TwingateUser(name, id, state, options);
}
}

public sealed class TwingateUserArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The User's email address
/// </summary>
[Input("email", required: true)]
public Input<string> Email { get; set; } = null!;

/// <summary>
/// The User's first name
/// </summary>
[Input("firstName")]
public Input<string>? FirstName { get; set; }

/// <summary>
/// Determines whether the User is active or not. Inactive users will be not able to sign in.
/// </summary>
[Input("isActive")]
public Input<bool>? IsActive { get; set; }

/// <summary>
/// The User's last name
/// </summary>
[Input("lastName")]
public Input<string>? LastName { get; set; }

/// <summary>
/// Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
/// </summary>
[Input("role")]
public Input<string>? Role { get; set; }

/// <summary>
/// Determines whether to send an email invitation to the User. True by default.
/// </summary>
[Input("sendInvite")]
public Input<bool>? SendInvite { get; set; }

public TwingateUserArgs()
{
}
public static new TwingateUserArgs Empty => new TwingateUserArgs();
}

public sealed class TwingateUserState : global::Pulumi.ResourceArgs
{
/// <summary>
/// The User's email address
/// </summary>
[Input("email")]
public Input<string>? Email { get; set; }

/// <summary>
/// The User's first name
/// </summary>
[Input("firstName")]
public Input<string>? FirstName { get; set; }

/// <summary>
/// Determines whether the User is active or not. Inactive users will be not able to sign in.
/// </summary>
[Input("isActive")]
public Input<bool>? IsActive { get; set; }

/// <summary>
/// The User's last name
/// </summary>
[Input("lastName")]
public Input<string>? LastName { get; set; }

/// <summary>
/// Determines the User's role. Either ADMIN, DEVOPS, SUPPORT or MEMBER.
/// </summary>
[Input("role")]
public Input<string>? Role { get; set; }

/// <summary>
/// Determines whether to send an email invitation to the User. True by default.
/// </summary>
[Input("sendInvite")]
public Input<bool>? SendInvite { get; set; }

/// <summary>
/// Indicates the User's type. Either MANUAL or SYNCED.
/// </summary>
[Input("type")]
public Input<string>? Type { get; set; }

public TwingateUserState()
{
}
public static new TwingateUserState Empty => new TwingateUserState();
}
}
11 changes: 9 additions & 2 deletions sdk/go/twingate/config/config.go

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

10 changes: 9 additions & 1 deletion sdk/go/twingate/getTwingateConnector.go

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

10 changes: 9 additions & 1 deletion sdk/go/twingate/getTwingateConnectors.go

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

Loading

0 comments on commit 6b4ed27

Please sign in to comment.