Beispiel #1
0
 /// <summary>
 /// Deletes a relationship between two digital twins.
 /// Status codes:
 /// 200 (OK): Success.
 /// 404 (Not Found): There is either no digital twin or relationship with the
 /// provided id.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// The id of the digital twin. The id is unique within the service and case
 /// sensitive.
 /// </param>
 /// <param name='relationshipId'>
 /// The id of the relationship. The id is unique within the digital twin and
 /// case sensitive.
 /// </param>
 /// <param name='ifMatch'>
 /// Only perform the operation if the entity's etag matches one of the etags
 /// provided or * is provided.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteRelationshipAsync(this IDigitalTwinsOperations operations, string id, string relationshipId, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteRelationshipWithHttpMessagesAsync(id, relationshipId, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }