/// <summary> /// Update sharing profile of a gallery. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='galleryName'> /// The name of the Shared Image Gallery. /// </param> /// <param name='sharingUpdate'> /// Parameters supplied to the update gallery sharing profile. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SharingUpdate> UpdateAsync(this IGallerySharingProfileOperations operations, string resourceGroupName, string galleryName, SharingUpdate sharingUpdate, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, galleryName, sharingUpdate, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Update sharing profile of a gallery. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='galleryName'> /// The name of the Shared Image Gallery. /// </param> /// <param name='sharingUpdate'> /// Parameters supplied to the update gallery sharing profile. /// </param> public static SharingUpdate BeginUpdate(this IGallerySharingProfileOperations operations, string resourceGroupName, string galleryName, SharingUpdate sharingUpdate) { return(operations.BeginUpdateAsync(resourceGroupName, galleryName, sharingUpdate).GetAwaiter().GetResult()); }