| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Management.Search |
| | 12 | | { |
| | 13 | | using Microsoft.Rest; |
| | 14 | | using Microsoft.Rest.Azure; |
| | 15 | | using Models; |
| | 16 | | using System.Threading; |
| | 17 | | using System.Threading.Tasks; |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// Extension methods for PrivateEndpointConnectionsOperations. |
| | 21 | | /// </summary> |
| | 22 | | public static partial class PrivateEndpointConnectionsOperationsExtensions |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Updates a Private Endpoint connection to the Search service in the given |
| | 26 | | /// resource group. |
| | 27 | | /// <see href="https://aka.ms/search-manage" /> |
| | 28 | | /// </summary> |
| | 29 | | /// <param name='operations'> |
| | 30 | | /// The operations group for this extension method. |
| | 31 | | /// </param> |
| | 32 | | /// <param name='resourceGroupName'> |
| | 33 | | /// The name of the resource group within the current subscription. You can |
| | 34 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 35 | | /// </param> |
| | 36 | | /// <param name='searchServiceName'> |
| | 37 | | /// The name of the Azure Cognitive Search service associated with the |
| | 38 | | /// specified resource group. |
| | 39 | | /// </param> |
| | 40 | | /// <param name='privateEndpointConnectionName'> |
| | 41 | | /// The name of the private endpoint connection to the Azure Cognitive Search |
| | 42 | | /// service with the specified resource group. |
| | 43 | | /// </param> |
| | 44 | | /// <param name='privateEndpointConnection'> |
| | 45 | | /// The definition of the private endpoint connection to update. |
| | 46 | | /// </param> |
| | 47 | | /// <param name='searchManagementRequestOptions'> |
| | 48 | | /// Additional parameters for the operation |
| | 49 | | /// </param> |
| | 50 | | public static PrivateEndpointConnection Update(this IPrivateEndpointConnectionsOperations operations, string |
| | 51 | | { |
| 0 | 52 | | return operations.UpdateAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName, priva |
| | 53 | | } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Updates a Private Endpoint connection to the Search service in the given |
| | 57 | | /// resource group. |
| | 58 | | /// <see href="https://aka.ms/search-manage" /> |
| | 59 | | /// </summary> |
| | 60 | | /// <param name='operations'> |
| | 61 | | /// The operations group for this extension method. |
| | 62 | | /// </param> |
| | 63 | | /// <param name='resourceGroupName'> |
| | 64 | | /// The name of the resource group within the current subscription. You can |
| | 65 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 66 | | /// </param> |
| | 67 | | /// <param name='searchServiceName'> |
| | 68 | | /// The name of the Azure Cognitive Search service associated with the |
| | 69 | | /// specified resource group. |
| | 70 | | /// </param> |
| | 71 | | /// <param name='privateEndpointConnectionName'> |
| | 72 | | /// The name of the private endpoint connection to the Azure Cognitive Search |
| | 73 | | /// service with the specified resource group. |
| | 74 | | /// </param> |
| | 75 | | /// <param name='privateEndpointConnection'> |
| | 76 | | /// The definition of the private endpoint connection to update. |
| | 77 | | /// </param> |
| | 78 | | /// <param name='searchManagementRequestOptions'> |
| | 79 | | /// Additional parameters for the operation |
| | 80 | | /// </param> |
| | 81 | | /// <param name='cancellationToken'> |
| | 82 | | /// The cancellation token. |
| | 83 | | /// </param> |
| | 84 | | public static async Task<PrivateEndpointConnection> UpdateAsync(this IPrivateEndpointConnectionsOperations o |
| | 85 | | { |
| 0 | 86 | | using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, searchServiceName, |
| | 87 | | { |
| 0 | 88 | | return _result.Body; |
| | 89 | | } |
| 0 | 90 | | } |
| | 91 | |
|
| | 92 | | /// <summary> |
| | 93 | | /// Gets the details of the private endpoint connection to the Search service |
| | 94 | | /// in the given resource group. |
| | 95 | | /// <see href="https://aka.ms/search-manage" /> |
| | 96 | | /// </summary> |
| | 97 | | /// <param name='operations'> |
| | 98 | | /// The operations group for this extension method. |
| | 99 | | /// </param> |
| | 100 | | /// <param name='resourceGroupName'> |
| | 101 | | /// The name of the resource group within the current subscription. You can |
| | 102 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 103 | | /// </param> |
| | 104 | | /// <param name='searchServiceName'> |
| | 105 | | /// The name of the Azure Cognitive Search service associated with the |
| | 106 | | /// specified resource group. |
| | 107 | | /// </param> |
| | 108 | | /// <param name='privateEndpointConnectionName'> |
| | 109 | | /// The name of the private endpoint connection to the Azure Cognitive Search |
| | 110 | | /// service with the specified resource group. |
| | 111 | | /// </param> |
| | 112 | | /// <param name='searchManagementRequestOptions'> |
| | 113 | | /// Additional parameters for the operation |
| | 114 | | /// </param> |
| | 115 | | public static PrivateEndpointConnection Get(this IPrivateEndpointConnectionsOperations operations, string re |
| | 116 | | { |
| 0 | 117 | | return operations.GetAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName, searchMa |
| | 118 | | } |
| | 119 | |
|
| | 120 | | /// <summary> |
| | 121 | | /// Gets the details of the private endpoint connection to the Search service |
| | 122 | | /// in the given resource group. |
| | 123 | | /// <see href="https://aka.ms/search-manage" /> |
| | 124 | | /// </summary> |
| | 125 | | /// <param name='operations'> |
| | 126 | | /// The operations group for this extension method. |
| | 127 | | /// </param> |
| | 128 | | /// <param name='resourceGroupName'> |
| | 129 | | /// The name of the resource group within the current subscription. You can |
| | 130 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 131 | | /// </param> |
| | 132 | | /// <param name='searchServiceName'> |
| | 133 | | /// The name of the Azure Cognitive Search service associated with the |
| | 134 | | /// specified resource group. |
| | 135 | | /// </param> |
| | 136 | | /// <param name='privateEndpointConnectionName'> |
| | 137 | | /// The name of the private endpoint connection to the Azure Cognitive Search |
| | 138 | | /// service with the specified resource group. |
| | 139 | | /// </param> |
| | 140 | | /// <param name='searchManagementRequestOptions'> |
| | 141 | | /// Additional parameters for the operation |
| | 142 | | /// </param> |
| | 143 | | /// <param name='cancellationToken'> |
| | 144 | | /// The cancellation token. |
| | 145 | | /// </param> |
| | 146 | | public static async Task<PrivateEndpointConnection> GetAsync(this IPrivateEndpointConnectionsOperations oper |
| | 147 | | { |
| 0 | 148 | | using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, searchServiceName, pri |
| | 149 | | { |
| 0 | 150 | | return _result.Body; |
| | 151 | | } |
| 0 | 152 | | } |
| | 153 | |
|
| | 154 | | /// <summary> |
| | 155 | | /// Disconnects the private endpoint connection and deletes it from the Search |
| | 156 | | /// service. |
| | 157 | | /// <see href="https://aka.ms/search-manage" /> |
| | 158 | | /// </summary> |
| | 159 | | /// <param name='operations'> |
| | 160 | | /// The operations group for this extension method. |
| | 161 | | /// </param> |
| | 162 | | /// <param name='resourceGroupName'> |
| | 163 | | /// The name of the resource group within the current subscription. You can |
| | 164 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 165 | | /// </param> |
| | 166 | | /// <param name='searchServiceName'> |
| | 167 | | /// The name of the Azure Cognitive Search service associated with the |
| | 168 | | /// specified resource group. |
| | 169 | | /// </param> |
| | 170 | | /// <param name='privateEndpointConnectionName'> |
| | 171 | | /// The name of the private endpoint connection to the Azure Cognitive Search |
| | 172 | | /// service with the specified resource group. |
| | 173 | | /// </param> |
| | 174 | | /// <param name='searchManagementRequestOptions'> |
| | 175 | | /// Additional parameters for the operation |
| | 176 | | /// </param> |
| | 177 | | public static PrivateEndpointConnection Delete(this IPrivateEndpointConnectionsOperations operations, string |
| | 178 | | { |
| 0 | 179 | | return operations.DeleteAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName, searc |
| | 180 | | } |
| | 181 | |
|
| | 182 | | /// <summary> |
| | 183 | | /// Disconnects the private endpoint connection and deletes it from the Search |
| | 184 | | /// service. |
| | 185 | | /// <see href="https://aka.ms/search-manage" /> |
| | 186 | | /// </summary> |
| | 187 | | /// <param name='operations'> |
| | 188 | | /// The operations group for this extension method. |
| | 189 | | /// </param> |
| | 190 | | /// <param name='resourceGroupName'> |
| | 191 | | /// The name of the resource group within the current subscription. You can |
| | 192 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 193 | | /// </param> |
| | 194 | | /// <param name='searchServiceName'> |
| | 195 | | /// The name of the Azure Cognitive Search service associated with the |
| | 196 | | /// specified resource group. |
| | 197 | | /// </param> |
| | 198 | | /// <param name='privateEndpointConnectionName'> |
| | 199 | | /// The name of the private endpoint connection to the Azure Cognitive Search |
| | 200 | | /// service with the specified resource group. |
| | 201 | | /// </param> |
| | 202 | | /// <param name='searchManagementRequestOptions'> |
| | 203 | | /// Additional parameters for the operation |
| | 204 | | /// </param> |
| | 205 | | /// <param name='cancellationToken'> |
| | 206 | | /// The cancellation token. |
| | 207 | | /// </param> |
| | 208 | | public static async Task<PrivateEndpointConnection> DeleteAsync(this IPrivateEndpointConnectionsOperations o |
| | 209 | | { |
| 0 | 210 | | using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, searchServiceName, |
| | 211 | | { |
| 0 | 212 | | return _result.Body; |
| | 213 | | } |
| 0 | 214 | | } |
| | 215 | |
|
| | 216 | | /// <summary> |
| | 217 | | /// Gets a list of all private endpoint connections in the given service. |
| | 218 | | /// <see href="https://aka.ms/search-manage" /> |
| | 219 | | /// </summary> |
| | 220 | | /// <param name='operations'> |
| | 221 | | /// The operations group for this extension method. |
| | 222 | | /// </param> |
| | 223 | | /// <param name='resourceGroupName'> |
| | 224 | | /// The name of the resource group within the current subscription. You can |
| | 225 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 226 | | /// </param> |
| | 227 | | /// <param name='searchServiceName'> |
| | 228 | | /// The name of the Azure Cognitive Search service associated with the |
| | 229 | | /// specified resource group. |
| | 230 | | /// </param> |
| | 231 | | /// <param name='searchManagementRequestOptions'> |
| | 232 | | /// Additional parameters for the operation |
| | 233 | | /// </param> |
| | 234 | | public static IPage<PrivateEndpointConnection> ListByService(this IPrivateEndpointConnectionsOperations oper |
| | 235 | | { |
| 0 | 236 | | return operations.ListByServiceAsync(resourceGroupName, searchServiceName, searchManagementRequestOption |
| | 237 | | } |
| | 238 | |
|
| | 239 | | /// <summary> |
| | 240 | | /// Gets a list of all private endpoint connections in the given service. |
| | 241 | | /// <see href="https://aka.ms/search-manage" /> |
| | 242 | | /// </summary> |
| | 243 | | /// <param name='operations'> |
| | 244 | | /// The operations group for this extension method. |
| | 245 | | /// </param> |
| | 246 | | /// <param name='resourceGroupName'> |
| | 247 | | /// The name of the resource group within the current subscription. You can |
| | 248 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 249 | | /// </param> |
| | 250 | | /// <param name='searchServiceName'> |
| | 251 | | /// The name of the Azure Cognitive Search service associated with the |
| | 252 | | /// specified resource group. |
| | 253 | | /// </param> |
| | 254 | | /// <param name='searchManagementRequestOptions'> |
| | 255 | | /// Additional parameters for the operation |
| | 256 | | /// </param> |
| | 257 | | /// <param name='cancellationToken'> |
| | 258 | | /// The cancellation token. |
| | 259 | | /// </param> |
| | 260 | | public static async Task<IPage<PrivateEndpointConnection>> ListByServiceAsync(this IPrivateEndpointConnectio |
| | 261 | | { |
| 0 | 262 | | using (var _result = await operations.ListByServiceWithHttpMessagesAsync(resourceGroupName, searchServic |
| | 263 | | { |
| 0 | 264 | | return _result.Body; |
| | 265 | | } |
| 0 | 266 | | } |
| | 267 | |
|
| | 268 | | /// <summary> |
| | 269 | | /// Gets a list of all private endpoint connections in the given service. |
| | 270 | | /// <see href="https://aka.ms/search-manage" /> |
| | 271 | | /// </summary> |
| | 272 | | /// <param name='operations'> |
| | 273 | | /// The operations group for this extension method. |
| | 274 | | /// </param> |
| | 275 | | /// <param name='nextPageLink'> |
| | 276 | | /// The NextLink from the previous successful call to List operation. |
| | 277 | | /// </param> |
| | 278 | | /// <param name='searchManagementRequestOptions'> |
| | 279 | | /// Additional parameters for the operation |
| | 280 | | /// </param> |
| | 281 | | public static IPage<PrivateEndpointConnection> ListByServiceNext(this IPrivateEndpointConnectionsOperations |
| | 282 | | { |
| 0 | 283 | | return operations.ListByServiceNextAsync(nextPageLink, searchManagementRequestOptions).GetAwaiter().GetR |
| | 284 | | } |
| | 285 | |
|
| | 286 | | /// <summary> |
| | 287 | | /// Gets a list of all private endpoint connections in the given service. |
| | 288 | | /// <see href="https://aka.ms/search-manage" /> |
| | 289 | | /// </summary> |
| | 290 | | /// <param name='operations'> |
| | 291 | | /// The operations group for this extension method. |
| | 292 | | /// </param> |
| | 293 | | /// <param name='nextPageLink'> |
| | 294 | | /// The NextLink from the previous successful call to List operation. |
| | 295 | | /// </param> |
| | 296 | | /// <param name='searchManagementRequestOptions'> |
| | 297 | | /// Additional parameters for the operation |
| | 298 | | /// </param> |
| | 299 | | /// <param name='cancellationToken'> |
| | 300 | | /// The cancellation token. |
| | 301 | | /// </param> |
| | 302 | | public static async Task<IPage<PrivateEndpointConnection>> ListByServiceNextAsync(this IPrivateEndpointConne |
| | 303 | | { |
| 0 | 304 | | using (var _result = await operations.ListByServiceNextWithHttpMessagesAsync(nextPageLink, searchManagem |
| | 305 | | { |
| 0 | 306 | | return _result.Body; |
| | 307 | | } |
| 0 | 308 | | } |
| | 309 | |
|
| | 310 | | } |
| | 311 | | } |