/// <summary>
 /// Gets a widget type in the specified hub.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hubName'>
 /// The name of the hub.
 /// </param>
 /// <param name='widgetTypeName'>
 /// The name of the widget type.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <WidgetTypeResourceFormatInner> GetAsync(this IWidgetTypesOperations operations, string resourceGroupName, string hubName, string widgetTypeName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, hubName, widgetTypeName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets all available widget types in the specified hub.
 /// </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 <WidgetTypeResourceFormatInner> > ListByHubNextAsync(this IWidgetTypesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByHubNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #3
0
 /// <summary>
 /// Gets all available widget types in the specified hub.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hubName'>
 /// The name of the hub.
 /// </param>
 public static IPage <WidgetTypeResourceFormat> ListByHub(this IWidgetTypesOperations operations, string resourceGroupName, string hubName)
 {
     return(operations.ListByHubAsync(resourceGroupName, hubName).GetAwaiter().GetResult());
 }
예제 #4
0
 /// <summary>
 /// Gets a widget type in the specified hub.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hubName'>
 /// The name of the hub.
 /// </param>
 /// <param name='widgetTypeName'>
 /// The name of the widget type.
 /// </param>
 public static WidgetTypeResourceFormat Get(this IWidgetTypesOperations operations, string resourceGroupName, string hubName, string widgetTypeName)
 {
     return(operations.GetAsync(resourceGroupName, hubName, widgetTypeName).GetAwaiter().GetResult());
 }
예제 #5
0
 /// <summary>
 /// Gets all available widget types in the specified hub.
 /// </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 <WidgetTypeResourceFormat> ListByHubNext(this IWidgetTypesOperations operations, string nextPageLink)
 {
     return(operations.ListByHubNextAsync(nextPageLink).GetAwaiter().GetResult());
 }