Ejemplo n.º 1
0
 /// <summary>
 /// Updates a digital twin.
 /// Status codes:
 /// 200 (OK): Success.
 /// 400 (Bad Request): The request is invalid.
 /// 404 (Not Found): There is no digital twin 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='patchDocument'>
 /// An update specification described by JSON Patch. Updates to property values
 /// and $model elements may happen in the same request. Operations are limited
 /// to add, replace and remove.
 /// </param>
 /// <param name='ifMatch'>
 /// Only perform the operation if the entity's etag matches one of the etags
 /// provided or * is provided.
 /// </param>
 public static DigitalTwinsUpdateHeaders Update(this IDigitalTwinsOperations operations, string id, IList <object> patchDocument, string ifMatch = default(string))
 {
     return(operations.UpdateAsync(id, patchDocument, ifMatch).GetAwaiter().GetResult());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update metadata of DigitalTwinsInstance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the DigitalTwinsInstance.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the DigitalTwinsInstance.
 /// </param>
 /// <param name='digitalTwinsPatchDescription'>
 /// The DigitalTwinsInstance and security metadata.
 /// </param>
 public static DigitalTwinsDescription Update(this IDigitalTwinsOperations operations, string resourceGroupName, string resourceName, DigitalTwinsPatchDescription digitalTwinsPatchDescription)
 {
     return(operations.UpdateAsync(resourceGroupName, resourceName, digitalTwinsPatchDescription).GetAwaiter().GetResult());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Update metadata of DigitalTwinsInstance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the DigitalTwinsInstance.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the DigitalTwinsInstance.
 /// </param>
 /// <param name='tags'>
 /// Instance tags
 /// </param>
 public static DigitalTwinsDescription Update(this IDigitalTwinsOperations operations, string resourceGroupName, string resourceName, IDictionary <string, string> tags = default(IDictionary <string, string>))
 {
     return(operations.UpdateAsync(resourceGroupName, resourceName, tags).GetAwaiter().GetResult());
 }