Skip to content

Commit

Permalink
[HealthInsights] Remove import of typespec-autorest (Azure#24598)
Browse files Browse the repository at this point in the history
- Causes small change in generated autorest, but I think the removed content was redundant anyway
- Partially fixes Azure#24565
  • Loading branch information
mikeharder authored and harryli0108 committed Jul 28, 2023
1 parent 42725e4 commit e0d03f1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-autorest";
import "@typespec/rest";
import "@typespec/http";

Expand All @@ -9,18 +8,13 @@ import "../healthinsights.common/primitives.tsp";
using Azure.Core;
using TypeSpec.Rest;
using TypeSpec.Http;
using Autorest;

namespace AzureHealthInsights;

interface OncoPhenotype {
@summary("Get Onco Phenotype job details")
@tag("OncoPhenotype")
@doc("Gets the status and details of the Onco Phenotype job.")
@example(
"./examples/SuccessfulOncoPhenotypeResponse.json",
"SuccessfulOncoPhenotypeGetAnalyzeStatus"
)
getJob is Azure.Core.ResourceRead<OncoPhenotypeResult>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "There is no long-running RPC template in Azure.Core"
Expand All @@ -29,9 +23,5 @@ interface OncoPhenotype {
@doc("Creates an Onco Phenotype job with the given request body.")
@pollingOperation(OncoPhenotype.getJob)
@route("/oncophenotype/jobs")
@example(
"./examples/SuccessfulOncoPhenotypeRequest.json",
"SuccessfulOncoPhenotypeAnalyzeRequest"
)
createJob is LongRunningRpcOperation<OncoPhenotypeData, OncoPhenotypeResult>;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-autorest";
import "@typespec/rest";
import "@typespec/http";

Expand All @@ -9,18 +8,13 @@ import "../healthinsights.common/primitives.tsp";
using Azure.Core;
using TypeSpec.Rest;
using TypeSpec.Http;
using Autorest;

namespace AzureHealthInsights;

interface TrialMatcher {
@summary("Get Trial Matcher job details")
@tag("TrialMatcher")
@doc("Gets the status and details of the Trial Matcher job.")
@example(
"./examples/SuccessfulTrialMatcherResponse.json",
"SuccessfulTrialMatcherGetAnalyzeStatus"
)
getJob is Azure.Core.ResourceRead<TrialMatcherResult>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "There is no long-running RPC template in Azure.Core"
Expand All @@ -29,9 +23,5 @@ interface TrialMatcher {
@doc("Creates a Trial Matcher job with the given request body.")
@pollingOperation(TrialMatcher.getJob)
@route("/trialmatcher/jobs")
@example(
"./examples/SuccessfulTrialMatcherRequest.json",
"SuccessfulTrialMatcherAnalyzeRequest"
)
createJob is LongRunningRpcOperation<TrialMatcherData, TrialMatcherResult>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@
}
},
"x-ms-examples": {
"SuccessfulOncoPhenotypeAnalyzeRequest": {
"$ref": "./examples/SuccessfulOncoPhenotypeRequest.json"
},
"Creates an Onco Phenotype job with the given request body.": {
"$ref": "./examples/SuccessfulOncoPhenotypeRequest.json"
}
Expand Down Expand Up @@ -177,9 +174,6 @@
}
},
"x-ms-examples": {
"SuccessfulOncoPhenotypeGetAnalyzeStatus": {
"$ref": "./examples/SuccessfulOncoPhenotypeResponse.json"
},
"Gets the status and details of the Onco Phenotype job.": {
"$ref": "./examples/SuccessfulOncoPhenotypeResponse.json"
}
Expand Down Expand Up @@ -257,9 +251,6 @@
}
},
"x-ms-examples": {
"SuccessfulTrialMatcherAnalyzeRequest": {
"$ref": "./examples/SuccessfulTrialMatcherRequest.json"
},
"Creates a Trial Matcher job with the given request body.": {
"$ref": "./examples/SuccessfulTrialMatcherRequest.json"
}
Expand Down Expand Up @@ -308,9 +299,6 @@
}
},
"x-ms-examples": {
"SuccessfulTrialMatcherGetAnalyzeStatus": {
"$ref": "./examples/SuccessfulTrialMatcherResponse.json"
},
"Gets the status and details of the Trial Matcher job.": {
"$ref": "./examples/SuccessfulTrialMatcherResponse.json"
}
Expand Down

0 comments on commit e0d03f1

Please sign in to comment.