[U] public override async Task Urls() { await UrlTester.GET("/_nodes/usage") .Fluent(c => c.Nodes.Usage(d => d)) .Request(c => c.Nodes.Usage(new NodesUsageRequest())) .FluentAsync(c => c.Nodes.UsageAsync(d => d)) .RequestAsync(c => c.Nodes.UsageAsync(new NodesUsageRequest())) ; await UrlTester.GET("/_nodes/nodeId/usage") .Fluent(c => c.Nodes.Usage(d => d.NodeId("nodeId"))) .Request(c => c.Nodes.Usage(new NodesUsageRequest("nodeId"))) .FluentAsync(c => c.Nodes.UsageAsync(d => d.NodeId("nodeId"))) .RequestAsync(c => c.Nodes.UsageAsync(new NodesUsageRequest("nodeId"))) ; await UrlTester.GET("/_nodes/nodeId/usage/rest_actions") .Fluent(c => c.Nodes.Usage(d => d.NodeId("nodeId").Metric(NodesUsageMetric.RestActions))) .Request(c => c.Nodes.Usage(new NodesUsageRequest("nodeId", NodesUsageMetric.RestActions))) .FluentAsync(c => c.Nodes.UsageAsync(d => d.NodeId("nodeId").Metric(NodesUsageMetric.RestActions))) .RequestAsync(c => c.Nodes.UsageAsync(new NodesUsageRequest("nodeId", NodesUsageMetric.RestActions))) ; await UrlTester.GET("/_nodes/nodeId/usage/_all") .Fluent(c => c.Nodes.Usage(d => d.NodeId("nodeId").Metric(NodesUsageMetric.All))) .Request(c => c.Nodes.Usage(new NodesUsageRequest("nodeId", NodesUsageMetric.All))) .FluentAsync(c => c.Nodes.UsageAsync(d => d.NodeId("nodeId").Metric(NodesUsageMetric.All))) .RequestAsync(c => c.Nodes.UsageAsync(new NodesUsageRequest("nodeId", NodesUsageMetric.All))) ; }
[U] public override async Task Urls() { await UrlTester.GET("_ml/info") .Fluent(c => c.MachineLearningInfo()) .Request(c => c.MachineLearningInfo(new MachineLearningInfoRequest())) .FluentAsync(c => c.MachineLearningInfoAsync()) .RequestAsync(c => c.MachineLearningInfoAsync(new MachineLearningInfoRequest())); }
[U] public override async Task Urls() { await UrlTester.GET("/_tasks") .Fluent(c => c.ListTasks()) .Request(c => c.ListTasks(new ListTasksRequest())) .FluentAsync(c => c.ListTasksAsync()) .RequestAsync(c => c.ListTasksAsync(new ListTasksRequest())) ; }
[U] public override async Task Urls() { var name = "x"; await UrlTester.GET($"/{name}/_ccr/stats") .Fluent(c => c.CrossClusterReplication.FollowIndexStats(name, d => d)) .Request(c => c.CrossClusterReplication.FollowIndexStats(new FollowIndexStatsRequest(name))) .FluentAsync(c => c.CrossClusterReplication.FollowIndexStatsAsync(name, d => d)) .RequestAsync(c => c.CrossClusterReplication.FollowIndexStatsAsync(new FollowIndexStatsRequest(name))); }
[U] public async Task Urls() { var id = new TaskId("fakeid:1"); await UrlTester.GET($"/_tasks/fakeid%3A1") .Fluent(c => c.GetTask(id)) .Request(c => c.GetTask(new GetTaskRequest(id))) .FluentAsync(c => c.GetTaskAsync(id)) .RequestAsync(c => c.GetTaskAsync(new GetTaskRequest(id))) ; }
[U] public override async Task Urls() { var name = "x"; await UrlTester.GET($"/_ccr/auto_follow/{name}") .Fluent(c => c.CrossClusterReplication.GetAutoFollowPattern(name)) .Request(c => c.CrossClusterReplication.GetAutoFollowPattern(new GetAutoFollowPatternRequest(name))) .FluentAsync(c => c.CrossClusterReplication.GetAutoFollowPatternAsync(name)) .RequestAsync(c => c.CrossClusterReplication.GetAutoFollowPatternAsync(new GetAutoFollowPatternRequest(name))); await UrlTester.GET($"/_ccr/auto_follow") .Fluent(c => c.CrossClusterReplication.GetAutoFollowPattern()) .Request(c => c.CrossClusterReplication.GetAutoFollowPattern(new GetAutoFollowPatternRequest())) .FluentAsync(c => c.CrossClusterReplication.GetAutoFollowPatternAsync()) .RequestAsync(c => c.CrossClusterReplication.GetAutoFollowPatternAsync(new GetAutoFollowPatternRequest())); }
[U] public override async Task Urls() { var name = "x"; await UrlTester.GET($"/_ccr/auto_follow/{name}") .Fluent(c => c.GetAutoFollowPattern(d => d.Name(name))) .Request(c => c.GetAutoFollowPattern(new GetAutoFollowPatternRequest(name))) .FluentAsync(c => c.GetAutoFollowPatternAsync(d => d.Name(name))) .RequestAsync(c => c.GetAutoFollowPatternAsync(new GetAutoFollowPatternRequest(name))); await UrlTester.GET($"/_ccr/auto_follow") .Fluent(c => c.GetAutoFollowPattern(d => d)) .Request(c => c.GetAutoFollowPattern(new GetAutoFollowPatternRequest())) .FluentAsync(c => c.GetAutoFollowPatternAsync(d => d)) .RequestAsync(c => c.GetAutoFollowPatternAsync(new GetAutoFollowPatternRequest())); }
[U] public async Task Urls() { await UrlTester.GET("/_tasks") .Fluent(c => c.TasksList()) .Request(c => c.TasksList(new TasksListRequest())) .FluentAsync(c => c.TasksListAsync()) .RequestAsync(c => c.TasksListAsync(new TasksListRequest())) ; var taskId = "node:4"; await UrlTester.GET($"/_tasks/node%3A4") .Fluent(c => c.TasksList(t => t.TaskId(taskId))) .Request(c => c.TasksList(new TasksListRequest(taskId))) .FluentAsync(c => c.TasksListAsync(t => t.TaskId(taskId))) .RequestAsync(c => c.TasksListAsync(new TasksListRequest(taskId))) ; }
[U] public async Task Urls() { await UrlTester.GET($"/_recovery") .Fluent(c => c.RecoveryStatus(Nest.Indices.All)) .Request(c => c.RecoveryStatus(new RecoveryStatusRequest())) .FluentAsync(c => c.RecoveryStatusAsync(Nest.Indices.All)) .RequestAsync(c => c.RecoveryStatusAsync(new RecoveryStatusRequest())) ; var index = "index1,index2"; await UrlTester.GET($"/index1%2Cindex2/_recovery") .Fluent(c => c.RecoveryStatus(index)) .Request(c => c.RecoveryStatus(new RecoveryStatusRequest(index))) .FluentAsync(c => c.RecoveryStatusAsync(index)) .RequestAsync(c => c.RecoveryStatusAsync(new RecoveryStatusRequest(index))) ; }
[U] public async Task Urls() { await UrlTester.GET($"/_segments") .Fluent(c => c.Segments(Nest.Indices.All)) .Request(c => c.Segments(new SegmentsRequest())) .FluentAsync(c => c.SegmentsAsync(Nest.Indices.All)) .RequestAsync(c => c.SegmentsAsync(new SegmentsRequest())) ; var index = "index1,index2"; await UrlTester.GET($"/{index}/_segments") .Fluent(c => c.Segments(index)) .Request(c => c.Segments(new SegmentsRequest(index))) .FluentAsync(c => c.SegmentsAsync(index)) .RequestAsync(c => c.SegmentsAsync(new SegmentsRequest(index))) ; }
[U] public override async Task Urls() { await UrlTester.GET("/_security/role_mapping") .Fluent(c => c.Security.GetRoleMapping()) .Request(c => c.Security.GetRoleMapping(new GetRoleMappingRequest())) .FluentAsync(c => c.Security.GetRoleMappingAsync()) .RequestAsync(c => c.Security.GetRoleMappingAsync(new GetRoleMappingRequest())) ; var roles = "can_write,can_read_metadata"; await UrlTester.GET($"/_security/role_mapping/{UrlTester.EscapeUriString(roles)}") .Fluent(c => c.Security.GetRoleMapping(roles)) .Request(c => c.Security.GetRoleMapping(new GetRoleMappingRequest(roles))) .FluentAsync(c => c.Security.GetRoleMappingAsync(roles)) .RequestAsync(c => c.Security.GetRoleMappingAsync(new GetRoleMappingRequest(roles))) ; }
[U] public async Task Urls() { await UrlTester.GET("/_xpack/migration/assistance") .Fluent(c => c.MigrationAssistance()) .Request(c => c.MigrationAssistance(new MigrationAssistanceRequest())) .FluentAsync(c => c.MigrationAssistanceAsync()) .RequestAsync(c => c.MigrationAssistanceAsync(new MigrationAssistanceRequest())) ; var index = "another-index"; await UrlTester.GET($"/_xpack/migration/assistance/{index}") .Fluent(c => c.MigrationAssistance(d => d.Index(index))) .Request(c => c.MigrationAssistance(new MigrationAssistanceRequest(index))) .FluentAsync(c => c.MigrationAssistanceAsync(d => d.Index(index))) .RequestAsync(c => c.MigrationAssistanceAsync(new MigrationAssistanceRequest(index))) ; }
[U] public async Task Urls() { await UrlTester.GET($"/_segments") .Request(c => c.Indices.Segments(new SegmentsRequest())) .RequestAsync(c => c.Indices.SegmentsAsync(new SegmentsRequest())) ; await UrlTester.GET($"/_all/_segments") .Fluent(c => c.Indices.Segments(All)) .Request(c => c.Indices.Segments(new SegmentsRequest(All))) .FluentAsync(c => c.Indices.SegmentsAsync(All)) .RequestAsync(c => c.Indices.SegmentsAsync(new SegmentsRequest(All))) ; var index = "index1,index2"; await UrlTester.GET($"/index1%2Cindex2/_segments") .Fluent(c => c.Indices.Segments(index)) .Request(c => c.Indices.Segments(new SegmentsRequest(index))) .FluentAsync(c => c.Indices.SegmentsAsync(index)) .RequestAsync(c => c.Indices.SegmentsAsync(new SegmentsRequest(index))) ; }
[U] public async Task Urls() => await UrlTester.GET($"/_ingest/processor/grok") .Fluent(c => c.Ingest.GrokProcessorPatterns()) .Request(c => c.Ingest.GrokProcessorPatterns()) .FluentAsync(c => c.Ingest.GrokProcessorPatternsAsync()) .RequestAsync(c => c.Ingest.GrokProcessorPatternsAsync());
[U] public override async Task Urls() => await UrlTester.GET($"/_ccr/stats") .Fluent(c => c.CcrStats(d => d)) .Request(c => c.CcrStats(new CcrStatsRequest())) .FluentAsync(c => c.CcrStatsAsync(d => d)) .RequestAsync(c => c.CcrStatsAsync(new CcrStatsRequest()));
[U] public override async Task Urls() => await UrlTester.GET("/_xpack/ssl/certificates") .Fluent(c => c.GetCertificates()) .Request(c => c.GetCertificates(new GetCertificatesRequest())) .FluentAsync(c => c.GetCertificatesAsync()) .RequestAsync(c => c.GetCertificatesAsync(new GetCertificatesRequest()));
[U] public override async Task Urls() => await UrlTester.GET("/_ml/datafeeds/datafeed_id/_preview") .Fluent(c => c.MachineLearning.PreviewDatafeed <Metric>("datafeed_id", p => p)) .Request(c => c.MachineLearning.PreviewDatafeed <Metric>(new PreviewDatafeedRequest("datafeed_id"))) .FluentAsync(c => c.MachineLearning.PreviewDatafeedAsync <Metric>("datafeed_id", p => p)) .RequestAsync(c => c.MachineLearning.PreviewDatafeedAsync <Metric>(new PreviewDatafeedRequest("datafeed_id")));
[U] public override async Task Urls() => await UrlTester.GET("/_security/api_key") .Fluent(c => c.Security.GetApiKey()) .Request(c => c.Security.GetApiKey(new GetApiKeyRequest())) .FluentAsync(c => c.Security.GetApiKeyAsync()) .RequestAsync(c => c.Security.GetApiKeyAsync(new GetApiKeyRequest()));