public Task <CreateSnapshotResponse> CreateAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action <CreateSnapshotRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new CreateSnapshotRequestDescriptor(repository, snapshot);

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

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <CreateSnapshotRequestDescriptor, CreateSnapshotResponse>(descriptor));
        }