| | 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 ServicesOperations. |
| | 21 | | /// </summary> |
| | 22 | | public static partial class ServicesOperationsExtensions |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Creates or updates a Search service in the given resource group. If the |
| | 26 | | /// Search service already exists, all properties will be updated with the |
| | 27 | | /// given values. |
| | 28 | | /// <see href="https://aka.ms/search-manage" /> |
| | 29 | | /// </summary> |
| | 30 | | /// <param name='operations'> |
| | 31 | | /// The operations group for this extension method. |
| | 32 | | /// </param> |
| | 33 | | /// <param name='resourceGroupName'> |
| | 34 | | /// The name of the resource group within the current subscription. You can |
| | 35 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 36 | | /// </param> |
| | 37 | | /// <param name='searchServiceName'> |
| | 38 | | /// The name of the Azure Cognitive Search service to create or update. Search |
| | 39 | | /// service names must only contain lowercase letters, digits or dashes, cannot |
| | 40 | | /// use dash as the first two or last one characters, cannot contain |
| | 41 | | /// consecutive dashes, and must be between 2 and 60 characters in length. |
| | 42 | | /// Search service names must be globally unique since they are part of the |
| | 43 | | /// service URI (https://<name>.search.windows.net). You cannot change |
| | 44 | | /// the service name after the service is created. |
| | 45 | | /// </param> |
| | 46 | | /// <param name='service'> |
| | 47 | | /// The definition of the Search service to create or update. |
| | 48 | | /// </param> |
| | 49 | | /// <param name='searchManagementRequestOptions'> |
| | 50 | | /// Additional parameters for the operation |
| | 51 | | /// </param> |
| | 52 | | public static SearchService CreateOrUpdate(this IServicesOperations operations, string resourceGroupName, st |
| | 53 | | { |
| 602 | 54 | | return operations.CreateOrUpdateAsync(resourceGroupName, searchServiceName, service, searchManagementReq |
| | 55 | | } |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Creates or updates a Search service in the given resource group. If the |
| | 59 | | /// Search service already exists, all properties will be updated with the |
| | 60 | | /// given values. |
| | 61 | | /// <see href="https://aka.ms/search-manage" /> |
| | 62 | | /// </summary> |
| | 63 | | /// <param name='operations'> |
| | 64 | | /// The operations group for this extension method. |
| | 65 | | /// </param> |
| | 66 | | /// <param name='resourceGroupName'> |
| | 67 | | /// The name of the resource group within the current subscription. You can |
| | 68 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 69 | | /// </param> |
| | 70 | | /// <param name='searchServiceName'> |
| | 71 | | /// The name of the Azure Cognitive Search service to create or update. Search |
| | 72 | | /// service names must only contain lowercase letters, digits or dashes, cannot |
| | 73 | | /// use dash as the first two or last one characters, cannot contain |
| | 74 | | /// consecutive dashes, and must be between 2 and 60 characters in length. |
| | 75 | | /// Search service names must be globally unique since they are part of the |
| | 76 | | /// service URI (https://<name>.search.windows.net). You cannot change |
| | 77 | | /// the service name after the service is created. |
| | 78 | | /// </param> |
| | 79 | | /// <param name='service'> |
| | 80 | | /// The definition of the Search service to create or update. |
| | 81 | | /// </param> |
| | 82 | | /// <param name='searchManagementRequestOptions'> |
| | 83 | | /// Additional parameters for the operation |
| | 84 | | /// </param> |
| | 85 | | /// <param name='cancellationToken'> |
| | 86 | | /// The cancellation token. |
| | 87 | | /// </param> |
| | 88 | | public static async Task<SearchService> CreateOrUpdateAsync(this IServicesOperations operations, string reso |
| | 89 | | { |
| 602 | 90 | | using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, searchServi |
| | 91 | | { |
| 602 | 92 | | return _result.Body; |
| | 93 | | } |
| 602 | 94 | | } |
| | 95 | |
|
| | 96 | | /// <summary> |
| | 97 | | /// Updates an existing Search service in the given resource group. |
| | 98 | | /// <see href="https://aka.ms/search-manage" /> |
| | 99 | | /// </summary> |
| | 100 | | /// <param name='operations'> |
| | 101 | | /// The operations group for this extension method. |
| | 102 | | /// </param> |
| | 103 | | /// <param name='resourceGroupName'> |
| | 104 | | /// The name of the resource group within the current subscription. You can |
| | 105 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 106 | | /// </param> |
| | 107 | | /// <param name='searchServiceName'> |
| | 108 | | /// The name of the Azure Cognitive Search service to update. |
| | 109 | | /// </param> |
| | 110 | | /// <param name='service'> |
| | 111 | | /// The definition of the Search service to update. |
| | 112 | | /// </param> |
| | 113 | | /// <param name='searchManagementRequestOptions'> |
| | 114 | | /// Additional parameters for the operation |
| | 115 | | /// </param> |
| | 116 | | public static SearchService Update(this IServicesOperations operations, string resourceGroupName, string sea |
| | 117 | | { |
| 0 | 118 | | return operations.UpdateAsync(resourceGroupName, searchServiceName, service, searchManagementRequestOpti |
| | 119 | | } |
| | 120 | |
|
| | 121 | | /// <summary> |
| | 122 | | /// Updates an existing Search service 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 to update. |
| | 134 | | /// </param> |
| | 135 | | /// <param name='service'> |
| | 136 | | /// The definition of the Search service to update. |
| | 137 | | /// </param> |
| | 138 | | /// <param name='searchManagementRequestOptions'> |
| | 139 | | /// Additional parameters for the operation |
| | 140 | | /// </param> |
| | 141 | | /// <param name='cancellationToken'> |
| | 142 | | /// The cancellation token. |
| | 143 | | /// </param> |
| | 144 | | public static async Task<SearchService> UpdateAsync(this IServicesOperations operations, string resourceGrou |
| | 145 | | { |
| 0 | 146 | | using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, searchServiceName, |
| | 147 | | { |
| 0 | 148 | | return _result.Body; |
| | 149 | | } |
| 0 | 150 | | } |
| | 151 | |
|
| | 152 | | /// <summary> |
| | 153 | | /// Gets the Search service with the given name in the given resource group. |
| | 154 | | /// <see href="https://aka.ms/search-manage" /> |
| | 155 | | /// </summary> |
| | 156 | | /// <param name='operations'> |
| | 157 | | /// The operations group for this extension method. |
| | 158 | | /// </param> |
| | 159 | | /// <param name='resourceGroupName'> |
| | 160 | | /// The name of the resource group within the current subscription. You can |
| | 161 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 162 | | /// </param> |
| | 163 | | /// <param name='searchServiceName'> |
| | 164 | | /// The name of the Azure Cognitive Search service associated with the |
| | 165 | | /// specified resource group. |
| | 166 | | /// </param> |
| | 167 | | /// <param name='searchManagementRequestOptions'> |
| | 168 | | /// Additional parameters for the operation |
| | 169 | | /// </param> |
| | 170 | | public static SearchService Get(this IServicesOperations operations, string resourceGroupName, string search |
| | 171 | | { |
| 0 | 172 | | return operations.GetAsync(resourceGroupName, searchServiceName, searchManagementRequestOptions).GetAwai |
| | 173 | | } |
| | 174 | |
|
| | 175 | | /// <summary> |
| | 176 | | /// Gets the Search service with the given name in the given resource group. |
| | 177 | | /// <see href="https://aka.ms/search-manage" /> |
| | 178 | | /// </summary> |
| | 179 | | /// <param name='operations'> |
| | 180 | | /// The operations group for this extension method. |
| | 181 | | /// </param> |
| | 182 | | /// <param name='resourceGroupName'> |
| | 183 | | /// The name of the resource group within the current subscription. You can |
| | 184 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 185 | | /// </param> |
| | 186 | | /// <param name='searchServiceName'> |
| | 187 | | /// The name of the Azure Cognitive Search service associated with the |
| | 188 | | /// specified resource group. |
| | 189 | | /// </param> |
| | 190 | | /// <param name='searchManagementRequestOptions'> |
| | 191 | | /// Additional parameters for the operation |
| | 192 | | /// </param> |
| | 193 | | /// <param name='cancellationToken'> |
| | 194 | | /// The cancellation token. |
| | 195 | | /// </param> |
| | 196 | | public static async Task<SearchService> GetAsync(this IServicesOperations operations, string resourceGroupNa |
| | 197 | | { |
| 0 | 198 | | using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, searchServiceName, sea |
| | 199 | | { |
| 0 | 200 | | return _result.Body; |
| | 201 | | } |
| 0 | 202 | | } |
| | 203 | |
|
| | 204 | | /// <summary> |
| | 205 | | /// Deletes a Search service in the given resource group, along with its |
| | 206 | | /// associated resources. |
| | 207 | | /// <see href="https://aka.ms/search-manage" /> |
| | 208 | | /// </summary> |
| | 209 | | /// <param name='operations'> |
| | 210 | | /// The operations group for this extension method. |
| | 211 | | /// </param> |
| | 212 | | /// <param name='resourceGroupName'> |
| | 213 | | /// The name of the resource group within the current subscription. You can |
| | 214 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 215 | | /// </param> |
| | 216 | | /// <param name='searchServiceName'> |
| | 217 | | /// The name of the Azure Cognitive Search service associated with the |
| | 218 | | /// specified resource group. |
| | 219 | | /// </param> |
| | 220 | | /// <param name='searchManagementRequestOptions'> |
| | 221 | | /// Additional parameters for the operation |
| | 222 | | /// </param> |
| | 223 | | public static void Delete(this IServicesOperations operations, string resourceGroupName, string searchServic |
| | 224 | | { |
| 602 | 225 | | operations.DeleteAsync(resourceGroupName, searchServiceName, searchManagementRequestOptions).GetAwaiter( |
| 602 | 226 | | } |
| | 227 | |
|
| | 228 | | /// <summary> |
| | 229 | | /// Deletes a Search service in the given resource group, along with its |
| | 230 | | /// associated resources. |
| | 231 | | /// <see href="https://aka.ms/search-manage" /> |
| | 232 | | /// </summary> |
| | 233 | | /// <param name='operations'> |
| | 234 | | /// The operations group for this extension method. |
| | 235 | | /// </param> |
| | 236 | | /// <param name='resourceGroupName'> |
| | 237 | | /// The name of the resource group within the current subscription. You can |
| | 238 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 239 | | /// </param> |
| | 240 | | /// <param name='searchServiceName'> |
| | 241 | | /// The name of the Azure Cognitive Search service associated with the |
| | 242 | | /// specified resource group. |
| | 243 | | /// </param> |
| | 244 | | /// <param name='searchManagementRequestOptions'> |
| | 245 | | /// Additional parameters for the operation |
| | 246 | | /// </param> |
| | 247 | | /// <param name='cancellationToken'> |
| | 248 | | /// The cancellation token. |
| | 249 | | /// </param> |
| | 250 | | public static async Task DeleteAsync(this IServicesOperations operations, string resourceGroupName, string s |
| | 251 | | { |
| 602 | 252 | | (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, searchServiceName, searchManagementRequ |
| 602 | 253 | | } |
| | 254 | |
|
| | 255 | | /// <summary> |
| | 256 | | /// Gets a list of all Search services in the given resource group. |
| | 257 | | /// <see href="https://aka.ms/search-manage" /> |
| | 258 | | /// </summary> |
| | 259 | | /// <param name='operations'> |
| | 260 | | /// The operations group for this extension method. |
| | 261 | | /// </param> |
| | 262 | | /// <param name='resourceGroupName'> |
| | 263 | | /// The name of the resource group within the current subscription. You can |
| | 264 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 265 | | /// </param> |
| | 266 | | /// <param name='searchManagementRequestOptions'> |
| | 267 | | /// Additional parameters for the operation |
| | 268 | | /// </param> |
| | 269 | | public static IPage<SearchService> ListByResourceGroup(this IServicesOperations operations, string resourceG |
| | 270 | | { |
| 0 | 271 | | return operations.ListByResourceGroupAsync(resourceGroupName, searchManagementRequestOptions).GetAwaiter |
| | 272 | | } |
| | 273 | |
|
| | 274 | | /// <summary> |
| | 275 | | /// Gets a list of all Search services in the given resource group. |
| | 276 | | /// <see href="https://aka.ms/search-manage" /> |
| | 277 | | /// </summary> |
| | 278 | | /// <param name='operations'> |
| | 279 | | /// The operations group for this extension method. |
| | 280 | | /// </param> |
| | 281 | | /// <param name='resourceGroupName'> |
| | 282 | | /// The name of the resource group within the current subscription. You can |
| | 283 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 284 | | /// </param> |
| | 285 | | /// <param name='searchManagementRequestOptions'> |
| | 286 | | /// Additional parameters for the operation |
| | 287 | | /// </param> |
| | 288 | | /// <param name='cancellationToken'> |
| | 289 | | /// The cancellation token. |
| | 290 | | /// </param> |
| | 291 | | public static async Task<IPage<SearchService>> ListByResourceGroupAsync(this IServicesOperations operations, |
| | 292 | | { |
| 0 | 293 | | using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, search |
| | 294 | | { |
| 0 | 295 | | return _result.Body; |
| | 296 | | } |
| 0 | 297 | | } |
| | 298 | |
|
| | 299 | | /// <summary> |
| | 300 | | /// Gets a list of all Search services in the given subscription. |
| | 301 | | /// <see href="https://aka.ms/search-manage" /> |
| | 302 | | /// </summary> |
| | 303 | | /// <param name='operations'> |
| | 304 | | /// The operations group for this extension method. |
| | 305 | | /// </param> |
| | 306 | | /// <param name='searchManagementRequestOptions'> |
| | 307 | | /// Additional parameters for the operation |
| | 308 | | /// </param> |
| | 309 | | public static IPage<SearchService> ListBySubscription(this IServicesOperations operations, SearchManagementR |
| | 310 | | { |
| 0 | 311 | | return operations.ListBySubscriptionAsync(searchManagementRequestOptions).GetAwaiter().GetResult(); |
| | 312 | | } |
| | 313 | |
|
| | 314 | | /// <summary> |
| | 315 | | /// Gets a list of all Search services in the given subscription. |
| | 316 | | /// <see href="https://aka.ms/search-manage" /> |
| | 317 | | /// </summary> |
| | 318 | | /// <param name='operations'> |
| | 319 | | /// The operations group for this extension method. |
| | 320 | | /// </param> |
| | 321 | | /// <param name='searchManagementRequestOptions'> |
| | 322 | | /// Additional parameters for the operation |
| | 323 | | /// </param> |
| | 324 | | /// <param name='cancellationToken'> |
| | 325 | | /// The cancellation token. |
| | 326 | | /// </param> |
| | 327 | | public static async Task<IPage<SearchService>> ListBySubscriptionAsync(this IServicesOperations operations, |
| | 328 | | { |
| 0 | 329 | | using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(searchManagementRequestOpt |
| | 330 | | { |
| 0 | 331 | | return _result.Body; |
| | 332 | | } |
| 0 | 333 | | } |
| | 334 | |
|
| | 335 | | /// <summary> |
| | 336 | | /// Checks whether or not the given Search service name is available for use. |
| | 337 | | /// Search service names must be globally unique since they are part of the |
| | 338 | | /// service URI (https://<name>.search.windows.net). |
| | 339 | | /// <see href="https://aka.ms/search-manage" /> |
| | 340 | | /// </summary> |
| | 341 | | /// <param name='operations'> |
| | 342 | | /// The operations group for this extension method. |
| | 343 | | /// </param> |
| | 344 | | /// <param name='name'> |
| | 345 | | /// The Search service name to validate. Search service names must only contain |
| | 346 | | /// lowercase letters, digits or dashes, cannot use dash as the first two or |
| | 347 | | /// last one characters, cannot contain consecutive dashes, and must be between |
| | 348 | | /// 2 and 60 characters in length. |
| | 349 | | /// </param> |
| | 350 | | /// <param name='searchManagementRequestOptions'> |
| | 351 | | /// Additional parameters for the operation |
| | 352 | | /// </param> |
| | 353 | | public static CheckNameAvailabilityOutput CheckNameAvailability(this IServicesOperations operations, string |
| | 354 | | { |
| 0 | 355 | | return operations.CheckNameAvailabilityAsync(name, searchManagementRequestOptions).GetAwaiter().GetResul |
| | 356 | | } |
| | 357 | |
|
| | 358 | | /// <summary> |
| | 359 | | /// Checks whether or not the given Search service name is available for use. |
| | 360 | | /// Search service names must be globally unique since they are part of the |
| | 361 | | /// service URI (https://<name>.search.windows.net). |
| | 362 | | /// <see href="https://aka.ms/search-manage" /> |
| | 363 | | /// </summary> |
| | 364 | | /// <param name='operations'> |
| | 365 | | /// The operations group for this extension method. |
| | 366 | | /// </param> |
| | 367 | | /// <param name='name'> |
| | 368 | | /// The Search service name to validate. Search service names must only contain |
| | 369 | | /// lowercase letters, digits or dashes, cannot use dash as the first two or |
| | 370 | | /// last one characters, cannot contain consecutive dashes, and must be between |
| | 371 | | /// 2 and 60 characters in length. |
| | 372 | | /// </param> |
| | 373 | | /// <param name='searchManagementRequestOptions'> |
| | 374 | | /// Additional parameters for the operation |
| | 375 | | /// </param> |
| | 376 | | /// <param name='cancellationToken'> |
| | 377 | | /// The cancellation token. |
| | 378 | | /// </param> |
| | 379 | | public static async Task<CheckNameAvailabilityOutput> CheckNameAvailabilityAsync(this IServicesOperations op |
| | 380 | | { |
| 0 | 381 | | using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(name, searchManagementR |
| | 382 | | { |
| 0 | 383 | | return _result.Body; |
| | 384 | | } |
| 0 | 385 | | } |
| | 386 | |
|
| | 387 | | /// <summary> |
| | 388 | | /// Creates or updates a Search service in the given resource group. If the |
| | 389 | | /// Search service already exists, all properties will be updated with the |
| | 390 | | /// given values. |
| | 391 | | /// <see href="https://aka.ms/search-manage" /> |
| | 392 | | /// </summary> |
| | 393 | | /// <param name='operations'> |
| | 394 | | /// The operations group for this extension method. |
| | 395 | | /// </param> |
| | 396 | | /// <param name='resourceGroupName'> |
| | 397 | | /// The name of the resource group within the current subscription. You can |
| | 398 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 399 | | /// </param> |
| | 400 | | /// <param name='searchServiceName'> |
| | 401 | | /// The name of the Azure Cognitive Search service to create or update. Search |
| | 402 | | /// service names must only contain lowercase letters, digits or dashes, cannot |
| | 403 | | /// use dash as the first two or last one characters, cannot contain |
| | 404 | | /// consecutive dashes, and must be between 2 and 60 characters in length. |
| | 405 | | /// Search service names must be globally unique since they are part of the |
| | 406 | | /// service URI (https://<name>.search.windows.net). You cannot change |
| | 407 | | /// the service name after the service is created. |
| | 408 | | /// </param> |
| | 409 | | /// <param name='service'> |
| | 410 | | /// The definition of the Search service to create or update. |
| | 411 | | /// </param> |
| | 412 | | /// <param name='searchManagementRequestOptions'> |
| | 413 | | /// Additional parameters for the operation |
| | 414 | | /// </param> |
| | 415 | | public static SearchService BeginCreateOrUpdate(this IServicesOperations operations, string resourceGroupNam |
| | 416 | | { |
| 0 | 417 | | return operations.BeginCreateOrUpdateAsync(resourceGroupName, searchServiceName, service, searchManageme |
| | 418 | | } |
| | 419 | |
|
| | 420 | | /// <summary> |
| | 421 | | /// Creates or updates a Search service in the given resource group. If the |
| | 422 | | /// Search service already exists, all properties will be updated with the |
| | 423 | | /// given values. |
| | 424 | | /// <see href="https://aka.ms/search-manage" /> |
| | 425 | | /// </summary> |
| | 426 | | /// <param name='operations'> |
| | 427 | | /// The operations group for this extension method. |
| | 428 | | /// </param> |
| | 429 | | /// <param name='resourceGroupName'> |
| | 430 | | /// The name of the resource group within the current subscription. You can |
| | 431 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 432 | | /// </param> |
| | 433 | | /// <param name='searchServiceName'> |
| | 434 | | /// The name of the Azure Cognitive Search service to create or update. Search |
| | 435 | | /// service names must only contain lowercase letters, digits or dashes, cannot |
| | 436 | | /// use dash as the first two or last one characters, cannot contain |
| | 437 | | /// consecutive dashes, and must be between 2 and 60 characters in length. |
| | 438 | | /// Search service names must be globally unique since they are part of the |
| | 439 | | /// service URI (https://<name>.search.windows.net). You cannot change |
| | 440 | | /// the service name after the service is created. |
| | 441 | | /// </param> |
| | 442 | | /// <param name='service'> |
| | 443 | | /// The definition of the Search service to create or update. |
| | 444 | | /// </param> |
| | 445 | | /// <param name='searchManagementRequestOptions'> |
| | 446 | | /// Additional parameters for the operation |
| | 447 | | /// </param> |
| | 448 | | /// <param name='cancellationToken'> |
| | 449 | | /// The cancellation token. |
| | 450 | | /// </param> |
| | 451 | | public static async Task<SearchService> BeginCreateOrUpdateAsync(this IServicesOperations operations, string |
| | 452 | | { |
| 0 | 453 | | using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, search |
| | 454 | | { |
| 0 | 455 | | return _result.Body; |
| | 456 | | } |
| 0 | 457 | | } |
| | 458 | |
|
| | 459 | | /// <summary> |
| | 460 | | /// Gets a list of all Search services in the given resource group. |
| | 461 | | /// <see href="https://aka.ms/search-manage" /> |
| | 462 | | /// </summary> |
| | 463 | | /// <param name='operations'> |
| | 464 | | /// The operations group for this extension method. |
| | 465 | | /// </param> |
| | 466 | | /// <param name='nextPageLink'> |
| | 467 | | /// The NextLink from the previous successful call to List operation. |
| | 468 | | /// </param> |
| | 469 | | /// <param name='searchManagementRequestOptions'> |
| | 470 | | /// Additional parameters for the operation |
| | 471 | | /// </param> |
| | 472 | | public static IPage<SearchService> ListByResourceGroupNext(this IServicesOperations operations, string nextP |
| | 473 | | { |
| 0 | 474 | | return operations.ListByResourceGroupNextAsync(nextPageLink, searchManagementRequestOptions).GetAwaiter( |
| | 475 | | } |
| | 476 | |
|
| | 477 | | /// <summary> |
| | 478 | | /// Gets a list of all Search services in the given resource group. |
| | 479 | | /// <see href="https://aka.ms/search-manage" /> |
| | 480 | | /// </summary> |
| | 481 | | /// <param name='operations'> |
| | 482 | | /// The operations group for this extension method. |
| | 483 | | /// </param> |
| | 484 | | /// <param name='nextPageLink'> |
| | 485 | | /// The NextLink from the previous successful call to List operation. |
| | 486 | | /// </param> |
| | 487 | | /// <param name='searchManagementRequestOptions'> |
| | 488 | | /// Additional parameters for the operation |
| | 489 | | /// </param> |
| | 490 | | /// <param name='cancellationToken'> |
| | 491 | | /// The cancellation token. |
| | 492 | | /// </param> |
| | 493 | | public static async Task<IPage<SearchService>> ListByResourceGroupNextAsync(this IServicesOperations operati |
| | 494 | | { |
| 0 | 495 | | using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, searchM |
| | 496 | | { |
| 0 | 497 | | return _result.Body; |
| | 498 | | } |
| 0 | 499 | | } |
| | 500 | |
|
| | 501 | | /// <summary> |
| | 502 | | /// Gets a list of all Search services in the given subscription. |
| | 503 | | /// <see href="https://aka.ms/search-manage" /> |
| | 504 | | /// </summary> |
| | 505 | | /// <param name='operations'> |
| | 506 | | /// The operations group for this extension method. |
| | 507 | | /// </param> |
| | 508 | | /// <param name='nextPageLink'> |
| | 509 | | /// The NextLink from the previous successful call to List operation. |
| | 510 | | /// </param> |
| | 511 | | /// <param name='searchManagementRequestOptions'> |
| | 512 | | /// Additional parameters for the operation |
| | 513 | | /// </param> |
| | 514 | | public static IPage<SearchService> ListBySubscriptionNext(this IServicesOperations operations, string nextPa |
| | 515 | | { |
| 0 | 516 | | return operations.ListBySubscriptionNextAsync(nextPageLink, searchManagementRequestOptions).GetAwaiter() |
| | 517 | | } |
| | 518 | |
|
| | 519 | | /// <summary> |
| | 520 | | /// Gets a list of all Search services in the given subscription. |
| | 521 | | /// <see href="https://aka.ms/search-manage" /> |
| | 522 | | /// </summary> |
| | 523 | | /// <param name='operations'> |
| | 524 | | /// The operations group for this extension method. |
| | 525 | | /// </param> |
| | 526 | | /// <param name='nextPageLink'> |
| | 527 | | /// The NextLink from the previous successful call to List operation. |
| | 528 | | /// </param> |
| | 529 | | /// <param name='searchManagementRequestOptions'> |
| | 530 | | /// Additional parameters for the operation |
| | 531 | | /// </param> |
| | 532 | | /// <param name='cancellationToken'> |
| | 533 | | /// The cancellation token. |
| | 534 | | /// </param> |
| | 535 | | public static async Task<IPage<SearchService>> ListBySubscriptionNextAsync(this IServicesOperations operatio |
| | 536 | | { |
| 0 | 537 | | using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, searchMa |
| | 538 | | { |
| 0 | 539 | | return _result.Body; |
| | 540 | | } |
| 0 | 541 | | } |
| | 542 | |
|
| | 543 | | } |
| | 544 | | } |