Skip to content

Commit

Permalink
Update digital twin method headers to clarify that create APIs behave…
Browse files Browse the repository at this point in the history
… like createOrUpdate APIs (Azure#16017)
  • Loading branch information
timtay-microsoft authored and annelo-msft committed Feb 17, 2021
1 parent 139491c commit fb41379
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions sdk/digitaltwins/Azure.DigitalTwins.Core/src/DigitalTwinsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ public virtual Response<string> GetDigitalTwin(string digitalTwinId, GetDigitalT
}

/// <summary>
/// Creates a digital twin asynchronously.
/// Creates a digital twin asynchronously. If the provided digital twin Id is already in use, then this will attempt to replace the existing digital twin
/// with the provided digital twin.
/// </summary>
/// <param name="digitalTwinId">The Id of the digital twin.</param>
/// <param name="digitalTwin">The application/json digital twin to create.</param>
Expand Down Expand Up @@ -215,7 +216,8 @@ public virtual Task<Response<string>> CreateDigitalTwinAsync(string digitalTwinI
}

/// <summary>
/// Creates a digital twin synchronously.
/// Creates a digital twin synchronously. If the provided digital twin Id is already in use, then this will attempt to replace the existing digital twin
/// with the provided digital twin.
/// </summary>
/// <param name="digitalTwinId">The Id of the digital twin.</param>
/// <param name="digitalTwin">The application/json digital twin to create.</param>
Expand Down Expand Up @@ -819,7 +821,8 @@ public virtual Response DeleteRelationship(string digitalTwinId, string relation
}

/// <summary>
/// Creates a relationship on a digital twin asynchronously.
/// Creates a relationship on a digital twin asynchronously. If the provided relationship Id is already in use, this will attempt to replace the
/// existing relationship with the provided relationship.
/// </summary>
/// <param name="digitalTwinId">The Id of the source digital twin.</param>
/// <param name="relationshipId">The Id of the relationship which is being created.</param>
Expand Down Expand Up @@ -864,7 +867,8 @@ public virtual Task<Response<string>> CreateRelationshipAsync(string digitalTwin
}

/// <summary>
/// Creates a relationship on a digital twin synchronously.
/// Creates a relationship on a digital twin synchronously. If the provided relationship Id is already in use, this will attempt to replace the
/// existing relationship with the provided relationship.
/// </summary>
/// <param name="digitalTwinId">The Id of the source digital twin.</param>
/// <param name="relationshipId">The Id of the relationship to delete.</param>
Expand Down Expand Up @@ -1620,7 +1624,8 @@ public virtual Response<EventRoute> GetEventRoute(string eventRouteId, GetEventR
}

/// <summary>
/// Creates an event route asynchronously.
/// Creates an event route asynchronously. If the provided event route Id is already in use, then this will attempt to replace the existing
/// event route with the provided event route.
/// </summary>
/// <param name="eventRouteId">The Id of the event route to create.</param>
/// <param name="eventRoute">The event route data containing the endpoint and optional filter.</param>
Expand Down Expand Up @@ -1651,7 +1656,8 @@ public virtual Task<Response> CreateEventRouteAsync(string eventRouteId, EventRo
}

/// <summary>
/// Creates an event route synchronously.
/// Creates an event route synchronously. If the provided event route Id is already in use, then this will attempt to replace the existing
/// event route with the provided event route.
/// </summary>
/// <param name="eventRouteId">The Id of the event route to create.</param>
/// <param name="eventRoute">The event route data containing the endpoint and optional filter.</param>
Expand Down

0 comments on commit fb41379

Please sign in to comment.