public Task <SlmExecuteLifecycleResponse> ExecuteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policy_id, Action <SlmExecuteLifecycleRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SlmExecuteLifecycleRequestDescriptor(policy_id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SlmExecuteLifecycleRequestDescriptor, SlmExecuteLifecycleResponse>(descriptor));
        }
        public SlmExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elasticsearch.Name policy_id, Action <SlmExecuteLifecycleRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SlmExecuteLifecycleRequestDescriptor(policy_id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SlmExecuteLifecycleRequestDescriptor, SlmExecuteLifecycleResponse>(descriptor));
        }