Class Caches
public sealed class Caches
- Inheritance
-
Caches
- Inherited Members
Constructors
Caches(ApiClient)
public Caches(ApiClient apiClient)
Parameters
apiClientApiClient
Methods
CreateAsync(string, CreateCachedContentConfig?, CancellationToken)
public Task<CachedContent> CreateAsync(string model, CreateCachedContentConfig? config = null, CancellationToken cancellationToken = default)
Parameters
modelstringconfigCreateCachedContentConfigcancellationTokenCancellationToken
Returns
DeleteAsync(string, DeleteCachedContentConfig?, CancellationToken)
public Task<DeleteCachedContentResponse> DeleteAsync(string name, DeleteCachedContentConfig? config = null, CancellationToken cancellationToken = default)
Parameters
namestringconfigDeleteCachedContentConfigcancellationTokenCancellationToken
Returns
GetAsync(string, GetCachedContentConfig?, CancellationToken)
public Task<CachedContent> GetAsync(string name, GetCachedContentConfig? config = null, CancellationToken cancellationToken = default)
Parameters
namestringconfigGetCachedContentConfigcancellationTokenCancellationToken
Returns
ListAsync(ListCachedContentsConfig?, CancellationToken)
Lists cached contents asynchronously.
public Task<Pager<CachedContent, ListCachedContentsConfig, ListCachedContentsResponse>> ListAsync(ListCachedContentsConfig? config = null, CancellationToken cancellationToken = default)
Parameters
configListCachedContentsConfigA ListCachedContentsConfig instance that specifies the optional configuration for the list request.
cancellationTokenCancellationTokenThe CancellationToken for the request.
Returns
- Task<Pager<CachedContent, ListCachedContentsConfig, ListCachedContentsResponse>>
A Pager object that contains one page of cached contents. When iterating over the pager, it automatically fetches the next page if there are more.
UpdateAsync(string, UpdateCachedContentConfig?, CancellationToken)
public Task<CachedContent> UpdateAsync(string name, UpdateCachedContentConfig? config = null, CancellationToken cancellationToken = default)
Parameters
namestringconfigUpdateCachedContentConfigcancellationTokenCancellationToken