public static Task <ElasticsearchResponse <DynamicDictionary> > SnapshotGetRepositoryAsync(this IElasticsearchClient client, string repository, SnapshotGetRepositorySelector requestParameters = null) { var selector = Obsolete.UpCastSelector <SnapshotGetRepositoryRequestParameters, GetRepositoryRequestParameters>(requestParameters); return(client.SnapshotGetRepositoryAsync(repository, selector)); }
public static ElasticsearchResponse <T> SnapshotGetRepository <T>(this IElasticsearchClient client, string repository, SnapshotGetRepositorySelector requestParameters = null) { var selector = Obsolete.UpCastSelector <SnapshotGetRepositoryRequestParameters, GetRepositoryRequestParameters>(requestParameters); return(client.SnapshotGetRepository <T>(repository, selector)); }