Ejemplo n.º 1
0
 /// <summary>
 /// Delete an existing snapshot according to the snapshotId. All object data
 /// and information in the snapshot will also be deleted. Only the source
 /// subscription who took the snapshot can delete the snapshot. If the user
 /// does not delete a snapshot with this API, the snapshot will still be
 /// automatically deleted in 48 hours after creation.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='snapshotId'>
 /// Id referencing a particular snapshot.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this ISnapshotOperations operations, System.Guid snapshotId, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(snapshotId, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update the information of a snapshot. Only the source subscription who took
 /// the snapshot can update the snapshot.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='snapshotId'>
 /// Id referencing a particular snapshot.
 /// </param>
 /// <param name='applyScope'>
 /// Array of the target Face subscription ids for the snapshot, specified by
 /// the user who created the snapshot when calling Snapshot - Take. For each
 /// snapshot, only subscriptions included in the applyScope of Snapshot - Take
 /// can apply it.
 /// </param>
 /// <param name='userData'>
 /// User specified data about the snapshot for any purpose. Length should not
 /// exceed 16KB.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task UpdateAsync(this ISnapshotOperations operations, System.Guid snapshotId, IList <System.Guid> applyScope = default(IList <System.Guid>), string userData = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.UpdateWithHttpMessagesAsync(snapshotId, applyScope, userData, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }