public Task<CcrPauseAutoFollowPatternResponse> PauseAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action<CcrPauseAutoFollowPatternRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new CcrPauseAutoFollowPatternRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequestAsync<CcrPauseAutoFollowPatternRequestDescriptor, CcrPauseAutoFollowPatternResponse>(descriptor); }
public CcrPauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action<CcrPauseAutoFollowPatternRequestDescriptor> configureRequest = null) { var descriptor = new CcrPauseAutoFollowPatternRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequest<CcrPauseAutoFollowPatternRequestDescriptor, CcrPauseAutoFollowPatternResponse>(descriptor); }