Skip to content

Commit

Permalink
make build_sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot committed Oct 25, 2023
1 parent b5f3853 commit 1485343
Show file tree
Hide file tree
Showing 174 changed files with 2,925 additions and 8,251 deletions.
129 changes: 0 additions & 129 deletions sdk/dotnet/ComputeClusterVmAffinityRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,135 +31,6 @@ namespace Pulumi.VSphere
/// direct ESXi host connections.
///
/// > **NOTE:** vSphere DRS requires a vSphere Enterprise Plus license.
///
/// ## Example Usage
///
/// The following example creates two virtual machines in a cluster using the
/// `vsphere.VirtualMachine` resource, creating the
/// virtual machines in the cluster looked up by the
/// `vsphere.ComputeCluster` data source. It
/// then creates an affinity rule for these two virtual machines, ensuring they
/// will run on the same host whenever possible.
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using VSphere = Pulumi.VSphere;
///
/// return await Deployment.RunAsync(() =>
/// {
/// var datacenter = VSphere.GetDatacenter.Invoke(new()
/// {
/// Name = "dc-01",
/// });
///
/// var datastore = VSphere.GetDatastore.Invoke(new()
/// {
/// Name = "datastore-01",
/// DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id),
/// });
///
/// var cluster = VSphere.GetComputeCluster.Invoke(new()
/// {
/// Name = "cluster-01",
/// DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id),
/// });
///
/// var network = VSphere.GetNetwork.Invoke(new()
/// {
/// Name = "VM Network",
/// DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id),
/// });
///
/// var vm = new List<VSphere.VirtualMachine>();
/// for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
/// {
/// var range = new { Value = rangeIndex };
/// vm.Add(new VSphere.VirtualMachine($"vm-{range.Value}", new()
/// {
/// ResourcePoolId = cluster.Apply(getComputeClusterResult => getComputeClusterResult.ResourcePoolId),
/// DatastoreId = datastore.Apply(getDatastoreResult => getDatastoreResult.Id),
/// NumCpus = 1,
/// Memory = 1024,
/// GuestId = "otherLinux64Guest",
/// NetworkInterfaces = new[]
/// {
/// new VSphere.Inputs.VirtualMachineNetworkInterfaceArgs
/// {
/// NetworkId = network.Apply(getNetworkResult => getNetworkResult.Id),
/// },
/// },
/// Disks = new[]
/// {
/// new VSphere.Inputs.VirtualMachineDiskArgs
/// {
/// Label = "disk0",
/// Size = 20,
/// },
/// },
/// }));
/// }
/// var vmAffinityRule = new VSphere.ComputeClusterVmAffinityRule("vmAffinityRule", new()
/// {
/// ComputeClusterId = cluster.Apply(getComputeClusterResult => getComputeClusterResult.Id),
/// VirtualMachineIds = vm.Select((value, i) => new { Key = i.ToString(), Value = pair.Value }).Select(v =>
/// {
/// return v.Id;
/// }).ToList(),
/// });
///
/// });
/// ```
///
/// The following example creates an affinity rule for a set of virtual machines
/// in the cluster by looking up the virtual machine UUIDs from the
/// `vsphere.VirtualMachine` data source.
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using VSphere = Pulumi.VSphere;
///
/// return await Deployment.RunAsync(() =>
/// {
/// var vms = new[]
/// {
/// "foo-0",
/// "foo-1",
/// };
///
/// var datacenter = VSphere.GetDatacenter.Invoke(new()
/// {
/// Name = "dc-01",
/// });
///
/// var cluster = VSphere.GetComputeCluster.Invoke(new()
/// {
/// Name = "cluster-01",
/// DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id),
/// });
///
/// var vmsVirtualMachine = "TODO: Range range( length(vms)
/// ) false".Select(__index =>
/// {
/// return VSphere.GetVirtualMachine.Invoke(new()
/// {
/// Name = vms[__index],
/// DatacenterId = _arg0_.Id,
/// });
/// }).ToList();
///
/// var vmAffinityRule = new VSphere.ComputeClusterVmAffinityRule("vmAffinityRule", new()
/// {
/// Enabled = true,
/// ComputeClusterId = cluster.Apply(getComputeClusterResult => getComputeClusterResult.Id),
/// VirtualMachineIds = vmsVirtualMachine.Select(__item => __item.Id).ToList(),
/// });
///
/// });
/// ```
/// </summary>
[VSphereResourceType("vsphere:index/computeClusterVmAffinityRule:ComputeClusterVmAffinityRule")]
public partial class ComputeClusterVmAffinityRule : global::Pulumi.CustomResource
Expand Down
31 changes: 0 additions & 31 deletions sdk/dotnet/Datacenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,6 @@ namespace Pulumi.VSphere
/// container of inventory objects such as hosts and virtual machines.
///
/// ## Example Usage
/// ### Create datacenter on the root folder
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using VSphere = Pulumi.VSphere;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var prodDatacenter = new VSphere.Datacenter("prodDatacenter");
///
/// });
/// ```
/// ### Create datacenter on a subfolder
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using VSphere = Pulumi.VSphere;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var researchDatacenter = new VSphere.Datacenter("researchDatacenter", new()
/// {
/// Folder = "/research/",
/// });
///
/// });
/// ```
/// </summary>
[VSphereResourceType("vsphere:index/datacenter:Datacenter")]
public partial class Datacenter : global::Pulumi.CustomResource
Expand Down
84 changes: 0 additions & 84 deletions sdk/dotnet/DistributedVirtualSwitch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -607,34 +607,6 @@ public partial class DistributedVirtualSwitch : global::Pulumi.CustomResource
/// and `max_vlan` sub-arguments to define the tagged VLAN range. Multiple
/// `vlan_range` definitions are allowed, but they must not overlap. Example
/// below:
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using VSphere = Pulumi.VSphere;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var vds = new VSphere.DistributedVirtualSwitch("vds", new()
/// {
/// VlanRanges = new[]
/// {
/// new VSphere.Inputs.DistributedVirtualSwitchVlanRangeArgs
/// {
/// MaxVlan = 199,
/// MinVlan = 100,
/// },
/// new VSphere.Inputs.DistributedVirtualSwitchVlanRangeArgs
/// {
/// MaxVlan = 399,
/// MinVlan = 300,
/// },
/// },
/// });
///
/// });
/// ```
/// </summary>
[Output("vlanRanges")]
public Output<ImmutableArray<Outputs.DistributedVirtualSwitchVlanRange>> VlanRanges { get; private set; } = null!;
Expand Down Expand Up @@ -1366,34 +1338,6 @@ public InputList<string> Uplinks
/// and `max_vlan` sub-arguments to define the tagged VLAN range. Multiple
/// `vlan_range` definitions are allowed, but they must not overlap. Example
/// below:
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using VSphere = Pulumi.VSphere;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var vds = new VSphere.DistributedVirtualSwitch("vds", new()
/// {
/// VlanRanges = new[]
/// {
/// new VSphere.Inputs.DistributedVirtualSwitchVlanRangeArgs
/// {
/// MaxVlan = 199,
/// MinVlan = 100,
/// },
/// new VSphere.Inputs.DistributedVirtualSwitchVlanRangeArgs
/// {
/// MaxVlan = 399,
/// MinVlan = 300,
/// },
/// },
/// });
///
/// });
/// ```
/// </summary>
public InputList<Inputs.DistributedVirtualSwitchVlanRangeArgs> VlanRanges
{
Expand Down Expand Up @@ -2097,34 +2041,6 @@ public InputList<string> Uplinks
/// and `max_vlan` sub-arguments to define the tagged VLAN range. Multiple
/// `vlan_range` definitions are allowed, but they must not overlap. Example
/// below:
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using VSphere = Pulumi.VSphere;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var vds = new VSphere.DistributedVirtualSwitch("vds", new()
/// {
/// VlanRanges = new[]
/// {
/// new VSphere.Inputs.DistributedVirtualSwitchVlanRangeArgs
/// {
/// MaxVlan = 199,
/// MinVlan = 100,
/// },
/// new VSphere.Inputs.DistributedVirtualSwitchVlanRangeArgs
/// {
/// MaxVlan = 399,
/// MinVlan = 300,
/// },
/// },
/// });
///
/// });
/// ```
/// </summary>
public InputList<Inputs.DistributedVirtualSwitchVlanRangeGetArgs> VlanRanges
{
Expand Down
44 changes: 0 additions & 44 deletions sdk/dotnet/File.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,6 @@ namespace Pulumi.VSphere
{
/// <summary>
/// ## Example Usage
/// ### Uploading a File
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using VSphere = Pulumi.VSphere;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var ubuntuVmdkUpload = new VSphere.File("ubuntuVmdkUpload", new()
/// {
/// CreateDirectories = true,
/// Datacenter = "dc-01",
/// Datastore = "datastore-01",
/// DestinationFile = "/my/dst/path/custom_ubuntu.vmdk",
/// SourceFile = "/my/src/path/custom_ubuntu.vmdk",
/// });
///
/// });
/// ```
/// ### Copying a File
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using VSphere = Pulumi.VSphere;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var ubuntuCopy = new VSphere.File("ubuntuCopy", new()
/// {
/// CreateDirectories = true,
/// Datacenter = "dc-01",
/// Datastore = "datastore-01",
/// DestinationFile = "/my/dst/path/custom_ubuntu.vmdk",
/// SourceDatacenter = "dc-01",
/// SourceDatastore = "datastore-01",
/// SourceFile = "/my/src/path/custom_ubuntu.vmdk",
/// });
///
/// });
/// ```
/// </summary>
[VSphereResourceType("vsphere:index/file:File")]
public partial class File : global::Pulumi.CustomResource
Expand Down
56 changes: 0 additions & 56 deletions sdk/dotnet/GetComputeCluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,6 @@ public static class GetComputeCluster
/// &gt; You may also wish to see the `vsphere.ComputeCluster`
/// resource for more information about clusters and how to managed the resource
/// in this provider.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using VSphere = Pulumi.VSphere;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var datacenter = VSphere.GetDatacenter.Invoke(new()
/// {
/// Name = "dc-01",
/// });
///
/// var computeCluster = VSphere.GetComputeCluster.Invoke(new()
/// {
/// Name = "cluster-01",
/// DatacenterId = datacenter.Apply(getDatacenterResult =&gt; getDatacenterResult.Id),
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetComputeClusterResult> InvokeAsync(GetComputeClusterArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetComputeClusterResult>("vsphere:index/getComputeCluster:getComputeCluster", args ?? new GetComputeClusterArgs(), options.WithDefaults());
Expand All @@ -63,34 +35,6 @@ public static Task<GetComputeClusterResult> InvokeAsync(GetComputeClusterArgs ar
/// &gt; You may also wish to see the `vsphere.ComputeCluster`
/// resource for more information about clusters and how to managed the resource
/// in this provider.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using VSphere = Pulumi.VSphere;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var datacenter = VSphere.GetDatacenter.Invoke(new()
/// {
/// Name = "dc-01",
/// });
///
/// var computeCluster = VSphere.GetComputeCluster.Invoke(new()
/// {
/// Name = "cluster-01",
/// DatacenterId = datacenter.Apply(getDatacenterResult =&gt; getDatacenterResult.Id),
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetComputeClusterResult> Invoke(GetComputeClusterInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetComputeClusterResult>("vsphere:index/getComputeCluster:getComputeCluster", args ?? new GetComputeClusterInvokeArgs(), options.WithDefaults());
Expand Down
Loading

0 comments on commit 1485343

Please sign in to comment.