/// <summary> /// List notificationchannels in a given lab. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <NotificationChannelInner> > ListAsync(this INotificationChannelsOperations operations, string resourceGroupName, string labName, ODataQuery <NotificationChannelInner> odataQuery = default(ODataQuery <NotificationChannelInner>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, labName, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get notificationchannel. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='name'> /// The name of the notificationChannel. /// </param> /// <param name='expand'> /// Specify the $expand query. Example: 'properties($select=webHookUrl)' /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <NotificationChannelInner> GetAsync(this INotificationChannelsOperations operations, string resourceGroupName, string labName, string name, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, labName, name, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Modify properties of notificationchannels. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='name'> /// The name of the notificationChannel. /// </param> /// <param name='notificationChannel'> /// A notification. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <NotificationChannelInner> UpdateAsync(this INotificationChannelsOperations operations, string resourceGroupName, string labName, string name, NotificationChannelFragmentInner notificationChannel, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, labName, name, notificationChannel, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List notificationchannels in a given lab. /// </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> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <NotificationChannelInner> > ListNextAsync(this INotificationChannelsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Send notification to provided channel. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='name'> /// The name of the notificationChannel. /// </param> /// <param name='notifyParameters'> /// Properties for generating a Notification. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task NotifyAsync(this INotificationChannelsOperations operations, string resourceGroupName, string labName, string name, NotifyParametersInner notifyParameters, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.NotifyWithHttpMessagesAsync(resourceGroupName, labName, name, notifyParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Get notificationchannel. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='name'> /// The name of the notificationChannel. /// </param> /// <param name='expand'> /// Specify the $expand query. Example: 'properties($select=webHookUrl)' /// </param> public static NotificationChannel Get(this INotificationChannelsOperations operations, string resourceGroupName, string labName, string name, string expand = default(string)) { return(operations.GetAsync(resourceGroupName, labName, name, expand).GetAwaiter().GetResult()); }
/// <summary> /// List notificationchannels in a given lab. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <NotificationChannel> List(this INotificationChannelsOperations operations, string resourceGroupName, string labName, ODataQuery <NotificationChannel> odataQuery = default(ODataQuery <NotificationChannel>)) { return(operations.ListAsync(resourceGroupName, labName, odataQuery).GetAwaiter().GetResult()); }
/// <summary> /// List notificationchannels in a given lab. /// </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 <NotificationChannel> ListNext(this INotificationChannelsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Send notification to provided channel. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='name'> /// The name of the notificationChannel. /// </param> /// <param name='notifyParameters'> /// Properties for generating a Notification. /// </param> public static void Notify(this INotificationChannelsOperations operations, string resourceGroupName, string labName, string name, NotifyParameters notifyParameters) { operations.NotifyAsync(resourceGroupName, labName, name, notifyParameters).GetAwaiter().GetResult(); }
/// <summary> /// Modify properties of notificationchannels. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='name'> /// The name of the notificationChannel. /// </param> /// <param name='notificationChannel'> /// A notification. /// </param> public static NotificationChannel Update(this INotificationChannelsOperations operations, string resourceGroupName, string labName, string name, NotificationChannelFragment notificationChannel) { return(operations.UpdateAsync(resourceGroupName, labName, name, notificationChannel).GetAwaiter().GetResult()); }
/// <summary> /// Delete notificationchannel. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='name'> /// The name of the notificationChannel. /// </param> public static void Delete(this INotificationChannelsOperations operations, string resourceGroupName, string labName, string name) { operations.DeleteAsync(resourceGroupName, labName, name).GetAwaiter().GetResult(); }