Exemple #1
0
 /// <summary>
 /// Get all software update configurations for the account.
 /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='clientRequestId'>
 /// Identifies this specific client request.
 /// </param>
 /// <param name='filter'>
 /// The filter to apply on the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SoftwareUpdateConfigurationListResult> ListAsync(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, string automationAccountName, string clientRequestId = default(string), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, automationAccountName, clientRequestId, filter, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
        /// <summary>
        /// Return list of software update configurations targetting the given virtual machine
        /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" />
        /// </summary>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='virtualMachineId'>
        /// Azure resource manager Id of the virtual machine
        /// </param>
        /// <param name='skip'>
        /// number of entries you skip before returning results
        /// </param>
        /// <param name='top'>
        /// Maximum number of entries returned in the results collection
        /// </param>
        /// <param name='cancellationToken'>
        /// The cancellation token.
        /// </param>
        public static async Task <SoftwareUpdateConfigurationListResult> ListByAzureVirtualMachineAsync(
            this ISoftwareUpdateConfigurationsOperations operations,
            string resourceGroupName, string automationAccountName, string virtualMachineId,
            string clientRequestId = default(string), string skip = default(string), string top = default(string),
            CancellationToken cancellationToken = default(CancellationToken))
        {
            var filter = string.Format(LambdaFilterFormat, AzureVirtualMachinesProperty, virtualMachineId);

            using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, automationAccountName, clientRequestId, filter, null, cancellationToken).ConfigureAwait(false))
            {
                return(_result.Body);
            }
        }