Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ServiceClientAdapterNS.ServiceClientAdapter.GetQueryObject C# (CSharp) Method

GetQueryObject() public method

Constructs the query object based on the input parameters
public GetQueryObject ( string backupManagementType, System.DateTime startTime, System.DateTime endTime, string jobId, string status, string operation ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.CommonJobQueryFilters
backupManagementType string Backup management type of the item associated with the job
startTime System.DateTime Time when the job started
endTime System.DateTime Time when the job ended
jobId string ID of the job
status string Status of the job
operation string ID of operation associated with the job
return Microsoft.Azure.Management.RecoveryServices.Backup.Models.CommonJobQueryFilters
        public CommonJobQueryFilters GetQueryObject(
            string backupManagementType,
            DateTime startTime,
            DateTime endTime,
            string jobId,
            string status,
            string operation)
        {
            // build query filters object.
            // currently we don't support any provider specific filters.
            // so we are initializing the object directly
            CommonJobQueryFilters commonFilters = new CommonJobQueryFilters()
            {
                BackupManagementType = backupManagementType,
                StartTime = CommonHelpers.GetDateTimeStringForService(startTime),
                EndTime = CommonHelpers.GetDateTimeStringForService(endTime),
                JobId = jobId,
                Status = status,
                Operation = operation
            };

            return commonFilters;
        }