Skip to content

Commit

Permalink
Upgrade pulumi-terraform-bridge to v3.63.1 (#810)
Browse files Browse the repository at this point in the history
This PR was generated via `$ upgrade-provider pulumi/pulumi-docker
--kind=bridge --target-bridge-version=v3.63.1 --pr-reviewers=t0yv0
--pr-description=`.

---

- Upgrading pulumi-terraform-bridge from v3.63.0 to v3.63.1.
  • Loading branch information
pulumi-bot authored Oct 25, 2023
1 parent cea7052 commit 4071f45
Show file tree
Hide file tree
Showing 38 changed files with 1,090 additions and 3 deletions.
2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/moby/buildkit v0.11.4
github.com/moby/moby v23.0.3+incompatible
github.com/pkg/errors v0.9.1
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.1
github.com/pulumi/pulumi/pkg/v3 v3.90.1
github.com/pulumi/pulumi/sdk/v3 v3.90.1
github.com/stretchr/testify v1.8.4
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2247,8 +2247,8 @@ github.com/pulumi/pulumi-java/pkg v0.9.8 h1:c8mYsalnRXA2Ibgvv6scefOn6mW1Vb0UT0mc
github.com/pulumi/pulumi-java/pkg v0.9.8/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1/go.mod h1:7OeUPH8rpt5ipyj9EFcnXpuzQ8SHL0dyqdfa8nOacdk=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.0 h1:otdmkNsMGyZ+proUZClznZo+cEchkSSkmaGcq+Gf+6s=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.0/go.mod h1:6YVbDo019OeHkQWo9MnUbBy6cCgCQeoXZDjmR9SYmUA=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.1 h1:hBgediyT2LdS5yfD5AMiCmBJ/TYP94Xxv6a4TcAfV0g=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.1/go.mod h1:6YVbDo019OeHkQWo9MnUbBy6cCgCQeoXZDjmR9SYmUA=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 h1:rIzMmtcVpPX8ynaz6/nW5AHNY63DiNfCohqmxWvMpM4=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4/go.mod h1:Kt8RIZWa/N8rW3+0g6NrqCBmF3o+HuIhFaZpssEkG6w=
github.com/pulumi/pulumi-yaml v1.2.2 h1:W6BeUBLhDrJ2GSU0em1AUVelG9PBI4ABY61DdhJOO3E=
Expand Down
25 changes: 25 additions & 0 deletions sdk/dotnet/Container.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,31 @@ namespace Pulumi.Docker
/// <!-- Bug: Type and Name are switched -->
/// Manages the lifecycle of a Docker container.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Docker = Pulumi.Docker;
///
/// return await Deployment.RunAsync(() =>
/// {
/// // Find the latest Ubuntu precise image.
/// var ubuntuRemoteImage = new Docker.RemoteImage("ubuntuRemoteImage", new()
/// {
/// Name = "ubuntu:precise",
/// });
///
/// // Start a container
/// var ubuntuContainer = new Docker.Container("ubuntuContainer", new()
/// {
/// Image = ubuntuRemoteImage.ImageId,
/// });
///
/// });
/// ```
///
/// ## Import
///
/// ### Example Assuming you created a `container` as follows #!/bin/bash docker run --name foo -p8080:80 -d nginx
Expand Down
44 changes: 44 additions & 0 deletions sdk/dotnet/GetNetwork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,56 @@ public static class GetNetwork
{
/// <summary>
/// `docker.Network` provides details about a specific Docker Network.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Docker = Pulumi.Docker;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var main = Docker.GetNetwork.Invoke(new()
/// {
/// Name = "main",
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetNetworkResult> InvokeAsync(GetNetworkArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetNetworkResult>("docker:index/getNetwork:getNetwork", args ?? new GetNetworkArgs(), options.WithDefaults());

/// <summary>
/// `docker.Network` provides details about a specific Docker Network.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Docker = Pulumi.Docker;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var main = Docker.GetNetwork.Invoke(new()
/// {
/// Name = "main",
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetNetworkResult> Invoke(GetNetworkInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetNetworkResult>("docker:index/getNetwork:getNetwork", args ?? new GetNetworkInvokeArgs(), options.WithDefaults());
Expand Down
62 changes: 62 additions & 0 deletions sdk/dotnet/GetRegistryImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,74 @@ public static class GetRegistryImage
{
/// <summary>
/// Reads the image metadata from a Docker Registry. Used in conjunction with the docker.RemoteImage resource to keep an image up to date on the latest available version of the tag.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Docker = Pulumi.Docker;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var ubuntuRegistryImage = Docker.GetRegistryImage.Invoke(new()
/// {
/// Name = "ubuntu:precise",
/// });
///
/// var ubuntuRemoteImage = new Docker.RemoteImage("ubuntuRemoteImage", new()
/// {
/// Name = ubuntuRegistryImage.Apply(getRegistryImageResult =&gt; getRegistryImageResult.Name),
/// PullTriggers = new[]
/// {
/// ubuntuRegistryImage.Apply(getRegistryImageResult =&gt; getRegistryImageResult.Sha256Digest),
/// },
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetRegistryImageResult> InvokeAsync(GetRegistryImageArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetRegistryImageResult>("docker:index/getRegistryImage:getRegistryImage", args ?? new GetRegistryImageArgs(), options.WithDefaults());

/// <summary>
/// Reads the image metadata from a Docker Registry. Used in conjunction with the docker.RemoteImage resource to keep an image up to date on the latest available version of the tag.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Docker = Pulumi.Docker;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var ubuntuRegistryImage = Docker.GetRegistryImage.Invoke(new()
/// {
/// Name = "ubuntu:precise",
/// });
///
/// var ubuntuRemoteImage = new Docker.RemoteImage("ubuntuRemoteImage", new()
/// {
/// Name = ubuntuRegistryImage.Apply(getRegistryImageResult =&gt; getRegistryImageResult.Name),
/// PullTriggers = new[]
/// {
/// ubuntuRegistryImage.Apply(getRegistryImageResult =&gt; getRegistryImageResult.Sha256Digest),
/// },
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetRegistryImageResult> Invoke(GetRegistryImageInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetRegistryImageResult>("docker:index/getRegistryImage:getRegistryImage", args ?? new GetRegistryImageInvokeArgs(), options.WithDefaults());
Expand Down
74 changes: 74 additions & 0 deletions sdk/dotnet/GetRemoteImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,86 @@ public static class GetRemoteImage
{
/// <summary>
/// `docker.RemoteImage` provides details about a specific Docker Image which need to be presend on the Docker Host
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Docker = Pulumi.Docker;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var latest = Docker.GetRemoteImage.Invoke(new()
/// {
/// Name = "nginx",
/// });
///
/// var specific = Docker.GetRemoteImage.Invoke(new()
/// {
/// Name = "nginx:1.17.6",
/// });
///
/// var digest = Docker.GetRemoteImage.Invoke(new()
/// {
/// Name = "nginx@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2",
/// });
///
/// var tagAndDigest = Docker.GetRemoteImage.Invoke(new()
/// {
/// Name = "nginx:1.19.1@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2",
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetRemoteImageResult> InvokeAsync(GetRemoteImageArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetRemoteImageResult>("docker:index/getRemoteImage:getRemoteImage", args ?? new GetRemoteImageArgs(), options.WithDefaults());

/// <summary>
/// `docker.RemoteImage` provides details about a specific Docker Image which need to be presend on the Docker Host
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Docker = Pulumi.Docker;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var latest = Docker.GetRemoteImage.Invoke(new()
/// {
/// Name = "nginx",
/// });
///
/// var specific = Docker.GetRemoteImage.Invoke(new()
/// {
/// Name = "nginx:1.17.6",
/// });
///
/// var digest = Docker.GetRemoteImage.Invoke(new()
/// {
/// Name = "nginx@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2",
/// });
///
/// var tagAndDigest = Docker.GetRemoteImage.Invoke(new()
/// {
/// Name = "nginx:1.19.1@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2",
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetRemoteImageResult> Invoke(GetRemoteImageInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetRemoteImageResult>("docker:index/getRemoteImage:getRemoteImage", args ?? new GetRemoteImageInvokeArgs(), options.WithDefaults());
Expand Down
15 changes: 15 additions & 0 deletions sdk/dotnet/Network.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ namespace Pulumi.Docker
/// &lt;!-- Bug: Type and Name are switched --&gt;
/// `docker.Network` provides a docker network resource.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Docker = Pulumi.Docker;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var privateNetwork = new Docker.Network("privateNetwork");
///
/// });
/// ```
///
/// ## Import
///
/// ### Example Assuming you created a `network` as follows #!/bin/bash docker network create foo prints the long ID 87b57a9b91ecab2db2a6dbf38df74c67d7c7108cbe479d6576574ec2cd8c2d73 you provide the definition for the resource as follows terraform resource "docker_network" "foo" {
Expand Down
27 changes: 27 additions & 0 deletions sdk/dotnet/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,33 @@ namespace Pulumi.Docker
/// &lt;!-- Bug: Type and Name are switched --&gt;
/// Manages the lifecycle of a Docker plugin.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Docker = Pulumi.Docker;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var sample_volume_plugin = new Docker.Plugin("sample-volume-plugin", new()
/// {
/// Alias = "sample-volume-plugin",
/// EnableTimeout = 60,
/// Enabled = false,
/// Envs = new[]
/// {
/// "DEBUG=1",
/// },
/// ForceDestroy = true,
/// ForceDisable = true,
/// GrantAllPermissions = true,
/// });
///
/// });
/// ```
///
/// ## Import
///
/// #!/bin/bash
Expand Down
29 changes: 29 additions & 0 deletions sdk/dotnet/RegistryImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,35 @@ namespace Pulumi.Docker
/// <summary>
/// &lt;!-- Bug: Type and Name are switched --&gt;
/// Manages the lifecycle of docker image in a registry. You can upload images to a registry (= `docker push`) and also delete them again
///
/// ## Example Usage
///
/// Build an image with the `docker.RemoteImage` resource and then push it to a registry:
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Docker = Pulumi.Docker;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var helloworld = new Docker.RegistryImage("helloworld", new()
/// {
/// KeepRemotely = true,
/// });
///
/// var image = new Docker.RemoteImage("image", new()
/// {
/// Name = "registry.com/somename:1.0",
/// Build = new Docker.Inputs.RemoteImageBuildArgs
/// {
/// Context = $"{path.Cwd}/absolutePathToContextFolder",
/// },
/// });
///
/// });
/// ```
/// </summary>
[DockerResourceType("docker:index/registryImage:RegistryImage")]
public partial class RegistryImage : global::Pulumi.CustomResource
Expand Down
Loading

0 comments on commit 4071f45

Please sign in to comment.