/// <summary>
 /// Retrieves information about a dedicated host group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hostGroupName'>
 /// The name of the dedicated host group.
 /// </param>
 /// <param name='expand'>
 /// The expand expression to apply on the operation. 'InstanceView' will
 /// retrieve the list of instance views of the dedicated hosts under the
 /// dedicated host group. 'UserData' is not supported for dedicated host group.
 /// Possible values include: 'instanceView', 'userData'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DedicatedHostGroup> GetAsync(this IDedicatedHostGroupsOperations operations, string resourceGroupName, string hostGroupName, InstanceViewTypes?expand = default(InstanceViewTypes?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, hostGroupName, expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Update an dedicated host group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hostGroupName'>
 /// The name of the dedicated host group.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the Update Dedicated Host Group operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DedicatedHostGroupInner> UpdateAsync(this IDedicatedHostGroupsOperations operations, string resourceGroupName, string hostGroupName, DedicatedHostGroupUpdate parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, hostGroupName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Delete a dedicated host group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hostGroupName'>
 /// The name of the dedicated host group.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IDedicatedHostGroupsOperations operations, string resourceGroupName, string hostGroupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, hostGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Esempio n. 4
0
 /// <summary>
 /// Lists all of the dedicated host groups in the subscription. Use the
 /// nextLink property in the response to get the next page of dedicated host
 /// groups.
 /// </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 <DedicatedHostGroupInner> > ListBySubscriptionNextAsync(this IDedicatedHostGroupsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 5
0
 /// <summary>
 /// Lists all of the dedicated host groups in the specified resource group. Use
 /// the nextLink property in the response to get the next page of dedicated
 /// host groups.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DedicatedHostGroupInner> > ListByResourceGroupAsync(this IDedicatedHostGroupsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Update an dedicated host group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hostGroupName'>
 /// The name of the dedicated host group.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the Update Dedicated Host Group operation.
 /// </param>
 public static DedicatedHostGroup Update(this IDedicatedHostGroupsOperations operations, string resourceGroupName, string hostGroupName, DedicatedHostGroupUpdate parameters)
 {
     return(operations.UpdateAsync(resourceGroupName, hostGroupName, parameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists all of the dedicated host groups in the subscription. Use the
 /// nextLink property in the response to get the next page of dedicated host
 /// groups.
 /// </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 <DedicatedHostGroup> ListBySubscriptionNext(this IDedicatedHostGroupsOperations operations, string nextPageLink)
 {
     return(operations.ListBySubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists all of the dedicated host groups in the subscription. Use the
 /// nextLink property in the response to get the next page of dedicated host
 /// groups.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <DedicatedHostGroup> ListBySubscription(this IDedicatedHostGroupsOperations operations)
 {
     return(operations.ListBySubscriptionAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists all of the dedicated host groups in the specified resource group. Use
 /// the nextLink property in the response to get the next page of dedicated
 /// host groups.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 public static IPage <DedicatedHostGroup> ListByResourceGroup(this IDedicatedHostGroupsOperations operations, string resourceGroupName)
 {
     return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Retrieves information about a dedicated host group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hostGroupName'>
 /// The name of the dedicated host group.
 /// </param>
 /// <param name='expand'>
 /// The expand expression to apply on the operation. 'InstanceView' will
 /// retrieve the list of instance views of the dedicated hosts under the
 /// dedicated host group. 'UserData' is not supported for dedicated host group.
 /// Possible values include: 'instanceView', 'userData'
 /// </param>
 public static DedicatedHostGroup Get(this IDedicatedHostGroupsOperations operations, string resourceGroupName, string hostGroupName, InstanceViewTypes?expand = default(InstanceViewTypes?))
 {
     return(operations.GetAsync(resourceGroupName, hostGroupName, expand).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Delete a dedicated host group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hostGroupName'>
 /// The name of the dedicated host group.
 /// </param>
 public static void Delete(this IDedicatedHostGroupsOperations operations, string resourceGroupName, string hostGroupName)
 {
     operations.DeleteAsync(resourceGroupName, hostGroupName).GetAwaiter().GetResult();
 }
Esempio n. 12
0
 /// <summary>
 /// Retrieves information about a dedicated host group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hostGroupName'>
 /// The name of the dedicated host group.
 /// </param>
 public static DedicatedHostGroup Get(this IDedicatedHostGroupsOperations operations, string resourceGroupName, string hostGroupName)
 {
     return(operations.GetAsync(resourceGroupName, hostGroupName).GetAwaiter().GetResult());
 }