protected override void ProcessRecord() { base.ProcessRecord(); ListAttributesRequest request; try { request = new ListAttributesRequest { CatalogId = CatalogId, DataAssetKey = DataAssetKey, EntityKey = EntityKey, DisplayName = DisplayName, BusinessName = BusinessName, DisplayOrBusinessNameContains = DisplayOrBusinessNameContains, DisplayNameContains = DisplayNameContains, LifecycleState = LifecycleState, TimeCreated = TimeCreated, TimeUpdated = TimeUpdated, CreatedById = CreatedById, UpdatedById = UpdatedById, ExternalKey = ExternalKey, TimeExternal = TimeExternal, ExternalTypeName = ExternalTypeName, IsIncrementalData = IsIncrementalData, IsNullable = IsNullable, Length = Length, Position = Position, Precision = Precision, Scale = Scale, Fields = Fields, SortBy = SortBy, SortOrder = SortOrder, Limit = Limit, Page = Page, OpcRequestId = OpcRequestId }; IEnumerable <ListAttributesResponse> responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) { response = item; WriteOutput(response, response.AttributeCollection, 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); } }
protected override void ProcessRecord() { base.ProcessRecord(); ListAttributesRequest request; try { request = new ListAttributesRequest { CatalogId = CatalogId, DataAssetKey = DataAssetKey, EntityKey = EntityKey, DisplayName = DisplayName, DisplayNameContains = DisplayNameContains, LifecycleState = LifecycleState, TimeCreated = TimeCreated, TimeUpdated = TimeUpdated, CreatedById = CreatedById, UpdatedById = UpdatedById, ExternalKey = ExternalKey, TimeExternal = TimeExternal, ExternalTypeName = ExternalTypeName, IsIncrementalData = IsIncrementalData, IsNullable = IsNullable, Length = Length, Position = Position, Precision = Precision, Scale = Scale, Fields = Fields, SortBy = SortBy, SortOrder = SortOrder, Limit = Limit, Page = Page, OpcRequestId = OpcRequestId }; IEnumerable <ListAttributesResponse> responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) { response = item; WriteOutput(response, response.AttributeCollection, true); } FinishProcessing(response); } catch (Exception ex) { TerminatingErrorDuringExecution(ex); } }