Beispiel #1
0
 /// <summary>
 /// Creates or updates a linked service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='factoryName'>
 /// The factory name.
 /// </param>
 /// <param name='linkedServiceName'>
 /// The linked service name.
 /// </param>
 /// <param name='linkedService'>
 /// Linked service resource definition.
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the linkedService entity.  Should only be specified for update, for
 /// which it should match existing entity or can be * for unconditional update.
 /// </param>
 public static LinkedServiceResource CreateOrUpdate(this ILinkedServicesOperations operations, string resourceGroupName, string factoryName, string linkedServiceName, LinkedServiceResource linkedService, string ifMatch = default(string))
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, factoryName, linkedServiceName, linkedService, ifMatch).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Create or update a linked service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group to get. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// Name of the Log Analytics Workspace that will contain the linkedServices
 /// resource
 /// </param>
 /// <param name='linkedServiceName'>
 /// Name of the linkedServices resource
 /// </param>
 /// <param name='parameters'>
 /// The parameters required to create or update a linked service.
 /// </param>
 public static LinkedService CreateOrUpdate(this ILinkedServicesOperations operations, string resourceGroupName, string workspaceName, string linkedServiceName, LinkedService parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, linkedServiceName, parameters).GetAwaiter().GetResult());
 }