Esempio n. 1
0
 /// <summary>
 /// Create or update the metadata of the provisioning service.
 /// </summary>
 /// <remarks>
 /// Create or update the metadata of the provisioning service. The usual
 /// pattern to modify a property is to retrieve the provisioning service
 /// metadata and security metadata, and then combine them with the modified
 /// values in a new body to update the provisioning service.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Resource group identifier.
 /// </param>
 /// <param name='provisioningServiceName'>
 /// Name of provisioning service to create or update.
 /// </param>
 /// <param name='iotDpsDescription'>
 /// Description of the provisioning service to create or update.
 /// </param>
 public static ProvisioningServiceDescription CreateOrUpdate(this IIotDpsResourceOperations operations, string resourceGroupName, string provisioningServiceName, ProvisioningServiceDescription iotDpsDescription)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, provisioningServiceName, iotDpsDescription).GetAwaiter().GetResult());
 }