protected override void ProcessRecord() { base.ProcessRecord(); ListDataEntitiesRequest request; try { request = new ListDataEntitiesRequest { WorkspaceId = WorkspaceId, ConnectionKey = ConnectionKey, SchemaResourceName = SchemaResourceName, Name = Name, Page = Page, Type = Type, Limit = Limit, Fields = Fields, SortBy = SortBy, SortOrder = SortOrder, OpcRequestId = OpcRequestId }; IEnumerable <ListDataEntitiesResponse> responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) { response = item; WriteOutput(response, response.DataEntitySummaryCollection, true); } FinishProcessing(response); } catch (Exception ex) { TerminatingErrorDuringExecution(ex); } }
protected override void ProcessRecord() { base.ProcessRecord(); ListDataEntitiesRequest request; try { request = new ListDataEntitiesRequest { RegistryId = RegistryId, ConnectionKey = ConnectionKey, SchemaResourceName = SchemaResourceName, Name = Name, Page = Page, Type = Type, Limit = Limit, Fields = Fields, SortBy = SortBy, SortOrder = SortOrder, OpcRequestId = OpcRequestId, ApiMode = ApiMode, NameList = NameList, IsPattern = IsPattern, EndpointId = EndpointId }; IEnumerable <ListDataEntitiesResponse> responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) { response = item; WriteOutput(response, response.DataEntitySummaryCollection, 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); } }