/// <summary> /// Sets a credential store as the default for the given credential type. /// </summary> /// <remarks> /// Required permissions: Settings.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='defaultStoreActionParameters'> /// Provides the resourceType that indicates /// the resource type for which the stores becomes default. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task SetDefaultStoreForResourceTypeByIdAsync(this ICredentialStores operations, long id, DefaultStoreActionParameters defaultStoreActionParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { (await operations.SetDefaultStoreForResourceTypeByIdWithHttpMessagesAsync(id, defaultStoreActionParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Sets a credential store as the default for the given credential type. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Settings or Settings.Write. /// /// Required permissions: Settings.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='defaultStoreActionParameters'> /// Provides the resourceType that indicates /// the resource type for which the stores becomes default. /// </param> public static void SetDefaultStoreForResourceTypeById(this ICredentialStores operations, long id, DefaultStoreActionParameters defaultStoreActionParameters) { operations.SetDefaultStoreForResourceTypeByIdAsync(id, defaultStoreActionParameters).GetAwaiter().GetResult(); }