コード例 #1
0
 /// <summary>
 /// List addons in a private cloud
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// Name of the private cloud
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Addon> > ListAsync(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, privateCloudName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// List addons in a private cloud
 /// </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 <Addon> > ListNextAsync(this IAddonsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #3
0
 /// <summary>
 /// Create or update a addon in a private cloud
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// The name of the private cloud.
 /// </param>
 /// <param name='addonName'>
 /// Name of the addon for the private cloud
 /// </param>
 /// <param name='addon'>
 /// A addon in the private cloud
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Addon> BeginCreateOrUpdateAsync(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName, Addon addon, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, addonName, addon, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #4
0
 /// <summary>
 /// Gets a specific addon by name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name.
 /// </param>
 /// <param name='roleName'>
 /// The role name.
 /// </param>
 /// <param name='addonName'>
 /// The addon name.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Addon> GetAsync(this IAddonsOperations operations, string deviceName, string roleName, string addonName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(deviceName, roleName, addonName, resourceGroupName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #5
0
 /// <summary>
 /// Get an addon by name in a private cloud
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// Name of the private cloud
 /// </param>
 /// <param name='addonName'>
 /// Name of the addon for the private cloud
 /// </param>
 public static Addon Get(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName)
 {
     return(operations.GetAsync(resourceGroupName, privateCloudName, addonName).GetAwaiter().GetResult());
 }
コード例 #6
0
 /// <summary>
 /// List addons in a private cloud
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// Name of the private cloud
 /// </param>
 public static IPage <Addon> List(this IAddonsOperations operations, string resourceGroupName, string privateCloudName)
 {
     return(operations.ListAsync(resourceGroupName, privateCloudName).GetAwaiter().GetResult());
 }
コード例 #7
0
 /// <summary>
 /// List addons in a private cloud
 /// </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 <Addon> ListNext(this IAddonsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
コード例 #8
0
 /// <summary>
 /// Delete a addon in a private cloud
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// Name of the private cloud
 /// </param>
 /// <param name='addonName'>
 /// Name of the addon for the private cloud
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, addonName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #9
0
 /// <summary>
 /// Delete a addon in a private cloud
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// Name of the private cloud
 /// </param>
 /// <param name='addonName'>
 /// Name of the addon for the private cloud
 /// </param>
 public static void BeginDelete(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName)
 {
     operations.BeginDeleteAsync(resourceGroupName, privateCloudName, addonName).GetAwaiter().GetResult();
 }
コード例 #10
0
 /// <summary>
 /// Create or update a addon in a private cloud
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// The name of the private cloud.
 /// </param>
 /// <param name='addonName'>
 /// Name of the addon for the private cloud
 /// </param>
 /// <param name='addon'>
 /// A addon in the private cloud
 /// </param>
 public static Addon BeginCreateOrUpdate(this IAddonsOperations operations, string resourceGroupName, string privateCloudName, string addonName, Addon addon)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, privateCloudName, addonName, addon).GetAwaiter().GetResult());
 }
コード例 #11
0
 /// <summary>
 /// Gets a specific addon by name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name.
 /// </param>
 /// <param name='roleName'>
 /// The role name.
 /// </param>
 /// <param name='addonName'>
 /// The addon name.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 public static Addon Get(this IAddonsOperations operations, string deviceName, string roleName, string addonName, string resourceGroupName)
 {
     return(operations.GetAsync(deviceName, roleName, addonName, resourceGroupName).GetAwaiter().GetResult());
 }
コード例 #12
0
 /// <summary>
 /// Lists all the addons configured in the role.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name.
 /// </param>
 /// <param name='roleName'>
 /// The role name.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 public static IPage <Addon> ListByRole(this IAddonsOperations operations, string deviceName, string roleName, string resourceGroupName)
 {
     return(operations.ListByRoleAsync(deviceName, roleName, resourceGroupName).GetAwaiter().GetResult());
 }
コード例 #13
0
 /// <summary>
 /// Deletes the addon on the device.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name.
 /// </param>
 /// <param name='roleName'>
 /// The role name.
 /// </param>
 /// <param name='addonName'>
 /// The addon name.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 public static void BeginDelete(this IAddonsOperations operations, string deviceName, string roleName, string addonName, string resourceGroupName)
 {
     operations.BeginDeleteAsync(deviceName, roleName, addonName, resourceGroupName).GetAwaiter().GetResult();
 }
コード例 #14
0
 /// <summary>
 /// Create or update a addon.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name.
 /// </param>
 /// <param name='roleName'>
 /// The role name.
 /// </param>
 /// <param name='addonName'>
 /// The addon name.
 /// </param>
 /// <param name='addon'>
 /// The addon properties.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 public static Addon BeginCreateOrUpdate(this IAddonsOperations operations, string deviceName, string roleName, string addonName, Addon addon, string resourceGroupName)
 {
     return(operations.BeginCreateOrUpdateAsync(deviceName, roleName, addonName, addon, resourceGroupName).GetAwaiter().GetResult());
 }
コード例 #15
0
 /// <summary>
 /// Deletes the addon on the device.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name.
 /// </param>
 /// <param name='roleName'>
 /// The role name.
 /// </param>
 /// <param name='addonName'>
 /// The addon name.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IAddonsOperations operations, string deviceName, string roleName, string addonName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(deviceName, roleName, addonName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }