mirror of https://github.com/pulumi/pulumi.git
79 lines
3.0 KiB
C#
79 lines
3.0 KiB
C#
// *** WARNING: this file was generated by test. ***
|
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
using System;
|
|
using System.ComponentModel;
|
|
using Pulumi;
|
|
|
|
namespace Pulumi.Example
|
|
{
|
|
[EnumType]
|
|
public readonly struct OutputOnlyEnumType : IEquatable<OutputOnlyEnumType>
|
|
{
|
|
private readonly string _value;
|
|
|
|
private OutputOnlyEnumType(string value)
|
|
{
|
|
_value = value ?? throw new ArgumentNullException(nameof(value));
|
|
}
|
|
|
|
public static OutputOnlyEnumType Foo { get; } = new OutputOnlyEnumType("foo");
|
|
public static OutputOnlyEnumType Bar { get; } = new OutputOnlyEnumType("bar");
|
|
|
|
public static bool operator ==(OutputOnlyEnumType left, OutputOnlyEnumType right) => left.Equals(right);
|
|
public static bool operator !=(OutputOnlyEnumType left, OutputOnlyEnumType right) => !left.Equals(right);
|
|
|
|
public static explicit operator string(OutputOnlyEnumType value) => value._value;
|
|
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public override bool Equals(object? obj) => obj is OutputOnlyEnumType other && Equals(other);
|
|
public bool Equals(OutputOnlyEnumType other) => string.Equals(_value, other._value, StringComparison.Ordinal);
|
|
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
|
|
|
|
public override string ToString() => _value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// types of rubber trees
|
|
/// </summary>
|
|
[EnumType]
|
|
public readonly struct RubberTreeVariety : IEquatable<RubberTreeVariety>
|
|
{
|
|
private readonly string _value;
|
|
|
|
private RubberTreeVariety(string value)
|
|
{
|
|
_value = value ?? throw new ArgumentNullException(nameof(value));
|
|
}
|
|
|
|
/// <summary>
|
|
/// A burgundy rubber tree.
|
|
/// </summary>
|
|
public static RubberTreeVariety Burgundy { get; } = new RubberTreeVariety("Burgundy");
|
|
/// <summary>
|
|
/// A ruby rubber tree.
|
|
/// </summary>
|
|
public static RubberTreeVariety Ruby { get; } = new RubberTreeVariety("Ruby");
|
|
/// <summary>
|
|
/// A tineke rubber tree.
|
|
/// </summary>
|
|
public static RubberTreeVariety Tineke { get; } = new RubberTreeVariety("Tineke");
|
|
|
|
public static bool operator ==(RubberTreeVariety left, RubberTreeVariety right) => left.Equals(right);
|
|
public static bool operator !=(RubberTreeVariety left, RubberTreeVariety right) => !left.Equals(right);
|
|
|
|
public static explicit operator string(RubberTreeVariety value) => value._value;
|
|
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public override bool Equals(object? obj) => obj is RubberTreeVariety other && Equals(other);
|
|
public bool Equals(RubberTreeVariety other) => string.Equals(_value, other._value, StringComparison.Ordinal);
|
|
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
|
|
|
|
public override string ToString() => _value;
|
|
}
|
|
}
|