1
- // Copyright (c) Microsoft Corporation. All rights reserved.
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT License. See License.txt in the project root for license information.
3
3
// Code generated by Microsoft (R) AutoRest Code Generator.
4
4
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -24,9 +24,9 @@ internal partial class AccountBackupsOperations : Microsoft.Rest.IServiceOperati
24
24
/// <exception cref="System.ArgumentNullException">
25
25
/// Thrown when a required parameter is null
26
26
/// </exception>
27
- internal AccountBackupsOperations ( NetAppManagementClient client )
27
+ internal AccountBackupsOperations ( NetAppManagementClient client )
28
28
{
29
- if ( client == null )
29
+ if ( client == null )
30
30
{
31
31
throw new System . ArgumentNullException ( "client" ) ;
32
32
}
@@ -73,7 +73,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
73
73
74
74
75
75
76
-
76
+
77
77
if ( this . Client . SubscriptionId == null )
78
78
{
79
79
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
@@ -111,9 +111,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
111
111
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . Pattern , "accountName" , "^[a-zA-Z0-9][a-zA-Z0-9\\ -_]{0,63}$" ) ;
112
112
}
113
113
}
114
- if ( this . Client . ApiVersion == null )
114
+ if ( this . Client . BackupApiVersion == null )
115
115
{
116
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion " ) ;
116
+ throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.BackupApiVersion " ) ;
117
117
}
118
118
119
119
// Tracing
@@ -139,9 +139,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
139
139
_url = _url . Replace ( "{accountName}" , System . Uri . EscapeDataString ( accountName ) ) ;
140
140
141
141
System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
142
- if ( this . Client . ApiVersion != null )
142
+ if ( this . Client . BackupApiVersion != null )
143
143
{
144
- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
144
+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . BackupApiVersion ) ) ) ;
145
145
}
146
146
if ( _queryParameters . Count > 0 )
147
147
{
@@ -168,7 +168,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
168
168
169
169
if ( customHeaders != null )
170
170
{
171
- foreach ( var _header in customHeaders )
171
+ foreach ( var _header in customHeaders )
172
172
{
173
173
if ( _httpRequest . Headers . Contains ( _header . Key ) )
174
174
{
@@ -207,7 +207,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
207
207
try
208
208
{
209
209
_responseContent = await _httpResponse . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
210
- CloudError _errorBody = Microsoft . Rest . Serialization . SafeJsonConvert . DeserializeObject < CloudError > ( _responseContent , this . Client . DeserializationSettings ) ;
210
+ CloudError _errorBody = Microsoft . Rest . Serialization . SafeJsonConvert . DeserializeObject < CloudError > ( _responseContent , this . Client . DeserializationSettings ) ;
211
211
if ( _errorBody != null )
212
212
{
213
213
ex = new Microsoft . Rest . Azure . CloudException ( _errorBody . Message ) ;
@@ -239,7 +239,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
239
239
var _result = new Microsoft . Rest . Azure . AzureOperationResponse < System . Collections . Generic . IEnumerable < Backup > > ( ) ;
240
240
_result . Request = _httpRequest ;
241
241
_result . Response = _httpResponse ;
242
-
242
+
243
243
if ( _httpResponse . Headers . Contains ( "x-ms-request-id" ) )
244
244
{
245
245
_result . RequestId = _httpResponse . Headers . GetValues ( "x-ms-request-id" ) . FirstOrDefault ( ) ;
@@ -311,7 +311,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
311
311
312
312
313
313
314
-
314
+
315
315
if ( this . Client . SubscriptionId == null )
316
316
{
317
317
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
@@ -360,9 +360,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
360
360
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . Pattern , "backupName" , "^[a-zA-Z0-9][a-zA-Z0-9\\ -_]{0,63}$" ) ;
361
361
}
362
362
}
363
- if ( this . Client . ApiVersion == null )
363
+ if ( this . Client . BackupApiVersion == null )
364
364
{
365
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion " ) ;
365
+ throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.BackupApiVersion " ) ;
366
366
}
367
367
368
368
// Tracing
@@ -390,9 +390,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
390
390
_url = _url . Replace ( "{backupName}" , System . Uri . EscapeDataString ( backupName ) ) ;
391
391
392
392
System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
393
- if ( this . Client . ApiVersion != null )
393
+ if ( this . Client . BackupApiVersion != null )
394
394
{
395
- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
395
+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . BackupApiVersion ) ) ) ;
396
396
}
397
397
if ( _queryParameters . Count > 0 )
398
398
{
@@ -419,7 +419,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
419
419
420
420
if ( customHeaders != null )
421
421
{
422
- foreach ( var _header in customHeaders )
422
+ foreach ( var _header in customHeaders )
423
423
{
424
424
if ( _httpRequest . Headers . Contains ( _header . Key ) )
425
425
{
@@ -458,7 +458,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
458
458
try
459
459
{
460
460
_responseContent = await _httpResponse . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
461
- CloudError _errorBody = Microsoft . Rest . Serialization . SafeJsonConvert . DeserializeObject < CloudError > ( _responseContent , this . Client . DeserializationSettings ) ;
461
+ CloudError _errorBody = Microsoft . Rest . Serialization . SafeJsonConvert . DeserializeObject < CloudError > ( _responseContent , this . Client . DeserializationSettings ) ;
462
462
if ( _errorBody != null )
463
463
{
464
464
ex = new Microsoft . Rest . Azure . CloudException ( _errorBody . Message ) ;
@@ -490,7 +490,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
490
490
var _result = new Microsoft . Rest . Azure . AzureOperationResponse < Backup > ( ) ;
491
491
_result . Request = _httpRequest ;
492
492
_result . Response = _httpResponse ;
493
-
493
+
494
494
if ( _httpResponse . Headers . Contains ( "x-ms-request-id" ) )
495
495
{
496
496
_result . RequestId = _httpResponse . Headers . GetValues ( "x-ms-request-id" ) . FirstOrDefault ( ) ;
@@ -544,9 +544,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
544
544
/// </param>
545
545
public async System . Threading . Tasks . Task < Microsoft . Rest . Azure . AzureOperationResponse > DeleteWithHttpMessagesAsync ( string resourceGroupName , string accountName , string backupName , System . Collections . Generic . Dictionary < string , System . Collections . Generic . List < string > > customHeaders = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
546
546
{
547
- // Send Request
548
- Microsoft . Rest . Azure . AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync ( resourceGroupName , accountName , backupName , customHeaders , cancellationToken ) . ConfigureAwait ( false ) ;
549
- return await this . Client . GetPostOrDeleteOperationResultAsync ( _response , customHeaders , cancellationToken ) . ConfigureAwait ( false ) ;
547
+ // Send Request
548
+ Microsoft . Rest . Azure . AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync ( resourceGroupName , accountName , backupName , customHeaders , cancellationToken ) . ConfigureAwait ( false ) ;
549
+ return await this . Client . GetPostOrDeleteOperationResultAsync ( _response , customHeaders , cancellationToken ) . ConfigureAwait ( false ) ;
550
550
}
551
551
552
552
/// <summary>
@@ -584,7 +584,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
584
584
585
585
586
586
587
-
587
+
588
588
if ( this . Client . SubscriptionId == null )
589
589
{
590
590
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
@@ -633,9 +633,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
633
633
throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . Pattern , "backupName" , "^[a-zA-Z0-9][a-zA-Z0-9\\ -_]{0,63}$" ) ;
634
634
}
635
635
}
636
- if ( this . Client . ApiVersion == null )
636
+ if ( this . Client . BackupApiVersion == null )
637
637
{
638
- throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.ApiVersion " ) ;
638
+ throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "this.Client.BackupApiVersion " ) ;
639
639
}
640
640
641
641
// Tracing
@@ -663,9 +663,9 @@ internal AccountBackupsOperations (NetAppManagementClient client)
663
663
_url = _url . Replace ( "{backupName}" , System . Uri . EscapeDataString ( backupName ) ) ;
664
664
665
665
System . Collections . Generic . List < string > _queryParameters = new System . Collections . Generic . List < string > ( ) ;
666
- if ( this . Client . ApiVersion != null )
666
+ if ( this . Client . BackupApiVersion != null )
667
667
{
668
- _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . ApiVersion ) ) ) ;
668
+ _queryParameters . Add ( string . Format ( "api-version={0}" , System . Uri . EscapeDataString ( this . Client . BackupApiVersion ) ) ) ;
669
669
}
670
670
if ( _queryParameters . Count > 0 )
671
671
{
@@ -692,7 +692,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
692
692
693
693
if ( customHeaders != null )
694
694
{
695
- foreach ( var _header in customHeaders )
695
+ foreach ( var _header in customHeaders )
696
696
{
697
697
if ( _httpRequest . Headers . Contains ( _header . Key ) )
698
698
{
@@ -731,7 +731,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
731
731
try
732
732
{
733
733
_responseContent = await _httpResponse . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
734
- CloudError _errorBody = Microsoft . Rest . Serialization . SafeJsonConvert . DeserializeObject < CloudError > ( _responseContent , this . Client . DeserializationSettings ) ;
734
+ CloudError _errorBody = Microsoft . Rest . Serialization . SafeJsonConvert . DeserializeObject < CloudError > ( _responseContent , this . Client . DeserializationSettings ) ;
735
735
if ( _errorBody != null )
736
736
{
737
737
ex = new Microsoft . Rest . Azure . CloudException ( _errorBody . Message ) ;
@@ -763,7 +763,7 @@ internal AccountBackupsOperations (NetAppManagementClient client)
763
763
var _result = new Microsoft . Rest . Azure . AzureOperationResponse ( ) ;
764
764
_result . Request = _httpRequest ;
765
765
_result . Response = _httpResponse ;
766
-
766
+
767
767
if ( _httpResponse . Headers . Contains ( "x-ms-request-id" ) )
768
768
{
769
769
_result . RequestId = _httpResponse . Headers . GetValues ( "x-ms-request-id" ) . FirstOrDefault ( ) ;
0 commit comments