/// <summary> /// Creates or updates a bandwidth schedule. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name. /// </param> /// <param name='name'> /// The bandwidth schedule name which needs to be added/updated. /// </param> /// <param name='parameters'> /// The bandwidth schedule to be added or updated. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <BandwidthSchedule> BeginCreateOrUpdateAsync(this IBandwidthSchedulesOperations operations, string deviceName, string name, BandwidthSchedule parameters, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(deviceName, name, parameters, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the properties of the specified bandwidth schedule. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name. /// </param> /// <param name='name'> /// The bandwidth schedule name. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> public static BandwidthSchedule Get(this IBandwidthSchedulesOperations operations, string deviceName, string name, string resourceGroupName) { return(operations.GetAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult()); }
/// <summary> /// Gets all the bandwidth schedules for a Data Box Edge/Data Box Gateway /// device. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <BandwidthSchedule> > ListByDataBoxEdgeDeviceAsync(this IBandwidthSchedulesOperations operations, string deviceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByDataBoxEdgeDeviceWithHttpMessagesAsync(deviceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets all the bandwidth schedules for a Data Box Edge/Data Box Gateway /// device. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> public static IPage <BandwidthSchedule> ListByDataBoxEdgeDevice(this IBandwidthSchedulesOperations operations, string deviceName, string resourceGroupName) { return(operations.ListByDataBoxEdgeDeviceAsync(deviceName, resourceGroupName).GetAwaiter().GetResult()); }
/// <summary> /// Gets all the bandwidth schedules for a Data Box Edge/Data Box Gateway /// device. /// </summary> /// <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 <BandwidthSchedule> ListByDataBoxEdgeDeviceNext(this IBandwidthSchedulesOperations operations, string nextPageLink) { return(operations.ListByDataBoxEdgeDeviceNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Deletes the specified bandwidth schedule. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name. /// </param> /// <param name='name'> /// The bandwidth schedule name. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IBandwidthSchedulesOperations operations, string deviceName, string name, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(deviceName, name, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes the specified bandwidth schedule. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name. /// </param> /// <param name='name'> /// The bandwidth schedule name. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> public static void BeginDelete(this IBandwidthSchedulesOperations operations, string deviceName, string name, string resourceGroupName) { operations.BeginDeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); }
/// <summary> /// Creates or updates a bandwidth schedule. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name. /// </param> /// <param name='name'> /// The bandwidth schedule name which needs to be added/updated. /// </param> /// <param name='parameters'> /// The bandwidth schedule to be added or updated. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> public static BandwidthSchedule BeginCreateOrUpdate(this IBandwidthSchedulesOperations operations, string deviceName, string name, BandwidthSchedule parameters, string resourceGroupName) { return(operations.BeginCreateOrUpdateAsync(deviceName, name, parameters, resourceGroupName).GetAwaiter().GetResult()); }