示例#1
0
 /// <summary>
 /// Updates the specified private endpoint connection associated with the
 /// managed hsm pool.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group that contains the managed HSM pool.
 /// </param>
 /// <param name='name'>
 /// Name of the managed HSM Pool
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// Name of the private endpoint connection associated with the managed hsm
 /// pool.
 /// </param>
 /// <param name='properties'>
 /// The intended state of private endpoint connection.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <MHSMPrivateEndpointConnection> PutAsync(this IMHSMPrivateEndpointConnectionsOperations operations, string resourceGroupName, string name, string privateEndpointConnectionName, MHSMPrivateEndpointConnection properties, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PutWithHttpMessagesAsync(resourceGroupName, name, privateEndpointConnectionName, properties, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#2
0
 /// <summary>
 /// Updates the specified private endpoint connection associated with the
 /// managed hsm pool.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group that contains the managed HSM pool.
 /// </param>
 /// <param name='name'>
 /// Name of the managed HSM Pool
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// Name of the private endpoint connection associated with the managed hsm
 /// pool.
 /// </param>
 /// <param name='properties'>
 /// The intended state of private endpoint connection.
 /// </param>
 public static MHSMPrivateEndpointConnection Put(this IMHSMPrivateEndpointConnectionsOperations operations, string resourceGroupName, string name, string privateEndpointConnectionName, MHSMPrivateEndpointConnection properties)
 {
     return(operations.PutAsync(resourceGroupName, name, privateEndpointConnectionName, properties).GetAwaiter().GetResult());
 }