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

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

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SlmDeleteLifecycleRequestDescriptor, SlmDeleteLifecycleResponse>(descriptor));
        }