Example #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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ProvisioningServiceDescription> BeginCreateOrUpdateAsync(this IIotDpsResourceOperations operations, string resourceGroupName, string provisioningServiceName, ProvisioningServiceDescription iotDpsDescription, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, provisioningServiceName, iotDpsDescription, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }