예제 #1
0
 /// <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);
     }
 }
예제 #2
0
 /// <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());
 }
예제 #3
0
 /// <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);
     }
 }
예제 #4
0
 /// <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());
 }
예제 #5
0
 /// <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());
 }
예제 #6
0
 /// <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();
 }
예제 #7
0
 /// <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();
 }
예제 #8
0
 /// <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());
 }