/// <summary> /// Gets a private link resource that need to be created for a workspace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the service instance. /// </param> /// <param name='workspaceName'> /// The name of workspace resource. /// </param> /// <param name='groupName'> /// The name of the private link resource group. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PrivateLinkResourceDescription> GetAsync(this IWorkspacePrivateLinkResourcesOperations operations, string resourceGroupName, string workspaceName, string groupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, groupName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a private link resource that need to be created for a workspace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the service instance. /// </param> /// <param name='workspaceName'> /// The name of workspace resource. /// </param> /// <param name='groupName'> /// The name of the private link resource group. /// </param> public static PrivateLinkResourceDescription Get(this IWorkspacePrivateLinkResourcesOperations operations, string resourceGroupName, string workspaceName, string groupName) { return(operations.GetAsync(resourceGroupName, workspaceName, groupName).GetAwaiter().GetResult()); }
/// <summary> /// Gets the private link resources that need to be created for a workspace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the service instance. /// </param> /// <param name='workspaceName'> /// The name of workspace resource. /// </param> public static IEnumerable <PrivateLinkResourceDescription> ListByWorkspace(this IWorkspacePrivateLinkResourcesOperations operations, string resourceGroupName, string workspaceName) { return(operations.ListByWorkspaceAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult()); }