/// <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='key'> /// Provides the ID of the credential store to set as default. /// </param> /// <param name='body'> /// 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 key, CredentialStoresSetDefaultStoreForResourceTypeParameters body = default(CredentialStoresSetDefaultStoreForResourceTypeParameters), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.SetDefaultStoreForResourceTypeByIdWithHttpMessagesAsync(key, body, 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='key'> /// Provides the ID of the credential store to set as default. /// </param> /// <param name='body'> /// Provides the resourceType that indicates /// the resource type for which the stores becomes default. /// </param> public static void SetDefaultStoreForResourceTypeById(this ICredentialStores operations, long key, CredentialStoresSetDefaultStoreForResourceTypeParameters body = default(CredentialStoresSetDefaultStoreForResourceTypeParameters)) { operations.SetDefaultStoreForResourceTypeByIdAsync(key, body).GetAwaiter().GetResult(); }