Skip to content

Commit bb5cf7e

Browse files
authored
Upgrade common reference (#12250)
* update reference to common * upgrade reference in generic provider
1 parent 10b4d7b commit bb5cf7e

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/GenericProvider.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private IAzureRestClient ServiceClient
6464
public PSPrivateEndpointConnection GetPrivateEndpointConnection(string resourceGroupName, string serviceName, string name)
6565
{
6666
string url = BuildPrivateEndpointConnectionURL(resourceGroupName, serviceName, name);
67-
PrivateEndpointConnection connnection = ServiceClient.Operations.GetResouce<PrivateEndpointConnection>(url, _configuration.ApiVersion);
67+
PrivateEndpointConnection connnection = ServiceClient.Operations.GetResource<PrivateEndpointConnection>(url, _configuration.ApiVersion);
6868
return ToPsPrivateEndpointConnection(connnection);
6969
}
7070

@@ -74,15 +74,15 @@ public List<PSPrivateEndpointConnection> ListPrivateEndpointConnections(string r
7474
if(_configuration.HasConnectionsURI)
7575
{
7676
string url = BuildPrivateEndpointConnectionsURL(resourceGroupName, serviceName);
77-
IPage<PrivateEndpointConnection> list = ServiceClient.Operations.GetResoucePage<Page<PrivateEndpointConnection>, PrivateEndpointConnection>(url, _configuration.ApiVersion);
77+
IPage<PrivateEndpointConnection> list = ServiceClient.Operations.GetResourcePage<Page<PrivateEndpointConnection>, PrivateEndpointConnection>(url, _configuration.ApiVersion);
7878
foreach (var pec in list)
7979
{
8080
var psPec = ToPsPrivateEndpointConnection(pec);
8181
psPECs.Add(psPec);
8282
}
8383
while (list.NextPageLink != null)
8484
{
85-
list = ServiceClient.Operations.GetResoucePage<Page<PrivateEndpointConnection>, PrivateEndpointConnection>(list.NextPageLink, null);
85+
list = ServiceClient.Operations.GetResourcePage<Page<PrivateEndpointConnection>, PrivateEndpointConnection>(list.NextPageLink, null);
8686
foreach (var pec in list)
8787
{
8888
var psPec = ToPsPrivateEndpointConnection(pec);
@@ -93,7 +93,7 @@ public List<PSPrivateEndpointConnection> ListPrivateEndpointConnections(string r
9393
else
9494
{
9595
string url = BuildPrivateEndpointConnectionsOwnerURL(resourceGroupName, serviceName);
96-
TrackedResource resource = ServiceClient.Operations.GetResouce<TrackedResource>(url, _configuration.ApiVersion);
96+
TrackedResource resource = ServiceClient.Operations.GetResource<TrackedResource>(url, _configuration.ApiVersion);
9797
if(resource?.PrivateEndpointConnections != null)
9898
{
9999
foreach (var pec in resource.PrivateEndpointConnections)
@@ -110,7 +110,7 @@ public List<PSPrivateEndpointConnection> ListPrivateEndpointConnections(string r
110110
public PSPrivateEndpointConnection UpdatePrivateEndpointConnectionStatus(string resourceGroupName, string serviceName, string name, string status, string description = null)
111111
{
112112
string url = BuildPrivateEndpointConnectionURL(resourceGroupName, serviceName, name);
113-
PrivateEndpointConnection privateEndpointConnection = ServiceClient.Operations.GetResouce<PrivateEndpointConnection>(url, _configuration.ApiVersion);
113+
PrivateEndpointConnection privateEndpointConnection = ServiceClient.Operations.GetResource<PrivateEndpointConnection>(url, _configuration.ApiVersion);
114114

115115
privateEndpointConnection.PrivateLinkServiceConnectionState.Status = status;
116116

@@ -119,37 +119,37 @@ public PSPrivateEndpointConnection UpdatePrivateEndpointConnectionStatus(string
119119
privateEndpointConnection.PrivateLinkServiceConnectionState.Description = description;
120120
}
121121

122-
ServiceClient.Operations.PutResouce<PrivateEndpointConnection>(url, _configuration.ApiVersion, privateEndpointConnection);
122+
ServiceClient.Operations.PutResource<PrivateEndpointConnection>(url, _configuration.ApiVersion, privateEndpointConnection);
123123

124124
return GetPrivateEndpointConnection(resourceGroupName, serviceName, name);
125125
}
126126

127127
public void DeletePrivateEndpointConnection(string resourceGroupName, string serviceName, string name)
128128
{
129129
string url = BuildPrivateEndpointConnectionURL(resourceGroupName, serviceName, name);
130-
ServiceClient.Operations.DeleteResouce(url, _configuration.ApiVersion);
130+
ServiceClient.Operations.DeleteResource(url, _configuration.ApiVersion);
131131
}
132132

133133
public PSPrivateLinkResource GetPrivateLinkResource(string resourceGroupName, string serviceName, string name)
134134
{
135135
string url = BuildPrivateLinkResourceURL(resourceGroupName, serviceName, name);
136-
PrivateLinkResource resource = ServiceClient.Operations.GetResouce<PrivateLinkResource>(url, _configuration.ApiVersion);
136+
PrivateLinkResource resource = ServiceClient.Operations.GetResource<PrivateLinkResource>(url, _configuration.ApiVersion);
137137
return ToPsPrivateLinkResource(resource);
138138
}
139139

140140
public List<PSPrivateLinkResource> ListPrivateLinkResource(string resourceGroupName, string serviceName)
141141
{
142142
var psPLRs = new List<PSPrivateLinkResource>();
143143
string url = BuildPrivateLinkResourcesURL(resourceGroupName, serviceName);
144-
IPage<PrivateLinkResource> list = ServiceClient.Operations.GetResoucePage<Page<PrivateLinkResource>, PrivateLinkResource>(url, _configuration.ApiVersion);
144+
IPage<PrivateLinkResource> list = ServiceClient.Operations.GetResourcePage<Page<PrivateLinkResource>, PrivateLinkResource>(url, _configuration.ApiVersion);
145145
foreach (var plr in list)
146146
{
147147
var psPlr = ToPsPrivateLinkResource(plr);
148148
psPLRs.Add(psPlr);
149149
}
150150
while (list.NextPageLink != null)
151151
{
152-
list = ServiceClient.Operations.GetResoucePage<Page<PrivateLinkResource>, PrivateLinkResource>(list.NextPageLink, null);
152+
list = ServiceClient.Operations.GetResourcePage<Page<PrivateLinkResource>, PrivateLinkResource>(list.NextPageLink, null);
153153
foreach (var plr in list)
154154
{
155155
var psPlr = ToPsPrivateLinkResource(plr);

tools/Common.Netcore.Dependencies.targets

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
<ItemGroup >
44
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.20"/>
55
<PackageReference Include="Microsoft.Rest.ClientRuntime.Azure" Version="3.3.19"/>
6-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Aks" Version="1.3.16-preview"/>
7-
<PackageReference Include="Microsoft.Azure.PowerShell.Authentication.Abstractions" Version="1.3.16-preview"/>
8-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Authorization" Version="1.3.16-preview"/>
9-
<PackageReference Include="Microsoft.Azure.PowerShell.Common" Version="1.3.16-preview"/>
10-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Compute" Version="1.3.16-preview"/>
11-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Graph.Rbac" Version="1.3.16-preview"/>
12-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.KeyVault" Version="1.3.16-preview"/>
13-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Monitor" Version="1.3.16-preview"/>
14-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Network" Version="1.3.16-preview"/>
15-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.PolicyInsights" Version="1.3.16-preview"/>
16-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.ResourceManager" Version="1.3.16-preview"/>
17-
<PackageReference Include="Microsoft.Azure.PowerShell.Storage" Version="1.3.16-preview"/>
18-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Storage.Management" Version="1.3.16-preview"/>
19-
<PackageReference Include="Microsoft.Azure.PowerShell.Strategies" Version="1.3.16-preview"/>
20-
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Websites" Version="1.3.16-preview"/>
6+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Aks" Version="1.3.17-preview"/>
7+
<PackageReference Include="Microsoft.Azure.PowerShell.Authentication.Abstractions" Version="1.3.17-preview"/>
8+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Authorization" Version="1.3.17-preview"/>
9+
<PackageReference Include="Microsoft.Azure.PowerShell.Common" Version="1.3.17-preview"/>
10+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Compute" Version="1.3.17-preview"/>
11+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Graph.Rbac" Version="1.3.17-preview"/>
12+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.KeyVault" Version="1.3.17-preview"/>
13+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Monitor" Version="1.3.17-preview"/>
14+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Network" Version="1.3.17-preview"/>
15+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.PolicyInsights" Version="1.3.17-preview"/>
16+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.ResourceManager" Version="1.3.17-preview"/>
17+
<PackageReference Include="Microsoft.Azure.PowerShell.Storage" Version="1.3.17-preview"/>
18+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Storage.Management" Version="1.3.17-preview"/>
19+
<PackageReference Include="Microsoft.Azure.PowerShell.Strategies" Version="1.3.17-preview"/>
20+
<PackageReference Include="Microsoft.Azure.PowerShell.Clients.Websites" Version="1.3.17-preview"/>
2121
</ItemGroup>
2222
<ItemGroup Condition="'$(IsTestProject)' != 'true'">
2323
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.4.0">
@@ -32,7 +32,7 @@
3232
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0" PrivateAssets="All" />
3333
</ItemGroup>
3434
<PropertyGroup>
35-
<StorageToolsPath>$(NugetPackageRoot)\microsoft.azure.powershell.storage\1.3.16-preview\tools\</StorageToolsPath>
35+
<StorageToolsPath>$(NugetPackageRoot)\microsoft.azure.powershell.storage\1.3.17-preview\tools\</StorageToolsPath>
3636
</PropertyGroup>
3737
<ItemGroup Condition="'$(OmitJsonPackage)' != 'true'">
3838
<PackageReference Include="Newtonsoft.Json" Version="10.0.3"/>

0 commit comments

Comments
 (0)