@@ -13,7 +13,7 @@ namespace Microsoft.Azure.Management.TrafficManager
1313 public static partial class EndpointsOperationsExtensions
1414 {
1515 /// <summary>
16- /// Update a Traffic Manager endpoint.
16+ /// Gets a Traffic Manager endpoint.
1717 /// </summary>
1818 /// <param name='operations'>
1919 /// The operations group for this extension method.
@@ -25,18 +25,18 @@ public static partial class EndpointsOperationsExtensions
2525 /// The name of the Traffic Manager profile.
2626 /// </param>
2727 /// <param name='endpointType'>
28- /// The type of the Traffic Manager endpoint to be updated. Only AzureEndpoints, ExternalEndpoints and NestedEndpoints are allowed here .
28+ /// The type of the Traffic Manager endpoint.
2929 /// </param>
3030 /// <param name='endpointName'>
31- /// The name of the Traffic Manager endpoint to be updated .
31+ /// The name of the Traffic Manager endpoint.
3232 /// </param>
33- public static Endpoint Update ( this IEndpointsOperations operations , string resourceGroupName , string profileName , string endpointType , string endpointName , Endpoint parameters )
33+ public static Endpoint Get ( this IEndpointsOperations operations , string resourceGroupName , string profileName , string endpointType , string endpointName )
3434 {
35- return ( ( IEndpointsOperations ) operations ) . UpdateAsync ( resourceGroupName , profileName , endpointType , endpointName , parameters ) . GetAwaiter ( ) . GetResult ( ) ;
35+ return ( ( IEndpointsOperations ) operations ) . GetAsync ( resourceGroupName , profileName , endpointType , endpointName ) . GetAwaiter ( ) . GetResult ( ) ;
3636 }
3737
3838 /// <summary>
39- /// Update a Traffic Manager endpoint.
39+ /// Gets a Traffic Manager endpoint.
4040 /// </summary>
4141 /// <param name='operations'>
4242 /// The operations group for this extension method.
@@ -48,23 +48,23 @@ public static Endpoint Update(this IEndpointsOperations operations, string resou
4848 /// The name of the Traffic Manager profile.
4949 /// </param>
5050 /// <param name='endpointType'>
51- /// The type of the Traffic Manager endpoint to be updated. Only AzureEndpoints, ExternalEndpoints and NestedEndpoints are allowed here .
51+ /// The type of the Traffic Manager endpoint.
5252 /// </param>
5353 /// <param name='endpointName'>
54- /// The name of the Traffic Manager endpoint to be updated .
54+ /// The name of the Traffic Manager endpoint.
5555 /// </param>
5656 /// <param name='cancellationToken'>
5757 /// The cancellation token.
5858 /// </param>
59- public static async System . Threading . Tasks . Task < Endpoint > UpdateAsync ( this IEndpointsOperations operations , string resourceGroupName , string profileName , string endpointType , string endpointName , Endpoint parameters , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
59+ public static async System . Threading . Tasks . Task < Endpoint > GetAsync ( this IEndpointsOperations operations , string resourceGroupName , string profileName , string endpointType , string endpointName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
6060 {
61- using ( var _result = await operations . UpdateWithHttpMessagesAsync ( resourceGroupName , profileName , endpointType , endpointName , parameters , null , cancellationToken ) . ConfigureAwait ( false ) )
61+ using ( var _result = await operations . GetWithHttpMessagesAsync ( resourceGroupName , profileName , endpointType , endpointName , null , cancellationToken ) . ConfigureAwait ( false ) )
6262 {
6363 return _result . Body ;
6464 }
6565 }
6666 /// <summary>
67- /// Gets a Traffic Manager endpoint.
67+ /// Create or update a Traffic Manager endpoint.
6868 /// </summary>
6969 /// <param name='operations'>
7070 /// The operations group for this extension method.
@@ -76,18 +76,18 @@ public static Endpoint Update(this IEndpointsOperations operations, string resou
7676 /// The name of the Traffic Manager profile.
7777 /// </param>
7878 /// <param name='endpointType'>
79- /// The type of the Traffic Manager endpoint. Only AzureEndpoints, ExternalEndpoints and NestedEndpoints are allowed here.
79+ /// The type of the Traffic Manager endpoint.
8080 /// </param>
8181 /// <param name='endpointName'>
8282 /// The name of the Traffic Manager endpoint.
8383 /// </param>
84- public static Endpoint Get ( this IEndpointsOperations operations , string resourceGroupName , string profileName , string endpointType , string endpointName )
84+ public static Endpoint CreateOrUpdate ( this IEndpointsOperations operations , string resourceGroupName , string profileName , string endpointType , string endpointName , Endpoint parameters )
8585 {
86- return ( ( IEndpointsOperations ) operations ) . GetAsync ( resourceGroupName , profileName , endpointType , endpointName ) . GetAwaiter ( ) . GetResult ( ) ;
86+ return ( ( IEndpointsOperations ) operations ) . CreateOrUpdateAsync ( resourceGroupName , profileName , endpointType , endpointName , parameters ) . GetAwaiter ( ) . GetResult ( ) ;
8787 }
8888
8989 /// <summary>
90- /// Gets a Traffic Manager endpoint.
90+ /// Create or update a Traffic Manager endpoint.
9191 /// </summary>
9292 /// <param name='operations'>
9393 /// The operations group for this extension method.
@@ -99,23 +99,23 @@ public static Endpoint Get(this IEndpointsOperations operations, string resource
9999 /// The name of the Traffic Manager profile.
100100 /// </param>
101101 /// <param name='endpointType'>
102- /// The type of the Traffic Manager endpoint. Only AzureEndpoints, ExternalEndpoints and NestedEndpoints are allowed here.
102+ /// The type of the Traffic Manager endpoint.
103103 /// </param>
104104 /// <param name='endpointName'>
105105 /// The name of the Traffic Manager endpoint.
106106 /// </param>
107107 /// <param name='cancellationToken'>
108108 /// The cancellation token.
109109 /// </param>
110- public static async System . Threading . Tasks . Task < Endpoint > GetAsync ( this IEndpointsOperations operations , string resourceGroupName , string profileName , string endpointType , string endpointName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
110+ public static async System . Threading . Tasks . Task < Endpoint > CreateOrUpdateAsync ( this IEndpointsOperations operations , string resourceGroupName , string profileName , string endpointType , string endpointName , Endpoint parameters , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
111111 {
112- using ( var _result = await operations . GetWithHttpMessagesAsync ( resourceGroupName , profileName , endpointType , endpointName , null , cancellationToken ) . ConfigureAwait ( false ) )
112+ using ( var _result = await operations . CreateOrUpdateWithHttpMessagesAsync ( resourceGroupName , profileName , endpointType , endpointName , parameters , null , cancellationToken ) . ConfigureAwait ( false ) )
113113 {
114114 return _result . Body ;
115115 }
116116 }
117117 /// <summary>
118- /// Create or update a Traffic Manager endpoint.
118+ /// Update a Traffic Manager endpoint.
119119 /// </summary>
120120 /// <param name='operations'>
121121 /// The operations group for this extension method.
@@ -127,18 +127,18 @@ public static Endpoint Get(this IEndpointsOperations operations, string resource
127127 /// The name of the Traffic Manager profile.
128128 /// </param>
129129 /// <param name='endpointType'>
130- /// The type of the Traffic Manager endpoint to be created or updated. Only AzureEndpoints, ExternalEndpoints and NestedEndpoints are allowed here .
130+ /// The type of the Traffic Manager endpoint.
131131 /// </param>
132132 /// <param name='endpointName'>
133- /// The name of the Traffic Manager endpoint to be created or updated .
133+ /// The name of the Traffic Manager endpoint.
134134 /// </param>
135- public static Endpoint CreateOrUpdate ( this IEndpointsOperations operations , string resourceGroupName , string profileName , string endpointType , string endpointName , Endpoint parameters )
135+ public static Endpoint Update ( this IEndpointsOperations operations , string resourceGroupName , string profileName , string endpointType , string endpointName , Endpoint parameters )
136136 {
137- return ( ( IEndpointsOperations ) operations ) . CreateOrUpdateAsync ( resourceGroupName , profileName , endpointType , endpointName , parameters ) . GetAwaiter ( ) . GetResult ( ) ;
137+ return ( ( IEndpointsOperations ) operations ) . UpdateAsync ( resourceGroupName , profileName , endpointType , endpointName , parameters ) . GetAwaiter ( ) . GetResult ( ) ;
138138 }
139139
140140 /// <summary>
141- /// Create or update a Traffic Manager endpoint.
141+ /// Update a Traffic Manager endpoint.
142142 /// </summary>
143143 /// <param name='operations'>
144144 /// The operations group for this extension method.
@@ -150,17 +150,17 @@ public static Endpoint CreateOrUpdate(this IEndpointsOperations operations, stri
150150 /// The name of the Traffic Manager profile.
151151 /// </param>
152152 /// <param name='endpointType'>
153- /// The type of the Traffic Manager endpoint to be created or updated. Only AzureEndpoints, ExternalEndpoints and NestedEndpoints are allowed here .
153+ /// The type of the Traffic Manager endpoint.
154154 /// </param>
155155 /// <param name='endpointName'>
156- /// The name of the Traffic Manager endpoint to be created or updated .
156+ /// The name of the Traffic Manager endpoint.
157157 /// </param>
158158 /// <param name='cancellationToken'>
159159 /// The cancellation token.
160160 /// </param>
161- public static async System . Threading . Tasks . Task < Endpoint > CreateOrUpdateAsync ( this IEndpointsOperations operations , string resourceGroupName , string profileName , string endpointType , string endpointName , Endpoint parameters , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
161+ public static async System . Threading . Tasks . Task < Endpoint > UpdateAsync ( this IEndpointsOperations operations , string resourceGroupName , string profileName , string endpointType , string endpointName , Endpoint parameters , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
162162 {
163- using ( var _result = await operations . CreateOrUpdateWithHttpMessagesAsync ( resourceGroupName , profileName , endpointType , endpointName , parameters , null , cancellationToken ) . ConfigureAwait ( false ) )
163+ using ( var _result = await operations . UpdateWithHttpMessagesAsync ( resourceGroupName , profileName , endpointType , endpointName , parameters , null , cancellationToken ) . ConfigureAwait ( false ) )
164164 {
165165 return _result . Body ;
166166 }
@@ -178,10 +178,10 @@ public static Endpoint CreateOrUpdate(this IEndpointsOperations operations, stri
178178 /// The name of the Traffic Manager profile.
179179 /// </param>
180180 /// <param name='endpointType'>
181- /// The type of the Traffic Manager endpoint to be deleted. Only AzureEndpoints, ExternalEndpoints and NestedEndpoints are allowed here .
181+ /// The type of the Traffic Manager endpoint.
182182 /// </param>
183183 /// <param name='endpointName'>
184- /// The name of the Traffic Manager endpoint to be deleted .
184+ /// The name of the Traffic Manager endpoint.
185185 /// </param>
186186 public static void Delete ( this IEndpointsOperations operations , string resourceGroupName , string profileName , string endpointType , string endpointName )
187187 {
@@ -201,10 +201,10 @@ public static void Delete(this IEndpointsOperations operations, string resourceG
201201 /// The name of the Traffic Manager profile.
202202 /// </param>
203203 /// <param name='endpointType'>
204- /// The type of the Traffic Manager endpoint to be deleted. Only AzureEndpoints, ExternalEndpoints and NestedEndpoints are allowed here .
204+ /// The type of the Traffic Manager endpoint.
205205 /// </param>
206206 /// <param name='endpointName'>
207- /// The name of the Traffic Manager endpoint to be deleted .
207+ /// The name of the Traffic Manager endpoint.
208208 /// </param>
209209 /// <param name='cancellationToken'>
210210 /// The cancellation token.
0 commit comments