|
| 1 | +// *** WARNING: this file was generated by pulumi. *** |
| 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 PineconeDatabase.Pinecone |
| 9 | +{ |
| 10 | + [EnumType] |
| 11 | + public readonly struct IndexMetric : IEquatable<IndexMetric> |
| 12 | + { |
| 13 | + private readonly string _value; |
| 14 | + |
| 15 | + private IndexMetric(string value) |
| 16 | + { |
| 17 | + _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 18 | + } |
| 19 | + |
| 20 | + public static IndexMetric Dotproduct { get; } = new IndexMetric("dotproduct"); |
| 21 | + public static IndexMetric Cosine { get; } = new IndexMetric("cosine"); |
| 22 | + public static IndexMetric Euclidean { get; } = new IndexMetric("euclidean"); |
| 23 | + |
| 24 | + public static bool operator ==(IndexMetric left, IndexMetric right) => left.Equals(right); |
| 25 | + public static bool operator !=(IndexMetric left, IndexMetric right) => !left.Equals(right); |
| 26 | + |
| 27 | + public static explicit operator string(IndexMetric value) => value._value; |
| 28 | + |
| 29 | + [EditorBrowsable(EditorBrowsableState.Never)] |
| 30 | + public override bool Equals(object? obj) => obj is IndexMetric other && Equals(other); |
| 31 | + public bool Equals(IndexMetric other) => string.Equals(_value, other._value, StringComparison.Ordinal); |
| 32 | + |
| 33 | + [EditorBrowsable(EditorBrowsableState.Never)] |
| 34 | + public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| 35 | + |
| 36 | + public override string ToString() => _value; |
| 37 | + } |
| 38 | + |
| 39 | + [EnumType] |
| 40 | + public readonly struct ServerlessSpecCloud : IEquatable<ServerlessSpecCloud> |
| 41 | + { |
| 42 | + private readonly string _value; |
| 43 | + |
| 44 | + private ServerlessSpecCloud(string value) |
| 45 | + { |
| 46 | + _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 47 | + } |
| 48 | + |
| 49 | + public static ServerlessSpecCloud Aws { get; } = new ServerlessSpecCloud("aws"); |
| 50 | + public static ServerlessSpecCloud Azure { get; } = new ServerlessSpecCloud("azure"); |
| 51 | + public static ServerlessSpecCloud Gcp { get; } = new ServerlessSpecCloud("gcp"); |
| 52 | + |
| 53 | + public static bool operator ==(ServerlessSpecCloud left, ServerlessSpecCloud right) => left.Equals(right); |
| 54 | + public static bool operator !=(ServerlessSpecCloud left, ServerlessSpecCloud right) => !left.Equals(right); |
| 55 | + |
| 56 | + public static explicit operator string(ServerlessSpecCloud value) => value._value; |
| 57 | + |
| 58 | + [EditorBrowsable(EditorBrowsableState.Never)] |
| 59 | + public override bool Equals(object? obj) => obj is ServerlessSpecCloud other && Equals(other); |
| 60 | + public bool Equals(ServerlessSpecCloud other) => string.Equals(_value, other._value, StringComparison.Ordinal); |
| 61 | + |
| 62 | + [EditorBrowsable(EditorBrowsableState.Never)] |
| 63 | + public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| 64 | + |
| 65 | + public override string ToString() => _value; |
| 66 | + } |
| 67 | +} |
0 commit comments