示例#1
0
 /// <summary>
 /// Return list of software update configuration runs
 /// <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. You can use the following filters:
 /// 'properties/osType', 'properties/status', 'properties/startTime', and
 /// 'properties/softwareUpdateConfiguration/name'
 /// </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 <SoftwareUpdateConfigurationRunListResult> ListAsync(this ISoftwareUpdateConfigurationRunsOperations operations, string resourceGroupName, string automationAccountName, string clientRequestId = default(string), string filter = default(string), string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, automationAccountName, clientRequestId, filter, skip, top, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
        /// <summary>
        /// Return list of software update configuration runs started at or after the given time
        /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" />
        /// </summary>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='configurationName'>
        /// Name of the software update configuration triggered this run
        /// </param>
        /// <param name='osType'>
        /// Operating system type
        /// </param>
        /// <param name='status'>
        /// status of the run
        /// </param>
        /// <param name='startTime'>
        /// start time of the run
        /// </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 <SoftwareUpdateConfigurationRunListResult> ListAllAsync(
            this ISoftwareUpdateConfigurationRunsOperations operations,
            string resourceGroupName, string automationAccountName,
            string configurationName            = null, string osType          = null, string status = null, DateTime?startTime = null,
            string clientRequestId              = default(string), string skip = default(string), string top = default(string),
            CancellationToken cancellationToken = default(CancellationToken))
        {
            var filter = GetCombinedFilters(configurationName, osType, status, startTime);

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