| | 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 SharedPrivateLinkResourcesOperations. |
| | 21 | | /// </summary> |
| | 22 | | public static partial class SharedPrivateLinkResourcesOperationsExtensions |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Creates or updates a shared private link resource managed by the Search |
| | 26 | | /// service in the given 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='sharedPrivateLinkResourceName'> |
| | 41 | | /// The name of the shared private link resource managed by the Azure Cognitive |
| | 42 | | /// Search service within the specified resource group. |
| | 43 | | /// </param> |
| | 44 | | /// <param name='sharedPrivateLinkResource'> |
| | 45 | | /// The definition of the shared private link resource to create or update. |
| | 46 | | /// </param> |
| | 47 | | /// <param name='searchManagementRequestOptions'> |
| | 48 | | /// Additional parameters for the operation |
| | 49 | | /// </param> |
| | 50 | | public static SharedPrivateLinkResource CreateOrUpdate(this ISharedPrivateLinkResourcesOperations operations |
| | 51 | | { |
| 0 | 52 | | return operations.CreateOrUpdateAsync(resourceGroupName, searchServiceName, sharedPrivateLinkResourceNam |
| | 53 | | } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Creates or updates a shared private link resource managed by the Search |
| | 57 | | /// service in the given 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='sharedPrivateLinkResourceName'> |
| | 72 | | /// The name of the shared private link resource managed by the Azure Cognitive |
| | 73 | | /// Search service within the specified resource group. |
| | 74 | | /// </param> |
| | 75 | | /// <param name='sharedPrivateLinkResource'> |
| | 76 | | /// The definition of the shared private link resource to create or 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<SharedPrivateLinkResource> CreateOrUpdateAsync(this ISharedPrivateLinkResourcesOper |
| | 85 | | { |
| 0 | 86 | | using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, searchServi |
| | 87 | | { |
| 0 | 88 | | return _result.Body; |
| | 89 | | } |
| 0 | 90 | | } |
| | 91 | |
|
| | 92 | | /// <summary> |
| | 93 | | /// Gets the details of the shared private link resource managed by the Search |
| | 94 | | /// service 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='sharedPrivateLinkResourceName'> |
| | 109 | | /// The name of the shared private link resource managed by the Azure Cognitive |
| | 110 | | /// Search service within the specified resource group. |
| | 111 | | /// </param> |
| | 112 | | /// <param name='searchManagementRequestOptions'> |
| | 113 | | /// Additional parameters for the operation |
| | 114 | | /// </param> |
| | 115 | | public static SharedPrivateLinkResource Get(this ISharedPrivateLinkResourcesOperations operations, string re |
| | 116 | | { |
| 0 | 117 | | return operations.GetAsync(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, searchMa |
| | 118 | | } |
| | 119 | |
|
| | 120 | | /// <summary> |
| | 121 | | /// Gets the details of the shared private link resource managed by the Search |
| | 122 | | /// 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 associated with the |
| | 134 | | /// specified resource group. |
| | 135 | | /// </param> |
| | 136 | | /// <param name='sharedPrivateLinkResourceName'> |
| | 137 | | /// The name of the shared private link resource managed by the Azure Cognitive |
| | 138 | | /// Search service within 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<SharedPrivateLinkResource> GetAsync(this ISharedPrivateLinkResourcesOperations oper |
| | 147 | | { |
| 0 | 148 | | using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, searchServiceName, sha |
| | 149 | | { |
| 0 | 150 | | return _result.Body; |
| | 151 | | } |
| 0 | 152 | | } |
| | 153 | |
|
| | 154 | | /// <summary> |
| | 155 | | /// Deletes the shared private link resource from the Search service. |
| | 156 | | /// <see href="https://aka.ms/search-manage" /> |
| | 157 | | /// </summary> |
| | 158 | | /// <param name='operations'> |
| | 159 | | /// The operations group for this extension method. |
| | 160 | | /// </param> |
| | 161 | | /// <param name='resourceGroupName'> |
| | 162 | | /// The name of the resource group within the current subscription. You can |
| | 163 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 164 | | /// </param> |
| | 165 | | /// <param name='searchServiceName'> |
| | 166 | | /// The name of the Azure Cognitive Search service associated with the |
| | 167 | | /// specified resource group. |
| | 168 | | /// </param> |
| | 169 | | /// <param name='sharedPrivateLinkResourceName'> |
| | 170 | | /// The name of the shared private link resource managed by the Azure Cognitive |
| | 171 | | /// Search service within the specified resource group. |
| | 172 | | /// </param> |
| | 173 | | /// <param name='searchManagementRequestOptions'> |
| | 174 | | /// Additional parameters for the operation |
| | 175 | | /// </param> |
| | 176 | | public static void Delete(this ISharedPrivateLinkResourcesOperations operations, string resourceGroupName, s |
| | 177 | | { |
| 0 | 178 | | operations.DeleteAsync(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, searchManage |
| 0 | 179 | | } |
| | 180 | |
|
| | 181 | | /// <summary> |
| | 182 | | /// Deletes the shared private link resource from the Search service. |
| | 183 | | /// <see href="https://aka.ms/search-manage" /> |
| | 184 | | /// </summary> |
| | 185 | | /// <param name='operations'> |
| | 186 | | /// The operations group for this extension method. |
| | 187 | | /// </param> |
| | 188 | | /// <param name='resourceGroupName'> |
| | 189 | | /// The name of the resource group within the current subscription. You can |
| | 190 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 191 | | /// </param> |
| | 192 | | /// <param name='searchServiceName'> |
| | 193 | | /// The name of the Azure Cognitive Search service associated with the |
| | 194 | | /// specified resource group. |
| | 195 | | /// </param> |
| | 196 | | /// <param name='sharedPrivateLinkResourceName'> |
| | 197 | | /// The name of the shared private link resource managed by the Azure Cognitive |
| | 198 | | /// Search service within the specified resource group. |
| | 199 | | /// </param> |
| | 200 | | /// <param name='searchManagementRequestOptions'> |
| | 201 | | /// Additional parameters for the operation |
| | 202 | | /// </param> |
| | 203 | | /// <param name='cancellationToken'> |
| | 204 | | /// The cancellation token. |
| | 205 | | /// </param> |
| | 206 | | public static async Task DeleteAsync(this ISharedPrivateLinkResourcesOperations operations, string resourceG |
| | 207 | | { |
| 0 | 208 | | (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, searchServiceName, sharedPrivateLinkRes |
| 0 | 209 | | } |
| | 210 | |
|
| | 211 | | /// <summary> |
| | 212 | | /// Gets a list of all shared private link resources managed by the given |
| | 213 | | /// service. |
| | 214 | | /// <see href="https://aka.ms/search-manage" /> |
| | 215 | | /// </summary> |
| | 216 | | /// <param name='operations'> |
| | 217 | | /// The operations group for this extension method. |
| | 218 | | /// </param> |
| | 219 | | /// <param name='resourceGroupName'> |
| | 220 | | /// The name of the resource group within the current subscription. You can |
| | 221 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 222 | | /// </param> |
| | 223 | | /// <param name='searchServiceName'> |
| | 224 | | /// The name of the Azure Cognitive Search service associated with the |
| | 225 | | /// specified resource group. |
| | 226 | | /// </param> |
| | 227 | | /// <param name='searchManagementRequestOptions'> |
| | 228 | | /// Additional parameters for the operation |
| | 229 | | /// </param> |
| | 230 | | public static IPage<SharedPrivateLinkResource> ListByService(this ISharedPrivateLinkResourcesOperations oper |
| | 231 | | { |
| 0 | 232 | | return operations.ListByServiceAsync(resourceGroupName, searchServiceName, searchManagementRequestOption |
| | 233 | | } |
| | 234 | |
|
| | 235 | | /// <summary> |
| | 236 | | /// Gets a list of all shared private link resources managed by the given |
| | 237 | | /// service. |
| | 238 | | /// <see href="https://aka.ms/search-manage" /> |
| | 239 | | /// </summary> |
| | 240 | | /// <param name='operations'> |
| | 241 | | /// The operations group for this extension method. |
| | 242 | | /// </param> |
| | 243 | | /// <param name='resourceGroupName'> |
| | 244 | | /// The name of the resource group within the current subscription. You can |
| | 245 | | /// obtain this value from the Azure Resource Manager API or the portal. |
| | 246 | | /// </param> |
| | 247 | | /// <param name='searchServiceName'> |
| | 248 | | /// The name of the Azure Cognitive Search service associated with the |
| | 249 | | /// specified resource group. |
| | 250 | | /// </param> |
| | 251 | | /// <param name='searchManagementRequestOptions'> |
| | 252 | | /// Additional parameters for the operation |
| | 253 | | /// </param> |
| | 254 | | /// <param name='cancellationToken'> |
| | 255 | | /// The cancellation token. |
| | 256 | | /// </param> |
| | 257 | | public static async Task<IPage<SharedPrivateLinkResource>> ListByServiceAsync(this ISharedPrivateLinkResourc |
| | 258 | | { |
| 0 | 259 | | using (var _result = await operations.ListByServiceWithHttpMessagesAsync(resourceGroupName, searchServic |
| | 260 | | { |
| 0 | 261 | | return _result.Body; |
| | 262 | | } |
| 0 | 263 | | } |
| | 264 | |
|
| | 265 | | /// <summary> |
| | 266 | | /// Gets a list of all shared private link resources managed by the given |
| | 267 | | /// service. |
| | 268 | | /// <see href="https://aka.ms/search-manage" /> |
| | 269 | | /// </summary> |
| | 270 | | /// <param name='operations'> |
| | 271 | | /// The operations group for this extension method. |
| | 272 | | /// </param> |
| | 273 | | /// <param name='nextPageLink'> |
| | 274 | | /// The NextLink from the previous successful call to List operation. |
| | 275 | | /// </param> |
| | 276 | | /// <param name='searchManagementRequestOptions'> |
| | 277 | | /// Additional parameters for the operation |
| | 278 | | /// </param> |
| | 279 | | public static IPage<SharedPrivateLinkResource> ListByServiceNext(this ISharedPrivateLinkResourcesOperations |
| | 280 | | { |
| 0 | 281 | | return operations.ListByServiceNextAsync(nextPageLink, searchManagementRequestOptions).GetAwaiter().GetR |
| | 282 | | } |
| | 283 | |
|
| | 284 | | /// <summary> |
| | 285 | | /// Gets a list of all shared private link resources managed by the given |
| | 286 | | /// service. |
| | 287 | | /// <see href="https://aka.ms/search-manage" /> |
| | 288 | | /// </summary> |
| | 289 | | /// <param name='operations'> |
| | 290 | | /// The operations group for this extension method. |
| | 291 | | /// </param> |
| | 292 | | /// <param name='nextPageLink'> |
| | 293 | | /// The NextLink from the previous successful call to List operation. |
| | 294 | | /// </param> |
| | 295 | | /// <param name='searchManagementRequestOptions'> |
| | 296 | | /// Additional parameters for the operation |
| | 297 | | /// </param> |
| | 298 | | /// <param name='cancellationToken'> |
| | 299 | | /// The cancellation token. |
| | 300 | | /// </param> |
| | 301 | | public static async Task<IPage<SharedPrivateLinkResource>> ListByServiceNextAsync(this ISharedPrivateLinkRes |
| | 302 | | { |
| 0 | 303 | | using (var _result = await operations.ListByServiceNextWithHttpMessagesAsync(nextPageLink, searchManagem |
| | 304 | | { |
| 0 | 305 | | return _result.Body; |
| | 306 | | } |
| 0 | 307 | | } |
| | 308 | |
|
| | 309 | | } |
| | 310 | | } |