/// <summary> /// Update the metadata of a service instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the service instance. /// </param> /// <param name='resourceName'> /// The name of the service instance. /// </param> /// <param name='servicePatchDescription'> /// The service instance metadata and security metadata. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ServicesDescription> BeginUpdateAsync(this IServicesOperations operations, string resourceGroupName, string resourceName, ServicesPatchDescription servicePatchDescription, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, servicePatchDescription, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public static ServicesPatchDescription GetServicePatchDescription() { var servicePatchDescription = new ServicesPatchDescription(UpdateTags); return(servicePatchDescription); }
/// <summary> /// Update the metadata of a service instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the service instance. /// </param> /// <param name='resourceName'> /// The name of the service instance. /// </param> /// <param name='servicePatchDescription'> /// The service instance metadata and security metadata. /// </param> public static ServicesDescription BeginUpdate(this IServicesOperations operations, string resourceGroupName, string resourceName, ServicesPatchDescription servicePatchDescription) { return(operations.BeginUpdateAsync(resourceGroupName, resourceName, servicePatchDescription).GetAwaiter().GetResult()); }