Skip to content

Commit

Permalink
Changed to use my fork of the TF provider
Browse files Browse the repository at this point in the history
  • Loading branch information
pierskarsenbarg committed May 28, 2024
1 parent 86a2c47 commit 49e0224
Show file tree
Hide file tree
Showing 75 changed files with 1,746 additions and 270 deletions.
36 changes: 18 additions & 18 deletions provider/cmd/pulumi-resource-nutanix/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22

replace (
github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240229143312-4f60ee4e2975
github.com/terraform-providers/terraform-provider-nutanix => github.com/nutanix/terraform-provider-nutanix v1.9.5
github.com/terraform-providers/terraform-provider-nutanix => github.com/pierskarsenbarg/terraform-provider-nutanix v1.6.2-0.20240528163917-bf1aea8fe346
)

require (
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2660,8 +2660,6 @@ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLA
github.com/nightlyone/lockfile v1.0.0 h1:RHep2cFKK4PonZJDdEl4GmkabuhbsRMgk/k3uAmxBiA=
github.com/nightlyone/lockfile v1.0.0/go.mod h1:rywoIealpdNse2r832aiD9jRk8ErCatROs6LzC841CI=
github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce/go.mod h1:uFMI8w+ref4v2r9jz+c9i1IfIttS/OkmLfrk1jne5hs=
github.com/nutanix/terraform-provider-nutanix v1.9.5 h1:/Ht5TBzivoTfwosW6H1G5FMObtLLW/Yy9i0cHSKFOKk=
github.com/nutanix/terraform-provider-nutanix v1.9.5/go.mod h1:xl2FgHIAKMTrU66ujzAAeu/SnzBt2sEXXH/tFhKwGo8=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs=
Expand Down Expand Up @@ -2789,6 +2787,8 @@ github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi
github.com/pierrec/lz4 v2.6.1+incompatible h1:9UY3+iC23yxF0UfGaYrGplQ+79Rg+h/q9FV9ix19jjM=
github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
github.com/pierrec/lz4/v4 v4.1.15/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4=
github.com/pierskarsenbarg/terraform-provider-nutanix v1.6.2-0.20240528163917-bf1aea8fe346 h1:iKhe2NJBMfMGp+xCyfoF4eAW6SkE9nh3E1lP6bm2o7w=
github.com/pierskarsenbarg/terraform-provider-nutanix v1.6.2-0.20240528163917-bf1aea8fe346/go.mod h1:xl2FgHIAKMTrU66ujzAAeu/SnzBt2sEXXH/tFhKwGo8=
github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4=
github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI=
github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA=
Expand Down
2 changes: 0 additions & 2 deletions sdk/dotnet/AccessControlPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ namespace PiersKarsenbarg.Nutanix
{
/// <summary>
/// Provides a resource to create an access control policy based on the input parameters.
///
/// ## Example Usage
/// </summary>
[NutanixResourceType("nutanix:index/accessControlPolicy:AccessControlPolicy")]
public partial class AccessControlPolicy : global::Pulumi.CustomResource
Expand Down
24 changes: 24 additions & 0 deletions sdk/dotnet/AddressGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,30 @@ namespace PiersKarsenbarg.Nutanix
/// Provides a resource to create a address group based on the input parameters.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Nutanix = PiersKarsenbarg.Nutanix;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var testAddress = new Nutanix.AddressGroup("testAddress", new()
/// {
/// Description = "test address groups resource",
/// IpAddressBlockLists = new[]
/// {
/// new Nutanix.Inputs.AddressGroupIpAddressBlockListArgs
/// {
/// Ip = "10.0.0.0",
/// PrefixLength = 24,
/// },
/// },
/// });
///
/// });
/// ```
/// </summary>
[NutanixResourceType("nutanix:index/addressGroup:AddressGroup")]
public partial class AddressGroup : global::Pulumi.CustomResource
Expand Down
16 changes: 16 additions & 0 deletions sdk/dotnet/FoundationCentralApiKeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@ namespace PiersKarsenbarg.Nutanix
/// Provides a resource to create a new API key for nodes registration with Foundation Central.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Nutanix = PiersKarsenbarg.Nutanix;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var newApiKey = new Nutanix.FoundationCentralApiKeys("newApiKey", new()
/// {
/// Alias = "&lt;NAME-FOR-API-KEY&gt;",
/// });
///
/// });
/// ```
/// </summary>
[NutanixResourceType("nutanix:index/foundationCentralApiKeys:FoundationCentralApiKeys")]
public partial class FoundationCentralApiKeys : global::Pulumi.CustomResource
Expand Down
34 changes: 0 additions & 34 deletions sdk/dotnet/GetAccessControlPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,46 +14,12 @@ public static class GetAccessControlPolicy
{
/// <summary>
/// Describes an Access Control Policy.
///
/// ## Example Usage
///
/// ``` hcl
/// resource "nutanix_access_control_policy" "test" {
/// name = "NAME OF ACCESS CONTROL POLICY"
/// description = "DESCRIPTION OF THE ACCESS CONTROL POLICY"
/// role_reference {
/// kind = "role"
/// uuid = "UUID of role"
/// }
/// }
/// data "nutanix_access_control_policy" "test" {
/// access_control_policy_id = nutanix_access_control_policy.test.id
/// }
///
/// ```
/// </summary>
public static Task<GetAccessControlPolicyResult> InvokeAsync(GetAccessControlPolicyArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetAccessControlPolicyResult>("nutanix:index/getAccessControlPolicy:getAccessControlPolicy", args ?? new GetAccessControlPolicyArgs(), options.WithDefaults());

/// <summary>
/// Describes an Access Control Policy.
///
/// ## Example Usage
///
/// ``` hcl
/// resource "nutanix_access_control_policy" "test" {
/// name = "NAME OF ACCESS CONTROL POLICY"
/// description = "DESCRIPTION OF THE ACCESS CONTROL POLICY"
/// role_reference {
/// kind = "role"
/// uuid = "UUID of role"
/// }
/// }
/// data "nutanix_access_control_policy" "test" {
/// access_control_policy_id = nutanix_access_control_policy.test.id
/// }
///
/// ```
/// </summary>
public static Output<GetAccessControlPolicyResult> Invoke(GetAccessControlPolicyInvokeArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetAccessControlPolicyResult>("nutanix:index/getAccessControlPolicy:getAccessControlPolicy", args ?? new GetAccessControlPolicyInvokeArgs(), options.WithDefaults());
Expand Down
76 changes: 52 additions & 24 deletions sdk/dotnet/GetAddressGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,34 @@ public static class GetAddressGroup
///
/// ## Example Usage
///
/// ``` hcl
/// resource "nutanix_address_group" "test_address" {
/// name = "test"
/// description = "test address groups resource"
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Nutanix = PiersKarsenbarg.Nutanix;
/// using Nutanix = Pulumi.Nutanix;
///
/// ip_address_block_list {
/// ip = "10.0.0.0"
/// prefix_length = 24
/// }
/// }
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var testAddress = new Nutanix.AddressGroup("testAddress", new()
/// {
/// Description = "test address groups resource",
/// IpAddressBlockLists = new[]
/// {
/// new Nutanix.Inputs.AddressGroupIpAddressBlockListArgs
/// {
/// Ip = "10.0.0.0",
/// PrefixLength = 24,
/// },
/// },
/// });
///
/// data "nutanix_address_group" "addr_group" {
/// uuid = nutanix_address_group.test_address.id
/// }
/// var addrGroup = Nutanix.GetAddressGroup.Invoke(new()
/// {
/// Uuid = testAddress.Id,
/// });
///
/// });
/// ```
/// </summary>
public static Task<GetAddressGroupResult> InvokeAsync(GetAddressGroupArgs args, InvokeOptions? options = null)
Expand All @@ -41,20 +55,34 @@ public static Task<GetAddressGroupResult> InvokeAsync(GetAddressGroupArgs args,
///
/// ## Example Usage
///
/// ``` hcl
/// resource "nutanix_address_group" "test_address" {
/// name = "test"
/// description = "test address groups resource"
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Nutanix = PiersKarsenbarg.Nutanix;
/// using Nutanix = Pulumi.Nutanix;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var testAddress = new Nutanix.AddressGroup("testAddress", new()
/// {
/// Description = "test address groups resource",
/// IpAddressBlockLists = new[]
/// {
/// new Nutanix.Inputs.AddressGroupIpAddressBlockListArgs
/// {
/// Ip = "10.0.0.0",
/// PrefixLength = 24,
/// },
/// },
/// });
///
/// ip_address_block_list {
/// ip = "10.0.0.0"
/// prefix_length = 24
/// }
/// }
/// var addrGroup = Nutanix.GetAddressGroup.Invoke(new()
/// {
/// Uuid = testAddress.Id,
/// });
///
/// data "nutanix_address_group" "addr_group" {
/// uuid = nutanix_address_group.test_address.id
/// }
/// });
/// ```
/// </summary>
public static Output<GetAddressGroupResult> Invoke(GetAddressGroupInvokeArgs args, InvokeOptions? options = null)
Expand Down
26 changes: 22 additions & 4 deletions sdk/dotnet/GetAddressGroups.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,17 @@ public static class GetAddressGroups
///
/// ## Example Usage
///
/// ``` hcl
/// data "nutanix_address_groups" "addr_groups" {}
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Nutanix = Pulumi.Nutanix;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var addrGroups = Nutanix.GetAddressGroups.Invoke();
///
/// });
/// ```
/// </summary>
public static Task<GetAddressGroupsResult> InvokeAsync(GetAddressGroupsArgs? args = null, InvokeOptions? options = null)
Expand All @@ -29,8 +38,17 @@ public static Task<GetAddressGroupsResult> InvokeAsync(GetAddressGroupsArgs? arg
///
/// ## Example Usage
///
/// ``` hcl
/// data "nutanix_address_groups" "addr_groups" {}
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Nutanix = Pulumi.Nutanix;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var addrGroups = Nutanix.GetAddressGroups.Invoke();
///
/// });
/// ```
/// </summary>
public static Output<GetAddressGroupsResult> Invoke(GetAddressGroupsInvokeArgs? args = null, InvokeOptions? options = null)
Expand Down
32 changes: 0 additions & 32 deletions sdk/dotnet/GetRole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,44 +14,12 @@ public static class GetRole
{
/// <summary>
/// Describes a Role.
///
/// ## Example Usage
///
/// ``` hcl
/// resource "nutanix_role" "test" {
/// name = "NAME"
/// description = "DESCRIPTION"
/// permission_reference_list {
/// kind = "permission"
/// uuid = "ID OF PERMISSION"
/// }
/// }
/// data "nutanix_role" "test" {
/// role_id = nutanix_role.test.id
/// }
/// ```
/// </summary>
public static Task<GetRoleResult> InvokeAsync(GetRoleArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetRoleResult>("nutanix:index/getRole:getRole", args ?? new GetRoleArgs(), options.WithDefaults());

/// <summary>
/// Describes a Role.
///
/// ## Example Usage
///
/// ``` hcl
/// resource "nutanix_role" "test" {
/// name = "NAME"
/// description = "DESCRIPTION"
/// permission_reference_list {
/// kind = "permission"
/// uuid = "ID OF PERMISSION"
/// }
/// }
/// data "nutanix_role" "test" {
/// role_id = nutanix_role.test.id
/// }
/// ```
/// </summary>
public static Output<GetRoleResult> Invoke(GetRoleInvokeArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetRoleResult>("nutanix:index/getRole:getRole", args ?? new GetRoleInvokeArgs(), options.WithDefaults());
Expand Down
26 changes: 22 additions & 4 deletions sdk/dotnet/GetRoles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,17 @@ public static class GetRoles
///
/// ## Example Usage
///
/// ``` hcl
/// data "nutanix_roles" "test" {}
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Nutanix = Pulumi.Nutanix;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var test = Nutanix.GetRoles.Invoke();
///
/// });
/// ```
/// </summary>
public static Task<GetRolesResult> InvokeAsync(GetRolesArgs? args = null, InvokeOptions? options = null)
Expand All @@ -29,8 +38,17 @@ public static Task<GetRolesResult> InvokeAsync(GetRolesArgs? args = null, Invoke
///
/// ## Example Usage
///
/// ``` hcl
/// data "nutanix_roles" "test" {}
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Nutanix = Pulumi.Nutanix;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var test = Nutanix.GetRoles.Invoke();
///
/// });
/// ```
/// </summary>
public static Output<GetRolesResult> Invoke(GetRolesInvokeArgs? args = null, InvokeOptions? options = null)
Expand Down
Loading

0 comments on commit 49e0224

Please sign in to comment.