/// <summary> /// Get ArcSetting resources of HCI Cluster. /// </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='clusterName'> /// The name of the cluster. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <ArcSetting> > ListByClusterAsync(this IArcSettingsOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByClusterWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get ArcSetting resources of HCI Cluster. /// </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 <ArcSetting> > ListByClusterNextAsync(this IArcSettingsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByClusterNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get ArcSetting resource details of HCI Cluster. /// </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='clusterName'> /// The name of the cluster. /// </param> /// <param name='arcSettingName'> /// The name of the proxy resource holding details of HCI ArcSetting /// information. /// </param> public static ArcSetting Get(this IArcSettingsOperations operations, string resourceGroupName, string clusterName, string arcSettingName) { return(operations.GetAsync(resourceGroupName, clusterName, arcSettingName).GetAwaiter().GetResult()); }
/// <summary> /// Get ArcSetting resources of HCI Cluster. /// </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='clusterName'> /// The name of the cluster. /// </param> public static IPage <ArcSetting> ListByCluster(this IArcSettingsOperations operations, string resourceGroupName, string clusterName) { return(operations.ListByClusterAsync(resourceGroupName, clusterName).GetAwaiter().GetResult()); }
/// <summary> /// Get ArcSetting resources of HCI Cluster. /// </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 <ArcSetting> ListByClusterNext(this IArcSettingsOperations operations, string nextPageLink) { return(operations.ListByClusterNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Delete ArcSetting resource details of HCI Cluster. /// </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='clusterName'> /// The name of the cluster. /// </param> /// <param name='arcSettingName'> /// The name of the proxy resource holding details of HCI ArcSetting /// information. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IArcSettingsOperations operations, string resourceGroupName, string clusterName, string arcSettingName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, arcSettingName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Delete ArcSetting resource details of HCI Cluster. /// </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='clusterName'> /// The name of the cluster. /// </param> /// <param name='arcSettingName'> /// The name of the proxy resource holding details of HCI ArcSetting /// information. /// </param> public static void BeginDelete(this IArcSettingsOperations operations, string resourceGroupName, string clusterName, string arcSettingName) { operations.BeginDeleteAsync(resourceGroupName, clusterName, arcSettingName).GetAwaiter().GetResult(); }