Exemplo n.º 1
0
 /// <summary>
 /// List all ResourceHealthMetadata for all sites in the subscription.
 /// </summary>
 /// <remarks>
 /// Description for List all ResourceHealthMetadata for all sites in the
 /// subscription.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ResourceHealthMetadataInner> > ListAsync(this IResourceHealthMetadataOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the category of ResourceHealthMetadata to use for the given site
 /// </summary>
 /// <remarks>
 /// Description for Gets the category of ResourceHealthMetadata to use for the
 /// given site
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='name'>
 /// Name of web app
 /// </param>
 /// <param name='slot'>
 /// Name of web app slot. If not specified then will default to production
 /// slot.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ResourceHealthMetadataInner> GetBySiteSlotAsync(this IResourceHealthMetadataOperations operations, string resourceGroupName, string name, string slot, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetBySiteSlotWithHttpMessagesAsync(resourceGroupName, name, slot, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// List all ResourceHealthMetadata for all sites in the resource group in the
 /// subscription.
 /// </summary>
 /// <remarks>
 /// Description for List all ResourceHealthMetadata for all sites in the
 /// resource group in the subscription.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 public static IPage <ResourceHealthMetadata> ListByResourceGroup(this IResourceHealthMetadataOperations operations, string resourceGroupName)
 {
     return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult());
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets the category of ResourceHealthMetadata to use for the given site as a
 /// collection
 /// </summary>
 /// <remarks>
 /// Description for Gets the category of ResourceHealthMetadata to use for the
 /// given site as a collection
 /// </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 <ResourceHealthMetadata> ListBySiteSlotNext(this IResourceHealthMetadataOperations operations, string nextPageLink)
 {
     return(operations.ListBySiteSlotNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Exemplo n.º 5
0
 /// <summary>
 /// List all ResourceHealthMetadata for all sites in the subscription.
 /// </summary>
 /// <remarks>
 /// Description for List all ResourceHealthMetadata for all sites in the
 /// subscription.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <ResourceHealthMetadata> List(this IResourceHealthMetadataOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
Exemplo n.º 6
0
 /// <summary>
 /// Gets the category of ResourceHealthMetadata to use for the given site
 /// </summary>
 /// <remarks>
 /// Description for Gets the category of ResourceHealthMetadata to use for the
 /// given site
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='name'>
 /// Name of web app
 /// </param>
 /// <param name='slot'>
 /// Name of web app slot. If not specified then will default to production
 /// slot.
 /// </param>
 public static ResourceHealthMetadata GetBySiteSlot(this IResourceHealthMetadataOperations operations, string resourceGroupName, string name, string slot)
 {
     return(operations.GetBySiteSlotAsync(resourceGroupName, name, slot).GetAwaiter().GetResult());
 }