diff --git a/provider/go.mod b/provider/go.mod index 6fe008b..cda5e4c 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -1,7 +1,8 @@ module github.com/pierskarsenbarg/pulumi-nutanix/provider -go 1.22.0 -toolchain go1.22.5 +go 1.22.3 + +toolchain go1.23.2 replace ( github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240229143312-4f60ee4e2975 diff --git a/sdk/dotnet/GetAccessControlPolicies.cs b/sdk/dotnet/GetAccessControlPolicies.cs index 7b1597d..a7de23e 100644 --- a/sdk/dotnet/GetAccessControlPolicies.cs +++ b/sdk/dotnet/GetAccessControlPolicies.cs @@ -35,6 +35,18 @@ public static Task InvokeAsync(GetAccessControlP /// public static Output Invoke(GetAccessControlPoliciesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getAccessControlPolicies:getAccessControlPolicies", args ?? new GetAccessControlPoliciesInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a list of access control policies. + /// + /// ## Example Usage + /// + /// ``` hcl + /// data "nutanix_access_control_policies" "test" {} + /// ``` + /// + public static Output Invoke(GetAccessControlPoliciesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getAccessControlPolicies:getAccessControlPolicies", args ?? new GetAccessControlPoliciesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetAccessControlPolicy.cs b/sdk/dotnet/GetAccessControlPolicy.cs index d3a3a73..953cc10 100644 --- a/sdk/dotnet/GetAccessControlPolicy.cs +++ b/sdk/dotnet/GetAccessControlPolicy.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetAccessControlPol /// public static Output Invoke(GetAccessControlPolicyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getAccessControlPolicy:getAccessControlPolicy", args ?? new GetAccessControlPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Describes an Access Control Policy. + /// + public static Output Invoke(GetAccessControlPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getAccessControlPolicy:getAccessControlPolicy", args ?? new GetAccessControlPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetAddressGroup.cs b/sdk/dotnet/GetAddressGroup.cs index e0f1ad5..cc5259c 100644 --- a/sdk/dotnet/GetAddressGroup.cs +++ b/sdk/dotnet/GetAddressGroup.cs @@ -87,6 +87,44 @@ public static Task InvokeAsync(GetAddressGroupArgs args, /// public static Output Invoke(GetAddressGroupInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getAddressGroup:getAddressGroup", args ?? new GetAddressGroupInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve a address group. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// 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, + /// }, + /// }, + /// }); + /// + /// var addrGroup = Nutanix.GetAddressGroup.Invoke(new() + /// { + /// Uuid = testAddress.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAddressGroupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getAddressGroup:getAddressGroup", args ?? new GetAddressGroupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetAddressGroups.cs b/sdk/dotnet/GetAddressGroups.cs index 355fb4d..328a477 100644 --- a/sdk/dotnet/GetAddressGroups.cs +++ b/sdk/dotnet/GetAddressGroups.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(GetAddressGroupsArgs? arg /// public static Output Invoke(GetAddressGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getAddressGroups:getAddressGroups", args ?? new GetAddressGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve list of address groups. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var addrGroups = Nutanix.GetAddressGroups.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAddressGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getAddressGroups:getAddressGroups", args ?? new GetAddressGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetAssertHelper.cs b/sdk/dotnet/GetAssertHelper.cs index 754f787..e141767 100644 --- a/sdk/dotnet/GetAssertHelper.cs +++ b/sdk/dotnet/GetAssertHelper.cs @@ -17,6 +17,9 @@ public static Task InvokeAsync(GetAssertHelperArgs? args public static Output Invoke(GetAssertHelperInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getAssertHelper:getAssertHelper", args ?? new GetAssertHelperInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAssertHelperInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getAssertHelper:getAssertHelper", args ?? new GetAssertHelperInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetCategoryKey.cs b/sdk/dotnet/GetCategoryKey.cs index 41c2a35..cdb9bec 100644 --- a/sdk/dotnet/GetCategoryKey.cs +++ b/sdk/dotnet/GetCategoryKey.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetCategoryKeyArgs args, In /// public static Output Invoke(GetCategoryKeyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getCategoryKey:getCategoryKey", args ?? new GetCategoryKeyInvokeArgs(), options.WithDefaults()); + + /// + /// Describe a Nutanix Category Key and its values (if it has them). + /// + public static Output Invoke(GetCategoryKeyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getCategoryKey:getCategoryKey", args ?? new GetCategoryKeyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetCluster.cs b/sdk/dotnet/GetCluster.cs index e1272be..689bfa7 100644 --- a/sdk/dotnet/GetCluster.cs +++ b/sdk/dotnet/GetCluster.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetClusterArgs? args = null, In /// public static Output Invoke(GetClusterInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getCluster:getCluster", args ?? new GetClusterInvokeArgs(), options.WithDefaults()); + + /// + /// Describes Clusters + /// + public static Output Invoke(GetClusterInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getCluster:getCluster", args ?? new GetClusterInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetClusters.cs b/sdk/dotnet/GetClusters.cs index cf64050..19afdcc 100644 --- a/sdk/dotnet/GetClusters.cs +++ b/sdk/dotnet/GetClusters.cs @@ -87,6 +87,44 @@ public static Task InvokeAsync(InvokeOptions? options = null) /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getClusters:getClusters", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Describes Clusters + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var clusters = Nutanix.GetClusters.Invoke(); + /// + /// }); + /// ``` + /// + /// ## Reference + /// + /// The `project_reference`, `owner_reference`, `availability_zone_reference`, `cluster_reference`, attributes supports the following: + /// + /// * `kind`: - The kind name (Default value: project). + /// * `name`: - the name. + /// * `UUID`: - the UUID. + /// + /// ### Version + /// + /// The version attribute supports the following: + /// + /// * `product_name`: - Name of the producer/distribution of the image. For example windows or red hat. + /// * `product_version`: - Version string for the disk image. + /// + /// See detailed information in [Nutanix Clusters](https://www.nutanix.dev/api_references/prism-central-v3/#/d93c30e04327e-get-a-list-of-existing-clusters). + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getClusters:getClusters", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetFloatingIp.cs b/sdk/dotnet/GetFloatingIp.cs index d581237..a934f20 100644 --- a/sdk/dotnet/GetFloatingIp.cs +++ b/sdk/dotnet/GetFloatingIp.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetFloatingIpArgs args, Invo /// public static Output Invoke(GetFloatingIpInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFloatingIp:getFloatingIp", args ?? new GetFloatingIpInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve floating IPs with floating_ip_uuid . + /// + public static Output Invoke(GetFloatingIpInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFloatingIp:getFloatingIp", args ?? new GetFloatingIpInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetFloatingIps.cs b/sdk/dotnet/GetFloatingIps.cs index 50fa04b..611e4db 100644 --- a/sdk/dotnet/GetFloatingIps.cs +++ b/sdk/dotnet/GetFloatingIps.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(GetFloatingIpsArgs? args = /// public static Output Invoke(GetFloatingIpsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFloatingIps:getFloatingIps", args ?? new GetFloatingIpsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve all the floating IPs . + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Nutanix.GetFloatingIps.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFloatingIpsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFloatingIps:getFloatingIps", args ?? new GetFloatingIpsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetFoundationCentralApiKeys.cs b/sdk/dotnet/GetFoundationCentralApiKeys.cs index f12a91a..8ccc1f2 100644 --- a/sdk/dotnet/GetFoundationCentralApiKeys.cs +++ b/sdk/dotnet/GetFoundationCentralApiKeys.cs @@ -59,6 +59,30 @@ public static Task InvokeAsync(GetFoundationC /// public static Output Invoke(GetFoundationCentralApiKeysInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationCentralApiKeys:getFoundationCentralApiKeys", args ?? new GetFoundationCentralApiKeysInvokeArgs(), options.WithDefaults()); + + /// + /// Get an api key given its UUID. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var apiKeysList = Nutanix.GetFoundationCentralApiKeys.Invoke(new() + /// { + /// KeyUuid = "<KEY_UUID>", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFoundationCentralApiKeysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationCentralApiKeys:getFoundationCentralApiKeys", args ?? new GetFoundationCentralApiKeysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetFoundationCentralClusterDetails.cs b/sdk/dotnet/GetFoundationCentralClusterDetails.cs index 036f105..3ea63f6 100644 --- a/sdk/dotnet/GetFoundationCentralClusterDetails.cs +++ b/sdk/dotnet/GetFoundationCentralClusterDetails.cs @@ -59,6 +59,30 @@ public static Task InvokeAsync(GetFoun /// public static Output Invoke(GetFoundationCentralClusterDetailsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationCentralClusterDetails:getFoundationCentralClusterDetails", args ?? new GetFoundationCentralClusterDetailsInvokeArgs(), options.WithDefaults()); + + /// + /// Get a cluster details created using Foundation Central. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var imagedClusterDetails = Nutanix.GetFoundationCentralClusterDetails.Invoke(new() + /// { + /// ImagedClusterUuid = "<CLUSTER-UUID>", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFoundationCentralClusterDetailsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationCentralClusterDetails:getFoundationCentralClusterDetails", args ?? new GetFoundationCentralClusterDetailsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetFoundationCentralImagedClustersList.cs b/sdk/dotnet/GetFoundationCentralImagedClustersList.cs index f8fc5c8..3553a7a 100644 --- a/sdk/dotnet/GetFoundationCentralImagedClustersList.cs +++ b/sdk/dotnet/GetFoundationCentralImagedClustersList.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(Get /// public static Output Invoke(GetFoundationCentralImagedClustersListInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationCentralImagedClustersList:getFoundationCentralImagedClustersList", args ?? new GetFoundationCentralImagedClustersListInvokeArgs(), options.WithDefaults()); + + /// + /// List all the clusters created using Foundation Central. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var imagedClustersList = Nutanix.GetFoundationCentralImagedClustersList.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFoundationCentralImagedClustersListInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationCentralImagedClustersList:getFoundationCentralImagedClustersList", args ?? new GetFoundationCentralImagedClustersListInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetFoundationCentralImagedNodeDetails.cs b/sdk/dotnet/GetFoundationCentralImagedNodeDetails.cs index f130fe9..2811979 100644 --- a/sdk/dotnet/GetFoundationCentralImagedNodeDetails.cs +++ b/sdk/dotnet/GetFoundationCentralImagedNodeDetails.cs @@ -59,6 +59,30 @@ public static Task InvokeAsync(GetF /// public static Output Invoke(GetFoundationCentralImagedNodeDetailsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationCentralImagedNodeDetails:getFoundationCentralImagedNodeDetails", args ?? new GetFoundationCentralImagedNodeDetailsInvokeArgs(), options.WithDefaults()); + + /// + /// Get the details of a single node given its UUID. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nodesDetails = Nutanix.GetFoundationCentralImagedNodeDetails.Invoke(new() + /// { + /// ImagedNodeUuid = "<IMAGED-NODE-UUID>", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFoundationCentralImagedNodeDetailsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationCentralImagedNodeDetails:getFoundationCentralImagedNodeDetails", args ?? new GetFoundationCentralImagedNodeDetailsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetFoundationCentralImagedNodesList.cs b/sdk/dotnet/GetFoundationCentralImagedNodesList.cs index 55d50db..8eb765d 100644 --- a/sdk/dotnet/GetFoundationCentralImagedNodesList.cs +++ b/sdk/dotnet/GetFoundationCentralImagedNodesList.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(GetFou /// public static Output Invoke(GetFoundationCentralImagedNodesListInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationCentralImagedNodesList:getFoundationCentralImagedNodesList", args ?? new GetFoundationCentralImagedNodesListInvokeArgs(), options.WithDefaults()); + + /// + /// List all the nodes registered with Foundation Central + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nodesList = Nutanix.GetFoundationCentralImagedNodesList.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFoundationCentralImagedNodesListInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationCentralImagedNodesList:getFoundationCentralImagedNodesList", args ?? new GetFoundationCentralImagedNodesListInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetFoundationCentralListApiKeys.cs b/sdk/dotnet/GetFoundationCentralListApiKeys.cs index 6a6540c..0f88247 100644 --- a/sdk/dotnet/GetFoundationCentralListApiKeys.cs +++ b/sdk/dotnet/GetFoundationCentralListApiKeys.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(GetFoundat /// public static Output Invoke(GetFoundationCentralListApiKeysInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationCentralListApiKeys:getFoundationCentralListApiKeys", args ?? new GetFoundationCentralListApiKeysInvokeArgs(), options.WithDefaults()); + + /// + /// List all the api keys created in Foundation Central. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var apiKeysList = Nutanix.GetFoundationCentralListApiKeys.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFoundationCentralListApiKeysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationCentralListApiKeys:getFoundationCentralListApiKeys", args ?? new GetFoundationCentralListApiKeysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetFoundationDiscoverNodes.cs b/sdk/dotnet/GetFoundationDiscoverNodes.cs index 7896c3c..8ede259 100644 --- a/sdk/dotnet/GetFoundationDiscoverNodes.cs +++ b/sdk/dotnet/GetFoundationDiscoverNodes.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(InvokeOptions? /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationDiscoverNodes:getFoundationDiscoverNodes", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Discovers and lists Nutanix-imaged nodes within an IPv6 network. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var discoveredNodes = Nutanix.GetFoundationDiscoverNodes.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationDiscoverNodes:getFoundationDiscoverNodes", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetFoundationHypervisorIsos.cs b/sdk/dotnet/GetFoundationHypervisorIsos.cs index 4db3029..c2f3841 100644 --- a/sdk/dotnet/GetFoundationHypervisorIsos.cs +++ b/sdk/dotnet/GetFoundationHypervisorIsos.cs @@ -65,6 +65,33 @@ public static Task InvokeAsync(InvokeOptions? /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationHypervisorIsos:getFoundationHypervisorIsos", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Describes a list of hypervisor isos image file details present in foundation vm + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var hypervisorIsos = Nutanix.GetFoundationHypervisorIsos.Invoke(); + /// + /// }); + /// ``` + /// + /// ## Note + /// + /// * This data source only lists .iso files details. + /// + /// See detailed information in [Nutanix Foundation Hypervisor Isos](https://www.nutanix.dev/api_references/foundation/#/b3A6MjIyMjM0MDE-list-hypervisor-images-available-in-foundation). + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationHypervisorIsos:getFoundationHypervisorIsos", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetFoundationNodeNetworkDetails.cs b/sdk/dotnet/GetFoundationNodeNetworkDetails.cs index fc5b208..6223691 100644 --- a/sdk/dotnet/GetFoundationNodeNetworkDetails.cs +++ b/sdk/dotnet/GetFoundationNodeNetworkDetails.cs @@ -69,6 +69,35 @@ public static Task InvokeAsync(GetFoundat /// public static Output Invoke(GetFoundationNodeNetworkDetailsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationNodeNetworkDetails:getFoundationNodeNetworkDetails", args ?? new GetFoundationNodeNetworkDetailsInvokeArgs(), options.WithDefaults()); + + /// + /// Gets hypervisor, CVM & IPMI info of the discovered nodes using their ipv6 address. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var networkDetails = Nutanix.GetFoundationNodeNetworkDetails.Invoke(new() + /// { + /// Ipv6Addresses = new[] + /// { + /// "<ipv6-address-1>", + /// "<ipv6-address-2>", + /// }, + /// Timeout = "30", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFoundationNodeNetworkDetailsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationNodeNetworkDetails:getFoundationNodeNetworkDetails", args ?? new GetFoundationNodeNetworkDetailsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetFoundationNosPackages.cs b/sdk/dotnet/GetFoundationNosPackages.cs index cbfad01..c0efdc3 100644 --- a/sdk/dotnet/GetFoundationNosPackages.cs +++ b/sdk/dotnet/GetFoundationNosPackages.cs @@ -65,6 +65,33 @@ public static Task InvokeAsync(InvokeOptions? op /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationNosPackages:getFoundationNosPackages", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Describes a list of nos (aos) packages present in foundation vm + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nosPackages = Nutanix.GetFoundationNosPackages.Invoke(); + /// + /// }); + /// ``` + /// + /// ## Note + /// + /// * This data source only lists .tar file names. + /// + /// See detailed information in [Nutanix Foundation Nos Packages](https://www.nutanix.dev/api_references/foundation/#/b3A6MjIyMjMzODg-get-list-of-aos-packages-available-in-foundation). + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getFoundationNosPackages:getFoundationNosPackages", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetHost.cs b/sdk/dotnet/GetHost.cs index 137bb91..4317fd6 100644 --- a/sdk/dotnet/GetHost.cs +++ b/sdk/dotnet/GetHost.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetHostArgs args, InvokeOptions? o /// public static Output Invoke(GetHostInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getHost:getHost", args ?? new GetHostInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a Host + /// + public static Output Invoke(GetHostInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getHost:getHost", args ?? new GetHostInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetHosts.cs b/sdk/dotnet/GetHosts.cs index 493950b..4a909f0 100644 --- a/sdk/dotnet/GetHosts.cs +++ b/sdk/dotnet/GetHosts.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(InvokeOptions? options = null) /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getHosts:getHosts", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Describes a list of hosts + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getHosts:getHosts", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetImage.cs b/sdk/dotnet/GetImage.cs index d1782a8..47acdd1 100644 --- a/sdk/dotnet/GetImage.cs +++ b/sdk/dotnet/GetImage.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetImageArgs? args = null, Invoke /// public static Output Invoke(GetImageInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getImage:getImage", args ?? new GetImageInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a Image + /// + public static Output Invoke(GetImageInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getImage:getImage", args ?? new GetImageInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetKarbonCluster.cs b/sdk/dotnet/GetKarbonCluster.cs index 12c6792..69fedd7 100644 --- a/sdk/dotnet/GetKarbonCluster.cs +++ b/sdk/dotnet/GetKarbonCluster.cs @@ -59,6 +59,30 @@ public static Task InvokeAsync(GetKarbonClusterArgs? arg /// public static Output Invoke(GetKarbonClusterInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getKarbonCluster:getKarbonCluster", args ?? new GetKarbonClusterInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a Karbon Cluster + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var cluster = Nutanix.GetKarbonCluster.Invoke(new() + /// { + /// KarbonClusterId = "<YOUR-CLUSTER-ID>", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKarbonClusterInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getKarbonCluster:getKarbonCluster", args ?? new GetKarbonClusterInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetKarbonClusterKubeConfig.cs b/sdk/dotnet/GetKarbonClusterKubeConfig.cs index aeb9b2b..6e58b5e 100644 --- a/sdk/dotnet/GetKarbonClusterKubeConfig.cs +++ b/sdk/dotnet/GetKarbonClusterKubeConfig.cs @@ -69,6 +69,35 @@ public static Task InvokeAsync(GetKarbonCluste /// public static Output Invoke(GetKarbonClusterKubeConfigInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getKarbonClusterKubeConfig:getKarbonClusterKubeConfig", args ?? new GetKarbonClusterKubeConfigInvokeArgs(), options.WithDefaults()); + + /// + /// Describes the SSH config from a Karbon Cluster + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var configbyid = Nutanix.GetKarbonClusterKubeConfig.Invoke(new() + /// { + /// KarbonClusterId = "<YOUR-CLUSTER-ID>", + /// }); + /// + /// var configbyname = Nutanix.GetKarbonClusterKubeConfig.Invoke(new() + /// { + /// KarbonClusterName = "<YOUR-CLUSTER-NAME>", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKarbonClusterKubeConfigInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getKarbonClusterKubeConfig:getKarbonClusterKubeConfig", args ?? new GetKarbonClusterKubeConfigInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetKarbonClusterSsh.cs b/sdk/dotnet/GetKarbonClusterSsh.cs index 8b683c0..fe8d8fd 100644 --- a/sdk/dotnet/GetKarbonClusterSsh.cs +++ b/sdk/dotnet/GetKarbonClusterSsh.cs @@ -69,6 +69,35 @@ public static Task InvokeAsync(GetKarbonClusterSshArg /// public static Output Invoke(GetKarbonClusterSshInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getKarbonClusterSsh:getKarbonClusterSsh", args ?? new GetKarbonClusterSshInvokeArgs(), options.WithDefaults()); + + /// + /// Describes the SSH config from a Karbon Cluster + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sshbyid = Nutanix.GetKarbonClusterSsh.Invoke(new() + /// { + /// KarbonClusterId = "<YOUR-CLUSTER-ID>", + /// }); + /// + /// var sshbyname = Nutanix.GetKarbonClusterSsh.Invoke(new() + /// { + /// KarbonClusterName = "<YOUR-CLUSTER-NAME>", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKarbonClusterSshInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getKarbonClusterSsh:getKarbonClusterSsh", args ?? new GetKarbonClusterSshInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetKarbonClusters.cs b/sdk/dotnet/GetKarbonClusters.cs index e339c83..70d018f 100644 --- a/sdk/dotnet/GetKarbonClusters.cs +++ b/sdk/dotnet/GetKarbonClusters.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(InvokeOptions? options = /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getKarbonClusters:getKarbonClusters", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Describes Karbon Clusters + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var clusters = Nutanix.GetKarbonClusters.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getKarbonClusters:getKarbonClusters", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetKarbonPrivateRegistries.cs b/sdk/dotnet/GetKarbonPrivateRegistries.cs index b9da3cb..8781436 100644 --- a/sdk/dotnet/GetKarbonPrivateRegistries.cs +++ b/sdk/dotnet/GetKarbonPrivateRegistries.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(InvokeOptions? /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getKarbonPrivateRegistries:getKarbonPrivateRegistries", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Describes a List of Karbon private registry entry + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getKarbonPrivateRegistries:getKarbonPrivateRegistries", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetKarbonPrivateRegistry.cs b/sdk/dotnet/GetKarbonPrivateRegistry.cs index 14dc32a..b9e6ed0 100644 --- a/sdk/dotnet/GetKarbonPrivateRegistry.cs +++ b/sdk/dotnet/GetKarbonPrivateRegistry.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetKarbonPrivateR /// public static Output Invoke(GetKarbonPrivateRegistryInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getKarbonPrivateRegistry:getKarbonPrivateRegistry", args ?? new GetKarbonPrivateRegistryInvokeArgs(), options.WithDefaults()); + + /// + /// Describes Karbon private registry entry + /// + public static Output Invoke(GetKarbonPrivateRegistryInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getKarbonPrivateRegistry:getKarbonPrivateRegistry", args ?? new GetKarbonPrivateRegistryInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbClone.cs b/sdk/dotnet/GetNdbClone.cs index ce0c774..c8506af 100644 --- a/sdk/dotnet/GetNdbClone.cs +++ b/sdk/dotnet/GetNdbClone.cs @@ -73,6 +73,37 @@ public static Task InvokeAsync(GetNdbCloneArgs? args = null, /// public static Output Invoke(GetNdbCloneInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbClone:getNdbClone", args ?? new GetNdbCloneInvokeArgs(), options.WithDefaults()); + + /// + /// Describes the clone present in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var name = Nutanix.GetNdbClone.Invoke(new() + /// { + /// CloneName = "test-inst-tf-check", + /// Filters = new[] + /// { + /// new Nutanix.Inputs.GetNdbCloneFilterInputArgs + /// { + /// Detailed = "true", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNdbCloneInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbClone:getNdbClone", args ?? new GetNdbCloneInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbClones.cs b/sdk/dotnet/GetNdbClones.cs index 9985990..c45b55b 100644 --- a/sdk/dotnet/GetNdbClones.cs +++ b/sdk/dotnet/GetNdbClones.cs @@ -71,6 +71,36 @@ public static Task InvokeAsync(GetNdbClonesArgs? args = null /// public static Output Invoke(GetNdbClonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbClones:getNdbClones", args ?? new GetNdbClonesInvokeArgs(), options.WithDefaults()); + + /// + /// List all the clone present in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var clones = Nutanix.GetNdbClones.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new Nutanix.Inputs.GetNdbClonesFilterInputArgs + /// { + /// Detailed = "true", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNdbClonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbClones:getNdbClones", args ?? new GetNdbClonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbCluster.cs b/sdk/dotnet/GetNdbCluster.cs index 40d29f8..ad569a4 100644 --- a/sdk/dotnet/GetNdbCluster.cs +++ b/sdk/dotnet/GetNdbCluster.cs @@ -67,6 +67,34 @@ public static Task InvokeAsync(GetNdbClusterArgs? args = nu /// public static Output Invoke(GetNdbClusterInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbCluster:getNdbCluster", args ?? new GetNdbClusterInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a cluster in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var c1 = Nutanix.GetNdbCluster.Invoke(new() + /// { + /// ClusterName = "<era-cluster-name>", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cluster"] = c1, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNdbClusterInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbCluster:getNdbCluster", args ?? new GetNdbClusterInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbClusters.cs b/sdk/dotnet/GetNdbClusters.cs index c795608..c414ad2 100644 --- a/sdk/dotnet/GetNdbClusters.cs +++ b/sdk/dotnet/GetNdbClusters.cs @@ -123,6 +123,62 @@ public static Task InvokeAsync(InvokeOptions? options = nu /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbClusters:getNdbClusters", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// List all clusters in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var clusters = Nutanix.GetNdbClusters.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["clustersOp"] = clusters, + /// }; + /// }); + /// ``` + /// + /// ## clusters + /// + /// The following attributes are exported for each cluster: + /// + /// * `id`: - id of cluster + /// * `name`: - name of cluster + /// * `unique_name`: - unique name of cluster + /// * `ip_addresses`: - IP address + /// * `fqdns`: - fqdn + /// * `nx_cluster_uuid`: - nutanix cluster uuid + /// * `description`: - description + /// * `cloud_type`: - cloud type + /// * `date_created`: - creation date + /// * `date_modified`: - date modified + /// * `version`: - version + /// * `owner_id`: - owner UUID + /// * `status`: - current status + /// * `hypervisor_type`: - hypervisor type + /// * `hypervisor_version`: - hypervisor version + /// * `properties`: - list of properties + /// * `reference_count`: - NA + /// * `username`: - username + /// * `password`: - password + /// * `cloud_info`: - cloud info + /// * `resource_config`: - resource related consumption info + /// * `management_server_info`: - NA + /// * `entity_counts`: - no. of entities related + /// * `healthy`: - if healthy status + /// + /// See detailed information in [NDB Clusters](https://www.nutanix.dev/api_references/ndb/#/b00cac8329db1-get-a-list-of-all-clusters). + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbClusters:getNdbClusters", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbDatabase.cs b/sdk/dotnet/GetNdbDatabase.cs index 74c2d79..b30854a 100644 --- a/sdk/dotnet/GetNdbDatabase.cs +++ b/sdk/dotnet/GetNdbDatabase.cs @@ -67,6 +67,34 @@ public static Task InvokeAsync(GetNdbDatabaseArgs args, In /// public static Output Invoke(GetNdbDatabaseInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbDatabase:getNdbDatabase", args ?? new GetNdbDatabaseInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a database instance in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var db1 = Nutanix.GetNdbDatabase.Invoke(new() + /// { + /// DatabaseId = "<sample-id>", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["db1Output"] = db1, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNdbDatabaseInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbDatabase:getNdbDatabase", args ?? new GetNdbDatabaseInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbDatabases.cs b/sdk/dotnet/GetNdbDatabases.cs index 61c0fe6..564f3b8 100644 --- a/sdk/dotnet/GetNdbDatabases.cs +++ b/sdk/dotnet/GetNdbDatabases.cs @@ -123,6 +123,62 @@ public static Task InvokeAsync(GetNdbDatabasesArgs? args /// public static Output Invoke(GetNdbDatabasesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbDatabases:getNdbDatabases", args ?? new GetNdbDatabasesInvokeArgs(), options.WithDefaults()); + + /// + /// List all database instances in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var dbs = Nutanix.GetNdbDatabases.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dbsOutput"] = dbs, + /// }; + /// }); + /// ``` + /// + /// ## database_instances + /// + /// The following attributes are exported for each database_instances: + /// + /// * `id`: - id of database instance + /// * `name`: - name of database instance + /// * `description`: - description + /// * `date_created`: - creation date + /// * `date_modified`: - date modified + /// * `properties`: - properties + /// * `tags`: - tags attached + /// * `clustered`: - if clustered or not + /// * `clone`: - if cloned + /// * `database_name`: - database instance name + /// * `type`: - database engine type + /// * `status`: - status of database instance + /// * `dbserver_logical_cluster_id`: - NA + /// * `time_machine_id`: - time machine ID + /// * `time_zone`: - timezone + /// * `info`: - info regarding disks, vm, storage, etc. + /// * `metric`: - metrics + /// * `parent_database_id`: - parent database ID + /// * `lcm_config`: - lcm configuration + /// * `time_machine`: - time machine related config info + /// * `database_nodes`: - nodes info + /// * `dbserver_logical_cluster`: - NA + /// * `linked_databases`: - list of databases created in instance with info + /// + /// + /// See detailed information in [List Database Instances](https://www.nutanix.dev/api_references/ndb/#/1e508756bcdcc-get-all-the-databases). + /// + public static Output Invoke(GetNdbDatabasesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbDatabases:getNdbDatabases", args ?? new GetNdbDatabasesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbDbserver.cs b/sdk/dotnet/GetNdbDbserver.cs index 56dccc5..f6416c1 100644 --- a/sdk/dotnet/GetNdbDbserver.cs +++ b/sdk/dotnet/GetNdbDbserver.cs @@ -59,6 +59,30 @@ public static Task InvokeAsync(GetNdbDbserverArgs? args = /// public static Output Invoke(GetNdbDbserverInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbDbserver:getNdbDbserver", args ?? new GetNdbDbserverInvokeArgs(), options.WithDefaults()); + + /// + /// Describes Database Server VM in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var dbserver = Nutanix.GetNdbDbserver.Invoke(new() + /// { + /// Ip = "{{ dbserver_vm_ip }}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNdbDbserverInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbDbserver:getNdbDbserver", args ?? new GetNdbDbserverInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbDbservers.cs b/sdk/dotnet/GetNdbDbservers.cs index a104c60..6bb7e5a 100644 --- a/sdk/dotnet/GetNdbDbservers.cs +++ b/sdk/dotnet/GetNdbDbservers.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(InvokeOptions? options = n /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbDbservers:getNdbDbservers", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// List of all Database Server VM in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var dbservers = Nutanix.GetNdbDbservers.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbDbservers:getNdbDbservers", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbMaintenanceWindow.cs b/sdk/dotnet/GetNdbMaintenanceWindow.cs index d42fae6..7749cd7 100644 --- a/sdk/dotnet/GetNdbMaintenanceWindow.cs +++ b/sdk/dotnet/GetNdbMaintenanceWindow.cs @@ -59,6 +59,30 @@ public static Task InvokeAsync(GetNdbMaintenanceW /// public static Output Invoke(GetNdbMaintenanceWindowInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbMaintenanceWindow:getNdbMaintenanceWindow", args ?? new GetNdbMaintenanceWindowInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a maintenance window in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var window = Nutanix.GetNdbMaintenanceWindow.Invoke(new() + /// { + /// Id = "{{ maintenance_window_id }}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNdbMaintenanceWindowInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbMaintenanceWindow:getNdbMaintenanceWindow", args ?? new GetNdbMaintenanceWindowInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbMaintenanceWindows.cs b/sdk/dotnet/GetNdbMaintenanceWindows.cs index b08f45d..dac04b0 100644 --- a/sdk/dotnet/GetNdbMaintenanceWindows.cs +++ b/sdk/dotnet/GetNdbMaintenanceWindows.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(InvokeOptions? op /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbMaintenanceWindows:getNdbMaintenanceWindows", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// List of maintenance windows in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var windows = Nutanix.GetNdbMaintenanceWindows.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbMaintenanceWindows:getNdbMaintenanceWindows", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbNetwork.cs b/sdk/dotnet/GetNdbNetwork.cs index f79f2cc..a7dfed7 100644 --- a/sdk/dotnet/GetNdbNetwork.cs +++ b/sdk/dotnet/GetNdbNetwork.cs @@ -59,6 +59,30 @@ public static Task InvokeAsync(GetNdbNetworkArgs? args = nu /// public static Output Invoke(GetNdbNetworkInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbNetwork:getNdbNetwork", args ?? new GetNdbNetworkInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a network in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nw = Nutanix.GetNdbNetwork.Invoke(new() + /// { + /// Id = "{{ id of network }}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNdbNetworkInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbNetwork:getNdbNetwork", args ?? new GetNdbNetworkInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbNetworkAvailableIps.cs b/sdk/dotnet/GetNdbNetworkAvailableIps.cs index e68df3b..0a0ea7f 100644 --- a/sdk/dotnet/GetNdbNetworkAvailableIps.cs +++ b/sdk/dotnet/GetNdbNetworkAvailableIps.cs @@ -59,6 +59,30 @@ public static Task InvokeAsync(GetNdbNetworkAva /// public static Output Invoke(GetNdbNetworkAvailableIpsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbNetworkAvailableIps:getNdbNetworkAvailableIps", args ?? new GetNdbNetworkAvailableIpsInvokeArgs(), options.WithDefaults()); + + /// + /// List of available IPs in Network + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var network = Nutanix.GetNdbNetworkAvailableIps.Invoke(new() + /// { + /// ProfileId = "{{ network_profile_id }}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNdbNetworkAvailableIpsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbNetworkAvailableIps:getNdbNetworkAvailableIps", args ?? new GetNdbNetworkAvailableIpsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbNetworks.cs b/sdk/dotnet/GetNdbNetworks.cs index a7e4947..97fc6cb 100644 --- a/sdk/dotnet/GetNdbNetworks.cs +++ b/sdk/dotnet/GetNdbNetworks.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(InvokeOptions? options = nu /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbNetworks:getNdbNetworks", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// List of networks in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nw = Nutanix.GetNdbNetworks.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbNetworks:getNdbNetworks", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbProfile.cs b/sdk/dotnet/GetNdbProfile.cs index 96db3e2..f732ad6 100644 --- a/sdk/dotnet/GetNdbProfile.cs +++ b/sdk/dotnet/GetNdbProfile.cs @@ -69,6 +69,35 @@ public static Task InvokeAsync(GetNdbProfileArgs? args = nu /// public static Output Invoke(GetNdbProfileInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbProfile:getNdbProfile", args ?? new GetNdbProfileInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a profile in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var profile1 = Nutanix.GetNdbProfile.Invoke(new() + /// { + /// ProfileType = "Network", + /// ProfileName = "TEST_NETWORK_PROFILE", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["profile"] = profile1, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNdbProfileInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbProfile:getNdbProfile", args ?? new GetNdbProfileInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbProfiles.cs b/sdk/dotnet/GetNdbProfiles.cs index 759e5ff..def84d0 100644 --- a/sdk/dotnet/GetNdbProfiles.cs +++ b/sdk/dotnet/GetNdbProfiles.cs @@ -107,6 +107,54 @@ public static Task InvokeAsync(GetNdbProfilesArgs? args = /// public static Output Invoke(GetNdbProfilesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbProfiles:getNdbProfiles", args ?? new GetNdbProfilesInvokeArgs(), options.WithDefaults()); + + /// + /// List profiles in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var profiles = Nutanix.GetNdbProfiles.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["profilesList"] = profiles, + /// }; + /// }); + /// ``` + /// + /// ## profiles + /// + /// The following attributes are exported for each profile: + /// + /// * `id`: - id of profile + /// * `name`: - profile name + /// * `description`: - description of profile + /// * `status`: - status of profile + /// * `owner`: - owner name + /// * `engine_type`: - database engine type + /// * `db_version`: - database version + /// * `topology`: - topology + /// * `system_profile`: - if system profile or not + /// * `assoc_db_servers`: - associated DB servers + /// * `assoc_databases`: - associated databases + /// * `latest_version`: - latest version for engine software + /// * `latest_version_id`: - ID of latest version for engine software + /// * `versions`: - profile's different version config + /// * `cluster_availability`: - list of clusters availability + /// * `nx_cluster_id`: - era cluster ID + /// + /// See detailed information in [Nutanix Database Service Profiles](https://www.nutanix.dev/api_references/ndb/#/74ae456d63b24-get-all-profiles). + /// + public static Output Invoke(GetNdbProfilesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbProfiles:getNdbProfiles", args ?? new GetNdbProfilesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbSla.cs b/sdk/dotnet/GetNdbSla.cs index 3dd2232..be47049 100644 --- a/sdk/dotnet/GetNdbSla.cs +++ b/sdk/dotnet/GetNdbSla.cs @@ -67,6 +67,34 @@ public static Task InvokeAsync(GetNdbSlaArgs? args = null, Invo /// public static Output Invoke(GetNdbSlaInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbSla:getNdbSla", args ?? new GetNdbSlaInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a SLA in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sla1 = Nutanix.GetNdbSla.Invoke(new() + /// { + /// SlaName = "test-sla", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["sla"] = sla1, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetNdbSlaInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbSla:getNdbSla", args ?? new GetNdbSlaInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbSlas.cs b/sdk/dotnet/GetNdbSlas.cs index 19f7698..d1efe9e 100644 --- a/sdk/dotnet/GetNdbSlas.cs +++ b/sdk/dotnet/GetNdbSlas.cs @@ -61,6 +61,31 @@ public static Task InvokeAsync(InvokeOptions? options = null) /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbSlas:getNdbSlas", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Lists all SLAs in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var slas = Nutanix.GetNdbSlas.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["sla"] = slas, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbSlas:getNdbSlas", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbSnapshot.cs b/sdk/dotnet/GetNdbSnapshot.cs index c4d8ea4..5be8f9e 100644 --- a/sdk/dotnet/GetNdbSnapshot.cs +++ b/sdk/dotnet/GetNdbSnapshot.cs @@ -73,6 +73,37 @@ public static Task InvokeAsync(GetNdbSnapshotArgs args, In /// public static Output Invoke(GetNdbSnapshotInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbSnapshot:getNdbSnapshot", args ?? new GetNdbSnapshotInvokeArgs(), options.WithDefaults()); + + /// + /// Describes the snapshot present in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var snaps = Nutanix.GetNdbSnapshot.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new Nutanix.Inputs.GetNdbSnapshotFilterInputArgs + /// { + /// LoadReplicatedChildSnapshots = "true", + /// }, + /// }, + /// SnapshotId = "{{ snapshot_id }}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNdbSnapshotInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbSnapshot:getNdbSnapshot", args ?? new GetNdbSnapshotInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbSnapshots.cs b/sdk/dotnet/GetNdbSnapshots.cs index c28b448..929d88a 100644 --- a/sdk/dotnet/GetNdbSnapshots.cs +++ b/sdk/dotnet/GetNdbSnapshots.cs @@ -169,6 +169,85 @@ public static Task InvokeAsync(GetNdbSnapshotsArgs? args /// public static Output Invoke(GetNdbSnapshotsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbSnapshots:getNdbSnapshots", args ?? new GetNdbSnapshotsInvokeArgs(), options.WithDefaults()); + + /// + /// List all snapshots present in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var snaps = Nutanix.GetNdbSnapshots.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new Nutanix.Inputs.GetNdbSnapshotsFilterInputArgs + /// { + /// TimeMachineId = "{{ time_machine_id }}", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ## Attribute Reference + /// + /// * `snapshots`: List of snapshots + /// + /// ### snapshots + /// + /// * `id`: name of snapshot + /// * `description`: description of snapshot + /// * `properties`: properties + /// * `owner_id`: owner id + /// * `date_created`: created date + /// * `date_modified`: modified date + /// * `properties`: properties + /// * `tags`: tags + /// * `snapshot_uuid`: snapshot uuid + /// * `nx_cluster_id`: nx cluster id + /// * `protection_domain_id`: protection domain + /// * `parent_snapshot_id`: parent snapshot id + /// * `database_node_id`: database node id + /// * `app_info_version`: App info version + /// * `status`: status + /// * `type`: type + /// * `applicable_types`: Applicable types + /// * `snapshot_timestamp`: snapshot timeStamp + /// * `metadata`: metadata of snapshot + /// * `software_snapshot_id`: software snapshot id + /// * `software_database_snapshot`: software database snapshot + /// * `dbserver_storage_metadata_version`: dbserver storage metadata version + /// * `santised_from_snapshot_id`: sanitized snapshot id + /// * `timezone`: timezone + /// * `processed`: processed + /// * `database_snapshot`: database snapshot + /// * `from_timestamp`: from timestamp + /// * `to_timestamp`: to timestamp + /// * `dbserver_id`: dbserver id + /// * `dbserver_name`: dbserver name + /// * `dbserver_ip`:dbserver ip + /// * `replicated_snapshots`: replicated snapshots + /// * `software_snapshot`: software snapshot + /// * `santised_snapshots`:santised snapshots + /// * `snapshot_family`: snapshot family + /// * `snapshot_timestamp_date`: snapshot timestamp date + /// * `lcm_config`: LCM config + /// * `parent_snapshot`: parent snapshot + /// * `snapshot_size`: snapshot size + /// + /// + /// See detailed information in [NDB Snapshots](https://www.nutanix.dev/api_references/ndb/#/d0b89ff892448-get-list-of-all-snapshots). + /// + public static Output Invoke(GetNdbSnapshotsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbSnapshots:getNdbSnapshots", args ?? new GetNdbSnapshotsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbTag.cs b/sdk/dotnet/GetNdbTag.cs index a59964d..edcac36 100644 --- a/sdk/dotnet/GetNdbTag.cs +++ b/sdk/dotnet/GetNdbTag.cs @@ -59,6 +59,30 @@ public static Task InvokeAsync(GetNdbTagArgs? args = null, Invo /// public static Output Invoke(GetNdbTagInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbTag:getNdbTag", args ?? new GetNdbTagInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a tag in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var tag = Nutanix.GetNdbTag.Invoke(new() + /// { + /// Id = "{{ tag id }}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNdbTagInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbTag:getNdbTag", args ?? new GetNdbTagInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbTags.cs b/sdk/dotnet/GetNdbTags.cs index 8bb318d..7a2e8b8 100644 --- a/sdk/dotnet/GetNdbTags.cs +++ b/sdk/dotnet/GetNdbTags.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(GetNdbTagsArgs? args = null, In /// public static Output Invoke(GetNdbTagsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbTags:getNdbTags", args ?? new GetNdbTagsInvokeArgs(), options.WithDefaults()); + + /// + /// List of tags in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var tags = Nutanix.GetNdbTags.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNdbTagsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbTags:getNdbTags", args ?? new GetNdbTagsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbTimeMachine.cs b/sdk/dotnet/GetNdbTimeMachine.cs index 2b7d68f..0205dcc 100644 --- a/sdk/dotnet/GetNdbTimeMachine.cs +++ b/sdk/dotnet/GetNdbTimeMachine.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetNdbTimeMachineArgs? a /// public static Output Invoke(GetNdbTimeMachineInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbTimeMachine:getNdbTimeMachine", args ?? new GetNdbTimeMachineInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a time machine present in Nutanix Database Service + /// + public static Output Invoke(GetNdbTimeMachineInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbTimeMachine:getNdbTimeMachine", args ?? new GetNdbTimeMachineInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbTimeMachines.cs b/sdk/dotnet/GetNdbTimeMachines.cs index 0ec2f2a..5bd9c3f 100644 --- a/sdk/dotnet/GetNdbTimeMachines.cs +++ b/sdk/dotnet/GetNdbTimeMachines.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(InvokeOptions? options /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbTimeMachines:getNdbTimeMachines", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// List all time machines present in Nutanix Database Service + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var tms = Nutanix.GetNdbTimeMachines.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbTimeMachines:getNdbTimeMachines", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetNdbTmsCapability.cs b/sdk/dotnet/GetNdbTmsCapability.cs index 3c099ae..5cebca4 100644 --- a/sdk/dotnet/GetNdbTmsCapability.cs +++ b/sdk/dotnet/GetNdbTmsCapability.cs @@ -17,6 +17,9 @@ public static Task InvokeAsync(GetNdbTmsCapabilityArg public static Output Invoke(GetNdbTmsCapabilityInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbTmsCapability:getNdbTmsCapability", args ?? new GetNdbTmsCapabilityInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetNdbTmsCapabilityInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNdbTmsCapability:getNdbTmsCapability", args ?? new GetNdbTmsCapabilityInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNetworkSecurityRule.cs b/sdk/dotnet/GetNetworkSecurityRule.cs index d7f5ccb..f4b69bf 100644 --- a/sdk/dotnet/GetNetworkSecurityRule.cs +++ b/sdk/dotnet/GetNetworkSecurityRule.cs @@ -145,6 +145,73 @@ public static Task InvokeAsync(GetNetworkSecurityR /// public static Output Invoke(GetNetworkSecurityRuleInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNetworkSecurityRule:getNetworkSecurityRule", args ?? new GetNetworkSecurityRuleInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a Network security rule + /// + /// > NOTE: The use of network_security_rule is only applicable in AHV clusters and requires Microsegmentation to be enabled. This feature is a function of the Flow product and requires a Flow license. For more information on Flow and Microsegmentation please visit https://www.nutanix.com/products/flow + /// + /// ## Example Usage + /// + /// ### Isolate Development VMs From Production VMs And Get Its Information) + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var isolation = new Nutanix.NetworkSecurityRule("isolation", new() + /// { + /// Description = "Isolation Rule Example", + /// IsolationRuleAction = "APPLY", + /// IsolationRuleFirstEntityFilterKindLists = new[] + /// { + /// "vm", + /// }, + /// IsolationRuleFirstEntityFilterParams = new[] + /// { + /// new Nutanix.Inputs.NetworkSecurityRuleIsolationRuleFirstEntityFilterParamArgs + /// { + /// Name = "Environment", + /// Values = new[] + /// { + /// "Dev", + /// }, + /// }, + /// }, + /// IsolationRuleFirstEntityFilterType = "CATEGORIES_MATCH_ALL", + /// IsolationRuleSecondEntityFilterKindLists = new[] + /// { + /// "vm", + /// }, + /// IsolationRuleSecondEntityFilterParams = new[] + /// { + /// new Nutanix.Inputs.NetworkSecurityRuleIsolationRuleSecondEntityFilterParamArgs + /// { + /// Name = "Environment", + /// Values = new[] + /// { + /// "Production", + /// }, + /// }, + /// }, + /// IsolationRuleSecondEntityFilterType = "CATEGORIES_MATCH_ALL", + /// }); + /// + /// var test = Nutanix.GetNetworkSecurityRule.Invoke(new() + /// { + /// NetworkSecurityRuleId = isolation.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkSecurityRuleInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getNetworkSecurityRule:getNetworkSecurityRule", args ?? new GetNetworkSecurityRuleInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetPbr.cs b/sdk/dotnet/GetPbr.cs index a2a1937..1332b5b 100644 --- a/sdk/dotnet/GetPbr.cs +++ b/sdk/dotnet/GetPbr.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetPbrArgs args, InvokeOptions? opt /// public static Output Invoke(GetPbrInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getPbr:getPbr", args ?? new GetPbrInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve PBR with pbr_uuid . + /// + public static Output Invoke(GetPbrInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getPbr:getPbr", args ?? new GetPbrInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetPbrs.cs b/sdk/dotnet/GetPbrs.cs index 6399c25..4437f9c 100644 --- a/sdk/dotnet/GetPbrs.cs +++ b/sdk/dotnet/GetPbrs.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(GetPbrsArgs? args = null, InvokeOp /// public static Output Invoke(GetPbrsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getPbrs:getPbrs", args ?? new GetPbrsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve all the pbrs. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Nutanix.GetPbrs.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetPbrsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getPbrs:getPbrs", args ?? new GetPbrsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetPermission.cs b/sdk/dotnet/GetPermission.cs index 1a34a3d..4a22763 100644 --- a/sdk/dotnet/GetPermission.cs +++ b/sdk/dotnet/GetPermission.cs @@ -69,6 +69,35 @@ public static Task InvokeAsync(GetPermissionArgs? args = nu /// public static Output Invoke(GetPermissionInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getPermission:getPermission", args ?? new GetPermissionInvokeArgs(), options.WithDefaults()); + + /// + /// Describe a Nutanix Permission and its values (if it has them). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var byuuid = Nutanix.GetPermission.Invoke(new() + /// { + /// PermissionId = "26b81a55-2bca-48c6-9fab-4f82c6bb4284", + /// }); + /// + /// var byname = Nutanix.GetPermission.Invoke(new() + /// { + /// PermissionName = "Access_Console_Virtual_Machine", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetPermissionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getPermission:getPermission", args ?? new GetPermissionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetPermissions.cs b/sdk/dotnet/GetPermissions.cs index 0cb78d5..0749b8b 100644 --- a/sdk/dotnet/GetPermissions.cs +++ b/sdk/dotnet/GetPermissions.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(GetPermissionsArgs? args = /// public static Output Invoke(GetPermissionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getPermissions:getPermissions", args ?? new GetPermissionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve all the permissions. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var permissions = Nutanix.GetPermission.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetPermissionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getPermissions:getPermissions", args ?? new GetPermissionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetProject.cs b/sdk/dotnet/GetProject.cs index e49d310..21e1f70 100644 --- a/sdk/dotnet/GetProject.cs +++ b/sdk/dotnet/GetProject.cs @@ -173,6 +173,87 @@ public static Task InvokeAsync(GetProjectArgs? args = null, In /// public static Output Invoke(GetProjectInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults()); + + /// + /// Describe a Nutanix Project and its values (if it has them). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var subnet = new Nutanix.Subnet("subnet", new() + /// { + /// ClusterUuid = "<YOUR_CLUSTER_ID>", + /// Description = "Description of my unit test VLAN", + /// VlanId = 31, + /// SubnetType = "VLAN", + /// SubnetIp = "10.250.140.0", + /// DefaultGatewayIp = "10.250.140.1", + /// PrefixLength = 24, + /// DhcpOptions = + /// { + /// { "boot_file_name", "bootfile" }, + /// { "domain_name", "nutanix" }, + /// { "tftp_server_name", "10.250.140.200" }, + /// }, + /// DhcpDomainNameServerLists = new[] + /// { + /// "8.8.8.8", + /// "4.2.2.2", + /// }, + /// DhcpDomainSearchLists = new[] + /// { + /// "terraform.nutanix.com", + /// "terraform.unit.test.com", + /// }, + /// }); + /// + /// var projectTest = new Nutanix.Project("projectTest", new() + /// { + /// Description = "This is my project", + /// Categories = new[] + /// { + /// new Nutanix.Inputs.ProjectCategoryArgs + /// { + /// Name = "Environment", + /// Value = "Staging", + /// }, + /// }, + /// ResourceDomain = new Nutanix.Inputs.ProjectResourceDomainArgs + /// { + /// Resources = new[] + /// { + /// new Nutanix.Inputs.ProjectResourceDomainResourceArgs + /// { + /// Limit = 4, + /// ResourceType = "STORAGE", + /// }, + /// }, + /// }, + /// DefaultSubnetReference = new Nutanix.Inputs.ProjectDefaultSubnetReferenceArgs + /// { + /// Uuid = subnet.Metadata.Apply(metadata => metadata.Uuid), + /// }, + /// ApiVersion = "3.1", + /// }); + /// + /// var test = Nutanix.GetProject.Invoke(new() + /// { + /// ProjectId = projectTest.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetProjects.cs b/sdk/dotnet/GetProjects.cs index a0f0dee..5f60f96 100644 --- a/sdk/dotnet/GetProjects.cs +++ b/sdk/dotnet/GetProjects.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(InvokeOptions? options = null) /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getProjects:getProjects", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Describes Projects + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var projects = Nutanix.GetProjects.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getProjects:getProjects", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetProtectionRule.cs b/sdk/dotnet/GetProtectionRule.cs index 55a9322..6385756 100644 --- a/sdk/dotnet/GetProtectionRule.cs +++ b/sdk/dotnet/GetProtectionRule.cs @@ -149,6 +149,75 @@ public static Task InvokeAsync(GetProtectionRuleArgs? a /// public static Output Invoke(GetProtectionRuleInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getProtectionRule:getProtectionRule", args ?? new GetProtectionRuleInvokeArgs(), options.WithDefaults()); + + /// + /// Describe a Nutanix Protection Rule and its values (if it has them). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var protectionRuleTest = new Nutanix.ProtectionRule("protectionRuleTest", new() + /// { + /// Description = "test", + /// OrderedAvailabilityZoneLists = new[] + /// { + /// new Nutanix.Inputs.ProtectionRuleOrderedAvailabilityZoneListArgs + /// { + /// AvailabilityZoneUrl = "ab788130-0820-4d07-a1b5-b0ba4d3a42asd", + /// }, + /// }, + /// AvailabilityZoneConnectivityLists = new[] + /// { + /// new Nutanix.Inputs.ProtectionRuleAvailabilityZoneConnectivityListArgs + /// { + /// SnapshotScheduleLists = new[] + /// { + /// new Nutanix.Inputs.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListArgs + /// { + /// RecoveryPointObjectiveSecs = 3600, + /// SnapshotType = "CRASH_CONSISTENT", + /// LocalSnapshotRetentionPolicy = new Nutanix.Inputs.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListLocalSnapshotRetentionPolicyArgs + /// { + /// NumSnapshots = 1, + /// }, + /// }, + /// }, + /// }, + /// }, + /// CategoryFilter = new Nutanix.Inputs.ProtectionRuleCategoryFilterArgs + /// { + /// Params = new[] + /// { + /// new Nutanix.Inputs.ProtectionRuleCategoryFilterParamArgs + /// { + /// Name = "Environment", + /// Values = new[] + /// { + /// "Dev", + /// }, + /// }, + /// }, + /// }, + /// }); + /// + /// var test = Nutanix.GetProtectionRule.Invoke(new() + /// { + /// ProtectionRuleId = protectionRuleTest.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProtectionRuleInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getProtectionRule:getProtectionRule", args ?? new GetProtectionRuleInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetProtectionRules.cs b/sdk/dotnet/GetProtectionRules.cs index 856288b..07044b2 100644 --- a/sdk/dotnet/GetProtectionRules.cs +++ b/sdk/dotnet/GetProtectionRules.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(InvokeOptions? options /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getProtectionRules:getProtectionRules", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Describes Protection Rules + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var protectionRules = Nutanix.GetProtectionRules.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getProtectionRules:getProtectionRules", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetRecoveryPlan.cs b/sdk/dotnet/GetRecoveryPlan.cs index abde717..a84eaf6 100644 --- a/sdk/dotnet/GetRecoveryPlan.cs +++ b/sdk/dotnet/GetRecoveryPlan.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetRecoveryPlanArgs? args /// public static Output Invoke(GetRecoveryPlanInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getRecoveryPlan:getRecoveryPlan", args ?? new GetRecoveryPlanInvokeArgs(), options.WithDefaults()); + + /// + /// Describe a Nutanix Recovery Plan and its values (if it has them). + /// + public static Output Invoke(GetRecoveryPlanInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getRecoveryPlan:getRecoveryPlan", args ?? new GetRecoveryPlanInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetRecoveryPlans.cs b/sdk/dotnet/GetRecoveryPlans.cs index 74482c0..f149b20 100644 --- a/sdk/dotnet/GetRecoveryPlans.cs +++ b/sdk/dotnet/GetRecoveryPlans.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(InvokeOptions? options = /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getRecoveryPlans:getRecoveryPlans", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Describes Recovery Plans + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var recoveryPlans = Nutanix.GetRecoveryPlans.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getRecoveryPlans:getRecoveryPlans", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetRole.cs b/sdk/dotnet/GetRole.cs index 30ad994..d5ba5bc 100644 --- a/sdk/dotnet/GetRole.cs +++ b/sdk/dotnet/GetRole.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetRoleArgs? args = null, InvokeOp /// public static Output Invoke(GetRoleInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getRole:getRole", args ?? new GetRoleInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a Role. + /// + public static Output Invoke(GetRoleInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getRole:getRole", args ?? new GetRoleInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetRoles.cs b/sdk/dotnet/GetRoles.cs index 344a750..27d50cb 100644 --- a/sdk/dotnet/GetRoles.cs +++ b/sdk/dotnet/GetRoles.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(GetRolesArgs? args = null, Invoke /// public static Output Invoke(GetRolesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getRoles:getRoles", args ?? new GetRolesInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a list of roles. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Nutanix.GetRoles.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRolesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getRoles:getRoles", args ?? new GetRolesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetServiceGroup.cs b/sdk/dotnet/GetServiceGroup.cs index b7ed013..5711e89 100644 --- a/sdk/dotnet/GetServiceGroup.cs +++ b/sdk/dotnet/GetServiceGroup.cs @@ -17,6 +17,9 @@ public static Task InvokeAsync(GetServiceGroupArgs args, public static Output Invoke(GetServiceGroupInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getServiceGroup:getServiceGroup", args ?? new GetServiceGroupInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetServiceGroupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getServiceGroup:getServiceGroup", args ?? new GetServiceGroupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetServiceGroups.cs b/sdk/dotnet/GetServiceGroups.cs index 627e7b3..fd88d3e 100644 --- a/sdk/dotnet/GetServiceGroups.cs +++ b/sdk/dotnet/GetServiceGroups.cs @@ -17,6 +17,9 @@ public static Task InvokeAsync(GetServiceGroupsArgs? arg public static Output Invoke(GetServiceGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getServiceGroups:getServiceGroups", args ?? new GetServiceGroupsInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetServiceGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getServiceGroups:getServiceGroups", args ?? new GetServiceGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetStaticRoutes.cs b/sdk/dotnet/GetStaticRoutes.cs index b75a923..a36e0df 100644 --- a/sdk/dotnet/GetStaticRoutes.cs +++ b/sdk/dotnet/GetStaticRoutes.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetStaticRoutesArgs? args /// public static Output Invoke(GetStaticRoutesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getStaticRoutes:getStaticRoutes", args ?? new GetStaticRoutesInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve static routes within VPCs given vpc_uuid. + /// + public static Output Invoke(GetStaticRoutesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getStaticRoutes:getStaticRoutes", args ?? new GetStaticRoutesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSubnet.cs b/sdk/dotnet/GetSubnet.cs index 314973c..3b90cb0 100644 --- a/sdk/dotnet/GetSubnet.cs +++ b/sdk/dotnet/GetSubnet.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetSubnetArgs? args = null, Invo /// public static Output Invoke(GetSubnetInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getSubnet:getSubnet", args ?? new GetSubnetInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a resource to create a subnet based on the input parameters. A subnet is a block of IP addresses. + /// + public static Output Invoke(GetSubnetInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getSubnet:getSubnet", args ?? new GetSubnetInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSubnets.cs b/sdk/dotnet/GetSubnets.cs index ac559cf..9d35cbf 100644 --- a/sdk/dotnet/GetSubnets.cs +++ b/sdk/dotnet/GetSubnets.cs @@ -75,6 +75,38 @@ public static Task InvokeAsync(GetSubnetsArgs? args = null, In /// public static Output Invoke(GetSubnetsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getSubnets:getSubnets", args ?? new GetSubnetsInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a list of subnets + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var subnets = Nutanix.GetSubnets.Invoke(); + /// + /// var test = Nutanix.GetSubnets.Invoke(new() + /// { + /// Metadatas = new[] + /// { + /// new Nutanix.Inputs.GetSubnetsMetadataInputArgs + /// { + /// Filter = "name==vlan0_test_2", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSubnetsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getSubnets:getSubnets", args ?? new GetSubnetsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetUser.cs b/sdk/dotnet/GetUser.cs index 2e25b97..925b73e 100644 --- a/sdk/dotnet/GetUser.cs +++ b/sdk/dotnet/GetUser.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetUserArgs? args = null, InvokeOp /// public static Output Invoke(GetUserInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getUser:getUser", args ?? new GetUserInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve a user based on the input parameters. + /// + public static Output Invoke(GetUserInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getUser:getUser", args ?? new GetUserInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetUserGroup.cs b/sdk/dotnet/GetUserGroup.cs index b49ad7c..7cb09a7 100644 --- a/sdk/dotnet/GetUserGroup.cs +++ b/sdk/dotnet/GetUserGroup.cs @@ -79,6 +79,40 @@ public static Task InvokeAsync(GetUserGroupArgs? args = null /// public static Output Invoke(GetUserGroupInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getUserGroup:getUserGroup", args ?? new GetUserGroupInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve a user group based on the input parameters. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var usergroup = Nutanix.GetUserGroup.Invoke(new() + /// { + /// UserGroupId = "dd30a856-8e72-4158-b716-98455ceda220", + /// }); + /// + /// var usergroupbyname = Nutanix.GetUserGroup.Invoke(new() + /// { + /// UserGroupName = "example-group-1", + /// }); + /// + /// var test = Nutanix.GetUserGroup.Invoke(new() + /// { + /// UserGroupDistinguishedName = "cn=example-group-1,cn=users,dc=ntnxlab,dc=local", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetUserGroupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getUserGroup:getUserGroup", args ?? new GetUserGroupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetUserGroups.cs b/sdk/dotnet/GetUserGroups.cs index e098c42..ec3822a 100644 --- a/sdk/dotnet/GetUserGroups.cs +++ b/sdk/dotnet/GetUserGroups.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(GetUserGroupsArgs? args = nu /// public static Output Invoke(GetUserGroupsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getUserGroups:getUserGroups", args ?? new GetUserGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve all the user groups. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var usergroups = Nutanix.GetUserGroups.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetUserGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getUserGroups:getUserGroups", args ?? new GetUserGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetUsers.cs b/sdk/dotnet/GetUsers.cs index a7dd91f..5b8da14 100644 --- a/sdk/dotnet/GetUsers.cs +++ b/sdk/dotnet/GetUsers.cs @@ -79,6 +79,40 @@ public static Task InvokeAsync(GetUsersArgs? args = null, Invoke /// public static Output Invoke(GetUsersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve all the users. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = PiersKarsenbarg.Nutanix; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var user = new Nutanix.User("user", new() + /// { + /// DirectoryServiceUser = new Nutanix.Inputs.UserDirectoryServiceUserArgs + /// { + /// DirectoryServiceReference = new Nutanix.Inputs.UserDirectoryServiceUserDirectoryServiceReferenceArgs + /// { + /// Uuid = "<directory-service-uuid>", + /// }, + /// UserPrincipalName = "test-user@ntnxlab.local", + /// }, + /// }); + /// + /// var users = Nutanix.GetUser.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetUsersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetVirtualMachine.cs b/sdk/dotnet/GetVirtualMachine.cs index 0744bdc..cd4a9ed 100644 --- a/sdk/dotnet/GetVirtualMachine.cs +++ b/sdk/dotnet/GetVirtualMachine.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetVirtualMachineArgs ar /// public static Output Invoke(GetVirtualMachineInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getVirtualMachine:getVirtualMachine", args ?? new GetVirtualMachineInvokeArgs(), options.WithDefaults()); + + /// + /// Describes a Virtual Machine + /// + public static Output Invoke(GetVirtualMachineInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getVirtualMachine:getVirtualMachine", args ?? new GetVirtualMachineInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetVpc.cs b/sdk/dotnet/GetVpc.cs index 9deaf5a..378b4f6 100644 --- a/sdk/dotnet/GetVpc.cs +++ b/sdk/dotnet/GetVpc.cs @@ -23,6 +23,12 @@ public static Task InvokeAsync(GetVpcArgs? args = null, InvokeOpti /// public static Output Invoke(GetVpcInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getVpc:getVpc", args ?? new GetVpcInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve VPC with vpc_uuid or vpc_name . + /// + public static Output Invoke(GetVpcInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getVpc:getVpc", args ?? new GetVpcInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetVpcs.cs b/sdk/dotnet/GetVpcs.cs index b840be5..b37be81 100644 --- a/sdk/dotnet/GetVpcs.cs +++ b/sdk/dotnet/GetVpcs.cs @@ -53,6 +53,27 @@ public static Task InvokeAsync(GetVpcsArgs? args = null, InvokeOp /// public static Output Invoke(GetVpcsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getVpcs:getVpcs", args ?? new GetVpcsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides a datasource to retrieve all the vpcs. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nutanix = Pulumi.Nutanix; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Nutanix.GetVpcs.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetVpcsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("nutanix:index/getVpcs:getVpcs", args ?? new GetVpcsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs index e59be8b..f2c5418 100644 --- a/sdk/dotnet/Utilities.cs +++ b/sdk/dotnet/Utilities.cs @@ -57,6 +57,14 @@ static class Utilities return dst; } + public static global::Pulumi.InvokeOutputOptions WithDefaults(this global::Pulumi.InvokeOutputOptions? src) + { + var dst = src ?? new global::Pulumi.InvokeOutputOptions{}; + dst.Version = src?.Version ?? Version; + dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github://api.github.com/pierskarsenbarg/pulumi-nutanix"; + return dst; + } + private readonly static string version; public static string Version => version; diff --git a/sdk/go/nutanix/getAccessControlPolicies.go b/sdk/go/nutanix/getAccessControlPolicies.go index a9ee1fa..120c9d4 100644 --- a/sdk/go/nutanix/getAccessControlPolicies.go +++ b/sdk/go/nutanix/getAccessControlPolicies.go @@ -43,21 +43,11 @@ type GetAccessControlPoliciesResult struct { } func GetAccessControlPoliciesOutput(ctx *pulumi.Context, args GetAccessControlPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetAccessControlPoliciesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccessControlPoliciesResultOutput, error) { args := v.(GetAccessControlPoliciesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccessControlPoliciesResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getAccessControlPolicies:getAccessControlPolicies", args, &rv, "", opts...) - if err != nil { - return GetAccessControlPoliciesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccessControlPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccessControlPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getAccessControlPolicies:getAccessControlPolicies", args, GetAccessControlPoliciesResultOutput{}, options).(GetAccessControlPoliciesResultOutput), nil }).(GetAccessControlPoliciesResultOutput) } diff --git a/sdk/go/nutanix/getAccessControlPolicy.go b/sdk/go/nutanix/getAccessControlPolicy.go index 015a5ad..c5d561e 100644 --- a/sdk/go/nutanix/getAccessControlPolicy.go +++ b/sdk/go/nutanix/getAccessControlPolicy.go @@ -63,21 +63,11 @@ type LookupAccessControlPolicyResult struct { } func LookupAccessControlPolicyOutput(ctx *pulumi.Context, args LookupAccessControlPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAccessControlPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAccessControlPolicyResultOutput, error) { args := v.(LookupAccessControlPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAccessControlPolicyResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getAccessControlPolicy:getAccessControlPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAccessControlPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAccessControlPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAccessControlPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getAccessControlPolicy:getAccessControlPolicy", args, LookupAccessControlPolicyResultOutput{}, options).(LookupAccessControlPolicyResultOutput), nil }).(LookupAccessControlPolicyResultOutput) } diff --git a/sdk/go/nutanix/getAddressGroup.go b/sdk/go/nutanix/getAddressGroup.go index 32d3378..5a361ba 100644 --- a/sdk/go/nutanix/getAddressGroup.go +++ b/sdk/go/nutanix/getAddressGroup.go @@ -80,21 +80,11 @@ type LookupAddressGroupResult struct { } func LookupAddressGroupOutput(ctx *pulumi.Context, args LookupAddressGroupOutputArgs, opts ...pulumi.InvokeOption) LookupAddressGroupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAddressGroupResultOutput, error) { args := v.(LookupAddressGroupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAddressGroupResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getAddressGroup:getAddressGroup", args, &rv, "", opts...) - if err != nil { - return LookupAddressGroupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAddressGroupResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAddressGroupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getAddressGroup:getAddressGroup", args, LookupAddressGroupResultOutput{}, options).(LookupAddressGroupResultOutput), nil }).(LookupAddressGroupResultOutput) } diff --git a/sdk/go/nutanix/getAddressGroups.go b/sdk/go/nutanix/getAddressGroups.go index 2e4de6f..f337ec4 100644 --- a/sdk/go/nutanix/getAddressGroups.go +++ b/sdk/go/nutanix/getAddressGroups.go @@ -63,21 +63,11 @@ type GetAddressGroupsResult struct { } func GetAddressGroupsOutput(ctx *pulumi.Context, args GetAddressGroupsOutputArgs, opts ...pulumi.InvokeOption) GetAddressGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAddressGroupsResultOutput, error) { args := v.(GetAddressGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAddressGroupsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getAddressGroups:getAddressGroups", args, &rv, "", opts...) - if err != nil { - return GetAddressGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAddressGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAddressGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getAddressGroups:getAddressGroups", args, GetAddressGroupsResultOutput{}, options).(GetAddressGroupsResultOutput), nil }).(GetAddressGroupsResultOutput) } diff --git a/sdk/go/nutanix/getAssertHelper.go b/sdk/go/nutanix/getAssertHelper.go index afdab14..c543742 100644 --- a/sdk/go/nutanix/getAssertHelper.go +++ b/sdk/go/nutanix/getAssertHelper.go @@ -34,21 +34,11 @@ type GetAssertHelperResult struct { } func GetAssertHelperOutput(ctx *pulumi.Context, args GetAssertHelperOutputArgs, opts ...pulumi.InvokeOption) GetAssertHelperResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAssertHelperResultOutput, error) { args := v.(GetAssertHelperArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAssertHelperResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getAssertHelper:getAssertHelper", args, &rv, "", opts...) - if err != nil { - return GetAssertHelperResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAssertHelperResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAssertHelperResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getAssertHelper:getAssertHelper", args, GetAssertHelperResultOutput{}, options).(GetAssertHelperResultOutput), nil }).(GetAssertHelperResultOutput) } diff --git a/sdk/go/nutanix/getCategoryKey.go b/sdk/go/nutanix/getCategoryKey.go index 8eef65c..afa6a1f 100644 --- a/sdk/go/nutanix/getCategoryKey.go +++ b/sdk/go/nutanix/getCategoryKey.go @@ -44,21 +44,11 @@ type LookupCategoryKeyResult struct { } func LookupCategoryKeyOutput(ctx *pulumi.Context, args LookupCategoryKeyOutputArgs, opts ...pulumi.InvokeOption) LookupCategoryKeyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCategoryKeyResultOutput, error) { args := v.(LookupCategoryKeyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupCategoryKeyResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getCategoryKey:getCategoryKey", args, &rv, "", opts...) - if err != nil { - return LookupCategoryKeyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupCategoryKeyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupCategoryKeyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getCategoryKey:getCategoryKey", args, LookupCategoryKeyResultOutput{}, options).(LookupCategoryKeyResultOutput), nil }).(LookupCategoryKeyResultOutput) } diff --git a/sdk/go/nutanix/getCluster.go b/sdk/go/nutanix/getCluster.go index 6bde72f..750d7e5 100644 --- a/sdk/go/nutanix/getCluster.go +++ b/sdk/go/nutanix/getCluster.go @@ -135,21 +135,11 @@ type GetClusterResult struct { } func GetClusterOutput(ctx *pulumi.Context, args GetClusterOutputArgs, opts ...pulumi.InvokeOption) GetClusterResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClusterResultOutput, error) { args := v.(GetClusterArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClusterResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getCluster:getCluster", args, &rv, "", opts...) - if err != nil { - return GetClusterResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClusterResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClusterResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getCluster:getCluster", args, GetClusterResultOutput{}, options).(GetClusterResultOutput), nil }).(GetClusterResultOutput) } diff --git a/sdk/go/nutanix/getClusters.go b/sdk/go/nutanix/getClusters.go index fe5f5bc..668a3a8 100644 --- a/sdk/go/nutanix/getClusters.go +++ b/sdk/go/nutanix/getClusters.go @@ -75,18 +75,8 @@ type GetClustersResult struct { func GetClustersOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetClustersResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetClustersResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClustersResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getClusters:getClusters", nil, &rv, "", opts...) - if err != nil { - return GetClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getClusters:getClusters", nil, GetClustersResultOutput{}, options).(GetClustersResultOutput), nil }).(GetClustersResultOutput) } diff --git a/sdk/go/nutanix/getFloatingIp.go b/sdk/go/nutanix/getFloatingIp.go index fe7a63a..e71f245 100644 --- a/sdk/go/nutanix/getFloatingIp.go +++ b/sdk/go/nutanix/getFloatingIp.go @@ -44,21 +44,11 @@ type LookupFloatingIpResult struct { } func LookupFloatingIpOutput(ctx *pulumi.Context, args LookupFloatingIpOutputArgs, opts ...pulumi.InvokeOption) LookupFloatingIpResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFloatingIpResultOutput, error) { args := v.(LookupFloatingIpArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFloatingIpResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getFloatingIp:getFloatingIp", args, &rv, "", opts...) - if err != nil { - return LookupFloatingIpResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFloatingIpResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFloatingIpResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getFloatingIp:getFloatingIp", args, LookupFloatingIpResultOutput{}, options).(LookupFloatingIpResultOutput), nil }).(LookupFloatingIpResultOutput) } diff --git a/sdk/go/nutanix/getFloatingIps.go b/sdk/go/nutanix/getFloatingIps.go index 2a65e60..78af591 100644 --- a/sdk/go/nutanix/getFloatingIps.go +++ b/sdk/go/nutanix/getFloatingIps.go @@ -65,21 +65,11 @@ type GetFloatingIpsResult struct { } func GetFloatingIpsOutput(ctx *pulumi.Context, args GetFloatingIpsOutputArgs, opts ...pulumi.InvokeOption) GetFloatingIpsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFloatingIpsResultOutput, error) { args := v.(GetFloatingIpsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFloatingIpsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getFloatingIps:getFloatingIps", args, &rv, "", opts...) - if err != nil { - return GetFloatingIpsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFloatingIpsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFloatingIpsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getFloatingIps:getFloatingIps", args, GetFloatingIpsResultOutput{}, options).(GetFloatingIpsResultOutput), nil }).(GetFloatingIpsResultOutput) } diff --git a/sdk/go/nutanix/getFoundationCentralApiKeys.go b/sdk/go/nutanix/getFoundationCentralApiKeys.go index 58f5e53..6f467a4 100644 --- a/sdk/go/nutanix/getFoundationCentralApiKeys.go +++ b/sdk/go/nutanix/getFoundationCentralApiKeys.go @@ -71,21 +71,11 @@ type LookupFoundationCentralApiKeysResult struct { } func LookupFoundationCentralApiKeysOutput(ctx *pulumi.Context, args LookupFoundationCentralApiKeysOutputArgs, opts ...pulumi.InvokeOption) LookupFoundationCentralApiKeysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFoundationCentralApiKeysResultOutput, error) { args := v.(LookupFoundationCentralApiKeysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFoundationCentralApiKeysResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getFoundationCentralApiKeys:getFoundationCentralApiKeys", args, &rv, "", opts...) - if err != nil { - return LookupFoundationCentralApiKeysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFoundationCentralApiKeysResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFoundationCentralApiKeysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getFoundationCentralApiKeys:getFoundationCentralApiKeys", args, LookupFoundationCentralApiKeysResultOutput{}, options).(LookupFoundationCentralApiKeysResultOutput), nil }).(LookupFoundationCentralApiKeysResultOutput) } diff --git a/sdk/go/nutanix/getFoundationCentralClusterDetails.go b/sdk/go/nutanix/getFoundationCentralClusterDetails.go index 43a3d16..24fb07f 100644 --- a/sdk/go/nutanix/getFoundationCentralClusterDetails.go +++ b/sdk/go/nutanix/getFoundationCentralClusterDetails.go @@ -107,21 +107,11 @@ type GetFoundationCentralClusterDetailsResult struct { } func GetFoundationCentralClusterDetailsOutput(ctx *pulumi.Context, args GetFoundationCentralClusterDetailsOutputArgs, opts ...pulumi.InvokeOption) GetFoundationCentralClusterDetailsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFoundationCentralClusterDetailsResultOutput, error) { args := v.(GetFoundationCentralClusterDetailsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFoundationCentralClusterDetailsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getFoundationCentralClusterDetails:getFoundationCentralClusterDetails", args, &rv, "", opts...) - if err != nil { - return GetFoundationCentralClusterDetailsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFoundationCentralClusterDetailsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFoundationCentralClusterDetailsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getFoundationCentralClusterDetails:getFoundationCentralClusterDetails", args, GetFoundationCentralClusterDetailsResultOutput{}, options).(GetFoundationCentralClusterDetailsResultOutput), nil }).(GetFoundationCentralClusterDetailsResultOutput) } diff --git a/sdk/go/nutanix/getFoundationCentralImagedClustersList.go b/sdk/go/nutanix/getFoundationCentralImagedClustersList.go index 2603e00..4e21f58 100644 --- a/sdk/go/nutanix/getFoundationCentralImagedClustersList.go +++ b/sdk/go/nutanix/getFoundationCentralImagedClustersList.go @@ -69,21 +69,11 @@ type GetFoundationCentralImagedClustersListResult struct { } func GetFoundationCentralImagedClustersListOutput(ctx *pulumi.Context, args GetFoundationCentralImagedClustersListOutputArgs, opts ...pulumi.InvokeOption) GetFoundationCentralImagedClustersListResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFoundationCentralImagedClustersListResultOutput, error) { args := v.(GetFoundationCentralImagedClustersListArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFoundationCentralImagedClustersListResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getFoundationCentralImagedClustersList:getFoundationCentralImagedClustersList", args, &rv, "", opts...) - if err != nil { - return GetFoundationCentralImagedClustersListResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFoundationCentralImagedClustersListResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFoundationCentralImagedClustersListResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getFoundationCentralImagedClustersList:getFoundationCentralImagedClustersList", args, GetFoundationCentralImagedClustersListResultOutput{}, options).(GetFoundationCentralImagedClustersListResultOutput), nil }).(GetFoundationCentralImagedClustersListResultOutput) } diff --git a/sdk/go/nutanix/getFoundationCentralImagedNodeDetails.go b/sdk/go/nutanix/getFoundationCentralImagedNodeDetails.go index 8b22720..b20c9b7 100644 --- a/sdk/go/nutanix/getFoundationCentralImagedNodeDetails.go +++ b/sdk/go/nutanix/getFoundationCentralImagedNodeDetails.go @@ -133,21 +133,11 @@ type GetFoundationCentralImagedNodeDetailsResult struct { } func GetFoundationCentralImagedNodeDetailsOutput(ctx *pulumi.Context, args GetFoundationCentralImagedNodeDetailsOutputArgs, opts ...pulumi.InvokeOption) GetFoundationCentralImagedNodeDetailsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFoundationCentralImagedNodeDetailsResultOutput, error) { args := v.(GetFoundationCentralImagedNodeDetailsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFoundationCentralImagedNodeDetailsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getFoundationCentralImagedNodeDetails:getFoundationCentralImagedNodeDetails", args, &rv, "", opts...) - if err != nil { - return GetFoundationCentralImagedNodeDetailsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFoundationCentralImagedNodeDetailsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFoundationCentralImagedNodeDetailsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getFoundationCentralImagedNodeDetails:getFoundationCentralImagedNodeDetails", args, GetFoundationCentralImagedNodeDetailsResultOutput{}, options).(GetFoundationCentralImagedNodeDetailsResultOutput), nil }).(GetFoundationCentralImagedNodeDetailsResultOutput) } diff --git a/sdk/go/nutanix/getFoundationCentralImagedNodesList.go b/sdk/go/nutanix/getFoundationCentralImagedNodesList.go index 7c48164..f3f175b 100644 --- a/sdk/go/nutanix/getFoundationCentralImagedNodesList.go +++ b/sdk/go/nutanix/getFoundationCentralImagedNodesList.go @@ -70,21 +70,11 @@ type GetFoundationCentralImagedNodesListResult struct { } func GetFoundationCentralImagedNodesListOutput(ctx *pulumi.Context, args GetFoundationCentralImagedNodesListOutputArgs, opts ...pulumi.InvokeOption) GetFoundationCentralImagedNodesListResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFoundationCentralImagedNodesListResultOutput, error) { args := v.(GetFoundationCentralImagedNodesListArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFoundationCentralImagedNodesListResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getFoundationCentralImagedNodesList:getFoundationCentralImagedNodesList", args, &rv, "", opts...) - if err != nil { - return GetFoundationCentralImagedNodesListResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFoundationCentralImagedNodesListResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFoundationCentralImagedNodesListResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getFoundationCentralImagedNodesList:getFoundationCentralImagedNodesList", args, GetFoundationCentralImagedNodesListResultOutput{}, options).(GetFoundationCentralImagedNodesListResultOutput), nil }).(GetFoundationCentralImagedNodesListResultOutput) } diff --git a/sdk/go/nutanix/getFoundationCentralListApiKeys.go b/sdk/go/nutanix/getFoundationCentralListApiKeys.go index d9f912a..bd6ce39 100644 --- a/sdk/go/nutanix/getFoundationCentralListApiKeys.go +++ b/sdk/go/nutanix/getFoundationCentralListApiKeys.go @@ -70,21 +70,11 @@ type GetFoundationCentralListApiKeysResult struct { } func GetFoundationCentralListApiKeysOutput(ctx *pulumi.Context, args GetFoundationCentralListApiKeysOutputArgs, opts ...pulumi.InvokeOption) GetFoundationCentralListApiKeysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFoundationCentralListApiKeysResultOutput, error) { args := v.(GetFoundationCentralListApiKeysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFoundationCentralListApiKeysResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getFoundationCentralListApiKeys:getFoundationCentralListApiKeys", args, &rv, "", opts...) - if err != nil { - return GetFoundationCentralListApiKeysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFoundationCentralListApiKeysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFoundationCentralListApiKeysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getFoundationCentralListApiKeys:getFoundationCentralListApiKeys", args, GetFoundationCentralListApiKeysResultOutput{}, options).(GetFoundationCentralListApiKeysResultOutput), nil }).(GetFoundationCentralListApiKeysResultOutput) } diff --git a/sdk/go/nutanix/getFoundationDiscoverNodes.go b/sdk/go/nutanix/getFoundationDiscoverNodes.go index 4c177b1..ea5a312 100644 --- a/sdk/go/nutanix/getFoundationDiscoverNodes.go +++ b/sdk/go/nutanix/getFoundationDiscoverNodes.go @@ -56,18 +56,8 @@ type GetFoundationDiscoverNodesResult struct { func GetFoundationDiscoverNodesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetFoundationDiscoverNodesResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetFoundationDiscoverNodesResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFoundationDiscoverNodesResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getFoundationDiscoverNodes:getFoundationDiscoverNodes", nil, &rv, "", opts...) - if err != nil { - return GetFoundationDiscoverNodesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFoundationDiscoverNodesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFoundationDiscoverNodesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getFoundationDiscoverNodes:getFoundationDiscoverNodes", nil, GetFoundationDiscoverNodesResultOutput{}, options).(GetFoundationDiscoverNodesResultOutput), nil }).(GetFoundationDiscoverNodesResultOutput) } diff --git a/sdk/go/nutanix/getFoundationHypervisorIsos.go b/sdk/go/nutanix/getFoundationHypervisorIsos.go index 62dd76d..7303d3d 100644 --- a/sdk/go/nutanix/getFoundationHypervisorIsos.go +++ b/sdk/go/nutanix/getFoundationHypervisorIsos.go @@ -70,18 +70,8 @@ type GetFoundationHypervisorIsosResult struct { func GetFoundationHypervisorIsosOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetFoundationHypervisorIsosResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetFoundationHypervisorIsosResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFoundationHypervisorIsosResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getFoundationHypervisorIsos:getFoundationHypervisorIsos", nil, &rv, "", opts...) - if err != nil { - return GetFoundationHypervisorIsosResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFoundationHypervisorIsosResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFoundationHypervisorIsosResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getFoundationHypervisorIsos:getFoundationHypervisorIsos", nil, GetFoundationHypervisorIsosResultOutput{}, options).(GetFoundationHypervisorIsosResultOutput), nil }).(GetFoundationHypervisorIsosResultOutput) } diff --git a/sdk/go/nutanix/getFoundationNodeNetworkDetails.go b/sdk/go/nutanix/getFoundationNodeNetworkDetails.go index 706eac1..1e28a7f 100644 --- a/sdk/go/nutanix/getFoundationNodeNetworkDetails.go +++ b/sdk/go/nutanix/getFoundationNodeNetworkDetails.go @@ -71,21 +71,11 @@ type GetFoundationNodeNetworkDetailsResult struct { } func GetFoundationNodeNetworkDetailsOutput(ctx *pulumi.Context, args GetFoundationNodeNetworkDetailsOutputArgs, opts ...pulumi.InvokeOption) GetFoundationNodeNetworkDetailsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFoundationNodeNetworkDetailsResultOutput, error) { args := v.(GetFoundationNodeNetworkDetailsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFoundationNodeNetworkDetailsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getFoundationNodeNetworkDetails:getFoundationNodeNetworkDetails", args, &rv, "", opts...) - if err != nil { - return GetFoundationNodeNetworkDetailsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFoundationNodeNetworkDetailsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFoundationNodeNetworkDetailsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getFoundationNodeNetworkDetails:getFoundationNodeNetworkDetails", args, GetFoundationNodeNetworkDetailsResultOutput{}, options).(GetFoundationNodeNetworkDetailsResultOutput), nil }).(GetFoundationNodeNetworkDetailsResultOutput) } diff --git a/sdk/go/nutanix/getFoundationNosPackages.go b/sdk/go/nutanix/getFoundationNosPackages.go index 87fb079..38e10ef 100644 --- a/sdk/go/nutanix/getFoundationNosPackages.go +++ b/sdk/go/nutanix/getFoundationNosPackages.go @@ -62,18 +62,8 @@ type GetFoundationNosPackagesResult struct { func GetFoundationNosPackagesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetFoundationNosPackagesResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetFoundationNosPackagesResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFoundationNosPackagesResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getFoundationNosPackages:getFoundationNosPackages", nil, &rv, "", opts...) - if err != nil { - return GetFoundationNosPackagesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFoundationNosPackagesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFoundationNosPackagesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getFoundationNosPackages:getFoundationNosPackages", nil, GetFoundationNosPackagesResultOutput{}, options).(GetFoundationNosPackagesResultOutput), nil }).(GetFoundationNosPackagesResultOutput) } diff --git a/sdk/go/nutanix/getHost.go b/sdk/go/nutanix/getHost.go index 472abea..4ebd76a 100644 --- a/sdk/go/nutanix/getHost.go +++ b/sdk/go/nutanix/getHost.go @@ -89,21 +89,11 @@ type GetHostResult struct { } func GetHostOutput(ctx *pulumi.Context, args GetHostOutputArgs, opts ...pulumi.InvokeOption) GetHostResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHostResultOutput, error) { args := v.(GetHostArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHostResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getHost:getHost", args, &rv, "", opts...) - if err != nil { - return GetHostResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHostResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHostResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getHost:getHost", args, GetHostResultOutput{}, options).(GetHostResultOutput), nil }).(GetHostResultOutput) } diff --git a/sdk/go/nutanix/getHosts.go b/sdk/go/nutanix/getHosts.go index 6e73b7a..ec4b291 100644 --- a/sdk/go/nutanix/getHosts.go +++ b/sdk/go/nutanix/getHosts.go @@ -34,18 +34,8 @@ type GetHostsResult struct { func GetHostsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetHostsResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetHostsResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHostsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getHosts:getHosts", nil, &rv, "", opts...) - if err != nil { - return GetHostsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHostsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHostsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getHosts:getHosts", nil, GetHostsResultOutput{}, options).(GetHostsResultOutput), nil }).(GetHostsResultOutput) } diff --git a/sdk/go/nutanix/getImage.go b/sdk/go/nutanix/getImage.go index 9350826..666db04 100644 --- a/sdk/go/nutanix/getImage.go +++ b/sdk/go/nutanix/getImage.go @@ -76,21 +76,11 @@ type LookupImageResult struct { } func LookupImageOutput(ctx *pulumi.Context, args LookupImageOutputArgs, opts ...pulumi.InvokeOption) LookupImageResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupImageResultOutput, error) { args := v.(LookupImageArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupImageResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getImage:getImage", args, &rv, "", opts...) - if err != nil { - return LookupImageResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupImageResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupImageResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getImage:getImage", args, LookupImageResultOutput{}, options).(LookupImageResultOutput), nil }).(LookupImageResultOutput) } diff --git a/sdk/go/nutanix/getKarbonCluster.go b/sdk/go/nutanix/getKarbonCluster.go index fa0d00b..2e0f3e1 100644 --- a/sdk/go/nutanix/getKarbonCluster.go +++ b/sdk/go/nutanix/getKarbonCluster.go @@ -78,21 +78,11 @@ type LookupKarbonClusterResult struct { } func LookupKarbonClusterOutput(ctx *pulumi.Context, args LookupKarbonClusterOutputArgs, opts ...pulumi.InvokeOption) LookupKarbonClusterResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupKarbonClusterResultOutput, error) { args := v.(LookupKarbonClusterArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupKarbonClusterResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getKarbonCluster:getKarbonCluster", args, &rv, "", opts...) - if err != nil { - return LookupKarbonClusterResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupKarbonClusterResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupKarbonClusterResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getKarbonCluster:getKarbonCluster", args, LookupKarbonClusterResultOutput{}, options).(LookupKarbonClusterResultOutput), nil }).(LookupKarbonClusterResultOutput) } diff --git a/sdk/go/nutanix/getKarbonClusterKubeConfig.go b/sdk/go/nutanix/getKarbonClusterKubeConfig.go index ad4faca..84c41d1 100644 --- a/sdk/go/nutanix/getKarbonClusterKubeConfig.go +++ b/sdk/go/nutanix/getKarbonClusterKubeConfig.go @@ -75,21 +75,11 @@ type GetKarbonClusterKubeConfigResult struct { } func GetKarbonClusterKubeConfigOutput(ctx *pulumi.Context, args GetKarbonClusterKubeConfigOutputArgs, opts ...pulumi.InvokeOption) GetKarbonClusterKubeConfigResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKarbonClusterKubeConfigResultOutput, error) { args := v.(GetKarbonClusterKubeConfigArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKarbonClusterKubeConfigResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getKarbonClusterKubeConfig:getKarbonClusterKubeConfig", args, &rv, "", opts...) - if err != nil { - return GetKarbonClusterKubeConfigResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKarbonClusterKubeConfigResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKarbonClusterKubeConfigResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getKarbonClusterKubeConfig:getKarbonClusterKubeConfig", args, GetKarbonClusterKubeConfigResultOutput{}, options).(GetKarbonClusterKubeConfigResultOutput), nil }).(GetKarbonClusterKubeConfigResultOutput) } diff --git a/sdk/go/nutanix/getKarbonClusterSsh.go b/sdk/go/nutanix/getKarbonClusterSsh.go index baaf1c8..2386b79 100644 --- a/sdk/go/nutanix/getKarbonClusterSsh.go +++ b/sdk/go/nutanix/getKarbonClusterSsh.go @@ -79,21 +79,11 @@ type GetKarbonClusterSshResult struct { } func GetKarbonClusterSshOutput(ctx *pulumi.Context, args GetKarbonClusterSshOutputArgs, opts ...pulumi.InvokeOption) GetKarbonClusterSshResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKarbonClusterSshResultOutput, error) { args := v.(GetKarbonClusterSshArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKarbonClusterSshResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getKarbonClusterSsh:getKarbonClusterSsh", args, &rv, "", opts...) - if err != nil { - return GetKarbonClusterSshResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKarbonClusterSshResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKarbonClusterSshResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getKarbonClusterSsh:getKarbonClusterSsh", args, GetKarbonClusterSshResultOutput{}, options).(GetKarbonClusterSshResultOutput), nil }).(GetKarbonClusterSshResultOutput) } diff --git a/sdk/go/nutanix/getKarbonClusters.go b/sdk/go/nutanix/getKarbonClusters.go index 4de3254..1fee827 100644 --- a/sdk/go/nutanix/getKarbonClusters.go +++ b/sdk/go/nutanix/getKarbonClusters.go @@ -55,18 +55,8 @@ type GetKarbonClustersResult struct { func GetKarbonClustersOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetKarbonClustersResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetKarbonClustersResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKarbonClustersResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getKarbonClusters:getKarbonClusters", nil, &rv, "", opts...) - if err != nil { - return GetKarbonClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKarbonClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKarbonClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getKarbonClusters:getKarbonClusters", nil, GetKarbonClustersResultOutput{}, options).(GetKarbonClustersResultOutput), nil }).(GetKarbonClustersResultOutput) } diff --git a/sdk/go/nutanix/getKarbonPrivateRegistries.go b/sdk/go/nutanix/getKarbonPrivateRegistries.go index 26f0249..5abbb66 100644 --- a/sdk/go/nutanix/getKarbonPrivateRegistries.go +++ b/sdk/go/nutanix/getKarbonPrivateRegistries.go @@ -31,18 +31,8 @@ type GetKarbonPrivateRegistriesResult struct { func GetKarbonPrivateRegistriesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetKarbonPrivateRegistriesResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetKarbonPrivateRegistriesResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKarbonPrivateRegistriesResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getKarbonPrivateRegistries:getKarbonPrivateRegistries", nil, &rv, "", opts...) - if err != nil { - return GetKarbonPrivateRegistriesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKarbonPrivateRegistriesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKarbonPrivateRegistriesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getKarbonPrivateRegistries:getKarbonPrivateRegistries", nil, GetKarbonPrivateRegistriesResultOutput{}, options).(GetKarbonPrivateRegistriesResultOutput), nil }).(GetKarbonPrivateRegistriesResultOutput) } diff --git a/sdk/go/nutanix/getKarbonPrivateRegistry.go b/sdk/go/nutanix/getKarbonPrivateRegistry.go index ee23b8f..5504cee 100644 --- a/sdk/go/nutanix/getKarbonPrivateRegistry.go +++ b/sdk/go/nutanix/getKarbonPrivateRegistry.go @@ -45,21 +45,11 @@ type LookupKarbonPrivateRegistryResult struct { } func LookupKarbonPrivateRegistryOutput(ctx *pulumi.Context, args LookupKarbonPrivateRegistryOutputArgs, opts ...pulumi.InvokeOption) LookupKarbonPrivateRegistryResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupKarbonPrivateRegistryResultOutput, error) { args := v.(LookupKarbonPrivateRegistryArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupKarbonPrivateRegistryResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getKarbonPrivateRegistry:getKarbonPrivateRegistry", args, &rv, "", opts...) - if err != nil { - return LookupKarbonPrivateRegistryResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupKarbonPrivateRegistryResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupKarbonPrivateRegistryResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getKarbonPrivateRegistry:getKarbonPrivateRegistry", args, LookupKarbonPrivateRegistryResultOutput{}, options).(LookupKarbonPrivateRegistryResultOutput), nil }).(LookupKarbonPrivateRegistryResultOutput) } diff --git a/sdk/go/nutanix/getNdbClone.go b/sdk/go/nutanix/getNdbClone.go index 5bcd1f7..27d5b89 100644 --- a/sdk/go/nutanix/getNdbClone.go +++ b/sdk/go/nutanix/getNdbClone.go @@ -129,21 +129,11 @@ type LookupNdbCloneResult struct { } func LookupNdbCloneOutput(ctx *pulumi.Context, args LookupNdbCloneOutputArgs, opts ...pulumi.InvokeOption) LookupNdbCloneResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNdbCloneResultOutput, error) { args := v.(LookupNdbCloneArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNdbCloneResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbClone:getNdbClone", args, &rv, "", opts...) - if err != nil { - return LookupNdbCloneResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNdbCloneResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNdbCloneResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbClone:getNdbClone", args, LookupNdbCloneResultOutput{}, options).(LookupNdbCloneResultOutput), nil }).(LookupNdbCloneResultOutput) } diff --git a/sdk/go/nutanix/getNdbClones.go b/sdk/go/nutanix/getNdbClones.go index 0e746fd..00400dd 100644 --- a/sdk/go/nutanix/getNdbClones.go +++ b/sdk/go/nutanix/getNdbClones.go @@ -68,21 +68,11 @@ type GetNdbClonesResult struct { } func GetNdbClonesOutput(ctx *pulumi.Context, args GetNdbClonesOutputArgs, opts ...pulumi.InvokeOption) GetNdbClonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNdbClonesResultOutput, error) { args := v.(GetNdbClonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbClonesResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbClones:getNdbClones", args, &rv, "", opts...) - if err != nil { - return GetNdbClonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbClonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbClonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbClones:getNdbClones", args, GetNdbClonesResultOutput{}, options).(GetNdbClonesResultOutput), nil }).(GetNdbClonesResultOutput) } diff --git a/sdk/go/nutanix/getNdbCluster.go b/sdk/go/nutanix/getNdbCluster.go index 0756259..8aeecf8 100644 --- a/sdk/go/nutanix/getNdbCluster.go +++ b/sdk/go/nutanix/getNdbCluster.go @@ -112,21 +112,11 @@ type LookupNdbClusterResult struct { } func LookupNdbClusterOutput(ctx *pulumi.Context, args LookupNdbClusterOutputArgs, opts ...pulumi.InvokeOption) LookupNdbClusterResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNdbClusterResultOutput, error) { args := v.(LookupNdbClusterArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNdbClusterResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbCluster:getNdbCluster", args, &rv, "", opts...) - if err != nil { - return LookupNdbClusterResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNdbClusterResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNdbClusterResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbCluster:getNdbCluster", args, LookupNdbClusterResultOutput{}, options).(LookupNdbClusterResultOutput), nil }).(LookupNdbClusterResultOutput) } diff --git a/sdk/go/nutanix/getNdbClusters.go b/sdk/go/nutanix/getNdbClusters.go index f9c630c..5419614 100644 --- a/sdk/go/nutanix/getNdbClusters.go +++ b/sdk/go/nutanix/getNdbClusters.go @@ -88,18 +88,8 @@ type GetNdbClustersResult struct { func GetNdbClustersOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetNdbClustersResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetNdbClustersResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbClustersResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbClusters:getNdbClusters", nil, &rv, "", opts...) - if err != nil { - return GetNdbClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbClusters:getNdbClusters", nil, GetNdbClustersResultOutput{}, options).(GetNdbClustersResultOutput), nil }).(GetNdbClustersResultOutput) } diff --git a/sdk/go/nutanix/getNdbDatabase.go b/sdk/go/nutanix/getNdbDatabase.go index 51022e7..c3e4ba1 100644 --- a/sdk/go/nutanix/getNdbDatabase.go +++ b/sdk/go/nutanix/getNdbDatabase.go @@ -112,21 +112,11 @@ type LookupNdbDatabaseResult struct { } func LookupNdbDatabaseOutput(ctx *pulumi.Context, args LookupNdbDatabaseOutputArgs, opts ...pulumi.InvokeOption) LookupNdbDatabaseResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNdbDatabaseResultOutput, error) { args := v.(LookupNdbDatabaseArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNdbDatabaseResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbDatabase:getNdbDatabase", args, &rv, "", opts...) - if err != nil { - return LookupNdbDatabaseResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNdbDatabaseResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNdbDatabaseResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbDatabase:getNdbDatabase", args, LookupNdbDatabaseResultOutput{}, options).(LookupNdbDatabaseResultOutput), nil }).(LookupNdbDatabaseResultOutput) } diff --git a/sdk/go/nutanix/getNdbDatabases.go b/sdk/go/nutanix/getNdbDatabases.go index ebe7720..bafad0f 100644 --- a/sdk/go/nutanix/getNdbDatabases.go +++ b/sdk/go/nutanix/getNdbDatabases.go @@ -92,21 +92,11 @@ type GetNdbDatabasesResult struct { } func GetNdbDatabasesOutput(ctx *pulumi.Context, args GetNdbDatabasesOutputArgs, opts ...pulumi.InvokeOption) GetNdbDatabasesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNdbDatabasesResultOutput, error) { args := v.(GetNdbDatabasesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbDatabasesResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbDatabases:getNdbDatabases", args, &rv, "", opts...) - if err != nil { - return GetNdbDatabasesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbDatabasesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbDatabasesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbDatabases:getNdbDatabases", args, GetNdbDatabasesResultOutput{}, options).(GetNdbDatabasesResultOutput), nil }).(GetNdbDatabasesResultOutput) } diff --git a/sdk/go/nutanix/getNdbDbserver.go b/sdk/go/nutanix/getNdbDbserver.go index 65273f8..8560160 100644 --- a/sdk/go/nutanix/getNdbDbserver.go +++ b/sdk/go/nutanix/getNdbDbserver.go @@ -133,21 +133,11 @@ type GetNdbDbserverResult struct { } func GetNdbDbserverOutput(ctx *pulumi.Context, args GetNdbDbserverOutputArgs, opts ...pulumi.InvokeOption) GetNdbDbserverResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNdbDbserverResultOutput, error) { args := v.(GetNdbDbserverArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbDbserverResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbDbserver:getNdbDbserver", args, &rv, "", opts...) - if err != nil { - return GetNdbDbserverResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbDbserverResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbDbserverResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbDbserver:getNdbDbserver", args, GetNdbDbserverResultOutput{}, options).(GetNdbDbserverResultOutput), nil }).(GetNdbDbserverResultOutput) } diff --git a/sdk/go/nutanix/getNdbDbservers.go b/sdk/go/nutanix/getNdbDbservers.go index b79032f..31fd465 100644 --- a/sdk/go/nutanix/getNdbDbservers.go +++ b/sdk/go/nutanix/getNdbDbservers.go @@ -55,18 +55,8 @@ type GetNdbDbserversResult struct { func GetNdbDbserversOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetNdbDbserversResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetNdbDbserversResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbDbserversResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbDbservers:getNdbDbservers", nil, &rv, "", opts...) - if err != nil { - return GetNdbDbserversResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbDbserversResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbDbserversResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbDbservers:getNdbDbservers", nil, GetNdbDbserversResultOutput{}, options).(GetNdbDbserversResultOutput), nil }).(GetNdbDbserversResultOutput) } diff --git a/sdk/go/nutanix/getNdbMaintenanceWindow.go b/sdk/go/nutanix/getNdbMaintenanceWindow.go index b26e03c..00f8193 100644 --- a/sdk/go/nutanix/getNdbMaintenanceWindow.go +++ b/sdk/go/nutanix/getNdbMaintenanceWindow.go @@ -88,21 +88,11 @@ type LookupNdbMaintenanceWindowResult struct { } func LookupNdbMaintenanceWindowOutput(ctx *pulumi.Context, args LookupNdbMaintenanceWindowOutputArgs, opts ...pulumi.InvokeOption) LookupNdbMaintenanceWindowResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNdbMaintenanceWindowResultOutput, error) { args := v.(LookupNdbMaintenanceWindowArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNdbMaintenanceWindowResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbMaintenanceWindow:getNdbMaintenanceWindow", args, &rv, "", opts...) - if err != nil { - return LookupNdbMaintenanceWindowResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNdbMaintenanceWindowResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNdbMaintenanceWindowResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbMaintenanceWindow:getNdbMaintenanceWindow", args, LookupNdbMaintenanceWindowResultOutput{}, options).(LookupNdbMaintenanceWindowResultOutput), nil }).(LookupNdbMaintenanceWindowResultOutput) } diff --git a/sdk/go/nutanix/getNdbMaintenanceWindows.go b/sdk/go/nutanix/getNdbMaintenanceWindows.go index 9e21881..cc0a28f 100644 --- a/sdk/go/nutanix/getNdbMaintenanceWindows.go +++ b/sdk/go/nutanix/getNdbMaintenanceWindows.go @@ -56,18 +56,8 @@ type GetNdbMaintenanceWindowsResult struct { func GetNdbMaintenanceWindowsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetNdbMaintenanceWindowsResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetNdbMaintenanceWindowsResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbMaintenanceWindowsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbMaintenanceWindows:getNdbMaintenanceWindows", nil, &rv, "", opts...) - if err != nil { - return GetNdbMaintenanceWindowsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbMaintenanceWindowsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbMaintenanceWindowsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbMaintenanceWindows:getNdbMaintenanceWindows", nil, GetNdbMaintenanceWindowsResultOutput{}, options).(GetNdbMaintenanceWindowsResultOutput), nil }).(GetNdbMaintenanceWindowsResultOutput) } diff --git a/sdk/go/nutanix/getNdbNetwork.go b/sdk/go/nutanix/getNdbNetwork.go index 94f8c72..d3233ff 100644 --- a/sdk/go/nutanix/getNdbNetwork.go +++ b/sdk/go/nutanix/getNdbNetwork.go @@ -81,21 +81,11 @@ type LookupNdbNetworkResult struct { } func LookupNdbNetworkOutput(ctx *pulumi.Context, args LookupNdbNetworkOutputArgs, opts ...pulumi.InvokeOption) LookupNdbNetworkResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNdbNetworkResultOutput, error) { args := v.(LookupNdbNetworkArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNdbNetworkResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbNetwork:getNdbNetwork", args, &rv, "", opts...) - if err != nil { - return LookupNdbNetworkResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNdbNetworkResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNdbNetworkResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbNetwork:getNdbNetwork", args, LookupNdbNetworkResultOutput{}, options).(LookupNdbNetworkResultOutput), nil }).(LookupNdbNetworkResultOutput) } diff --git a/sdk/go/nutanix/getNdbNetworkAvailableIps.go b/sdk/go/nutanix/getNdbNetworkAvailableIps.go index 14308d9..794a307 100644 --- a/sdk/go/nutanix/getNdbNetworkAvailableIps.go +++ b/sdk/go/nutanix/getNdbNetworkAvailableIps.go @@ -65,21 +65,11 @@ type GetNdbNetworkAvailableIpsResult struct { } func GetNdbNetworkAvailableIpsOutput(ctx *pulumi.Context, args GetNdbNetworkAvailableIpsOutputArgs, opts ...pulumi.InvokeOption) GetNdbNetworkAvailableIpsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNdbNetworkAvailableIpsResultOutput, error) { args := v.(GetNdbNetworkAvailableIpsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbNetworkAvailableIpsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbNetworkAvailableIps:getNdbNetworkAvailableIps", args, &rv, "", opts...) - if err != nil { - return GetNdbNetworkAvailableIpsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbNetworkAvailableIpsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbNetworkAvailableIpsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbNetworkAvailableIps:getNdbNetworkAvailableIps", args, GetNdbNetworkAvailableIpsResultOutput{}, options).(GetNdbNetworkAvailableIpsResultOutput), nil }).(GetNdbNetworkAvailableIpsResultOutput) } diff --git a/sdk/go/nutanix/getNdbNetworks.go b/sdk/go/nutanix/getNdbNetworks.go index 3fecd51..cde5f85 100644 --- a/sdk/go/nutanix/getNdbNetworks.go +++ b/sdk/go/nutanix/getNdbNetworks.go @@ -56,18 +56,8 @@ type GetNdbNetworksResult struct { func GetNdbNetworksOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetNdbNetworksResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetNdbNetworksResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbNetworksResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbNetworks:getNdbNetworks", nil, &rv, "", opts...) - if err != nil { - return GetNdbNetworksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbNetworksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbNetworksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbNetworks:getNdbNetworks", nil, GetNdbNetworksResultOutput{}, options).(GetNdbNetworksResultOutput), nil }).(GetNdbNetworksResultOutput) } diff --git a/sdk/go/nutanix/getNdbProfile.go b/sdk/go/nutanix/getNdbProfile.go index 1e803cc..9ddfb99 100644 --- a/sdk/go/nutanix/getNdbProfile.go +++ b/sdk/go/nutanix/getNdbProfile.go @@ -104,21 +104,11 @@ type LookupNdbProfileResult struct { } func LookupNdbProfileOutput(ctx *pulumi.Context, args LookupNdbProfileOutputArgs, opts ...pulumi.InvokeOption) LookupNdbProfileResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNdbProfileResultOutput, error) { args := v.(LookupNdbProfileArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNdbProfileResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbProfile:getNdbProfile", args, &rv, "", opts...) - if err != nil { - return LookupNdbProfileResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNdbProfileResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNdbProfileResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbProfile:getNdbProfile", args, LookupNdbProfileResultOutput{}, options).(LookupNdbProfileResultOutput), nil }).(LookupNdbProfileResultOutput) } diff --git a/sdk/go/nutanix/getNdbProfiles.go b/sdk/go/nutanix/getNdbProfiles.go index be3153d..6815c13 100644 --- a/sdk/go/nutanix/getNdbProfiles.go +++ b/sdk/go/nutanix/getNdbProfiles.go @@ -89,21 +89,11 @@ type GetNdbProfilesResult struct { } func GetNdbProfilesOutput(ctx *pulumi.Context, args GetNdbProfilesOutputArgs, opts ...pulumi.InvokeOption) GetNdbProfilesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNdbProfilesResultOutput, error) { args := v.(GetNdbProfilesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbProfilesResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbProfiles:getNdbProfiles", args, &rv, "", opts...) - if err != nil { - return GetNdbProfilesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbProfilesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbProfilesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbProfiles:getNdbProfiles", args, GetNdbProfilesResultOutput{}, options).(GetNdbProfilesResultOutput), nil }).(GetNdbProfilesResultOutput) } diff --git a/sdk/go/nutanix/getNdbSla.go b/sdk/go/nutanix/getNdbSla.go index e188ac1..370aaea 100644 --- a/sdk/go/nutanix/getNdbSla.go +++ b/sdk/go/nutanix/getNdbSla.go @@ -98,21 +98,11 @@ type LookupNdbSlaResult struct { } func LookupNdbSlaOutput(ctx *pulumi.Context, args LookupNdbSlaOutputArgs, opts ...pulumi.InvokeOption) LookupNdbSlaResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNdbSlaResultOutput, error) { args := v.(LookupNdbSlaArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNdbSlaResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbSla:getNdbSla", args, &rv, "", opts...) - if err != nil { - return LookupNdbSlaResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNdbSlaResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNdbSlaResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbSla:getNdbSla", args, LookupNdbSlaResultOutput{}, options).(LookupNdbSlaResultOutput), nil }).(LookupNdbSlaResultOutput) } diff --git a/sdk/go/nutanix/getNdbSlas.go b/sdk/go/nutanix/getNdbSlas.go index e21ff2a..8d24d3e 100644 --- a/sdk/go/nutanix/getNdbSlas.go +++ b/sdk/go/nutanix/getNdbSlas.go @@ -57,18 +57,8 @@ type GetNdbSlasResult struct { func GetNdbSlasOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetNdbSlasResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetNdbSlasResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbSlasResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbSlas:getNdbSlas", nil, &rv, "", opts...) - if err != nil { - return GetNdbSlasResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbSlasResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbSlasResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbSlas:getNdbSlas", nil, GetNdbSlasResultOutput{}, options).(GetNdbSlasResultOutput), nil }).(GetNdbSlasResultOutput) } diff --git a/sdk/go/nutanix/getNdbSnapshot.go b/sdk/go/nutanix/getNdbSnapshot.go index b3016c3..05822e0 100644 --- a/sdk/go/nutanix/getNdbSnapshot.go +++ b/sdk/go/nutanix/getNdbSnapshot.go @@ -143,21 +143,11 @@ type GetNdbSnapshotResult struct { } func GetNdbSnapshotOutput(ctx *pulumi.Context, args GetNdbSnapshotOutputArgs, opts ...pulumi.InvokeOption) GetNdbSnapshotResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNdbSnapshotResultOutput, error) { args := v.(GetNdbSnapshotArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbSnapshotResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbSnapshot:getNdbSnapshot", args, &rv, "", opts...) - if err != nil { - return GetNdbSnapshotResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbSnapshotResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbSnapshotResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbSnapshot:getNdbSnapshot", args, GetNdbSnapshotResultOutput{}, options).(GetNdbSnapshotResultOutput), nil }).(GetNdbSnapshotResultOutput) } diff --git a/sdk/go/nutanix/getNdbSnapshots.go b/sdk/go/nutanix/getNdbSnapshots.go index 080d84b..680d173 100644 --- a/sdk/go/nutanix/getNdbSnapshots.go +++ b/sdk/go/nutanix/getNdbSnapshots.go @@ -115,21 +115,11 @@ type GetNdbSnapshotsResult struct { } func GetNdbSnapshotsOutput(ctx *pulumi.Context, args GetNdbSnapshotsOutputArgs, opts ...pulumi.InvokeOption) GetNdbSnapshotsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNdbSnapshotsResultOutput, error) { args := v.(GetNdbSnapshotsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbSnapshotsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbSnapshots:getNdbSnapshots", args, &rv, "", opts...) - if err != nil { - return GetNdbSnapshotsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbSnapshotsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbSnapshotsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbSnapshots:getNdbSnapshots", args, GetNdbSnapshotsResultOutput{}, options).(GetNdbSnapshotsResultOutput), nil }).(GetNdbSnapshotsResultOutput) } diff --git a/sdk/go/nutanix/getNdbTag.go b/sdk/go/nutanix/getNdbTag.go index 6d5f849..c846cfe 100644 --- a/sdk/go/nutanix/getNdbTag.go +++ b/sdk/go/nutanix/getNdbTag.go @@ -80,21 +80,11 @@ type LookupNdbTagResult struct { } func LookupNdbTagOutput(ctx *pulumi.Context, args LookupNdbTagOutputArgs, opts ...pulumi.InvokeOption) LookupNdbTagResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNdbTagResultOutput, error) { args := v.(LookupNdbTagArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNdbTagResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbTag:getNdbTag", args, &rv, "", opts...) - if err != nil { - return LookupNdbTagResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNdbTagResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNdbTagResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbTag:getNdbTag", args, LookupNdbTagResultOutput{}, options).(LookupNdbTagResultOutput), nil }).(LookupNdbTagResultOutput) } diff --git a/sdk/go/nutanix/getNdbTags.go b/sdk/go/nutanix/getNdbTags.go index 83d4a25..f7238d6 100644 --- a/sdk/go/nutanix/getNdbTags.go +++ b/sdk/go/nutanix/getNdbTags.go @@ -63,21 +63,11 @@ type GetNdbTagsResult struct { } func GetNdbTagsOutput(ctx *pulumi.Context, args GetNdbTagsOutputArgs, opts ...pulumi.InvokeOption) GetNdbTagsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNdbTagsResultOutput, error) { args := v.(GetNdbTagsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbTagsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbTags:getNdbTags", args, &rv, "", opts...) - if err != nil { - return GetNdbTagsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbTagsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbTagsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbTags:getNdbTags", args, GetNdbTagsResultOutput{}, options).(GetNdbTagsResultOutput), nil }).(GetNdbTagsResultOutput) } diff --git a/sdk/go/nutanix/getNdbTimeMachine.go b/sdk/go/nutanix/getNdbTimeMachine.go index b8cdef8..ac3cca8 100644 --- a/sdk/go/nutanix/getNdbTimeMachine.go +++ b/sdk/go/nutanix/getNdbTimeMachine.go @@ -93,21 +93,11 @@ type GetNdbTimeMachineResult struct { } func GetNdbTimeMachineOutput(ctx *pulumi.Context, args GetNdbTimeMachineOutputArgs, opts ...pulumi.InvokeOption) GetNdbTimeMachineResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNdbTimeMachineResultOutput, error) { args := v.(GetNdbTimeMachineArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbTimeMachineResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbTimeMachine:getNdbTimeMachine", args, &rv, "", opts...) - if err != nil { - return GetNdbTimeMachineResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbTimeMachineResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbTimeMachineResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbTimeMachine:getNdbTimeMachine", args, GetNdbTimeMachineResultOutput{}, options).(GetNdbTimeMachineResultOutput), nil }).(GetNdbTimeMachineResultOutput) } diff --git a/sdk/go/nutanix/getNdbTimeMachines.go b/sdk/go/nutanix/getNdbTimeMachines.go index 279020d..3b15fd9 100644 --- a/sdk/go/nutanix/getNdbTimeMachines.go +++ b/sdk/go/nutanix/getNdbTimeMachines.go @@ -55,18 +55,8 @@ type GetNdbTimeMachinesResult struct { func GetNdbTimeMachinesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetNdbTimeMachinesResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetNdbTimeMachinesResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbTimeMachinesResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbTimeMachines:getNdbTimeMachines", nil, &rv, "", opts...) - if err != nil { - return GetNdbTimeMachinesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbTimeMachinesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbTimeMachinesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbTimeMachines:getNdbTimeMachines", nil, GetNdbTimeMachinesResultOutput{}, options).(GetNdbTimeMachinesResultOutput), nil }).(GetNdbTimeMachinesResultOutput) } diff --git a/sdk/go/nutanix/getNdbTmsCapability.go b/sdk/go/nutanix/getNdbTmsCapability.go index 4fb891c..1c211be 100644 --- a/sdk/go/nutanix/getNdbTmsCapability.go +++ b/sdk/go/nutanix/getNdbTmsCapability.go @@ -50,21 +50,11 @@ type GetNdbTmsCapabilityResult struct { } func GetNdbTmsCapabilityOutput(ctx *pulumi.Context, args GetNdbTmsCapabilityOutputArgs, opts ...pulumi.InvokeOption) GetNdbTmsCapabilityResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNdbTmsCapabilityResultOutput, error) { args := v.(GetNdbTmsCapabilityArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNdbTmsCapabilityResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNdbTmsCapability:getNdbTmsCapability", args, &rv, "", opts...) - if err != nil { - return GetNdbTmsCapabilityResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNdbTmsCapabilityResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNdbTmsCapabilityResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNdbTmsCapability:getNdbTmsCapability", args, GetNdbTmsCapabilityResultOutput{}, options).(GetNdbTmsCapabilityResultOutput), nil }).(GetNdbTmsCapabilityResultOutput) } diff --git a/sdk/go/nutanix/getNetworkSecurityRule.go b/sdk/go/nutanix/getNetworkSecurityRule.go index b909bd6..9d4a2d4 100644 --- a/sdk/go/nutanix/getNetworkSecurityRule.go +++ b/sdk/go/nutanix/getNetworkSecurityRule.go @@ -168,21 +168,11 @@ type LookupNetworkSecurityRuleResult struct { } func LookupNetworkSecurityRuleOutput(ctx *pulumi.Context, args LookupNetworkSecurityRuleOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkSecurityRuleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNetworkSecurityRuleResultOutput, error) { args := v.(LookupNetworkSecurityRuleArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNetworkSecurityRuleResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getNetworkSecurityRule:getNetworkSecurityRule", args, &rv, "", opts...) - if err != nil { - return LookupNetworkSecurityRuleResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNetworkSecurityRuleResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNetworkSecurityRuleResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getNetworkSecurityRule:getNetworkSecurityRule", args, LookupNetworkSecurityRuleResultOutput{}, options).(LookupNetworkSecurityRuleResultOutput), nil }).(LookupNetworkSecurityRuleResultOutput) } diff --git a/sdk/go/nutanix/getPbr.go b/sdk/go/nutanix/getPbr.go index 77d371c..fe7a5a9 100644 --- a/sdk/go/nutanix/getPbr.go +++ b/sdk/go/nutanix/getPbr.go @@ -44,21 +44,11 @@ type LookupPbrResult struct { } func LookupPbrOutput(ctx *pulumi.Context, args LookupPbrOutputArgs, opts ...pulumi.InvokeOption) LookupPbrResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupPbrResultOutput, error) { args := v.(LookupPbrArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupPbrResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getPbr:getPbr", args, &rv, "", opts...) - if err != nil { - return LookupPbrResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupPbrResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupPbrResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getPbr:getPbr", args, LookupPbrResultOutput{}, options).(LookupPbrResultOutput), nil }).(LookupPbrResultOutput) } diff --git a/sdk/go/nutanix/getPbrs.go b/sdk/go/nutanix/getPbrs.go index bbb4eef..c496710 100644 --- a/sdk/go/nutanix/getPbrs.go +++ b/sdk/go/nutanix/getPbrs.go @@ -65,21 +65,11 @@ type GetPbrsResult struct { } func GetPbrsOutput(ctx *pulumi.Context, args GetPbrsOutputArgs, opts ...pulumi.InvokeOption) GetPbrsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPbrsResultOutput, error) { args := v.(GetPbrsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPbrsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getPbrs:getPbrs", args, &rv, "", opts...) - if err != nil { - return GetPbrsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPbrsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPbrsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getPbrs:getPbrs", args, GetPbrsResultOutput{}, options).(GetPbrsResultOutput), nil }).(GetPbrsResultOutput) } diff --git a/sdk/go/nutanix/getPermission.go b/sdk/go/nutanix/getPermission.go index 19aa3e6..e24f949 100644 --- a/sdk/go/nutanix/getPermission.go +++ b/sdk/go/nutanix/getPermission.go @@ -94,21 +94,11 @@ type GetPermissionResult struct { } func GetPermissionOutput(ctx *pulumi.Context, args GetPermissionOutputArgs, opts ...pulumi.InvokeOption) GetPermissionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPermissionResultOutput, error) { args := v.(GetPermissionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPermissionResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getPermission:getPermission", args, &rv, "", opts...) - if err != nil { - return GetPermissionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPermissionResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPermissionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getPermission:getPermission", args, GetPermissionResultOutput{}, options).(GetPermissionResultOutput), nil }).(GetPermissionResultOutput) } diff --git a/sdk/go/nutanix/getPermissions.go b/sdk/go/nutanix/getPermissions.go index b84d0de..d04f396 100644 --- a/sdk/go/nutanix/getPermissions.go +++ b/sdk/go/nutanix/getPermissions.go @@ -65,21 +65,11 @@ type GetPermissionsResult struct { } func GetPermissionsOutput(ctx *pulumi.Context, args GetPermissionsOutputArgs, opts ...pulumi.InvokeOption) GetPermissionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPermissionsResultOutput, error) { args := v.(GetPermissionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPermissionsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getPermissions:getPermissions", args, &rv, "", opts...) - if err != nil { - return GetPermissionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPermissionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPermissionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getPermissions:getPermissions", args, GetPermissionsResultOutput{}, options).(GetPermissionsResultOutput), nil }).(GetPermissionsResultOutput) } diff --git a/sdk/go/nutanix/getProject.go b/sdk/go/nutanix/getProject.go index f2a17ca..c6b9a2f 100644 --- a/sdk/go/nutanix/getProject.go +++ b/sdk/go/nutanix/getProject.go @@ -186,21 +186,11 @@ type LookupProjectResult struct { } func LookupProjectOutput(ctx *pulumi.Context, args LookupProjectOutputArgs, opts ...pulumi.InvokeOption) LookupProjectResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupProjectResultOutput, error) { args := v.(LookupProjectArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupProjectResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getProject:getProject", args, &rv, "", opts...) - if err != nil { - return LookupProjectResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupProjectResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupProjectResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getProject:getProject", args, LookupProjectResultOutput{}, options).(LookupProjectResultOutput), nil }).(LookupProjectResultOutput) } diff --git a/sdk/go/nutanix/getProjects.go b/sdk/go/nutanix/getProjects.go index 94f7f8c..ed1788e 100644 --- a/sdk/go/nutanix/getProjects.go +++ b/sdk/go/nutanix/getProjects.go @@ -58,18 +58,8 @@ type GetProjectsResult struct { func GetProjectsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetProjectsResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetProjectsResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getProjects:getProjects", nil, &rv, "", opts...) - if err != nil { - return GetProjectsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getProjects:getProjects", nil, GetProjectsResultOutput{}, options).(GetProjectsResultOutput), nil }).(GetProjectsResultOutput) } diff --git a/sdk/go/nutanix/getProtectionRule.go b/sdk/go/nutanix/getProtectionRule.go index 5ff0da8..7135a0d 100644 --- a/sdk/go/nutanix/getProtectionRule.go +++ b/sdk/go/nutanix/getProtectionRule.go @@ -115,21 +115,11 @@ type LookupProtectionRuleResult struct { } func LookupProtectionRuleOutput(ctx *pulumi.Context, args LookupProtectionRuleOutputArgs, opts ...pulumi.InvokeOption) LookupProtectionRuleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupProtectionRuleResultOutput, error) { args := v.(LookupProtectionRuleArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupProtectionRuleResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getProtectionRule:getProtectionRule", args, &rv, "", opts...) - if err != nil { - return LookupProtectionRuleResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupProtectionRuleResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupProtectionRuleResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getProtectionRule:getProtectionRule", args, LookupProtectionRuleResultOutput{}, options).(LookupProtectionRuleResultOutput), nil }).(LookupProtectionRuleResultOutput) } diff --git a/sdk/go/nutanix/getProtectionRules.go b/sdk/go/nutanix/getProtectionRules.go index c8ce8e3..8fc9904 100644 --- a/sdk/go/nutanix/getProtectionRules.go +++ b/sdk/go/nutanix/getProtectionRules.go @@ -58,18 +58,8 @@ type GetProtectionRulesResult struct { func GetProtectionRulesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetProtectionRulesResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetProtectionRulesResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProtectionRulesResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getProtectionRules:getProtectionRules", nil, &rv, "", opts...) - if err != nil { - return GetProtectionRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProtectionRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProtectionRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getProtectionRules:getProtectionRules", nil, GetProtectionRulesResultOutput{}, options).(GetProtectionRulesResultOutput), nil }).(GetProtectionRulesResultOutput) } diff --git a/sdk/go/nutanix/getRecoveryPlan.go b/sdk/go/nutanix/getRecoveryPlan.go index a2ad8d5..504fadb 100644 --- a/sdk/go/nutanix/getRecoveryPlan.go +++ b/sdk/go/nutanix/getRecoveryPlan.go @@ -53,21 +53,11 @@ type LookupRecoveryPlanResult struct { } func LookupRecoveryPlanOutput(ctx *pulumi.Context, args LookupRecoveryPlanOutputArgs, opts ...pulumi.InvokeOption) LookupRecoveryPlanResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRecoveryPlanResultOutput, error) { args := v.(LookupRecoveryPlanArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRecoveryPlanResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getRecoveryPlan:getRecoveryPlan", args, &rv, "", opts...) - if err != nil { - return LookupRecoveryPlanResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRecoveryPlanResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRecoveryPlanResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getRecoveryPlan:getRecoveryPlan", args, LookupRecoveryPlanResultOutput{}, options).(LookupRecoveryPlanResultOutput), nil }).(LookupRecoveryPlanResultOutput) } diff --git a/sdk/go/nutanix/getRecoveryPlans.go b/sdk/go/nutanix/getRecoveryPlans.go index cff9abe..862b94e 100644 --- a/sdk/go/nutanix/getRecoveryPlans.go +++ b/sdk/go/nutanix/getRecoveryPlans.go @@ -58,18 +58,8 @@ type GetRecoveryPlansResult struct { func GetRecoveryPlansOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetRecoveryPlansResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetRecoveryPlansResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRecoveryPlansResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getRecoveryPlans:getRecoveryPlans", nil, &rv, "", opts...) - if err != nil { - return GetRecoveryPlansResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRecoveryPlansResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRecoveryPlansResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getRecoveryPlans:getRecoveryPlans", nil, GetRecoveryPlansResultOutput{}, options).(GetRecoveryPlansResultOutput), nil }).(GetRecoveryPlansResultOutput) } diff --git a/sdk/go/nutanix/getRole.go b/sdk/go/nutanix/getRole.go index aeb144c..a3bcde6 100644 --- a/sdk/go/nutanix/getRole.go +++ b/sdk/go/nutanix/getRole.go @@ -59,21 +59,11 @@ type LookupRoleResult struct { } func LookupRoleOutput(ctx *pulumi.Context, args LookupRoleOutputArgs, opts ...pulumi.InvokeOption) LookupRoleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRoleResultOutput, error) { args := v.(LookupRoleArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRoleResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getRole:getRole", args, &rv, "", opts...) - if err != nil { - return LookupRoleResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRoleResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRoleResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getRole:getRole", args, LookupRoleResultOutput{}, options).(LookupRoleResultOutput), nil }).(LookupRoleResultOutput) } diff --git a/sdk/go/nutanix/getRoles.go b/sdk/go/nutanix/getRoles.go index abc5f44..019cac5 100644 --- a/sdk/go/nutanix/getRoles.go +++ b/sdk/go/nutanix/getRoles.go @@ -65,21 +65,11 @@ type GetRolesResult struct { } func GetRolesOutput(ctx *pulumi.Context, args GetRolesOutputArgs, opts ...pulumi.InvokeOption) GetRolesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRolesResultOutput, error) { args := v.(GetRolesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRolesResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getRoles:getRoles", args, &rv, "", opts...) - if err != nil { - return GetRolesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRolesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRolesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getRoles:getRoles", args, GetRolesResultOutput{}, options).(GetRolesResultOutput), nil }).(GetRolesResultOutput) } diff --git a/sdk/go/nutanix/getServiceGroup.go b/sdk/go/nutanix/getServiceGroup.go index 1a2e3b1..cabc661 100644 --- a/sdk/go/nutanix/getServiceGroup.go +++ b/sdk/go/nutanix/getServiceGroup.go @@ -38,21 +38,11 @@ type LookupServiceGroupResult struct { } func LookupServiceGroupOutput(ctx *pulumi.Context, args LookupServiceGroupOutputArgs, opts ...pulumi.InvokeOption) LookupServiceGroupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceGroupResultOutput, error) { args := v.(LookupServiceGroupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceGroupResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getServiceGroup:getServiceGroup", args, &rv, "", opts...) - if err != nil { - return LookupServiceGroupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceGroupResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceGroupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getServiceGroup:getServiceGroup", args, LookupServiceGroupResultOutput{}, options).(LookupServiceGroupResultOutput), nil }).(LookupServiceGroupResultOutput) } diff --git a/sdk/go/nutanix/getServiceGroups.go b/sdk/go/nutanix/getServiceGroups.go index 2ea87e8..0876076 100644 --- a/sdk/go/nutanix/getServiceGroups.go +++ b/sdk/go/nutanix/getServiceGroups.go @@ -35,21 +35,11 @@ type GetServiceGroupsResult struct { } func GetServiceGroupsOutput(ctx *pulumi.Context, args GetServiceGroupsOutputArgs, opts ...pulumi.InvokeOption) GetServiceGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceGroupsResultOutput, error) { args := v.(GetServiceGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceGroupsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getServiceGroups:getServiceGroups", args, &rv, "", opts...) - if err != nil { - return GetServiceGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getServiceGroups:getServiceGroups", args, GetServiceGroupsResultOutput{}, options).(GetServiceGroupsResultOutput), nil }).(GetServiceGroupsResultOutput) } diff --git a/sdk/go/nutanix/getStaticRoutes.go b/sdk/go/nutanix/getStaticRoutes.go index 0b02b4c..47cf91c 100644 --- a/sdk/go/nutanix/getStaticRoutes.go +++ b/sdk/go/nutanix/getStaticRoutes.go @@ -46,21 +46,11 @@ type LookupStaticRoutesResult struct { } func LookupStaticRoutesOutput(ctx *pulumi.Context, args LookupStaticRoutesOutputArgs, opts ...pulumi.InvokeOption) LookupStaticRoutesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupStaticRoutesResultOutput, error) { args := v.(LookupStaticRoutesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupStaticRoutesResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getStaticRoutes:getStaticRoutes", args, &rv, "", opts...) - if err != nil { - return LookupStaticRoutesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupStaticRoutesResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupStaticRoutesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getStaticRoutes:getStaticRoutes", args, LookupStaticRoutesResultOutput{}, options).(LookupStaticRoutesResultOutput), nil }).(LookupStaticRoutesResultOutput) } diff --git a/sdk/go/nutanix/getSubnet.go b/sdk/go/nutanix/getSubnet.go index 49497bc..d58d0cf 100644 --- a/sdk/go/nutanix/getSubnet.go +++ b/sdk/go/nutanix/getSubnet.go @@ -93,21 +93,11 @@ type LookupSubnetResult struct { } func LookupSubnetOutput(ctx *pulumi.Context, args LookupSubnetOutputArgs, opts ...pulumi.InvokeOption) LookupSubnetResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSubnetResultOutput, error) { args := v.(LookupSubnetArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSubnetResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getSubnet:getSubnet", args, &rv, "", opts...) - if err != nil { - return LookupSubnetResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSubnetResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSubnetResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getSubnet:getSubnet", args, LookupSubnetResultOutput{}, options).(LookupSubnetResultOutput), nil }).(LookupSubnetResultOutput) } diff --git a/sdk/go/nutanix/getSubnets.go b/sdk/go/nutanix/getSubnets.go index d868926..8596d0b 100644 --- a/sdk/go/nutanix/getSubnets.go +++ b/sdk/go/nutanix/getSubnets.go @@ -75,21 +75,11 @@ type GetSubnetsResult struct { } func GetSubnetsOutput(ctx *pulumi.Context, args GetSubnetsOutputArgs, opts ...pulumi.InvokeOption) GetSubnetsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSubnetsResultOutput, error) { args := v.(GetSubnetsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSubnetsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getSubnets:getSubnets", args, &rv, "", opts...) - if err != nil { - return GetSubnetsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSubnetsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSubnetsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getSubnets:getSubnets", args, GetSubnetsResultOutput{}, options).(GetSubnetsResultOutput), nil }).(GetSubnetsResultOutput) } diff --git a/sdk/go/nutanix/getUser.go b/sdk/go/nutanix/getUser.go index 7900c6c..8e8ec3d 100644 --- a/sdk/go/nutanix/getUser.go +++ b/sdk/go/nutanix/getUser.go @@ -67,21 +67,11 @@ type LookupUserResult struct { } func LookupUserOutput(ctx *pulumi.Context, args LookupUserOutputArgs, opts ...pulumi.InvokeOption) LookupUserResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupUserResultOutput, error) { args := v.(LookupUserArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupUserResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getUser:getUser", args, &rv, "", opts...) - if err != nil { - return LookupUserResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupUserResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupUserResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getUser:getUser", args, LookupUserResultOutput{}, options).(LookupUserResultOutput), nil }).(LookupUserResultOutput) } diff --git a/sdk/go/nutanix/getUserGroup.go b/sdk/go/nutanix/getUserGroup.go index 3e38d23..c370c48 100644 --- a/sdk/go/nutanix/getUserGroup.go +++ b/sdk/go/nutanix/getUserGroup.go @@ -108,21 +108,11 @@ type GetUserGroupResult struct { } func GetUserGroupOutput(ctx *pulumi.Context, args GetUserGroupOutputArgs, opts ...pulumi.InvokeOption) GetUserGroupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetUserGroupResultOutput, error) { args := v.(GetUserGroupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetUserGroupResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getUserGroup:getUserGroup", args, &rv, "", opts...) - if err != nil { - return GetUserGroupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetUserGroupResultOutput) - if secret { - return pulumi.ToSecret(output).(GetUserGroupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getUserGroup:getUserGroup", args, GetUserGroupResultOutput{}, options).(GetUserGroupResultOutput), nil }).(GetUserGroupResultOutput) } diff --git a/sdk/go/nutanix/getUserGroups.go b/sdk/go/nutanix/getUserGroups.go index 2fa6232..6ee6077 100644 --- a/sdk/go/nutanix/getUserGroups.go +++ b/sdk/go/nutanix/getUserGroups.go @@ -62,21 +62,11 @@ type LookupUserGroupsResult struct { } func LookupUserGroupsOutput(ctx *pulumi.Context, args LookupUserGroupsOutputArgs, opts ...pulumi.InvokeOption) LookupUserGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupUserGroupsResultOutput, error) { args := v.(LookupUserGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupUserGroupsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getUserGroups:getUserGroups", args, &rv, "", opts...) - if err != nil { - return LookupUserGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupUserGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupUserGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getUserGroups:getUserGroups", args, LookupUserGroupsResultOutput{}, options).(LookupUserGroupsResultOutput), nil }).(LookupUserGroupsResultOutput) } diff --git a/sdk/go/nutanix/getUsers.go b/sdk/go/nutanix/getUsers.go index a9fd9d5..eae1f56 100644 --- a/sdk/go/nutanix/getUsers.go +++ b/sdk/go/nutanix/getUsers.go @@ -76,21 +76,11 @@ type GetUsersResult struct { } func GetUsersOutput(ctx *pulumi.Context, args GetUsersOutputArgs, opts ...pulumi.InvokeOption) GetUsersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetUsersResultOutput, error) { args := v.(GetUsersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetUsersResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getUsers:getUsers", args, &rv, "", opts...) - if err != nil { - return GetUsersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetUsersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetUsersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getUsers:getUsers", args, GetUsersResultOutput{}, options).(GetUsersResultOutput), nil }).(GetUsersResultOutput) } diff --git a/sdk/go/nutanix/getVirtualMachine.go b/sdk/go/nutanix/getVirtualMachine.go index 0db9779..20de1ae 100644 --- a/sdk/go/nutanix/getVirtualMachine.go +++ b/sdk/go/nutanix/getVirtualMachine.go @@ -129,21 +129,11 @@ type LookupVirtualMachineResult struct { } func LookupVirtualMachineOutput(ctx *pulumi.Context, args LookupVirtualMachineOutputArgs, opts ...pulumi.InvokeOption) LookupVirtualMachineResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVirtualMachineResultOutput, error) { args := v.(LookupVirtualMachineArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupVirtualMachineResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getVirtualMachine:getVirtualMachine", args, &rv, "", opts...) - if err != nil { - return LookupVirtualMachineResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupVirtualMachineResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupVirtualMachineResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getVirtualMachine:getVirtualMachine", args, LookupVirtualMachineResultOutput{}, options).(LookupVirtualMachineResultOutput), nil }).(LookupVirtualMachineResultOutput) } diff --git a/sdk/go/nutanix/getVpc.go b/sdk/go/nutanix/getVpc.go index 22f1f8a..79d582b 100644 --- a/sdk/go/nutanix/getVpc.go +++ b/sdk/go/nutanix/getVpc.go @@ -47,21 +47,11 @@ type LookupVpcResult struct { } func LookupVpcOutput(ctx *pulumi.Context, args LookupVpcOutputArgs, opts ...pulumi.InvokeOption) LookupVpcResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVpcResultOutput, error) { args := v.(LookupVpcArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupVpcResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getVpc:getVpc", args, &rv, "", opts...) - if err != nil { - return LookupVpcResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupVpcResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupVpcResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getVpc:getVpc", args, LookupVpcResultOutput{}, options).(LookupVpcResultOutput), nil }).(LookupVpcResultOutput) } diff --git a/sdk/go/nutanix/getVpcs.go b/sdk/go/nutanix/getVpcs.go index 9136ee4..dc0429c 100644 --- a/sdk/go/nutanix/getVpcs.go +++ b/sdk/go/nutanix/getVpcs.go @@ -65,21 +65,11 @@ type GetVpcsResult struct { } func GetVpcsOutput(ctx *pulumi.Context, args GetVpcsOutputArgs, opts ...pulumi.InvokeOption) GetVpcsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVpcsResultOutput, error) { args := v.(GetVpcsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVpcsResult - secret, err := ctx.InvokePackageRaw("nutanix:index/getVpcs:getVpcs", args, &rv, "", opts...) - if err != nil { - return GetVpcsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVpcsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVpcsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("nutanix:index/getVpcs:getVpcs", args, GetVpcsResultOutput{}, options).(GetVpcsResultOutput), nil }).(GetVpcsResultOutput) } diff --git a/sdk/python/setup.py b/sdk/python/setup.py index 91270cb..914477a 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -18,7 +18,7 @@ def readme(): setup(name='pulumi_nutanix', - python_requires='>=3.8', + python_requires='>=3.9', version=VERSION, description="A Pulumi package for creating and managing Nutanix cloud resources.", long_description=readme(),