Skip to content

Commit 5209d24

Browse files
authored
Merge pull request Azure#3243 from NonStatic2014/swagger_update
Consume the latest .Net SDK NuGet package.
2 parents 771e3ee + cf269db commit 5209d24

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

src/ResourceManager/MachineLearning/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Serialization and deserialization improvements for all cmdlets
2122

2223
## Version 0.11.1
2324
* Add support for Azure Machine Learning Committment Plans

src/ResourceManager/MachineLearning/Commands.MachineLearning.Test/Commands.MachineLearning.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Authorization.2.0.0\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath>
6060
<Private>True</Private>
6161
</Reference>
62-
<Reference Include="..\..\..\packages\Microsoft.Azure.Management.MachineLearning.0.9.5-preview\lib\net45\Microsoft.Azure.Management.MachineLearning.dll">
62+
<Reference Include="..\..\..\packages\Microsoft.Azure.Management.MachineLearning.0.9.6-preview\lib\net45\Microsoft.Azure.Management.MachineLearning.dll">
6363
<Name>Microsoft.Azure.Management.MachineLearning</Name>
6464
<Private>True</Private>
6565
</Reference>

src/ResourceManager/MachineLearning/Commands.MachineLearning.Test/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<package id="Microsoft.Azure.Gallery" version="2.6.2-preview" targetFramework="net45" />
77
<package id="Microsoft.Azure.Management.Authorization" version="1.0.2" targetFramework="net45" />
88
<package id="Microsoft.Azure.Management.Resources" version="2.20.0-preview" targetFramework="net45" />
9-
<package id="Microsoft.Azure.Management.MachineLearning" version="0.9.5-preview" />
9+
<package id="Microsoft.Azure.Management.MachineLearning" version="0.9.6-preview" />
1010
<package id="Microsoft.Azure.Management.Storage" version="3.0.0" targetFramework="net45" />
1111
<package id="Microsoft.Azure.Test.Framework" version="1.0.6179.26854-prerelease" targetFramework="net45" />
1212
<package id="Microsoft.Azure.Test.HttpRecorder" version="1.6.7-preview" targetFramework="net45" />

src/ResourceManager/MachineLearning/Commands.MachineLearning/Commands.MachineLearning.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<Private>True</Private>
6060
</Reference>
6161
<Reference Include="Microsoft.Azure.Management.MachineLearning, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
62-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.MachineLearning.0.9.5-preview\lib\net45\Microsoft.Azure.Management.MachineLearning.dll</HintPath>
62+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.MachineLearning.0.9.6-preview\lib\net45\Microsoft.Azure.Management.MachineLearning.dll</HintPath>
6363
<Private>True</Private>
6464
</Reference>
6565
<Reference Include="Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">

src/ResourceManager/MachineLearning/Commands.MachineLearning/Utilities/WebServicesClient.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,16 @@ public async Task<ResponseWithContinuation<WebService[]>>
9595
{
9696
string skipToken = WebServicesClient.GetSkipTokenFromLink(nextLink);
9797
var cancellationTokenParam = cancellationToken ?? CancellationToken.None;
98-
var paginatedResponse = await this.apiClient.WebServices.ListInResourceGroupAsync(
98+
var paginatedResponse = await this.apiClient.WebServices.ListByResourceGroupWithHttpMessagesAsync(
9999
resourceGroupName,
100100
skipToken,
101+
null,
101102
cancellationTokenParam).ConfigureAwait(false);
102103

103104
return new ResponseWithContinuation<WebService[]>
104105
{
105-
Value = paginatedResponse.Value.ToArray(),
106-
NextLink = paginatedResponse.NextLink
106+
Value = paginatedResponse.Body.ToArray(),
107+
NextLink = paginatedResponse.Body.NextPageLink
107108
};
108109
}
109110

@@ -116,14 +117,15 @@ public async Task<ResponseWithContinuation<WebService[]>>
116117
var cancellationTokenParam = cancellationToken ?? CancellationToken.None;
117118

118119
var paginatedResponse =
119-
await this.apiClient.WebServices.ListAsync(
120+
await this.apiClient.WebServices.ListWithHttpMessagesAsync(
120121
skipToken,
122+
null,
121123
cancellationTokenParam).ConfigureAwait(false);
122124

123125
return new ResponseWithContinuation<WebService[]>
124126
{
125-
Value = paginatedResponse.Value.ToArray(),
126-
NextLink = paginatedResponse.NextLink
127+
Value = paginatedResponse.Body.ToArray(),
128+
NextLink = paginatedResponse.Body.NextPageLink
127129
};
128130
}
129131
}

src/ResourceManager/MachineLearning/Commands.MachineLearning/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<package id="Microsoft.Azure.Common" version="2.1.0" targetFramework="net45" />
55
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
66
<package id="Microsoft.Azure.Management.Authorization" version="1.0.2" targetFramework="net45" />
7-
<package id="Microsoft.Azure.Management.MachineLearning" version="0.9.5-preview" targetFramework="net45" />
7+
<package id="Microsoft.Azure.Management.MachineLearning" version="0.9.6-preview" targetFramework="net45" />
88
<package id="Microsoft.Azure.Management.Resources" version="2.20.0-preview" targetFramework="net45" />
99
<package id="Microsoft.Rest.ClientRuntime" version="2.3.2" targetFramework="net45" />
1010
<package id="Microsoft.Rest.ClientRuntime.Azure" version="3.3.2" targetFramework="net45" />

0 commit comments

Comments
 (0)