Skip to content

Commit 4c54be7

Browse files
Nivedit JainNivedit Jain
andauthored
Fixed comments by @tg-msft on APIView (Azure#34320)
* fixed comments by @tg-msft * exportedAPIs --------- Co-authored-by: Nivedit Jain <[email protected]>
1 parent 89b6778 commit 4c54be7

20 files changed

+87
-79
lines changed

sdk/loadtestservice/Azure.Developer.LoadTesting/api/Azure.Developer.LoadTesting.netstandard2.0.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
namespace Azure.Developer.LoadTesting
22
{
3-
public partial class FileUploadOperation : Azure.Operation<System.BinaryData>
3+
public partial class FileUploadResultOperation : Azure.Operation<System.BinaryData>
44
{
5-
protected FileUploadOperation() { }
6-
public FileUploadOperation(string testId, string fileName, Azure.Developer.LoadTesting.LoadTestAdministrationClient client, Azure.Response initialResponse) { }
5+
protected FileUploadResultOperation() { }
6+
public FileUploadResultOperation(string testId, string fileName, Azure.Developer.LoadTesting.LoadTestAdministrationClient client, Azure.Response initialResponse = null) { }
77
public override bool HasCompleted { get { throw null; } }
88
public override bool HasValue { get { throw null; } }
99
public override string Id { get { throw null; } }
@@ -40,8 +40,8 @@ public LoadTestAdministrationClient(System.Uri endpoint, Azure.Core.TokenCredent
4040
public virtual Azure.AsyncPageable<System.BinaryData> GetTestFilesAsync(string testId, Azure.RequestContext context = null) { throw null; }
4141
public virtual Azure.Pageable<System.BinaryData> GetTests(string orderby = null, string search = null, System.DateTimeOffset? lastModifiedStartTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedEndTime = default(System.DateTimeOffset?), Azure.RequestContext context = null) { throw null; }
4242
public virtual Azure.AsyncPageable<System.BinaryData> GetTestsAsync(string orderby = null, string search = null, System.DateTimeOffset? lastModifiedStartTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedEndTime = default(System.DateTimeOffset?), Azure.RequestContext context = null) { throw null; }
43-
public virtual Azure.Developer.LoadTesting.FileUploadOperation UploadTestFile(Azure.WaitUntil waitUntil, string testId, string fileName, Azure.Core.RequestContent content, System.TimeSpan? timeSpan = default(System.TimeSpan?), string fileType = null, Azure.RequestContext context = null) { throw null; }
44-
public virtual System.Threading.Tasks.Task<Azure.Developer.LoadTesting.FileUploadOperation> UploadTestFileAsync(Azure.WaitUntil waitUntil, string testId, string fileName, Azure.Core.RequestContent content, System.TimeSpan? timeSpan = default(System.TimeSpan?), string fileType = null, Azure.RequestContext context = null) { throw null; }
43+
public virtual Azure.Developer.LoadTesting.FileUploadResultOperation UploadTestFile(Azure.WaitUntil waitUntil, string testId, string fileName, Azure.Core.RequestContent content, System.TimeSpan? timeSpan = default(System.TimeSpan?), string fileType = null, Azure.RequestContext context = null) { throw null; }
44+
public virtual System.Threading.Tasks.Task<Azure.Developer.LoadTesting.FileUploadResultOperation> UploadTestFileAsync(Azure.WaitUntil waitUntil, string testId, string fileName, Azure.Core.RequestContent content, System.TimeSpan? timeSpan = default(System.TimeSpan?), string fileType = null, Azure.RequestContext context = null) { throw null; }
4545
}
4646
public partial class LoadTestingClientOptions : Azure.Core.ClientOptions
4747
{
@@ -57,8 +57,8 @@ protected LoadTestRunClient() { }
5757
public LoadTestRunClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { }
5858
public LoadTestRunClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Developer.LoadTesting.LoadTestingClientOptions options) { }
5959
public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } }
60-
public virtual Azure.Developer.LoadTesting.TestRunOperation BeginTestRun(Azure.WaitUntil waitUntil, string testRunId, Azure.Core.RequestContent content, System.TimeSpan? timeSpan = default(System.TimeSpan?), string oldTestRunId = null, Azure.RequestContext context = null) { throw null; }
61-
public virtual System.Threading.Tasks.Task<Azure.Developer.LoadTesting.TestRunOperation> BeginTestRunAsync(Azure.WaitUntil waitUntil, string testRunId, Azure.Core.RequestContent content, System.TimeSpan? timeSpan = default(System.TimeSpan?), string oldTestRunId = null, Azure.RequestContext context = null) { throw null; }
60+
public virtual Azure.Developer.LoadTesting.TestRunResultOperation BeginTestRun(Azure.WaitUntil waitUntil, string testRunId, Azure.Core.RequestContent content, System.TimeSpan? timeSpan = default(System.TimeSpan?), string oldTestRunId = null, Azure.RequestContext context = null) { throw null; }
61+
public virtual System.Threading.Tasks.Task<Azure.Developer.LoadTesting.TestRunResultOperation> BeginTestRunAsync(Azure.WaitUntil waitUntil, string testRunId, Azure.Core.RequestContent content, System.TimeSpan? timeSpan = default(System.TimeSpan?), string oldTestRunId = null, Azure.RequestContext context = null) { throw null; }
6262
public virtual Azure.Response CreateOrUpdateAppComponents(string testRunId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
6363
public virtual System.Threading.Tasks.Task<Azure.Response> CreateOrUpdateAppComponentsAsync(string testRunId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
6464
public virtual Azure.Response CreateOrUpdateServerMetricsConfig(string testRunId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
@@ -69,12 +69,12 @@ public LoadTestRunClient(System.Uri endpoint, Azure.Core.TokenCredential credent
6969
public virtual System.Threading.Tasks.Task<Azure.Response> GetAppComponentsAsync(string testRunId, Azure.RequestContext context = null) { throw null; }
7070
public virtual Azure.Response GetMetricDefinitions(string testRunId, string metricNamespace, Azure.RequestContext context = null) { throw null; }
7171
public virtual System.Threading.Tasks.Task<Azure.Response> GetMetricDefinitionsAsync(string testRunId, string metricNamespace, Azure.RequestContext context = null) { throw null; }
72-
public virtual Azure.Pageable<System.BinaryData> GetMetricDimensionValues(string testRunId, string name, string metricname, string metricNamespace, string timespan, string interval = null, Azure.RequestContext context = null) { throw null; }
73-
public virtual Azure.AsyncPageable<System.BinaryData> GetMetricDimensionValuesAsync(string testRunId, string name, string metricname, string metricNamespace, string timespan, string interval = null, Azure.RequestContext context = null) { throw null; }
72+
public virtual Azure.Pageable<System.BinaryData> GetMetricDimensionValues(string testRunId, string name, string metricName, string metricNamespace, string timeInterval, string interval = null, Azure.RequestContext context = null) { throw null; }
73+
public virtual Azure.AsyncPageable<System.BinaryData> GetMetricDimensionValuesAsync(string testRunId, string name, string metricName, string metricNamespace, string timeInterval, string interval = null, Azure.RequestContext context = null) { throw null; }
7474
public virtual Azure.Response GetMetricNamespaces(string testRunId, Azure.RequestContext context = null) { throw null; }
7575
public virtual System.Threading.Tasks.Task<Azure.Response> GetMetricNamespacesAsync(string testRunId, Azure.RequestContext context = null) { throw null; }
76-
public virtual Azure.Pageable<System.BinaryData> GetMetrics(string testRunId, string metricname, string metricNamespace, string timespan, Azure.Core.RequestContent content = null, string aggregation = null, string interval = null, Azure.RequestContext context = null) { throw null; }
77-
public virtual Azure.AsyncPageable<System.BinaryData> GetMetricsAsync(string testRunId, string metricname, string metricNamespace, string timespan, Azure.Core.RequestContent content = null, string aggregation = null, string interval = null, Azure.RequestContext context = null) { throw null; }
76+
public virtual Azure.Pageable<System.BinaryData> GetMetrics(string testRunId, string metricName, string metricNamespace, string timespan, Azure.Core.RequestContent content = null, string aggregation = null, string interval = null, Azure.RequestContext context = null) { throw null; }
77+
public virtual Azure.AsyncPageable<System.BinaryData> GetMetricsAsync(string testRunId, string metricName, string metricNamespace, string timespan, Azure.Core.RequestContent content = null, string aggregation = null, string interval = null, Azure.RequestContext context = null) { throw null; }
7878
public virtual Azure.Response GetServerMetricsConfig(string testRunId, Azure.RequestContext context = null) { throw null; }
7979
public virtual System.Threading.Tasks.Task<Azure.Response> GetServerMetricsConfigAsync(string testRunId, Azure.RequestContext context = null) { throw null; }
8080
public virtual Azure.Response GetTestRun(string testRunId, Azure.RequestContext context = null) { throw null; }
@@ -86,10 +86,10 @@ public LoadTestRunClient(System.Uri endpoint, Azure.Core.TokenCredential credent
8686
public virtual Azure.Response StopTestRun(string testRunId, Azure.RequestContext context = null) { throw null; }
8787
public virtual System.Threading.Tasks.Task<Azure.Response> StopTestRunAsync(string testRunId, Azure.RequestContext context = null) { throw null; }
8888
}
89-
public partial class TestRunOperation : Azure.Operation<System.BinaryData>
89+
public partial class TestRunResultOperation : Azure.Operation<System.BinaryData>
9090
{
91-
protected TestRunOperation() { }
92-
public TestRunOperation(string testRunId, Azure.Developer.LoadTesting.LoadTestRunClient client, Azure.Response initialResponse = null) { }
91+
protected TestRunResultOperation() { }
92+
public TestRunResultOperation(string testRunId, Azure.Developer.LoadTesting.LoadTestRunClient client, Azure.Response initialResponse = null) { }
9393
public override bool HasCompleted { get { throw null; } }
9494
public override bool HasValue { get { throw null; } }
9595
public override string Id { get { throw null; } }

sdk/loadtestservice/Azure.Developer.LoadTesting/samples/Sample2_BeginUploadTestFile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ string testId = "my-loadtest";
2222
try
2323
{
2424
// poller object
25-
FileUploadOperation operation = loadTestAdministrationClient.UploadTestFile(WaitUntil.Started, testId, "sample.jmx", RequestContent.Create(
25+
FileUploadResultOperation operation = loadTestAdministrationClient.UploadTestFile(WaitUntil.Started, testId, "sample.jmx", RequestContent.Create(
2626
Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "sample.jmx")
2727
));
2828

sdk/loadtestservice/Azure.Developer.LoadTesting/samples/Sample2_BeginUploadTestFileAsync.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ string testId = "my-loadtest";
2222
try
2323
{
2424
// poller object
25-
FileUploadOperation operation = await loadTestAdministrationClient.UploadTestFileAsync(WaitUntil.Started, testId, "sample.jmx", RequestContent.Create(
25+
FileUploadResultOperation operation = await loadTestAdministrationClient.UploadTestFileAsync(WaitUntil.Started, testId, "sample.jmx", RequestContent.Create(
2626
Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "sample.jmx")
2727
));
2828

sdk/loadtestservice/Azure.Developer.LoadTesting/samples/Sample4_BeginTestRun.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var data = new
3030

3131
try
3232
{
33-
TestRunOperation operation = loadTestRunClient.BeginTestRun(
33+
TestRunResultOperation operation = loadTestRunClient.BeginTestRun(
3434
WaitUntil.Started, testRunId, RequestContent.Create(data)
3535
);
3636

sdk/loadtestservice/Azure.Developer.LoadTesting/samples/Sample4_BeginTestRunAsync.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var data = new
3131

3232
try
3333
{
34-
TestRunOperation operation = await loadTestRunClient.BeginTestRunAsync(
34+
TestRunResultOperation operation = await loadTestRunClient.BeginTestRunAsync(
3535
WaitUntil.Started, testRunId, RequestContent.Create(data)
3636
);
3737

sdk/loadtestservice/Azure.Developer.LoadTesting/src/FileUploadOperation.cs renamed to sdk/loadtestservice/Azure.Developer.LoadTesting/src/FileUploadResultOperation.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
namespace Azure.Developer.LoadTesting
1616
{
1717
/// <summary>
18-
/// FileUploadOperation.
18+
/// FileUploadResultOperation.
1919
/// </summary>
20-
public class FileUploadOperation : Operation<BinaryData>
20+
public class FileUploadResultOperation : Operation<BinaryData>
2121
{
2222
private bool _completed;
2323
private Response _response;
@@ -68,12 +68,12 @@ public override BinaryData Value
6868
/// <summary>
6969
/// FileUploadOperation.
7070
/// </summary>
71-
protected FileUploadOperation() { }
71+
protected FileUploadResultOperation() { }
7272

7373
/// <summary>
7474
/// FileUploadOperation.
7575
/// </summary>
76-
public FileUploadOperation(string testId, string fileName, LoadTestAdministrationClient client, Response initialResponse)
76+
public FileUploadResultOperation(string testId, string fileName, LoadTestAdministrationClient client, Response initialResponse = null)
7777
{
7878
_testId = testId;
7979
_fileName = fileName;

sdk/loadtestservice/Azure.Developer.LoadTesting/src/Generated/Docs/LoadTestRunClient.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2673,7 +2673,7 @@ var credential = new DefaultAzureCredential();
26732673
var endpoint = new Uri("<https://my-service.azure.com>");
26742674
var client = new LoadTestRunClient(endpoint, credential);
26752675
2676-
await foreach (var data in client.GetMetricDimensionValuesAsync("<testRunId>", "<name>", "<metricname>", "<metricNamespace>", "<timespan>"))
2676+
await foreach (var data in client.GetMetricDimensionValuesAsync("<testRunId>", "<name>", "<metricName>", "<metricNamespace>", "<timeInterval>"))
26772677
{
26782678
JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement;
26792679
Console.WriteLine(result.ToString());
@@ -2685,7 +2685,7 @@ var credential = new DefaultAzureCredential();
26852685
var endpoint = new Uri("<https://my-service.azure.com>");
26862686
var client = new LoadTestRunClient(endpoint, credential);
26872687
2688-
await foreach (var data in client.GetMetricDimensionValuesAsync("<testRunId>", "<name>", "<metricname>", "<metricNamespace>", "<timespan>", "<interval>"))
2688+
await foreach (var data in client.GetMetricDimensionValuesAsync("<testRunId>", "<name>", "<metricName>", "<metricNamespace>", "<timeInterval>", "<interval>"))
26892689
{
26902690
JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement;
26912691
Console.WriteLine(result.ToString());
@@ -2701,7 +2701,7 @@ var credential = new DefaultAzureCredential();
27012701
var endpoint = new Uri("<https://my-service.azure.com>");
27022702
var client = new LoadTestRunClient(endpoint, credential);
27032703
2704-
foreach (var data in client.GetMetricDimensionValues("<testRunId>", "<name>", "<metricname>", "<metricNamespace>", "<timespan>"))
2704+
foreach (var data in client.GetMetricDimensionValues("<testRunId>", "<name>", "<metricName>", "<metricNamespace>", "<timeInterval>"))
27052705
{
27062706
JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement;
27072707
Console.WriteLine(result.ToString());
@@ -2713,7 +2713,7 @@ var credential = new DefaultAzureCredential();
27132713
var endpoint = new Uri("<https://my-service.azure.com>");
27142714
var client = new LoadTestRunClient(endpoint, credential);
27152715
2716-
foreach (var data in client.GetMetricDimensionValues("<testRunId>", "<name>", "<metricname>", "<metricNamespace>", "<timespan>", "<interval>"))
2716+
foreach (var data in client.GetMetricDimensionValues("<testRunId>", "<name>", "<metricName>", "<metricNamespace>", "<timeInterval>", "<interval>"))
27172717
{
27182718
JsonElement result = JsonDocument.Parse(data.ToStream()).RootElement;
27192719
Console.WriteLine(result.ToString());

0 commit comments

Comments
 (0)