Skip to content

Commit 9860bdb

Browse files
authored
Release for Traffic Manager new API 2022-04-01 (#21961)
* Generated Code for new TM API 2022-04-01 * Re-record tests * Update change log
1 parent 60ebdb4 commit 9860bdb

File tree

59 files changed

+10691
-8133
lines changed

Some content is hidden

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

59 files changed

+10691
-8133
lines changed

src/TrafficManager/TrafficManager.Management.Sdk/Generated/EndpointsOperations.cs

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -127,24 +127,10 @@ internal EndpointsOperations(TrafficManagerManagementClient client)
127127
{
128128
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
129129
}
130-
if (Client.ApiVersion != null)
131-
{
132-
if (Client.ApiVersion.Length < 1)
133-
{
134-
throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
135-
}
136-
}
137130
if (Client.SubscriptionId == null)
138131
{
139132
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
140133
}
141-
if (Client.SubscriptionId != null)
142-
{
143-
if (Client.SubscriptionId.Length < 1)
144-
{
145-
throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
146-
}
147-
}
148134
// Tracing
149135
bool _shouldTrace = ServiceClientTracing.IsEnabled;
150136
string _invocationId = null;
@@ -374,24 +360,10 @@ internal EndpointsOperations(TrafficManagerManagementClient client)
374360
{
375361
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
376362
}
377-
if (Client.ApiVersion != null)
378-
{
379-
if (Client.ApiVersion.Length < 1)
380-
{
381-
throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
382-
}
383-
}
384363
if (Client.SubscriptionId == null)
385364
{
386365
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
387366
}
388-
if (Client.SubscriptionId != null)
389-
{
390-
if (Client.SubscriptionId.Length < 1)
391-
{
392-
throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
393-
}
394-
}
395367
// Tracing
396368
bool _shouldTrace = ServiceClientTracing.IsEnabled;
397369
string _invocationId = null;
@@ -622,24 +594,10 @@ internal EndpointsOperations(TrafficManagerManagementClient client)
622594
{
623595
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
624596
}
625-
if (Client.ApiVersion != null)
626-
{
627-
if (Client.ApiVersion.Length < 1)
628-
{
629-
throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
630-
}
631-
}
632597
if (Client.SubscriptionId == null)
633598
{
634599
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
635600
}
636-
if (Client.SubscriptionId != null)
637-
{
638-
if (Client.SubscriptionId.Length < 1)
639-
{
640-
throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
641-
}
642-
}
643601
// Tracing
644602
bool _shouldTrace = ServiceClientTracing.IsEnabled;
645603
string _invocationId = null;
@@ -884,24 +842,10 @@ internal EndpointsOperations(TrafficManagerManagementClient client)
884842
{
885843
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
886844
}
887-
if (Client.ApiVersion != null)
888-
{
889-
if (Client.ApiVersion.Length < 1)
890-
{
891-
throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
892-
}
893-
}
894845
if (Client.SubscriptionId == null)
895846
{
896847
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
897848
}
898-
if (Client.SubscriptionId != null)
899-
{
900-
if (Client.SubscriptionId.Length < 1)
901-
{
902-
throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
903-
}
904-
}
905849
// Tracing
906850
bool _shouldTrace = ServiceClientTracing.IsEnabled;
907851
string _invocationId = null;

src/TrafficManager/TrafficManager.Management.Sdk/Generated/GeographicHierarchiesOperations.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,6 @@ internal GeographicHierarchiesOperations(TrafficManagerManagementClient client)
8181
{
8282
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
8383
}
84-
if (Client.ApiVersion != null)
85-
{
86-
if (Client.ApiVersion.Length < 1)
87-
{
88-
throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
89-
}
90-
}
9184
// Tracing
9285
bool _shouldTrace = ServiceClientTracing.IsEnabled;
9386
string _invocationId = null;

src/TrafficManager/TrafficManager.Management.Sdk/Generated/HeatMapOperations.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,6 @@ internal HeatMapOperations(TrafficManagerManagementClient client)
9494
{
9595
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
9696
}
97-
if (Client.SubscriptionId != null)
98-
{
99-
if (Client.SubscriptionId.Length < 1)
100-
{
101-
throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
102-
}
103-
}
10497
if (resourceGroupName == null)
10598
{
10699
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
@@ -146,13 +139,6 @@ internal HeatMapOperations(TrafficManagerManagementClient client)
146139
{
147140
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
148141
}
149-
if (Client.ApiVersion != null)
150-
{
151-
if (Client.ApiVersion.Length < 1)
152-
{
153-
throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
154-
}
155-
}
156142
string heatMapType = "default";
157143
// Tracing
158144
bool _shouldTrace = ServiceClientTracing.IsEnabled;

src/TrafficManager/TrafficManager.Management.Sdk/Generated/IProfilesOperations.cs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,31 @@ public partial interface IProfilesOperations
4949
/// </exception>
5050
Task<AzureOperationResponse<TrafficManagerNameAvailability>> CheckTrafficManagerRelativeDnsNameAvailabilityWithHttpMessagesAsync(string name = default(string), string type = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
5151
/// <summary>
52+
/// Checks the availability of a Traffic Manager Relative DNS name.
53+
/// </summary>
54+
/// <param name='name'>
55+
/// The name of the resource.
56+
/// </param>
57+
/// <param name='type'>
58+
/// The type of the resource.
59+
/// </param>
60+
/// <param name='customHeaders'>
61+
/// The headers that will be added to request.
62+
/// </param>
63+
/// <param name='cancellationToken'>
64+
/// The cancellation token.
65+
/// </param>
66+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
67+
/// Thrown when the operation returned an invalid status code
68+
/// </exception>
69+
/// <exception cref="Microsoft.Rest.SerializationException">
70+
/// Thrown when unable to deserialize the response
71+
/// </exception>
72+
/// <exception cref="Microsoft.Rest.ValidationException">
73+
/// Thrown when a required parameter is null
74+
/// </exception>
75+
Task<AzureOperationResponse<TrafficManagerNameAvailability>> CheckTrafficManagerNameAvailabilityV2WithHttpMessagesAsync(string name = default(string), string type = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
76+
/// <summary>
5277
/// Lists all Traffic Manager profiles within a resource group.
5378
/// </summary>
5479
/// <param name='resourceGroupName'>

src/TrafficManager/TrafficManager.Management.Sdk/Generated/ITrafficManagerManagementClient.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ public partial interface ITrafficManagerManagementClient : System.IDisposable
4040
ServiceClientCredentials Credentials { get; }
4141

4242
/// <summary>
43-
/// The ID of the target subscription.
43+
/// Gets subscription credentials which uniquely identify Microsoft
44+
/// Azure subscription. The subscription ID forms part of the URI for
45+
/// every service call.
4446
/// </summary>
4547
string SubscriptionId { get; set; }
4648

4749
/// <summary>
48-
/// The API version to use for this operation.
50+
/// Client Api Version.
4951
/// </summary>
5052
string ApiVersion { get; }
5153

src/TrafficManager/TrafficManager.Management.Sdk/Generated/Models/Endpoint.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public Endpoint()
6262
/// routing method.</param>
6363
/// <param name="endpointMonitorStatus">The monitoring status of the
6464
/// endpoint. Possible values include: 'CheckingEndpoint', 'Online',
65-
/// 'Degraded', 'Disabled', 'Inactive', 'Stopped'</param>
65+
/// 'Degraded', 'Disabled', 'Inactive', 'Stopped',
66+
/// 'Unmonitored'</param>
6667
/// <param name="minChildEndpoints">The minimum number of endpoints
6768
/// that must be available in the child profile in order for the parent
6869
/// profile to be considered available. Only applicable to endpoint of
@@ -164,7 +165,7 @@ public Endpoint()
164165
/// <summary>
165166
/// Gets or sets the monitoring status of the endpoint. Possible values
166167
/// include: 'CheckingEndpoint', 'Online', 'Degraded', 'Disabled',
167-
/// 'Inactive', 'Stopped'
168+
/// 'Inactive', 'Stopped', 'Unmonitored'
168169
/// </summary>
169170
[JsonProperty(PropertyName = "properties.endpointMonitorStatus")]
170171
public string EndpointMonitorStatus { get; set; }

src/TrafficManager/TrafficManager.Management.Sdk/Generated/Models/EndpointMonitorStatus.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ public static class EndpointMonitorStatus
2222
public const string Disabled = "Disabled";
2323
public const string Inactive = "Inactive";
2424
public const string Stopped = "Stopped";
25+
public const string Unmonitored = "Unmonitored";
2526
}
2627
}

0 commit comments

Comments
 (0)