8
8
9
9
namespace Microsoft . Azure . Management . AppService . Fluent
10
10
{
11
+ using Microsoft . Azure . Management . ResourceManager . Fluent . Core ;
11
12
using Microsoft . Rest ;
12
13
using Microsoft . Rest . Azure ;
13
14
using Microsoft . Rest . Serialization ;
@@ -24,13 +25,8 @@ namespace Microsoft.Azure.Management.AppService.Fluent
24
25
/// <summary>
25
26
/// WebSite Management Client
26
27
/// </summary>
27
- public partial class WebSiteManagementClient : ServiceClient < WebSiteManagementClient > , IWebSiteManagementClient , IAzureClient
28
+ public partial class WebSiteManagementClient : FluentServiceClientBase < WebSiteManagementClient > , IWebSiteManagementClient , IAzureClient
28
29
{
29
- /// <summary>
30
- /// The base URI of the service.
31
- /// </summary>
32
- public System . Uri BaseUri { get ; set ; }
33
-
34
30
/// <summary>
35
31
/// Gets or sets json serialization settings.
36
32
/// </summary>
@@ -41,11 +37,6 @@ public partial class WebSiteManagementClient : ServiceClient<WebSiteManagementCl
41
37
/// </summary>
42
38
public JsonSerializerSettings DeserializationSettings { get ; private set ; }
43
39
44
- /// <summary>
45
- /// Credentials needed for the client to connect to Azure.
46
- /// </summary>
47
- public ServiceClientCredentials Credentials { get ; private set ; }
48
-
49
40
/// <summary>
50
41
/// Your Azure subscription ID. This is a GUID-formatted string (e.g.
51
42
/// 00000000-0000-0000-0000-000000000000).
@@ -143,193 +134,12 @@ public partial class WebSiteManagementClient : ServiceClient<WebSiteManagementCl
143
134
/// <summary>
144
135
/// Initializes a new instance of the WebSiteManagementClient class.
145
136
/// </summary>
146
- /// <param name='handlers'>
147
- /// Optional. The delegating handlers to add to the http client pipeline.
148
- /// </param>
149
- protected WebSiteManagementClient ( params DelegatingHandler [ ] handlers ) : base ( handlers )
150
- {
151
- Initialize ( ) ;
152
- }
153
-
154
- /// <summary>
155
- /// Initializes a new instance of the WebSiteManagementClient class.
156
- /// </summary>
157
- /// <param name='rootHandler'>
158
- /// Optional. The http client handler used to handle http transport.
159
- /// </param>
160
- /// <param name='handlers'>
161
- /// Optional. The delegating handlers to add to the http client pipeline.
162
- /// </param>
163
- protected WebSiteManagementClient ( HttpClientHandler rootHandler , params DelegatingHandler [ ] handlers ) : base ( rootHandler , handlers )
164
- {
165
- Initialize ( ) ;
166
- }
167
-
168
- /// <summary>
169
- /// Initializes a new instance of the WebSiteManagementClient class.
170
- /// </summary>
171
- /// <param name='baseUri'>
172
- /// Optional. The base URI of the service.
173
- /// </param>
174
- /// <param name='handlers'>
175
- /// Optional. The delegating handlers to add to the http client pipeline.
176
- /// </param>
177
- /// <exception cref="System.ArgumentNullException">
178
- /// Thrown when a required parameter is null
179
- /// </exception>
180
- protected WebSiteManagementClient ( System . Uri baseUri , params DelegatingHandler [ ] handlers ) : this ( handlers )
181
- {
182
- if ( baseUri == null )
183
- {
184
- throw new System . ArgumentNullException ( "baseUri" ) ;
185
- }
186
- BaseUri = baseUri ;
187
- }
188
-
189
- /// <summary>
190
- /// Initializes a new instance of the WebSiteManagementClient class.
191
- /// </summary>
192
- /// <param name='baseUri'>
193
- /// Optional. The base URI of the service.
194
- /// </param>
195
- /// <param name='rootHandler'>
196
- /// Optional. The http client handler used to handle http transport.
197
- /// </param>
198
- /// <param name='handlers'>
199
- /// Optional. The delegating handlers to add to the http client pipeline.
200
- /// </param>
201
- /// <exception cref="System.ArgumentNullException">
202
- /// Thrown when a required parameter is null
203
- /// </exception>
204
- protected WebSiteManagementClient ( System . Uri baseUri , HttpClientHandler rootHandler , params DelegatingHandler [ ] handlers ) : this ( rootHandler , handlers )
205
- {
206
- if ( baseUri == null )
207
- {
208
- throw new System . ArgumentNullException ( "baseUri" ) ;
209
- }
210
- BaseUri = baseUri ;
211
- }
212
-
213
- /// <summary>
214
- /// Initializes a new instance of the WebSiteManagementClient class.
215
- /// </summary>
216
- /// <param name='credentials'>
217
- /// Required. Credentials needed for the client to connect to Azure.
218
- /// </param>
219
- /// <param name='handlers'>
220
- /// Optional. The delegating handlers to add to the http client pipeline.
221
- /// </param>
222
137
/// <exception cref="System.ArgumentNullException">
223
138
/// Thrown when a required parameter is null
224
139
/// </exception>
225
- public WebSiteManagementClient ( ServiceClientCredentials credentials , params DelegatingHandler [ ] handlers ) : this ( handlers )
140
+ public WebSiteManagementClient ( RestClient restClient )
141
+ : base ( restClient )
226
142
{
227
- if ( credentials == null )
228
- {
229
- throw new System . ArgumentNullException ( "credentials" ) ;
230
- }
231
- Credentials = credentials ;
232
- if ( Credentials != null )
233
- {
234
- Credentials . InitializeServiceClient ( this ) ;
235
- }
236
- }
237
-
238
- /// <summary>
239
- /// Initializes a new instance of the WebSiteManagementClient class.
240
- /// </summary>
241
- /// <param name='credentials'>
242
- /// Required. Credentials needed for the client to connect to Azure.
243
- /// </param>
244
- /// <param name='rootHandler'>
245
- /// Optional. The http client handler used to handle http transport.
246
- /// </param>
247
- /// <param name='handlers'>
248
- /// Optional. The delegating handlers to add to the http client pipeline.
249
- /// </param>
250
- /// <exception cref="System.ArgumentNullException">
251
- /// Thrown when a required parameter is null
252
- /// </exception>
253
- public WebSiteManagementClient ( ServiceClientCredentials credentials , HttpClientHandler rootHandler , params DelegatingHandler [ ] handlers ) : this ( rootHandler , handlers )
254
- {
255
- if ( credentials == null )
256
- {
257
- throw new System . ArgumentNullException ( "credentials" ) ;
258
- }
259
- Credentials = credentials ;
260
- if ( Credentials != null )
261
- {
262
- Credentials . InitializeServiceClient ( this ) ;
263
- }
264
- }
265
-
266
- /// <summary>
267
- /// Initializes a new instance of the WebSiteManagementClient class.
268
- /// </summary>
269
- /// <param name='baseUri'>
270
- /// Optional. The base URI of the service.
271
- /// </param>
272
- /// <param name='credentials'>
273
- /// Required. Credentials needed for the client to connect to Azure.
274
- /// </param>
275
- /// <param name='handlers'>
276
- /// Optional. The delegating handlers to add to the http client pipeline.
277
- /// </param>
278
- /// <exception cref="System.ArgumentNullException">
279
- /// Thrown when a required parameter is null
280
- /// </exception>
281
- public WebSiteManagementClient ( System . Uri baseUri , ServiceClientCredentials credentials , params DelegatingHandler [ ] handlers ) : this ( handlers )
282
- {
283
- if ( baseUri == null )
284
- {
285
- throw new System . ArgumentNullException ( "baseUri" ) ;
286
- }
287
- if ( credentials == null )
288
- {
289
- throw new System . ArgumentNullException ( "credentials" ) ;
290
- }
291
- BaseUri = baseUri ;
292
- Credentials = credentials ;
293
- if ( Credentials != null )
294
- {
295
- Credentials . InitializeServiceClient ( this ) ;
296
- }
297
- }
298
-
299
- /// <summary>
300
- /// Initializes a new instance of the WebSiteManagementClient class.
301
- /// </summary>
302
- /// <param name='baseUri'>
303
- /// Optional. The base URI of the service.
304
- /// </param>
305
- /// <param name='credentials'>
306
- /// Required. Credentials needed for the client to connect to Azure.
307
- /// </param>
308
- /// <param name='rootHandler'>
309
- /// Optional. The http client handler used to handle http transport.
310
- /// </param>
311
- /// <param name='handlers'>
312
- /// Optional. The delegating handlers to add to the http client pipeline.
313
- /// </param>
314
- /// <exception cref="System.ArgumentNullException">
315
- /// Thrown when a required parameter is null
316
- /// </exception>
317
- public WebSiteManagementClient ( System . Uri baseUri , ServiceClientCredentials credentials , HttpClientHandler rootHandler , params DelegatingHandler [ ] handlers ) : this ( rootHandler , handlers )
318
- {
319
- if ( baseUri == null )
320
- {
321
- throw new System . ArgumentNullException ( "baseUri" ) ;
322
- }
323
- if ( credentials == null )
324
- {
325
- throw new System . ArgumentNullException ( "credentials" ) ;
326
- }
327
- BaseUri = baseUri ;
328
- Credentials = credentials ;
329
- if ( Credentials != null )
330
- {
331
- Credentials . InitializeServiceClient ( this ) ;
332
- }
333
143
}
334
144
335
145
/// <summary>
@@ -339,7 +149,7 @@ public WebSiteManagementClient(System.Uri baseUri, ServiceClientCredentials cred
339
149
/// <summary>
340
150
/// Initializes client properties.
341
151
/// </summary>
342
- private void Initialize ( )
152
+ protected override void Initialize ( )
343
153
{
344
154
AppServiceCertificateOrders = new AppServiceCertificateOrdersOperations ( this ) ;
345
155
CertificateRegistrationProvider = new CertificateRegistrationProviderOperations ( this ) ;
0 commit comments