Interface IProviderProfileClient
- Namespace
- OpenShell
- Assembly
- OpenShell.Sdk.dll
Provider type profile operations.
public interface IProviderProfileClient
Properties
Platform
A view of this client that targets platform (global) profiles instead of one workspace.
IProviderProfileClient Platform { get; }
Property Value
Methods
DeleteAsync(string, DeleteOptions?, CancellationToken)
Deletes a custom profile.
ValueTask<DeletionResult> DeleteAsync(string id, DeleteOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringoptionsDeleteOptionscancellationTokenCancellationToken
Returns
GetAsync(string, CancellationToken)
Gets a profile by id.
ValueTask<ProviderProfile> GetAsync(string id, CancellationToken cancellationToken = default)
Parameters
idstringcancellationTokenCancellationToken
Returns
ImportAsync(IReadOnlyList<ProfileImportItem>, ProfileMutationOptions?, CancellationToken)
Imports custom profiles. Check Imported and diagnostics.
ValueTask<ImportProfilesResult> ImportAsync(IReadOnlyList<ProfileImportItem> items, ProfileMutationOptions? options = null, CancellationToken cancellationToken = default)
Parameters
itemsIReadOnlyList<ProfileImportItem>optionsProfileMutationOptionscancellationTokenCancellationToken
Returns
LintAsync(IReadOnlyList<ProfileImportItem>, CancellationToken)
Validates profiles without storing them.
ValueTask<LintProfilesResult> LintAsync(IReadOnlyList<ProfileImportItem> items, CancellationToken cancellationToken = default)
Parameters
itemsIReadOnlyList<ProfileImportItem>cancellationTokenCancellationToken
Returns
List(ListOptions?)
Lists profiles lazily.
Pager<ProviderProfile> List(ListOptions? options = null)
Parameters
optionsListOptions
Returns
UpdateAsync(string, ulong, ProfileImportItem, ProfileMutationOptions?, CancellationToken)
Updates one custom profile with optimistic concurrency.
ValueTask<UpdateProfileResult> UpdateAsync(string id, ulong expectedResourceVersion, ProfileImportItem item, ProfileMutationOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringexpectedResourceVersionulongitemProfileImportItemoptionsProfileMutationOptionscancellationTokenCancellationToken