public class AttributesClientImpl extends ApiClient implements AttributesClient
baseUrl, httpClient, objectMapper| Constructor and Description |
|---|
AttributesClientImpl(String baseUrl,
kong.unirest.UnirestInstance httpClient) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<ODataValueContextOfListOfAttribute> |
getTrusteeAttributeKeyValuePairs(String repoId,
Boolean everyone,
String prefer,
String select,
String orderby,
Integer top,
Integer skip,
Boolean count)
- Returns the attribute key value pairs associated with the authenticated user.
|
CompletableFuture<Void> |
getTrusteeAttributeKeyValuePairsForEach(Function<CompletableFuture<ODataValueContextOfListOfAttribute>,CompletableFuture<Boolean>> callback,
Integer maxPageSize,
String repoId,
Boolean everyone,
String prefer,
String select,
String orderby,
Integer top,
Integer skip,
Boolean count)
Provides the functionality to iteratively (i.e.
|
CompletableFuture<ODataValueContextOfListOfAttribute> |
getTrusteeAttributeKeyValuePairsNextLink(String nextLink,
Integer maxPageSize)
Returns the next subset of the requested collection, using a nextlink url.
|
CompletableFuture<Attribute> |
getTrusteeAttributeValueByKey(String repoId,
String attributeKey,
Boolean everyone)
- Returns the attribute associated with the key.
|
decideErrorMessage, deserializeToProblemDetails, getHeadersMap, getNonNullParameters, mergeMaxSizeIntoPrefer, toJsonpublic AttributesClientImpl(String baseUrl, kong.unirest.UnirestInstance httpClient)
public CompletableFuture<Attribute> getTrusteeAttributeValueByKey(String repoId, String attributeKey, Boolean everyone)
AttributesClientgetTrusteeAttributeValueByKey in interface AttributesClientrepoId - The requested repository ID.attributeKey - The requested attribute key.everyone - Boolean value that indicates whether to return attributes associated with everyone or the currently authenticated user.public CompletableFuture<ODataValueContextOfListOfAttribute> getTrusteeAttributeKeyValuePairs(String repoId, Boolean everyone, String prefer, String select, String orderby, Integer top, Integer skip, Boolean count)
AttributesClientgetTrusteeAttributeKeyValuePairs in interface AttributesClientrepoId - The requested repository ID.everyone - Boolean value that indicates whether to return attributes key value pairs associated with everyone or the currently authenticated user.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<ODataValueContextOfListOfAttribute> getTrusteeAttributeKeyValuePairsNextLink(String nextLink, Integer maxPageSize)
AttributesClientgetTrusteeAttributeKeyValuePairsNextLink in interface AttributesClientnextLink - 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> getTrusteeAttributeKeyValuePairsForEach(Function<CompletableFuture<ODataValueContextOfListOfAttribute>,CompletableFuture<Boolean>> callback, Integer maxPageSize, String repoId, Boolean everyone, String prefer, String select, String orderby, Integer top, Integer skip, Boolean count)
AttributesClientgetTrusteeAttributeKeyValuePairsForEach in interface AttributesClientcallback - 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.everyone - Boolean value that indicates whether to return attributes key value pairs associated with everyone or the currently authenticated user.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.