コード例 #1
0
 /// <summary>
 /// Creates a Stream Analytics Private Endpoint or replaces an already existing
 /// Private Endpoint.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='privateEndpoint'>
 /// The definition of the private endpoint that will be used to create a new
 /// cluster or replace the existing one.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='privateEndpointName'>
 /// The name of the private endpoint.
 /// </param>
 /// <param name='ifMatch'>
 /// The ETag of the resource. Omit this value to always overwrite the current
 /// record set. Specify the last-seen ETag value to prevent accidentally
 /// overwriting concurrent changes.
 /// </param>
 /// <param name='ifNoneMatch'>
 /// Set to '*' to allow a new resource to be created, but to prevent updating
 /// an existing record set. Other values will result in a 412 Pre-condition
 /// Failed response.
 /// </param>
 public static PrivateEndpoint CreateOrUpdate(this IPrivateEndpointsOperations operations, PrivateEndpoint privateEndpoint, string resourceGroupName, string clusterName, string privateEndpointName, string ifMatch = default(string), string ifNoneMatch = default(string))
 {
     return(operations.CreateOrUpdateAsync(privateEndpoint, resourceGroupName, clusterName, privateEndpointName, ifMatch, ifNoneMatch).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates or updates an private endpoint in the specified resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='privateEndpointName'>
 /// The name of the private endpoint.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the create or update private endpoint operation
 /// </param>
 public static PrivateEndpoint CreateOrUpdate(this IPrivateEndpointsOperations operations, string resourceGroupName, string privateEndpointName, PrivateEndpoint parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, privateEndpointName, parameters).GetAwaiter().GetResult());
 }