@@ -591,20 +591,19 @@ internal NetworkVirtualAppliancesOperations (NetworkManagementClient client)
591
591
/// <param name='networkVirtualApplianceName'>
592
592
/// The name of Network Virtual Appliance.
593
593
/// </param>
594
- /// <param name='instanceId'>
595
- /// Specifies a virtual machine instance ID from the Network Virtual Appliance
596
- /// VM instances.
594
+ /// <param name='request'>
595
+ /// Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance
597
596
/// </param>
598
597
/// <param name='customHeaders'>
599
598
/// Headers that will be added to request.
600
599
/// </param>
601
600
/// <param name='cancellationToken'>
602
601
/// The cancellation token.
603
602
/// </param>
604
- public async System . Threading . Tasks . Task < Microsoft . Rest . Azure . AzureOperationResponse < NetworkVirtualApplianceInstanceId , NetworkVirtualAppliancesGetBootDiagnosticLogsHeaders > > GetBootDiagnosticLogsWithHttpMessagesAsync ( string resourceGroupName , string networkVirtualApplianceName , NetworkVirtualApplianceBootDiagnosticParameters instanceId = default ( NetworkVirtualApplianceBootDiagnosticParameters ) , System . Collections . Generic . Dictionary < string , System . Collections . Generic . List < string > > customHeaders = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
603
+ public async System . Threading . Tasks . Task < Microsoft . Rest . Azure . AzureOperationResponse < NetworkVirtualApplianceInstanceId , NetworkVirtualAppliancesGetBootDiagnosticLogsHeaders > > GetBootDiagnosticLogsWithHttpMessagesAsync ( string resourceGroupName , string networkVirtualApplianceName , NetworkVirtualApplianceBootDiagnosticParameters request , System . Collections . Generic . Dictionary < string , System . Collections . Generic . List < string > > customHeaders = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
605
604
{
606
605
// Send Request
607
- Microsoft . Rest . Azure . AzureOperationResponse < NetworkVirtualApplianceInstanceId , NetworkVirtualAppliancesGetBootDiagnosticLogsHeaders > _response = await BeginGetBootDiagnosticLogsWithHttpMessagesAsync ( resourceGroupName , networkVirtualApplianceName , instanceId , customHeaders , cancellationToken ) . ConfigureAwait ( false ) ;
606
+ Microsoft . Rest . Azure . AzureOperationResponse < NetworkVirtualApplianceInstanceId , NetworkVirtualAppliancesGetBootDiagnosticLogsHeaders > _response = await BeginGetBootDiagnosticLogsWithHttpMessagesAsync ( resourceGroupName , networkVirtualApplianceName , request , customHeaders , cancellationToken ) . ConfigureAwait ( false ) ;
608
607
return await this . Client . GetPostOrDeleteOperationResultAsync ( _response , customHeaders , cancellationToken ) . ConfigureAwait ( false ) ;
609
608
}
610
609
@@ -1946,9 +1945,8 @@ internal NetworkVirtualAppliancesOperations (NetworkManagementClient client)
1946
1945
/// <param name='networkVirtualApplianceName'>
1947
1946
/// The name of Network Virtual Appliance.
1948
1947
/// </param>
1949
- /// <param name='instanceId'>
1950
- /// Specifies a virtual machine instance ID from the Network Virtual Appliance
1951
- /// VM instances.
1948
+ /// <param name='request'>
1949
+ /// Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance
1952
1950
/// </param>
1953
1951
/// <param name='customHeaders'>
1954
1952
/// Headers that will be added to request.
@@ -1971,12 +1969,16 @@ internal NetworkVirtualAppliancesOperations (NetworkManagementClient client)
1971
1969
/// <return>
1972
1970
/// A response object containing the response body and response headers.
1973
1971
/// </return>
1974
- public async System . Threading . Tasks . Task < Microsoft . Rest . Azure . AzureOperationResponse < NetworkVirtualApplianceInstanceId , NetworkVirtualAppliancesGetBootDiagnosticLogsHeaders > > BeginGetBootDiagnosticLogsWithHttpMessagesAsync ( string resourceGroupName , string networkVirtualApplianceName , NetworkVirtualApplianceBootDiagnosticParameters instanceId = default ( NetworkVirtualApplianceBootDiagnosticParameters ) , System . Collections . Generic . Dictionary < string , System . Collections . Generic . List < string > > customHeaders = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
1972
+ public async System . Threading . Tasks . Task < Microsoft . Rest . Azure . AzureOperationResponse < NetworkVirtualApplianceInstanceId , NetworkVirtualAppliancesGetBootDiagnosticLogsHeaders > > BeginGetBootDiagnosticLogsWithHttpMessagesAsync ( string resourceGroupName , string networkVirtualApplianceName , NetworkVirtualApplianceBootDiagnosticParameters request , System . Collections . Generic . Dictionary < string , System . Collections . Generic . List < string > > customHeaders = null , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
1975
1973
{
1976
1974
1977
1975
1978
1976
1979
1977
1978
+ if ( request == null )
1979
+ {
1980
+ throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "request" ) ;
1981
+ }
1980
1982
1981
1983
if ( resourceGroupName == null )
1982
1984
{
@@ -2011,7 +2013,7 @@ internal NetworkVirtualAppliancesOperations (NetworkManagementClient client)
2011
2013
tracingParameters . Add ( "networkVirtualApplianceName" , networkVirtualApplianceName ) ;
2012
2014
tracingParameters . Add ( "apiVersion" , apiVersion ) ;
2013
2015
2014
- tracingParameters . Add ( "instanceId " , instanceId ) ;
2016
+ tracingParameters . Add ( "request " , request ) ;
2015
2017
2016
2018
tracingParameters . Add ( "cancellationToken" , cancellationToken ) ;
2017
2019
Microsoft . Rest . ServiceClientTracing . Enter ( _invocationId , this , "BeginGetBootDiagnosticLogs" , tracingParameters ) ;
@@ -2065,9 +2067,9 @@ internal NetworkVirtualAppliancesOperations (NetworkManagementClient client)
2065
2067
}
2066
2068
// Serialize Request
2067
2069
string _requestContent = null ;
2068
- if ( instanceId != null )
2070
+ if ( request != null )
2069
2071
{
2070
- _requestContent = Microsoft . Rest . Serialization . SafeJsonConvert . SerializeObject ( instanceId , this . Client . SerializationSettings ) ;
2072
+ _requestContent = Microsoft . Rest . Serialization . SafeJsonConvert . SerializeObject ( request , this . Client . SerializationSettings ) ;
2071
2073
_httpRequest . Content = new System . Net . Http . StringContent ( _requestContent , System . Text . Encoding . UTF8 ) ;
2072
2074
_httpRequest . Content . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json; charset=utf-8" ) ;
2073
2075
}
0 commit comments