/// <summary> /// Get synchronizationSetting in a share. /// </summary> /// <remarks> /// Get a synchronizationSetting in a share /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='accountName'> /// The name of the share account. /// </param> /// <param name='shareName'> /// The name of the share. /// </param> /// <param name='synchronizationSettingName'> /// The name of the synchronizationSetting. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SynchronizationSetting> GetAsync(this ISynchronizationSettingsOperations operations, string resourceGroupName, string accountName, string shareName, string synchronizationSettingName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, shareName, synchronizationSettingName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get synchronizationSetting in a share. /// </summary> /// <remarks> /// Get a synchronizationSetting in a share /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='accountName'> /// The name of the share account. /// </param> /// <param name='shareName'> /// The name of the share. /// </param> /// <param name='synchronizationSettingName'> /// The name of the synchronizationSetting. /// </param> public static SynchronizationSetting Get(this ISynchronizationSettingsOperations operations, string resourceGroupName, string accountName, string shareName, string synchronizationSettingName) { return(operations.GetAsync(resourceGroupName, accountName, shareName, synchronizationSettingName).GetAwaiter().GetResult()); }
/// <summary> /// List synchronizationSettings in a share. /// </summary> /// <remarks> /// List synchronizationSettings in a share /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <SynchronizationSetting> ListByShareNext(this ISynchronizationSettingsOperations operations, string nextPageLink) { return(operations.ListByShareNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// List synchronizationSettings in a share. /// </summary> /// <remarks> /// List synchronizationSettings in a share /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <SynchronizationSetting> > ListByShareNextAsync(this ISynchronizationSettingsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByShareNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List synchronizationSettings in a share. /// </summary> /// <remarks> /// List synchronizationSettings in a share /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='accountName'> /// The name of the share account. /// </param> /// <param name='shareName'> /// The name of the share. /// </param> /// <param name='skipToken'> /// continuation token /// </param> public static IPage <SynchronizationSetting> ListByShare(this ISynchronizationSettingsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string)) { return(operations.ListByShareAsync(resourceGroupName, accountName, shareName, skipToken).GetAwaiter().GetResult()); }