Closed
Description
Elastic.Clients.Elasticsearch version: 8.14.6
Elasticsearch version: 8
.NET runtime version: 8
Operating system version: Win11
Description of the problem including expected versus actual behavior:
Response type GetRepositoryResponse
does not expose any useful properties. It's all in BackingDictionary
, but this is internal
:
Steps to reproduce:
var createRequest = new CreateRepositoryRequest(repoName)
{
Repository = new SharedFileSystemRepository
{
Settings = new SharedFileSystemRepositorySettings
{
Location = $"/tmp/{repoName}",
MaxSnapshotBytesPerSec = new ByteSize("40m"),
Readonly = true
}
}
};
createResponse = await client.Snapshot.CreateRepositoryAsync(createRequest);
// Act
var searchResponse = await client.Snapshot.GetRepositoryAsync(new GetRepositoryRequest($"{repoName}*"));
// Assert
searchResponse.IsValidResponse.Should().BeTrue();
// TODO: assert more properties here
Expected behavior
Expect to get access to the actual response data.
Provide DebugInformation
(if relevant):
Valid Elasticsearch response built from a successful (200) low level call on GET: /_snapshot/56a826a0d67443faa354dc7f9a8cefea%2A
# Audit trail of this API call:
- [1] HealthyResponse: Node: https://elastic:redacted@127.0.0.1:62089/ Took: 00:00:00.0481153
# Request:
<Request stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on TransportConfiguration to force it to be set on the response.>
# Response:
{"56a826a0d67443faa354dc7f9a8cefea":{"type":"fs","settings":{"readonly":"true","location":"/tmp/56a826a0d67443faa354dc7f9a8cefea","max_snapshot_bytes_per_sec":"40m"}}}