public class LinkDefinitionsClientImpl extends ApiClient implements LinkDefinitionsClient
baseUrl, httpClient, objectMapper| Constructor and Description |
|---|
LinkDefinitionsClientImpl(String baseUrl,
kong.unirest.UnirestInstance httpClient) |
decideErrorMessage, deserializeToProblemDetails, getHeadersMap, getNonNullParameters, mergeMaxSizeIntoPrefer, toJsonpublic LinkDefinitionsClientImpl(String baseUrl, kong.unirest.UnirestInstance httpClient)
public CompletableFuture<EntryLinkTypeInfo> getLinkDefinitionById(String repoId, Integer linkTypeId, String select)
LinkDefinitionsClientgetLinkDefinitionById in interface LinkDefinitionsClientrepoId - The requested repository ID.linkTypeId - The requested link type ID.select - Limits the properties returned in the result.public CompletableFuture<ODataValueContextOfIListOfEntryLinkTypeInfo> getLinkDefinitions(String repoId, String prefer, String select, String orderby, Integer top, Integer skip, Boolean count)
LinkDefinitionsClientgetLinkDefinitions in interface LinkDefinitionsClientrepoId - The requested repository ID.prefer - An optional OData header. Can be used to set the maximum page size using odata.maxpagesize.select - Limits the properties returned in the result.orderby - Specifies the order in which items are returned. The maximum number of expressions is 5.top - Limits the number of items returned from a collection.skip - Excludes the specified number of items of the queried collection from the result.count - Indicates whether the total count of items within a collection are returned in the result.public CompletableFuture<ODataValueContextOfIListOfEntryLinkTypeInfo> getLinkDefinitionsNextLink(String nextLink, Integer maxPageSize)
LinkDefinitionsClientgetLinkDefinitionsNextLink in interface LinkDefinitionsClientnextLink - A url that allows retrieving the next subset of the requested collection.maxPageSize - Optionally specify the maximum number of items to retrieve.public CompletableFuture<Void> getLinkDefinitionsForEach(Function<CompletableFuture<ODataValueContextOfIListOfEntryLinkTypeInfo>,CompletableFuture<Boolean>> callback, Integer maxPageSize, String repoId, String prefer, String select, String orderby, Integer top, Integer skip, Boolean count)
LinkDefinitionsClientgetLinkDefinitionsForEach in interface LinkDefinitionsClientcallback - A delegate that will be called each time new data is retrieved. Returns false to stop receiving more data; returns true to be called again if there's more data.maxPageSize - Optionally specify the maximum number of items to retrieve.repoId - The requested repository ID.prefer - An optional OData header. Can be used to set the maximum page size using odata.maxpagesize.select - Limits the properties returned in the result.orderby - Specifies the order in which items are returned. The maximum number of expressions is 5.top - Limits the number of items returned from a collection.skip - Excludes the specified number of items of the queried collection from the result.count - Indicates whether the total count of items within a collection are returned in the result.Copyright © 2022. All rights reserved.