@@ -64,7 +64,7 @@ private IAzureRestClient ServiceClient
64
64
public PSPrivateEndpointConnection GetPrivateEndpointConnection ( string resourceGroupName , string serviceName , string name )
65
65
{
66
66
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 ) ;
68
68
return ToPsPrivateEndpointConnection ( connnection ) ;
69
69
}
70
70
@@ -74,15 +74,15 @@ public List<PSPrivateEndpointConnection> ListPrivateEndpointConnections(string r
74
74
if ( _configuration . HasConnectionsURI )
75
75
{
76
76
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 ) ;
78
78
foreach ( var pec in list )
79
79
{
80
80
var psPec = ToPsPrivateEndpointConnection ( pec ) ;
81
81
psPECs . Add ( psPec ) ;
82
82
}
83
83
while ( list . NextPageLink != null )
84
84
{
85
- list = ServiceClient . Operations . GetResoucePage < Page < PrivateEndpointConnection > , PrivateEndpointConnection > ( list . NextPageLink , null ) ;
85
+ list = ServiceClient . Operations . GetResourcePage < Page < PrivateEndpointConnection > , PrivateEndpointConnection > ( list . NextPageLink , null ) ;
86
86
foreach ( var pec in list )
87
87
{
88
88
var psPec = ToPsPrivateEndpointConnection ( pec ) ;
@@ -93,7 +93,7 @@ public List<PSPrivateEndpointConnection> ListPrivateEndpointConnections(string r
93
93
else
94
94
{
95
95
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 ) ;
97
97
if ( resource ? . PrivateEndpointConnections != null )
98
98
{
99
99
foreach ( var pec in resource . PrivateEndpointConnections )
@@ -110,7 +110,7 @@ public List<PSPrivateEndpointConnection> ListPrivateEndpointConnections(string r
110
110
public PSPrivateEndpointConnection UpdatePrivateEndpointConnectionStatus ( string resourceGroupName , string serviceName , string name , string status , string description = null )
111
111
{
112
112
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 ) ;
114
114
115
115
privateEndpointConnection . PrivateLinkServiceConnectionState . Status = status ;
116
116
@@ -119,37 +119,37 @@ public PSPrivateEndpointConnection UpdatePrivateEndpointConnectionStatus(string
119
119
privateEndpointConnection . PrivateLinkServiceConnectionState . Description = description ;
120
120
}
121
121
122
- ServiceClient . Operations . PutResouce < PrivateEndpointConnection > ( url , _configuration . ApiVersion , privateEndpointConnection ) ;
122
+ ServiceClient . Operations . PutResource < PrivateEndpointConnection > ( url , _configuration . ApiVersion , privateEndpointConnection ) ;
123
123
124
124
return GetPrivateEndpointConnection ( resourceGroupName , serviceName , name ) ;
125
125
}
126
126
127
127
public void DeletePrivateEndpointConnection ( string resourceGroupName , string serviceName , string name )
128
128
{
129
129
string url = BuildPrivateEndpointConnectionURL ( resourceGroupName , serviceName , name ) ;
130
- ServiceClient . Operations . DeleteResouce ( url , _configuration . ApiVersion ) ;
130
+ ServiceClient . Operations . DeleteResource ( url , _configuration . ApiVersion ) ;
131
131
}
132
132
133
133
public PSPrivateLinkResource GetPrivateLinkResource ( string resourceGroupName , string serviceName , string name )
134
134
{
135
135
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 ) ;
137
137
return ToPsPrivateLinkResource ( resource ) ;
138
138
}
139
139
140
140
public List < PSPrivateLinkResource > ListPrivateLinkResource ( string resourceGroupName , string serviceName )
141
141
{
142
142
var psPLRs = new List < PSPrivateLinkResource > ( ) ;
143
143
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 ) ;
145
145
foreach ( var plr in list )
146
146
{
147
147
var psPlr = ToPsPrivateLinkResource ( plr ) ;
148
148
psPLRs . Add ( psPlr ) ;
149
149
}
150
150
while ( list . NextPageLink != null )
151
151
{
152
- list = ServiceClient . Operations . GetResoucePage < Page < PrivateLinkResource > , PrivateLinkResource > ( list . NextPageLink , null ) ;
152
+ list = ServiceClient . Operations . GetResourcePage < Page < PrivateLinkResource > , PrivateLinkResource > ( list . NextPageLink , null ) ;
153
153
foreach ( var plr in list )
154
154
{
155
155
var psPlr = ToPsPrivateLinkResource ( plr ) ;
0 commit comments