protected override void ProcessRecord() { base.ProcessRecord(); ListUpcomingScheduledJobsRequest request; try { request = new ListUpcomingScheduledJobsRequest { CompartmentId = CompartmentId, TimeEnd = TimeEnd, DisplayName = DisplayName, Limit = Limit, Page = Page, SortOrder = SortOrder, SortBy = SortBy, TagName = TagName, TagValue = TagValue, LifecycleState = LifecycleState, OpcRequestId = OpcRequestId, OsFamily = OsFamily }; IEnumerable <ListUpcomingScheduledJobsResponse> responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) { response = item; WriteOutput(response, response.Items, true); } FinishProcessing(response); } catch (Exception ex) { TerminatingErrorDuringExecution(ex); } }
protected override void ProcessRecord() { base.ProcessRecord(); ListUpcomingScheduledJobsRequest request; try { request = new ListUpcomingScheduledJobsRequest { CompartmentId = CompartmentId, TimeEnd = TimeEnd, DisplayName = DisplayName, Limit = Limit, Page = Page, SortOrder = SortOrder, SortBy = SortBy, TagName = TagName, TagValue = TagValue, LifecycleState = LifecycleState, OpcRequestId = OpcRequestId, OsFamily = OsFamily }; IEnumerable <ListUpcomingScheduledJobsResponse> responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) { response = item; WriteOutput(response, response.Items, true); } if (!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) { WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); } FinishProcessing(response); } catch (Exception ex) { TerminatingErrorDuringExecution(ex); } }