public Task <SnapshotCloneResponse> CloneAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name target_snapshot, Action <SnapshotCloneRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SnapshotCloneRequestDescriptor(repository, snapshot, target_snapshot);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SnapshotCloneRequestDescriptor, SnapshotCloneResponse>(descriptor));
        }
        public SnapshotCloneResponse Clone(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name target_snapshot, Action <SnapshotCloneRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SnapshotCloneRequestDescriptor(repository, snapshot, target_snapshot);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SnapshotCloneRequestDescriptor, SnapshotCloneResponse>(descriptor));
        }