/// <summary> /// Patch an IoT Connector. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the service instance. /// </param> /// <param name='iotConnectorName'> /// The name of IoT Connector resource. /// </param> /// <param name='workspaceName'> /// The name of workspace resource. /// </param> /// <param name='iotConnectorPatchResource'> /// The parameters for updating an IoT Connector. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IotConnector> BeginUpdateAsync(this IIotConnectorsOperations operations, string resourceGroupName, string iotConnectorName, string workspaceName, IotConnectorPatchResource iotConnectorPatchResource, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, iotConnectorName, workspaceName, iotConnectorPatchResource, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Patch an IoT Connector. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the service instance. /// </param> /// <param name='iotConnectorName'> /// The name of IoT Connector resource. /// </param> /// <param name='workspaceName'> /// The name of workspace resource. /// </param> /// <param name='iotConnectorPatchResource'> /// The parameters for updating an IoT Connector. /// </param> public static IotConnector BeginUpdate(this IIotConnectorsOperations operations, string resourceGroupName, string iotConnectorName, string workspaceName, IotConnectorPatchResource iotConnectorPatchResource) { return(operations.BeginUpdateAsync(resourceGroupName, iotConnectorName, workspaceName, iotConnectorPatchResource).GetAwaiter().GetResult()); }