Files
Ramon Quitales 8c5a9ac033 Fix weekly pulumi/pulumi update (#501)
Fixes: #497 

This PR follows the `weekly-pulumi-update` CI workflow steps to update
our `pulumi/pulumi` dependency, with manual intervention to resolve
tooling update conflicts. Before generating the SDKs, it's necessary to
update the language tools and otel packages to ensure compatibility with
the latest changes.

Additional command executed for the manual updates:

```sh
TOOLS=(
    "github.com/pulumi/pulumi/sdk/go/pulumi-language-go/v3"
    "github.com/pulumi/pulumi/sdk/nodejs/cmd/pulumi-language-nodejs/v3"
    "github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python/v3"
    "go.opentelemetry.io/otel/exporters/otlp/otlptrace"
)

for TOOL in "${TOOLS[@]}"; do
    go get -u $TOOL
    go mod tidy
done
```

---

Note: the Go directive is upgraded to v1.24 as
`github.com/pulumi/pulumi/sdk/go/pulumi-language-go/v3` requires Go
v1.24
([ref](5c96e4e6aa/sdk/go/pulumi-language-go/go.mod (L3))).
2025-04-21 11:26:37 -07:00

174 lines
7.8 KiB
C#
Generated

// *** WARNING: this file was generated by pulumi-language-dotnet. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.ComponentModel;
using Pulumi;
namespace Pulumi.DockerBuild
{
[EnumType]
public readonly struct CacheMode : IEquatable<CacheMode>
{
private readonly string _value;
private CacheMode(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}
/// <summary>
/// Only layers that are exported into the resulting image are cached.
/// </summary>
public static CacheMode Min { get; } = new CacheMode("min");
/// <summary>
/// All layers are cached, even those of intermediate steps.
/// </summary>
public static CacheMode Max { get; } = new CacheMode("max");
public static bool operator ==(CacheMode left, CacheMode right) => left.Equals(right);
public static bool operator !=(CacheMode left, CacheMode right) => !left.Equals(right);
public static explicit operator string(CacheMode value) => value._value;
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj) => obj is CacheMode other && Equals(other);
public bool Equals(CacheMode other) => string.Equals(_value, other._value, StringComparison.Ordinal);
[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
public override string ToString() => _value;
}
[EnumType]
public readonly struct CompressionType : IEquatable<CompressionType>
{
private readonly string _value;
private CompressionType(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}
/// <summary>
/// Use `gzip` for compression.
/// </summary>
public static CompressionType Gzip { get; } = new CompressionType("gzip");
/// <summary>
/// Use `estargz` for compression.
/// </summary>
public static CompressionType Estargz { get; } = new CompressionType("estargz");
/// <summary>
/// Use `zstd` for compression.
/// </summary>
public static CompressionType Zstd { get; } = new CompressionType("zstd");
public static bool operator ==(CompressionType left, CompressionType right) => left.Equals(right);
public static bool operator !=(CompressionType left, CompressionType right) => !left.Equals(right);
public static explicit operator string(CompressionType value) => value._value;
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj) => obj is CompressionType other && Equals(other);
public bool Equals(CompressionType other) => string.Equals(_value, other._value, StringComparison.Ordinal);
[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
public override string ToString() => _value;
}
[EnumType]
public readonly struct NetworkMode : IEquatable<NetworkMode>
{
private readonly string _value;
private NetworkMode(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}
/// <summary>
/// The default sandbox network mode.
/// </summary>
public static NetworkMode @Default { get; } = new NetworkMode("default");
/// <summary>
/// Host network mode.
/// </summary>
public static NetworkMode Host { get; } = new NetworkMode("host");
/// <summary>
/// Disable network access.
/// </summary>
public static NetworkMode None { get; } = new NetworkMode("none");
public static bool operator ==(NetworkMode left, NetworkMode right) => left.Equals(right);
public static bool operator !=(NetworkMode left, NetworkMode right) => !left.Equals(right);
public static explicit operator string(NetworkMode value) => value._value;
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj) => obj is NetworkMode other && Equals(other);
public bool Equals(NetworkMode other) => string.Equals(_value, other._value, StringComparison.Ordinal);
[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
public override string ToString() => _value;
}
[EnumType]
public readonly struct Platform : IEquatable<Platform>
{
private readonly string _value;
private Platform(string value)
{
_value = value ?? throw new ArgumentNullException(nameof(value));
}
public static Platform Darwin_386 { get; } = new Platform("darwin/386");
public static Platform Darwin_amd64 { get; } = new Platform("darwin/amd64");
public static Platform Darwin_arm { get; } = new Platform("darwin/arm");
public static Platform Darwin_arm64 { get; } = new Platform("darwin/arm64");
public static Platform Dragonfly_amd64 { get; } = new Platform("dragonfly/amd64");
public static Platform Freebsd_386 { get; } = new Platform("freebsd/386");
public static Platform Freebsd_amd64 { get; } = new Platform("freebsd/amd64");
public static Platform Freebsd_arm { get; } = new Platform("freebsd/arm");
public static Platform Linux_386 { get; } = new Platform("linux/386");
public static Platform Linux_amd64 { get; } = new Platform("linux/amd64");
public static Platform Linux_arm { get; } = new Platform("linux/arm");
public static Platform Linux_arm64 { get; } = new Platform("linux/arm64");
public static Platform Linux_mips64 { get; } = new Platform("linux/mips64");
public static Platform Linux_mips64le { get; } = new Platform("linux/mips64le");
public static Platform Linux_ppc64le { get; } = new Platform("linux/ppc64le");
public static Platform Linux_riscv64 { get; } = new Platform("linux/riscv64");
public static Platform Linux_s390x { get; } = new Platform("linux/s390x");
public static Platform Netbsd_386 { get; } = new Platform("netbsd/386");
public static Platform Netbsd_amd64 { get; } = new Platform("netbsd/amd64");
public static Platform Netbsd_arm { get; } = new Platform("netbsd/arm");
public static Platform Openbsd_386 { get; } = new Platform("openbsd/386");
public static Platform Openbsd_amd64 { get; } = new Platform("openbsd/amd64");
public static Platform Openbsd_arm { get; } = new Platform("openbsd/arm");
public static Platform Plan9_386 { get; } = new Platform("plan9/386");
public static Platform Plan9_amd64 { get; } = new Platform("plan9/amd64");
public static Platform Solaris_amd64 { get; } = new Platform("solaris/amd64");
public static Platform Windows_386 { get; } = new Platform("windows/386");
public static Platform Windows_amd64 { get; } = new Platform("windows/amd64");
public static bool operator ==(Platform left, Platform right) => left.Equals(right);
public static bool operator !=(Platform left, Platform right) => !left.Equals(right);
public static explicit operator string(Platform value) => value._value;
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object? obj) => obj is Platform other && Equals(other);
public bool Equals(Platform other) => string.Equals(_value, other._value, StringComparison.Ordinal);
[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
public override string ToString() => _value;
}
}