github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/dashed-import-schema/dotnet/Enums.cs (about)

     1  // *** WARNING: this file was generated by test. ***
     2  // *** Do not edit by hand unless you're certain you know what you are doing! ***
     3  
     4  using System;
     5  using System.ComponentModel;
     6  using Pulumi;
     7  
     8  namespace Pulumi.Plant
     9  {
    10      /// <summary>
    11      /// The log_name to populate in the Cloud Audit Record. This is added to regress pulumi/pulumi issue #7913
    12      /// </summary>
    13      [EnumType]
    14      public readonly struct CloudAuditOptionsLogName : IEquatable<CloudAuditOptionsLogName>
    15      {
    16          private readonly string _value;
    17  
    18          private CloudAuditOptionsLogName(string value)
    19          {
    20              _value = value ?? throw new ArgumentNullException(nameof(value));
    21          }
    22  
    23          /// <summary>
    24          /// Default. Should not be used.
    25          /// </summary>
    26          public static CloudAuditOptionsLogName UnspecifiedLogName { get; } = new CloudAuditOptionsLogName("UNSPECIFIED_LOG_NAME");
    27          /// <summary>
    28          /// Corresponds to "cloudaudit.googleapis.com/activity"
    29          /// </summary>
    30          public static CloudAuditOptionsLogName AdminActivity { get; } = new CloudAuditOptionsLogName("ADMIN_ACTIVITY");
    31          /// <summary>
    32          /// Corresponds to "cloudaudit.googleapis.com/data_access"
    33          /// </summary>
    34          public static CloudAuditOptionsLogName DataAccess { get; } = new CloudAuditOptionsLogName("DATA_ACCESS");
    35          /// <summary>
    36          /// What if triple quotes """ are used in the description
    37          /// </summary>
    38          public static CloudAuditOptionsLogName Synthetic { get; } = new CloudAuditOptionsLogName("SYNTHETIC");
    39  
    40          public static bool operator ==(CloudAuditOptionsLogName left, CloudAuditOptionsLogName right) => left.Equals(right);
    41          public static bool operator !=(CloudAuditOptionsLogName left, CloudAuditOptionsLogName right) => !left.Equals(right);
    42  
    43          public static explicit operator string(CloudAuditOptionsLogName value) => value._value;
    44  
    45          [EditorBrowsable(EditorBrowsableState.Never)]
    46          public override bool Equals(object? obj) => obj is CloudAuditOptionsLogName other && Equals(other);
    47          public bool Equals(CloudAuditOptionsLogName other) => string.Equals(_value, other._value, StringComparison.Ordinal);
    48  
    49          [EditorBrowsable(EditorBrowsableState.Never)]
    50          public override int GetHashCode() => _value?.GetHashCode() ?? 0;
    51  
    52          public override string ToString() => _value;
    53      }
    54  
    55      [EnumType]
    56      public readonly struct ContainerBrightness : IEquatable<ContainerBrightness>
    57      {
    58          private readonly double _value;
    59  
    60          private ContainerBrightness(double value)
    61          {
    62              _value = value;
    63          }
    64  
    65          public static ContainerBrightness ZeroPointOne { get; } = new ContainerBrightness(0.1);
    66          public static ContainerBrightness One { get; } = new ContainerBrightness(1);
    67  
    68          public static bool operator ==(ContainerBrightness left, ContainerBrightness right) => left.Equals(right);
    69          public static bool operator !=(ContainerBrightness left, ContainerBrightness right) => !left.Equals(right);
    70  
    71          public static explicit operator double(ContainerBrightness value) => value._value;
    72  
    73          [EditorBrowsable(EditorBrowsableState.Never)]
    74          public override bool Equals(object? obj) => obj is ContainerBrightness other && Equals(other);
    75          public bool Equals(ContainerBrightness other) => _value == other._value;
    76  
    77          [EditorBrowsable(EditorBrowsableState.Never)]
    78          public override int GetHashCode() => _value.GetHashCode();
    79  
    80          public override string ToString() => _value.ToString();
    81      }
    82  
    83      /// <summary>
    84      /// plant container colors
    85      /// </summary>
    86      [EnumType]
    87      public readonly struct ContainerColor : IEquatable<ContainerColor>
    88      {
    89          private readonly string _value;
    90  
    91          private ContainerColor(string value)
    92          {
    93              _value = value ?? throw new ArgumentNullException(nameof(value));
    94          }
    95  
    96          public static ContainerColor Red { get; } = new ContainerColor("red");
    97          public static ContainerColor Blue { get; } = new ContainerColor("blue");
    98          public static ContainerColor Yellow { get; } = new ContainerColor("yellow");
    99  
   100          public static bool operator ==(ContainerColor left, ContainerColor right) => left.Equals(right);
   101          public static bool operator !=(ContainerColor left, ContainerColor right) => !left.Equals(right);
   102  
   103          public static explicit operator string(ContainerColor value) => value._value;
   104  
   105          [EditorBrowsable(EditorBrowsableState.Never)]
   106          public override bool Equals(object? obj) => obj is ContainerColor other && Equals(other);
   107          public bool Equals(ContainerColor other) => string.Equals(_value, other._value, StringComparison.Ordinal);
   108  
   109          [EditorBrowsable(EditorBrowsableState.Never)]
   110          public override int GetHashCode() => _value?.GetHashCode() ?? 0;
   111  
   112          public override string ToString() => _value;
   113      }
   114  
   115      /// <summary>
   116      /// plant container sizes
   117      /// </summary>
   118      public enum ContainerSize
   119      {
   120          FourInch = 4,
   121          SixInch = 6,
   122          [Obsolete(@"Eight inch pots are no longer supported.")]
   123          EightInch = 8,
   124      }
   125  }