Пример #1
0
 /// <summary>
 /// Gets the properties of the specified Iot Connector FHIR destination.
 /// </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='workspaceName'>
 /// The name of workspace resource.
 /// </param>
 /// <param name='iotConnectorName'>
 /// The name of IoT Connector resource.
 /// </param>
 /// <param name='fhirDestinationName'>
 /// The name of IoT Connector FHIR destination resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IotFhirDestination> GetAsync(this IIotConnectorFhirDestinationOperations operations, string resourceGroupName, string workspaceName, string iotConnectorName, string fhirDestinationName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, iotConnectorName, fhirDestinationName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
0
 /// <summary>
 /// Creates or updates an IoT Connector FHIR destination resource with the
 /// specified parameters.
 /// </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='workspaceName'>
 /// The name of workspace resource.
 /// </param>
 /// <param name='iotConnectorName'>
 /// The name of IoT Connector resource.
 /// </param>
 /// <param name='fhirDestinationName'>
 /// The name of IoT Connector FHIR destination resource.
 /// </param>
 /// <param name='iotFhirDestination'>
 /// The parameters for creating or updating an IoT Connector FHIR destination
 /// resource.
 /// </param>
 public static IotFhirDestination CreateOrUpdate(this IIotConnectorFhirDestinationOperations operations, string resourceGroupName, string workspaceName, string iotConnectorName, string fhirDestinationName, IotFhirDestination iotFhirDestination)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, iotConnectorName, fhirDestinationName, iotFhirDestination).GetAwaiter().GetResult());
 }
Пример #3
0
 /// <summary>
 /// Deletes an IoT Connector FHIR destination.
 /// </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='workspaceName'>
 /// The name of workspace resource.
 /// </param>
 /// <param name='iotConnectorName'>
 /// The name of IoT Connector resource.
 /// </param>
 /// <param name='fhirDestinationName'>
 /// The name of IoT Connector FHIR destination resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IIotConnectorFhirDestinationOperations operations, string resourceGroupName, string workspaceName, string iotConnectorName, string fhirDestinationName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, iotConnectorName, fhirDestinationName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Пример #4
0
 /// <summary>
 /// Deletes an IoT Connector FHIR destination.
 /// </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='workspaceName'>
 /// The name of workspace resource.
 /// </param>
 /// <param name='iotConnectorName'>
 /// The name of IoT Connector resource.
 /// </param>
 /// <param name='fhirDestinationName'>
 /// The name of IoT Connector FHIR destination resource.
 /// </param>
 public static void BeginDelete(this IIotConnectorFhirDestinationOperations operations, string resourceGroupName, string workspaceName, string iotConnectorName, string fhirDestinationName)
 {
     operations.BeginDeleteAsync(resourceGroupName, workspaceName, iotConnectorName, fhirDestinationName).GetAwaiter().GetResult();
 }