MetricsAdvisorAdministrationClient.UpdateDataSourceCredentialAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Updates an existing DataSourceCredentialEntity. In order to update your credential, you cannot create a DataSourceCredentialEntity directly from its constructor. You need to obtain an instance via GetDataSourceCredentialAsync(String, CancellationToken) or another CRUD operation and update it before calling this method.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity>> UpdateDataSourceCredentialAsync (Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity dataSourceCredential, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateDataSourceCredentialAsync : Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity>>
override this.UpdateDataSourceCredentialAsync : Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity>>
Public Overridable Function UpdateDataSourceCredentialAsync (dataSourceCredential As DataSourceCredentialEntity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DataSourceCredentialEntity))
Parameters
- dataSourceCredential
- DataSourceCredentialEntity
The DataSourceCredentialEntity model containing the updates to be applied.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
A Response<T> containing the result of the operation. The result is a DataSourceCredentialEntity instance containing information about the updated credential.
Exceptions
dataSourceCredential
or dataSourceCredential
.Id is null.
Applies to
Azure SDK for .NET