Skip to content

Commit a2a5ceb

Browse files
ApplicationGroup Tests (Azure#31835)
1 parent 83d020e commit a2a5ceb

File tree

141 files changed

+52451
-42350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+52451
-42350
lines changed

sdk/eventhub/Azure.ResourceManager.EventHubs/api/Azure.ResourceManager.EventHubs.netstandard2.0.cs

Lines changed: 239 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using System;
7+
using System.ComponentModel;
8+
using Azure.Core;
9+
10+
[assembly: CodeGenSuppressType("EventHubsTlsVersion")]
11+
namespace Azure.ResourceManager.EventHubs.Models
12+
{
13+
/// <summary> The minimum TLS version for the cluster to support, e.g. &apos;1.2&apos;. </summary>
14+
public readonly partial struct EventHubsTlsVersion : IEquatable<EventHubsTlsVersion>
15+
{
16+
private readonly string _value;
17+
18+
/// <summary> Initializes a new instance of <see cref="EventHubsTlsVersion"/>. </summary>
19+
/// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
20+
public EventHubsTlsVersion(string value)
21+
{
22+
_value = value ?? throw new ArgumentNullException(nameof(value));
23+
}
24+
#pragma warning disable CA1707
25+
private const string Tls1_0Value = "1.0";
26+
private const string Tls1_1Value = "1.1";
27+
private const string Tls1_2Value = "1.2";
28+
29+
/// <summary> 1.0. </summary>
30+
public static EventHubsTlsVersion Tls1_0 { get; } = new EventHubsTlsVersion(Tls1_0Value);
31+
/// <summary> 1.1. </summary>
32+
public static EventHubsTlsVersion Tls1_1 { get; } = new EventHubsTlsVersion(Tls1_1Value);
33+
/// <summary> 1.2. </summary>
34+
public static EventHubsTlsVersion Tls1_2 { get; } = new EventHubsTlsVersion(Tls1_2Value);
35+
#pragma warning restore CA1707
36+
/// <summary> Determines if two <see cref="EventHubsTlsVersion"/> values are the same. </summary>
37+
public static bool operator ==(EventHubsTlsVersion left, EventHubsTlsVersion right) => left.Equals(right);
38+
/// <summary> Determines if two <see cref="EventHubsTlsVersion"/> values are not the same. </summary>
39+
public static bool operator !=(EventHubsTlsVersion left, EventHubsTlsVersion right) => !left.Equals(right);
40+
/// <summary> Converts a string to a <see cref="EventHubsTlsVersion"/>. </summary>
41+
public static implicit operator EventHubsTlsVersion(string value) => new EventHubsTlsVersion(value);
42+
43+
/// <inheritdoc />
44+
[EditorBrowsable(EditorBrowsableState.Never)]
45+
public override bool Equals(object obj) => obj is EventHubsTlsVersion other && Equals(other);
46+
/// <inheritdoc />
47+
public bool Equals(EventHubsTlsVersion other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
48+
49+
/// <inheritdoc />
50+
[EditorBrowsable(EditorBrowsableState.Never)]
51+
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
52+
/// <inheritdoc />
53+
public override string ToString() => _value;
54+
}
55+
}

sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupCollection.cs

Lines changed: 333 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsApplicationGroupData.cs

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)